Annotated Report
0010ea40 <IMFS_Set_handlers>: #define MAXSYMLINK 5 int IMFS_Set_handlers( rtems_filesystem_location_info_t *loc ) {
10ea40: 55 push %ebp 10ea41: 89 e5 mov %esp,%ebp 10ea43: 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;
10ea46: 8b 50 10 mov 0x10(%eax),%edx 10ea49: 8b 4a 34 mov 0x34(%edx),%ecx
switch( node->type ) {
10ea4c: 8b 10 mov (%eax),%edx 10ea4e: 83 7a 4c 07 cmpl $0x7,0x4c(%edx)
10ea52: 77 12 ja 10ea66 <IMFS_Set_handlers+0x26><== ALWAYS TAKEN
10ea54: 8b 52 4c mov 0x4c(%edx),%edx 10ea57: ff 24 95 c8 fd 11 00 jmp *0x11fdc8(,%edx,4)
10ea5e: 66 90 xchg %ax,%ax <== NOT EXECUTED
case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers;
10ea60: 8b 51 0c mov 0xc(%ecx),%edx 10ea63: 89 50 08 mov %edx,0x8(%eax)
loc->handlers = &IMFS_fifo_handlers; break; } return 0; }
10ea66: 31 c0 xor %eax,%eax 10ea68: c9 leave 10ea69: c3 ret
10ea6a: 66 90 xchg %ax,%ax <== NOT EXECUTED
break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers;
10ea6c: 8b 51 08 mov 0x8(%ecx),%edx 10ea6f: 89 50 08 mov %edx,0x8(%eax)
loc->handlers = &IMFS_fifo_handlers; break; } return 0; }
10ea72: 31 c0 xor %eax,%eax 10ea74: c9 leave 10ea75: c3 ret
10ea76: 66 90 xchg %ax,%ax <== NOT EXECUTED
case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers;
10ea78: c7 40 08 00 ff 11 00 movl $0x11ff00,0x8(%eax)
loc->handlers = &IMFS_fifo_handlers; break; } return 0; }
10ea7f: 31 c0 xor %eax,%eax 10ea81: c9 leave 10ea82: c3 ret
10ea83: 90 nop <== NOT EXECUTED
break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers;
10ea84: c7 40 08 00 fe 11 00 movl $0x11fe00,0x8(%eax)
break; } return 0; }
10ea8b: 31 c0 xor %eax,%eax 10ea8d: c9 leave 10ea8e: c3 ret
10ea8f: 90 nop <== NOT EXECUTED
switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers;
10ea90: c7 40 08 c0 fe 11 00 movl $0x11fec0,0x8(%eax)
loc->handlers = &IMFS_fifo_handlers; break; } return 0; }
10ea97: 31 c0 xor %eax,%eax 10ea99: c9 leave 10ea9a: c3 ret
0011163c <IMFS_allocate_node>: IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) {
11163c: 55 push %ebp 11163d: 89 e5 mov %esp,%ebp 11163f: 53 push %ebx 111640: 83 ec 1c sub $0x1c,%esp
struct timeval tv; /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) );
111643: 6a 64 push $0x64 111645: 6a 01 push $0x1 111647: e8 c8 e1 ff ff call 10f814 <calloc> 11164c: 89 c3 mov %eax,%ebx
if ( !node )
11164e: 83 c4 10 add $0x10,%esp 111651: 85 c0 test %eax,%eax
111653: 74 49 je 11169e <IMFS_allocate_node+0x62><== ALWAYS TAKEN
return NULL; /* * Fill in the basic information */ node->st_nlink = 1;
111655: 66 c7 40 34 01 00 movw $0x1,0x34(%eax)
node->type = type;
11165b: 8b 45 08 mov 0x8(%ebp),%eax 11165e: 89 43 4c mov %eax,0x4c(%ebx)
strncpy( node->name, name, IMFS_NAME_MAX );
111661: 51 push %ecx 111662: 6a 20 push $0x20 111664: ff 75 0c pushl 0xc(%ebp) 111667: 8d 43 0c lea 0xc(%ebx),%eax 11166a: 50 push %eax 11166b: e8 3c 1a 00 00 call 1130ac <strncpy>
/* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode;
111670: 8b 45 10 mov 0x10(%ebp),%eax 111673: 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;
111676: 66 c7 43 3c 00 00 movw $0x0,0x3c(%ebx)
node->st_gid = 0;
11167c: 66 c7 43 3e 00 00 movw $0x0,0x3e(%ebx)
#endif /* * Now set all the times. */ gettimeofday( &tv, 0 );
111682: 58 pop %eax 111683: 5a pop %edx 111684: 6a 00 push $0x0 111686: 8d 45 f0 lea -0x10(%ebp),%eax 111689: 50 push %eax 11168a: e8 19 e3 ff ff call 10f9a8 <gettimeofday>
node->stat_atime = (time_t) tv.tv_sec;
11168f: 8b 45 f0 mov -0x10(%ebp),%eax 111692: 89 43 40 mov %eax,0x40(%ebx)
node->stat_mtime = (time_t) tv.tv_sec;
111695: 89 43 44 mov %eax,0x44(%ebx)
node->stat_ctime = (time_t) tv.tv_sec;
111698: 89 43 48 mov %eax,0x48(%ebx)
return node;
11169b: 83 c4 10 add $0x10,%esp
}
11169e: 89 d8 mov %ebx,%eax 1116a0: 8b 5d fc mov -0x4(%ebp),%ebx 1116a3: c9 leave 1116a4: c3 ret
001116dc <IMFS_create_node>: IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) {
1116dc: 55 push %ebp 1116dd: 89 e5 mov %esp,%ebp 1116df: 57 push %edi 1116e0: 56 push %esi 1116e1: 53 push %ebx 1116e2: 83 ec 1c sub $0x1c,%esp 1116e5: 8b 5d 08 mov 0x8(%ebp),%ebx 1116e8: 8b 75 0c mov 0xc(%ebp),%esi 1116eb: 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 )
1116ee: 85 db test %ebx,%ebx
1116f0: 75 0a jne 1116fc <IMFS_create_node+0x20> <== NEVER TAKEN
1116f2: 31 c0 xor %eax,%eax <== NOT EXECUTED
node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; }
1116f4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1116f7: 5b pop %ebx <== NOT EXECUTED 1116f8: 5e pop %esi <== NOT EXECUTED 1116f9: 5f pop %edi <== NOT EXECUTED 1116fa: c9 leave <== NOT EXECUTED 1116fb: c3 ret <== NOT EXECUTED
return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask );
1116fc: 50 push %eax 1116fd: a1 18 30 12 00 mov 0x123018,%eax 111702: 8b 40 2c mov 0x2c(%eax),%eax 111705: f7 d0 not %eax 111707: 23 45 14 and 0x14(%ebp),%eax 11170a: 50 push %eax 11170b: ff 75 10 pushl 0x10(%ebp) 11170e: 56 push %esi 11170f: e8 28 ff ff ff call 11163c <IMFS_allocate_node>
if ( !node )
111714: 83 c4 10 add $0x10,%esp 111717: 85 c0 test %eax,%eax
111719: 74 d9 je 1116f4 <IMFS_create_node+0x18> <== ALWAYS TAKEN
return NULL; /* * Set the type specific information */ switch (type) {
11171b: 83 fe 07 cmp $0x7,%esi
11171e: 76 18 jbe 111738 <IMFS_create_node+0x5c> <== NEVER TAKEN
case IMFS_FIFO: node->info.fifo.pipe = NULL; break; default: assert(0);
111720: 68 1d f8 11 00 push $0x11f81d <== NOT EXECUTED 111725: 68 dc 00 12 00 push $0x1200dc <== NOT EXECUTED 11172a: 6a 5c push $0x5c <== NOT EXECUTED 11172c: 68 70 00 12 00 push $0x120070 <== NOT EXECUTED 111731: e8 f2 65 ff ff call 107d28 <__assert_func> <== NOT EXECUTED 111736: 66 90 xchg %ax,%ax <== NOT EXECUTED
return NULL; /* * Set the type specific information */ switch (type) {
111738: ff 24 b5 bc 00 12 00 jmp *0x1200bc(,%esi,4)
11173f: 90 nop <== NOT EXECUTED
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;
111740: 8b 17 mov (%edi),%edx 111742: 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;
111745: 8b 13 mov (%ebx),%edx
fs_info = parent_loc->mt_entry->fs_info;
111747: 8b 4b 10 mov 0x10(%ebx),%ecx 11174a: 8b 59 34 mov 0x34(%ecx),%ebx
node->Parent = parent;
11174d: 89 50 08 mov %edx,0x8(%eax)
node->st_ino = ++fs_info->ino_count;
111750: 8b 4b 04 mov 0x4(%ebx),%ecx 111753: 41 inc %ecx 111754: 89 4b 04 mov %ecx,0x4(%ebx) 111757: 89 48 38 mov %ecx,0x38(%eax)
RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node );
11175a: 83 ec 08 sub $0x8,%esp 11175d: 50 push %eax 11175e: 83 c2 50 add $0x50,%edx 111761: 52 push %edx 111762: 89 45 e4 mov %eax,-0x1c(%ebp) 111765: e8 62 a7 ff ff call 10becc <_Chain_Append>
rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node;
11176a: 83 c4 10 add $0x10,%esp 11176d: 8b 45 e4 mov -0x1c(%ebp),%eax
}
111770: 8d 65 f4 lea -0xc(%ebp),%esp 111773: 5b pop %ebx 111774: 5e pop %esi 111775: 5f pop %edi 111776: c9 leave 111777: 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;
111778: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) <== NOT EXECUTED 11177f: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) <== NOT EXECUTED
node->info.linearfile.direct = 0;
111786: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax) <== NOT EXECUTED
case IMFS_MEMORY_FILE: node->info.file.size = 0;
11178d: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) 111794: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
node->info.file.indirect = 0;
11179b: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax)
node->info.file.doubly_indirect = 0;
1117a2: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax)
node->info.file.triply_indirect = 0;
1117a9: c7 40 60 00 00 00 00 movl $0x0,0x60(%eax)
break;
1117b0: eb 93 jmp 111745 <IMFS_create_node+0x69>
1117b2: 66 90 xchg %ax,%ax <== NOT EXECUTED
case IMFS_FIFO: node->info.fifo.pipe = NULL;
1117b4: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax)
break;
1117bb: eb 88 jmp 111745 <IMFS_create_node+0x69>
1117bd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major;
1117c0: 8b 17 mov (%edi),%edx 1117c2: 89 50 50 mov %edx,0x50(%eax)
node->info.device.minor = info->device.minor;
1117c5: 8b 57 04 mov 0x4(%edi),%edx 1117c8: 89 50 54 mov %edx,0x54(%eax)
break;
1117cb: e9 75 ff ff ff jmp 111745 <IMFS_create_node+0x69>
*/ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain);
1117d0: 8d 50 54 lea 0x54(%eax),%edx 1117d3: 89 50 50 mov %edx,0x50(%eax)
the_chain->permanent_null = NULL;
1117d6: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
the_chain->last = _Chain_Head(the_chain);
1117dd: 8d 50 50 lea 0x50(%eax),%edx 1117e0: 89 50 58 mov %edx,0x58(%eax) 1117e3: e9 5d ff ff ff jmp 111745 <IMFS_create_node+0x69>
001116a8 <IMFS_create_root_node>: IMFS_jnode_t *IMFS_create_root_node(void) {
1116a8: 55 push %ebp 1116a9: 89 e5 mov %esp,%ebp 1116ab: 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) );
1116ae: 68 ed 41 00 00 push $0x41ed 1116b3: 68 39 fa 11 00 push $0x11fa39 1116b8: 6a 01 push $0x1 1116ba: e8 7d ff ff ff call 11163c <IMFS_allocate_node>
if ( !node )
1116bf: 83 c4 10 add $0x10,%esp 1116c2: 85 c0 test %eax,%eax
1116c4: 74 13 je 1116d9 <IMFS_create_root_node+0x31><== ALWAYS TAKEN
*/ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain);
1116c6: 8d 50 54 lea 0x54(%eax),%edx 1116c9: 89 50 50 mov %edx,0x50(%eax)
the_chain->permanent_null = NULL;
1116cc: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
the_chain->last = _Chain_Head(the_chain);
1116d3: 8d 50 50 lea 0x50(%eax),%edx 1116d6: 89 50 58 mov %edx,0x58(%eax)
* NOTE: Root node is always a directory. */ rtems_chain_initialize_empty(&node->info.directory.Entries); return node; }
1116d9: c9 leave 1116da: c3 ret
001094f4 <IMFS_dump_directory>: void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) {
1094f4: 55 push %ebp 1094f5: 89 e5 mov %esp,%ebp 1094f7: 57 push %edi 1094f8: 56 push %esi 1094f9: 53 push %ebx 1094fa: 83 ec 1c sub $0x1c,%esp 1094fd: 8b 45 08 mov 0x8(%ebp),%eax 109500: 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 );
109503: 85 c0 test %eax,%eax
109505: 74 7a je 109581 <IMFS_dump_directory+0x8d><== ALWAYS TAKEN
assert( level >= 0 );
109507: 85 f6 test %esi,%esi
109509: 0f 88 a4 00 00 00 js 1095b3 <IMFS_dump_directory+0xbf><== ALWAYS TAKEN
assert( the_directory->type == IMFS_DIRECTORY );
10950f: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
109513: 0f 85 81 00 00 00 jne 10959a <IMFS_dump_directory+0xa6><== ALWAYS TAKEN
the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first;
109519: 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;
10951c: 83 c0 54 add $0x54,%eax 10951f: 89 45 e4 mov %eax,-0x1c(%ebp) 109522: 39 c7 cmp %eax,%edi
109524: 74 41 je 109567 <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 );
109526: 8d 46 01 lea 0x1(%esi),%eax 109529: 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;
10952c: 31 db xor %ebx,%ebx 10952e: 66 90 xchg %ax,%ax
for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." );
109530: a1 80 a6 12 00 mov 0x12a680,%eax 109535: ff 70 08 pushl 0x8(%eax) 109538: 6a 04 push $0x4 10953a: 6a 01 push $0x1 10953c: 68 95 54 12 00 push $0x125495 109541: e8 02 e0 00 00 call 117548 <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++ )
109546: 43 inc %ebx 109547: 83 c4 10 add $0x10,%esp 10954a: 39 de cmp %ebx,%esi
10954c: 7d e2 jge 109530 <IMFS_dump_directory+0x3c> fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode );
10954e: 83 ec 0c sub $0xc,%esp 109551: 57 push %edi 109552: e8 f5 fd ff ff call 10934c <IMFS_print_jnode>
if ( the_jnode->type == IMFS_DIRECTORY )
109557: 83 c4 10 add $0x10,%esp 10955a: 83 7f 4c 01 cmpl $0x1,0x4c(%edi)
10955e: 74 10 je 109570 <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 ) {
109560: 8b 3f mov (%edi),%edi
assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first;
109562: 3b 7d e4 cmp -0x1c(%ebp),%edi
109565: 75 c5 jne 10952c <IMFS_dump_directory+0x38> fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } }
109567: 8d 65 f4 lea -0xc(%ebp),%esp 10956a: 5b pop %ebx 10956b: 5e pop %esi 10956c: 5f pop %edi 10956d: c9 leave 10956e: c3 ret
10956f: 90 nop <== NOT EXECUTED
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 );
109570: 83 ec 08 sub $0x8,%esp 109573: ff 75 e0 pushl -0x20(%ebp) 109576: 57 push %edi 109577: e8 78 ff ff ff call 1094f4 <IMFS_dump_directory> 10957c: 83 c4 10 add $0x10,%esp 10957f: eb df jmp 109560 <IMFS_dump_directory+0x6c>
rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory );
109581: 68 7c 54 12 00 push $0x12547c <== NOT EXECUTED 109586: 68 c0 55 12 00 push $0x1255c0 <== NOT EXECUTED 10958b: 68 84 00 00 00 push $0x84 <== NOT EXECUTED 109590: 68 b8 54 12 00 push $0x1254b8 <== NOT EXECUTED 109595: e8 da 06 00 00 call 109c74 <__assert_func> <== NOT EXECUTED
assert( level >= 0 ); assert( the_directory->type == IMFS_DIRECTORY );
10959a: 68 04 55 12 00 push $0x125504 <== NOT EXECUTED 10959f: 68 c0 55 12 00 push $0x1255c0 <== NOT EXECUTED 1095a4: 68 88 00 00 00 push $0x88 <== NOT EXECUTED 1095a9: 68 b8 54 12 00 push $0x1254b8 <== NOT EXECUTED 1095ae: e8 c1 06 00 00 call 109c74 <__assert_func> <== NOT EXECUTED
IMFS_jnode_t *the_jnode; int i; assert( the_directory ); assert( level >= 0 );
1095b3: 68 8a 54 12 00 push $0x12548a <== NOT EXECUTED 1095b8: 68 c0 55 12 00 push $0x1255c0 <== NOT EXECUTED 1095bd: 68 86 00 00 00 push $0x86 <== NOT EXECUTED 1095c2: 68 b8 54 12 00 push $0x1254b8 <== NOT EXECUTED 1095c7: e8 a8 06 00 00 call 109c74 <__assert_func> <== NOT EXECUTED
0010ebe4 <IMFS_eval_path>: const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
10ebe4: 55 push %ebp 10ebe5: 89 e5 mov %esp,%ebp 10ebe7: 57 push %edi 10ebe8: 56 push %esi 10ebe9: 53 push %ebx 10ebea: 83 ec 5c sub $0x5c,%esp
/* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access;
10ebed: 8b 45 14 mov 0x14(%ebp),%eax 10ebf0: 8b 38 mov (%eax),%edi 10ebf2: c7 45 a4 00 00 00 00 movl $0x0,-0x5c(%ebp) 10ebf9: 8d 5d af lea -0x51(%ebp),%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 );
10ebfc: 8d 55 e4 lea -0x1c(%ebp),%edx 10ebff: 52 push %edx 10ec00: 53 push %ebx 10ec01: ff 75 0c pushl 0xc(%ebp) 10ec04: 8b 45 08 mov 0x8(%ebp),%eax 10ec07: 03 45 a4 add -0x5c(%ebp),%eax 10ec0a: 50 push %eax 10ec0b: e8 38 08 00 00 call 10f448 <IMFS_get_token>
pathnamelen -= len;
10ec10: 8b 55 e4 mov -0x1c(%ebp),%edx
i += len; if ( !pathloc->node_access )
10ec13: 8b 75 14 mov 0x14(%ebp),%esi 10ec16: 8b 0e mov (%esi),%ecx 10ec18: 83 c4 10 add $0x10,%esp 10ec1b: 85 c9 test %ecx,%ecx
10ec1d: 0f 84 d5 00 00 00 je 10ecf8 <IMFS_eval_path+0x114> <== ALWAYS TAKEN
*/ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len;
10ec23: 29 55 0c sub %edx,0xc(%ebp)
i += len;
10ec26: 01 55 a4 add %edx,-0x5c(%ebp)
rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH )
10ec29: 85 c0 test %eax,%eax
10ec2b: 75 37 jne 10ec64 <IMFS_eval_path+0x80> * 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 ) {
10ec2d: 83 79 4c 01 cmpl $0x1,0x4c(%ecx)
10ec31: 0f 84 11 01 00 00 je 10ed48 <IMFS_eval_path+0x164> flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc );
10ec37: 83 ec 0c sub $0xc,%esp 10ec3a: ff 75 14 pushl 0x14(%ebp) 10ec3d: e8 fe fd ff ff call 10ea40 <IMFS_Set_handlers> 10ec42: 83 c4 10 add $0x10,%esp
/* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
10ec45: 8b 55 10 mov 0x10(%ebp),%edx 10ec48: c1 e2 06 shl $0x6,%edx
if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access;
10ec4b: 8b 75 14 mov 0x14(%ebp),%esi 10ec4e: 8b 0e mov (%esi),%ecx 10ec50: 8b 49 30 mov 0x30(%ecx),%ecx 10ec53: 21 d1 and %edx,%ecx 10ec55: 39 ca cmp %ecx,%edx
10ec57: 0f 85 d3 00 00 00 jne 10ed30 <IMFS_eval_path+0x14c>
10ec5d: e9 ba 00 00 00 jmp 10ed1c <IMFS_eval_path+0x138>
10ec62: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY )
10ec64: 83 7f 4c 01 cmpl $0x1,0x4c(%edi)
10ec68: 0f 84 b6 00 00 00 je 10ed24 <IMFS_eval_path+0x140>
10ec6e: 89 cf mov %ecx,%edi
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) {
10ec70: 83 f8 03 cmp $0x3,%eax
10ec73: 74 1b je 10ec90 <IMFS_eval_path+0xac>
10ec75: 83 f8 04 cmp $0x4,%eax
10ec78: 0f 84 8e 00 00 00 je 10ed0c <IMFS_eval_path+0x128>
10ec7e: 83 f8 02 cmp $0x2,%eax
10ec81: 74 51 je 10ecd4 <IMFS_eval_path+0xf0> /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
10ec83: 83 f8 04 cmp $0x4,%eax
10ec86: 0f 85 70 ff ff ff jne 10ebfc <IMFS_eval_path+0x18> <== NEVER TAKEN
10ec8c: eb 9f jmp 10ec2d <IMFS_eval_path+0x49> <== NOT EXECUTED 10ec8e: 66 90 xchg %ax,%ax <== NOT EXECUTED
case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) {
10ec90: 8b 41 4c mov 0x4c(%ecx),%eax 10ec93: 83 f8 03 cmp $0x3,%eax
10ec96: 0f 84 f0 00 00 00 je 10ed8c <IMFS_eval_path+0x1a8> node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) {
10ec9c: 83 f8 04 cmp $0x4,%eax
10ec9f: 0f 84 5c 01 00 00 je 10ee01 <IMFS_eval_path+0x21d> /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY )
10eca5: 48 dec %eax
10eca6: 0f 85 01 01 00 00 jne 10edad <IMFS_eval_path+0x1c9> /* * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) {
10ecac: 8b 47 5c mov 0x5c(%edi),%eax 10ecaf: 85 c0 test %eax,%eax
10ecb1: 0f 85 0b 01 00 00 jne 10edc2 <IMFS_eval_path+0x1de> /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token );
10ecb7: 83 ec 08 sub $0x8,%esp 10ecba: 53 push %ebx 10ecbb: 57 push %edi 10ecbc: e8 f7 06 00 00 call 10f3b8 <IMFS_find_match_in_dir> 10ecc1: 89 c7 mov %eax,%edi
if ( !node )
10ecc3: 83 c4 10 add $0x10,%esp 10ecc6: 85 c0 test %eax,%eax
10ecc8: 74 2e je 10ecf8 <IMFS_eval_path+0x114> /* * Set the node access to the point we have found. */ pathloc->node_access = node;
10ecca: 8b 45 14 mov 0x14(%ebp),%eax 10eccd: 89 38 mov %edi,(%eax)
break;
10eccf: e9 28 ff ff ff jmp 10ebfc <IMFS_eval_path+0x18>
case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access )
10ecd4: a1 18 30 12 00 mov 0x123018,%eax 10ecd9: 3b 48 18 cmp 0x18(%eax),%ecx
10ecdc: 0f 84 1a ff ff ff je 10ebfc <IMFS_eval_path+0x18> /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) {
10ece2: 8b 75 14 mov 0x14(%ebp),%esi 10ece5: 8b 46 10 mov 0x10(%esi),%eax
/* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access ==
10ece8: 3b 48 1c cmp 0x1c(%eax),%ecx
10eceb: 0f 84 2f 01 00 00 je 10ee20 <IMFS_eval_path+0x23c> pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent )
10ecf1: 8b 79 08 mov 0x8(%ecx),%edi 10ecf4: 85 ff test %edi,%edi
10ecf6: 75 d2 jne 10ecca <IMFS_eval_path+0xe6> * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); if ( !node ) rtems_set_errno_and_return_minus_one( ENOENT );
10ecf8: e8 bb 37 00 00 call 1124b8 <__errno> 10ecfd: c7 00 02 00 00 00 movl $0x2,(%eax) 10ed03: b8 ff ff ff ff mov $0xffffffff,%eax 10ed08: eb 12 jmp 10ed1c <IMFS_eval_path+0x138>
10ed0a: 66 90 xchg %ax,%ax <== NOT EXECUTED
case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
10ed0c: e8 a7 37 00 00 call 1124b8 <__errno> 10ed11: c7 00 5b 00 00 00 movl $0x5b,(%eax) 10ed17: b8 ff ff ff ff mov $0xffffffff,%eax
if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; }
10ed1c: 8d 65 f4 lea -0xc(%ebp),%esp 10ed1f: 5b pop %ebx 10ed20: 5e pop %esi 10ed21: 5f pop %edi 10ed22: c9 leave 10ed23: c3 ret
if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access;
10ed24: 89 cf mov %ecx,%edi
/* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
10ed26: f6 41 30 40 testb $0x40,0x30(%ecx)
10ed2a: 0f 85 40 ff ff ff jne 10ec70 <IMFS_eval_path+0x8c> /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES );
10ed30: e8 83 37 00 00 call 1124b8 <__errno> 10ed35: c7 00 0d 00 00 00 movl $0xd,(%eax) 10ed3b: b8 ff ff ff ff mov $0xffffffff,%eax
return result; }
10ed40: 8d 65 f4 lea -0xc(%ebp),%esp 10ed43: 5b pop %ebx 10ed44: 5e pop %esi 10ed45: 5f pop %edi 10ed46: c9 leave 10ed47: c3 ret
* * 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 ) {
10ed48: 8b 41 5c mov 0x5c(%ecx),%eax 10ed4b: 85 c0 test %eax,%eax
10ed4d: 0f 84 e4 fe ff ff je 10ec37 <IMFS_eval_path+0x53> newloc = node->info.directory.mt_fs->mt_fs_root;
10ed53: 8d 7d d0 lea -0x30(%ebp),%edi 10ed56: 8d 70 1c lea 0x1c(%eax),%esi 10ed59: b9 05 00 00 00 mov $0x5,%ecx 10ed5e: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
*pathloc = newloc;
10ed60: 8d 75 d0 lea -0x30(%ebp),%esi 10ed63: b1 05 mov $0x5,%cl 10ed65: 8b 7d 14 mov 0x14(%ebp),%edi 10ed68: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
10ed6a: 8b 4d 14 mov 0x14(%ebp),%ecx 10ed6d: 8b 41 0c mov 0xc(%ecx),%eax 10ed70: 51 push %ecx 10ed71: ff 75 10 pushl 0x10(%ebp) 10ed74: 8b 4d 0c mov 0xc(%ebp),%ecx 10ed77: 01 d1 add %edx,%ecx 10ed79: 51 push %ecx 10ed7a: 8b 5d a4 mov -0x5c(%ebp),%ebx 10ed7d: 29 d3 sub %edx,%ebx 10ed7f: 8b 55 08 mov 0x8(%ebp),%edx 10ed82: 01 da add %ebx,%edx 10ed84: 52 push %edx 10ed85: ff 10 call *(%eax) 10ed87: 83 c4 10 add $0x10,%esp 10ed8a: eb 90 jmp 10ed1c <IMFS_eval_path+0x138>
* If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 );
10ed8c: 83 ec 08 sub $0x8,%esp 10ed8f: 6a 00 push $0x0 10ed91: ff 75 14 pushl 0x14(%ebp) 10ed94: e8 23 fd ff ff call 10eabc <IMFS_evaluate_hard_link>
node = pathloc->node_access;
10ed99: 8b 55 14 mov 0x14(%ebp),%edx 10ed9c: 8b 3a mov (%edx),%edi
if ( !node )
10ed9e: 83 c4 10 add $0x10,%esp 10eda1: 85 ff test %edi,%edi
10eda3: 74 08 je 10edad <IMFS_eval_path+0x1c9> <== ALWAYS TAKEN
} else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access;
10eda5: 8b 47 4c mov 0x4c(%edi),%eax 10eda8: e9 f8 fe ff ff jmp 10eca5 <IMFS_eval_path+0xc1>
/* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR );
10edad: e8 06 37 00 00 call 1124b8 <__errno> 10edb2: c7 00 14 00 00 00 movl $0x14,(%eax) 10edb8: b8 ff ff ff ff mov $0xffffffff,%eax 10edbd: e9 5a ff ff ff jmp 10ed1c <IMFS_eval_path+0x138>
* If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root;
10edc2: 8d 7d d0 lea -0x30(%ebp),%edi 10edc5: 8d 70 1c lea 0x1c(%eax),%esi 10edc8: b9 05 00 00 00 mov $0x5,%ecx 10edcd: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
*pathloc = newloc;
10edcf: 8d 75 d0 lea -0x30(%ebp),%esi 10edd2: b1 05 mov $0x5,%cl 10edd4: 8b 7d 14 mov 0x14(%ebp),%edi 10edd7: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
10edd9: 8b 55 e4 mov -0x1c(%ebp),%edx 10eddc: 8b 5d 14 mov 0x14(%ebp),%ebx 10eddf: 8b 43 0c mov 0xc(%ebx),%eax 10ede2: 53 push %ebx 10ede3: ff 75 10 pushl 0x10(%ebp) 10ede6: 8b 4d 0c mov 0xc(%ebp),%ecx 10ede9: 01 d1 add %edx,%ecx 10edeb: 51 push %ecx 10edec: 8b 75 a4 mov -0x5c(%ebp),%esi 10edef: 29 d6 sub %edx,%esi 10edf1: 8b 55 08 mov 0x8(%ebp),%edx 10edf4: 01 f2 add %esi,%edx 10edf6: 52 push %edx 10edf7: ff 10 call *(%eax) 10edf9: 83 c4 10 add $0x10,%esp 10edfc: e9 1b ff ff ff jmp 10ed1c <IMFS_eval_path+0x138>
if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 );
10ee01: 83 ec 08 sub $0x8,%esp 10ee04: 6a 00 push $0x0 10ee06: ff 75 14 pushl 0x14(%ebp) 10ee09: e8 0e fd ff ff call 10eb1c <IMFS_evaluate_sym_link>
node = pathloc->node_access;
10ee0e: 8b 4d 14 mov 0x14(%ebp),%ecx 10ee11: 8b 39 mov (%ecx),%edi
if ( result == -1 )
10ee13: 83 c4 10 add $0x10,%esp 10ee16: 83 f8 ff cmp $0xffffffff,%eax
10ee19: 75 8a jne 10eda5 <IMFS_eval_path+0x1c1> <== NEVER TAKEN
10ee1b: e9 fc fe ff ff jmp 10ed1c <IMFS_eval_path+0x138> <== NOT EXECUTED
*/ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node;
10ee20: 8d 7d d0 lea -0x30(%ebp),%edi 10ee23: 8d 70 08 lea 0x8(%eax),%esi 10ee26: b9 05 00 00 00 mov $0x5,%ecx 10ee2b: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
*pathloc = newloc;
10ee2d: 8d 75 d0 lea -0x30(%ebp),%esi 10ee30: b1 05 mov $0x5,%cl 10ee32: 8b 7d 14 mov 0x14(%ebp),%edi 10ee35: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
10ee37: 8b 4d 14 mov 0x14(%ebp),%ecx 10ee3a: 8b 41 0c mov 0xc(%ecx),%eax 10ee3d: 51 push %ecx 10ee3e: ff 75 10 pushl 0x10(%ebp) 10ee41: 8b 5d 0c mov 0xc(%ebp),%ebx 10ee44: 8d 0c 1a lea (%edx,%ebx,1),%ecx 10ee47: eb a2 jmp 10edeb <IMFS_eval_path+0x207>
0010eef8 <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 */ ) {
10eef8: 55 push %ebp 10eef9: 89 e5 mov %esp,%ebp 10eefb: 57 push %edi 10eefc: 56 push %esi 10eefd: 53 push %ebx 10eefe: 83 ec 5c sub $0x5c,%esp
/* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access;
10ef01: 8b 45 0c mov 0xc(%ebp),%eax 10ef04: 8b 18 mov (%eax),%ebx
/* * Get the path length. */ pathlen = strlen( path );
10ef06: 31 c0 xor %eax,%eax 10ef08: b9 ff ff ff ff mov $0xffffffff,%ecx 10ef0d: 8b 7d 08 mov 0x8(%ebp),%edi 10ef10: f2 ae repnz scas %es:(%edi),%al 10ef12: f7 d1 not %ecx 10ef14: 8d 71 ff lea -0x1(%ecx),%esi 10ef17: c7 45 a4 00 00 00 00 movl $0x0,-0x5c(%ebp)
* Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len );
10ef1e: 8d 55 e4 lea -0x1c(%ebp),%edx 10ef21: 52 push %edx 10ef22: 8d 4d af lea -0x51(%ebp),%ecx 10ef25: 51 push %ecx 10ef26: 56 push %esi 10ef27: 8b 45 08 mov 0x8(%ebp),%eax 10ef2a: 03 45 a4 add -0x5c(%ebp),%eax 10ef2d: 50 push %eax 10ef2e: e8 15 05 00 00 call 10f448 <IMFS_get_token>
pathlen -= len;
10ef33: 8b 4d e4 mov -0x1c(%ebp),%ecx 10ef36: 29 ce sub %ecx,%esi
i += len; if ( !pathloc->node_access )
10ef38: 8b 7d 0c mov 0xc(%ebp),%edi 10ef3b: 8b 17 mov (%edi),%edx 10ef3d: 83 c4 10 add $0x10,%esp 10ef40: 85 d2 test %edx,%edx
10ef42: 0f 84 20 01 00 00 je 10f068 <IMFS_evaluate_for_make+0x170><== ALWAYS TAKEN
/* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH )
10ef48: 85 c0 test %eax,%eax
10ef4a: 75 18 jne 10ef64 <IMFS_evaluate_for_make+0x6c> pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST );
10ef4c: e8 67 35 00 00 call 1124b8 <__errno> 10ef51: c7 00 11 00 00 00 movl $0x11,(%eax) 10ef57: b8 ff ff ff ff mov $0xffffffff,%eax
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; }
10ef5c: 8d 65 f4 lea -0xc(%ebp),%esp 10ef5f: 5b pop %ebx 10ef60: 5e pop %esi 10ef61: 5f pop %edi 10ef62: c9 leave 10ef63: c3 ret
/* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY )
10ef64: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
10ef68: 0f 84 c6 00 00 00 je 10f034 <IMFS_evaluate_for_make+0x13c>
10ef6e: 89 d3 mov %edx,%ebx
while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len;
10ef70: 01 4d a4 add %ecx,-0x5c(%ebp)
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) {
10ef73: 83 f8 02 cmp $0x2,%eax
10ef76: 0f 84 88 00 00 00 je 10f004 <IMFS_evaluate_for_make+0x10c> 10ef7c: 76 22 jbe 10efa0 <IMFS_evaluate_for_make+0xa8>
10ef7e: 83 f8 03 cmp $0x3,%eax
10ef81: 74 29 je 10efac <IMFS_evaluate_for_make+0xb4>
10ef83: 83 f8 04 cmp $0x4,%eax
10ef86: 75 96 jne 10ef1e <IMFS_evaluate_for_make+0x26><== ALWAYS 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 );
10ef88: e8 2b 35 00 00 call 1124b8 <__errno> 10ef8d: c7 00 5b 00 00 00 movl $0x5b,(%eax) 10ef93: b8 ff ff ff ff mov $0xffffffff,%eax
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; }
10ef98: 8d 65 f4 lea -0xc(%ebp),%esp 10ef9b: 5b pop %ebx 10ef9c: 5e pop %esi 10ef9d: 5f pop %edi 10ef9e: c9 leave 10ef9f: 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 ) {
10efa0: 85 c0 test %eax,%eax
10efa2: 74 a8 je 10ef4c <IMFS_evaluate_for_make+0x54><== ALWAYS TAKEN
10efa4: e9 75 ff ff ff jmp 10ef1e <IMFS_evaluate_for_make+0x26>
10efa9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) {
10efac: 8b 42 4c mov 0x4c(%edx),%eax 10efaf: 83 f8 03 cmp $0x3,%eax
10efb2: 0f 84 6b 01 00 00 je 10f123 <IMFS_evaluate_for_make+0x22b> result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) {
10efb8: 83 f8 04 cmp $0x4,%eax
10efbb: 0f 84 85 01 00 00 je 10f146 <IMFS_evaluate_for_make+0x24e> if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node )
10efc1: 85 db test %ebx,%ebx
10efc3: 0f 84 0e 01 00 00 je 10f0d7 <IMFS_evaluate_for_make+0x1df><== ALWAYS TAKEN
/* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY )
10efc9: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
10efcd: 0f 85 04 01 00 00 jne 10f0d7 <IMFS_evaluate_for_make+0x1df> /* * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) {
10efd3: 8b 43 5c mov 0x5c(%ebx),%eax 10efd6: 85 c0 test %eax,%eax
10efd8: 0f 85 0e 01 00 00 jne 10f0ec <IMFS_evaluate_for_make+0x1f4> /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token );
10efde: 83 ec 08 sub $0x8,%esp 10efe1: 8d 7d af lea -0x51(%ebp),%edi 10efe4: 57 push %edi 10efe5: 53 push %ebx 10efe6: e8 cd 03 00 00 call 10f3b8 <IMFS_find_match_in_dir> 10efeb: 89 c3 mov %eax,%ebx
/* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node )
10efed: 83 c4 10 add $0x10,%esp 10eff0: 85 c0 test %eax,%eax
10eff2: 0f 84 88 00 00 00 je 10f080 <IMFS_evaluate_for_make+0x188> done = true; else pathloc->node_access = node;
10eff8: 8b 45 0c mov 0xc(%ebp),%eax 10effb: 89 18 mov %ebx,(%eax) 10effd: e9 1c ff ff ff jmp 10ef1e <IMFS_evaluate_for_make+0x26>
10f002: 66 90 xchg %ax,%ax <== NOT EXECUTED
case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access )
10f004: a1 18 30 12 00 mov 0x123018,%eax 10f009: 3b 50 18 cmp 0x18(%eax),%edx
10f00c: 0f 84 0c ff ff ff je 10ef1e <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){
10f012: 8b 5d 0c mov 0xc(%ebp),%ebx 10f015: 8b 43 10 mov 0x10(%ebx),%eax 10f018: 3b 50 1c cmp 0x1c(%eax),%edx
10f01b: 0f 84 48 01 00 00 je 10f169 <IMFS_evaluate_for_make+0x271> *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent )
10f021: 8b 5a 08 mov 0x8(%edx),%ebx 10f024: 85 db test %ebx,%ebx
10f026: 74 40 je 10f068 <IMFS_evaluate_for_make+0x170> rtems_set_errno_and_return_minus_one( ENOENT ); node = node->Parent; } pathloc->node_access = node;
10f028: 8b 7d 0c mov 0xc(%ebp),%edi 10f02b: 89 1f mov %ebx,(%edi)
break;
10f02d: e9 ec fe ff ff jmp 10ef1e <IMFS_evaluate_for_make+0x26>
10f032: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access;
10f034: 89 d3 mov %edx,%ebx
/* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
10f036: f6 42 30 40 testb $0x40,0x30(%edx)
10f03a: 0f 85 30 ff ff ff jne 10ef70 <IMFS_evaluate_for_make+0x78> /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES );
10f040: e8 73 34 00 00 call 1124b8 <__errno> 10f045: c7 00 0d 00 00 00 movl $0xd,(%eax) 10f04b: b8 ff ff ff ff mov $0xffffffff,%eax
return result; }
10f050: 8d 65 f4 lea -0xc(%ebp),%esp 10f053: 5b pop %ebx 10f054: 5e pop %esi 10f055: 5f pop %edi 10f056: c9 leave 10f057: c3 ret
/* * 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++) {
10f058: 8a 42 01 mov 0x1(%edx),%al 10f05b: 42 inc %edx 10f05c: 84 c0 test %al,%al
10f05e: 74 44 je 10f0a4 <IMFS_evaluate_for_make+0x1ac> if ( !IMFS_is_separator( path[ i ] ) )
10f060: 3c 2f cmp $0x2f,%al
10f062: 74 f4 je 10f058 <IMFS_evaluate_for_make+0x160>
10f064: 3c 5c cmp $0x5c,%al
10f066: 74 f0 je 10f058 <IMFS_evaluate_for_make+0x160> rtems_set_errno_and_return_minus_one( ENOENT );
10f068: e8 4b 34 00 00 call 1124b8 <__errno> 10f06d: c7 00 02 00 00 00 movl $0x2,(%eax) 10f073: b8 ff ff ff ff mov $0xffffffff,%eax 10f078: e9 df fe ff ff jmp 10ef5c <IMFS_evaluate_for_make+0x64>
10f07d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ];
10f080: 8b 45 a4 mov -0x5c(%ebp),%eax 10f083: 2b 45 e4 sub -0x1c(%ebp),%eax 10f086: 03 45 08 add 0x8(%ebp),%eax 10f089: 8b 55 10 mov 0x10(%ebp),%edx 10f08c: 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++) {
10f08e: 8b 5d 08 mov 0x8(%ebp),%ebx 10f091: 8b 4d a4 mov -0x5c(%ebp),%ecx 10f094: 8a 04 0b mov (%ebx,%ecx,1),%al 10f097: 84 c0 test %al,%al
10f099: 74 09 je 10f0a4 <IMFS_evaluate_for_make+0x1ac>
10f09b: 89 da mov %ebx,%edx 10f09d: 01 ca add %ecx,%edx 10f09f: eb bf jmp 10f060 <IMFS_evaluate_for_make+0x168>
10f0a1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc );
10f0a4: 83 ec 0c sub $0xc,%esp 10f0a7: ff 75 0c pushl 0xc(%ebp) 10f0aa: e8 91 f9 ff ff call 10ea40 <IMFS_Set_handlers>
/* * The returned node must be a directory */ node = pathloc->node_access;
10f0af: 8b 7d 0c mov 0xc(%ebp),%edi 10f0b2: 8b 17 mov (%edi),%edx
if ( node->type != IMFS_DIRECTORY )
10f0b4: 83 c4 10 add $0x10,%esp 10f0b7: 83 7a 4c 01 cmpl $0x1,0x4c(%edx)
10f0bb: 75 1a jne 10f0d7 <IMFS_evaluate_for_make+0x1df><== ALWAYS TAKEN
/* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
10f0bd: 8b 52 30 mov 0x30(%edx),%edx 10f0c0: 81 e2 c0 00 00 00 and $0xc0,%edx 10f0c6: 81 fa c0 00 00 00 cmp $0xc0,%edx
10f0cc: 0f 85 6e ff ff ff jne 10f040 <IMFS_evaluate_for_make+0x148>
10f0d2: e9 85 fe ff ff jmp 10ef5c <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 );
10f0d7: e8 dc 33 00 00 call 1124b8 <__errno> 10f0dc: c7 00 14 00 00 00 movl $0x14,(%eax) 10f0e2: b8 ff ff ff ff mov $0xffffffff,%eax 10f0e7: e9 70 fe ff ff jmp 10ef5c <IMFS_evaluate_for_make+0x64>
* If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root;
10f0ec: 8d 7d d0 lea -0x30(%ebp),%edi 10f0ef: 8d 70 1c lea 0x1c(%eax),%esi 10f0f2: b9 05 00 00 00 mov $0x5,%ecx 10f0f7: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
*pathloc = newloc;
10f0f9: 8d 75 d0 lea -0x30(%ebp),%esi 10f0fc: b1 05 mov $0x5,%cl 10f0fe: 8b 7d 0c mov 0xc(%ebp),%edi 10f101: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
10f103: 50 push %eax 10f104: 8b 4d 0c mov 0xc(%ebp),%ecx 10f107: 8b 41 0c mov 0xc(%ecx),%eax 10f10a: ff 75 10 pushl 0x10(%ebp) 10f10d: 51 push %ecx 10f10e: 8b 55 a4 mov -0x5c(%ebp),%edx 10f111: 2b 55 e4 sub -0x1c(%ebp),%edx 10f114: 03 55 08 add 0x8(%ebp),%edx 10f117: 52 push %edx 10f118: ff 50 04 call *0x4(%eax) 10f11b: 83 c4 10 add $0x10,%esp 10f11e: e9 39 fe ff ff jmp 10ef5c <IMFS_evaluate_for_make+0x64>
case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { result = IMFS_evaluate_link( pathloc, 0 );
10f123: 83 ec 08 sub $0x8,%esp 10f126: 6a 00 push $0x0 10f128: ff 75 0c pushl 0xc(%ebp) 10f12b: e8 1c fd ff ff call 10ee4c <IMFS_evaluate_link>
if ( result == -1 )
10f130: 83 c4 10 add $0x10,%esp 10f133: 83 f8 ff cmp $0xffffffff,%eax
10f136: 0f 84 20 fe ff ff je 10ef5c <IMFS_evaluate_for_make+0x64><== ALWAYS TAKEN
10f13c: 8b 45 0c mov 0xc(%ebp),%eax 10f13f: 8b 18 mov (%eax),%ebx 10f141: e9 7b fe ff ff jmp 10efc1 <IMFS_evaluate_for_make+0xc9>
return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 );
10f146: 83 ec 08 sub $0x8,%esp 10f149: 6a 00 push $0x0 10f14b: ff 75 0c pushl 0xc(%ebp) 10f14e: e8 f9 fc ff ff call 10ee4c <IMFS_evaluate_link>
if ( result == -1 )
10f153: 83 c4 10 add $0x10,%esp 10f156: 83 f8 ff cmp $0xffffffff,%eax
10f159: 0f 84 fd fd ff ff je 10ef5c <IMFS_evaluate_for_make+0x64><== ALWAYS TAKEN
10f15f: 8b 55 0c mov 0xc(%ebp),%edx 10f162: 8b 1a mov (%edx),%ebx 10f164: e9 58 fe ff ff jmp 10efc1 <IMFS_evaluate_for_make+0xc9> 10f169: 89 ca mov %ecx,%edx
if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node;
10f16b: 8d 7d d0 lea -0x30(%ebp),%edi 10f16e: 8d 70 08 lea 0x8(%eax),%esi 10f171: b9 05 00 00 00 mov $0x5,%ecx 10f176: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
*pathloc = newloc;
10f178: 8d 75 d0 lea -0x30(%ebp),%esi 10f17b: b1 05 mov $0x5,%cl 10f17d: 89 df mov %ebx,%edi 10f17f: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
10f181: 51 push %ecx 10f182: 8b 43 0c mov 0xc(%ebx),%eax 10f185: ff 75 10 pushl 0x10(%ebp) 10f188: 53 push %ebx 10f189: 8b 4d a4 mov -0x5c(%ebp),%ecx 10f18c: 29 d1 sub %edx,%ecx 10f18e: 8b 55 08 mov 0x8(%ebp),%edx 10f191: 01 ca add %ecx,%edx 10f193: 52 push %edx 10f194: ff 50 04 call *0x4(%eax) 10f197: 83 c4 10 add $0x10,%esp 10f19a: e9 bd fd ff ff jmp 10ef5c <IMFS_evaluate_for_make+0x64>
0010eabc <IMFS_evaluate_hard_link>: int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) {
10eabc: 55 push %ebp 10eabd: 89 e5 mov %esp,%ebp 10eabf: 53 push %ebx 10eac0: 83 ec 04 sub $0x4,%esp 10eac3: 8b 5d 08 mov 0x8(%ebp),%ebx
IMFS_jnode_t *jnode = node->node_access;
10eac6: 8b 03 mov (%ebx),%eax
/* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK )
10eac8: 83 78 4c 03 cmpl $0x3,0x4c(%eax)
10eacc: 75 41 jne 10eb0f <IMFS_evaluate_hard_link+0x53><== ALWAYS TAKEN
/* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node;
10eace: 8b 40 50 mov 0x50(%eax),%eax 10ead1: 89 03 mov %eax,(%ebx)
IMFS_Set_handlers( node );
10ead3: 83 ec 0c sub $0xc,%esp 10ead6: 53 push %ebx 10ead7: e8 64 ff ff ff call 10ea40 <IMFS_Set_handlers>
/* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
10eadc: 8b 45 0c mov 0xc(%ebp),%eax 10eadf: c1 e0 06 shl $0x6,%eax
if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access;
10eae2: 8b 13 mov (%ebx),%edx 10eae4: 8b 52 30 mov 0x30(%edx),%edx 10eae7: 21 c2 and %eax,%edx 10eae9: 83 c4 10 add $0x10,%esp 10eaec: 39 d0 cmp %edx,%eax
10eaee: 74 18 je 10eb08 <IMFS_evaluate_hard_link+0x4c><== NEVER TAKEN
/* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES );
10eaf0: e8 c3 39 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10eaf5: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED 10eafb: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return result; }
10eb00: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10eb03: c9 leave <== NOT EXECUTED 10eb04: c3 ret <== NOT EXECUTED 10eb05: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access;
10eb08: 31 c0 xor %eax,%eax
if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; }
10eb0a: 8b 5d fc mov -0x4(%ebp),%ebx 10eb0d: c9 leave 10eb0e: c3 ret
/* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000);
10eb0f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10eb12: 68 00 00 cd ab push $0xabcd0000 <== NOT EXECUTED 10eb17: e8 1c d1 ff ff call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
0010ee4c <IMFS_evaluate_link>: int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) {
10ee4c: 55 push %ebp 10ee4d: 89 e5 mov %esp,%ebp 10ee4f: 57 push %edi 10ee50: 56 push %esi 10ee51: 53 push %ebx 10ee52: 83 ec 0c sub $0xc,%esp 10ee55: 8b 75 08 mov 0x8(%ebp),%esi 10ee58: 8b 7d 0c mov 0xc(%ebp),%edi 10ee5b: 8b 15 18 30 12 00 mov 0x123018,%edx 10ee61: eb 0e jmp 10ee71 <IMFS_evaluate_link+0x25>
10ee63: 90 nop <== NOT EXECUTED
*/ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK )
10ee64: 83 f8 04 cmp $0x4,%eax
10ee67: 74 53 je 10eebc <IMFS_evaluate_link+0x70> result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) );
10ee69: 83 e8 03 sub $0x3,%eax 10ee6c: 83 f8 01 cmp $0x1,%eax
10ee6f: 77 3a ja 10eeab <IMFS_evaluate_link+0x5f><== NEVER TAKEN
{ IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access;
10ee71: 8b 1e mov (%esi),%ebx
/* * Increment and check the link counter. */ rtems_filesystem_link_counts ++;
10ee73: 8b 42 30 mov 0x30(%edx),%eax 10ee76: 40 inc %eax 10ee77: 66 89 42 30 mov %ax,0x30(%edx)
if ( rtems_filesystem_link_counts > MAXSYMLINK ) {
10ee7b: 66 83 f8 05 cmp $0x5,%ax
10ee7f: 77 57 ja 10eed8 <IMFS_evaluate_link+0x8c> /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK )
10ee81: 8b 43 4c mov 0x4c(%ebx),%eax 10ee84: 83 f8 03 cmp $0x3,%eax
10ee87: 75 db jne 10ee64 <IMFS_evaluate_link+0x18> result = IMFS_evaluate_hard_link( node, flags );
10ee89: 83 ec 08 sub $0x8,%esp 10ee8c: 57 push %edi 10ee8d: 56 push %esi 10ee8e: e8 29 fc ff ff call 10eabc <IMFS_evaluate_hard_link> 10ee93: 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 ) ) );
10ee96: 85 c0 test %eax,%eax
10ee98: 75 33 jne 10eecd <IMFS_evaluate_link+0x81><== ALWAYS TAKEN
10ee9a: 8b 43 4c mov 0x4c(%ebx),%eax 10ee9d: 8b 15 18 30 12 00 mov 0x123018,%edx 10eea3: 83 e8 03 sub $0x3,%eax 10eea6: 83 f8 01 cmp $0x1,%eax
10eea9: 76 c6 jbe 10ee71 <IMFS_evaluate_link+0x25><== NEVER TAKEN
10eeab: 31 c0 xor %eax,%eax
/* * Clear link counter. */ rtems_filesystem_link_counts = 0;
10eead: 66 c7 42 30 00 00 movw $0x0,0x30(%edx)
return result; }
10eeb3: 8d 65 f4 lea -0xc(%ebp),%esp 10eeb6: 5b pop %ebx 10eeb7: 5e pop %esi 10eeb8: 5f pop %edi 10eeb9: c9 leave 10eeba: c3 ret
10eebb: 90 nop <== NOT EXECUTED
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 );
10eebc: 83 ec 08 sub $0x8,%esp 10eebf: 57 push %edi 10eec0: 56 push %esi 10eec1: e8 56 fc ff ff call 10eb1c <IMFS_evaluate_sym_link> 10eec6: 83 c4 10 add $0x10,%esp
} while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) );
10eec9: 85 c0 test %eax,%eax
10eecb: 74 cd je 10ee9a <IMFS_evaluate_link+0x4e>
10eecd: 8b 15 18 30 12 00 mov 0x123018,%edx 10eed3: eb d8 jmp 10eead <IMFS_evaluate_link+0x61>
10eed5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* Increment and check the link counter. */ rtems_filesystem_link_counts ++; if ( rtems_filesystem_link_counts > MAXSYMLINK ) { rtems_filesystem_link_counts = 0;
10eed8: 66 c7 42 30 00 00 movw $0x0,0x30(%edx)
rtems_set_errno_and_return_minus_one( ELOOP );
10eede: e8 d5 35 00 00 call 1124b8 <__errno> 10eee3: c7 00 5c 00 00 00 movl $0x5c,(%eax) 10eee9: b8 ff ff ff ff mov $0xffffffff,%eax
*/ rtems_filesystem_link_counts = 0; return result; }
10eeee: 8d 65 f4 lea -0xc(%ebp),%esp 10eef1: 5b pop %ebx 10eef2: 5e pop %esi 10eef3: 5f pop %edi 10eef4: c9 leave 10eef5: c3 ret
0010ea9c <IMFS_evaluate_permission>: int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) {
10ea9c: 55 push %ebp <== NOT EXECUTED 10ea9d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10ea9f: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
/* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
10eaa2: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 10eaa5: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 10eaa8: 8b 12 mov (%edx),%edx <== NOT EXECUTED 10eaaa: 8b 52 30 mov 0x30(%edx),%edx <== NOT EXECUTED 10eaad: 21 c2 and %eax,%edx <== NOT EXECUTED 10eaaf: 39 d0 cmp %edx,%eax <== NOT EXECUTED 10eab1: 0f 94 c0 sete %al <== NOT EXECUTED 10eab4: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
return 1; return 0; }
10eab7: c9 leave <== NOT EXECUTED 10eab8: c3 ret <== NOT EXECUTED
0010eb1c <IMFS_evaluate_sym_link>: int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) {
10eb1c: 55 push %ebp 10eb1d: 89 e5 mov %esp,%ebp 10eb1f: 57 push %edi 10eb20: 56 push %esi 10eb21: 53 push %ebx 10eb22: 83 ec 0c sub $0xc,%esp 10eb25: 8b 5d 08 mov 0x8(%ebp),%ebx
IMFS_jnode_t *jnode = node->node_access;
10eb28: 8b 03 mov (%ebx),%eax
/* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK )
10eb2a: 83 78 4c 04 cmpl $0x4,0x4c(%eax)
10eb2e: 0f 85 a1 00 00 00 jne 10ebd5 <IMFS_evaluate_sym_link+0xb9><== ALWAYS TAKEN
rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent )
10eb34: 8b 50 08 mov 0x8(%eax),%edx 10eb37: 85 d2 test %edx,%edx
10eb39: 0f 84 89 00 00 00 je 10ebc8 <IMFS_evaluate_sym_link+0xac><== ALWAYS TAKEN
/* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent;
10eb3f: 89 13 mov %edx,(%ebx)
rtems_filesystem_get_sym_start_loc(
10eb41: 8b 50 50 mov 0x50(%eax),%edx 10eb44: 8a 0a mov (%edx),%cl 10eb46: 80 f9 2f cmp $0x2f,%cl
10eb49: 74 09 je 10eb54 <IMFS_evaluate_sym_link+0x38>
10eb4b: 80 f9 5c cmp $0x5c,%cl
10eb4e: 74 04 je 10eb54 <IMFS_evaluate_sym_link+0x38><== ALWAYS TAKEN
10eb50: 84 c9 test %cl,%cl
10eb52: 75 70 jne 10ebc4 <IMFS_evaluate_sym_link+0xa8><== NEVER TAKEN
10eb54: 8b 35 18 30 12 00 mov 0x123018,%esi 10eb5a: 83 c6 18 add $0x18,%esi 10eb5d: b9 05 00 00 00 mov $0x5,%ecx 10eb62: 89 df mov %ebx,%edi 10eb64: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 10eb66: 8b 50 50 mov 0x50(%eax),%edx 10eb69: b8 01 00 00 00 mov $0x1,%eax
* Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ),
10eb6e: 01 c2 add %eax,%edx 10eb70: 31 c0 xor %eax,%eax 10eb72: b9 ff ff ff ff mov $0xffffffff,%ecx 10eb77: 89 d7 mov %edx,%edi 10eb79: f2 ae repnz scas %es:(%edi),%al 10eb7b: f7 d1 not %ecx 10eb7d: 49 dec %ecx
/* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path(
10eb7e: 53 push %ebx 10eb7f: ff 75 0c pushl 0xc(%ebp) 10eb82: 51 push %ecx 10eb83: 52 push %edx 10eb84: e8 5b 00 00 00 call 10ebe4 <IMFS_eval_path> 10eb89: 89 c6 mov %eax,%esi
strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node );
10eb8b: 89 1c 24 mov %ebx,(%esp) 10eb8e: e8 ad fe ff ff call 10ea40 <IMFS_Set_handlers>
/* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
10eb93: 8b 45 0c mov 0xc(%ebp),%eax 10eb96: c1 e0 06 shl $0x6,%eax
if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access;
10eb99: 8b 13 mov (%ebx),%edx 10eb9b: 8b 52 30 mov 0x30(%edx),%edx 10eb9e: 21 c2 and %eax,%edx 10eba0: 83 c4 10 add $0x10,%esp 10eba3: 39 d0 cmp %edx,%eax
10eba5: 74 10 je 10ebb7 <IMFS_evaluate_sym_link+0x9b><== NEVER TAKEN
/* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES );
10eba7: e8 0c 39 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10ebac: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED 10ebb2: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
return result; }
10ebb7: 89 f0 mov %esi,%eax 10ebb9: 8d 65 f4 lea -0xc(%ebp),%esp 10ebbc: 5b pop %ebx 10ebbd: 5e pop %esi 10ebbe: 5f pop %edi 10ebbf: c9 leave 10ebc0: c3 ret
10ebc1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* root depending on the symbolic links path. */ node->node_access = jnode->Parent; rtems_filesystem_get_sym_start_loc(
10ebc4: 31 c0 xor %eax,%eax 10ebc6: eb a6 jmp 10eb6e <IMFS_evaluate_sym_link+0x52>
if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 );
10ebc8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10ebcb: 68 00 00 d0 ba push $0xbad00000 <== NOT EXECUTED 10ebd0: e8 63 d0 ff ff call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
/* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000);
10ebd5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10ebd8: 68 00 00 cd ab push $0xabcd0000 <== NOT EXECUTED 10ebdd: e8 56 d0 ff ff call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
0010f314 <IMFS_fifo_close>: } int IMFS_fifo_close( rtems_libio_t *iop ) {
10f314: 55 push %ebp <== NOT EXECUTED 10f315: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f317: 57 push %edi <== NOT EXECUTED 10f318: 56 push %esi <== NOT EXECUTED 10f319: 53 push %ebx <== NOT EXECUTED 10f31a: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED 10f31d: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
10f320: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED
int err = pipe_release(&JNODE2PIPE(jnode), iop);
10f323: 53 push %ebx <== NOT EXECUTED 10f324: 8d 47 50 lea 0x50(%edi),%eax <== NOT EXECUTED 10f327: 50 push %eax <== NOT EXECUTED 10f328: e8 f3 1d 00 00 call 111120 <pipe_release> <== NOT EXECUTED 10f32d: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (! err) {
10f32f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f332: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED 10f335: 74 0d je 10f344 <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);
10f337: 7c 37 jl 10f370 <IMFS_fifo_close+0x5c> <== NOT EXECUTED
}
10f339: 89 f0 mov %esi,%eax <== NOT EXECUTED 10f33b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10f33e: 5b pop %ebx <== NOT EXECUTED 10f33f: 5e pop %esi <== NOT EXECUTED 10f340: 5f pop %edi <== NOT EXECUTED 10f341: c9 leave <== NOT EXECUTED 10f342: c3 ret <== NOT EXECUTED 10f343: 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;
10f344: 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)
10f34b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10f34e: 57 push %edi <== NOT EXECUTED 10f34f: e8 1c 07 00 00 call 10fa70 <rtems_libio_is_file_open><== NOT EXECUTED 10f354: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f357: 85 c0 test %eax,%eax <== NOT EXECUTED 10f359: 75 de jne 10f339 <IMFS_fifo_close+0x25> <== NOT EXECUTED 10f35b: 66 83 7f 34 00 cmpw $0x0,0x34(%edi) <== NOT EXECUTED 10f360: 75 d7 jne 10f339 <IMFS_fifo_close+0x25> <== NOT EXECUTED
free(jnode);
10f362: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10f365: 57 push %edi <== NOT EXECUTED 10f366: e8 11 8d ff ff call 10807c <free> <== NOT EXECUTED 10f36b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f36e: eb c9 jmp 10f339 <IMFS_fifo_close+0x25> <== NOT EXECUTED
} IMFS_FIFO_RETURN(err);
10f370: e8 43 31 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10f375: f7 de neg %esi <== NOT EXECUTED 10f377: 89 30 mov %esi,(%eax) <== NOT EXECUTED 10f379: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 10f37e: eb b9 jmp 10f339 <IMFS_fifo_close+0x25> <== NOT EXECUTED
0010f1e4 <IMFS_fifo_ioctl>: int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) {
10f1e4: 55 push %ebp <== NOT EXECUTED 10f1e5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f1e7: 53 push %ebx <== NOT EXECUTED 10f1e8: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 10f1eb: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 10f1ee: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 10f1f1: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED
int err; if (command == FIONBIO) {
10f1f4: 81 fa 7e 66 04 80 cmp $0x8004667e,%edx <== NOT EXECUTED 10f1fa: 74 1c je 10f218 <IMFS_fifo_ioctl+0x34> <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
10f1fc: 50 push %eax <== NOT EXECUTED 10f1fd: 51 push %ecx <== NOT EXECUTED 10f1fe: 52 push %edx <== NOT EXECUTED 10f1ff: 8b 40 38 mov 0x38(%eax),%eax <== NOT EXECUTED 10f202: ff 70 50 pushl 0x50(%eax) <== NOT EXECUTED 10f205: e8 12 1b 00 00 call 110d1c <pipe_ioctl> <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
10f20a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f20d: 85 c0 test %eax,%eax <== NOT EXECUTED 10f20f: 78 3e js 10f24f <IMFS_fifo_ioctl+0x6b> <== NOT EXECUTED
}
10f211: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f214: c9 leave <== NOT EXECUTED 10f215: c3 ret <== NOT EXECUTED 10f216: 66 90 xchg %ax,%ax <== NOT EXECUTED
) { int err; if (command == FIONBIO) { if (buffer == NULL)
10f218: 85 c9 test %ecx,%ecx <== NOT EXECUTED 10f21a: 74 20 je 10f23c <IMFS_fifo_ioctl+0x58> <== NOT EXECUTED
err = -EFAULT; else { if (*(int *)buffer)
10f21c: 8b 11 mov (%ecx),%edx <== NOT EXECUTED 10f21e: 85 d2 test %edx,%edx <== NOT EXECUTED 10f220: 74 0e je 10f230 <IMFS_fifo_ioctl+0x4c> <== NOT EXECUTED
iop->flags |= LIBIO_FLAGS_NO_DELAY;
10f222: 83 48 14 01 orl $0x1,0x14(%eax) <== NOT EXECUTED 10f226: 31 c0 xor %eax,%eax <== NOT EXECUTED
} else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); }
10f228: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f22b: c9 leave <== NOT EXECUTED 10f22c: c3 ret <== NOT EXECUTED 10f22d: 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;
10f230: 83 60 14 fe andl $0xfffffffe,0x14(%eax) <== NOT EXECUTED 10f234: 31 c0 xor %eax,%eax <== NOT EXECUTED
} else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); }
10f236: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f239: c9 leave <== NOT EXECUTED 10f23a: c3 ret <== NOT EXECUTED 10f23b: 90 nop <== NOT EXECUTED
) { int err; if (command == FIONBIO) { if (buffer == NULL)
10f23c: bb 0e 00 00 00 mov $0xe,%ebx <== NOT EXECUTED
} } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err);
10f241: e8 72 32 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10f246: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 10f248: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f24d: eb c2 jmp 10f211 <IMFS_fifo_ioctl+0x2d> <== NOT EXECUTED 10f24f: 89 c3 mov %eax,%ebx <== NOT EXECUTED 10f251: f7 db neg %ebx <== NOT EXECUTED 10f253: eb ec jmp 10f241 <IMFS_fifo_ioctl+0x5d> <== NOT EXECUTED
0010f1a0 <IMFS_fifo_lseek>: rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
10f1a0: 55 push %ebp <== NOT EXECUTED 10f1a1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f1a3: 53 push %ebx <== NOT EXECUTED 10f1a4: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED 10f1a7: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
10f1aa: 50 push %eax <== NOT EXECUTED 10f1ab: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED 10f1ae: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 10f1b1: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 10f1b4: 8b 40 38 mov 0x38(%eax),%eax <== NOT EXECUTED 10f1b7: ff 70 50 pushl 0x50(%eax) <== NOT EXECUTED 10f1ba: e8 fd 1a 00 00 call 110cbc <pipe_lseek> <== NOT EXECUTED 10f1bf: 89 c3 mov %eax,%ebx <== NOT EXECUTED 10f1c1: 99 cltd <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
10f1c2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10f1c5: 85 d2 test %edx,%edx <== NOT EXECUTED 10f1c7: 78 05 js 10f1ce <IMFS_fifo_lseek+0x2e> <== NOT EXECUTED
}
10f1c9: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f1cc: c9 leave <== NOT EXECUTED 10f1cd: c3 ret <== NOT EXECUTED
rtems_off64_t offset, int whence ) { off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); IMFS_FIFO_RETURN(err);
10f1ce: e8 e5 32 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10f1d3: f7 db neg %ebx <== NOT EXECUTED 10f1d5: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 10f1d7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f1dc: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED 10f1e1: eb e6 jmp 10f1c9 <IMFS_fifo_lseek+0x29> <== NOT EXECUTED
0010f380 <IMFS_fifo_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
10f380: 55 push %ebp 10f381: 89 e5 mov %esp,%ebp 10f383: 53 push %ebx 10f384: 83 ec 0c sub $0xc,%esp 10f387: 8b 45 08 mov 0x8(%ebp),%eax
IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop);
10f38a: 50 push %eax 10f38b: 8b 40 38 mov 0x38(%eax),%eax 10f38e: 83 c0 50 add $0x50,%eax 10f391: 50 push %eax 10f392: e8 9d 1e 00 00 call 111234 <fifo_open> 10f397: 89 c3 mov %eax,%ebx
IMFS_FIFO_RETURN(err);
10f399: 83 c4 10 add $0x10,%esp 10f39c: 85 c0 test %eax,%eax
10f39e: 78 07 js 10f3a7 <IMFS_fifo_open+0x27> <== NEVER TAKEN
}
10f3a0: 89 d8 mov %ebx,%eax 10f3a2: 8b 5d fc mov -0x4(%ebp),%ebx 10f3a5: c9 leave 10f3a6: c3 ret
) { IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); IMFS_FIFO_RETURN(err);
10f3a7: e8 0c 31 00 00 call 1124b8 <__errno> 10f3ac: f7 db neg %ebx 10f3ae: 89 18 mov %ebx,(%eax) 10f3b0: bb ff ff ff ff mov $0xffffffff,%ebx 10f3b5: eb e9 jmp 10f3a0 <IMFS_fifo_open+0x20>
0010f2b8 <IMFS_fifo_read>: ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) {
10f2b8: 55 push %ebp <== NOT EXECUTED 10f2b9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f2bb: 56 push %esi <== NOT EXECUTED 10f2bc: 53 push %ebx <== NOT EXECUTED 10f2bd: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED 10f2c0: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
10f2c3: 8b 70 38 mov 0x38(%eax),%esi <== NOT EXECUTED
int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop);
10f2c6: 50 push %eax <== NOT EXECUTED 10f2c7: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 10f2ca: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 10f2cd: ff 76 50 pushl 0x50(%esi) <== NOT EXECUTED 10f2d0: e8 8b 1c 00 00 call 110f60 <pipe_read> <== NOT EXECUTED 10f2d5: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (err > 0)
10f2d7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f2da: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED 10f2dd: 7e 21 jle 10f300 <IMFS_fifo_read+0x48> <== NOT EXECUTED
IMFS_update_atime(jnode);
10f2df: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10f2e2: 6a 00 push $0x0 <== NOT EXECUTED 10f2e4: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 10f2e7: 50 push %eax <== NOT EXECUTED 10f2e8: e8 bb 06 00 00 call 10f9a8 <gettimeofday> <== NOT EXECUTED 10f2ed: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED 10f2f0: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED 10f2f3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
IMFS_FIFO_RETURN(err); }
10f2f6: 89 d8 mov %ebx,%eax <== NOT EXECUTED 10f2f8: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10f2fb: 5b pop %ebx <== NOT EXECUTED 10f2fc: 5e pop %esi <== NOT EXECUTED 10f2fd: c9 leave <== NOT EXECUTED 10f2fe: c3 ret <== NOT EXECUTED 10f2ff: 90 nop <== NOT EXECUTED
int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) IMFS_update_atime(jnode); IMFS_FIFO_RETURN(err);
10f300: 74 f4 je 10f2f6 <IMFS_fifo_read+0x3e> <== NOT EXECUTED 10f302: e8 b1 31 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10f307: f7 db neg %ebx <== NOT EXECUTED 10f309: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 10f30b: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 10f310: eb e4 jmp 10f2f6 <IMFS_fifo_read+0x3e> <== NOT EXECUTED
0010f258 <IMFS_fifo_write>: ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
10f258: 55 push %ebp <== NOT EXECUTED 10f259: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f25b: 56 push %esi <== NOT EXECUTED 10f25c: 53 push %ebx <== NOT EXECUTED 10f25d: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED 10f260: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
10f263: 8b 58 38 mov 0x38(%eax),%ebx <== NOT EXECUTED
int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);
10f266: 50 push %eax <== NOT EXECUTED 10f267: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 10f26a: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 10f26d: ff 73 50 pushl 0x50(%ebx) <== NOT EXECUTED 10f270: e8 07 1b 00 00 call 110d7c <pipe_write> <== NOT EXECUTED 10f275: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (err > 0) {
10f277: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f27a: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED 10f27d: 7e 25 jle 10f2a4 <IMFS_fifo_write+0x4c> <== NOT EXECUTED
IMFS_mtime_ctime_update(jnode);
10f27f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10f282: 6a 00 push $0x0 <== NOT EXECUTED 10f284: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 10f287: 50 push %eax <== NOT EXECUTED 10f288: e8 1b 07 00 00 call 10f9a8 <gettimeofday> <== NOT EXECUTED 10f28d: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED 10f290: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED 10f293: 89 43 48 mov %eax,0x48(%ebx) <== NOT EXECUTED 10f296: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} IMFS_FIFO_RETURN(err); }
10f299: 89 f0 mov %esi,%eax <== NOT EXECUTED 10f29b: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10f29e: 5b pop %ebx <== NOT EXECUTED 10f29f: 5e pop %esi <== NOT EXECUTED 10f2a0: c9 leave <== NOT EXECUTED 10f2a1: c3 ret <== NOT EXECUTED 10f2a2: 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);
10f2a4: 74 f3 je 10f299 <IMFS_fifo_write+0x41> <== NOT EXECUTED 10f2a6: e8 0d 32 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10f2ab: f7 de neg %esi <== NOT EXECUTED 10f2ad: 89 30 mov %esi,(%eax) <== NOT EXECUTED 10f2af: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 10f2b4: eb e3 jmp 10f299 <IMFS_fifo_write+0x41> <== NOT EXECUTED
0010f3b8 <IMFS_find_match_in_dir>: IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) {
10f3b8: 55 push %ebp 10f3b9: 89 e5 mov %esp,%ebp 10f3bb: 57 push %edi 10f3bc: 56 push %esi 10f3bd: 53 push %ebx 10f3be: 83 ec 0c sub $0xc,%esp 10f3c1: 8b 45 08 mov 0x8(%ebp),%eax 10f3c4: 8b 5d 0c mov 0xc(%ebp),%ebx
/* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory );
10f3c7: 85 c0 test %eax,%eax
10f3c9: 74 67 je 10f432 <IMFS_find_match_in_dir+0x7a><== ALWAYS TAKEN
if ( !name )
10f3cb: 85 db test %ebx,%ebx
10f3cd: 74 2d je 10f3fc <IMFS_find_match_in_dir+0x44><== ALWAYS TAKEN
/* * Check for "." and ".." */ if ( !strcmp( name, dotname ) )
10f3cf: bf 90 fe 11 00 mov $0x11fe90,%edi 10f3d4: b9 02 00 00 00 mov $0x2,%ecx 10f3d9: 89 de mov %ebx,%esi 10f3db: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi)
10f3dd: 74 13 je 10f3f2 <IMFS_find_match_in_dir+0x3a><== ALWAYS TAKEN
return directory; if ( !strcmp( name, dotdotname ) )
10f3df: bf 92 fe 11 00 mov $0x11fe92,%edi 10f3e4: b9 03 00 00 00 mov $0x3,%ecx 10f3e9: 89 de mov %ebx,%esi 10f3eb: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi)
10f3ed: 75 19 jne 10f408 <IMFS_find_match_in_dir+0x50><== NEVER TAKEN
return directory->Parent;
10f3ef: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED
if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; }
10f3f2: 8d 65 f4 lea -0xc(%ebp),%esp 10f3f5: 5b pop %ebx 10f3f6: 5e pop %esi 10f3f7: 5f pop %edi 10f3f8: c9 leave 10f3f9: c3 ret
10f3fa: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first;
10f3fc: 31 c0 xor %eax,%eax
if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; }
10f3fe: 8d 65 f4 lea -0xc(%ebp),%esp 10f401: 5b pop %ebx 10f402: 5e pop %esi 10f403: 5f pop %edi 10f404: c9 leave 10f405: c3 ret
10f406: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first;
10f408: 8b 70 50 mov 0x50(%eax),%esi
*/ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null;
10f40b: 8d 78 54 lea 0x54(%eax),%edi 10f40e: 39 fe cmp %edi,%esi
10f410: 75 08 jne 10f41a <IMFS_find_match_in_dir+0x62>
10f412: eb e8 jmp 10f3fc <IMFS_find_match_in_dir+0x44>
!rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) {
10f414: 8b 36 mov (%esi),%esi
if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first;
10f416: 39 fe cmp %edi,%esi
10f418: 74 e2 je 10f3fc <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 ) )
10f41a: 8d 46 0c lea 0xc(%esi),%eax 10f41d: 83 ec 08 sub $0x8,%esp 10f420: 50 push %eax 10f421: 53 push %ebx 10f422: e8 59 3b 00 00 call 112f80 <strcmp> 10f427: 83 c4 10 add $0x10,%esp 10f42a: 85 c0 test %eax,%eax
10f42c: 75 e6 jne 10f414 <IMFS_find_match_in_dir+0x5c>
10f42e: 89 f0 mov %esi,%eax 10f430: eb c0 jmp 10f3f2 <IMFS_find_match_in_dir+0x3a>
/* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory );
10f432: 68 38 fe 11 00 push $0x11fe38 <== NOT EXECUTED 10f437: 68 95 fe 11 00 push $0x11fe95 <== NOT EXECUTED 10f43c: 6a 2a push $0x2a <== NOT EXECUTED 10f43e: 68 44 fe 11 00 push $0x11fe44 <== NOT EXECUTED 10f443: e8 e0 88 ff ff call 107d28 <__assert_func> <== NOT EXECUTED
00114048 <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 ) {
114048: 55 push %ebp 114049: 89 e5 mov %esp,%ebp 11404b: 57 push %edi 11404c: 56 push %esi 11404d: 53 push %ebx 11404e: 83 ec 3c sub $0x3c,%esp 114051: 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;
114054: 8b 58 1c mov 0x1c(%eax),%ebx
loc = temp_mt_entry->mt_fs_root;
114057: 8d 55 d4 lea -0x2c(%ebp),%edx 11405a: 89 55 c4 mov %edx,-0x3c(%ebp) 11405d: 8d 70 1c lea 0x1c(%eax),%esi 114060: b9 05 00 00 00 mov $0x5,%ecx 114065: 89 d7 mov %edx,%edi 114067: 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;
114069: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax)
do { next = jnode->Parent;
114070: 8b 73 08 mov 0x8(%ebx),%esi
loc.node_access = (void *)jnode;
114073: 89 5d d4 mov %ebx,-0x2c(%ebp)
IMFS_Set_handlers( &loc );
114076: 83 ec 0c sub $0xc,%esp 114079: 8d 45 d4 lea -0x2c(%ebp),%eax 11407c: 50 push %eax 11407d: e8 46 f6 ff ff call 1136c8 <IMFS_Set_handlers>
if ( jnode->type != IMFS_DIRECTORY ) {
114082: 83 c4 10 add $0x10,%esp 114085: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
114089: 75 2d jne 1140b8 <IMFS_fsunmount+0x70> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null;
11408b: 8d 43 54 lea 0x54(%ebx),%eax 11408e: 39 43 50 cmp %eax,0x50(%ebx)
114091: 74 3e je 1140d1 <IMFS_fsunmount+0x89> result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) {
114093: 85 db test %ebx,%ebx
114095: 74 15 je 1140ac <IMFS_fsunmount+0x64> if ( jnode->type == IMFS_DIRECTORY ) {
114097: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx)
11409b: 75 d3 jne 114070 <IMFS_fsunmount+0x28> <== ALWAYS TAKEN
11409d: 8d 43 54 lea 0x54(%ebx),%eax 1140a0: 39 43 50 cmp %eax,0x50(%ebx)
1140a3: 74 cb je 114070 <IMFS_fsunmount+0x28> if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode );
1140a5: 8b 5b 50 mov 0x50(%ebx),%ebx
} } } while (jnode != NULL);
1140a8: 85 db test %ebx,%ebx
1140aa: 75 c4 jne 114070 <IMFS_fsunmount+0x28> <== NEVER TAKEN
1140ac: 31 c0 xor %eax,%eax
return 0; }
1140ae: 8d 65 f4 lea -0xc(%ebp),%esp 1140b1: 5b pop %ebx 1140b2: 5e pop %esi 1140b3: 5f pop %edi 1140b4: c9 leave 1140b5: c3 ret
1140b6: 66 90 xchg %ax,%ax <== NOT EXECUTED
next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); if ( jnode->type != IMFS_DIRECTORY ) { result = IMFS_unlink( NULL, &loc );
1140b8: 83 ec 08 sub $0x8,%esp 1140bb: 8d 55 d4 lea -0x2c(%ebp),%edx 1140be: 52 push %edx
if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc );
1140bf: 6a 00 push $0x0 1140c1: e8 6a 4d ff ff call 108e30 <IMFS_unlink>
if (result != 0)
1140c6: 83 c4 10 add $0x10,%esp 1140c9: 85 c0 test %eax,%eax
1140cb: 75 0d jne 1140da <IMFS_fsunmount+0x92> <== ALWAYS TAKEN
1140cd: 89 f3 mov %esi,%ebx 1140cf: eb c2 jmp 114093 <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 );
1140d1: 83 ec 08 sub $0x8,%esp 1140d4: 8d 45 d4 lea -0x2c(%ebp),%eax 1140d7: 50 push %eax 1140d8: eb e5 jmp 1140bf <IMFS_fsunmount+0x77>
if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL);
1140da: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 1140dd: eb cf jmp 1140ae <IMFS_fsunmount+0x66> <== NOT EXECUTED
0010f448 <IMFS_get_token>: const char *path, int pathlen, char *token, int *token_len ) {
10f448: 55 push %ebp 10f449: 89 e5 mov %esp,%ebp 10f44b: 57 push %edi 10f44c: 56 push %esi 10f44d: 53 push %ebx 10f44e: 8b 75 08 mov 0x8(%ebp),%esi 10f451: 8b 7d 0c mov 0xc(%ebp),%edi 10f454: 8b 45 10 mov 0x10(%ebp),%eax 10f457: 8b 5d 14 mov 0x14(%ebp),%ebx
register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i];
10f45a: 8a 16 mov (%esi),%dl
while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
10f45c: 80 fa 2f cmp $0x2f,%dl
10f45f: 0f 84 94 00 00 00 je 10f4f9 <IMFS_get_token+0xb1>
10f465: 80 fa 5c cmp $0x5c,%dl
10f468: 0f 84 8b 00 00 00 je 10f4f9 <IMFS_get_token+0xb1>
10f46e: 84 d2 test %dl,%dl
10f470: 0f 84 94 00 00 00 je 10f50a <IMFS_get_token+0xc2>
10f476: 85 ff test %edi,%edi
10f478: 7e 7f jle 10f4f9 <IMFS_get_token+0xb1> <== ALWAYS TAKEN
token[i] = c;
10f47a: 88 10 mov %dl,(%eax) 10f47c: 31 d2 xor %edx,%edx 10f47e: 66 90 xchg %ax,%ax
return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i];
10f480: 42 inc %edx 10f481: 8a 0c 16 mov (%esi,%edx,1),%cl
/* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
10f484: 80 f9 2f cmp $0x2f,%cl
10f487: 74 1f je 10f4a8 <IMFS_get_token+0x60>
10f489: 80 f9 5c cmp $0x5c,%cl
10f48c: 74 1a je 10f4a8 <IMFS_get_token+0x60>
10f48e: 84 c9 test %cl,%cl
10f490: 74 16 je 10f4a8 <IMFS_get_token+0x60>
10f492: 39 d7 cmp %edx,%edi
10f494: 7e 12 jle 10f4a8 <IMFS_get_token+0x60> token[i] = c;
10f496: 88 0c 10 mov %cl,(%eax,%edx,1)
if ( i == IMFS_NAME_MAX )
10f499: 83 fa 20 cmp $0x20,%edx
10f49c: 75 e2 jne 10f480 <IMFS_get_token+0x38>
10f49e: b8 04 00 00 00 mov $0x4,%eax
else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; }
10f4a3: 5b pop %ebx 10f4a4: 5e pop %esi 10f4a5: 5f pop %edi 10f4a6: c9 leave 10f4a7: c3 ret
i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') {
10f4a8: 80 7c 10 ff 00 cmpb $0x0,-0x1(%eax,%edx,1)
10f4ad: 74 04 je 10f4b3 <IMFS_get_token+0x6b> <== ALWAYS TAKEN
token[i] = '\0';
10f4af: c6 04 10 00 movb $0x0,(%eax,%edx,1)
/* * Set token_len to the number of characters copied. */ *token_len = i;
10f4b3: 89 13 mov %edx,(%ebx)
* If we copied something that was not a seperator see if * it was a special name. */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 )
10f4b5: bf ac fe 11 00 mov $0x11feac,%edi 10f4ba: b9 03 00 00 00 mov $0x3,%ecx 10f4bf: 89 c6 mov %eax,%esi 10f4c1: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi)
10f4c3: 75 0b jne 10f4d0 <IMFS_get_token+0x88>
10f4c5: b8 02 00 00 00 mov $0x2,%eax
else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; }
10f4ca: 5b pop %ebx 10f4cb: 5e pop %esi 10f4cc: 5f pop %edi 10f4cd: c9 leave 10f4ce: c3 ret
10f4cf: 90 nop <== NOT EXECUTED
*/ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 )
10f4d0: bf ad fe 11 00 mov $0x11fead,%edi 10f4d5: b9 02 00 00 00 mov $0x2,%ecx 10f4da: 89 c6 mov %eax,%esi 10f4dc: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10f4de: 0f 97 c0 seta %al 10f4e1: 0f 92 c2 setb %dl 10f4e4: 28 d0 sub %dl,%al 10f4e6: 0f be c0 movsbl %al,%eax 10f4e9: 83 f8 01 cmp $0x1,%eax 10f4ec: 19 c0 sbb %eax,%eax 10f4ee: 83 e0 fe and $0xfffffffe,%eax 10f4f1: 83 c0 03 add $0x3,%eax
type = IMFS_CURRENT_DIR; } return type; }
10f4f4: 5b pop %ebx 10f4f5: 5e pop %esi 10f4f6: 5f pop %edi 10f4f7: c9 leave 10f4f8: c3 ret
/* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c;
10f4f9: 88 10 mov %dl,(%eax)
i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') {
10f4fb: 83 ff 01 cmp $0x1,%edi 10f4fe: 19 c0 sbb %eax,%eax 10f500: 40 inc %eax 10f501: 89 c2 mov %eax,%edx
/* * Set token_len to the number of characters copied. */ *token_len = i;
10f503: 89 13 mov %edx,(%ebx)
else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; }
10f505: 5b pop %ebx 10f506: 5e pop %esi 10f507: 5f pop %edi 10f508: c9 leave 10f509: c3 ret
/* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c;
10f50a: c6 00 00 movb $0x0,(%eax) 10f50d: 31 c0 xor %eax,%eax 10f50f: 31 d2 xor %edx,%edx
/* * Set token_len to the number of characters copied. */ *token_len = i;
10f511: 89 13 mov %edx,(%ebx) 10f513: eb f0 jmp 10f505 <IMFS_get_token+0xbd>
0010f518 <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 ) {
10f518: 55 push %ebp 10f519: 89 e5 mov %esp,%ebp 10f51b: 57 push %edi 10f51c: 56 push %esi 10f51d: 53 push %ebx 10f51e: 83 ec 0c sub $0xc,%esp 10f521: 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,
10f524: 8b 0d 50 11 12 00 mov 0x121150,%ecx
int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
10f52a: 83 f9 10 cmp $0x10,%ecx
10f52d: 74 18 je 10f547 <IMFS_initialize_support+0x2f><== ALWAYS TAKEN
10f52f: 31 d2 xor %edx,%edx 10f531: b8 20 00 00 00 mov $0x20,%eax 10f536: 39 c1 cmp %eax,%ecx
10f538: 74 0d je 10f547 <IMFS_initialize_support+0x2f>
10f53a: d1 e0 shl %eax 10f53c: 42 inc %edx 10f53d: 83 fa 05 cmp $0x5,%edx
10f540: 75 f4 jne 10f536 <IMFS_initialize_support+0x1e><== NEVER TAKEN
10f542: 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)
10f547: 89 0d 88 4f 12 00 mov %ecx,0x124f88
/* * 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();
10f54d: e8 56 21 00 00 call 1116a8 <IMFS_create_root_node> 10f552: 89 43 1c mov %eax,0x1c(%ebx)
temp_mt_entry->mt_fs_root.handlers = directory_handlers;
10f555: 8b 45 14 mov 0x14(%ebp),%eax 10f558: 89 43 24 mov %eax,0x24(%ebx)
temp_mt_entry->mt_fs_root.ops = op_table;
10f55b: 8b 45 0c mov 0xc(%ebp),%eax 10f55e: 89 43 28 mov %eax,0x28(%ebx)
temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
10f561: 8d 7b 38 lea 0x38(%ebx),%edi 10f564: be 40 00 12 00 mov $0x120040,%esi 10f569: b9 0c 00 00 00 mov $0xc,%ecx 10f56e: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );
10f570: 83 ec 08 sub $0x8,%esp 10f573: 6a 10 push $0x10 10f575: 6a 01 push $0x1 10f577: e8 98 02 00 00 call 10f814 <calloc>
if ( !fs_info ) {
10f57c: 83 c4 10 add $0x10,%esp 10f57f: 85 c0 test %eax,%eax
10f581: 74 3e je 10f5c1 <IMFS_initialize_support+0xa9><== ALWAYS 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;
10f583: 89 43 34 mov %eax,0x34(%ebx)
/* * Set st_ino for the root to 1. */ fs_info->instance = imfs_instance++;
10f586: 8b 15 8c 4f 12 00 mov 0x124f8c,%edx 10f58c: 89 10 mov %edx,(%eax) 10f58e: 42 inc %edx 10f58f: 89 15 8c 4f 12 00 mov %edx,0x124f8c
fs_info->ino_count = 1;
10f595: c7 40 04 01 00 00 00 movl $0x1,0x4(%eax)
fs_info->memfile_handlers = memfile_handlers;
10f59c: 8b 55 10 mov 0x10(%ebp),%edx 10f59f: 89 50 08 mov %edx,0x8(%eax)
fs_info->directory_handlers = directory_handlers;
10f5a2: 8b 55 14 mov 0x14(%ebp),%edx 10f5a5: 89 50 0c mov %edx,0xc(%eax)
jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count;
10f5a8: 8b 43 1c mov 0x1c(%ebx),%eax 10f5ab: c7 40 38 01 00 00 00 movl $0x1,0x38(%eax)
/* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize();
10f5b2: e8 11 17 00 00 call 110cc8 <rtems_pipe_initialize> 10f5b7: 31 c0 xor %eax,%eax
return 0; }
10f5b9: 8d 65 f4 lea -0xc(%ebp),%esp 10f5bc: 5b pop %ebx 10f5bd: 5e pop %esi 10f5be: 5f pop %edi 10f5bf: c9 leave 10f5c0: 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);
10f5c1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10f5c4: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED 10f5c7: e8 b0 8a ff ff call 10807c <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
10f5cc: e8 e7 2e 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10f5d1: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 10f5d7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f5dc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f5df: eb d8 jmp 10f5b9 <IMFS_initialize_support+0xa1><== NOT EXECUTED
00108b24 <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 */ ) {
108b24: 55 push %ebp 108b25: 89 e5 mov %esp,%ebp 108b27: 57 push %edi 108b28: 53 push %ebx 108b29: 83 ec 50 sub $0x50,%esp 108b2c: 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;
108b2f: 8b 45 08 mov 0x8(%ebp),%eax 108b32: 8b 00 mov (%eax),%eax 108b34: 89 45 d8 mov %eax,-0x28(%ebp)
if ( info.hard_link.link_node->st_nlink >= LINK_MAX )
108b37: 66 83 78 34 07 cmpw $0x7,0x34(%eax)
108b3c: 77 66 ja 108ba4 <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 );
108b3e: 31 c0 xor %eax,%eax 108b40: b9 ff ff ff ff mov $0xffffffff,%ecx 108b45: 89 d7 mov %edx,%edi 108b47: f2 ae repnz scas %es:(%edi),%al 108b49: f7 d1 not %ecx 108b4b: 49 dec %ecx 108b4c: 8d 45 f4 lea -0xc(%ebp),%eax 108b4f: 50 push %eax 108b50: 8d 5d b7 lea -0x49(%ebp),%ebx 108b53: 53 push %ebx 108b54: 51 push %ecx 108b55: 52 push %edx 108b56: e8 15 b6 00 00 call 114170 <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(
108b5b: 8d 45 d8 lea -0x28(%ebp),%eax 108b5e: 89 04 24 mov %eax,(%esp) 108b61: 68 ff a1 00 00 push $0xa1ff 108b66: 53 push %ebx 108b67: 6a 03 push $0x3 108b69: ff 75 0c pushl 0xc(%ebp) 108b6c: e8 4b aa 00 00 call 1135bc <IMFS_create_node>
new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node )
108b71: 83 c4 20 add $0x20,%esp 108b74: 85 c0 test %eax,%eax
108b76: 74 3e je 108bb6 <IMFS_link+0x92> <== ALWAYS 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++;
108b78: 8b 45 d8 mov -0x28(%ebp),%eax 108b7b: 66 ff 40 34 incw 0x34(%eax)
IMFS_update_ctime( info.hard_link.link_node );
108b7f: 83 ec 08 sub $0x8,%esp 108b82: 6a 00 push $0x0 108b84: 8d 45 ec lea -0x14(%ebp),%eax 108b87: 50 push %eax 108b88: e8 ff 08 00 00 call 10948c <gettimeofday> 108b8d: 8b 55 ec mov -0x14(%ebp),%edx 108b90: 8b 45 d8 mov -0x28(%ebp),%eax 108b93: 89 50 48 mov %edx,0x48(%eax) 108b96: 31 c0 xor %eax,%eax
return 0;
108b98: 83 c4 10 add $0x10,%esp
}
108b9b: 8d 65 f8 lea -0x8(%ebp),%esp 108b9e: 5b pop %ebx 108b9f: 5f pop %edi 108ba0: c9 leave 108ba1: c3 ret
108ba2: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * 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 );
108ba4: e8 4b ea 00 00 call 1175f4 <__errno> 108ba9: c7 00 1f 00 00 00 movl $0x1f,(%eax) 108baf: b8 ff ff ff ff mov $0xffffffff,%eax 108bb4: eb e5 jmp 108b9b <IMFS_link+0x77>
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM );
108bb6: e8 39 ea 00 00 call 1175f4 <__errno> <== NOT EXECUTED 108bbb: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 108bc1: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108bc6: eb d3 jmp 108b9b <IMFS_link+0x77> <== NOT EXECUTED
0011618c <IMFS_memfile_addblock>: MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) {
11618c: 55 push %ebp 11618d: 89 e5 mov %esp,%ebp 11618f: 53 push %ebx 116190: 83 ec 04 sub $0x4,%esp 116193: 8b 45 08 mov 0x8(%ebp),%eax
block_p memory; block_p *block_entry_ptr; assert( the_jnode );
116196: 85 c0 test %eax,%eax
116198: 74 50 je 1161ea <IMFS_memfile_addblock+0x5e><== ALWAYS TAKEN
if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE );
11619a: 83 78 4c 05 cmpl $0x5,0x4c(%eax)
11619e: 75 31 jne 1161d1 <IMFS_memfile_addblock+0x45><== ALWAYS 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 );
1161a0: 52 push %edx 1161a1: 6a 01 push $0x1 1161a3: ff 75 0c pushl 0xc(%ebp) 1161a6: 50 push %eax 1161a7: e8 b8 fa ff ff call 115c64 <IMFS_memfile_get_block_pointer> 1161ac: 89 c3 mov %eax,%ebx
if ( *block_entry_ptr )
1161ae: 83 c4 10 add $0x10,%esp 1161b1: 8b 00 mov (%eax),%eax 1161b3: 85 c0 test %eax,%eax
1161b5: 74 09 je 1161c0 <IMFS_memfile_addblock+0x34> #endif memory = memfile_alloc_block(); if ( !memory ) return 1; *block_entry_ptr = memory;
1161b7: 31 c0 xor %eax,%eax
return 0; }
1161b9: 8b 5d fc mov -0x4(%ebp),%ebx 1161bc: c9 leave 1161bd: c3 ret
1161be: 66 90 xchg %ax,%ax <== NOT EXECUTED
#if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block();
1161c0: e8 7b fa ff ff call 115c40 <memfile_alloc_block>
if ( !memory )
1161c5: 85 c0 test %eax,%eax
1161c7: 74 04 je 1161cd <IMFS_memfile_addblock+0x41><== ALWAYS TAKEN
return 1; *block_entry_ptr = memory;
1161c9: 89 03 mov %eax,(%ebx) 1161cb: eb ea jmp 1161b7 <IMFS_memfile_addblock+0x2b>
fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory )
1161cd: b0 01 mov $0x1,%al <== NOT EXECUTED 1161cf: eb e8 jmp 1161b9 <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 );
1161d1: 68 54 54 12 00 push $0x125454 <== NOT EXECUTED 1161d6: 68 53 55 12 00 push $0x125553 <== NOT EXECUTED 1161db: 68 6d 01 00 00 push $0x16d <== NOT EXECUTED 1161e0: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 1161e5: e8 96 2e ff ff call 109080 <__assert_func> <== NOT EXECUTED
) { block_p memory; block_p *block_entry_ptr; assert( the_jnode );
1161ea: 68 e0 53 12 00 push $0x1253e0 <== NOT EXECUTED 1161ef: 68 53 55 12 00 push $0x125553 <== NOT EXECUTED 1161f4: 68 69 01 00 00 push $0x169 <== NOT EXECUTED 1161f9: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 1161fe: e8 7d 2e ff ff call 109080 <__assert_func> <== NOT EXECUTED
00116204 <IMFS_memfile_extend>: MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) {
116204: 55 push %ebp 116205: 89 e5 mov %esp,%ebp 116207: 57 push %edi 116208: 56 push %esi 116209: 53 push %ebx 11620a: 83 ec 2c sub $0x2c,%esp 11620d: 8b 5d 08 mov 0x8(%ebp),%ebx 116210: 8b 45 0c mov 0xc(%ebp),%eax 116213: 8b 55 10 mov 0x10(%ebp),%edx 116216: 89 45 d8 mov %eax,-0x28(%ebp) 116219: 89 55 dc mov %edx,-0x24(%ebp)
/* * Perform internal consistency checks */ assert( the_jnode );
11621c: 85 db test %ebx,%ebx
11621e: 0f 84 29 01 00 00 je 11634d <IMFS_memfile_extend+0x149><== ALWAYS TAKEN
if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE );
116224: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx)
116228: 0f 85 06 01 00 00 jne 116334 <IMFS_memfile_extend+0x130><== ALWAYS TAKEN
if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
11622e: a1 10 b1 12 00 mov 0x12b110,%eax 116233: 89 c1 mov %eax,%ecx 116235: c1 e9 02 shr $0x2,%ecx 116238: 8d 51 01 lea 0x1(%ecx),%edx 11623b: 0f af d1 imul %ecx,%edx 11623e: 42 inc %edx 11623f: 0f af d1 imul %ecx,%edx 116242: 4a dec %edx 116243: 0f af d0 imul %eax,%edx 116246: 31 c9 xor %ecx,%ecx 116248: 3b 4d dc cmp -0x24(%ebp),%ecx
11624b: 7f 1c jg 116269 <IMFS_memfile_extend+0x65><== ALWAYS TAKEN
11624d: 7d 15 jge 116264 <IMFS_memfile_extend+0x60><== NEVER TAKEN
rtems_set_errno_and_return_minus_one( EINVAL );
11624f: e8 a0 13 00 00 call 1175f4 <__errno> <== NOT EXECUTED 116254: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 11625a: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11625f: e9 9e 00 00 00 jmp 116302 <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 )
116264: 3b 55 d8 cmp -0x28(%ebp),%edx
116267: 76 e6 jbe 11624f <IMFS_memfile_extend+0x4b><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size )
116269: 8b 53 50 mov 0x50(%ebx),%edx 11626c: 8b 4b 54 mov 0x54(%ebx),%ecx 11626f: 89 55 e0 mov %edx,-0x20(%ebp) 116272: 89 4d e4 mov %ecx,-0x1c(%ebp) 116275: 39 4d dc cmp %ecx,-0x24(%ebp)
116278: 0f 8e 8e 00 00 00 jle 11630c <IMFS_memfile_extend+0x108><== NEVER TAKEN
/* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
11627e: 89 45 d0 mov %eax,-0x30(%ebp) 116281: 89 c1 mov %eax,%ecx 116283: c1 f9 1f sar $0x1f,%ecx 116286: 89 4d d4 mov %ecx,-0x2c(%ebp) 116289: ff 75 d4 pushl -0x2c(%ebp) 11628c: ff 75 d0 pushl -0x30(%ebp) 11628f: ff 75 dc pushl -0x24(%ebp) 116292: ff 75 d8 pushl -0x28(%ebp) 116295: e8 22 c3 00 00 call 1225bc <__divdi3> 11629a: 83 c4 10 add $0x10,%esp 11629d: 89 c6 mov %eax,%esi
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
11629f: ff 75 d4 pushl -0x2c(%ebp) 1162a2: ff 75 d0 pushl -0x30(%ebp) 1162a5: ff 75 e4 pushl -0x1c(%ebp) 1162a8: ff 75 e0 pushl -0x20(%ebp) 1162ab: e8 0c c3 00 00 call 1225bc <__divdi3> 1162b0: 83 c4 10 add $0x10,%esp 1162b3: 89 45 e0 mov %eax,-0x20(%ebp)
/* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) {
1162b6: 39 c6 cmp %eax,%esi
1162b8: 72 6a jb 116324 <IMFS_memfile_extend+0x120><== ALWAYS TAKEN
1162ba: 89 c7 mov %eax,%edi 1162bc: eb 07 jmp 1162c5 <IMFS_memfile_extend+0xc1>
1162be: 66 90 xchg %ax,%ax <== NOT EXECUTED
1162c0: 47 inc %edi 1162c1: 39 fe cmp %edi,%esi
1162c3: 72 5f jb 116324 <IMFS_memfile_extend+0x120> if ( IMFS_memfile_addblock( the_jnode, block ) ) {
1162c5: 83 ec 08 sub $0x8,%esp 1162c8: 57 push %edi 1162c9: 53 push %ebx 1162ca: e8 bd fe ff ff call 11618c <IMFS_memfile_addblock> 1162cf: 83 c4 10 add $0x10,%esp 1162d2: 85 c0 test %eax,%eax
1162d4: 74 ea je 1162c0 <IMFS_memfile_extend+0xbc><== NEVER TAKEN
for ( ; block>=old_blocks ; block-- ) {
1162d6: 39 7d e0 cmp %edi,-0x20(%ebp) <== NOT EXECUTED 1162d9: 77 17 ja 1162f2 <IMFS_memfile_extend+0xee><== NOT EXECUTED 1162db: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED 1162de: 66 90 xchg %ax,%ax <== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
1162e0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1162e3: 57 push %edi <== NOT EXECUTED 1162e4: 53 push %ebx <== NOT EXECUTED 1162e5: e8 d6 fb ff ff call 115ec0 <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-- ) {
1162ea: 4f dec %edi <== NOT EXECUTED 1162eb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1162ee: 39 fe cmp %edi,%esi <== NOT EXECUTED 1162f0: 76 ee jbe 1162e0 <IMFS_memfile_extend+0xdc><== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC );
1162f2: e8 fd 12 00 00 call 1175f4 <__errno> <== NOT EXECUTED 1162f7: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED 1162fd: 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; }
116302: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 116305: 5b pop %ebx <== NOT EXECUTED 116306: 5e pop %esi <== NOT EXECUTED 116307: 5f pop %edi <== NOT EXECUTED 116308: c9 leave <== NOT EXECUTED 116309: c3 ret <== NOT EXECUTED 11630a: 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 )
11630c: 7c 09 jl 116317 <IMFS_memfile_extend+0x113><== ALWAYS TAKEN
11630e: 39 55 d8 cmp %edx,-0x28(%ebp)
116311: 0f 87 67 ff ff ff ja 11627e <IMFS_memfile_extend+0x7a> /* * Set the new length of the file. */ the_jnode->info.file.size = new_length;
116317: 31 c0 xor %eax,%eax
return 0; }
116319: 8d 65 f4 lea -0xc(%ebp),%esp 11631c: 5b pop %ebx 11631d: 5e pop %esi 11631e: 5f pop %edi 11631f: c9 leave 116320: c3 ret
116321: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * Set the new length of the file. */ the_jnode->info.file.size = new_length;
116324: 8b 45 d8 mov -0x28(%ebp),%eax 116327: 8b 55 dc mov -0x24(%ebp),%edx 11632a: 89 43 50 mov %eax,0x50(%ebx) 11632d: 89 53 54 mov %edx,0x54(%ebx) 116330: 31 c0 xor %eax,%eax 116332: eb e5 jmp 116319 <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 );
116334: 68 54 54 12 00 push $0x125454 <== NOT EXECUTED 116339: 68 69 55 12 00 push $0x125569 <== NOT EXECUTED 11633e: 68 35 01 00 00 push $0x135 <== NOT EXECUTED 116343: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 116348: e8 33 2d ff ff call 109080 <__assert_func> <== NOT EXECUTED
/* * Perform internal consistency checks */ assert( the_jnode );
11634d: 68 e0 53 12 00 push $0x1253e0 <== NOT EXECUTED 116352: 68 69 55 12 00 push $0x125569 <== NOT EXECUTED 116357: 68 31 01 00 00 push $0x131 <== NOT EXECUTED 11635c: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 116361: e8 1a 2d ff ff call 109080 <__assert_func> <== NOT EXECUTED
00115c64 <IMFS_memfile_get_block_pointer>: #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) {
115c64: 55 push %ebp 115c65: 89 e5 mov %esp,%ebp 115c67: 57 push %edi 115c68: 56 push %esi 115c69: 53 push %ebx 115c6a: 83 ec 1c sub $0x1c,%esp 115c6d: 8b 5d 08 mov 0x8(%ebp),%ebx 115c70: 8b 7d 0c mov 0xc(%ebp),%edi 115c73: 8b 75 10 mov 0x10(%ebp),%esi
/* * Perform internal consistency checks */ assert( the_jnode );
115c76: 85 db test %ebx,%ebx
115c78: 0f 84 58 01 00 00 je 115dd6 <IMFS_memfile_get_block_pointer+0x172><== ALWAYS TAKEN
if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE );
115c7e: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx)
115c82: 0f 85 67 01 00 00 jne 115def <IMFS_memfile_get_block_pointer+0x18b><== ALWAYS TAKEN
/* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) {
115c88: 8b 0d 10 b1 12 00 mov 0x12b110,%ecx 115c8e: c1 e9 02 shr $0x2,%ecx 115c91: 8d 41 ff lea -0x1(%ecx),%eax 115c94: 39 c7 cmp %eax,%edi
115c96: 76 44 jbe 115cdc <IMFS_memfile_get_block_pointer+0x78><== NEVER TAKEN
/* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) {
115c98: 8d 41 01 lea 0x1(%ecx),%eax <== NOT EXECUTED 115c9b: 0f af c1 imul %ecx,%eax <== NOT EXECUTED 115c9e: 8d 50 ff lea -0x1(%eax),%edx <== NOT EXECUTED 115ca1: 39 d7 cmp %edx,%edi <== NOT EXECUTED 115ca3: 77 57 ja 115cfc <IMFS_memfile_get_block_pointer+0x98><== NOT EXECUTED
#if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT;
115ca5: 89 f8 mov %edi,%eax <== NOT EXECUTED 115ca7: 29 c8 sub %ecx,%eax <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
115ca9: 31 d2 xor %edx,%edx <== NOT EXECUTED 115cab: f7 f1 div %ecx <== NOT EXECUTED 115cad: 89 c1 mov %eax,%ecx <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect;
115caf: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED
if ( malloc_it ) {
115cb2: 85 f6 test %esi,%esi <== NOT EXECUTED 115cb4: 0f 84 96 00 00 00 je 115d50 <IMFS_memfile_get_block_pointer+0xec><== NOT EXECUTED
if ( !p ) {
115cba: 85 c0 test %eax,%eax <== NOT EXECUTED 115cbc: 0f 84 dd 00 00 00 je 115d9f <IMFS_memfile_get_block_pointer+0x13b><== NOT EXECUTED
if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ];
115cc2: 8d 1c 88 lea (%eax,%ecx,4),%ebx <== NOT EXECUTED 115cc5: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
if ( !p1 ) {
115cc7: 85 c0 test %eax,%eax <== NOT EXECUTED 115cc9: 0f 84 ba 00 00 00 je 115d89 <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 ];
115ccf: 8d 04 90 lea (%eax,%edx,4),%eax <== NOT EXECUTED
/* * This means the requested block number is out of range. */ return 0; }
115cd2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 115cd5: 5b pop %ebx <== NOT EXECUTED 115cd6: 5e pop %esi <== NOT EXECUTED 115cd7: 5f pop %edi <== NOT EXECUTED 115cd8: c9 leave <== NOT EXECUTED 115cd9: c3 ret <== NOT EXECUTED 115cda: 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;
115cdc: 8b 43 58 mov 0x58(%ebx),%eax
if ( malloc_it ) {
115cdf: 85 f6 test %esi,%esi
115ce1: 0f 84 85 00 00 00 je 115d6c <IMFS_memfile_get_block_pointer+0x108> if ( !p ) {
115ce7: 85 c0 test %eax,%eax
115ce9: 0f 84 89 00 00 00 je 115d78 <IMFS_memfile_get_block_pointer+0x114> p2 = memfile_alloc_block(); if ( !p2 ) return 0; p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ];
115cef: 8d 04 b8 lea (%eax,%edi,4),%eax
/* * This means the requested block number is out of range. */ return 0; }
115cf2: 8d 65 f4 lea -0xc(%ebp),%esp 115cf5: 5b pop %ebx 115cf6: 5e pop %esi 115cf7: 5f pop %edi 115cf8: c9 leave 115cf9: c3 ret
115cfa: 66 90 xchg %ax,%ax <== NOT EXECUTED
#endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) {
115cfc: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 115cff: 0f af d1 imul %ecx,%edx <== NOT EXECUTED 115d02: 4a dec %edx <== NOT EXECUTED 115d03: 39 d7 cmp %edx,%edi <== NOT EXECUTED 115d05: 77 59 ja 115d60 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
my_block -= FIRST_TRIPLY_INDIRECT;
115d07: 29 c7 sub %eax,%edi <== NOT EXECUTED 115d09: 89 f8 mov %edi,%eax <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
115d0b: 31 d2 xor %edx,%edx <== NOT EXECUTED 115d0d: f7 f1 div %ecx <== NOT EXECUTED 115d0f: 89 d7 mov %edx,%edi <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
115d11: 31 d2 xor %edx,%edx <== NOT EXECUTED 115d13: f7 f1 div %ecx <== NOT EXECUTED 115d15: 89 c1 mov %eax,%ecx <== NOT EXECUTED
doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect;
115d17: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED
if ( malloc_it ) {
115d1a: 85 f6 test %esi,%esi <== NOT EXECUTED 115d1c: 0f 84 9a 00 00 00 je 115dbc <IMFS_memfile_get_block_pointer+0x158><== NOT EXECUTED
if ( !p ) {
115d22: 85 c0 test %eax,%eax <== NOT EXECUTED 115d24: 0f 84 de 00 00 00 je 115e08 <IMFS_memfile_get_block_pointer+0x1a4><== NOT EXECUTED
if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ];
115d2a: 8d 1c 88 lea (%eax,%ecx,4),%ebx <== NOT EXECUTED 115d2d: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
if ( !p1 ) {
115d2f: 85 c0 test %eax,%eax <== NOT EXECUTED 115d31: 0f 84 f2 00 00 00 je 115e29 <IMFS_memfile_get_block_pointer+0x1c5><== NOT EXECUTED
if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ];
115d37: 8d 1c 90 lea (%eax,%edx,4),%ebx <== NOT EXECUTED 115d3a: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
if ( !p2 ) {
115d3c: 85 c0 test %eax,%eax <== NOT EXECUTED 115d3e: 75 af jne 115cef <IMFS_memfile_get_block_pointer+0x8b><== NOT EXECUTED
p2 = memfile_alloc_block();
115d40: e8 fb fe ff ff call 115c40 <memfile_alloc_block> <== NOT EXECUTED
if ( !p2 )
115d45: 85 c0 test %eax,%eax <== NOT EXECUTED 115d47: 74 17 je 115d60 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
return 0; p1[ doubly ] = (block_p) p2;
115d49: 89 03 mov %eax,(%ebx) <== NOT EXECUTED 115d4b: eb a2 jmp 115cef <IMFS_memfile_get_block_pointer+0x8b><== NOT EXECUTED 115d4d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
} return (block_p *)&p1[ singly ]; } if ( !p )
115d50: 85 c0 test %eax,%eax <== NOT EXECUTED 115d52: 74 0c je 115d60 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
return 0; p = (block_p *)p[ doubly ];
115d54: 8b 04 88 mov (%eax,%ecx,4),%eax <== NOT EXECUTED
if ( !p )
115d57: 85 c0 test %eax,%eax <== NOT EXECUTED 115d59: 0f 85 70 ff ff ff jne 115ccf <IMFS_memfile_get_block_pointer+0x6b><== NOT EXECUTED 115d5f: 90 nop <== NOT EXECUTED
p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ];
115d60: 31 c0 xor %eax,%eax <== NOT EXECUTED
/* * This means the requested block number is out of range. */ return 0; }
115d62: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 115d65: 5b pop %ebx <== NOT EXECUTED 115d66: 5e pop %esi <== NOT EXECUTED 115d67: 5f pop %edi <== NOT EXECUTED 115d68: c9 leave <== NOT EXECUTED 115d69: c3 ret <== NOT EXECUTED 115d6a: 66 90 xchg %ax,%ax <== NOT EXECUTED
info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p )
115d6c: 85 c0 test %eax,%eax
115d6e: 0f 85 7b ff ff ff jne 115cef <IMFS_memfile_get_block_pointer+0x8b><== NEVER TAKEN
p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ];
115d74: 31 c0 xor %eax,%eax <== NOT EXECUTED 115d76: eb ea jmp 115d62 <IMFS_memfile_get_block_pointer+0xfe><== NOT EXECUTED
p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block();
115d78: e8 c3 fe ff ff call 115c40 <memfile_alloc_block>
if ( !p )
115d7d: 85 c0 test %eax,%eax
115d7f: 74 df je 115d60 <IMFS_memfile_get_block_pointer+0xfc><== ALWAYS TAKEN
return 0; info->indirect = p;
115d81: 89 43 58 mov %eax,0x58(%ebx) 115d84: e9 66 ff ff ff jmp 115cef <IMFS_memfile_get_block_pointer+0x8b>
info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block();
115d89: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 115d8c: e8 af fe ff ff call 115c40 <memfile_alloc_block> <== NOT EXECUTED
if ( !p1 )
115d91: 85 c0 test %eax,%eax <== NOT EXECUTED 115d93: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 115d96: 74 c8 je 115d60 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
return 0; p[ doubly ] = (block_p) p1;
115d98: 89 03 mov %eax,(%ebx) <== NOT EXECUTED 115d9a: e9 30 ff ff ff jmp 115ccf <IMFS_memfile_get_block_pointer+0x6b><== NOT EXECUTED
p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block();
115d9f: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 115da2: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 115da5: e8 96 fe ff ff call 115c40 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
115daa: 85 c0 test %eax,%eax <== NOT EXECUTED 115dac: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 115daf: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 115db2: 74 ac je 115d60 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
return 0; info->doubly_indirect = p;
115db4: 89 43 5c mov %eax,0x5c(%ebx) <== NOT EXECUTED 115db7: e9 06 ff ff ff jmp 115cc2 <IMFS_memfile_get_block_pointer+0x5e><== NOT EXECUTED
p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p )
115dbc: 85 c0 test %eax,%eax <== NOT EXECUTED 115dbe: 74 a0 je 115d60 <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 ];
115dc0: 8b 0c 88 mov (%eax,%ecx,4),%ecx <== NOT EXECUTED
if ( !p1 )
115dc3: 85 c9 test %ecx,%ecx <== NOT EXECUTED 115dc5: 74 99 je 115d60 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ];
115dc7: 8d 04 bd 00 00 00 00 lea 0x0(,%edi,4),%eax <== NOT EXECUTED 115dce: 03 04 91 add (%ecx,%edx,4),%eax <== NOT EXECUTED 115dd1: e9 fc fe ff ff jmp 115cd2 <IMFS_memfile_get_block_pointer+0x6e><== NOT EXECUTED
/* * Perform internal consistency checks */ assert( the_jnode );
115dd6: 68 e0 53 12 00 push $0x1253e0 <== NOT EXECUTED 115ddb: 68 c4 54 12 00 push $0x1254c4 <== NOT EXECUTED 115de0: 68 88 03 00 00 push $0x388 <== NOT EXECUTED 115de5: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 115dea: e8 91 32 ff ff call 109080 <__assert_func> <== NOT EXECUTED
if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE );
115def: 68 54 54 12 00 push $0x125454 <== NOT EXECUTED 115df4: 68 c4 54 12 00 push $0x1254c4 <== NOT EXECUTED 115df9: 68 8c 03 00 00 push $0x38c <== NOT EXECUTED 115dfe: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 115e03: e8 78 32 ff ff call 109080 <__assert_func> <== NOT EXECUTED
p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block();
115e08: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 115e0b: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 115e0e: e8 2d fe ff ff call 115c40 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
115e13: 85 c0 test %eax,%eax <== NOT EXECUTED 115e15: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 115e18: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 115e1b: 0f 84 3f ff ff ff je 115d60 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
return 0; info->triply_indirect = p;
115e21: 89 43 60 mov %eax,0x60(%ebx) <== NOT EXECUTED 115e24: e9 01 ff ff ff jmp 115d2a <IMFS_memfile_get_block_pointer+0xc6><== NOT EXECUTED
} p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block();
115e29: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 115e2c: e8 0f fe ff ff call 115c40 <memfile_alloc_block> <== NOT EXECUTED
if ( !p1 )
115e31: 85 c0 test %eax,%eax <== NOT EXECUTED 115e33: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 115e36: 0f 84 24 ff ff ff je 115d60 <IMFS_memfile_get_block_pointer+0xfc><== NOT EXECUTED
return 0; p[ triply ] = (block_p) p1;
115e3c: 89 03 mov %eax,(%ebx) <== NOT EXECUTED 115e3e: e9 f4 fe ff ff jmp 115d37 <IMFS_memfile_get_block_pointer+0xd3><== NOT EXECUTED
00116784 <IMFS_memfile_read>: IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) {
116784: 55 push %ebp 116785: 89 e5 mov %esp,%ebp 116787: 57 push %edi 116788: 56 push %esi 116789: 53 push %ebx 11678a: 83 ec 4c sub $0x4c,%esp 11678d: 8b 75 0c mov 0xc(%ebp),%esi 116790: 8b 7d 10 mov 0x10(%ebp),%edi 116793: 8b 45 18 mov 0x18(%ebp),%eax
/* * Perform internal consistency checks */ assert( the_jnode );
116796: 8b 55 08 mov 0x8(%ebp),%edx 116799: 85 d2 test %edx,%edx
11679b: 0f 84 8e 02 00 00 je 116a2f <IMFS_memfile_read+0x2ab><== ALWAYS TAKEN
if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ||
1167a1: 8b 4d 08 mov 0x8(%ebp),%ecx 1167a4: 8b 51 4c mov 0x4c(%ecx),%edx 1167a7: 8d 4a fb lea -0x5(%edx),%ecx 1167aa: 83 f9 01 cmp $0x1,%ecx
1167ad: 0f 87 63 02 00 00 ja 116a16 <IMFS_memfile_read+0x292><== ALWAYS TAKEN
/* * Error checks on arguments */ assert( dest );
1167b3: 8b 5d 14 mov 0x14(%ebp),%ebx 1167b6: 85 db test %ebx,%ebx
1167b8: 0f 84 26 02 00 00 je 1169e4 <IMFS_memfile_read+0x260><== ALWAYS TAKEN
/* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length )
1167be: 85 c0 test %eax,%eax
1167c0: 0f 84 f0 01 00 00 je 1169b6 <IMFS_memfile_read+0x232><== ALWAYS TAKEN
/* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) {
1167c6: 83 fa 06 cmp $0x6,%edx
1167c9: 0f 84 5d 01 00 00 je 11692c <IMFS_memfile_read+0x1a8><== ALWAYS 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;
1167cf: 89 f2 mov %esi,%edx
if ( last_byte > the_jnode->info.file.size )
1167d1: 8b 4d 08 mov 0x8(%ebp),%ecx 1167d4: 8b 49 50 mov 0x50(%ecx),%ecx 1167d7: 89 4d cc mov %ecx,-0x34(%ebp) 1167da: 8d 1c 30 lea (%eax,%esi,1),%ebx 1167dd: 89 5d d0 mov %ebx,-0x30(%ebp) 1167e0: 31 c9 xor %ecx,%ecx 1167e2: 8b 5d 08 mov 0x8(%ebp),%ebx 1167e5: 3b 4b 54 cmp 0x54(%ebx),%ecx
1167e8: 0f 8e e2 00 00 00 jle 1168d0 <IMFS_memfile_read+0x14c><== NEVER TAKEN
my_length = the_jnode->info.file.size - start;
1167ee: 8b 5d cc mov -0x34(%ebp),%ebx 1167f1: 29 d3 sub %edx,%ebx 1167f3: 89 5d cc mov %ebx,-0x34(%ebp)
/* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
1167f6: a1 10 b1 12 00 mov 0x12b110,%eax 1167fb: 89 45 d0 mov %eax,-0x30(%ebp) 1167fe: 99 cltd 1167ff: 89 d3 mov %edx,%ebx 116801: 52 push %edx 116802: 50 push %eax 116803: 57 push %edi 116804: 56 push %esi 116805: 89 45 c0 mov %eax,-0x40(%ebp) 116808: e8 ff be 00 00 call 12270c <__moddi3> 11680d: 83 c4 10 add $0x10,%esp 116810: 89 45 c8 mov %eax,-0x38(%ebp)
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
116813: 8b 4d c0 mov -0x40(%ebp),%ecx 116816: 53 push %ebx 116817: 51 push %ecx 116818: 57 push %edi 116819: 56 push %esi 11681a: e8 9d bd 00 00 call 1225bc <__divdi3> 11681f: 83 c4 10 add $0x10,%esp 116822: 89 c3 mov %eax,%ebx
if ( start_offset ) {
116824: 8b 4d c8 mov -0x38(%ebp),%ecx 116827: 85 c9 test %ecx,%ecx
116829: 0f 85 b1 00 00 00 jne 1168e0 <IMFS_memfile_read+0x15c>
11682f: 8b 55 14 mov 0x14(%ebp),%edx 116832: 89 55 c8 mov %edx,-0x38(%ebp) 116835: 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 ) {
11683c: 8b 55 d0 mov -0x30(%ebp),%edx 11683f: 39 55 cc cmp %edx,-0x34(%ebp)
116842: 72 39 jb 11687d <IMFS_memfile_read+0xf9> block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
116844: 50 push %eax 116845: 6a 00 push $0x0 116847: 53 push %ebx 116848: ff 75 08 pushl 0x8(%ebp) 11684b: e8 14 f4 ff ff call 115c64 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
116850: 83 c4 10 add $0x10,%esp 116853: 85 c0 test %eax,%eax
116855: 0f 84 70 01 00 00 je 1169cb <IMFS_memfile_read+0x247><== ALWAYS TAKEN
if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
11685b: 8b 30 mov (%eax),%esi 11685d: 8b 7d c8 mov -0x38(%ebp),%edi 116860: 8b 4d d0 mov -0x30(%ebp),%ecx 116863: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
dest += to_copy;
116865: 89 7d c8 mov %edi,-0x38(%ebp)
block++;
116868: 43 inc %ebx
my_length -= to_copy;
116869: 8b 4d d0 mov -0x30(%ebp),%ecx 11686c: 29 4d cc sub %ecx,-0x34(%ebp)
copied += to_copy;
11686f: 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 ) {
116872: 8b 7d cc mov -0x34(%ebp),%edi 116875: 39 3d 10 b1 12 00 cmp %edi,0x12b110
11687b: 76 c7 jbe 116844 <IMFS_memfile_read+0xc0> * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) {
11687d: 8b 7d cc mov -0x34(%ebp),%edi 116880: 85 ff test %edi,%edi
116882: 74 27 je 1168ab <IMFS_memfile_read+0x127> block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
116884: 56 push %esi 116885: 6a 00 push $0x0 116887: 53 push %ebx 116888: ff 75 08 pushl 0x8(%ebp) 11688b: e8 d4 f3 ff ff call 115c64 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
116890: 83 c4 10 add $0x10,%esp 116893: 85 c0 test %eax,%eax
116895: 0f 84 62 01 00 00 je 1169fd <IMFS_memfile_read+0x279><== ALWAYS TAKEN
if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length );
11689b: 8b 30 mov (%eax),%esi 11689d: 8b 7d c8 mov -0x38(%ebp),%edi 1168a0: 8b 4d cc mov -0x34(%ebp),%ecx 1168a3: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
copied += my_length;
1168a5: 8b 45 cc mov -0x34(%ebp),%eax 1168a8: 01 45 c4 add %eax,-0x3c(%ebp)
} IMFS_update_atime( the_jnode );
1168ab: 83 ec 08 sub $0x8,%esp 1168ae: 6a 00 push $0x0 1168b0: 8d 45 e0 lea -0x20(%ebp),%eax 1168b3: 50 push %eax 1168b4: e8 d3 2b ff ff call 10948c <gettimeofday> 1168b9: 8b 45 e0 mov -0x20(%ebp),%eax 1168bc: 8b 55 08 mov 0x8(%ebp),%edx 1168bf: 89 42 40 mov %eax,0x40(%edx)
return copied;
1168c2: 8b 45 c4 mov -0x3c(%ebp),%eax 1168c5: 83 c4 10 add $0x10,%esp
}
1168c8: 8d 65 f4 lea -0xc(%ebp),%esp 1168cb: 5b pop %ebx 1168cc: 5e pop %esi 1168cd: 5f pop %edi 1168ce: c9 leave 1168cf: 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 )
1168d0: 0f 8d ba 00 00 00 jge 116990 <IMFS_memfile_read+0x20c><== NEVER TAKEN
1168d6: 89 45 cc mov %eax,-0x34(%ebp) 1168d9: e9 18 ff ff ff jmp 1167f6 <IMFS_memfile_read+0x72>
1168de: 66 90 xchg %ax,%ax <== NOT EXECUTED
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 );
1168e0: 52 push %edx 1168e1: 6a 00 push $0x0 1168e3: 53 push %ebx 1168e4: ff 75 08 pushl 0x8(%ebp) 1168e7: e8 78 f3 ff ff call 115c64 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
1168ec: 83 c4 10 add $0x10,%esp 1168ef: 85 c0 test %eax,%eax
1168f1: 0f 84 51 01 00 00 je 116a48 <IMFS_memfile_read+0x2c4><== ALWAYS 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;
1168f7: 8b 4d d0 mov -0x30(%ebp),%ecx 1168fa: 2b 4d c8 sub -0x38(%ebp),%ecx 1168fd: 8b 55 cc mov -0x34(%ebp),%edx 116900: 39 ca cmp %ecx,%edx
116902: 0f 87 9c 00 00 00 ja 1169a4 <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 );
116908: 8b 75 c8 mov -0x38(%ebp),%esi 11690b: 03 30 add (%eax),%esi
dest += to_copy;
11690d: 8b 7d 14 mov 0x14(%ebp),%edi 116910: 89 d1 mov %edx,%ecx 116912: f3 a4 rep movsb %ds:(%esi),%es:(%edi) 116914: 89 7d c8 mov %edi,-0x38(%ebp)
block++;
116917: 43 inc %ebx
my_length -= to_copy;
116918: 29 55 cc sub %edx,-0x34(%ebp) 11691b: a1 10 b1 12 00 mov 0x12b110,%eax 116920: 89 45 d0 mov %eax,-0x30(%ebp) 116923: 89 55 c4 mov %edx,-0x3c(%ebp) 116926: e9 11 ff ff ff jmp 11683c <IMFS_memfile_read+0xb8>
11692b: 90 nop <== NOT EXECUTED
* than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
11692c: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 11692f: 8b 5b 58 mov 0x58(%ebx),%ebx <== NOT EXECUTED 116932: 89 5d cc mov %ebx,-0x34(%ebp) <== NOT EXECUTED
if (my_length > (the_jnode->info.linearfile.size - start))
116935: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 116938: 8b 51 50 mov 0x50(%ecx),%edx <== NOT EXECUTED 11693b: 8b 49 54 mov 0x54(%ecx),%ecx <== NOT EXECUTED 11693e: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED 116941: 89 4d b4 mov %ecx,-0x4c(%ebp) <== NOT EXECUTED 116944: 29 f2 sub %esi,%edx <== NOT EXECUTED 116946: 19 f9 sbb %edi,%ecx <== NOT EXECUTED 116948: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED 11694b: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED 11694e: 31 db xor %ebx,%ebx <== NOT EXECUTED 116950: 39 cb cmp %ecx,%ebx <== NOT EXECUTED 116952: 7e 58 jle 1169ac <IMFS_memfile_read+0x228><== NOT EXECUTED
my_length = the_jnode->info.linearfile.size - start;
116954: 8b 55 b0 mov -0x50(%ebp),%edx <== NOT EXECUTED 116957: 29 f2 sub %esi,%edx <== NOT EXECUTED
memcpy(dest, &file_ptr[start], my_length);
116959: 03 75 cc add -0x34(%ebp),%esi <== NOT EXECUTED 11695c: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED 11695f: 89 d1 mov %edx,%ecx <== NOT EXECUTED 116961: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
IMFS_update_atime( the_jnode );
116963: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 116966: 6a 00 push $0x0 <== NOT EXECUTED 116968: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED 11696b: 50 push %eax <== NOT EXECUTED 11696c: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED 11696f: e8 18 2b ff ff call 10948c <gettimeofday> <== NOT EXECUTED 116974: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 116977: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 11697a: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED
return my_length;
11697d: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED 116980: 89 d0 mov %edx,%eax <== NOT EXECUTED 116982: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} IMFS_update_atime( the_jnode ); return copied; }
116985: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 116988: 5b pop %ebx <== NOT EXECUTED 116989: 5e pop %esi <== NOT EXECUTED 11698a: 5f pop %edi <== NOT EXECUTED 11698b: c9 leave <== NOT EXECUTED 11698c: c3 ret <== NOT EXECUTED 11698d: 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 )
116990: 8b 4d cc mov -0x34(%ebp),%ecx 116993: 39 4d d0 cmp %ecx,-0x30(%ebp)
116996: 0f 87 52 fe ff ff ja 1167ee <IMFS_memfile_read+0x6a>
11699c: e9 35 ff ff ff jmp 1168d6 <IMFS_memfile_read+0x152>
1169a1: 8d 76 00 lea 0x0(%esi),%esi <== 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;
1169a4: 89 ca mov %ecx,%edx 1169a6: e9 5d ff ff ff jmp 116908 <IMFS_memfile_read+0x184>
1169ab: 90 nop <== NOT EXECUTED
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))
1169ac: 7c 04 jl 1169b2 <IMFS_memfile_read+0x22e><== NOT EXECUTED 1169ae: 39 d0 cmp %edx,%eax <== NOT EXECUTED 1169b0: 77 a2 ja 116954 <IMFS_memfile_read+0x1d0><== NOT EXECUTED 1169b2: 89 c2 mov %eax,%edx <== NOT EXECUTED 1169b4: eb a3 jmp 116959 <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 );
1169b6: e8 39 0c 00 00 call 1175f4 <__errno> <== NOT EXECUTED 1169bb: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 1169c1: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 1169c6: e9 fd fe ff ff jmp 1168c8 <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 );
1169cb: 68 f6 53 12 00 push $0x1253f6 <== NOT EXECUTED 1169d0: 68 f6 54 12 00 push $0x1254f6 <== NOT EXECUTED 1169d5: 68 a7 02 00 00 push $0x2a7 <== NOT EXECUTED 1169da: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 1169df: e8 9c 26 ff ff call 109080 <__assert_func> <== NOT EXECUTED
/* * Error checks on arguments */ assert( dest );
1169e4: 68 07 54 12 00 push $0x125407 <== NOT EXECUTED 1169e9: 68 f6 54 12 00 push $0x1254f6 <== NOT EXECUTED 1169ee: 68 5a 02 00 00 push $0x25a <== NOT EXECUTED 1169f3: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 1169f8: e8 83 26 ff ff call 109080 <__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 );
1169fd: 68 f6 53 12 00 push $0x1253f6 <== NOT EXECUTED 116a02: 68 f6 54 12 00 push $0x1254f6 <== NOT EXECUTED 116a07: 68 b9 02 00 00 push $0x2b9 <== NOT EXECUTED 116a0c: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 116a11: e8 6a 26 ff ff call 109080 <__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 ||
116a16: 68 78 54 12 00 push $0x125478 <== NOT EXECUTED 116a1b: 68 f6 54 12 00 push $0x1254f6 <== NOT EXECUTED 116a20: 68 51 02 00 00 push $0x251 <== NOT EXECUTED 116a25: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 116a2a: e8 51 26 ff ff call 109080 <__assert_func> <== NOT EXECUTED
/* * Perform internal consistency checks */ assert( the_jnode );
116a2f: 68 e0 53 12 00 push $0x1253e0 <== NOT EXECUTED 116a34: 68 f6 54 12 00 push $0x1254f6 <== NOT EXECUTED 116a39: 68 4c 02 00 00 push $0x24c <== NOT EXECUTED 116a3e: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 116a43: e8 38 26 ff ff call 109080 <__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 );
116a48: 68 f6 53 12 00 push $0x1253f6 <== NOT EXECUTED 116a4d: 68 f6 54 12 00 push $0x1254f6 <== NOT EXECUTED 116a52: 68 96 02 00 00 push $0x296 <== NOT EXECUTED 116a57: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 116a5c: e8 1f 26 ff ff call 109080 <__assert_func> <== NOT EXECUTED
00115f0c <IMFS_memfile_remove>: */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) {
115f0c: 55 push %ebp 115f0d: 89 e5 mov %esp,%ebp 115f0f: 57 push %edi 115f10: 56 push %esi 115f11: 53 push %ebx 115f12: 83 ec 1c sub $0x1c,%esp
/* * Perform internal consistency checks */ assert( the_jnode );
115f15: 8b 55 08 mov 0x8(%ebp),%edx 115f18: 85 d2 test %edx,%edx
115f1a: 0f 84 61 01 00 00 je 116081 <IMFS_memfile_remove+0x175><== ALWAYS TAKEN
if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE );
115f20: 8b 45 08 mov 0x8(%ebp),%eax 115f23: 83 78 4c 05 cmpl $0x5,0x4c(%eax)
115f27: 0f 85 6d 01 00 00 jne 11609a <IMFS_memfile_remove+0x18e><== ALWAYS 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;
115f2d: 8b 3d 10 b1 12 00 mov 0x12b110,%edi 115f33: c1 ef 02 shr $0x2,%edi
* + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file;
115f36: 8b 55 08 mov 0x8(%ebp),%edx 115f39: 8b 42 58 mov 0x58(%edx),%eax 115f3c: 85 c0 test %eax,%eax
115f3e: 74 12 je 115f52 <IMFS_memfile_remove+0x46> if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free );
115f40: 83 ec 08 sub $0x8,%esp 115f43: 57 push %edi 115f44: 89 d0 mov %edx,%eax 115f46: 83 c0 58 add $0x58,%eax 115f49: 50 push %eax 115f4a: e8 f5 fe ff ff call 115e44 <memfile_free_blocks_in_table> 115f4f: 83 c4 10 add $0x10,%esp
} if ( info->doubly_indirect ) {
115f52: 8b 4d 08 mov 0x8(%ebp),%ecx 115f55: 8b 51 5c mov 0x5c(%ecx),%edx 115f58: 85 d2 test %edx,%edx
115f5a: 74 57 je 115fb3 <IMFS_memfile_remove+0xa7><== NEVER TAKEN
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
115f5c: a1 10 b1 12 00 mov 0x12b110,%eax <== NOT EXECUTED 115f61: 89 c1 mov %eax,%ecx <== NOT EXECUTED 115f63: c1 e9 02 shr $0x2,%ecx <== NOT EXECUTED 115f66: 74 38 je 115fa0 <IMFS_memfile_remove+0x94><== NOT EXECUTED 115f68: 31 c9 xor %ecx,%ecx <== NOT EXECUTED 115f6a: 31 db xor %ebx,%ebx <== NOT EXECUTED 115f6c: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED 115f6f: eb 06 jmp 115f77 <IMFS_memfile_remove+0x6b><== NOT EXECUTED 115f71: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 115f74: 8b 56 5c mov 0x5c(%esi),%edx <== NOT EXECUTED
if ( info->doubly_indirect[i] ) {
115f77: c1 e1 02 shl $0x2,%ecx <== NOT EXECUTED 115f7a: 83 3c 0a 00 cmpl $0x0,(%edx,%ecx,1) <== NOT EXECUTED 115f7e: 74 14 je 115f94 <IMFS_memfile_remove+0x88><== NOT EXECUTED
memfile_free_blocks_in_table(
115f80: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 115f83: 57 push %edi <== NOT EXECUTED 115f84: 01 ca add %ecx,%edx <== NOT EXECUTED 115f86: 52 push %edx <== NOT EXECUTED 115f87: e8 b8 fe ff ff call 115e44 <memfile_free_blocks_in_table><== NOT EXECUTED 115f8c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 115f8f: a1 10 b1 12 00 mov 0x12b110,%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++ ) {
115f94: 43 inc %ebx <== NOT EXECUTED 115f95: 89 d9 mov %ebx,%ecx <== NOT EXECUTED 115f97: 89 c2 mov %eax,%edx <== NOT EXECUTED 115f99: c1 ea 02 shr $0x2,%edx <== NOT EXECUTED 115f9c: 39 da cmp %ebx,%edx <== NOT EXECUTED 115f9e: 77 d4 ja 115f74 <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 );
115fa0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 115fa3: 57 push %edi <== NOT EXECUTED 115fa4: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 115fa7: 83 c0 5c add $0x5c,%eax <== NOT EXECUTED 115faa: 50 push %eax <== NOT EXECUTED 115fab: e8 94 fe ff ff call 115e44 <memfile_free_blocks_in_table><== NOT EXECUTED 115fb0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} if ( info->triply_indirect ) {
115fb3: 8b 45 08 mov 0x8(%ebp),%eax 115fb6: 8b 50 60 mov 0x60(%eax),%edx 115fb9: 85 d2 test %edx,%edx
115fbb: 0f 84 b6 00 00 00 je 116077 <IMFS_memfile_remove+0x16b><== NEVER TAKEN
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
115fc1: a1 10 b1 12 00 mov 0x12b110,%eax <== NOT EXECUTED 115fc6: 89 c1 mov %eax,%ecx <== NOT EXECUTED 115fc8: c1 e9 02 shr $0x2,%ecx <== NOT EXECUTED 115fcb: 0f 84 93 00 00 00 je 116064 <IMFS_memfile_remove+0x158><== NOT EXECUTED
p = (block_p *) info->triply_indirect[i];
115fd1: 8b 32 mov (%edx),%esi <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
115fd3: 85 f6 test %esi,%esi <== NOT EXECUTED 115fd5: 0f 84 89 00 00 00 je 116064 <IMFS_memfile_remove+0x158><== NOT EXECUTED 115fdb: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED 115fe2: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED 115fe9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
break; for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
115fec: 89 c2 mov %eax,%edx <== NOT EXECUTED 115fee: c1 ea 02 shr $0x2,%edx <== NOT EXECUTED 115ff1: 74 30 je 116023 <IMFS_memfile_remove+0x117><== NOT EXECUTED 115ff3: 31 d2 xor %edx,%edx <== NOT EXECUTED 115ff5: 31 db xor %ebx,%ebx <== NOT EXECUTED 115ff7: 90 nop <== NOT EXECUTED
if ( p[j] ) {
115ff8: c1 e2 02 shl $0x2,%edx <== NOT EXECUTED 115ffb: 8b 0c 16 mov (%esi,%edx,1),%ecx <== NOT EXECUTED 115ffe: 85 c9 test %ecx,%ecx <== NOT EXECUTED 116000: 74 15 je 116017 <IMFS_memfile_remove+0x10b><== NOT EXECUTED
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
116002: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 116005: 57 push %edi <== NOT EXECUTED 116006: 8d 14 16 lea (%esi,%edx,1),%edx <== NOT EXECUTED 116009: 52 push %edx <== NOT EXECUTED 11600a: e8 35 fe ff ff call 115e44 <memfile_free_blocks_in_table><== NOT EXECUTED 11600f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 116012: a1 10 b1 12 00 mov 0x12b110,%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++ ) {
116017: 43 inc %ebx <== NOT EXECUTED 116018: 89 da mov %ebx,%edx <== NOT EXECUTED 11601a: 89 c1 mov %eax,%ecx <== NOT EXECUTED 11601c: c1 e9 02 shr $0x2,%ecx <== NOT EXECUTED 11601f: 39 d9 cmp %ebx,%ecx <== NOT EXECUTED 116021: 77 d5 ja 115ff8 <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(
116023: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 116026: 57 push %edi <== NOT EXECUTED 116027: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 11602a: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 11602d: 03 41 60 add 0x60(%ecx),%eax <== NOT EXECUTED 116030: 50 push %eax <== NOT EXECUTED 116031: e8 0e fe ff ff call 115e44 <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++ ) {
116036: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED 116039: a1 10 b1 12 00 mov 0x12b110,%eax <== NOT EXECUTED 11603e: 89 c2 mov %eax,%edx <== NOT EXECUTED 116040: c1 ea 02 shr $0x2,%edx <== NOT EXECUTED 116043: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 116046: 3b 55 e4 cmp -0x1c(%ebp),%edx <== NOT EXECUTED 116049: 76 19 jbe 116064 <IMFS_memfile_remove+0x158><== NOT EXECUTED
p = (block_p *) info->triply_indirect[i]; if ( !p ) /* ensure we have a valid pointer */
11604b: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 11604e: c1 e2 02 shl $0x2,%edx <== NOT EXECUTED 116051: 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];
116054: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 116057: 8b 51 60 mov 0x60(%ecx),%edx <== NOT EXECUTED 11605a: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 11605d: 8b 34 0a mov (%edx,%ecx,1),%esi <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
116060: 85 f6 test %esi,%esi <== NOT EXECUTED 116062: 75 88 jne 115fec <IMFS_memfile_remove+0xe0><== NOT EXECUTED
} } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table(
116064: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 116067: 57 push %edi <== NOT EXECUTED 116068: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 11606b: 83 c0 60 add $0x60,%eax <== NOT EXECUTED 11606e: 50 push %eax <== NOT EXECUTED 11606f: e8 d0 fd ff ff call 115e44 <memfile_free_blocks_in_table><== NOT EXECUTED 116074: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
(block_p **)&info->triply_indirect, to_free ); } return 0; }
116077: 31 c0 xor %eax,%eax 116079: 8d 65 f4 lea -0xc(%ebp),%esp 11607c: 5b pop %ebx 11607d: 5e pop %esi 11607e: 5f pop %edi 11607f: c9 leave 116080: c3 ret
/* * Perform internal consistency checks */ assert( the_jnode );
116081: 68 e0 53 12 00 push $0x1253e0 <== NOT EXECUTED 116086: 68 08 55 12 00 push $0x125508 <== NOT EXECUTED 11608b: 68 ee 01 00 00 push $0x1ee <== NOT EXECUTED 116090: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 116095: e8 e6 2f ff ff call 109080 <__assert_func> <== NOT EXECUTED
if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE );
11609a: 68 54 54 12 00 push $0x125454 <== NOT EXECUTED 11609f: 68 08 55 12 00 push $0x125508 <== NOT EXECUTED 1160a4: 68 f2 01 00 00 push $0x1f2 <== NOT EXECUTED 1160a9: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 1160ae: e8 cd 2f ff ff call 109080 <__assert_func> <== NOT EXECUTED
00115ec0 <IMFS_memfile_remove_block>: MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) {
115ec0: 55 push %ebp <== NOT EXECUTED 115ec1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 115ec3: 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 );
115ec6: 6a 00 push $0x0 <== NOT EXECUTED 115ec8: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 115ecb: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 115ece: e8 91 fd ff ff call 115c64 <IMFS_memfile_get_block_pointer><== NOT EXECUTED
assert( block_ptr );
115ed3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 115ed6: 85 c0 test %eax,%eax <== NOT EXECUTED 115ed8: 74 18 je 115ef2 <IMFS_memfile_remove_block+0x32><== NOT EXECUTED
if ( block_ptr ) { ptr = *block_ptr;
115eda: 8b 10 mov (%eax),%edx <== NOT EXECUTED
*block_ptr = 0;
115edc: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED
memfile_free_block( ptr );
115ee2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 115ee5: 52 push %edx <== NOT EXECUTED 115ee6: e8 39 fd ff ff call 115c24 <memfile_free_block> <== NOT EXECUTED
} return 1; }
115eeb: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED 115ef0: c9 leave <== NOT EXECUTED 115ef1: 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 );
115ef2: 68 f6 53 12 00 push $0x1253f6 <== NOT EXECUTED 115ef7: 68 39 55 12 00 push $0x125539 <== NOT EXECUTED 115efc: 68 96 01 00 00 push $0x196 <== NOT EXECUTED 115f01: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 115f06: e8 75 31 ff ff call 109080 <__assert_func> <== NOT EXECUTED
00116454 <IMFS_memfile_write>: IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) {
116454: 55 push %ebp 116455: 89 e5 mov %esp,%ebp 116457: 57 push %edi 116458: 56 push %esi 116459: 53 push %ebx 11645a: 83 ec 3c sub $0x3c,%esp 11645d: 8b 5d 0c mov 0xc(%ebp),%ebx 116460: 8b 75 10 mov 0x10(%ebp),%esi
/* * Perform internal consistency checks */ assert( the_jnode );
116463: 8b 4d 08 mov 0x8(%ebp),%ecx 116466: 85 c9 test %ecx,%ecx
116468: 0f 84 d8 01 00 00 je 116646 <IMFS_memfile_write+0x1f2><== ALWAYS TAKEN
if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE );
11646e: 8b 45 08 mov 0x8(%ebp),%eax 116471: 83 78 4c 05 cmpl $0x5,0x4c(%eax)
116475: 0f 85 b2 01 00 00 jne 11662d <IMFS_memfile_write+0x1d9><== ALWAYS TAKEN
/* * Error check arguments */ assert( source );
11647b: 8b 55 14 mov 0x14(%ebp),%edx 11647e: 85 d2 test %edx,%edx
116480: 0f 84 d9 01 00 00 je 11665f <IMFS_memfile_write+0x20b><== ALWAYS TAKEN
/* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length )
116486: 8b 45 18 mov 0x18(%ebp),%eax 116489: 85 c0 test %eax,%eax
11648b: 0f 84 6c 01 00 00 je 1165fd <IMFS_memfile_write+0x1a9><== ALWAYS 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 ) {
116491: 8b 45 18 mov 0x18(%ebp),%eax 116494: 01 d8 add %ebx,%eax 116496: 31 d2 xor %edx,%edx 116498: 8b 4d 08 mov 0x8(%ebp),%ecx 11649b: 3b 51 54 cmp 0x54(%ecx),%edx
11649e: 7c 10 jl 1164b0 <IMFS_memfile_write+0x5c><== ALWAYS TAKEN 1164a0: 0f 8f 26 01 00 00 jg 1165cc <IMFS_memfile_write+0x178><== ALWAYS TAKEN
1164a6: 3b 41 50 cmp 0x50(%ecx),%eax
1164a9: 0f 87 1d 01 00 00 ja 1165cc <IMFS_memfile_write+0x178><== NEVER TAKEN
1164af: 90 nop <== NOT EXECUTED
/* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
1164b0: a1 10 b1 12 00 mov 0x12b110,%eax 1164b5: 89 45 d4 mov %eax,-0x2c(%ebp) 1164b8: 99 cltd 1164b9: 89 45 c8 mov %eax,-0x38(%ebp) 1164bc: 89 55 cc mov %edx,-0x34(%ebp) 1164bf: 52 push %edx 1164c0: 50 push %eax 1164c1: 56 push %esi 1164c2: 53 push %ebx 1164c3: e8 44 c2 00 00 call 12270c <__moddi3> 1164c8: 83 c4 10 add $0x10,%esp 1164cb: 89 c7 mov %eax,%edi
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
1164cd: ff 75 cc pushl -0x34(%ebp) 1164d0: ff 75 c8 pushl -0x38(%ebp) 1164d3: 56 push %esi 1164d4: 53 push %ebx 1164d5: e8 e2 c0 00 00 call 1225bc <__divdi3> 1164da: 83 c4 10 add $0x10,%esp 1164dd: 89 c3 mov %eax,%ebx
if ( start_offset ) {
1164df: 85 ff test %edi,%edi
1164e1: 0f 85 a1 00 00 00 jne 116588 <IMFS_memfile_write+0x134>
1164e7: 8b 75 14 mov 0x14(%ebp),%esi 1164ea: 8b 55 18 mov 0x18(%ebp),%edx 1164ed: 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 ) {
1164f4: 3b 55 d4 cmp -0x2c(%ebp),%edx
1164f7: 72 3b jb 116534 <IMFS_memfile_write+0xe0>
1164f9: 8d 76 00 lea 0x0(%esi),%esi
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
1164fc: 51 push %ecx 1164fd: 6a 00 push $0x0 1164ff: 53 push %ebx 116500: ff 75 08 pushl 0x8(%ebp) 116503: 89 55 c4 mov %edx,-0x3c(%ebp) 116506: e8 59 f7 ff ff call 115c64 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
11650b: 83 c4 10 add $0x10,%esp 11650e: 85 c0 test %eax,%eax 116510: 8b 55 c4 mov -0x3c(%ebp),%edx
116513: 0f 84 fb 00 00 00 je 116614 <IMFS_memfile_write+0x1c0><== ALWAYS 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 );
116519: 8b 00 mov (%eax),%eax
src += to_copy;
11651b: 89 c7 mov %eax,%edi 11651d: 8b 4d d4 mov -0x2c(%ebp),%ecx 116520: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
block++;
116522: 43 inc %ebx
my_length -= to_copy;
116523: 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(
116526: 8b 4d d4 mov -0x2c(%ebp),%ecx 116529: 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 ) {
11652c: 39 15 10 b1 12 00 cmp %edx,0x12b110
116532: 76 c8 jbe 1164fc <IMFS_memfile_write+0xa8> */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) {
116534: 85 d2 test %edx,%edx
116536: 74 28 je 116560 <IMFS_memfile_write+0x10c> block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
116538: 50 push %eax 116539: 6a 00 push $0x0 11653b: 53 push %ebx 11653c: ff 75 08 pushl 0x8(%ebp) 11653f: 89 55 c4 mov %edx,-0x3c(%ebp) 116542: e8 1d f7 ff ff call 115c64 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
116547: 83 c4 10 add $0x10,%esp 11654a: 85 c0 test %eax,%eax 11654c: 8b 55 c4 mov -0x3c(%ebp),%edx
11654f: 0f 84 23 01 00 00 je 116678 <IMFS_memfile_write+0x224><== ALWAYS 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 );
116555: 8b 00 mov (%eax),%eax 116557: 89 c7 mov %eax,%edi 116559: 89 d1 mov %edx,%ecx 11655b: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
my_length = 0; copied += to_copy;
11655d: 01 55 c8 add %edx,-0x38(%ebp)
} IMFS_mtime_ctime_update( the_jnode );
116560: 83 ec 08 sub $0x8,%esp 116563: 6a 00 push $0x0 116565: 8d 45 e0 lea -0x20(%ebp),%eax 116568: 50 push %eax 116569: e8 1e 2f ff ff call 10948c <gettimeofday> 11656e: 8b 45 e0 mov -0x20(%ebp),%eax 116571: 8b 55 08 mov 0x8(%ebp),%edx 116574: 89 42 44 mov %eax,0x44(%edx) 116577: 89 42 48 mov %eax,0x48(%edx)
return copied;
11657a: 83 c4 10 add $0x10,%esp
}
11657d: 8b 45 c8 mov -0x38(%ebp),%eax 116580: 8d 65 f4 lea -0xc(%ebp),%esp 116583: 5b pop %ebx 116584: 5e pop %esi 116585: 5f pop %edi 116586: c9 leave 116587: 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 );
116588: 56 push %esi 116589: 6a 00 push $0x0 11658b: 50 push %eax 11658c: ff 75 08 pushl 0x8(%ebp) 11658f: e8 d0 f6 ff ff call 115c64 <IMFS_memfile_get_block_pointer>
assert( block_ptr );
116594: 83 c4 10 add $0x10,%esp 116597: 85 c0 test %eax,%eax
116599: 0f 84 f2 00 00 00 je 116691 <IMFS_memfile_write+0x23d><== ALWAYS 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;
11659f: 8b 55 d4 mov -0x2c(%ebp),%edx 1165a2: 29 fa sub %edi,%edx 1165a4: 89 55 c8 mov %edx,-0x38(%ebp) 1165a7: 8b 4d 18 mov 0x18(%ebp),%ecx 1165aa: 39 ca cmp %ecx,%edx
1165ac: 77 4a ja 1165f8 <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 );
1165ae: 03 38 add (%eax),%edi
src += to_copy;
1165b0: 8b 75 14 mov 0x14(%ebp),%esi 1165b3: 8b 4d c8 mov -0x38(%ebp),%ecx 1165b6: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
block++;
1165b8: 43 inc %ebx
my_length -= to_copy;
1165b9: 8b 55 18 mov 0x18(%ebp),%edx 1165bc: 2b 55 c8 sub -0x38(%ebp),%edx
copied += to_copy;
1165bf: a1 10 b1 12 00 mov 0x12b110,%eax 1165c4: 89 45 d4 mov %eax,-0x2c(%ebp) 1165c7: e9 28 ff ff ff jmp 1164f4 <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 );
1165cc: 57 push %edi 1165cd: 52 push %edx 1165ce: 50 push %eax 1165cf: ff 75 08 pushl 0x8(%ebp) 1165d2: e8 2d fc ff ff call 116204 <IMFS_memfile_extend>
if ( status )
1165d7: 83 c4 10 add $0x10,%esp 1165da: 85 c0 test %eax,%eax
1165dc: 0f 84 ce fe ff ff je 1164b0 <IMFS_memfile_write+0x5c><== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOSPC );
1165e2: e8 0d 10 00 00 call 1175f4 <__errno> <== NOT EXECUTED 1165e7: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED 1165ed: c7 45 c8 ff ff ff ff movl $0xffffffff,-0x38(%ebp) <== NOT EXECUTED 1165f4: eb 87 jmp 11657d <IMFS_memfile_write+0x129><== NOT EXECUTED 1165f6: 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;
1165f8: 89 4d c8 mov %ecx,-0x38(%ebp) 1165fb: eb b1 jmp 1165ae <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 );
1165fd: e8 f2 0f 00 00 call 1175f4 <__errno> <== NOT EXECUTED 116602: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 116608: c7 45 c8 ff ff ff ff movl $0xffffffff,-0x38(%ebp) <== NOT EXECUTED 11660f: e9 69 ff ff ff jmp 11657d <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 );
116614: 68 f6 53 12 00 push $0x1253f6 <== NOT EXECUTED 116619: 68 e3 54 12 00 push $0x1254e3 <== NOT EXECUTED 11661e: 68 30 03 00 00 push $0x330 <== NOT EXECUTED 116623: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 116628: e8 53 2a ff ff call 109080 <__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 );
11662d: 68 54 54 12 00 push $0x125454 <== NOT EXECUTED 116632: 68 e3 54 12 00 push $0x1254e3 <== NOT EXECUTED 116637: 68 e7 02 00 00 push $0x2e7 <== NOT EXECUTED 11663c: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 116641: e8 3a 2a ff ff call 109080 <__assert_func> <== NOT EXECUTED
/* * Perform internal consistency checks */ assert( the_jnode );
116646: 68 e0 53 12 00 push $0x1253e0 <== NOT EXECUTED 11664b: 68 e3 54 12 00 push $0x1254e3 <== NOT EXECUTED 116650: 68 e3 02 00 00 push $0x2e3 <== NOT EXECUTED 116655: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 11665a: e8 21 2a ff ff call 109080 <__assert_func> <== NOT EXECUTED
/* * Error check arguments */ assert( source );
11665f: 68 00 54 12 00 push $0x125400 <== NOT EXECUTED 116664: 68 e3 54 12 00 push $0x1254e3 <== NOT EXECUTED 116669: 68 ef 02 00 00 push $0x2ef <== NOT EXECUTED 11666e: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 116673: e8 08 2a ff ff call 109080 <__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 );
116678: 68 f6 53 12 00 push $0x1253f6 <== NOT EXECUTED 11667d: 68 e3 54 12 00 push $0x1254e3 <== NOT EXECUTED 116682: 68 46 03 00 00 push $0x346 <== NOT EXECUTED 116687: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 11668c: e8 ef 29 ff ff call 109080 <__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 );
116691: 68 f6 53 12 00 push $0x1253f6 <== NOT EXECUTED 116696: 68 e3 54 12 00 push $0x1254e3 <== NOT EXECUTED 11669b: 68 1c 03 00 00 push $0x31c <== NOT EXECUTED 1166a0: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 1166a5: e8 d6 29 ff ff call 109080 <__assert_func> <== NOT EXECUTED
0010f5e4 <IMFS_mknod>: const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
10f5e4: 55 push %ebp 10f5e5: 89 e5 mov %esp,%ebp 10f5e7: 57 push %edi 10f5e8: 56 push %esi 10f5e9: 53 push %ebx 10f5ea: 83 ec 5c sub $0x5c,%esp 10f5ed: 8b 55 08 mov 0x8(%ebp),%edx 10f5f0: 8b 5d 0c mov 0xc(%ebp),%ebx 10f5f3: 8b 75 10 mov 0x10(%ebp),%esi 10f5f6: 8b 45 14 mov 0x14(%ebp),%eax 10f5f9: 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 );
10f5fc: 31 c0 xor %eax,%eax 10f5fe: b9 ff ff ff ff mov $0xffffffff,%ecx 10f603: 89 d7 mov %edx,%edi 10f605: f2 ae repnz scas %es:(%edi),%al 10f607: f7 d1 not %ecx 10f609: 49 dec %ecx 10f60a: 8d 45 e4 lea -0x1c(%ebp),%eax 10f60d: 50 push %eax 10f60e: 8d 7d af lea -0x51(%ebp),%edi 10f611: 57 push %edi 10f612: 51 push %ecx 10f613: 52 push %edx 10f614: e8 2f fe ff ff call 10f448 <IMFS_get_token>
/* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) )
10f619: 89 d8 mov %ebx,%eax 10f61b: 25 00 f0 00 00 and $0xf000,%eax 10f620: 83 c4 10 add $0x10,%esp 10f623: 3d 00 40 00 00 cmp $0x4000,%eax
10f628: 74 5e je 10f688 <IMFS_mknod+0xa4> type = IMFS_DIRECTORY; else if ( S_ISREG(mode) )
10f62a: 3d 00 80 00 00 cmp $0x8000,%eax
10f62f: 74 4f je 10f680 <IMFS_mknod+0x9c> type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
10f631: 3d 00 60 00 00 cmp $0x6000,%eax
10f636: 74 38 je 10f670 <IMFS_mknod+0x8c>
10f638: 3d 00 20 00 00 cmp $0x2000,%eax
10f63d: 74 31 je 10f670 <IMFS_mknod+0x8c> type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode))
10f63f: 3d 00 10 00 00 cmp $0x1000,%eax
10f644: 75 4a jne 10f690 <IMFS_mknod+0xac> <== ALWAYS TAKEN
10f646: 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(
10f64b: 83 ec 0c sub $0xc,%esp 10f64e: 8d 45 d0 lea -0x30(%ebp),%eax 10f651: 50 push %eax 10f652: 53 push %ebx 10f653: 57 push %edi 10f654: 52 push %edx 10f655: ff 75 18 pushl 0x18(%ebp) 10f658: e8 7f 20 00 00 call 1116dc <IMFS_create_node>
new_name, mode, &info ); if ( !new_node )
10f65d: 83 c4 20 add $0x20,%esp 10f660: 85 c0 test %eax,%eax
10f662: 74 3e je 10f6a2 <IMFS_mknod+0xbe> <== ALWAYS TAKEN
10f664: 31 c0 xor %eax,%eax
rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; }
10f666: 8d 65 f4 lea -0xc(%ebp),%esp 10f669: 5b pop %ebx 10f66a: 5e pop %esi 10f66b: 5f pop %edi 10f66c: c9 leave 10f66d: c3 ret
10f66e: 66 90 xchg %ax,%ax <== NOT EXECUTED
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 );
10f670: 89 75 d0 mov %esi,-0x30(%ebp)
dev_t device ) { union __rtems_dev_t temp; temp.device = device;
10f673: 8b 45 a4 mov -0x5c(%ebp),%eax 10f676: 89 45 d4 mov %eax,-0x2c(%ebp) 10f679: 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) ) {
10f67e: eb cb jmp 10f64b <IMFS_mknod+0x67>
/* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) type = IMFS_DIRECTORY; else if ( S_ISREG(mode) )
10f680: ba 05 00 00 00 mov $0x5,%edx 10f685: eb c4 jmp 10f64b <IMFS_mknod+0x67>
10f687: 90 nop <== NOT EXECUTED
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 );
10f688: ba 01 00 00 00 mov $0x1,%edx 10f68d: eb bc jmp 10f64b <IMFS_mknod+0x67>
10f68f: 90 nop <== NOT EXECUTED 10f690: e8 23 2e 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10f695: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 10f69b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f6a0: eb c4 jmp 10f666 <IMFS_mknod+0x82> <== NOT EXECUTED
mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM );
10f6a2: e8 11 2e 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10f6a7: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 10f6ad: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f6b2: eb b2 jmp 10f666 <IMFS_mknod+0x82> <== NOT EXECUTED
00108c98 <IMFS_mount>: #include <rtems/seterr.h> int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
108c98: 55 push %ebp 108c99: 89 e5 mov %esp,%ebp 108c9b: 83 ec 08 sub $0x8,%esp 108c9e: 8b 55 08 mov 0x8(%ebp),%edx
IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access;
108ca1: 8b 42 08 mov 0x8(%edx),%eax
/* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY )
108ca4: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
108ca8: 75 0a jne 108cb4 <IMFS_mount+0x1c> <== ALWAYS TAKEN
/* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry;
108caa: 89 50 5c mov %edx,0x5c(%eax) 108cad: 31 c0 xor %eax,%eax
return 0; }
108caf: c9 leave 108cb0: c3 ret
108cb1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR );
108cb4: e8 3b e9 00 00 call 1175f4 <__errno> <== NOT EXECUTED 108cb9: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED 108cbf: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
* the mounted file system. */ node->info.directory.mt_fs = mt_entry; return 0; }
108cc4: c9 leave <== NOT EXECUTED 108cc5: c3 ret <== NOT EXECUTED
0010934c <IMFS_print_jnode>: */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) {
10934c: 55 push %ebp 10934d: 89 e5 mov %esp,%ebp 10934f: 53 push %ebx 109350: 83 ec 04 sub $0x4,%esp 109353: 8b 5d 08 mov 0x8(%ebp),%ebx
assert( the_jnode );
109356: 85 db test %ebx,%ebx
109358: 0f 84 7f 01 00 00 je 1094dd <IMFS_print_jnode+0x191><== ALWAYS TAKEN
fprintf(stdout, "%s", the_jnode->name );
10935e: 83 ec 08 sub $0x8,%esp 109361: a1 80 a6 12 00 mov 0x12a680,%eax 109366: ff 70 08 pushl 0x8(%eax) 109369: 8d 43 0c lea 0xc(%ebx),%eax 10936c: 50 push %eax 10936d: e8 9e d5 00 00 call 116910 <fputs>
switch( the_jnode->type ) {
109372: 8b 43 4c mov 0x4c(%ebx),%eax 109375: 83 c4 10 add $0x10,%esp 109378: 83 f8 07 cmp $0x7,%eax
10937b: 76 2b jbe 1093a8 <IMFS_print_jnode+0x5c> <== NEVER TAKEN
fprintf(stdout, " FIFO not printed\n" ); assert(0); break; default: fprintf(stdout, " bad type %d\n", the_jnode->type );
10937d: 52 push %edx <== NOT EXECUTED 10937e: 50 push %eax <== NOT EXECUTED 10937f: 68 6e 54 12 00 push $0x12546e <== NOT EXECUTED 109384: a1 80 a6 12 00 mov 0x12a680,%eax <== NOT EXECUTED 109389: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 10938c: e8 57 d4 00 00 call 1167e8 <fprintf> <== NOT EXECUTED
assert(0);
109391: 68 3e 35 12 00 push $0x12353e <== NOT EXECUTED 109396: 68 d4 55 12 00 push $0x1255d4 <== NOT EXECUTED 10939b: 6a 6c push $0x6c <== NOT EXECUTED 10939d: 68 b8 54 12 00 push $0x1254b8 <== NOT EXECUTED 1093a2: e8 cd 08 00 00 call 109c74 <__assert_func> <== NOT EXECUTED 1093a7: 90 nop <== NOT EXECUTED
) { assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) {
1093a8: ff 24 85 a0 55 12 00 jmp *0x1255a0(,%eax,4)
1093af: 90 nop <== NOT EXECUTED
fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" );
1093b0: a1 80 a6 12 00 mov 0x12a680,%eax <== NOT EXECUTED 1093b5: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 1093b8: 6a 12 push $0x12 <== NOT EXECUTED 1093ba: 6a 01 push $0x1 <== NOT EXECUTED 1093bc: 68 5b 54 12 00 push $0x12545b <== NOT EXECUTED 1093c1: e8 82 e1 00 00 call 117548 <fwrite> <== NOT EXECUTED
assert(0);
1093c6: 68 3e 35 12 00 push $0x12353e <== NOT EXECUTED 1093cb: 68 d4 55 12 00 push $0x1255d4 <== NOT EXECUTED 1093d0: 6a 67 push $0x67 <== NOT EXECUTED 1093d2: 68 b8 54 12 00 push $0x1254b8 <== NOT EXECUTED 1093d7: e8 98 08 00 00 call 109c74 <__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)",
1093dc: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED 1093df: ff 73 50 pushl 0x50(%ebx) <== NOT EXECUTED 1093e2: 68 2c 54 12 00 push $0x12542c <== NOT EXECUTED 1093e7: a1 80 a6 12 00 mov 0x12a680,%eax <== NOT EXECUTED 1093ec: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 1093ef: e8 f4 d3 00 00 call 1167e8 <fprintf> <== NOT EXECUTED
(uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break;
1093f4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts("");
1093f7: c7 45 08 75 57 12 00 movl $0x125775,0x8(%ebp) <== NOT EXECUTED
}
1093fe: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 109401: c9 leave <== NOT EXECUTED
default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts("");
109402: e9 99 ed 00 00 jmp 1181a0 <puts> <== NOT EXECUTED 109407: 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 ")",
109408: 51 push %ecx 109409: ff 73 50 pushl 0x50(%ebx) 10940c: 68 3b 54 12 00 push $0x12543b 109411: a1 80 a6 12 00 mov 0x12a680,%eax 109416: ff 70 08 pushl 0x8(%eax) 109419: e8 ca d3 00 00 call 1167e8 <fprintf>
(uint32_t)the_jnode->info.file.size ); #endif break;
10941e: 83 c4 10 add $0x10,%esp
default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts("");
109421: c7 45 08 75 57 12 00 movl $0x125775,0x8(%ebp)
}
109428: 8b 5d fc mov -0x4(%ebp),%ebx 10942b: c9 leave
default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts("");
10942c: e9 6f ed 00 00 jmp 1181a0 <puts>
109431: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" );
109434: a1 80 a6 12 00 mov 0x12a680,%eax <== NOT EXECUTED 109439: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 10943c: 6a 13 push $0x13 <== NOT EXECUTED 10943e: 6a 01 push $0x1 <== NOT EXECUTED 109440: 68 47 54 12 00 push $0x125447 <== NOT EXECUTED 109445: e8 fe e0 00 00 call 117548 <fwrite> <== NOT EXECUTED
assert(0);
10944a: 68 3e 35 12 00 push $0x12353e <== NOT EXECUTED 10944f: 68 d4 55 12 00 push $0x1255d4 <== NOT EXECUTED 109454: 6a 62 push $0x62 <== NOT EXECUTED 109456: 68 b8 54 12 00 push $0x1254b8 <== NOT EXECUTED 10945b: e8 14 08 00 00 call 109c74 <__assert_func> <== NOT EXECUTED
(uint32_t)the_jnode->info.file.size ); #endif break; case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" );
109460: a1 80 a6 12 00 mov 0x12a680,%eax <== NOT EXECUTED 109465: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 109468: 6a 13 push $0x13 <== NOT EXECUTED 10946a: 6a 01 push $0x1 <== NOT EXECUTED 10946c: 68 47 54 12 00 push $0x125447 <== NOT EXECUTED 109471: e8 d2 e0 00 00 call 117548 <fwrite> <== NOT EXECUTED
assert(0);
109476: 68 3e 35 12 00 push $0x12353e <== NOT EXECUTED 10947b: 68 d4 55 12 00 push $0x1255d4 <== NOT EXECUTED 109480: 6a 5d push $0x5d <== NOT EXECUTED 109482: 68 b8 54 12 00 push $0x1254b8 <== NOT EXECUTED 109487: e8 e8 07 00 00 call 109c74 <__assert_func> <== NOT EXECUTED
case IMFS_DIRECTORY: fprintf(stdout, "/" ); break; case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",
10948c: ff 73 54 pushl 0x54(%ebx) 10948f: ff 73 50 pushl 0x50(%ebx) 109492: 68 19 54 12 00 push $0x125419 109497: a1 80 a6 12 00 mov 0x12a680,%eax 10949c: ff 70 08 pushl 0x8(%eax) 10949f: e8 44 d3 00 00 call 1167e8 <fprintf>
the_jnode->info.device.major, the_jnode->info.device.minor ); break;
1094a4: 83 c4 10 add $0x10,%esp
default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts("");
1094a7: c7 45 08 75 57 12 00 movl $0x125775,0x8(%ebp)
}
1094ae: 8b 5d fc mov -0x4(%ebp),%ebx 1094b1: c9 leave
default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts("");
1094b2: e9 e9 ec 00 00 jmp 1181a0 <puts>
1094b7: 90 nop <== NOT EXECUTED
assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" );
1094b8: 83 ec 08 sub $0x8,%esp 1094bb: a1 80 a6 12 00 mov 0x12a680,%eax 1094c0: ff 70 08 pushl 0x8(%eax) 1094c3: 6a 2f push $0x2f 1094c5: e8 5a d3 00 00 call 116824 <fputc>
break;
1094ca: 83 c4 10 add $0x10,%esp
default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts("");
1094cd: c7 45 08 75 57 12 00 movl $0x125775,0x8(%ebp)
}
1094d4: 8b 5d fc mov -0x4(%ebp),%ebx 1094d7: c9 leave
default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts("");
1094d8: e9 c3 ec 00 00 jmp 1181a0 <puts>
void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { assert( the_jnode );
1094dd: 68 0f 54 12 00 push $0x12540f <== NOT EXECUTED 1094e2: 68 d4 55 12 00 push $0x1255d4 <== NOT EXECUTED 1094e7: 6a 38 push $0x38 <== NOT EXECUTED 1094e9: 68 b8 54 12 00 push $0x1254b8 <== NOT EXECUTED 1094ee: e8 81 07 00 00 call 109c74 <__assert_func> <== NOT EXECUTED
00108cd8 <IMFS_readlink>: int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) {
108cd8: 55 push %ebp 108cd9: 89 e5 mov %esp,%ebp 108cdb: 57 push %edi 108cdc: 56 push %esi 108cdd: 53 push %ebx 108cde: 83 ec 0c sub $0xc,%esp 108ce1: 8b 7d 0c mov 0xc(%ebp),%edi 108ce4: 8b 75 10 mov 0x10(%ebp),%esi
IMFS_jnode_t *node; int i; node = loc->node_access;
108ce7: 8b 45 08 mov 0x8(%ebp),%eax 108cea: 8b 18 mov (%eax),%ebx
if ( node->type != IMFS_SYM_LINK )
108cec: 83 7b 4c 04 cmpl $0x4,0x4c(%ebx)
108cf0: 75 36 jne 108d28 <IMFS_readlink+0x50> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
108cf2: 85 f6 test %esi,%esi
108cf4: 74 2e je 108d24 <IMFS_readlink+0x4c> <== ALWAYS TAKEN
108cf6: 8b 43 50 mov 0x50(%ebx),%eax 108cf9: 8a 10 mov (%eax),%dl 108cfb: 84 d2 test %dl,%dl
108cfd: 74 25 je 108d24 <IMFS_readlink+0x4c> <== ALWAYS TAKEN
int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL );
108cff: 31 c9 xor %ecx,%ecx 108d01: 31 c0 xor %eax,%eax 108d03: eb 0d jmp 108d12 <IMFS_readlink+0x3a>
108d05: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
108d08: 8b 53 50 mov 0x50(%ebx),%edx 108d0b: 8a 14 02 mov (%edx,%eax,1),%dl 108d0e: 84 d2 test %dl,%dl
108d10: 74 0a je 108d1c <IMFS_readlink+0x44> buf[i] = node->info.sym_link.name[i];
108d12: 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++ )
108d15: 40 inc %eax 108d16: 89 c1 mov %eax,%ecx 108d18: 39 c6 cmp %eax,%esi
108d1a: 77 ec ja 108d08 <IMFS_readlink+0x30> buf[i] = node->info.sym_link.name[i]; return i; }
108d1c: 83 c4 0c add $0xc,%esp 108d1f: 5b pop %ebx 108d20: 5e pop %esi 108d21: 5f pop %edi 108d22: c9 leave 108d23: 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++ )
108d24: 31 c0 xor %eax,%eax <== NOT EXECUTED 108d26: eb f4 jmp 108d1c <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 );
108d28: e8 c7 e8 00 00 call 1175f4 <__errno> <== NOT EXECUTED 108d2d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 108d33: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108d38: eb e2 jmp 108d1c <IMFS_readlink+0x44> <== NOT EXECUTED
00108d3c <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 */ ) {
108d3c: 55 push %ebp <== NOT EXECUTED 108d3d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 108d3f: 53 push %ebx <== NOT EXECUTED 108d40: 83 ec 18 sub $0x18,%esp <== NOT EXECUTED
IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access;
108d43: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 108d46: 8b 18 mov (%eax),%ebx <== NOT EXECUTED
strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );
108d48: 6a 20 push $0x20 <== NOT EXECUTED 108d4a: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED 108d4d: 8d 43 0c lea 0xc(%ebx),%eax <== NOT EXECUTED 108d50: 50 push %eax <== NOT EXECUTED 108d51: e8 56 f4 00 00 call 1181ac <strncpy> <== NOT EXECUTED
if ( the_jnode->Parent != NULL )
108d56: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108d59: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED 108d5c: 85 c9 test %ecx,%ecx <== NOT EXECUTED 108d5e: 74 0c je 108d6c <IMFS_rename+0x30> <== NOT EXECUTED
*/ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node );
108d60: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108d63: 53 push %ebx <== NOT EXECUTED 108d64: e8 47 4a 00 00 call 10d7b0 <_Chain_Extract> <== NOT EXECUTED 108d69: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access;
108d6c: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 108d6f: 8b 00 mov (%eax),%eax <== NOT EXECUTED
the_jnode->Parent = new_parent;
108d71: 89 43 08 mov %eax,0x8(%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 );
108d74: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 108d77: 53 push %ebx <== NOT EXECUTED 108d78: 83 c0 50 add $0x50,%eax <== NOT EXECUTED 108d7b: 50 push %eax <== NOT EXECUTED 108d7c: e8 0b 4a 00 00 call 10d78c <_Chain_Append> <== NOT EXECUTED
rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode );
108d81: 58 pop %eax <== NOT EXECUTED 108d82: 5a pop %edx <== NOT EXECUTED 108d83: 6a 00 push $0x0 <== NOT EXECUTED 108d85: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 108d88: 50 push %eax <== NOT EXECUTED 108d89: e8 fe 06 00 00 call 10948c <gettimeofday> <== NOT EXECUTED 108d8e: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED 108d91: 89 43 48 mov %eax,0x48(%ebx) <== NOT EXECUTED
return 0; }
108d94: 31 c0 xor %eax,%eax <== NOT EXECUTED 108d96: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 108d99: c9 leave <== NOT EXECUTED 108d9a: c3 ret <== NOT EXECUTED
0010f6c4 <IMFS_rmnod>: int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) {
10f6c4: 55 push %ebp 10f6c5: 89 e5 mov %esp,%ebp 10f6c7: 56 push %esi 10f6c8: 53 push %ebx 10f6c9: 83 ec 10 sub $0x10,%esp 10f6cc: 8b 75 0c mov 0xc(%ebp),%esi
IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access;
10f6cf: 8b 1e mov (%esi),%ebx
/* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) {
10f6d1: 8b 43 08 mov 0x8(%ebx),%eax 10f6d4: 85 c0 test %eax,%eax
10f6d6: 74 13 je 10f6eb <IMFS_rmnod+0x27> <== ALWAYS TAKEN
*/ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node );
10f6d8: 83 ec 0c sub $0xc,%esp 10f6db: 53 push %ebx 10f6dc: e8 ef 09 00 00 call 1100d0 <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL;
10f6e1: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 10f6e8: 83 c4 10 add $0x10,%esp
/* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--;
10f6eb: 66 ff 4b 34 decw 0x34(%ebx)
IMFS_update_ctime( the_jnode );
10f6ef: 83 ec 08 sub $0x8,%esp 10f6f2: 6a 00 push $0x0 10f6f4: 8d 45 f0 lea -0x10(%ebp),%eax 10f6f7: 50 push %eax 10f6f8: e8 ab 02 00 00 call 10f9a8 <gettimeofday> 10f6fd: 8b 45 f0 mov -0x10(%ebp),%eax 10f700: 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) ) {
10f703: 89 1c 24 mov %ebx,(%esp) 10f706: e8 65 03 00 00 call 10fa70 <rtems_libio_is_file_open> 10f70b: 83 c4 10 add $0x10,%esp 10f70e: 85 c0 test %eax,%eax
10f710: 75 25 jne 10f737 <IMFS_rmnod+0x73> <== ALWAYS TAKEN
10f712: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx)
10f717: 75 1e jne 10f737 <IMFS_rmnod+0x73> <== ALWAYS TAKEN
/* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access )
10f719: a1 18 30 12 00 mov 0x123018,%eax 10f71e: 8b 50 04 mov 0x4(%eax),%edx 10f721: 3b 16 cmp (%esi),%edx
10f723: 74 33 je 10f758 <IMFS_rmnod+0x94> <== ALWAYS TAKEN
/* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) {
10f725: 83 7b 4c 04 cmpl $0x4,0x4c(%ebx)
10f729: 74 15 je 10f740 <IMFS_rmnod+0x7c> if ( the_jnode->info.sym_link.name ) free( (void*) the_jnode->info.sym_link.name ); } free( the_jnode );
10f72b: 83 ec 0c sub $0xc,%esp 10f72e: 53 push %ebx 10f72f: e8 48 89 ff ff call 10807c <free> 10f734: 83 c4 10 add $0x10,%esp
} return 0; }
10f737: 31 c0 xor %eax,%eax 10f739: 8d 65 f8 lea -0x8(%ebp),%esp 10f73c: 5b pop %ebx 10f73d: 5e pop %esi 10f73e: c9 leave 10f73f: c3 ret
/* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { if ( the_jnode->info.sym_link.name )
10f740: 8b 43 50 mov 0x50(%ebx),%eax 10f743: 85 c0 test %eax,%eax
10f745: 74 e4 je 10f72b <IMFS_rmnod+0x67> <== ALWAYS TAKEN
free( (void*) the_jnode->info.sym_link.name );
10f747: 83 ec 0c sub $0xc,%esp 10f74a: 50 push %eax 10f74b: e8 2c 89 ff ff call 10807c <free> 10f750: 83 c4 10 add $0x10,%esp 10f753: eb d6 jmp 10f72b <IMFS_rmnod+0x67>
10f755: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) rtems_filesystem_current.node_access = NULL;
10f758: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED 10f75f: eb c4 jmp 10f725 <IMFS_rmnod+0x61> <== NOT EXECUTED
0010f764 <IMFS_stat>: int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) {
10f764: 55 push %ebp 10f765: 89 e5 mov %esp,%ebp 10f767: 56 push %esi 10f768: 53 push %ebx 10f769: 8b 4d 08 mov 0x8(%ebp),%ecx 10f76c: 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;
10f76f: 8b 11 mov (%ecx),%edx
switch ( the_jnode->type ) {
10f771: 83 7a 4c 07 cmpl $0x7,0x4c(%edx)
10f775: 76 15 jbe 10f78c <IMFS_stat+0x28> <== NEVER TAKEN
case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP );
10f777: e8 3c 2d 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10f77c: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10f782: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; return 0; }
10f787: 5b pop %ebx <== NOT EXECUTED 10f788: 5e pop %esi <== NOT EXECUTED 10f789: c9 leave <== NOT EXECUTED 10f78a: c3 ret <== NOT EXECUTED 10f78b: 90 nop <== NOT EXECUTED
IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) {
10f78c: 8b 5a 4c mov 0x4c(%edx),%ebx 10f78f: ff 24 9d 38 ff 11 00 jmp *0x11ff38(,%ebx,4)
10f796: 66 90 xchg %ax,%ax <== NOT EXECUTED
case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0;
10f798: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) <== NOT EXECUTED 10f79f: 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 );
10f7a6: 8b 49 10 mov 0x10(%ecx),%ecx 10f7a9: 8b 49 34 mov 0x34(%ecx),%ecx 10f7ac: 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 =
10f7ae: c7 00 fe ff 00 00 movl $0xfffe,(%eax) 10f7b4: 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;
10f7b7: 8b 4a 30 mov 0x30(%edx),%ecx 10f7ba: 89 48 0c mov %ecx,0xc(%eax)
buf->st_nlink = the_jnode->st_nlink;
10f7bd: 8b 4a 34 mov 0x34(%edx),%ecx 10f7c0: 66 89 48 10 mov %cx,0x10(%eax)
buf->st_ino = the_jnode->st_ino;
10f7c4: 8b 4a 38 mov 0x38(%edx),%ecx 10f7c7: 89 48 08 mov %ecx,0x8(%eax)
buf->st_uid = the_jnode->st_uid;
10f7ca: 8b 4a 3c mov 0x3c(%edx),%ecx 10f7cd: 66 89 48 12 mov %cx,0x12(%eax)
buf->st_gid = the_jnode->st_gid;
10f7d1: 66 8b 4a 3e mov 0x3e(%edx),%cx 10f7d5: 66 89 48 14 mov %cx,0x14(%eax)
buf->st_atime = the_jnode->stat_atime;
10f7d9: 8b 4a 40 mov 0x40(%edx),%ecx 10f7dc: 89 48 28 mov %ecx,0x28(%eax)
buf->st_mtime = the_jnode->stat_mtime;
10f7df: 8b 4a 44 mov 0x44(%edx),%ecx 10f7e2: 89 48 30 mov %ecx,0x30(%eax)
buf->st_ctime = the_jnode->stat_ctime;
10f7e5: 8b 52 48 mov 0x48(%edx),%edx 10f7e8: 89 50 38 mov %edx,0x38(%eax) 10f7eb: 31 c0 xor %eax,%eax
return 0; }
10f7ed: 5b pop %ebx 10f7ee: 5e pop %esi 10f7ef: c9 leave 10f7f0: c3 ret
10f7f1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
switch ( the_jnode->type ) { case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
10f7f4: 8b 5a 54 mov 0x54(%edx),%ebx
rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major;
10f7f7: 8b 72 50 mov 0x50(%edx),%esi 10f7fa: 89 70 18 mov %esi,0x18(%eax) 10f7fd: 89 58 1c mov %ebx,0x1c(%eax)
break;
10f800: eb a4 jmp 10f7a6 <IMFS_stat+0x42>
10f802: 66 90 xchg %ax,%ax <== NOT EXECUTED
case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size;
10f804: 8b 5a 50 mov 0x50(%edx),%ebx 10f807: 8b 72 54 mov 0x54(%edx),%esi 10f80a: 89 58 20 mov %ebx,0x20(%eax) 10f80d: 89 70 24 mov %esi,0x24(%eax)
break;
10f810: eb 94 jmp 10f7a6 <IMFS_stat+0x42>
00108d9c <IMFS_symlink>: int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) {
108d9c: 55 push %ebp 108d9d: 89 e5 mov %esp,%ebp 108d9f: 57 push %edi 108da0: 53 push %ebx 108da1: 83 ec 40 sub $0x40,%esp 108da4: 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 );
108da7: 31 c0 xor %eax,%eax 108da9: b9 ff ff ff ff mov $0xffffffff,%ecx 108dae: 89 d7 mov %edx,%edi 108db0: f2 ae repnz scas %es:(%edi),%al 108db2: f7 d1 not %ecx 108db4: 49 dec %ecx 108db5: 8d 45 f4 lea -0xc(%ebp),%eax 108db8: 50 push %eax 108db9: 8d 5d bf lea -0x41(%ebp),%ebx 108dbc: 53 push %ebx 108dbd: 51 push %ecx 108dbe: 52 push %edx 108dbf: e8 ac b3 00 00 call 114170 <IMFS_get_token>
/* * Duplicate link name */ info.sym_link.name = strdup(link_name);
108dc4: 58 pop %eax 108dc5: ff 75 0c pushl 0xc(%ebp) 108dc8: e8 ff f2 00 00 call 1180cc <strdup> 108dcd: 89 45 e0 mov %eax,-0x20(%ebp)
if (info.sym_link.name == NULL) {
108dd0: 83 c4 10 add $0x10,%esp 108dd3: 85 c0 test %eax,%eax
108dd5: 74 27 je 108dfe <IMFS_symlink+0x62> <== ALWAYS 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(
108dd7: 83 ec 0c sub $0xc,%esp 108dda: 8d 45 e0 lea -0x20(%ebp),%eax 108ddd: 50 push %eax 108dde: 68 ff a1 00 00 push $0xa1ff 108de3: 53 push %ebx 108de4: 6a 04 push $0x4 108de6: ff 75 08 pushl 0x8(%ebp) 108de9: e8 ce a7 00 00 call 1135bc <IMFS_create_node>
new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) {
108dee: 83 c4 20 add $0x20,%esp 108df1: 85 c0 test %eax,%eax
108df3: 74 1b je 108e10 <IMFS_symlink+0x74> <== ALWAYS TAKEN
108df5: 31 c0 xor %eax,%eax
free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; }
108df7: 8d 65 f8 lea -0x8(%ebp),%esp 108dfa: 5b pop %ebx 108dfb: 5f pop %edi 108dfc: c9 leave 108dfd: 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);
108dfe: e8 f1 e7 00 00 call 1175f4 <__errno> <== NOT EXECUTED 108e03: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 108e09: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108e0e: eb e7 jmp 108df7 <IMFS_symlink+0x5b> <== NOT EXECUTED
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { free(info.sym_link.name);
108e10: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108e13: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED 108e16: e8 f5 05 00 00 call 109410 <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
108e1b: e8 d4 e7 00 00 call 1175f4 <__errno> <== NOT EXECUTED 108e20: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 108e26: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108e2b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108e2e: eb c7 jmp 108df7 <IMFS_symlink+0x5b> <== NOT EXECUTED
00108e30 <IMFS_unlink>: int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) {
108e30: 55 push %ebp 108e31: 89 e5 mov %esp,%ebp 108e33: 57 push %edi 108e34: 56 push %esi 108e35: 53 push %ebx 108e36: 83 ec 3c sub $0x3c,%esp 108e39: 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;
108e3c: 8b 13 mov (%ebx),%edx
/* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) {
108e3e: 83 7a 4c 03 cmpl $0x3,0x4c(%edx)
108e42: 74 18 je 108e5c <IMFS_unlink+0x2c> /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc );
108e44: 83 ec 08 sub $0x8,%esp 108e47: 8b 43 08 mov 0x8(%ebx),%eax 108e4a: 53 push %ebx 108e4b: ff 75 08 pushl 0x8(%ebp) 108e4e: ff 50 34 call *0x34(%eax)
return result;
108e51: 83 c4 10 add $0x10,%esp
}
108e54: 8d 65 f4 lea -0xc(%ebp),%esp 108e57: 5b pop %ebx 108e58: 5e pop %esi 108e59: 5f pop %edi 108e5a: c9 leave 108e5b: c3 ret
* free the node. */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node )
108e5c: 8b 42 50 mov 0x50(%edx),%eax 108e5f: 85 c0 test %eax,%eax
108e61: 74 79 je 108edc <IMFS_unlink+0xac> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc;
108e63: 8d 7d cc lea -0x34(%ebp),%edi 108e66: b9 05 00 00 00 mov $0x5,%ecx 108e6b: 89 de mov %ebx,%esi 108e6d: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
the_link.node_access = node->info.hard_link.link_node;
108e6f: 89 45 cc mov %eax,-0x34(%ebp)
IMFS_Set_handlers( &the_link );
108e72: 83 ec 0c sub $0xc,%esp 108e75: 8d 75 cc lea -0x34(%ebp),%esi 108e78: 56 push %esi 108e79: 89 55 c4 mov %edx,-0x3c(%ebp) 108e7c: e8 47 a8 00 00 call 1136c8 <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)
108e81: 8b 55 c4 mov -0x3c(%ebp),%edx 108e84: 8b 42 50 mov 0x50(%edx),%eax 108e87: 8b 48 34 mov 0x34(%eax),%ecx 108e8a: 83 c4 10 add $0x10,%esp 108e8d: 66 83 f9 01 cmp $0x1,%cx
108e91: 74 27 je 108eba <IMFS_unlink+0x8a> if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --;
108e93: 49 dec %ecx 108e94: 66 89 48 34 mov %cx,0x34(%eax)
IMFS_update_ctime( node->info.hard_link.link_node );
108e98: 83 ec 08 sub $0x8,%esp 108e9b: 6a 00 push $0x0 108e9d: 8d 45 e0 lea -0x20(%ebp),%eax 108ea0: 50 push %eax 108ea1: 89 55 c4 mov %edx,-0x3c(%ebp) 108ea4: e8 e3 05 00 00 call 10948c <gettimeofday> 108ea9: 8b 55 c4 mov -0x3c(%ebp),%edx 108eac: 8b 42 50 mov 0x50(%edx),%eax 108eaf: 8b 55 e0 mov -0x20(%ebp),%edx 108eb2: 89 50 48 mov %edx,0x48(%eax) 108eb5: 83 c4 10 add $0x10,%esp 108eb8: eb 8a jmp 108e44 <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 );
108eba: 83 ec 08 sub $0x8,%esp 108ebd: 56 push %esi 108ebe: ff 75 08 pushl 0x8(%ebp) 108ec1: 8b 45 d4 mov -0x2c(%ebp),%eax 108ec4: ff 50 34 call *0x34(%eax)
if ( result != 0 )
108ec7: 83 c4 10 add $0x10,%esp 108eca: 85 c0 test %eax,%eax
108ecc: 0f 84 72 ff ff ff je 108e44 <IMFS_unlink+0x14>
108ed2: b8 ff ff ff ff mov $0xffffffff,%eax 108ed7: e9 78 ff ff ff jmp 108e54 <IMFS_unlink+0x24>
*/ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL );
108edc: e8 13 e7 00 00 call 1175f4 <__errno> <== NOT EXECUTED 108ee1: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 108ee7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108eec: e9 63 ff ff ff jmp 108e54 <IMFS_unlink+0x24> <== NOT EXECUTED
00108ef4 <IMFS_unmount>: #include <rtems/seterr.h> int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
108ef4: 55 push %ebp 108ef5: 89 e5 mov %esp,%ebp 108ef7: 83 ec 08 sub $0x8,%esp
IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access;
108efa: 8b 45 08 mov 0x8(%ebp),%eax 108efd: 8b 40 08 mov 0x8(%eax),%eax
/* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY )
108f00: 83 78 4c 01 cmpl $0x1,0x4c(%eax)
108f04: 75 12 jne 108f18 <IMFS_unmount+0x24> <== ALWAYS TAKEN
/* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL )
108f06: 8b 50 5c mov 0x5c(%eax),%edx 108f09: 85 d2 test %edx,%edx
108f0b: 74 1d je 108f2a <IMFS_unmount+0x36> <== ALWAYS 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;
108f0d: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax) 108f14: 31 c0 xor %eax,%eax
return 0; }
108f16: c9 leave 108f17: 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 );
108f18: e8 d7 e6 00 00 call 1175f4 <__errno> <== NOT EXECUTED 108f1d: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED 108f23: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
*/ node->info.directory.mt_fs = NULL; return 0; }
108f28: c9 leave <== NOT EXECUTED 108f29: 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 */
108f2a: e8 c5 e6 00 00 call 1175f4 <__errno> <== NOT EXECUTED 108f2f: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 108f35: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
*/ node->info.directory.mt_fs = NULL; return 0; }
108f3a: c9 leave <== NOT EXECUTED 108f3b: c3 ret <== NOT EXECUTED
00108220 <RTEMS_Malloc_Initialize>: void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) {
108220: 55 push %ebp 108221: 89 e5 mov %esp,%ebp 108223: 57 push %edi 108224: 56 push %esi 108225: 53 push %ebx 108226: 83 ec 0c sub $0xc,%esp 108229: 8b 5d 08 mov 0x8(%ebp),%ebx 10822c: 8b 75 0c mov 0xc(%ebp),%esi
#endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) {
10822f: a1 c8 35 12 00 mov 0x1235c8,%eax 108234: 85 c0 test %eax,%eax
108236: 74 02 je 10823a <RTEMS_Malloc_Initialize+0x1a><== NEVER TAKEN
(*rtems_malloc_statistics_helpers->initialize)();
108238: ff 10 call *(%eax) <== NOT EXECUTED
} /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize();
10823a: e8 79 ff ff ff call 1081b8 <malloc_deferred_frees_initialize>
/* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) {
10823f: a1 cc 35 12 00 mov 0x1235cc,%eax 108244: 85 c0 test %eax,%eax
108246: 74 13 je 10825b <RTEMS_Malloc_Initialize+0x3b><== NEVER TAKEN
void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(
108248: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10824b: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 10824e: 53 push %ebx <== NOT EXECUTED 10824f: ff 10 call *(%eax) <== NOT EXECUTED
heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin;
108251: 8d 34 33 lea (%ebx,%esi,1),%esi <== NOT EXECUTED 108254: 29 c6 sub %eax,%esi <== NOT EXECUTED 108256: 89 c3 mov %eax,%ebx <== NOT EXECUTED 108258: 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 (
10825b: 80 3d c5 35 12 00 00 cmpb $0x0,0x1235c5
108262: 75 1f jne 108283 <RTEMS_Malloc_Initialize+0x63> !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace()
108264: 80 3d 48 12 12 00 00 cmpb $0x0,0x121248
10826b: 75 3f jne 1082ac <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 );
10826d: 6a 04 push $0x4 10826f: 56 push %esi 108270: 53 push %ebx 108271: ff 35 58 11 12 00 pushl 0x121158 108277: e8 28 41 00 00 call 10c3a4 <_Heap_Initialize>
RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) {
10827c: 83 c4 10 add $0x10,%esp 10827f: 85 c0 test %eax,%eax
108281: 74 3c je 1082bf <RTEMS_Malloc_Initialize+0x9f><== ALWAYS TAKEN
rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
108283: 8b 1d e0 51 12 00 mov 0x1251e0,%ebx 108289: 83 ec 0c sub $0xc,%esp 10828c: ff 35 58 11 12 00 pushl 0x121158 108292: e8 81 4c 00 00 call 10cf18 <_Protected_heap_Get_size> 108297: 8d 1c 18 lea (%eax,%ebx,1),%ebx 10829a: 89 1d e0 51 12 00 mov %ebx,0x1251e0 1082a0: 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 }
1082a3: 8d 65 f4 lea -0xc(%ebp),%esp 1082a6: 5b pop %ebx 1082a7: 5e pop %esi 1082a8: 5f pop %edi 1082a9: c9 leave 1082aa: c3 ret
1082ab: 90 nop <== NOT EXECUTED
if ( !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() ) { memset( heap_begin, 0, heap_size );
1082ac: 31 c0 xor %eax,%eax 1082ae: 89 df mov %ebx,%edi 1082b0: 89 f1 mov %esi,%ecx 1082b2: 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 ) {
1082b4: 80 3d c5 35 12 00 00 cmpb $0x0,0x1235c5
1082bb: 74 b0 je 10826d <RTEMS_Malloc_Initialize+0x4d><== NEVER TAKEN
1082bd: eb c4 jmp 108283 <RTEMS_Malloc_Initialize+0x63><== NOT EXECUTED
heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
1082bf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1082c2: 6a 1a push $0x1a <== NOT EXECUTED 1082c4: e8 6f 39 00 00 call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
0010a3a0 <Stack_check_Dump_threads_usage>: static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) {
10a3a0: 55 push %ebp <== NOT EXECUTED 10a3a1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10a3a3: 57 push %edi <== NOT EXECUTED 10a3a4: 56 push %esi <== NOT EXECUTED 10a3a5: 53 push %ebx <== NOT EXECUTED 10a3a6: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED 10a3a9: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread )
10a3ac: 85 db test %ebx,%ebx <== NOT EXECUTED 10a3ae: 0f 84 c5 00 00 00 je 10a479 <Stack_check_Dump_threads_usage+0xd9><== NOT EXECUTED
return; if ( !print_handler )
10a3b4: a1 60 b1 16 00 mov 0x16b160,%eax <== NOT EXECUTED 10a3b9: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED 10a3bc: 85 c0 test %eax,%eax <== NOT EXECUTED 10a3be: 0f 84 b5 00 00 00 je 10a479 <Stack_check_Dump_threads_usage+0xd9><== NOT EXECUTED
/* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) {
10a3c4: 83 fb ff cmp $0xffffffff,%ebx <== NOT EXECUTED 10a3c7: 0f 84 d7 00 00 00 je 10a4a4 <Stack_check_Dump_threads_usage+0x104><== NOT EXECUTED
current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack;
10a3cd: 8d b3 c0 00 00 00 lea 0xc0(%ebx),%esi <== NOT EXECUTED
current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
10a3d3: 8b 93 d4 00 00 00 mov 0xd4(%ebx),%edx <== NOT EXECUTED 10a3d9: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED
} low = Stack_check_usable_stack_start(stack);
10a3dc: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED 10a3df: 83 c0 10 add $0x10,%eax <== NOT EXECUTED 10a3e2: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
10a3e5: 8b 3e mov (%esi),%edi <== NOT EXECUTED 10a3e7: 83 ef 10 sub $0x10,%edi <== NOT EXECUTED
high_water_mark = Stack_check_find_high_water_mark(low, size);
10a3ea: 57 push %edi <== NOT EXECUTED 10a3eb: 50 push %eax <== NOT EXECUTED 10a3ec: e8 77 ff ff ff call 10a368 <Stack_check_find_high_water_mark><== NOT EXECUTED
if ( high_water_mark )
10a3f1: 59 pop %ecx <== NOT EXECUTED 10a3f2: 5a pop %edx <== NOT EXECUTED 10a3f3: 85 c0 test %eax,%eax <== NOT EXECUTED 10a3f5: 0f 84 c9 00 00 00 je 10a4c4 <Stack_check_Dump_threads_usage+0x124><== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
10a3fb: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 10a3fe: 01 fa add %edi,%edx <== NOT EXECUTED 10a400: 29 c2 sub %eax,%edx <== NOT EXECUTED 10a402: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED
else used = 0; if ( the_thread ) {
10a405: 85 db test %ebx,%ebx <== NOT EXECUTED 10a407: 0f 84 c7 00 00 00 je 10a4d4 <Stack_check_Dump_threads_usage+0x134><== NOT EXECUTED
(*print_handler)(
10a40d: 52 push %edx <== NOT EXECUTED 10a40e: 8d 45 e3 lea -0x1d(%ebp),%eax <== NOT EXECUTED 10a411: 50 push %eax <== NOT EXECUTED 10a412: 6a 05 push $0x5 <== NOT EXECUTED 10a414: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED 10a417: e8 f4 59 00 00 call 10fe10 <rtems_object_get_name> <== NOT EXECUTED 10a41c: 50 push %eax <== NOT EXECUTED 10a41d: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED 10a420: 68 e7 9d 15 00 push $0x159de7 <== NOT EXECUTED 10a425: ff 35 5c b1 16 00 pushl 0x16b15c <== NOT EXECUTED 10a42b: ff 55 d0 call *-0x30(%ebp) <== NOT EXECUTED 10a42e: 83 c4 20 add $0x20,%esp <== NOT EXECUTED
); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)(
10a431: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED 10a434: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10a437: 57 push %edi <== NOT EXECUTED 10a438: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED 10a43b: 8b 16 mov (%esi),%edx <== NOT EXECUTED 10a43d: 8d 54 10 ff lea -0x1(%eax,%edx,1),%edx <== NOT EXECUTED 10a441: 52 push %edx <== NOT EXECUTED 10a442: 50 push %eax <== NOT EXECUTED 10a443: 68 02 9e 15 00 push $0x159e02 <== NOT EXECUTED 10a448: ff 35 5c b1 16 00 pushl 0x16b15c <== NOT EXECUTED 10a44e: ff 15 60 b1 16 00 call *0x16b160 <== NOT EXECUTED
stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) {
10a454: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10a457: 8b 1d 58 b1 16 00 mov 0x16b158,%ebx <== NOT EXECUTED 10a45d: 85 db test %ebx,%ebx <== NOT EXECUTED 10a45f: 74 23 je 10a484 <Stack_check_Dump_threads_usage+0xe4><== NOT EXECUTED
(*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used );
10a461: 51 push %ecx <== NOT EXECUTED 10a462: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED 10a465: 68 2d 9e 15 00 push $0x159e2d <== NOT EXECUTED 10a46a: ff 35 5c b1 16 00 pushl 0x16b15c <== NOT EXECUTED 10a470: ff 15 60 b1 16 00 call *0x16b160 <== NOT EXECUTED 10a476: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} }
10a479: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10a47c: 5b pop %ebx <== NOT EXECUTED 10a47d: 5e pop %esi <== NOT EXECUTED 10a47e: 5f pop %edi <== NOT EXECUTED 10a47f: c9 leave <== NOT EXECUTED 10a480: c3 ret <== NOT EXECUTED 10a481: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
current, size ); if (Stack_check_Initialized == 0) { (*print_handler)( print_context, "Unavailable\n" );
10a484: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10a487: 68 20 9e 15 00 push $0x159e20 <== NOT EXECUTED 10a48c: ff 35 5c b1 16 00 pushl 0x16b15c <== NOT EXECUTED 10a492: ff 15 60 b1 16 00 call *0x16b160 <== NOT EXECUTED 10a498: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); } }
10a49b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10a49e: 5b pop %ebx <== NOT EXECUTED 10a49f: 5e pop %esi <== NOT EXECUTED 10a4a0: 5f pop %edi <== NOT EXECUTED 10a4a1: c9 leave <== NOT EXECUTED 10a4a2: c3 ret <== NOT EXECUTED 10a4a3: 90 nop <== NOT EXECUTED
/* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) {
10a4a4: 8b 0d d4 de 16 00 mov 0x16ded4,%ecx <== NOT EXECUTED 10a4aa: 85 c9 test %ecx,%ecx <== NOT EXECUTED 10a4ac: 74 cb je 10a479 <Stack_check_Dump_threads_usage+0xd9><== NOT EXECUTED 10a4ae: be d0 de 16 00 mov $0x16ded0,%esi <== NOT EXECUTED 10a4b3: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED 10a4ba: 31 db xor %ebx,%ebx <== NOT EXECUTED 10a4bc: e9 1b ff ff ff jmp 10a3dc <Stack_check_Dump_threads_usage+0x3c><== NOT EXECUTED 10a4c1: 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 )
10a4c4: 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 ) {
10a4cb: 85 db test %ebx,%ebx <== NOT EXECUTED 10a4cd: 0f 85 3a ff ff ff jne 10a40d <Stack_check_Dump_threads_usage+0x6d><== NOT EXECUTED 10a4d3: 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 );
10a4d4: 50 push %eax <== NOT EXECUTED 10a4d5: 6a ff push $0xffffffff <== NOT EXECUTED 10a4d7: 68 f4 9d 15 00 push $0x159df4 <== NOT EXECUTED 10a4dc: ff 35 5c b1 16 00 pushl 0x16b15c <== NOT EXECUTED 10a4e2: ff 55 d0 call *-0x30(%ebp) <== NOT EXECUTED 10a4e5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a4e8: e9 44 ff ff ff jmp 10a431 <Stack_check_Dump_threads_usage+0x91><== NOT EXECUTED
0010a6f8 <Stack_check_Initialize>: /* * Stack_check_Initialize */ void Stack_check_Initialize( void ) {
10a6f8: 55 push %ebp 10a6f9: 89 e5 mov %esp,%ebp 10a6fb: 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)
10a6fc: 8b 3d 58 b1 16 00 mov 0x16b158,%edi 10a702: 85 ff test %edi,%edi
10a704: 75 4d jne 10a753 <Stack_check_Initialize+0x5b>
10a706: 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 ];
10a708: 89 c2 mov %eax,%edx 10a70a: 83 e2 03 and $0x3,%edx 10a70d: 8b 14 95 6c 9f 15 00 mov 0x159f6c(,%edx,4),%edx 10a714: 89 14 85 c0 de 16 00 mov %edx,0x16dec0(,%eax,4)
/* * Dope the pattern and fill areas */ p = Stack_check_Pattern.pattern; for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {
10a71b: 40 inc %eax 10a71c: 83 f8 04 cmp $0x4,%eax
10a71f: 75 e7 jne 10a708 <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) {
10a721: 8b 15 88 e0 16 00 mov 0x16e088,%edx 10a727: 85 d2 test %edx,%edx
10a729: 74 1e je 10a749 <Stack_check_Initialize+0x51><== ALWAYS TAKEN
10a72b: 8b 0d 48 e0 16 00 mov 0x16e048,%ecx 10a731: 85 c9 test %ecx,%ecx
10a733: 74 14 je 10a749 <Stack_check_Initialize+0x51><== ALWAYS TAKEN
Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;
10a735: 89 15 d4 de 16 00 mov %edx,0x16ded4
Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
10a73b: 29 d1 sub %edx,%ecx 10a73d: 89 0d d0 de 16 00 mov %ecx,0x16ded0
(char *) _CPU_Interrupt_stack_low; Stack_check_Dope_stack(&Stack_check_Interrupt_stack);
10a743: b0 a5 mov $0xa5,%al 10a745: 89 d7 mov %edx,%edi 10a747: f3 aa rep stos %al,%es:(%edi)
} #endif Stack_check_Initialized = 1;
10a749: c7 05 58 b1 16 00 01 movl $0x1,0x16b158
10a750: 00 00 00 }
10a753: 5f pop %edi 10a754: c9 leave 10a755: c3 ret
0010a368 <Stack_check_find_high_water_mark>: */ void *Stack_check_find_high_water_mark( const void *s, size_t n ) {
10a368: 55 push %ebp <== NOT EXECUTED 10a369: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10a36b: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 10a36e: 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;
10a371: 8d 41 10 lea 0x10(%ecx),%eax <== NOT EXECUTED
for (ebase = base + length; base < ebase; base++)
10a374: 83 e2 fc and $0xfffffffc,%edx <== NOT EXECUTED 10a377: 8d 14 10 lea (%eax,%edx,1),%edx <== NOT EXECUTED 10a37a: 39 d0 cmp %edx,%eax <== NOT EXECUTED 10a37c: 73 1d jae 10a39b <Stack_check_find_high_water_mark+0x33><== NOT EXECUTED
if (*base != U32_PATTERN)
10a37e: 81 79 10 a5 a5 a5 a5 cmpl $0xa5a5a5a5,0x10(%ecx) <== NOT EXECUTED 10a385: 74 0d je 10a394 <Stack_check_find_high_water_mark+0x2c><== NOT EXECUTED 10a387: eb 14 jmp 10a39d <Stack_check_find_high_water_mark+0x35><== NOT EXECUTED 10a389: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10a38c: 81 38 a5 a5 a5 a5 cmpl $0xa5a5a5a5,(%eax) <== NOT EXECUTED 10a392: 75 09 jne 10a39d <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++)
10a394: 83 c0 04 add $0x4,%eax <== NOT EXECUTED 10a397: 39 c2 cmp %eax,%edx <== NOT EXECUTED 10a399: 77 f1 ja 10a38c <Stack_check_find_high_water_mark+0x24><== NOT EXECUTED 10a39b: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; }
10a39d: c9 leave <== NOT EXECUTED 10a39e: c3 ret <== NOT EXECUTED
0010a56c <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) {
10a56c: 55 push %ebp <== NOT EXECUTED 10a56d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10a56f: 56 push %esi <== NOT EXECUTED 10a570: 53 push %ebx <== NOT EXECUTED 10a571: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED 10a574: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 10a577: 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);
10a57a: 8b b3 c4 00 00 00 mov 0xc4(%ebx),%esi <== NOT EXECUTED
char name [32]; printk("BLOWN STACK!!!\n");
10a580: 68 4a 9e 15 00 push $0x159e4a <== NOT EXECUTED 10a585: 88 55 d4 mov %dl,-0x2c(%ebp) <== NOT EXECUTED 10a588: e8 2b 29 00 00 call 10ceb8 <printk> <== NOT EXECUTED
printk("task control block: 0x%08" PRIxPTR "\n", running);
10a58d: 58 pop %eax <== NOT EXECUTED 10a58e: 5a pop %edx <== NOT EXECUTED 10a58f: 53 push %ebx <== NOT EXECUTED 10a590: 68 5a 9e 15 00 push $0x159e5a <== NOT EXECUTED 10a595: e8 1e 29 00 00 call 10ceb8 <printk> <== NOT EXECUTED
printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);
10a59a: 5a pop %edx <== NOT EXECUTED 10a59b: 59 pop %ecx <== NOT EXECUTED 10a59c: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED 10a59f: 68 77 9e 15 00 push $0x159e77 <== NOT EXECUTED 10a5a4: e8 0f 29 00 00 call 10ceb8 <printk> <== NOT EXECUTED
printk(
10a5a9: 59 pop %ecx <== NOT EXECUTED 10a5aa: 58 pop %eax <== NOT EXECUTED 10a5ab: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED 10a5ae: 68 89 9e 15 00 push $0x159e89 <== NOT EXECUTED 10a5b3: e8 00 29 00 00 call 10ceb8 <printk> <== NOT EXECUTED
"task name: 0x%08" PRIx32 "\n", running->Object.name.name_u32 ); printk(
10a5b8: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 10a5bb: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED 10a5be: 50 push %eax <== NOT EXECUTED 10a5bf: 6a 20 push $0x20 <== NOT EXECUTED 10a5c1: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED 10a5c4: e8 47 58 00 00 call 10fe10 <rtems_object_get_name> <== NOT EXECUTED 10a5c9: 59 pop %ecx <== NOT EXECUTED 10a5ca: 5a pop %edx <== NOT EXECUTED 10a5cb: 50 push %eax <== NOT EXECUTED 10a5cc: 68 9d 9e 15 00 push $0x159e9d <== NOT EXECUTED 10a5d1: e8 e2 28 00 00 call 10ceb8 <printk> <== NOT EXECUTED
"task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk(
10a5d6: 8b 8b c4 00 00 00 mov 0xc4(%ebx),%ecx <== NOT EXECUTED 10a5dc: 8b 83 c0 00 00 00 mov 0xc0(%ebx),%eax <== NOT EXECUTED 10a5e2: 8d 1c 01 lea (%ecx,%eax,1),%ebx <== NOT EXECUTED 10a5e5: 53 push %ebx <== NOT EXECUTED 10a5e6: 51 push %ecx <== NOT EXECUTED 10a5e7: 50 push %eax <== NOT EXECUTED 10a5e8: 68 00 9f 15 00 push $0x159f00 <== NOT EXECUTED 10a5ed: e8 c6 28 00 00 call 10ceb8 <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) {
10a5f2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10a5f5: 8a 55 d4 mov -0x2c(%ebp),%dl <== NOT EXECUTED 10a5f8: 84 d2 test %dl,%dl <== NOT EXECUTED 10a5fa: 74 10 je 10a60c <Stack_check_report_blown_task+0xa0><== NOT EXECUTED
rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81);
10a5fc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a5ff: 68 81 00 00 00 push $0x81 <== NOT EXECUTED 10a604: e8 7f 60 00 00 call 110688 <rtems_fatal_error_occurred><== NOT EXECUTED 10a609: 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);
10a60c: 8d 46 08 lea 0x8(%esi),%eax <== NOT EXECUTED
(unsigned long) stack->size, stack->area, ((char *) stack->area + stack->size) ); if (!pattern_ok) { printk(
10a60f: 83 c6 18 add $0x18,%esi <== NOT EXECUTED 10a612: 56 push %esi <== NOT EXECUTED 10a613: 50 push %eax <== NOT EXECUTED 10a614: 6a 10 push $0x10 <== NOT EXECUTED 10a616: 68 34 9f 15 00 push $0x159f34 <== NOT EXECUTED 10a61b: e8 98 28 00 00 call 10ceb8 <printk> <== NOT EXECUTED 10a620: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a623: eb d7 jmp 10a5fc <Stack_check_report_blown_task+0x90><== NOT EXECUTED
0010bd80 <_API_extensions_Run_postdriver>: * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) {
10bd80: 55 push %ebp 10bd81: 89 e5 mov %esp,%ebp 10bd83: 53 push %ebx 10bd84: 83 ec 04 sub $0x4,%esp
Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ;
10bd87: 8b 1d b8 55 12 00 mov 0x1255b8,%ebx 10bd8d: 81 fb bc 55 12 00 cmp $0x1255bc,%ebx
10bd93: 74 10 je 10bda5 <_API_extensions_Run_postdriver+0x25><== ALWAYS TAKEN
10bd95: 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)();
10bd98: 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 ) {
10bd9b: 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 ;
10bd9d: 81 fb bc 55 12 00 cmp $0x1255bc,%ebx
10bda3: 75 f3 jne 10bd98 <_API_extensions_Run_postdriver+0x18><== ALWAYS TAKEN
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) if ( the_extension->postdriver_hook ) #endif (*the_extension->postdriver_hook)(); } }
10bda5: 58 pop %eax 10bda6: 5b pop %ebx 10bda7: c9 leave 10bda8: c3 ret
0010bdac <_API_extensions_Run_postswitch>: * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) {
10bdac: 55 push %ebp 10bdad: 89 e5 mov %esp,%ebp 10bdaf: 53 push %ebx 10bdb0: 83 ec 04 sub $0x4,%esp
Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ;
10bdb3: 8b 1d b8 55 12 00 mov 0x1255b8,%ebx 10bdb9: 81 fb bc 55 12 00 cmp $0x1255bc,%ebx
10bdbf: 74 1c je 10bddd <_API_extensions_Run_postswitch+0x31><== ALWAYS TAKEN
10bdc1: 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 );
10bdc4: 83 ec 0c sub $0xc,%esp 10bdc7: ff 35 18 54 12 00 pushl 0x125418 10bdcd: 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 ) {
10bdd0: 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 ;
10bdd2: 83 c4 10 add $0x10,%esp 10bdd5: 81 fb bc 55 12 00 cmp $0x1255bc,%ebx
10bddb: 75 e7 jne 10bdc4 <_API_extensions_Run_postswitch+0x18><== ALWAYS TAKEN
#if defined(RTEMS_ITRON_API) if ( the_extension->postswitch_hook ) #endif (*the_extension->postswitch_hook)( _Thread_Executing ); } }
10bddd: 8b 5d fc mov -0x4(%ebp),%ebx 10bde0: c9 leave 10bde1: c3 ret
00111e2c <_CORE_barrier_Wait>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) {
111e2c: 55 push %ebp 111e2d: 89 e5 mov %esp,%ebp 111e2f: 57 push %edi 111e30: 56 push %esi 111e31: 53 push %ebx 111e32: 83 ec 1c sub $0x1c,%esp 111e35: 8b 45 08 mov 0x8(%ebp),%eax 111e38: 8b 5d 0c mov 0xc(%ebp),%ebx 111e3b: 8b 75 14 mov 0x14(%ebp),%esi 111e3e: 8b 7d 18 mov 0x18(%ebp),%edi
Thread_Control *executing; ISR_Level level; executing = _Thread_Executing;
111e41: 8b 15 18 54 12 00 mov 0x125418,%edx
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
111e47: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx)
_ISR_Disable( level );
111e4e: 9c pushf 111e4f: fa cli 111e50: 8f 45 e4 popl -0x1c(%ebp)
the_barrier->number_of_waiting_threads++;
111e53: 8b 48 48 mov 0x48(%eax),%ecx 111e56: 41 inc %ecx 111e57: 89 48 48 mov %ecx,0x48(%eax)
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
111e5a: 83 78 40 00 cmpl $0x0,0x40(%eax)
111e5e: 75 05 jne 111e65 <_CORE_barrier_Wait+0x39> if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) {
111e60: 3b 48 44 cmp 0x44(%eax),%ecx
111e63: 74 2b je 111e90 <_CORE_barrier_Wait+0x64>
111e65: c7 40 30 01 00 00 00 movl $0x1,0x30(%eax)
return; } } _Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue;
111e6c: 89 42 44 mov %eax,0x44(%edx)
executing->Wait.id = id;
111e6f: 89 5a 20 mov %ebx,0x20(%edx)
_ISR_Enable( level );
111e72: ff 75 e4 pushl -0x1c(%ebp) 111e75: 9d popf
_Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout );
111e76: c7 45 10 64 dc 10 00 movl $0x10dc64,0x10(%ebp) 111e7d: 89 75 0c mov %esi,0xc(%ebp) 111e80: 89 45 08 mov %eax,0x8(%ebp)
}
111e83: 83 c4 1c add $0x1c,%esp 111e86: 5b pop %ebx 111e87: 5e pop %esi 111e88: 5f pop %edi 111e89: c9 leave
_Thread_queue_Enter_critical_section( &the_barrier->Wait_queue ); executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout );
111e8a: e9 c5 ba ff ff jmp 10d954 <_Thread_queue_Enqueue_with_handler>
111e8f: 90 nop <== NOT EXECUTED
_ISR_Disable( level ); the_barrier->number_of_waiting_threads++; if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED;
111e90: c7 42 34 01 00 00 00 movl $0x1,0x34(%edx)
_ISR_Enable( level );
111e97: ff 75 e4 pushl -0x1c(%ebp) 111e9a: 9d popf
_CORE_barrier_Release( the_barrier, id, api_barrier_mp_support );
111e9b: 89 7d 10 mov %edi,0x10(%ebp) 111e9e: 89 5d 0c mov %ebx,0xc(%ebp) 111ea1: 89 45 08 mov %eax,0x8(%ebp)
executing->Wait.queue = &the_barrier->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); }
111ea4: 83 c4 1c add $0x1c,%esp 111ea7: 5b pop %ebx 111ea8: 5e pop %esi 111ea9: 5f pop %edi 111eaa: c9 leave
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED; _ISR_Enable( level ); _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support );
111eab: e9 4c ff ff ff jmp 111dfc <_CORE_barrier_Release>
00119ab0 <_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 ) {
119ab0: 55 push %ebp 119ab1: 89 e5 mov %esp,%ebp 119ab3: 57 push %edi 119ab4: 56 push %esi 119ab5: 53 push %ebx 119ab6: 83 ec 1c sub $0x1c,%esp 119ab9: 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 ) {
119abc: 8b 45 10 mov 0x10(%ebp),%eax 119abf: 39 43 4c cmp %eax,0x4c(%ebx)
119ac2: 72 60 jb 119b24 <_CORE_message_queue_Broadcast+0x74><== ALWAYS 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 ) {
119ac4: 8b 43 48 mov 0x48(%ebx),%eax 119ac7: 85 c0 test %eax,%eax
119ac9: 75 45 jne 119b10 <_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))) {
119acb: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 119ad2: eb 18 jmp 119aec <_CORE_message_queue_Broadcast+0x3c>
waitp = &the_thread->Wait; number_broadcasted += 1;
119ad4: ff 45 e4 incl -0x1c(%ebp)
const void *source, void *destination, size_t size ) { memcpy(destination, source, size);
119ad7: 8b 42 2c mov 0x2c(%edx),%eax 119ada: 89 c7 mov %eax,%edi 119adc: 8b 75 0c mov 0xc(%ebp),%esi 119adf: 8b 4d 10 mov 0x10(%ebp),%ecx 119ae2: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size;
119ae4: 8b 42 28 mov 0x28(%edx),%eax 119ae7: 8b 55 10 mov 0x10(%ebp),%edx 119aea: 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))) {
119aec: 83 ec 0c sub $0xc,%esp 119aef: 53 push %ebx 119af0: e8 ab 23 00 00 call 11bea0 <_Thread_queue_Dequeue> 119af5: 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 =
119af7: 83 c4 10 add $0x10,%esp 119afa: 85 c0 test %eax,%eax
119afc: 75 d6 jne 119ad4 <_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;
119afe: 8b 55 e4 mov -0x1c(%ebp),%edx 119b01: 8b 45 1c mov 0x1c(%ebp),%eax 119b04: 89 10 mov %edx,(%eax) 119b06: 31 c0 xor %eax,%eax
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; }
119b08: 8d 65 f4 lea -0xc(%ebp),%esp 119b0b: 5b pop %ebx 119b0c: 5e pop %esi 119b0d: 5f pop %edi 119b0e: c9 leave 119b0f: 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;
119b10: 8b 55 1c mov 0x1c(%ebp),%edx 119b13: c7 02 00 00 00 00 movl $0x0,(%edx) 119b19: 31 c0 xor %eax,%eax
#endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; }
119b1b: 8d 65 f4 lea -0xc(%ebp),%esp 119b1e: 5b pop %ebx 119b1f: 5e pop %esi 119b20: 5f pop %edi 119b21: c9 leave 119b22: c3 ret
119b23: 90 nop <== NOT EXECUTED
{ Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) {
119b24: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
#endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; }
119b29: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 119b2c: 5b pop %ebx <== NOT EXECUTED 119b2d: 5e pop %esi <== NOT EXECUTED 119b2e: 5f pop %edi <== NOT EXECUTED 119b2f: c9 leave <== NOT EXECUTED 119b30: c3 ret <== NOT EXECUTED
00114bc4 <_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 ) {
114bc4: 55 push %ebp 114bc5: 89 e5 mov %esp,%ebp 114bc7: 57 push %edi 114bc8: 56 push %esi 114bc9: 53 push %ebx 114bca: 83 ec 0c sub $0xc,%esp 114bcd: 8b 5d 08 mov 0x8(%ebp),%ebx 114bd0: 8b 75 10 mov 0x10(%ebp),%esi 114bd3: 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;
114bd6: 89 73 44 mov %esi,0x44(%ebx)
the_message_queue->number_of_pending_messages = 0;
114bd9: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx)
the_message_queue->maximum_message_size = maximum_message_size;
114be0: 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)) {
114be3: a8 03 test $0x3,%al
114be5: 75 19 jne 114c00 <_CORE_message_queue_Initialize+0x3c>
114be7: 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));
114be9: 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 *
114bec: 89 f8 mov %edi,%eax 114bee: 0f af c6 imul %esi,%eax
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size)
114bf1: 39 d0 cmp %edx,%eax
114bf3: 73 23 jae 114c18 <_CORE_message_queue_Initialize+0x54><== NEVER TAKEN
THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true;
114bf5: 31 c0 xor %eax,%eax
}
114bf7: 8d 65 f4 lea -0xc(%ebp),%esp 114bfa: 5b pop %ebx 114bfb: 5e pop %esi 114bfc: 5f pop %edi 114bfd: c9 leave 114bfe: c3 ret
114bff: 90 nop <== NOT EXECUTED
* 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);
114c00: 8d 50 04 lea 0x4(%eax),%edx
allocated_message_size &= ~(sizeof(uint32_t) - 1);
114c03: 83 e2 fc and $0xfffffffc,%edx
} if (allocated_message_size < maximum_message_size)
114c06: 39 d0 cmp %edx,%eax
114c08: 77 eb ja 114bf5 <_CORE_message_queue_Initialize+0x31><== ALWAYS 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));
114c0a: 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 *
114c0d: 89 f8 mov %edi,%eax 114c0f: 0f af c6 imul %esi,%eax
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size)
114c12: 39 d0 cmp %edx,%eax
114c14: 72 df jb 114bf5 <_CORE_message_queue_Initialize+0x31><== ALWAYS TAKEN
114c16: 66 90 xchg %ax,%ax
return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
114c18: 83 ec 0c sub $0xc,%esp 114c1b: 50 push %eax 114c1c: e8 57 28 00 00 call 117478 <_Workspace_Allocate> 114c21: 89 43 5c mov %eax,0x5c(%ebx)
_Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0)
114c24: 83 c4 10 add $0x10,%esp 114c27: 85 c0 test %eax,%eax
114c29: 74 ca je 114bf5 <_CORE_message_queue_Initialize+0x31> /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize (
114c2b: 57 push %edi 114c2c: 56 push %esi 114c2d: 50 push %eax 114c2e: 8d 43 60 lea 0x60(%ebx),%eax 114c31: 50 push %eax 114c32: e8 51 43 00 00 call 118f88 <_Chain_Initialize>
*/ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain);
114c37: 8d 43 54 lea 0x54(%ebx),%eax 114c3a: 89 43 50 mov %eax,0x50(%ebx)
the_chain->permanent_null = NULL;
114c3d: c7 43 54 00 00 00 00 movl $0x0,0x54(%ebx)
the_chain->last = _Chain_Head(the_chain);
114c44: 8d 43 50 lea 0x50(%ebx),%eax 114c47: 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(
114c4a: 6a 06 push $0x6 114c4c: 68 80 00 00 00 push $0x80 114c51: 8b 45 0c mov 0xc(%ebp),%eax 114c54: 83 38 01 cmpl $0x1,(%eax) 114c57: 0f 94 c0 sete %al 114c5a: 0f b6 c0 movzbl %al,%eax 114c5d: 50 push %eax 114c5e: 53 push %ebx 114c5f: e8 34 1e 00 00 call 116a98 <_Thread_queue_Initialize> 114c64: b0 01 mov $0x1,%al
THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true;
114c66: 83 c4 20 add $0x20,%esp
}
114c69: 8d 65 f4 lea -0xc(%ebp),%esp 114c6c: 5b pop %ebx 114c6d: 5e pop %esi 114c6e: 5f pop %edi 114c6f: c9 leave 114c70: c3 ret
00110128 <_CORE_message_queue_Insert_message>: void _CORE_message_queue_Insert_message( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Buffer_control *the_message, CORE_message_queue_Submit_types submit_type ) {
110128: 55 push %ebp 110129: 89 e5 mov %esp,%ebp 11012b: 53 push %ebx 11012c: 8b 45 08 mov 0x8(%ebp),%eax 11012f: 8b 55 0c mov 0xc(%ebp),%edx
#endif _CORE_message_queue_Set_message_priority( the_message, submit_type ); #if !defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY) _ISR_Disable( level );
110132: 9c pushf 110133: fa cli 110134: 5b pop %ebx
SET_NOTIFY(); the_message_queue->number_of_pending_messages++;
110135: ff 40 48 incl 0x48(%eax)
if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST )
110138: 81 7d 10 ff ff ff 7f cmpl $0x7fffffff,0x10(%ebp)
11013f: 74 17 je 110158 <_CORE_message_queue_Insert_message+0x30>
110141: 8d 48 50 lea 0x50(%eax),%ecx
Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node;
110144: 89 4a 04 mov %ecx,0x4(%edx)
before_node = after_node->next;
110147: 8b 48 50 mov 0x50(%eax),%ecx
after_node->next = the_node;
11014a: 89 50 50 mov %edx,0x50(%eax)
the_node->next = before_node;
11014d: 89 0a mov %ecx,(%edx)
before_node->previous = the_node;
11014f: 89 51 04 mov %edx,0x4(%ecx)
_CORE_message_queue_Append_unprotected(the_message_queue, the_message); else _CORE_message_queue_Prepend_unprotected(the_message_queue, the_message); _ISR_Enable( level );
110152: 53 push %ebx 110153: 9d popf
* the message is actually in the queue at this point. */ if ( notify && the_message_queue->notify_handler ) (*the_message_queue->notify_handler)(the_message_queue->notify_argument); #endif }
110154: 5b pop %ebx 110155: c9 leave 110156: c3 ret
110157: 90 nop <== NOT EXECUTED
Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain);
110158: 8d 48 54 lea 0x54(%eax),%ecx 11015b: 89 0a mov %ecx,(%edx)
old_last_node = the_chain->last;
11015d: 8b 48 58 mov 0x58(%eax),%ecx
the_chain->last = the_node;
110160: 89 50 58 mov %edx,0x58(%eax)
old_last_node->next = the_node;
110163: 89 11 mov %edx,(%ecx)
the_node->previous = old_last_node;
110165: 89 4a 04 mov %ecx,0x4(%edx) 110168: eb e8 jmp 110152 <_CORE_message_queue_Insert_message+0x2a>
00114c74 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) {
114c74: 55 push %ebp 114c75: 89 e5 mov %esp,%ebp 114c77: 57 push %edi 114c78: 56 push %esi 114c79: 53 push %ebx 114c7a: 83 ec 1c sub $0x1c,%esp 114c7d: 8b 45 08 mov 0x8(%ebp),%eax 114c80: 8b 55 0c mov 0xc(%ebp),%edx 114c83: 89 55 dc mov %edx,-0x24(%ebp) 114c86: 8b 55 10 mov 0x10(%ebp),%edx 114c89: 89 55 e4 mov %edx,-0x1c(%ebp) 114c8c: 8b 7d 14 mov 0x14(%ebp),%edi 114c8f: 8b 55 1c mov 0x1c(%ebp),%edx 114c92: 89 55 d8 mov %edx,-0x28(%ebp) 114c95: 8a 5d 18 mov 0x18(%ebp),%bl
ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing;
114c98: 8b 0d 58 fb 12 00 mov 0x12fb58,%ecx
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
114c9e: c7 41 34 00 00 00 00 movl $0x0,0x34(%ecx)
_ISR_Disable( level );
114ca5: 9c pushf 114ca6: fa cli 114ca7: 8f 45 e0 popl -0x20(%ebp)
*/ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain));
114caa: 8b 50 50 mov 0x50(%eax),%edx
*/ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null;
114cad: 8d 70 54 lea 0x54(%eax),%esi 114cb0: 39 f2 cmp %esi,%edx
114cb2: 74 44 je 114cf8 <_CORE_message_queue_Seize+0x84> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next;
114cb4: 8b 0a mov (%edx),%ecx
the_chain->first = new_first;
114cb6: 89 48 50 mov %ecx,0x50(%eax)
new_first->previous = _Chain_Head(the_chain);
114cb9: 8d 58 50 lea 0x50(%eax),%ebx 114cbc: 89 59 04 mov %ebx,0x4(%ecx)
the_message = _CORE_message_queue_Get_pending_message( the_message_queue ); if ( the_message != NULL ) { the_message_queue->number_of_pending_messages -= 1;
114cbf: ff 48 48 decl 0x48(%eax)
_ISR_Enable( level );
114cc2: ff 75 e0 pushl -0x20(%ebp) 114cc5: 9d popf
*size_p = the_message->Contents.size;
114cc6: 8b 4a 08 mov 0x8(%edx),%ecx 114cc9: 89 0f mov %ecx,(%edi)
_Thread_Executing->Wait.count =
114ccb: 8b 0d 58 fb 12 00 mov 0x12fb58,%ecx 114cd1: c7 41 24 00 00 00 00 movl $0x0,0x24(%ecx)
const void *source, void *destination, size_t size ) { memcpy(destination, source, size);
114cd8: 8d 72 0c lea 0xc(%edx),%esi 114cdb: 8b 0f mov (%edi),%ecx 114cdd: 8b 7d e4 mov -0x1c(%ebp),%edi 114ce0: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer ( CORE_message_queue_Control *the_message_queue, CORE_message_queue_Buffer_control *the_message ) { _Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node );
114ce2: 89 55 0c mov %edx,0xc(%ebp) 114ce5: 83 c0 60 add $0x60,%eax 114ce8: 89 45 08 mov %eax,0x8(%ebp)
executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); }
114ceb: 83 c4 1c add $0x1c,%esp 114cee: 5b pop %ebx 114cef: 5e pop %esi 114cf0: 5f pop %edi 114cf1: c9 leave 114cf2: e9 4d fe ff ff jmp 114b44 <_Chain_Append>
114cf7: 90 nop <== NOT EXECUTED
return; } #endif } if ( !wait ) {
114cf8: 84 db test %bl,%bl
114cfa: 75 14 jne 114d10 <_CORE_message_queue_Seize+0x9c> _ISR_Enable( level );
114cfc: ff 75 e0 pushl -0x20(%ebp) 114cff: 9d popf
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
114d00: c7 41 34 04 00 00 00 movl $0x4,0x34(%ecx)
executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); }
114d07: 83 c4 1c add $0x1c,%esp 114d0a: 5b pop %ebx 114d0b: 5e pop %esi 114d0c: 5f pop %edi 114d0d: c9 leave 114d0e: c3 ret
114d0f: 90 nop <== NOT EXECUTED
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;
114d10: c7 40 30 01 00 00 00 movl $0x1,0x30(%eax)
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; return; } _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue ); executing->Wait.queue = &the_message_queue->Wait_queue;
114d17: 89 41 44 mov %eax,0x44(%ecx)
executing->Wait.id = id;
114d1a: 8b 55 dc mov -0x24(%ebp),%edx 114d1d: 89 51 20 mov %edx,0x20(%ecx)
executing->Wait.return_argument_second.mutable_object = buffer;
114d20: 8b 55 e4 mov -0x1c(%ebp),%edx 114d23: 89 51 2c mov %edx,0x2c(%ecx)
executing->Wait.return_argument = size_p;
114d26: 89 79 28 mov %edi,0x28(%ecx)
/* Wait.count will be filled in with the message priority */ _ISR_Enable( level );
114d29: ff 75 e0 pushl -0x20(%ebp) 114d2c: 9d popf
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
114d2d: c7 45 10 48 6b 11 00 movl $0x116b48,0x10(%ebp) 114d34: 8b 55 d8 mov -0x28(%ebp),%edx 114d37: 89 55 0c mov %edx,0xc(%ebp) 114d3a: 89 45 08 mov %eax,0x8(%ebp)
}
114d3d: 83 c4 1c add $0x1c,%esp 114d40: 5b pop %ebx 114d41: 5e pop %esi 114d42: 5f pop %edi 114d43: c9 leave
executing->Wait.return_argument_second.mutable_object = buffer; executing->Wait.return_argument = size_p; /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
114d44: e9 ef 1a 00 00 jmp 116838 <_Thread_queue_Enqueue_with_handler>
0010bf14 <_CORE_message_queue_Submit>: #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) {
10bf14: 55 push %ebp 10bf15: 89 e5 mov %esp,%ebp 10bf17: 57 push %edi 10bf18: 56 push %esi 10bf19: 53 push %ebx 10bf1a: 83 ec 0c sub $0xc,%esp 10bf1d: 8b 5d 08 mov 0x8(%ebp),%ebx 10bf20: 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 ) {
10bf23: 8b 45 10 mov 0x10(%ebp),%eax 10bf26: 39 43 4c cmp %eax,0x4c(%ebx)
10bf29: 72 51 jb 10bf7c <_CORE_message_queue_Submit+0x68> } /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) {
10bf2b: 8b 43 48 mov 0x48(%ebx),%eax 10bf2e: 85 c0 test %eax,%eax
10bf30: 74 5a je 10bf8c <_CORE_message_queue_Submit+0x78> /* * No one waiting on the message queue at this time, so attempt to * queue the message up for a future receive. */ if ( the_message_queue->number_of_pending_messages < the_message_queue->maximum_pending_messages ) {
10bf32: 39 43 44 cmp %eax,0x44(%ebx)
10bf35: 77 0d ja 10bf44 <_CORE_message_queue_Submit+0x30>
10bf37: 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 }
10bf3c: 8d 65 f4 lea -0xc(%ebp),%esp 10bf3f: 5b pop %ebx 10bf40: 5e pop %esi 10bf41: 5f pop %edi 10bf42: c9 leave 10bf43: c3 ret
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 *)
10bf44: 83 ec 0c sub $0xc,%esp 10bf47: 8d 43 60 lea 0x60(%ebx),%eax 10bf4a: 50 push %eax 10bf4b: e8 a0 ff ff ff call 10bef0 <_Chain_Get> 10bf50: 89 c2 mov %eax,%edx
const void *source, void *destination, size_t size ) { memcpy(destination, source, size);
10bf52: 8d 40 0c lea 0xc(%eax),%eax 10bf55: 89 c7 mov %eax,%edi 10bf57: 8b 4d 10 mov 0x10(%ebp),%ecx 10bf5a: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
_CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size;
10bf5c: 8b 4d 10 mov 0x10(%ebp),%ecx 10bf5f: 89 4a 08 mov %ecx,0x8(%edx)
_CORE_message_queue_Set_message_priority( the_message, submit_type ); _CORE_message_queue_Insert_message(
10bf62: 83 c4 0c add $0xc,%esp 10bf65: ff 75 1c pushl 0x1c(%ebp) 10bf68: 52 push %edx 10bf69: 53 push %ebx 10bf6a: e8 b9 41 00 00 call 110128 <_CORE_message_queue_Insert_message> 10bf6f: 31 c0 xor %eax,%eax
the_message_queue, the_message, submit_type ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
10bf71: 83 c4 10 add $0x10,%esp
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif }
10bf74: 8d 65 f4 lea -0xc(%ebp),%esp 10bf77: 5b pop %ebx 10bf78: 5e pop %esi 10bf79: 5f pop %edi 10bf7a: c9 leave 10bf7b: c3 ret
) { CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) {
10bf7c: 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 }
10bf81: 8d 65 f4 lea -0xc(%ebp),%esp 10bf84: 5b pop %ebx 10bf85: 5e pop %esi 10bf86: 5f pop %edi 10bf87: c9 leave 10bf88: c3 ret
10bf89: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * 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 );
10bf8c: 83 ec 0c sub $0xc,%esp 10bf8f: 53 push %ebx 10bf90: e8 a3 18 00 00 call 10d838 <_Thread_queue_Dequeue> 10bf95: 89 c2 mov %eax,%edx
if ( the_thread ) {
10bf97: 83 c4 10 add $0x10,%esp 10bf9a: 85 c0 test %eax,%eax
10bf9c: 74 1e je 10bfbc <_CORE_message_queue_Submit+0xa8>
10bf9e: 8b 40 2c mov 0x2c(%eax),%eax 10bfa1: 89 c7 mov %eax,%edi 10bfa3: 8b 4d 10 mov 0x10(%ebp),%ecx 10bfa6: 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;
10bfa8: 8b 42 28 mov 0x28(%edx),%eax 10bfab: 8b 4d 10 mov 0x10(%ebp),%ecx 10bfae: 89 08 mov %ecx,(%eax)
the_thread->Wait.count = (uint32_t) submit_type;
10bfb0: 8b 45 1c mov 0x1c(%ebp),%eax 10bfb3: 89 42 24 mov %eax,0x24(%edx) 10bfb6: 31 c0 xor %eax,%eax
#if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
10bfb8: eb 82 jmp 10bf3c <_CORE_message_queue_Submit+0x28>
10bfba: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * 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 ); if ( the_thread ) {
10bfbc: 8b 43 48 mov 0x48(%ebx),%eax 10bfbf: e9 6e ff ff ff jmp 10bf32 <_CORE_message_queue_Submit+0x1e>
0010bfd0 <_CORE_mutex_Initialize>: CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) {
10bfd0: 55 push %ebp 10bfd1: 89 e5 mov %esp,%ebp 10bfd3: 57 push %edi 10bfd4: 56 push %esi 10bfd5: 53 push %ebx 10bfd6: 83 ec 0c sub $0xc,%esp 10bfd9: 8b 45 08 mov 0x8(%ebp),%eax 10bfdc: 8b 5d 0c mov 0xc(%ebp),%ebx 10bfdf: 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;
10bfe2: 8d 78 40 lea 0x40(%eax),%edi 10bfe5: b9 04 00 00 00 mov $0x4,%ecx 10bfea: 89 de mov %ebx,%esi 10bfec: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
the_mutex->lock = initial_lock;
10bfee: 89 50 50 mov %edx,0x50(%eax)
the_mutex->blocked_count = 0;
10bff1: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax)
if ( initial_lock == CORE_MUTEX_LOCKED ) {
10bff8: 85 d2 test %edx,%edx
10bffa: 75 30 jne 10c02c <_CORE_mutex_Initialize+0x5c> the_mutex->nest_count = 1;
10bffc: c7 40 54 01 00 00 00 movl $0x1,0x54(%eax)
the_mutex->holder = _Thread_Executing;
10c003: 8b 15 18 54 12 00 mov 0x125418,%edx 10c009: 89 50 5c mov %edx,0x5c(%eax)
the_mutex->holder_id = _Thread_Executing->Object.id;
10c00c: 8b 4a 08 mov 0x8(%edx),%ecx 10c00f: 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;
10c012: 8b 48 48 mov 0x48(%eax),%ecx
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
10c015: 83 f9 02 cmp $0x2,%ecx
10c018: 74 05 je 10c01f <_CORE_mutex_Initialize+0x4f>
10c01a: 83 f9 03 cmp $0x3,%ecx
10c01d: 75 22 jne 10c041 <_CORE_mutex_Initialize+0x71> _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < the_mutex->Attributes.priority_ceiling )
10c01f: 8b 4a 14 mov 0x14(%edx),%ecx 10c022: 3b 48 4c cmp 0x4c(%eax),%ecx
10c025: 72 41 jb 10c068 <_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++;
10c027: ff 42 1c incl 0x1c(%edx) 10c02a: eb 15 jmp 10c041 <_CORE_mutex_Initialize+0x71>
} } else { the_mutex->nest_count = 0;
10c02c: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
the_mutex->holder = NULL;
10c033: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax)
the_mutex->holder_id = 0;
10c03a: c7 40 60 00 00 00 00 movl $0x0,0x60(%eax)
} _Thread_queue_Initialize(
10c041: 6a 05 push $0x5 10c043: 68 00 04 00 00 push $0x400 10c048: 31 d2 xor %edx,%edx 10c04a: 83 7b 08 00 cmpl $0x0,0x8(%ebx) 10c04e: 0f 95 c2 setne %dl 10c051: 52 push %edx 10c052: 50 push %eax 10c053: e8 5c 1b 00 00 call 10dbb4 <_Thread_queue_Initialize> 10c058: 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;
10c05a: 83 c4 10 add $0x10,%esp
}
10c05d: 8d 65 f4 lea -0xc(%ebp),%esp 10c060: 5b pop %ebx 10c061: 5e pop %esi 10c062: 5f pop %edi 10c063: c9 leave 10c064: c3 ret
10c065: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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 )
10c068: b8 06 00 00 00 mov $0x6,%eax
STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; }
10c06d: 8d 65 f4 lea -0xc(%ebp),%esp 10c070: 5b pop %ebx 10c071: 5e pop %esi 10c072: 5f pop %edi 10c073: c9 leave 10c074: c3 ret
0010c0c8 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) {
10c0c8: 55 push %ebp 10c0c9: 89 e5 mov %esp,%ebp 10c0cb: 53 push %ebx 10c0cc: 83 ec 14 sub $0x14,%esp 10c0cf: 8b 5d 08 mov 0x8(%ebp),%ebx 10c0d2: 8a 55 10 mov 0x10(%ebp),%dl
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
10c0d5: a1 58 53 12 00 mov 0x125358,%eax 10c0da: 85 c0 test %eax,%eax
10c0dc: 74 04 je 10c0e2 <_CORE_mutex_Seize+0x1a>
10c0de: 84 d2 test %dl,%dl
10c0e0: 75 36 jne 10c118 <_CORE_mutex_Seize+0x50><== NEVER TAKEN
10c0e2: 83 ec 08 sub $0x8,%esp 10c0e5: 8d 45 18 lea 0x18(%ebp),%eax 10c0e8: 50 push %eax 10c0e9: 53 push %ebx 10c0ea: 88 55 f4 mov %dl,-0xc(%ebp) 10c0ed: e8 7a 40 00 00 call 11016c <_CORE_mutex_Seize_interrupt_trylock> 10c0f2: 83 c4 10 add $0x10,%esp 10c0f5: 85 c0 test %eax,%eax 10c0f7: 8a 55 f4 mov -0xc(%ebp),%dl
10c0fa: 74 14 je 10c110 <_CORE_mutex_Seize+0x48>
10c0fc: 84 d2 test %dl,%dl
10c0fe: 75 30 jne 10c130 <_CORE_mutex_Seize+0x68>
10c100: ff 75 18 pushl 0x18(%ebp) 10c103: 9d popf 10c104: a1 18 54 12 00 mov 0x125418,%eax 10c109: c7 40 34 01 00 00 00 movl $0x1,0x34(%eax)
}
10c110: 8b 5d fc mov -0x4(%ebp),%ebx 10c113: c9 leave 10c114: c3 ret
10c115: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
10c118: 83 3d 20 55 12 00 01 cmpl $0x1,0x125520
10c11f: 76 c1 jbe 10c0e2 <_CORE_mutex_Seize+0x1a>
10c121: 53 push %ebx 10c122: 6a 13 push $0x13 10c124: 6a 00 push $0x0 10c126: 6a 00 push $0x0 10c128: e8 9b 05 00 00 call 10c6c8 <_Internal_error_Occurred>
10c12d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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;
10c130: c7 43 30 01 00 00 00 movl $0x1,0x30(%ebx) 10c137: a1 18 54 12 00 mov 0x125418,%eax 10c13c: 89 58 44 mov %ebx,0x44(%eax) 10c13f: 8b 55 0c mov 0xc(%ebp),%edx 10c142: 89 50 20 mov %edx,0x20(%eax) 10c145: a1 58 53 12 00 mov 0x125358,%eax 10c14a: 40 inc %eax 10c14b: a3 58 53 12 00 mov %eax,0x125358 10c150: ff 75 18 pushl 0x18(%ebp) 10c153: 9d popf 10c154: 83 ec 08 sub $0x8,%esp 10c157: ff 75 14 pushl 0x14(%ebp) 10c15a: 53 push %ebx 10c15b: e8 18 ff ff ff call 10c078 <_CORE_mutex_Seize_interrupt_blocking> 10c160: 83 c4 10 add $0x10,%esp
}
10c163: 8b 5d fc mov -0x4(%ebp),%ebx 10c166: c9 leave 10c167: c3 ret
0011016c <_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 ) {
11016c: 55 push %ebp 11016d: 89 e5 mov %esp,%ebp 11016f: 56 push %esi 110170: 53 push %ebx 110171: 8b 45 08 mov 0x8(%ebp),%eax 110174: 8b 4d 0c mov 0xc(%ebp),%ecx
{ Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing;
110177: 8b 15 18 54 12 00 mov 0x125418,%edx
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
11017d: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx)
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
110184: 8b 58 50 mov 0x50(%eax),%ebx 110187: 85 db test %ebx,%ebx
110189: 74 31 je 1101bc <_CORE_mutex_Seize_interrupt_trylock+0x50> the_mutex->lock = CORE_MUTEX_LOCKED;
11018b: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax)
the_mutex->holder = executing;
110192: 89 50 5c mov %edx,0x5c(%eax)
the_mutex->holder_id = executing->Object.id;
110195: 8b 5a 08 mov 0x8(%edx),%ebx 110198: 89 58 60 mov %ebx,0x60(%eax)
the_mutex->nest_count = 1;
11019b: 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;
1101a2: 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 ) ||
1101a5: 83 fb 02 cmp $0x2,%ebx
1101a8: 74 26 je 1101d0 <_CORE_mutex_Seize_interrupt_trylock+0x64>
1101aa: 83 fb 03 cmp $0x3,%ebx
1101ad: 74 3d je 1101ec <_CORE_mutex_Seize_interrupt_trylock+0x80> executing->resource_count++; } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { _ISR_Enable( *level_p );
1101af: ff 31 pushl (%ecx) 1101b1: 9d popf 1101b2: 31 c0 xor %eax,%eax
return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); }
1101b4: 8d 65 f8 lea -0x8(%ebp),%esp 1101b7: 5b pop %ebx 1101b8: 5e pop %esi 1101b9: c9 leave 1101ba: c3 ret
1101bb: 90 nop <== NOT EXECUTED
/* * 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 ) ) {
1101bc: 3b 50 5c cmp 0x5c(%eax),%edx
1101bf: 74 17 je 1101d8 <_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 );
1101c1: b8 01 00 00 00 mov $0x1,%eax 1101c6: 8d 65 f8 lea -0x8(%ebp),%esp 1101c9: 5b pop %ebx 1101ca: 5e pop %esi 1101cb: c9 leave 1101cc: c3 ret
1101cd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++;
1101d0: ff 42 1c incl 0x1c(%edx) 1101d3: eb da jmp 1101af <_CORE_mutex_Seize_interrupt_trylock+0x43>
1101d5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* 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 ) {
1101d8: 8b 58 40 mov 0x40(%eax),%ebx 1101db: 85 db test %ebx,%ebx
1101dd: 75 45 jne 110224 <_CORE_mutex_Seize_interrupt_trylock+0xb8> case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++;
1101df: ff 40 54 incl 0x54(%eax)
_ISR_Enable( *level_p );
1101e2: ff 31 pushl (%ecx) 1101e4: 9d popf 1101e5: 31 c0 xor %eax,%eax 1101e7: eb dd jmp 1101c6 <_CORE_mutex_Seize_interrupt_trylock+0x5a>
1101e9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++;
1101ec: 8b 5a 1c mov 0x1c(%edx),%ebx 1101ef: 8d 73 01 lea 0x1(%ebx),%esi 1101f2: 89 72 1c mov %esi,0x1c(%edx)
{ Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority;
1101f5: 8b 72 14 mov 0x14(%edx),%esi
if ( current == ceiling ) {
1101f8: 39 70 4c cmp %esi,0x4c(%eax)
1101fb: 74 6b je 110268 <_CORE_mutex_Seize_interrupt_trylock+0xfc> _ISR_Enable( *level_p ); return 0; } if ( current > ceiling ) { 1101fd: 72 39 jb 110238 <_CORE_mutex_Seize_interrupt_trylock+0xcc> ); _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
1101ff: c7 42 34 06 00 00 00 movl $0x6,0x34(%edx)
the_mutex->lock = CORE_MUTEX_UNLOCKED;
110206: c7 40 50 01 00 00 00 movl $0x1,0x50(%eax)
the_mutex->nest_count = 0; /* undo locking above */
11020d: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax)
executing->resource_count--; /* undo locking above */
110214: 89 5a 1c mov %ebx,0x1c(%edx)
_ISR_Enable( *level_p );
110217: ff 31 pushl (%ecx) 110219: 9d popf 11021a: 31 c0 xor %eax,%eax 11021c: 8d 65 f8 lea -0x8(%ebp),%esp 11021f: 5b pop %ebx 110220: 5e pop %esi 110221: c9 leave 110222: c3 ret
110223: 90 nop <== NOT EXECUTED
* 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 ) {
110224: 4b dec %ebx
110225: 75 9a jne 1101c1 <_CORE_mutex_Seize_interrupt_trylock+0x55><== NEVER 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;
110227: c7 42 34 02 00 00 00 movl $0x2,0x34(%edx) <== NOT EXECUTED
_ISR_Enable( *level_p );
11022e: ff 31 pushl (%ecx) <== NOT EXECUTED 110230: 9d popf <== NOT EXECUTED 110231: 31 c0 xor %eax,%eax <== NOT EXECUTED 110233: eb 91 jmp 1101c6 <_CORE_mutex_Seize_interrupt_trylock+0x5a><== NOT EXECUTED 110235: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1;
110238: 8b 15 58 53 12 00 mov 0x125358,%edx 11023e: 42 inc %edx 11023f: 89 15 58 53 12 00 mov %edx,0x125358
return 0; } if ( current > ceiling ) { _Thread_Disable_dispatch(); _ISR_Enable( *level_p );
110245: ff 31 pushl (%ecx) 110247: 9d popf
_Thread_Change_priority(
110248: 52 push %edx 110249: 6a 00 push $0x0 11024b: ff 70 4c pushl 0x4c(%eax) 11024e: ff 70 5c pushl 0x5c(%eax) 110251: e8 1a cd ff ff call 10cf70 <_Thread_Change_priority>
the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch();
110256: e8 fd d1 ff ff call 10d458 <_Thread_Enable_dispatch> 11025b: 31 c0 xor %eax,%eax 11025d: 83 c4 10 add $0x10,%esp 110260: e9 61 ff ff ff jmp 1101c6 <_CORE_mutex_Seize_interrupt_trylock+0x5a>
110265: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; if ( current == ceiling ) { _ISR_Enable( *level_p );
110268: ff 31 pushl (%ecx) 11026a: 9d popf 11026b: 31 c0 xor %eax,%eax 11026d: e9 54 ff ff ff jmp 1101c6 <_CORE_mutex_Seize_interrupt_trylock+0x5a>
0010c168 <_CORE_mutex_Surrender>: #else Objects_Id id __attribute__((unused)), CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused)) #endif ) {
10c168: 55 push %ebp 10c169: 89 e5 mov %esp,%ebp 10c16b: 53 push %ebx 10c16c: 83 ec 04 sub $0x4,%esp 10c16f: 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;
10c172: 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 ) {
10c175: 80 7b 44 00 cmpb $0x0,0x44(%ebx)
10c179: 74 15 je 10c190 <_CORE_mutex_Surrender+0x28> if ( !_Thread_Is_executing( holder ) )
10c17b: 3b 05 18 54 12 00 cmp 0x125418,%eax
10c181: 74 0d je 10c190 <_CORE_mutex_Surrender+0x28>
10c183: b8 03 00 00 00 mov $0x3,%eax
} } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; }
10c188: 8b 5d fc mov -0x4(%ebp),%ebx 10c18b: c9 leave 10c18c: c3 ret
10c18d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE; } /* XXX already unlocked -- not right status */ if ( !the_mutex->nest_count )
10c190: 8b 53 54 mov 0x54(%ebx),%edx 10c193: 85 d2 test %edx,%edx
10c195: 74 65 je 10c1fc <_CORE_mutex_Surrender+0x94> return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--;
10c197: 4a dec %edx 10c198: 89 53 54 mov %edx,0x54(%ebx)
if ( the_mutex->nest_count != 0 ) {
10c19b: 85 d2 test %edx,%edx
10c19d: 75 5d jne 10c1fc <_CORE_mutex_Surrender+0x94>
10c19f: 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 ) ||
10c1a2: 83 fa 02 cmp $0x2,%edx
10c1a5: 0f 84 99 00 00 00 je 10c244 <_CORE_mutex_Surrender+0xdc>
10c1ab: 83 fa 03 cmp $0x3,%edx
10c1ae: 0f 84 90 00 00 00 je 10c244 <_CORE_mutex_Surrender+0xdc> } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL;
10c1b4: c7 43 5c 00 00 00 00 movl $0x0,0x5c(%ebx)
the_mutex->holder_id = 0;
10c1bb: 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 ) ||
10c1c2: 83 fa 02 cmp $0x2,%edx
10c1c5: 74 5d je 10c224 <_CORE_mutex_Surrender+0xbc>
10c1c7: 83 fa 03 cmp $0x3,%edx
10c1ca: 74 58 je 10c224 <_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 ) ) ) {
10c1cc: 83 ec 0c sub $0xc,%esp 10c1cf: 53 push %ebx 10c1d0: e8 63 16 00 00 call 10d838 <_Thread_queue_Dequeue> 10c1d5: 83 c4 10 add $0x10,%esp 10c1d8: 85 c0 test %eax,%eax
10c1da: 74 7c je 10c258 <_CORE_mutex_Surrender+0xf0> } else #endif { the_mutex->holder = the_thread;
10c1dc: 89 43 5c mov %eax,0x5c(%ebx)
the_mutex->holder_id = the_thread->Object.id;
10c1df: 8b 50 08 mov 0x8(%eax),%edx 10c1e2: 89 53 60 mov %edx,0x60(%ebx)
the_mutex->nest_count = 1;
10c1e5: c7 43 54 01 00 00 00 movl $0x1,0x54(%ebx)
switch ( the_mutex->Attributes.discipline ) {
10c1ec: 8b 53 48 mov 0x48(%ebx),%edx 10c1ef: 83 fa 02 cmp $0x2,%edx
10c1f2: 74 58 je 10c24c <_CORE_mutex_Surrender+0xe4>
10c1f4: 83 fa 03 cmp $0x3,%edx
10c1f7: 74 0b je 10c204 <_CORE_mutex_Surrender+0x9c>
10c1f9: 8d 76 00 lea 0x0(%esi),%esi
} break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED;
10c1fc: 31 c0 xor %eax,%eax
return CORE_MUTEX_STATUS_SUCCESSFUL; }
10c1fe: 8b 5d fc mov -0x4(%ebp),%ebx 10c201: c9 leave 10c202: c3 ret
10c203: 90 nop <== NOT EXECUTED
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++;
10c204: ff 40 1c incl 0x1c(%eax)
if (the_mutex->Attributes.priority_ceiling <
10c207: 8b 53 4c mov 0x4c(%ebx),%edx
the_thread->current_priority){
10c20a: 3b 50 14 cmp 0x14(%eax),%edx
10c20d: 73 ed jae 10c1fc <_CORE_mutex_Surrender+0x94> _Thread_Change_priority(
10c20f: 51 push %ecx 10c210: 6a 00 push $0x0 10c212: 52 push %edx 10c213: 50 push %eax 10c214: e8 57 0d 00 00 call 10cf70 <_Thread_Change_priority> 10c219: 31 c0 xor %eax,%eax 10c21b: 83 c4 10 add $0x10,%esp 10c21e: e9 65 ff ff ff jmp 10c188 <_CORE_mutex_Surrender+0x20>
10c223: 90 nop <== NOT EXECUTED
_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 &&
10c224: 8b 50 1c mov 0x1c(%eax),%edx 10c227: 85 d2 test %edx,%edx
10c229: 75 a1 jne 10c1cc <_CORE_mutex_Surrender+0x64> holder->real_priority != holder->current_priority ) {
10c22b: 8b 50 18 mov 0x18(%eax),%edx 10c22e: 3b 50 14 cmp 0x14(%eax),%edx
10c231: 74 99 je 10c1cc <_CORE_mutex_Surrender+0x64> _Thread_Change_priority( holder, holder->real_priority, true );
10c233: 51 push %ecx 10c234: 6a 01 push $0x1 10c236: 52 push %edx 10c237: 50 push %eax 10c238: e8 33 0d 00 00 call 10cf70 <_Thread_Change_priority> 10c23d: 83 c4 10 add $0x10,%esp 10c240: eb 8a jmp 10c1cc <_CORE_mutex_Surrender+0x64>
10c242: 66 90 xchg %ax,%ax <== NOT EXECUTED
the_mutex->nest_count++; return CORE_MUTEX_RELEASE_NOT_ORDER; } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--;
10c244: ff 48 1c decl 0x1c(%eax) 10c247: e9 68 ff ff ff jmp 10c1b4 <_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++;
10c24c: ff 40 1c incl 0x1c(%eax) 10c24f: 31 c0 xor %eax,%eax
break;
10c251: e9 32 ff ff ff jmp 10c188 <_CORE_mutex_Surrender+0x20>
10c256: 66 90 xchg %ax,%ax <== NOT EXECUTED
} break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED;
10c258: c7 43 50 01 00 00 00 movl $0x1,0x50(%ebx) 10c25f: 31 c0 xor %eax,%eax 10c261: e9 22 ff ff ff jmp 10c188 <_CORE_mutex_Surrender+0x20>
0010c2b4 <_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 ) {
10c2b4: 55 push %ebp 10c2b5: 89 e5 mov %esp,%ebp 10c2b7: 53 push %ebx 10c2b8: 83 ec 10 sub $0x10,%esp 10c2bb: 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)) ) {
10c2be: 53 push %ebx 10c2bf: e8 74 15 00 00 call 10d838 <_Thread_queue_Dequeue> 10c2c4: 83 c4 10 add $0x10,%esp 10c2c7: 85 c0 test %eax,%eax
10c2c9: 74 09 je 10c2d4 <_CORE_semaphore_Surrender+0x20>
10c2cb: 31 c0 xor %eax,%eax
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; }
10c2cd: 8b 5d fc mov -0x4(%ebp),%ebx 10c2d0: c9 leave 10c2d1: c3 ret
10c2d2: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_semaphore_mp_support) ( the_thread, id ); #endif } else { _ISR_Disable( level );
10c2d4: 9c pushf 10c2d5: fa cli 10c2d6: 5a pop %edx
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
10c2d7: 8b 43 48 mov 0x48(%ebx),%eax 10c2da: 3b 43 40 cmp 0x40(%ebx),%eax
10c2dd: 72 0d jb 10c2ec <_CORE_semaphore_Surrender+0x38><== NEVER TAKEN
10c2df: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED
the_semaphore->count += 1; else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level );
10c2e4: 52 push %edx 10c2e5: 9d popf
} return status; }
10c2e6: 8b 5d fc mov -0x4(%ebp),%ebx 10c2e9: c9 leave 10c2ea: c3 ret
10c2eb: 90 nop <== NOT EXECUTED
#endif } else { _ISR_Disable( level ); if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) the_semaphore->count += 1;
10c2ec: 40 inc %eax 10c2ed: 89 43 48 mov %eax,0x48(%ebx) 10c2f0: 31 c0 xor %eax,%eax 10c2f2: eb f0 jmp 10c2e4 <_CORE_semaphore_Surrender+0x30>
0010bef0 <_Chain_Get>: */ Chain_Node *_Chain_Get( Chain_Control *the_chain ) {
10bef0: 55 push %ebp 10bef1: 89 e5 mov %esp,%ebp 10bef3: 53 push %ebx 10bef4: 8b 55 08 mov 0x8(%ebp),%edx
ISR_Level level; Chain_Node *return_node; return_node = NULL; _ISR_Disable( level );
10bef7: 9c pushf 10bef8: fa cli 10bef9: 5b pop %ebx
*/ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain));
10befa: 8b 02 mov (%edx),%eax
*/ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null;
10befc: 8d 4a 04 lea 0x4(%edx),%ecx 10beff: 39 c8 cmp %ecx,%eax
10bf01: 74 0d je 10bf10 <_Chain_Get+0x20> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next;
10bf03: 8b 08 mov (%eax),%ecx
the_chain->first = new_first;
10bf05: 89 0a mov %ecx,(%edx)
new_first->previous = _Chain_Head(the_chain);
10bf07: 89 51 04 mov %edx,0x4(%ecx)
if ( !_Chain_Is_empty( the_chain ) ) return_node = _Chain_Get_first_unprotected( the_chain ); _ISR_Enable( level );
10bf0a: 53 push %ebx 10bf0b: 9d popf
return return_node; }
10bf0c: 5b pop %ebx 10bf0d: c9 leave 10bf0e: c3 ret
10bf0f: 90 nop <== NOT EXECUTED
*/ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null;
10bf10: 31 c0 xor %eax,%eax 10bf12: eb f6 jmp 10bf0a <_Chain_Get+0x1a>
001100e8 <_Chain_Initialize>: Chain_Control *the_chain, void *starting_address, size_t number_nodes, size_t node_size ) {
1100e8: 55 push %ebp 1100e9: 89 e5 mov %esp,%ebp 1100eb: 57 push %edi 1100ec: 56 push %esi 1100ed: 53 push %ebx 1100ee: 8b 7d 08 mov 0x8(%ebp),%edi 1100f1: 8b 4d 10 mov 0x10(%ebp),%ecx 1100f4: 8b 75 14 mov 0x14(%ebp),%esi
*/ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain;
1100f7: 89 fa mov %edi,%edx
Chain_Node *current; Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL;
1100f9: c7 47 04 00 00 00 00 movl $0x0,0x4(%edi)
next = starting_address; while ( count-- ) {
110100: 85 c9 test %ecx,%ecx
110102: 74 17 je 11011b <_Chain_Initialize+0x33><== ALWAYS TAKEN
Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address;
110104: 8b 45 0c mov 0xc(%ebp),%eax 110107: eb 05 jmp 11010e <_Chain_Initialize+0x26>
110109: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
while ( count-- ) {
11010c: 89 d8 mov %ebx,%eax
current->next = next;
11010e: 89 02 mov %eax,(%edx)
next->previous = current;
110110: 89 50 04 mov %edx,0x4(%eax) 110113: 8d 1c 30 lea (%eax,%esi,1),%ebx
current = next; next = (Chain_Node *)
110116: 89 c2 mov %eax,%edx
count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) {
110118: 49 dec %ecx
110119: 75 f1 jne 11010c <_Chain_Initialize+0x24> next->previous = current; current = next; next = (Chain_Node *) _Addresses_Add_offset( (void *) next, node_size ); } current->next = _Chain_Tail( the_chain );
11011b: 8d 47 04 lea 0x4(%edi),%eax 11011e: 89 02 mov %eax,(%edx)
the_chain->last = current;
110120: 89 57 08 mov %edx,0x8(%edi)
}
110123: 5b pop %ebx 110124: 5e pop %esi 110125: 5f pop %edi 110126: c9 leave 110127: c3 ret
0010afc4 <_Event_Seize>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) {
10afc4: 55 push %ebp 10afc5: 89 e5 mov %esp,%ebp 10afc7: 57 push %edi 10afc8: 56 push %esi 10afc9: 53 push %ebx 10afca: 83 ec 2c sub $0x2c,%esp 10afcd: 8b 45 08 mov 0x8(%ebp),%eax 10afd0: 8b 4d 0c mov 0xc(%ebp),%ecx 10afd3: 8b 55 10 mov 0x10(%ebp),%edx 10afd6: 89 55 dc mov %edx,-0x24(%ebp) 10afd9: 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;
10afdc: 8b 1d 18 54 12 00 mov 0x125418,%ebx
executing->Wait.return_code = RTEMS_SUCCESSFUL;
10afe2: c7 43 34 00 00 00 00 movl $0x0,0x34(%ebx)
api = executing->API_Extensions[ THREAD_API_RTEMS ];
10afe9: 8b b3 f0 00 00 00 mov 0xf0(%ebx),%esi
_ISR_Disable( level );
10afef: 9c pushf 10aff0: fa cli 10aff1: 8f 45 e0 popl -0x20(%ebp)
pending_events = api->pending_events;
10aff4: 8b 16 mov (%esi),%edx 10aff6: 89 55 d4 mov %edx,-0x2c(%ebp)
seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) &&
10aff9: 21 c2 and %eax,%edx 10affb: 89 55 e4 mov %edx,-0x1c(%ebp)
10affe: 74 0d je 10b00d <_Event_Seize+0x49>
10b000: 39 d0 cmp %edx,%eax
10b002: 0f 84 84 00 00 00 je 10b08c <_Event_Seize+0xc8>
10b008: f6 c1 02 test $0x2,%cl
10b00b: 75 7f jne 10b08c <_Event_Seize+0xc8> <== NEVER TAKEN
_ISR_Enable( level ); *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) {
10b00d: f6 c1 01 test $0x1,%cl
10b010: 75 62 jne 10b074 <_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;
10b012: 89 4b 30 mov %ecx,0x30(%ebx)
executing->Wait.count = (uint32_t) event_in;
10b015: 89 43 24 mov %eax,0x24(%ebx)
executing->Wait.return_argument = event_out;
10b018: 89 7b 28 mov %edi,0x28(%ebx)
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
10b01b: c7 05 0c 56 12 00 01 movl $0x1,0x12560c
10b022: 00 00 00 _ISR_Enable( level );
10b025: ff 75 e0 pushl -0x20(%ebp) 10b028: 9d popf
if ( ticks ) {
10b029: 8b 45 dc mov -0x24(%ebp),%eax 10b02c: 85 c0 test %eax,%eax
10b02e: 0f 85 80 00 00 00 jne 10b0b4 <_Event_Seize+0xf0> NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );
10b034: 83 ec 08 sub $0x8,%esp 10b037: 68 00 01 00 00 push $0x100 10b03c: 53 push %ebx 10b03d: e8 c6 2c 00 00 call 10dd08 <_Thread_Set_state>
_ISR_Disable( level );
10b042: 9c pushf 10b043: fa cli 10b044: 5a pop %edx
sync_state = _Event_Sync_state;
10b045: a1 0c 56 12 00 mov 0x12560c,%eax
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
10b04a: c7 05 0c 56 12 00 00 movl $0x0,0x12560c
10b051: 00 00 00 if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
10b054: 83 c4 10 add $0x10,%esp 10b057: 83 f8 01 cmp $0x1,%eax
10b05a: 74 4c je 10b0a8 <_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 );
10b05c: 89 55 10 mov %edx,0x10(%ebp) 10b05f: 89 5d 0c mov %ebx,0xc(%ebp) 10b062: 89 45 08 mov %eax,0x8(%ebp)
}
10b065: 8d 65 f4 lea -0xc(%ebp),%esp 10b068: 5b pop %ebx 10b069: 5e pop %esi 10b06a: 5f pop %edi 10b06b: 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 );
10b06c: e9 b3 1e 00 00 jmp 10cf24 <_Thread_blocking_operation_Cancel>
10b071: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { _ISR_Enable( level );
10b074: ff 75 e0 pushl -0x20(%ebp) 10b077: 9d popf
executing->Wait.return_code = RTEMS_UNSATISFIED;
10b078: c7 43 34 0d 00 00 00 movl $0xd,0x34(%ebx)
*event_out = seized_events;
10b07f: 8b 55 e4 mov -0x1c(%ebp),%edx 10b082: 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 ); }
10b084: 8d 65 f4 lea -0xc(%ebp),%esp 10b087: 5b pop %ebx 10b088: 5e pop %esi 10b089: 5f pop %edi 10b08a: c9 leave 10b08b: 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 =
10b08c: 8b 45 e4 mov -0x1c(%ebp),%eax 10b08f: f7 d0 not %eax 10b091: 23 45 d4 and -0x2c(%ebp),%eax 10b094: 89 06 mov %eax,(%esi)
_Event_sets_Clear( pending_events, seized_events ); _ISR_Enable( level );
10b096: ff 75 e0 pushl -0x20(%ebp) 10b099: 9d popf
*event_out = seized_events;
10b09a: 8b 45 e4 mov -0x1c(%ebp),%eax 10b09d: 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 ); }
10b09f: 8d 65 f4 lea -0xc(%ebp),%esp 10b0a2: 5b pop %ebx 10b0a3: 5e pop %esi 10b0a4: 5f pop %edi 10b0a5: c9 leave 10b0a6: c3 ret
10b0a7: 90 nop <== NOT EXECUTED
_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 );
10b0a8: 52 push %edx 10b0a9: 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 ); }
10b0aa: 8d 65 f4 lea -0xc(%ebp),%esp 10b0ad: 5b pop %ebx 10b0ae: 5e pop %esi 10b0af: 5f pop %edi 10b0b0: c9 leave 10b0b1: c3 ret
10b0b2: 66 90 xchg %ax,%ax <== NOT EXECUTED
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; _ISR_Enable( level ); if ( ticks ) { _Watchdog_Initialize(
10b0b4: 8b 43 08 mov 0x8(%ebx),%eax
Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE;
10b0b7: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx)
the_watchdog->routine = routine;
10b0be: c7 43 64 68 b2 10 00 movl $0x10b268,0x64(%ebx)
the_watchdog->id = id;
10b0c5: 89 43 68 mov %eax,0x68(%ebx)
the_watchdog->user_data = user_data;
10b0c8: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx)
Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units;
10b0cf: 8b 45 dc mov -0x24(%ebp),%eax 10b0d2: 89 43 54 mov %eax,0x54(%ebx)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
10b0d5: 83 ec 08 sub $0x8,%esp 10b0d8: 8d 43 48 lea 0x48(%ebx),%eax 10b0db: 50 push %eax 10b0dc: 68 38 54 12 00 push $0x125438 10b0e1: e8 72 32 00 00 call 10e358 <_Watchdog_Insert> 10b0e6: 83 c4 10 add $0x10,%esp 10b0e9: e9 46 ff ff ff jmp 10b034 <_Event_Seize+0x70>
0010b144 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) {
10b144: 55 push %ebp 10b145: 89 e5 mov %esp,%ebp 10b147: 57 push %edi 10b148: 56 push %esi 10b149: 53 push %ebx 10b14a: 83 ec 1c sub $0x1c,%esp 10b14d: 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 ];
10b150: 8b 8b f0 00 00 00 mov 0xf0(%ebx),%ecx
option_set = (rtems_option) the_thread->Wait.option;
10b156: 8b 73 30 mov 0x30(%ebx),%esi
_ISR_Disable( level );
10b159: 9c pushf 10b15a: fa cli 10b15b: 8f 45 e4 popl -0x1c(%ebp)
pending_events = api->pending_events;
10b15e: 8b 11 mov (%ecx),%edx
event_condition = (rtems_event_set) the_thread->Wait.count;
10b160: 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 ) ) {
10b163: 89 c7 mov %eax,%edi 10b165: 21 d7 and %edx,%edi 10b167: 89 7d e0 mov %edi,-0x20(%ebp)
10b16a: 74 74 je 10b1e0 <_Event_Surrender+0x9c> /* * 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() &&
10b16c: 8b 3d f4 53 12 00 mov 0x1253f4,%edi 10b172: 85 ff test %edi,%edi
10b174: 74 0c je 10b182 <_Event_Surrender+0x3e>
10b176: 3b 1d 18 54 12 00 cmp 0x125418,%ebx
10b17c: 0f 84 96 00 00 00 je 10b218 <_Event_Surrender+0xd4> } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {
10b182: f6 43 11 01 testb $0x1,0x11(%ebx)
10b186: 74 4c je 10b1d4 <_Event_Surrender+0x90> if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
10b188: 3b 45 e0 cmp -0x20(%ebp),%eax
10b18b: 74 05 je 10b192 <_Event_Surrender+0x4e>
10b18d: 83 e6 02 and $0x2,%esi
10b190: 74 42 je 10b1d4 <_Event_Surrender+0x90> <== ALWAYS TAKEN
api->pending_events = _Event_sets_Clear( pending_events, seized_events );
10b192: 8b 45 e0 mov -0x20(%ebp),%eax 10b195: f7 d0 not %eax 10b197: 21 d0 and %edx,%eax 10b199: 89 01 mov %eax,(%ecx)
the_thread->Wait.count = 0;
10b19b: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx)
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
10b1a2: 8b 43 28 mov 0x28(%ebx),%eax 10b1a5: 8b 7d e0 mov -0x20(%ebp),%edi 10b1a8: 89 38 mov %edi,(%eax)
_ISR_Flash( level );
10b1aa: ff 75 e4 pushl -0x1c(%ebp) 10b1ad: 9d popf 10b1ae: fa cli
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
10b1af: 83 7b 50 02 cmpl $0x2,0x50(%ebx)
10b1b3: 74 37 je 10b1ec <_Event_Surrender+0xa8> _ISR_Enable( level );
10b1b5: ff 75 e4 pushl -0x1c(%ebp) 10b1b8: 9d popf
RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED );
10b1b9: 83 ec 08 sub $0x8,%esp 10b1bc: 68 f8 ff 03 10 push $0x1003fff8 10b1c1: 53 push %ebx 10b1c2: e8 e9 1e 00 00 call 10d0b0 <_Thread_Clear_state> 10b1c7: 83 c4 10 add $0x10,%esp
} return; } } _ISR_Enable( level ); }
10b1ca: 8d 65 f4 lea -0xc(%ebp),%esp 10b1cd: 5b pop %ebx 10b1ce: 5e pop %esi 10b1cf: 5f pop %edi 10b1d0: c9 leave 10b1d1: c3 ret
10b1d2: 66 90 xchg %ax,%ax <== NOT EXECUTED
_Thread_Unblock( the_thread ); } return; } } _ISR_Enable( level );
10b1d4: ff 75 e4 pushl -0x1c(%ebp) 10b1d7: 9d popf
}
10b1d8: 8d 65 f4 lea -0xc(%ebp),%esp 10b1db: 5b pop %ebx 10b1dc: 5e pop %esi 10b1dd: 5f pop %edi 10b1de: c9 leave 10b1df: c3 ret
/* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { _ISR_Enable( level );
10b1e0: ff 75 e4 pushl -0x1c(%ebp) 10b1e3: 9d popf
} return; } } _ISR_Enable( level ); }
10b1e4: 8d 65 f4 lea -0xc(%ebp),%esp 10b1e7: 5b pop %ebx 10b1e8: 5e pop %esi 10b1e9: 5f pop %edi 10b1ea: c9 leave 10b1eb: c3 ret
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT;
10b1ec: 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 );
10b1f3: ff 75 e4 pushl -0x1c(%ebp) 10b1f6: 9d popf
(void) _Watchdog_Remove( &the_thread->Timer );
10b1f7: 83 ec 0c sub $0xc,%esp 10b1fa: 8d 43 48 lea 0x48(%ebx),%eax 10b1fd: 50 push %eax 10b1fe: e8 8d 32 00 00 call 10e490 <_Watchdog_Remove> 10b203: 58 pop %eax 10b204: 5a pop %edx 10b205: 68 f8 ff 03 10 push $0x1003fff8 10b20a: 53 push %ebx 10b20b: e8 a0 1e 00 00 call 10d0b0 <_Thread_Clear_state> 10b210: 83 c4 10 add $0x10,%esp 10b213: eb c3 jmp 10b1d8 <_Event_Surrender+0x94>
10b215: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* 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) ||
10b218: 8b 3d 0c 56 12 00 mov 0x12560c,%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() &&
10b21e: 83 ff 02 cmp $0x2,%edi
10b221: 74 0d je 10b230 <_Event_Surrender+0xec> <== ALWAYS TAKEN
_Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
10b223: 8b 3d 0c 56 12 00 mov 0x12560c,%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() &&
10b229: 4f dec %edi
10b22a: 0f 85 52 ff ff ff jne 10b182 <_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) ) {
10b230: 3b 45 e0 cmp -0x20(%ebp),%eax
10b233: 74 05 je 10b23a <_Event_Surrender+0xf6>
10b235: 83 e6 02 and $0x2,%esi
10b238: 74 22 je 10b25c <_Event_Surrender+0x118><== ALWAYS TAKEN
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
10b23a: 8b 45 e0 mov -0x20(%ebp),%eax 10b23d: f7 d0 not %eax 10b23f: 21 d0 and %edx,%eax 10b241: 89 01 mov %eax,(%ecx)
the_thread->Wait.count = 0;
10b243: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx)
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
10b24a: 8b 43 28 mov 0x28(%ebx),%eax 10b24d: 8b 55 e0 mov -0x20(%ebp),%edx 10b250: 89 10 mov %edx,(%eax)
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
10b252: c7 05 0c 56 12 00 03 movl $0x3,0x12560c
10b259: 00 00 00 } _ISR_Enable( level );
10b25c: ff 75 e4 pushl -0x1c(%ebp) 10b25f: 9d popf
return;
10b260: e9 73 ff ff ff jmp 10b1d8 <_Event_Surrender+0x94>
0010b268 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) {
10b268: 55 push %ebp 10b269: 89 e5 mov %esp,%ebp 10b26b: 83 ec 20 sub $0x20,%esp
Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location );
10b26e: 8d 45 f4 lea -0xc(%ebp),%eax 10b271: 50 push %eax 10b272: ff 75 08 pushl 0x8(%ebp) 10b275: e8 02 22 00 00 call 10d47c <_Thread_Get>
switch ( location ) {
10b27a: 83 c4 10 add $0x10,%esp 10b27d: 8b 55 f4 mov -0xc(%ebp),%edx 10b280: 85 d2 test %edx,%edx
10b282: 75 37 jne 10b2bb <_Event_Timeout+0x53> <== ALWAYS 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 );
10b284: 9c pushf 10b285: fa cli 10b286: 5a pop %edx
_ISR_Enable( level ); return; } #endif the_thread->Wait.count = 0;
10b287: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax)
if ( _Thread_Is_executing( the_thread ) ) {
10b28e: 3b 05 18 54 12 00 cmp 0x125418,%eax
10b294: 74 2a je 10b2c0 <_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;
10b296: c7 40 34 06 00 00 00 movl $0x6,0x34(%eax)
_ISR_Enable( level );
10b29d: 52 push %edx 10b29e: 9d popf 10b29f: 83 ec 08 sub $0x8,%esp 10b2a2: 68 f8 ff 03 10 push $0x1003fff8 10b2a7: 50 push %eax 10b2a8: e8 03 1e 00 00 call 10d0b0 <_Thread_Clear_state>
*/ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1;
10b2ad: a1 58 53 12 00 mov 0x125358,%eax 10b2b2: 48 dec %eax 10b2b3: a3 58 53 12 00 mov %eax,0x125358 10b2b8: 83 c4 10 add $0x10,%esp
case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } }
10b2bb: c9 leave 10b2bc: c3 ret
10b2bd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
} #endif the_thread->Wait.count = 0; if ( _Thread_Is_executing( the_thread ) ) { if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
10b2c0: 8b 0d 0c 56 12 00 mov 0x12560c,%ecx 10b2c6: 49 dec %ecx
10b2c7: 75 cd jne 10b296 <_Event_Timeout+0x2e> _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
10b2c9: c7 05 0c 56 12 00 02 movl $0x2,0x12560c
10b2d0: 00 00 00
10b2d3: eb c1 jmp 10b296 <_Event_Timeout+0x2e>
00110324 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) {
110324: 55 push %ebp 110325: 89 e5 mov %esp,%ebp 110327: 57 push %edi 110328: 56 push %esi 110329: 53 push %ebx 11032a: 83 ec 2c sub $0x2c,%esp 11032d: 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;
110330: 8b 45 08 mov 0x8(%ebp),%eax 110333: 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;
110336: 8b 50 10 mov 0x10(%eax),%edx 110339: 89 55 d4 mov %edx,-0x2c(%ebp)
uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) {
11033c: 89 f8 mov %edi,%eax 11033e: 83 c0 04 add $0x4,%eax 110341: 89 45 e0 mov %eax,-0x20(%ebp)
110344: 0f 82 5a 01 00 00 jb 1104a4 <_Heap_Allocate_aligned_with_boundary+0x180> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) {
11034a: 8b 75 14 mov 0x14(%ebp),%esi 11034d: 85 f6 test %esi,%esi
11034f: 0f 85 48 01 00 00 jne 11049d <_Heap_Allocate_aligned_with_boundary+0x179> if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) {
110355: 39 4d 08 cmp %ecx,0x8(%ebp)
110358: 0f 84 50 01 00 00 je 1104ae <_Heap_Allocate_aligned_with_boundary+0x18a>
11035e: 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;
110365: 8b 55 d4 mov -0x2c(%ebp),%edx 110368: 83 c2 07 add $0x7,%edx 11036b: 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;
11036e: c7 45 d8 04 00 00 00 movl $0x4,-0x28(%ebp) 110375: 29 7d d8 sub %edi,-0x28(%ebp) 110378: eb 19 jmp 110393 <_Heap_Allocate_aligned_with_boundary+0x6f>
11037a: 66 90 xchg %ax,%ax <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
11037c: 8d 59 08 lea 0x8(%ecx),%ebx
boundary ); } } if ( alloc_begin != 0 ) {
11037f: 85 db test %ebx,%ebx
110381: 0f 85 e9 00 00 00 jne 110470 <_Heap_Allocate_aligned_with_boundary+0x14c><== NEVER TAKEN
break; } block = block->next;
110387: 8b 49 08 mov 0x8(%ecx),%ecx
if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) {
11038a: 39 4d 08 cmp %ecx,0x8(%ebp)
11038d: 0f 84 25 01 00 00 je 1104b8 <_Heap_Allocate_aligned_with_boundary+0x194> _HAssert( _Heap_Is_prev_used( block ) ); /* Statistics */ ++search_count;
110393: 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 ) {
110396: 8b 59 04 mov 0x4(%ecx),%ebx 110399: 39 5d e0 cmp %ebx,-0x20(%ebp)
11039c: 73 e9 jae 110387 <_Heap_Allocate_aligned_with_boundary+0x63> if ( alignment == 0 ) {
11039e: 8b 55 10 mov 0x10(%ebp),%edx 1103a1: 85 d2 test %edx,%edx
1103a3: 74 d7 je 11037c <_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;
1103a5: 8b 45 08 mov 0x8(%ebp),%eax 1103a8: 8b 40 14 mov 0x14(%eax),%eax 1103ab: 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;
1103ae: 83 e3 fe and $0xfffffffe,%ebx 1103b1: 8d 1c 19 lea (%ecx,%ebx,1),%ebx 1103b4: 8d 51 08 lea 0x8(%ecx),%edx 1103b7: 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;
1103ba: 8b 75 c8 mov -0x38(%ebp),%esi 1103bd: 29 c6 sub %eax,%esi 1103bf: 01 de add %ebx,%esi
uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size;
1103c1: 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);
1103c4: 89 d8 mov %ebx,%eax 1103c6: 31 d2 xor %edx,%edx 1103c8: f7 75 10 divl 0x10(%ebp) 1103cb: 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 ) {
1103cd: 39 de cmp %ebx,%esi
1103cf: 73 0b jae 1103dc <_Heap_Allocate_aligned_with_boundary+0xb8>
1103d1: 89 f0 mov %esi,%eax 1103d3: 31 d2 xor %edx,%edx 1103d5: f7 75 10 divl 0x10(%ebp) 1103d8: 89 f3 mov %esi,%ebx 1103da: 29 d3 sub %edx,%ebx
} alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) {
1103dc: 8b 45 14 mov 0x14(%ebp),%eax 1103df: 85 c0 test %eax,%eax
1103e1: 74 59 je 11043c <_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;
1103e3: 8d 34 3b lea (%ebx,%edi,1),%esi 1103e6: 89 f0 mov %esi,%eax 1103e8: 31 d2 xor %edx,%edx 1103ea: f7 75 14 divl 0x14(%ebp) 1103ed: 89 f0 mov %esi,%eax 1103ef: 29 d0 sub %edx,%eax 1103f1: 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 ) {
1103f3: 39 c3 cmp %eax,%ebx
1103f5: 73 45 jae 11043c <_Heap_Allocate_aligned_with_boundary+0x118>
1103f7: 39 c6 cmp %eax,%esi
1103f9: 76 41 jbe 11043c <_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;
1103fb: 8b 45 cc mov -0x34(%ebp),%eax 1103fe: 01 f8 add %edi,%eax 110400: 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 ) {
110403: 39 d0 cmp %edx,%eax
110405: 77 80 ja 110387 <_Heap_Allocate_aligned_with_boundary+0x63>
110407: 89 ce mov %ecx,%esi 110409: eb 0e jmp 110419 <_Heap_Allocate_aligned_with_boundary+0xf5>
11040b: 90 nop <== NOT EXECUTED
/* 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 ) {
11040c: 39 c1 cmp %eax,%ecx
11040e: 76 2a jbe 11043a <_Heap_Allocate_aligned_with_boundary+0x116> if ( boundary_line < boundary_floor ) {
110410: 39 55 dc cmp %edx,-0x24(%ebp)
110413: 0f 87 a3 00 00 00 ja 1104bc <_Heap_Allocate_aligned_with_boundary+0x198><== ALWAYS TAKEN
return 0; } alloc_begin = boundary_line - alloc_size;
110419: 89 d3 mov %edx,%ebx 11041b: 29 fb sub %edi,%ebx 11041d: 89 d8 mov %ebx,%eax 11041f: 31 d2 xor %edx,%edx 110421: f7 75 10 divl 0x10(%ebp) 110424: 29 d3 sub %edx,%ebx
alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size;
110426: 8d 0c 3b lea (%ebx,%edi,1),%ecx 110429: 89 c8 mov %ecx,%eax 11042b: 31 d2 xor %edx,%edx 11042d: f7 75 14 divl 0x14(%ebp) 110430: 89 c8 mov %ecx,%eax 110432: 29 d0 sub %edx,%eax 110434: 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 ) {
110436: 39 c3 cmp %eax,%ebx
110438: 72 d2 jb 11040c <_Heap_Allocate_aligned_with_boundary+0xe8>
11043a: 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 ) {
11043c: 39 5d cc cmp %ebx,-0x34(%ebp)
11043f: 0f 87 42 ff ff ff ja 110387 <_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;
110445: be f8 ff ff ff mov $0xfffffff8,%esi 11044a: 29 ce sub %ecx,%esi 11044c: 01 de add %ebx,%esi 11044e: 89 d8 mov %ebx,%eax 110450: 31 d2 xor %edx,%edx 110452: f7 75 d4 divl -0x2c(%ebp) 110455: 29 d6 sub %edx,%esi
if ( free_size >= min_block_size || free_size == 0 ) {
110457: 39 75 d0 cmp %esi,-0x30(%ebp)
11045a: 0f 86 1f ff ff ff jbe 11037f <_Heap_Allocate_aligned_with_boundary+0x5b>
110460: 85 f6 test %esi,%esi
110462: 0f 85 1f ff ff ff jne 110387 <_Heap_Allocate_aligned_with_boundary+0x63> boundary ); } } if ( alloc_begin != 0 ) {
110468: 85 db test %ebx,%ebx
11046a: 0f 84 17 ff ff ff je 110387 <_Heap_Allocate_aligned_with_boundary+0x63><== ALWAYS TAKEN
block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count;
110470: 8b 55 e4 mov -0x1c(%ebp),%edx 110473: 8b 45 08 mov 0x8(%ebp),%eax 110476: 01 50 4c add %edx,0x4c(%eax)
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
110479: 57 push %edi 11047a: 53 push %ebx 11047b: 51 push %ecx 11047c: 50 push %eax 11047d: e8 56 c1 ff ff call 10c5d8 <_Heap_Block_allocate> 110482: 89 d8 mov %ebx,%eax 110484: 83 c4 10 add $0x10,%esp
uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats;
110487: 8b 4d e4 mov -0x1c(%ebp),%ecx 11048a: 8b 55 08 mov 0x8(%ebp),%edx 11048d: 39 4a 44 cmp %ecx,0x44(%edx)
110490: 73 14 jae 1104a6 <_Heap_Allocate_aligned_with_boundary+0x182> ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count;
110492: 89 4a 44 mov %ecx,0x44(%edx)
} return (void *) alloc_begin; }
110495: 8d 65 f4 lea -0xc(%ebp),%esp 110498: 5b pop %ebx 110499: 5e pop %esi 11049a: 5f pop %edi 11049b: c9 leave 11049c: c3 ret
/* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) {
11049d: 3b 7d 14 cmp 0x14(%ebp),%edi
1104a0: 76 21 jbe 1104c3 <_Heap_Allocate_aligned_with_boundary+0x19f>
1104a2: 66 90 xchg %ax,%ax
); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count;
1104a4: 31 c0 xor %eax,%eax
} return (void *) alloc_begin; }
1104a6: 8d 65 f4 lea -0xc(%ebp),%esp 1104a9: 5b pop %ebx 1104aa: 5e pop %esi 1104ab: 5f pop %edi 1104ac: c9 leave 1104ad: c3 ret
if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) {
1104ae: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 1104b5: 8d 76 00 lea 0x0(%esi),%esi 1104b8: 31 c0 xor %eax,%eax 1104ba: eb cb jmp 110487 <_Heap_Allocate_aligned_with_boundary+0x163>
1104bc: 89 f1 mov %esi,%ecx <== NOT EXECUTED 1104be: e9 c4 fe ff ff jmp 110387 <_Heap_Allocate_aligned_with_boundary+0x63><== NOT EXECUTED
if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) {
1104c3: 8b 5d 10 mov 0x10(%ebp),%ebx 1104c6: 85 db test %ebx,%ebx
1104c8: 0f 85 87 fe ff ff jne 110355 <_Heap_Allocate_aligned_with_boundary+0x31>
1104ce: 89 55 10 mov %edx,0x10(%ebp) 1104d1: e9 7f fe ff ff jmp 110355 <_Heap_Allocate_aligned_with_boundary+0x31>
0010c5d8 <_Heap_Block_allocate>: Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) {
10c5d8: 55 push %ebp 10c5d9: 89 e5 mov %esp,%ebp 10c5db: 57 push %edi 10c5dc: 56 push %esi 10c5dd: 53 push %ebx 10c5de: 83 ec 10 sub $0x10,%esp 10c5e1: 8b 75 08 mov 0x8(%ebp),%esi 10c5e4: 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;
10c5e7: 89 5d ec mov %ebx,-0x14(%ebp) 10c5ea: 8b 7d 10 mov 0x10(%ebp),%edi 10c5ed: 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;
10c5f0: 89 f8 mov %edi,%eax 10c5f2: 29 d8 sub %ebx,%eax
Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) {
10c5f4: 8b 53 04 mov 0x4(%ebx),%edx 10c5f7: 83 e2 fe and $0xfffffffe,%edx 10c5fa: f6 44 13 04 01 testb $0x1,0x4(%ebx,%edx,1)
10c5ff: 0f 85 8b 00 00 00 jne 10c690 <_Heap_Block_allocate+0xb8> free_list_anchor = block->prev;
10c605: 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;
10c608: 8b 53 08 mov 0x8(%ebx),%edx
Heap_Block *prev = block->prev; prev->next = next;
10c60b: 89 51 08 mov %edx,0x8(%ecx)
next->prev = prev;
10c60e: 89 4a 0c mov %ecx,0xc(%edx)
_Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks;
10c611: ff 4e 38 decl 0x38(%esi)
++stats->used_blocks;
10c614: ff 46 40 incl 0x40(%esi)
stats->free_size -= _Heap_Block_size( block );
10c617: 8b 53 04 mov 0x4(%ebx),%edx 10c61a: 83 e2 fe and $0xfffffffe,%edx 10c61d: 29 56 30 sub %edx,0x30(%esi)
} else { free_list_anchor = _Heap_Free_list_head( heap ); } if ( alloc_area_offset < heap->page_size ) {
10c620: 8b 56 10 mov 0x10(%esi),%edx 10c623: 89 55 e4 mov %edx,-0x1c(%ebp) 10c626: 39 d0 cmp %edx,%eax
10c628: 72 72 jb 10c69c <_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;
10c62a: 8b 43 04 mov 0x4(%ebx),%eax 10c62d: 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 )
10c630: 8b 45 10 mov 0x10(%ebp),%eax 10c633: 31 d2 xor %edx,%edx 10c635: f7 75 e4 divl -0x1c(%ebp) 10c638: 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;
10c63a: 89 f8 mov %edi,%eax 10c63c: 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;
10c63e: 01 46 30 add %eax,0x30(%esi)
if ( _Heap_Is_prev_used( block ) ) {
10c641: f6 43 04 01 testb $0x1,0x4(%ebx)
10c645: 75 69 jne 10c6b0 <_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);
10c647: 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;
10c649: 8b 53 04 mov 0x4(%ebx),%edx 10c64c: 83 e2 fe and $0xfffffffe,%edx 10c64f: 01 d0 add %edx,%eax
} block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
10c651: 89 c2 mov %eax,%edx 10c653: 83 ca 01 or $0x1,%edx 10c656: 89 53 04 mov %edx,0x4(%ebx)
new_block->prev_size = block_size;
10c659: 89 07 mov %eax,(%edi)
new_block->size_and_flag = new_block_size;
10c65b: 8b 45 f0 mov -0x10(%ebp),%eax 10c65e: 83 e0 fe and $0xfffffffe,%eax 10c661: 03 45 ec add -0x14(%ebp),%eax 10c664: 29 f8 sub %edi,%eax 10c666: 89 47 04 mov %eax,0x4(%edi)
_Heap_Block_split( heap, new_block, free_list_anchor, alloc_size );
10c669: ff 75 14 pushl 0x14(%ebp) 10c66c: 51 push %ecx 10c66d: 57 push %edi 10c66e: 56 push %esi 10c66f: e8 80 fe ff ff call 10c4f4 <_Heap_Block_split> 10c674: 89 fb mov %edi,%ebx 10c676: 83 c4 10 add $0x10,%esp
alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) {
10c679: 8b 46 30 mov 0x30(%esi),%eax
Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { Heap_Statistics *const stats = &heap->stats;
10c67c: 39 46 34 cmp %eax,0x34(%esi)
10c67f: 76 03 jbe 10c684 <_Heap_Block_allocate+0xac> ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { stats->min_free_size = stats->free_size;
10c681: 89 46 34 mov %eax,0x34(%esi)
} return block; }
10c684: 89 d8 mov %ebx,%eax 10c686: 8d 65 f4 lea -0xc(%ebp),%esp 10c689: 5b pop %ebx 10c68a: 5e pop %esi 10c68b: 5f pop %edi 10c68c: c9 leave 10c68d: c3 ret
10c68e: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* Statistics */ --stats->free_blocks; ++stats->used_blocks; stats->free_size -= _Heap_Block_size( block ); } else { free_list_anchor = _Heap_Free_list_head( heap );
10c690: 89 f1 mov %esi,%ecx
} if ( alloc_area_offset < heap->page_size ) {
10c692: 8b 56 10 mov 0x10(%esi),%edx 10c695: 89 55 e4 mov %edx,-0x1c(%ebp) 10c698: 39 d0 cmp %edx,%eax
10c69a: 73 8e jae 10c62a <_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 );
10c69c: 03 45 14 add 0x14(%ebp),%eax 10c69f: 50 push %eax 10c6a0: 51 push %ecx 10c6a1: 53 push %ebx 10c6a2: 56 push %esi 10c6a3: e8 4c fe ff ff call 10c4f4 <_Heap_Block_split> 10c6a8: 83 c4 10 add $0x10,%esp 10c6ab: eb cc jmp 10c679 <_Heap_Block_allocate+0xa1>
10c6ad: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next;
10c6b0: 8b 51 08 mov 0x8(%ecx),%edx
new_block->next = next;
10c6b3: 89 53 08 mov %edx,0x8(%ebx)
new_block->prev = block_before;
10c6b6: 89 4b 0c mov %ecx,0xc(%ebx)
block_before->next = new_block;
10c6b9: 89 59 08 mov %ebx,0x8(%ecx)
next->prev = new_block;
10c6bc: 89 5a 0c mov %ebx,0xc(%edx)
_Heap_Free_list_insert_after( free_list_anchor, block ); free_list_anchor = block; /* Statistics */ ++stats->free_blocks;
10c6bf: ff 46 38 incl 0x38(%esi) 10c6c2: 89 d9 mov %ebx,%ecx 10c6c4: eb 8b jmp 10c651 <_Heap_Block_allocate+0x79>
0010c4f4 <_Heap_Block_split>: Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) {
10c4f4: 55 push %ebp 10c4f5: 89 e5 mov %esp,%ebp 10c4f7: 57 push %edi 10c4f8: 56 push %esi 10c4f9: 53 push %ebx 10c4fa: 83 ec 14 sub $0x14,%esp 10c4fd: 8b 4d 08 mov 0x8(%ebp),%ecx 10c500: 8b 5d 0c mov 0xc(%ebp),%ebx
Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size;
10c503: 8b 79 10 mov 0x10(%ecx),%edi
uintptr_t const min_block_size = heap->min_block_size;
10c506: 8b 41 14 mov 0x14(%ecx),%eax 10c509: 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;
10c50c: 8b 43 04 mov 0x4(%ebx),%eax 10c50f: 89 45 e4 mov %eax,-0x1c(%ebp) 10c512: 89 c6 mov %eax,%esi 10c514: 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;
10c517: 8b 55 e8 mov -0x18(%ebp),%edx 10c51a: 83 ea 08 sub $0x8,%edx 10c51d: 8b 45 14 mov 0x14(%ebp),%eax 10c520: 39 d0 cmp %edx,%eax
10c522: 73 02 jae 10c526 <_Heap_Block_split+0x32>
10c524: 89 d0 mov %edx,%eax 10c526: 83 c0 08 add $0x8,%eax 10c529: 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;
10c52c: 31 d2 xor %edx,%edx 10c52e: f7 f7 div %edi
if ( remainder != 0 ) {
10c530: 85 d2 test %edx,%edx
10c532: 75 70 jne 10c5a4 <_Heap_Block_split+0xb0>
10c534: 8b 7d f0 mov -0x10(%ebp),%edi 10c537: 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);
10c53a: 8d 04 33 lea (%ebx,%esi,1),%eax 10c53d: 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 ) {
10c540: 8d 56 04 lea 0x4(%esi),%edx 10c543: 2b 55 f0 sub -0x10(%ebp),%edx 10c546: 8b 7d e8 mov -0x18(%ebp),%edi 10c549: 83 c7 04 add $0x4,%edi 10c54c: 39 fa cmp %edi,%edx
10c54e: 72 60 jb 10c5b0 <_Heap_Block_split+0xbc>
10c550: 8b 55 ec mov -0x14(%ebp),%edx 10c553: 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;
10c555: 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;
10c558: 8b 7d e4 mov -0x1c(%ebp),%edi 10c55b: 83 e7 01 and $0x1,%edi 10c55e: 0b 7d ec or -0x14(%ebp),%edi 10c561: 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;
10c564: 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;
10c567: 8b 58 04 mov 0x4(%eax),%ebx 10c56a: 83 e3 fe and $0xfffffffe,%ebx
if ( _Heap_Is_used( next_block ) ) {
10c56d: f6 44 18 04 01 testb $0x1,0x4(%eax,%ebx,1)
10c572: 75 4c jne 10c5c0 <_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;
10c574: 8b 48 08 mov 0x8(%eax),%ecx
Heap_Block *prev = old_block->prev;
10c577: 8b 40 0c mov 0xc(%eax),%eax
new_block->next = next;
10c57a: 89 4a 08 mov %ecx,0x8(%edx)
new_block->prev = prev;
10c57d: 89 42 0c mov %eax,0xc(%edx)
next->prev = new_block;
10c580: 89 51 0c mov %edx,0xc(%ecx)
prev->next = new_block;
10c583: 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;
10c586: 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);
10c588: 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;
10c58b: 89 f1 mov %esi,%ecx 10c58d: 83 c9 01 or $0x1,%ecx 10c590: 89 4a 04 mov %ecx,0x4(%edx)
next_block->prev_size = free_block_size;
10c593: 89 30 mov %esi,(%eax)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
10c595: 83 60 04 fe andl $0xfffffffe,0x4(%eax)
} else { next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; } }
10c599: 83 c4 14 add $0x14,%esp 10c59c: 5b pop %ebx 10c59d: 5e pop %esi 10c59e: 5f pop %edi 10c59f: c9 leave 10c5a0: c3 ret
10c5a1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { return value - remainder + alignment;
10c5a4: 03 7d f0 add -0x10(%ebp),%edi 10c5a7: 29 d7 sub %edx,%edi 10c5a9: 89 7d ec mov %edi,-0x14(%ebp) 10c5ac: eb 8c jmp 10c53a <_Heap_Block_split+0x46>
10c5ae: 66 90 xchg %ax,%ax <== NOT EXECUTED
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;
10c5b0: 8b 45 e0 mov -0x20(%ebp),%eax 10c5b3: 83 48 04 01 orl $0x1,0x4(%eax)
} }
10c5b7: 83 c4 14 add $0x14,%esp 10c5ba: 5b pop %ebx 10c5bb: 5e pop %esi 10c5bc: 5f pop %edi 10c5bd: c9 leave 10c5be: c3 ret
10c5bf: 90 nop <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next;
10c5c0: 8b 7d 10 mov 0x10(%ebp),%edi 10c5c3: 8b 5f 08 mov 0x8(%edi),%ebx
new_block->next = next;
10c5c6: 89 5a 08 mov %ebx,0x8(%edx)
new_block->prev = block_before;
10c5c9: 89 7a 0c mov %edi,0xc(%edx)
block_before->next = new_block;
10c5cc: 89 57 08 mov %edx,0x8(%edi)
next->prev = new_block;
10c5cf: 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;
10c5d2: ff 41 38 incl 0x38(%ecx) 10c5d5: eb b4 jmp 10c58b <_Heap_Block_split+0x97>
00113c84 <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) {
113c84: 55 push %ebp 113c85: 89 e5 mov %esp,%ebp 113c87: 56 push %esi 113c88: 53 push %ebx 113c89: 8b 4d 08 mov 0x8(%ebp),%ecx 113c8c: 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;
113c8f: 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;
113c92: 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;
113c95: 3b 41 18 cmp 0x18(%ecx),%eax
113c98: 73 3a jae 113cd4 <_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 ) {
113c9a: 39 d0 cmp %edx,%eax
113c9c: 74 0e je 113cac <_Heap_Extend+0x28>
113c9e: b8 02 00 00 00 mov $0x2,%eax
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; }
113ca3: 8d 65 f8 lea -0x8(%ebp),%esp 113ca6: 5b pop %ebx 113ca7: 5e pop %esi 113ca8: c9 leave 113ca9: c3 ret
113caa: 66 90 xchg %ax,%ax <== NOT EXECUTED
{ 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;
113cac: 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;
113caf: 89 41 1c mov %eax,0x1c(%ecx)
extend_size = new_heap_area_end
113cb2: 29 d8 sub %ebx,%eax 113cb4: 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);
113cb7: 89 f0 mov %esi,%eax 113cb9: 31 d2 xor %edx,%edx 113cbb: f7 71 10 divl 0x10(%ecx) 113cbe: 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;
113cc0: 8b 45 14 mov 0x14(%ebp),%eax 113cc3: 89 30 mov %esi,(%eax)
if( extend_size >= heap->min_block_size ) {
113cc5: 39 71 14 cmp %esi,0x14(%ecx)
113cc8: 76 1a jbe 113ce4 <_Heap_Extend+0x60> <== NEVER TAKEN
113cca: 31 c0 xor %eax,%eax <== NOT EXECUTED
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; }
113ccc: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 113ccf: 5b pop %ebx <== NOT EXECUTED 113cd0: 5e pop %esi <== NOT EXECUTED 113cd1: c9 leave <== NOT EXECUTED 113cd2: c3 ret <== NOT EXECUTED 113cd3: 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 ) {
113cd4: 39 d0 cmp %edx,%eax
113cd6: 73 c2 jae 113c9a <_Heap_Extend+0x16>
113cd8: b8 01 00 00 00 mov $0x1,%eax
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; }
113cdd: 8d 65 f8 lea -0x8(%ebp),%esp 113ce0: 5b pop %ebx 113ce1: 5e pop %esi 113ce2: c9 leave 113ce3: c3 ret
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset);
113ce4: 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;
113ce7: 8b 43 04 mov 0x4(%ebx),%eax 113cea: 83 e0 01 and $0x1,%eax 113ced: 09 f0 or %esi,%eax 113cef: 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 =
113cf2: 8b 41 20 mov 0x20(%ecx),%eax 113cf5: 29 d0 sub %edx,%eax 113cf7: 83 c8 01 or $0x1,%eax 113cfa: 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;
113cfd: 89 51 24 mov %edx,0x24(%ecx)
/* Statistics */ stats->size += extend_size;
113d00: 01 71 2c add %esi,0x2c(%ecx)
++stats->used_blocks;
113d03: ff 41 40 incl 0x40(%ecx)
--stats->frees; /* Do not count subsequent call as actual free() */
113d06: ff 49 50 decl 0x50(%ecx)
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
113d09: 83 ec 08 sub $0x8,%esp 113d0c: 83 c3 08 add $0x8,%ebx 113d0f: 53 push %ebx 113d10: 51 push %ecx 113d11: e8 fe b6 ff ff call 10f414 <_Heap_Free> 113d16: 31 c0 xor %eax,%eax 113d18: 83 c4 10 add $0x10,%esp
} return HEAP_EXTEND_SUCCESSFUL; }
113d1b: 8d 65 f8 lea -0x8(%ebp),%esp 113d1e: 5b pop %ebx 113d1f: 5e pop %esi 113d20: c9 leave 113d21: c3 ret
001104d8 <_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 ) {
1104d8: 55 push %ebp 1104d9: 89 e5 mov %esp,%ebp 1104db: 57 push %edi 1104dc: 56 push %esi 1104dd: 53 push %ebx 1104de: 83 ec 18 sub $0x18,%esp 1104e1: 8b 5d 08 mov 0x8(%ebp),%ebx 1104e4: 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 )
1104e7: 8d 48 f8 lea -0x8(%eax),%ecx 1104ea: 31 d2 xor %edx,%edx 1104ec: f7 73 10 divl 0x10(%ebx) 1104ef: 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;
1104f1: 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
1104f4: 39 c1 cmp %eax,%ecx
1104f6: 72 07 jb 1104ff <_Heap_Free+0x27> && (uintptr_t) block <= (uintptr_t) heap->last_block;
1104f8: 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
1104fb: 39 f1 cmp %esi,%ecx
1104fd: 76 0d jbe 11050c <_Heap_Free+0x34> /* Statistics */ --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true );
1104ff: 31 c0 xor %eax,%eax
}
110501: 83 c4 18 add $0x18,%esp 110504: 5b pop %ebx 110505: 5e pop %esi 110506: 5f pop %edi 110507: c9 leave 110508: c3 ret
110509: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
- 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;
11050c: 8b 51 04 mov 0x4(%ecx),%edx 11050f: 89 55 f0 mov %edx,-0x10(%ebp) 110512: 83 e2 fe and $0xfffffffe,%edx 110515: 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);
110518: 01 ca add %ecx,%edx 11051a: 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
11051d: 39 d0 cmp %edx,%eax
11051f: 77 de ja 1104ff <_Heap_Free+0x27> <== ALWAYS TAKEN
110521: 39 d6 cmp %edx,%esi
110523: 72 da jb 1104ff <_Heap_Free+0x27> <== ALWAYS 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;
110525: 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 ) ) {
110528: f7 c7 01 00 00 00 test $0x1,%edi
11052e: 74 cf je 1104ff <_Heap_Free+0x27> <== ALWAYS 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;
110530: 83 e7 fe and $0xfffffffe,%edi 110533: 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
110536: 39 d6 cmp %edx,%esi
110538: 0f 84 e2 00 00 00 je 110620 <_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 )
11053e: 8b 55 dc mov -0x24(%ebp),%edx 110541: 8b 7d e8 mov -0x18(%ebp),%edi 110544: 8b 7c 3a 04 mov 0x4(%edx,%edi,1),%edi 110548: 89 7d e0 mov %edi,-0x20(%ebp) 11054b: 8a 55 e0 mov -0x20(%ebp),%dl 11054e: 83 e2 01 and $0x1,%edx 110551: 88 55 e7 mov %dl,-0x19(%ebp) 110554: 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 ) ) {
110558: f6 45 f0 01 testb $0x1,-0x10(%ebp)
11055c: 75 46 jne 1105a4 <_Heap_Free+0xcc> uintptr_t const prev_size = block->prev_size;
11055e: 8b 39 mov (%ecx),%edi 110560: 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);
110563: 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
110565: 39 c8 cmp %ecx,%eax
110567: 77 96 ja 1104ff <_Heap_Free+0x27> <== ALWAYS TAKEN
110569: 39 ce cmp %ecx,%esi
11056b: 72 92 jb 1104ff <_Heap_Free+0x27> <== ALWAYS 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) ) {
11056d: f6 41 04 01 testb $0x1,0x4(%ecx)
110571: 74 8c je 1104ff <_Heap_Free+0x27> <== ALWAYS TAKEN
_HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */
110573: 80 7d e7 00 cmpb $0x0,-0x19(%ebp)
110577: 0f 84 af 00 00 00 je 11062c <_Heap_Free+0x154> uintptr_t const size = block_size + prev_size + next_block_size;
11057d: 8b 45 ec mov -0x14(%ebp),%eax 110580: 03 45 e8 add -0x18(%ebp),%eax 110583: 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;
110585: 8b 55 dc mov -0x24(%ebp),%edx 110588: 8b 72 08 mov 0x8(%edx),%esi
Heap_Block *prev = block->prev;
11058b: 8b 52 0c mov 0xc(%edx),%edx
prev->next = next;
11058e: 89 72 08 mov %esi,0x8(%edx)
next->prev = prev;
110591: 89 56 0c mov %edx,0xc(%esi)
_Heap_Free_list_remove( next_block ); stats->free_blocks -= 1;
110594: ff 4b 38 decl 0x38(%ebx)
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
110597: 89 c2 mov %eax,%edx 110599: 83 ca 01 or $0x1,%edx 11059c: 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;
11059f: 89 04 01 mov %eax,(%ecx,%eax,1) 1105a2: eb 2c jmp 1105d0 <_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 */
1105a4: 80 7d e7 00 cmpb $0x0,-0x19(%ebp)
1105a8: 74 3e je 1105e8 <_Heap_Free+0x110> uintptr_t const size = block_size + next_block_size;
1105aa: 8b 7d e8 mov -0x18(%ebp),%edi 1105ad: 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;
1105b0: 8b 75 dc mov -0x24(%ebp),%esi 1105b3: 8b 46 08 mov 0x8(%esi),%eax
Heap_Block *prev = old_block->prev;
1105b6: 8b 56 0c mov 0xc(%esi),%edx
new_block->next = next;
1105b9: 89 41 08 mov %eax,0x8(%ecx)
new_block->prev = prev;
1105bc: 89 51 0c mov %edx,0xc(%ecx)
next->prev = new_block;
1105bf: 89 48 0c mov %ecx,0xc(%eax)
prev->next = new_block;
1105c2: 89 4a 08 mov %ecx,0x8(%edx)
_Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
1105c5: 89 f8 mov %edi,%eax 1105c7: 83 c8 01 or $0x1,%eax 1105ca: 89 41 04 mov %eax,0x4(%ecx)
next_block = _Heap_Block_at( block, size ); next_block->prev_size = size;
1105cd: 89 3c 39 mov %edi,(%ecx,%edi,1)
stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks;
1105d0: ff 4b 40 decl 0x40(%ebx)
++stats->frees;
1105d3: ff 43 50 incl 0x50(%ebx)
stats->free_size += block_size;
1105d6: 8b 55 ec mov -0x14(%ebp),%edx 1105d9: 01 53 30 add %edx,0x30(%ebx) 1105dc: b0 01 mov $0x1,%al
return( true ); }
1105de: 83 c4 18 add $0x18,%esp 1105e1: 5b pop %ebx 1105e2: 5e pop %esi 1105e3: 5f pop %edi 1105e4: c9 leave 1105e5: c3 ret
1105e6: 66 90 xchg %ax,%ax <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after( Heap_Block *block_before, Heap_Block *new_block ) { Heap_Block *next = block_before->next;
1105e8: 8b 43 08 mov 0x8(%ebx),%eax
new_block->next = next;
1105eb: 89 41 08 mov %eax,0x8(%ecx)
new_block->prev = block_before;
1105ee: 89 59 0c mov %ebx,0xc(%ecx)
block_before->next = new_block;
1105f1: 89 4b 08 mov %ecx,0x8(%ebx)
next->prev = new_block;
1105f4: 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;
1105f7: 8b 45 ec mov -0x14(%ebp),%eax 1105fa: 83 c8 01 or $0x1,%eax 1105fd: 89 41 04 mov %eax,0x4(%ecx)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
110600: 8b 7d dc mov -0x24(%ebp),%edi 110603: 83 67 04 fe andl $0xfffffffe,0x4(%edi)
next_block->prev_size = block_size;
110607: 8b 45 ec mov -0x14(%ebp),%eax 11060a: 89 07 mov %eax,(%edi)
/* Statistics */ ++stats->free_blocks;
11060c: 8b 43 38 mov 0x38(%ebx),%eax 11060f: 40 inc %eax 110610: 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;
110613: 3b 43 3c cmp 0x3c(%ebx),%eax
110616: 76 b8 jbe 1105d0 <_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;
110618: 89 43 3c mov %eax,0x3c(%ebx) 11061b: eb b3 jmp 1105d0 <_Heap_Free+0xf8>
11061d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_HAssert( false ); return false; } next_block_size = _Heap_Block_size( next_block ); next_is_free = next_block != heap->last_block
110620: c6 45 e7 00 movb $0x0,-0x19(%ebp) 110624: e9 2f ff ff ff jmp 110558 <_Heap_Free+0x80>
110629: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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;
11062c: 8b 45 ec mov -0x14(%ebp),%eax 11062f: 03 45 f0 add -0x10(%ebp),%eax
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
110632: 89 c6 mov %eax,%esi 110634: 83 ce 01 or $0x1,%esi 110637: 89 71 04 mov %esi,0x4(%ecx)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
11063a: 8b 55 dc mov -0x24(%ebp),%edx 11063d: 83 62 04 fe andl $0xfffffffe,0x4(%edx)
next_block->prev_size = size;
110641: 89 02 mov %eax,(%edx) 110643: eb 8b jmp 1105d0 <_Heap_Free+0xf8>
0012e2d4 <_Heap_Get_free_information>: void _Heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) {
12e2d4: 55 push %ebp 12e2d5: 89 e5 mov %esp,%ebp 12e2d7: 57 push %edi 12e2d8: 56 push %esi 12e2d9: 53 push %ebx 12e2da: 8b 7d 08 mov 0x8(%ebp),%edi 12e2dd: 8b 75 0c mov 0xc(%ebp),%esi
Heap_Block *the_block; Heap_Block *const tail = _Heap_Free_list_tail(the_heap); info->number = 0;
12e2e0: c7 06 00 00 00 00 movl $0x0,(%esi)
info->largest = 0;
12e2e6: c7 46 04 00 00 00 00 movl $0x0,0x4(%esi)
info->total = 0;
12e2ed: 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;
12e2f4: 8b 57 08 mov 0x8(%edi),%edx
for(the_block = _Heap_Free_list_first(the_heap);
12e2f7: 39 d7 cmp %edx,%edi
12e2f9: 74 2a je 12e325 <_Heap_Get_free_information+0x51><== ALWAYS TAKEN
12e2fb: bb 01 00 00 00 mov $0x1,%ebx 12e300: 31 c9 xor %ecx,%ecx 12e302: eb 02 jmp 12e306 <_Heap_Get_free_information+0x32> 12e304: 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;
12e306: 8b 42 04 mov 0x4(%edx),%eax 12e309: 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;
12e30c: 01 c1 add %eax,%ecx
if ( info->largest < the_size )
12e30e: 39 46 04 cmp %eax,0x4(%esi)
12e311: 73 03 jae 12e316 <_Heap_Get_free_information+0x42> info->largest = the_size;
12e313: 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)
12e316: 8b 52 08 mov 0x8(%edx),%edx 12e319: 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);
12e31c: 39 d7 cmp %edx,%edi
12e31e: 75 e4 jne 12e304 <_Heap_Get_free_information+0x30>
12e320: 89 1e mov %ebx,(%esi) 12e322: 89 4e 08 mov %ecx,0x8(%esi)
info->number++; info->total += the_size; if ( info->largest < the_size ) info->largest = the_size; } }
12e325: 5b pop %ebx 12e326: 5e pop %esi 12e327: 5f pop %edi 12e328: c9 leave 12e329: c3 ret
0013cbec <_Heap_Get_information>: void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) {
13cbec: 55 push %ebp 13cbed: 89 e5 mov %esp,%ebp 13cbef: 57 push %edi 13cbf0: 56 push %esi 13cbf1: 53 push %ebx 13cbf2: 83 ec 04 sub $0x4,%esp 13cbf5: 8b 45 08 mov 0x8(%ebp),%eax 13cbf8: 8b 75 0c mov 0xc(%ebp),%esi
Heap_Block *the_block = the_heap->first_block;
13cbfb: 8b 58 20 mov 0x20(%eax),%ebx
Heap_Block *const end = the_heap->last_block;
13cbfe: 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;
13cc01: c7 06 00 00 00 00 movl $0x0,(%esi)
the_info->Free.total = 0;
13cc07: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi)
the_info->Free.largest = 0;
13cc0e: c7 46 04 00 00 00 00 movl $0x0,0x4(%esi)
the_info->Used.number = 0;
13cc15: c7 46 0c 00 00 00 00 movl $0x0,0xc(%esi)
the_info->Used.total = 0;
13cc1c: c7 46 14 00 00 00 00 movl $0x0,0x14(%esi)
the_info->Used.largest = 0;
13cc23: c7 46 10 00 00 00 00 movl $0x0,0x10(%esi)
while ( the_block != end ) {
13cc2a: 39 fb cmp %edi,%ebx
13cc2c: 74 45 je 13cc73 <_Heap_Get_information+0x87><== ALWAYS TAKEN
13cc2e: 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;
13cc31: 8d 46 0c lea 0xc(%esi),%eax 13cc34: 89 45 f0 mov %eax,-0x10(%ebp) 13cc37: eb 16 jmp 13cc4f <_Heap_Get_information+0x63>
13cc39: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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) )
13cc3c: 89 f0 mov %esi,%eax
info = &the_info->Used; else info = &the_info->Free; info->number++;
13cc3e: ff 00 incl (%eax)
info->total += the_size;
13cc40: 01 50 08 add %edx,0x8(%eax)
if ( info->largest < the_size )
13cc43: 39 50 04 cmp %edx,0x4(%eax)
13cc46: 73 03 jae 13cc4b <_Heap_Get_information+0x5f> info->largest = the_size;
13cc48: 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 ) {
13cc4b: 39 df cmp %ebx,%edi
13cc4d: 74 15 je 13cc64 <_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;
13cc4f: 89 ca mov %ecx,%edx 13cc51: 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);
13cc54: 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;
13cc56: 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) )
13cc59: f6 c1 01 test $0x1,%cl
13cc5c: 74 de je 13cc3c <_Heap_Get_information+0x50>
13cc5e: 8b 45 f0 mov -0x10(%ebp),%eax 13cc61: eb db jmp 13cc3e <_Heap_Get_information+0x52>
13cc63: 90 nop <== NOT EXECUTED
the_info->Free.largest = 0; the_info->Used.number = 0; the_info->Used.total = 0; the_info->Used.largest = 0; while ( the_block != end ) {
13cc64: 8b 46 14 mov 0x14(%esi),%eax 13cc67: 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;
13cc6a: 89 46 14 mov %eax,0x14(%esi)
}
13cc6d: 58 pop %eax 13cc6e: 5b pop %ebx 13cc6f: 5e pop %esi 13cc70: 5f pop %edi 13cc71: c9 leave 13cc72: 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 ) {
13cc73: b8 08 00 00 00 mov $0x8,%eax <== NOT EXECUTED 13cc78: eb f0 jmp 13cc6a <_Heap_Get_information+0x7e><== NOT EXECUTED
0010c3a4 <_Heap_Initialize>: Heap_Control *heap, void *heap_area_begin_ptr, uintptr_t heap_area_size, uintptr_t page_size ) {
10c3a4: 55 push %ebp 10c3a5: 89 e5 mov %esp,%ebp 10c3a7: 57 push %edi 10c3a8: 56 push %esi 10c3a9: 53 push %ebx 10c3aa: 83 ec 10 sub $0x10,%esp 10c3ad: 8b 5d 08 mov 0x8(%ebp),%ebx 10c3b0: 8b 4d 14 mov 0x14(%ebp),%ecx
uintptr_t min_block_size = 0; uintptr_t overhead = 0; Heap_Block *first_block = NULL; Heap_Block *last_block = NULL; if ( page_size == 0 ) {
10c3b3: 85 c9 test %ecx,%ecx
10c3b5: 0f 85 f5 00 00 00 jne 10c4b0 <_Heap_Initialize+0x10c>
10c3bb: b1 04 mov $0x4,%cl 10c3bd: c7 45 f0 10 00 00 00 movl $0x10,-0x10(%ebp)
) { Heap_Statistics *const stats = &heap->stats; uintptr_t const heap_area_begin = (uintptr_t) heap_area_begin_ptr; uintptr_t const heap_area_end = heap_area_begin + heap_area_size; uintptr_t alloc_area_begin = heap_area_begin + HEAP_BLOCK_HEADER_SIZE;
10c3c4: 8b 75 0c mov 0xc(%ebp),%esi 10c3c7: 83 c6 08 add $0x8,%esi
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment;
10c3ca: 89 f0 mov %esi,%eax 10c3cc: 31 d2 xor %edx,%edx 10c3ce: f7 f1 div %ecx
if ( remainder != 0 ) {
10c3d0: 85 d2 test %edx,%edx
10c3d2: 74 05 je 10c3d9 <_Heap_Initialize+0x35> return value - remainder + alignment;
10c3d4: 8d 34 31 lea (%ecx,%esi,1),%esi 10c3d7: 29 d6 sub %edx,%esi
overhead = HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin); first_block_size = heap_area_size - overhead; first_block_size = _Heap_Align_down ( first_block_size, page_size ); alloc_area_size = first_block_size - HEAP_BLOCK_HEADER_SIZE; if (
10c3d9: 8b 55 0c mov 0xc(%ebp),%edx 10c3dc: 03 55 10 add 0x10(%ebp),%edx 10c3df: 89 55 ec mov %edx,-0x14(%ebp)
10c3e2: 0f 82 d9 00 00 00 jb 10c4c1 <_Heap_Initialize+0x11d> } min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size ); alloc_area_begin = _Heap_Align_up( alloc_area_begin, page_size ); first_block_begin = alloc_area_begin - HEAP_BLOCK_HEADER_SIZE; overhead = HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin);
10c3e8: 8d 7e f8 lea -0x8(%esi),%edi 10c3eb: 2b 75 0c sub 0xc(%ebp),%esi
first_block_size = heap_area_size - overhead; first_block_size = _Heap_Align_down ( first_block_size, page_size ); alloc_area_size = first_block_size - HEAP_BLOCK_HEADER_SIZE; if (
10c3ee: 39 75 10 cmp %esi,0x10(%ebp)
10c3f1: 0f 86 ca 00 00 00 jbe 10c4c1 <_Heap_Initialize+0x11d> min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size ); alloc_area_begin = _Heap_Align_up( alloc_area_begin, page_size ); first_block_begin = alloc_area_begin - HEAP_BLOCK_HEADER_SIZE; overhead = HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin); first_block_size = heap_area_size - overhead;
10c3f7: 8b 45 10 mov 0x10(%ebp),%eax 10c3fa: 29 f0 sub %esi,%eax 10c3fc: 89 c6 mov %eax,%esi
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment);
10c3fe: 31 d2 xor %edx,%edx 10c400: f7 f1 div %ecx 10c402: 29 d6 sub %edx,%esi 10c404: 89 75 e4 mov %esi,-0x1c(%ebp)
first_block_size = _Heap_Align_down ( first_block_size, page_size ); alloc_area_size = first_block_size - HEAP_BLOCK_HEADER_SIZE; if (
10c407: 39 75 f0 cmp %esi,-0x10(%ebp)
10c40a: 0f 87 b1 00 00 00 ja 10c4c1 <_Heap_Initialize+0x11d> alloc_area_begin = _Heap_Align_up( alloc_area_begin, page_size ); first_block_begin = alloc_area_begin - HEAP_BLOCK_HEADER_SIZE; overhead = HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin); first_block_size = heap_area_size - overhead; first_block_size = _Heap_Align_down ( first_block_size, page_size ); alloc_area_size = first_block_size - HEAP_BLOCK_HEADER_SIZE;
10c410: 89 f0 mov %esi,%eax 10c412: 83 e8 08 sub $0x8,%eax
return 0; } /* First block */ first_block = (Heap_Block *) first_block_begin; first_block->prev_size = page_size;
10c415: 89 0f mov %ecx,(%edi)
first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED;
10c417: 89 f2 mov %esi,%edx 10c419: 83 ca 01 or $0x1,%edx 10c41c: 89 57 04 mov %edx,0x4(%edi)
first_block->next = _Heap_Free_list_tail( heap );
10c41f: 89 5f 08 mov %ebx,0x8(%edi)
first_block->prev = _Heap_Free_list_head( heap );
10c422: 89 5f 0c mov %ebx,0xc(%edi)
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset);
10c425: 01 fe add %edi,%esi 10c427: 89 73 24 mov %esi,0x24(%ebx)
* block indicates that the previous block is used, this ensures that the * last block appears as used for the _Heap_Is_used() and _Heap_Is_free() * functions. */ last_block = _Heap_Block_at( first_block, first_block_size ); last_block->prev_size = first_block_size;
10c42a: 8b 55 e4 mov -0x1c(%ebp),%edx 10c42d: 89 16 mov %edx,(%esi)
last_block->size_and_flag = first_block_begin - (uintptr_t) last_block;
10c42f: 89 fa mov %edi,%edx 10c431: 29 f2 sub %esi,%edx 10c433: 89 56 04 mov %edx,0x4(%esi)
/* Heap control */ heap->page_size = page_size;
10c436: 89 4b 10 mov %ecx,0x10(%ebx)
heap->min_block_size = min_block_size;
10c439: 8b 75 f0 mov -0x10(%ebp),%esi 10c43c: 89 73 14 mov %esi,0x14(%ebx)
heap->area_begin = heap_area_begin;
10c43f: 8b 55 0c mov 0xc(%ebp),%edx 10c442: 89 53 18 mov %edx,0x18(%ebx)
heap->area_end = heap_area_end;
10c445: 8b 75 ec mov -0x14(%ebp),%esi 10c448: 89 73 1c mov %esi,0x1c(%ebx)
heap->first_block = first_block;
10c44b: 89 7b 20 mov %edi,0x20(%ebx)
heap->last_block = last_block; _Heap_Free_list_head( heap )->next = first_block;
10c44e: 89 7b 08 mov %edi,0x8(%ebx)
_Heap_Free_list_tail( heap )->prev = first_block;
10c451: 89 7b 0c mov %edi,0xc(%ebx)
/* Statistics */ stats->size = first_block_size;
10c454: 8b 55 e4 mov -0x1c(%ebp),%edx 10c457: 89 53 2c mov %edx,0x2c(%ebx)
stats->free_size = first_block_size;
10c45a: 89 53 30 mov %edx,0x30(%ebx)
stats->min_free_size = first_block_size;
10c45d: 89 53 34 mov %edx,0x34(%ebx)
stats->free_blocks = 1;
10c460: c7 43 38 01 00 00 00 movl $0x1,0x38(%ebx)
stats->max_free_blocks = 1;
10c467: c7 43 3c 01 00 00 00 movl $0x1,0x3c(%ebx)
stats->used_blocks = 0;
10c46e: c7 43 40 00 00 00 00 movl $0x0,0x40(%ebx)
stats->max_search = 0;
10c475: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx)
stats->allocs = 0;
10c47c: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx)
stats->searches = 0;
10c483: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx)
stats->frees = 0;
10c48a: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx)
stats->resizes = 0;
10c491: c7 43 54 00 00 00 00 movl $0x0,0x54(%ebx)
stats->instance = instance++;
10c498: 8b 15 80 4f 12 00 mov 0x124f80,%edx 10c49e: 89 53 28 mov %edx,0x28(%ebx) 10c4a1: 42 inc %edx 10c4a2: 89 15 80 4f 12 00 mov %edx,0x124f80
_HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return alloc_area_size; }
10c4a8: 83 c4 10 add $0x10,%esp 10c4ab: 5b pop %ebx 10c4ac: 5e pop %esi 10c4ad: 5f pop %edi 10c4ae: c9 leave 10c4af: c3 ret
uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) {
10c4b0: 89 c8 mov %ecx,%eax 10c4b2: 83 e0 03 and $0x3,%eax
10c4b5: 74 05 je 10c4bc <_Heap_Initialize+0x118> return value - remainder + alignment;
10c4b7: 83 c1 04 add $0x4,%ecx 10c4ba: 29 c1 sub %eax,%ecx
if ( page_size == 0 ) { page_size = CPU_ALIGNMENT; } else { page_size = _Heap_Align_up( page_size, CPU_ALIGNMENT ); if ( page_size < CPU_ALIGNMENT ) {
10c4bc: 83 f9 03 cmp $0x3,%ecx
10c4bf: 77 0b ja 10c4cc <_Heap_Initialize+0x128> ); _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return alloc_area_size;
10c4c1: 31 c0 xor %eax,%eax
}
10c4c3: 83 c4 10 add $0x10,%esp 10c4c6: 5b pop %ebx 10c4c7: 5e pop %esi 10c4c8: 5f pop %edi 10c4c9: c9 leave 10c4ca: c3 ret
10c4cb: 90 nop <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment;
10c4cc: b8 10 00 00 00 mov $0x10,%eax 10c4d1: 31 d2 xor %edx,%edx 10c4d3: f7 f1 div %ecx
if ( remainder != 0 ) {
10c4d5: 85 d2 test %edx,%edx
10c4d7: 74 0d je 10c4e6 <_Heap_Initialize+0x142> return value - remainder + alignment;
10c4d9: 8d 41 10 lea 0x10(%ecx),%eax 10c4dc: 29 d0 sub %edx,%eax 10c4de: 89 45 f0 mov %eax,-0x10(%ebp) 10c4e1: e9 de fe ff ff jmp 10c3c4 <_Heap_Initialize+0x20>
uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) {
10c4e6: c7 45 f0 10 00 00 00 movl $0x10,-0x10(%ebp) 10c4ed: e9 d2 fe ff ff jmp 10c3c4 <_Heap_Initialize+0x20>
0011dcb0 <_Heap_Resize_block>: void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) {
11dcb0: 55 push %ebp 11dcb1: 89 e5 mov %esp,%ebp 11dcb3: 57 push %edi 11dcb4: 56 push %esi 11dcb5: 53 push %ebx 11dcb6: 83 ec 2c sub $0x2c,%esp 11dcb9: 8b 5d 08 mov 0x8(%ebp),%ebx 11dcbc: 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 )
11dcbf: 8d 4e f8 lea -0x8(%esi),%ecx 11dcc2: 89 f0 mov %esi,%eax 11dcc4: 31 d2 xor %edx,%edx 11dcc6: f7 73 10 divl 0x10(%ebx) 11dcc9: 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;
11dccb: 8b 45 14 mov 0x14(%ebp),%eax 11dcce: c7 00 00 00 00 00 movl $0x0,(%eax)
*new_size = 0;
11dcd4: 8b 55 18 mov 0x18(%ebp),%edx 11dcd7: 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
11dcdd: 39 4b 20 cmp %ecx,0x20(%ebx)
11dce0: 76 0e jbe 11dcf0 <_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;
11dce2: b8 02 00 00 00 mov $0x2,%eax
new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } }
11dce7: 8d 65 f4 lea -0xc(%ebp),%esp 11dcea: 5b pop %ebx 11dceb: 5e pop %esi 11dcec: 5f pop %edi 11dced: c9 leave 11dcee: c3 ret
11dcef: 90 nop <== NOT EXECUTED
11dcf0: 39 4b 24 cmp %ecx,0x24(%ebx)
11dcf3: 72 ed jb 11dce2 <_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;
11dcf5: 8b 41 04 mov 0x4(%ecx),%eax 11dcf8: 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;
11dcfb: 8d 3c 01 lea (%ecx,%eax,1),%edi 11dcfe: 89 7d d4 mov %edi,-0x2c(%ebp)
uintptr_t alloc_size = block_end - alloc_begin + HEAP_BLOCK_SIZE_OFFSET;
11dd01: 89 fa mov %edi,%edx 11dd03: 29 f2 sub %esi,%edx 11dd05: 83 c2 04 add $0x4,%edx 11dd08: 89 55 dc mov %edx,-0x24(%ebp) 11dd0b: 8b 57 04 mov 0x4(%edi),%edx 11dd0e: 83 e2 fe and $0xfffffffe,%edx 11dd11: 89 55 d0 mov %edx,-0x30(%ebp)
RTEMS_INLINE_ROUTINE bool _Heap_Is_free( const Heap_Block *block ) { return !_Heap_Is_used( block );
11dd14: 8b 54 17 04 mov 0x4(%edi,%edx,1),%edx 11dd18: 83 e2 01 and $0x1,%edx 11dd1b: 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;
11dd1e: 8b 55 dc mov -0x24(%ebp),%edx 11dd21: 8b 7d 14 mov 0x14(%ebp),%edi 11dd24: 89 17 mov %edx,(%edi)
if ( next_block_is_free ) {
11dd26: 8a 55 e0 mov -0x20(%ebp),%dl 11dd29: 80 f2 01 xor $0x1,%dl 11dd2c: 88 55 e0 mov %dl,-0x20(%ebp)
11dd2f: 75 17 jne 11dd48 <_Heap_Resize_block+0x98> block_size += next_block_size; alloc_size += next_block_size; } if ( new_alloc_size > alloc_size ) {
11dd31: 8b 55 dc mov -0x24(%ebp),%edx 11dd34: 39 55 10 cmp %edx,0x10(%ebp)
11dd37: 76 20 jbe 11dd59 <_Heap_Resize_block+0xa9>
11dd39: b8 01 00 00 00 mov $0x1,%eax
new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } }
11dd3e: 8d 65 f4 lea -0xc(%ebp),%esp 11dd41: 5b pop %ebx 11dd42: 5e pop %esi 11dd43: 5f pop %edi 11dd44: c9 leave 11dd45: c3 ret
11dd46: 66 90 xchg %ax,%ax <== NOT EXECUTED
_HAssert( _Heap_Is_prev_used( next_block ) ); *old_size = alloc_size; if ( next_block_is_free ) { block_size += next_block_size;
11dd48: 03 45 d0 add -0x30(%ebp),%eax
alloc_size += next_block_size;
11dd4b: 8b 7d d0 mov -0x30(%ebp),%edi 11dd4e: 01 7d dc add %edi,-0x24(%ebp)
} if ( new_alloc_size > alloc_size ) {
11dd51: 8b 55 dc mov -0x24(%ebp),%edx 11dd54: 39 55 10 cmp %edx,0x10(%ebp)
11dd57: 77 e0 ja 11dd39 <_Heap_Resize_block+0x89> return HEAP_RESIZE_UNSATISFIED; } if ( next_block_is_free ) {
11dd59: 80 7d e0 00 cmpb $0x0,-0x20(%ebp)
11dd5d: 74 31 je 11dd90 <_Heap_Resize_block+0xe0> uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag;
11dd5f: 8b 79 04 mov 0x4(%ecx),%edi 11dd62: 83 e7 01 and $0x1,%edi 11dd65: 09 c7 or %eax,%edi 11dd67: 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;
11dd6a: 8b 7d d4 mov -0x2c(%ebp),%edi 11dd6d: 8b 7f 08 mov 0x8(%edi),%edi 11dd70: 89 7d e4 mov %edi,-0x1c(%ebp)
Heap_Block *prev = block->prev;
11dd73: 8b 55 d4 mov -0x2c(%ebp),%edx 11dd76: 8b 7a 0c mov 0xc(%edx),%edi
prev->next = next;
11dd79: 8b 55 e4 mov -0x1c(%ebp),%edx 11dd7c: 89 57 08 mov %edx,0x8(%edi)
next->prev = prev;
11dd7f: 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;
11dd82: 83 4c 08 04 01 orl $0x1,0x4(%eax,%ecx,1)
/* Statistics */ --stats->free_blocks;
11dd87: ff 4b 38 decl 0x38(%ebx)
stats->free_size -= next_block_size;
11dd8a: 8b 7d d0 mov -0x30(%ebp),%edi 11dd8d: 29 7b 30 sub %edi,0x30(%ebx)
} block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size );
11dd90: ff 75 10 pushl 0x10(%ebp) 11dd93: 56 push %esi 11dd94: 51 push %ecx 11dd95: 53 push %ebx 11dd96: e8 3d e8 fe ff call 10c5d8 <_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;
11dd9b: 8b 50 04 mov 0x4(%eax),%edx 11dd9e: 83 e2 fe and $0xfffffffe,%edx 11dda1: 29 f0 sub %esi,%eax 11dda3: 8d 44 10 04 lea 0x4(%eax,%edx,1),%eax 11dda7: 8b 55 18 mov 0x18(%ebp),%edx 11ddaa: 89 02 mov %eax,(%edx)
/* Statistics */ ++stats->resizes;
11ddac: ff 43 54 incl 0x54(%ebx) 11ddaf: 31 c0 xor %eax,%eax 11ddb1: 83 c4 10 add $0x10,%esp
new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } }
11ddb4: 8d 65 f4 lea -0xc(%ebp),%esp 11ddb7: 5b pop %ebx 11ddb8: 5e pop %esi 11ddb9: 5f pop %edi 11ddba: c9 leave 11ddbb: c3 ret
0011ddbc <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) {
11ddbc: 55 push %ebp 11ddbd: 89 e5 mov %esp,%ebp 11ddbf: 56 push %esi 11ddc0: 53 push %ebx 11ddc1: 8b 5d 08 mov 0x8(%ebp),%ebx 11ddc4: 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 )
11ddc7: 8d 4e f8 lea -0x8(%esi),%ecx 11ddca: 89 f0 mov %esi,%eax 11ddcc: 31 d2 xor %edx,%edx 11ddce: f7 73 10 divl 0x10(%ebx) 11ddd1: 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;
11ddd3: 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
11ddd6: 39 c1 cmp %eax,%ecx
11ddd8: 72 07 jb 11dde1 <_Heap_Size_of_alloc_area+0x25> && (uintptr_t) block <= (uintptr_t) heap->last_block;
11ddda: 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
11dddd: 39 d1 cmp %edx,%ecx
11dddf: 76 07 jbe 11dde8 <_Heap_Size_of_alloc_area+0x2c><== NEVER TAKEN
return false; } *alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin; return true;
11dde1: 31 c0 xor %eax,%eax
}
11dde3: 5b pop %ebx 11dde4: 5e pop %esi 11dde5: c9 leave 11dde6: c3 ret
11dde7: 90 nop <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset);
11dde8: 8b 59 04 mov 0x4(%ecx),%ebx 11ddeb: 83 e3 fe and $0xfffffffe,%ebx 11ddee: 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
11ddf0: 39 c8 cmp %ecx,%eax
11ddf2: 77 ed ja 11dde1 <_Heap_Size_of_alloc_area+0x25><== ALWAYS TAKEN
11ddf4: 39 ca cmp %ecx,%edx
11ddf6: 72 e9 jb 11dde1 <_Heap_Size_of_alloc_area+0x25><== ALWAYS TAKEN
} block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if (
11ddf8: f6 41 04 01 testb $0x1,0x4(%ecx)
11ddfc: 74 e3 je 11dde1 <_Heap_Size_of_alloc_area+0x25><== ALWAYS TAKEN
|| !_Heap_Is_prev_used( next_block ) ) { return false; } *alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin;
11ddfe: 29 f1 sub %esi,%ecx 11de00: 8d 51 04 lea 0x4(%ecx),%edx 11de03: 8b 45 10 mov 0x10(%ebp),%eax 11de06: 89 10 mov %edx,(%eax) 11de08: b0 01 mov $0x1,%al
return true; }
11de0a: 5b pop %ebx 11de0b: 5e pop %esi 11de0c: c9 leave 11de0d: c3 ret
0010d140 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
10d140: 55 push %ebp 10d141: 89 e5 mov %esp,%ebp 10d143: 57 push %edi 10d144: 56 push %esi 10d145: 53 push %ebx 10d146: 83 ec 3c sub $0x3c,%esp 10d149: 8b 5d 08 mov 0x8(%ebp),%ebx
uintptr_t const page_size = heap->page_size;
10d14c: 8b 43 10 mov 0x10(%ebx),%eax 10d14f: 89 45 e0 mov %eax,-0x20(%ebp)
uintptr_t const min_block_size = heap->min_block_size;
10d152: 8b 53 14 mov 0x14(%ebx),%edx 10d155: 89 55 dc mov %edx,-0x24(%ebp)
Heap_Block *const last_block = heap->last_block;
10d158: 8b 43 24 mov 0x24(%ebx),%eax 10d15b: 89 45 d8 mov %eax,-0x28(%ebp)
Heap_Block *block = heap->first_block;
10d15e: 8b 73 20 mov 0x20(%ebx),%esi
Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing;
10d161: 80 7d 10 00 cmpb $0x0,0x10(%ebp)
10d165: 75 1d jne 10d184 <_Heap_Walk+0x44>
10d167: c7 45 e4 38 d1 10 00 movl $0x10d138,-0x1c(%ebp)
if ( !_System_state_Is_up( _System_state_Get() ) ) {
10d16e: 83 3d e0 87 12 00 03 cmpl $0x3,0x1287e0
10d175: 74 1d je 10d194 <_Heap_Walk+0x54> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) {
10d177: b0 01 mov $0x1,%al
block = next_block; } return true; }
10d179: 8d 65 f4 lea -0xc(%ebp),%esp 10d17c: 5b pop %ebx 10d17d: 5e pop %esi 10d17e: 5f pop %edi 10d17f: c9 leave 10d180: c3 ret
10d181: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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;
10d184: c7 45 e4 08 d5 10 00 movl $0x10d508,-0x1c(%ebp)
if ( !_System_state_Is_up( _System_state_Get() ) ) {
10d18b: 83 3d e0 87 12 00 03 cmpl $0x3,0x1287e0
10d192: 75 e3 jne 10d177 <_Heap_Walk+0x37> <== ALWAYS 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)(
10d194: 52 push %edx 10d195: ff 73 0c pushl 0xc(%ebx) 10d198: ff 73 08 pushl 0x8(%ebx) 10d19b: ff 75 d8 pushl -0x28(%ebp) 10d19e: 56 push %esi 10d19f: ff 73 1c pushl 0x1c(%ebx) 10d1a2: ff 73 18 pushl 0x18(%ebx) 10d1a5: ff 75 dc pushl -0x24(%ebp) 10d1a8: ff 75 e0 pushl -0x20(%ebp) 10d1ab: 68 70 0b 12 00 push $0x120b70 10d1b0: 6a 00 push $0x0 10d1b2: ff 75 0c pushl 0xc(%ebp) 10d1b5: 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 ) {
10d1b8: 83 c4 30 add $0x30,%esp 10d1bb: 8b 45 e0 mov -0x20(%ebp),%eax 10d1be: 85 c0 test %eax,%eax
10d1c0: 0f 84 b2 00 00 00 je 10d278 <_Heap_Walk+0x138> (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
10d1c6: f6 45 e0 03 testb $0x3,-0x20(%ebp)
10d1ca: 0f 85 b0 00 00 00 jne 10d280 <_Heap_Walk+0x140> ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
10d1d0: 8b 45 dc mov -0x24(%ebp),%eax 10d1d3: 31 d2 xor %edx,%edx 10d1d5: f7 75 e0 divl -0x20(%ebp) 10d1d8: 85 d2 test %edx,%edx
10d1da: 0f 85 ac 00 00 00 jne 10d28c <_Heap_Walk+0x14c> ); return false; } if (
10d1e0: 8d 46 08 lea 0x8(%esi),%eax 10d1e3: 31 d2 xor %edx,%edx 10d1e5: f7 75 e0 divl -0x20(%ebp) 10d1e8: 85 d2 test %edx,%edx
10d1ea: 0f 85 a8 00 00 00 jne 10d298 <_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;
10d1f0: 8b 56 04 mov 0x4(%esi),%edx 10d1f3: 89 55 cc mov %edx,-0x34(%ebp)
); return false; } if ( !_Heap_Is_prev_used( first_block ) ) {
10d1f6: 83 e2 01 and $0x1,%edx
10d1f9: 0f 84 a1 00 00 00 je 10d2a0 <_Heap_Walk+0x160> ); return false; } if ( first_block->prev_size != page_size ) {
10d1ff: 8b 06 mov (%esi),%eax 10d201: 39 45 e0 cmp %eax,-0x20(%ebp)
10d204: 75 4e jne 10d254 <_Heap_Walk+0x114> ); return false; } if ( _Heap_Is_free( last_block ) ) {
10d206: 8b 55 d8 mov -0x28(%ebp),%edx 10d209: 8b 42 04 mov 0x4(%edx),%eax 10d20c: 83 e0 fe and $0xfffffffe,%eax 10d20f: f6 44 02 04 01 testb $0x1,0x4(%edx,%eax,1)
10d214: 0f 84 bd 02 00 00 je 10d4d7 <_Heap_Walk+0x397> int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size;
10d21a: 8b 43 10 mov 0x10(%ebx),%eax 10d21d: 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;
10d220: 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 ) {
10d223: 39 cb cmp %ecx,%ebx
10d225: 0f 84 08 01 00 00 je 10d333 <_Heap_Walk+0x1f3> 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;
10d22b: 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
10d22e: 39 cf cmp %ecx,%edi
10d230: 76 76 jbe 10d2a8 <_Heap_Walk+0x168> <== NEVER TAKEN
10d232: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { (*printer)(
10d234: 51 push %ecx 10d235: 68 b8 0c 12 00 push $0x120cb8 10d23a: 66 90 xchg %ax,%ax
return false; } if ( !prev_used ) { (*printer)(
10d23c: 6a 01 push $0x1 10d23e: ff 75 0c pushl 0xc(%ebp) 10d241: ff 55 e4 call *-0x1c(%ebp) 10d244: 31 c0 xor %eax,%eax 10d246: 83 c4 10 add $0x10,%esp
block = next_block; } return true; }
10d249: 8d 65 f4 lea -0xc(%ebp),%esp 10d24c: 5b pop %ebx 10d24d: 5e pop %esi 10d24e: 5f pop %edi 10d24f: c9 leave 10d250: c3 ret
10d251: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return false; } if ( first_block->prev_size != page_size ) { (*printer)(
10d254: 83 ec 0c sub $0xc,%esp 10d257: ff 75 e0 pushl -0x20(%ebp) 10d25a: 50 push %eax 10d25b: 68 8c 0c 12 00 push $0x120c8c
return false; } if ( free_block->prev != prev_block ) { (*printer)(
10d260: 6a 01 push $0x1 10d262: ff 75 0c pushl 0xc(%ebp) 10d265: ff 55 e4 call *-0x1c(%ebp) 10d268: 31 c0 xor %eax,%eax 10d26a: 83 c4 20 add $0x20,%esp
block = next_block; } return true; }
10d26d: 8d 65 f4 lea -0xc(%ebp),%esp 10d270: 5b pop %ebx 10d271: 5e pop %esi 10d272: 5f pop %edi 10d273: c9 leave 10d274: c3 ret
10d275: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { (*printer)( source, true, "page size is zero\n" );
10d278: 57 push %edi 10d279: 68 e7 0e 12 00 push $0x120ee7 10d27e: eb bc jmp 10d23c <_Heap_Walk+0xfc>
return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)(
10d280: ff 75 e0 pushl -0x20(%ebp) 10d283: 68 fa 0e 12 00 push $0x120efa 10d288: eb b2 jmp 10d23c <_Heap_Walk+0xfc>
10d28a: 66 90 xchg %ax,%ax <== NOT EXECUTED
return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)(
10d28c: ff 75 dc pushl -0x24(%ebp) 10d28f: 68 04 0c 12 00 push $0x120c04 10d294: eb a6 jmp 10d23c <_Heap_Walk+0xfc>
10d296: 66 90 xchg %ax,%ax <== NOT EXECUTED
} if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)(
10d298: 56 push %esi 10d299: 68 28 0c 12 00 push $0x120c28 10d29e: eb 9c jmp 10d23c <_Heap_Walk+0xfc>
return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)(
10d2a0: 56 push %esi 10d2a1: 68 5c 0c 12 00 push $0x120c5c 10d2a6: eb 94 jmp 10d23c <_Heap_Walk+0xfc>
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
10d2a8: 8b 53 24 mov 0x24(%ebx),%edx 10d2ab: 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
10d2ae: 39 ca cmp %ecx,%edx
10d2b0: 72 82 jb 10d234 <_Heap_Walk+0xf4> <== ALWAYS TAKEN
); return false; } if (
10d2b2: 8d 41 08 lea 0x8(%ecx),%eax 10d2b5: 31 d2 xor %edx,%edx 10d2b7: f7 75 d4 divl -0x2c(%ebp) 10d2ba: 85 d2 test %edx,%edx
10d2bc: 0f 85 20 02 00 00 jne 10d4e2 <_Heap_Walk+0x3a2> <== ALWAYS TAKEN
); return false; } if ( _Heap_Is_used( free_block ) ) {
10d2c2: 8b 41 04 mov 0x4(%ecx),%eax 10d2c5: 83 e0 fe and $0xfffffffe,%eax 10d2c8: f6 44 01 04 01 testb $0x1,0x4(%ecx,%eax,1)
10d2cd: 0f 85 29 02 00 00 jne 10d4fc <_Heap_Walk+0x3bc> <== ALWAYS TAKEN
); return false; } if ( free_block->prev != prev_block ) {
10d2d3: 8b 41 0c mov 0xc(%ecx),%eax 10d2d6: 39 c3 cmp %eax,%ebx
10d2d8: 0f 85 0f 02 00 00 jne 10d4ed <_Heap_Walk+0x3ad> <== ALWAYS TAKEN
10d2de: 89 75 c8 mov %esi,-0x38(%ebp) 10d2e1: 89 de mov %ebx,%esi 10d2e3: eb 40 jmp 10d325 <_Heap_Walk+0x1e5>
10d2e5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
10d2e8: 39 f9 cmp %edi,%ecx
10d2ea: 0f 82 44 ff ff ff jb 10d234 <_Heap_Walk+0xf4>
10d2f0: 39 4d d0 cmp %ecx,-0x30(%ebp)
10d2f3: 0f 82 3b ff ff ff jb 10d234 <_Heap_Walk+0xf4> <== ALWAYS TAKEN
); return false; } if (
10d2f9: 8d 41 08 lea 0x8(%ecx),%eax 10d2fc: 31 d2 xor %edx,%edx 10d2fe: f7 75 d4 divl -0x2c(%ebp) 10d301: 85 d2 test %edx,%edx
10d303: 0f 85 d9 01 00 00 jne 10d4e2 <_Heap_Walk+0x3a2> ); return false; } if ( _Heap_Is_used( free_block ) ) {
10d309: 8b 41 04 mov 0x4(%ecx),%eax 10d30c: 83 e0 fe and $0xfffffffe,%eax 10d30f: f6 44 01 04 01 testb $0x1,0x4(%ecx,%eax,1)
10d314: 0f 85 e2 01 00 00 jne 10d4fc <_Heap_Walk+0x3bc> ); return false; } if ( free_block->prev != prev_block ) {
10d31a: 8b 41 0c mov 0xc(%ecx),%eax 10d31d: 39 d8 cmp %ebx,%eax
10d31f: 0f 85 c8 01 00 00 jne 10d4ed <_Heap_Walk+0x3ad> (*printer)(
10d325: 89 cb mov %ecx,%ebx
return false; } prev_block = free_block; free_block = free_block->next;
10d327: 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 ) {
10d32a: 39 ce cmp %ecx,%esi
10d32c: 75 ba jne 10d2e8 <_Heap_Walk+0x1a8>
10d32e: 89 f3 mov %esi,%ebx 10d330: 8b 75 c8 mov -0x38(%ebp),%esi
if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) {
10d333: 39 75 d8 cmp %esi,-0x28(%ebp)
10d336: 0f 84 3b fe ff ff je 10d177 <_Heap_Walk+0x37> <== ALWAYS TAKEN
10d33c: 8b 45 cc mov -0x34(%ebp),%eax 10d33f: 90 nop
- 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;
10d340: 89 c1 mov %eax,%ecx 10d342: 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);
10d345: 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 ) {
10d348: a8 01 test $0x1,%al
10d34a: 74 30 je 10d37c <_Heap_Walk+0x23c> (*printer)(
10d34c: 83 ec 0c sub $0xc,%esp 10d34f: 51 push %ecx 10d350: 56 push %esi 10d351: 68 49 0f 12 00 push $0x120f49
"block 0x%08x: size %u\n", block, block_size ); } else { (*printer)(
10d356: 6a 00 push $0x0 10d358: ff 75 0c pushl 0xc(%ebp) 10d35b: 89 4d c4 mov %ecx,-0x3c(%ebp) 10d35e: ff 55 e4 call *-0x1c(%ebp) 10d361: 83 c4 20 add $0x20,%esp 10d364: 8b 4d c4 mov -0x3c(%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
10d367: 39 7b 20 cmp %edi,0x20(%ebx)
10d36a: 76 20 jbe 10d38c <_Heap_Walk+0x24c> <== NEVER TAKEN
block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { (*printer)(
10d36c: 83 ec 0c sub $0xc,%esp 10d36f: 57 push %edi 10d370: 56 push %esi 10d371: 68 64 0d 12 00 push $0x120d64 10d376: e9 e5 fe ff ff jmp 10d260 <_Heap_Walk+0x120>
10d37b: 90 nop <== NOT EXECUTED
"block 0x%08x: size %u\n", block, block_size ); } else { (*printer)(
10d37c: 83 ec 08 sub $0x8,%esp 10d37f: ff 36 pushl (%esi) 10d381: 51 push %ecx 10d382: 56 push %esi 10d383: 68 3c 0d 12 00 push $0x120d3c 10d388: eb cc jmp 10d356 <_Heap_Walk+0x216>
10d38a: 66 90 xchg %ax,%ax <== NOT EXECUTED
10d38c: 39 7b 24 cmp %edi,0x24(%ebx)
10d38f: 72 db jb 10d36c <_Heap_Walk+0x22c> ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) {
10d391: 89 c8 mov %ecx,%eax 10d393: 31 d2 xor %edx,%edx 10d395: f7 75 e0 divl -0x20(%ebp) 10d398: 85 d2 test %edx,%edx
10d39a: 0f 85 02 01 00 00 jne 10d4a2 <_Heap_Walk+0x362> ); return false; } if ( block_size < min_block_size ) {
10d3a0: 39 4d dc cmp %ecx,-0x24(%ebp)
10d3a3: 0f 87 0b 01 00 00 ja 10d4b4 <_Heap_Walk+0x374> ); return false; } if ( next_block_begin <= block_begin ) {
10d3a9: 39 fe cmp %edi,%esi
10d3ab: 0f 83 17 01 00 00 jae 10d4c8 <_Heap_Walk+0x388> ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) {
10d3b1: f6 47 04 01 testb $0x1,0x4(%edi)
10d3b5: 0f 85 91 00 00 00 jne 10d44c <_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;
10d3bb: 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;
10d3be: 8b 46 04 mov 0x4(%esi),%eax 10d3c1: 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;
10d3c4: 83 e0 fe and $0xfffffffe,%eax 10d3c7: 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);
10d3ca: 01 f0 add %esi,%eax 10d3cc: 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)(
10d3cf: 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;
10d3d2: 39 53 0c cmp %edx,0xc(%ebx)
10d3d5: 0f 84 99 00 00 00 je 10d474 <_Heap_Walk+0x334> " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "")
10d3db: 39 da cmp %ebx,%edx
10d3dd: 0f 84 a9 00 00 00 je 10d48c <_Heap_Walk+0x34c>
10d3e3: c7 45 c8 b9 0a 12 00 movl $0x120ab9,-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)(
10d3ea: 8b 46 0c mov 0xc(%esi),%eax 10d3ed: 39 c1 cmp %eax,%ecx
10d3ef: 74 7b je 10d46c <_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)" : ""),
10d3f1: 39 d8 cmp %ebx,%eax
10d3f3: 0f 84 9f 00 00 00 je 10d498 <_Heap_Walk+0x358>
10d3f9: b9 b9 0a 12 00 mov $0x120ab9,%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)(
10d3fe: ff 75 c8 pushl -0x38(%ebp) 10d401: 52 push %edx 10d402: 51 push %ecx 10d403: 50 push %eax 10d404: 56 push %esi 10d405: 68 24 0e 12 00 push $0x120e24 10d40a: 6a 00 push $0x0 10d40c: ff 75 0c pushl 0xc(%ebp) 10d40f: 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 ) {
10d412: 8b 55 d0 mov -0x30(%ebp),%edx 10d415: 8b 02 mov (%edx),%eax 10d417: 83 c4 20 add $0x20,%esp 10d41a: 39 45 d4 cmp %eax,-0x2c(%ebp)
10d41d: 74 11 je 10d430 <_Heap_Walk+0x2f0> (*printer)(
10d41f: 51 push %ecx 10d420: 52 push %edx 10d421: 50 push %eax 10d422: ff 75 d4 pushl -0x2c(%ebp) 10d425: 56 push %esi 10d426: 68 50 0e 12 00 push $0x120e50 10d42b: e9 30 fe ff ff jmp 10d260 <_Heap_Walk+0x120>
); return false; } if ( !prev_used ) {
10d430: f6 45 cc 01 testb $0x1,-0x34(%ebp)
10d434: 74 4a je 10d480 <_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;
10d436: 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 ) {
10d439: 39 d8 cmp %ebx,%eax
10d43b: 75 0a jne 10d447 <_Heap_Walk+0x307> <== NEVER TAKEN
10d43d: eb 21 jmp 10d460 <_Heap_Walk+0x320> <== NOT EXECUTED 10d43f: 90 nop <== NOT EXECUTED
if ( free_block == block ) { return true; } free_block = free_block->next;
10d440: 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 ) {
10d443: 39 d8 cmp %ebx,%eax
10d445: 74 19 je 10d460 <_Heap_Walk+0x320> if ( free_block == block ) {
10d447: 39 f0 cmp %esi,%eax
10d449: 75 f5 jne 10d440 <_Heap_Walk+0x300>
10d44b: 90 nop
if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) {
10d44c: 39 7d d8 cmp %edi,-0x28(%ebp)
10d44f: 0f 84 22 fd ff ff je 10d177 <_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 ) {
10d455: 8b 47 04 mov 0x4(%edi),%eax 10d458: 89 fe mov %edi,%esi 10d45a: e9 e1 fe ff ff jmp 10d340 <_Heap_Walk+0x200>
10d45f: 90 nop <== NOT EXECUTED
return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)(
10d460: 56 push %esi 10d461: 68 bc 0e 12 00 push $0x120ebc 10d466: e9 d1 fd ff ff jmp 10d23c <_Heap_Walk+0xfc>
10d46b: 90 nop <== NOT EXECUTED
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)(
10d46c: b9 74 0f 12 00 mov $0x120f74,%ecx 10d471: eb 8b jmp 10d3fe <_Heap_Walk+0x2be>
10d473: 90 nop <== NOT EXECUTED
} RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) { return _Heap_Free_list_tail(heap)->prev;
10d474: c7 45 c8 60 0f 12 00 movl $0x120f60,-0x38(%ebp) 10d47b: e9 6a ff ff ff jmp 10d3ea <_Heap_Walk+0x2aa>
return false; } if ( !prev_used ) { (*printer)(
10d480: 56 push %esi 10d481: 68 8c 0e 12 00 push $0x120e8c 10d486: e9 b1 fd ff ff jmp 10d23c <_Heap_Walk+0xfc>
10d48b: 90 nop <== NOT EXECUTED
" (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "")
10d48c: c7 45 c8 6a 0f 12 00 movl $0x120f6a,-0x38(%ebp) 10d493: e9 52 ff ff ff jmp 10d3ea <_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)" : ""),
10d498: b9 7f 0f 12 00 mov $0x120f7f,%ecx 10d49d: e9 5c ff ff ff jmp 10d3fe <_Heap_Walk+0x2be>
return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { (*printer)(
10d4a2: 83 ec 0c sub $0xc,%esp 10d4a5: 51 push %ecx 10d4a6: 56 push %esi 10d4a7: 68 94 0d 12 00 push $0x120d94 10d4ac: e9 af fd ff ff jmp 10d260 <_Heap_Walk+0x120>
10d4b1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return false; } if ( block_size < min_block_size ) { (*printer)(
10d4b4: 83 ec 08 sub $0x8,%esp 10d4b7: ff 75 dc pushl -0x24(%ebp) 10d4ba: 51 push %ecx 10d4bb: 56 push %esi 10d4bc: 68 c4 0d 12 00 push $0x120dc4 10d4c1: e9 9a fd ff ff jmp 10d260 <_Heap_Walk+0x120>
10d4c6: 66 90 xchg %ax,%ax <== NOT EXECUTED
return false; } if ( next_block_begin <= block_begin ) { (*printer)(
10d4c8: 83 ec 0c sub $0xc,%esp 10d4cb: 57 push %edi 10d4cc: 56 push %esi 10d4cd: 68 f0 0d 12 00 push $0x120df0 10d4d2: e9 89 fd ff ff jmp 10d260 <_Heap_Walk+0x120>
return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)(
10d4d7: 53 push %ebx 10d4d8: 68 18 0f 12 00 push $0x120f18 10d4dd: e9 5a fd ff ff jmp 10d23c <_Heap_Walk+0xfc>
} if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)(
10d4e2: 51 push %ecx 10d4e3: 68 d8 0c 12 00 push $0x120cd8 10d4e8: e9 4f fd ff ff jmp 10d23c <_Heap_Walk+0xfc>
return false; } if ( free_block->prev != prev_block ) { (*printer)(
10d4ed: 83 ec 0c sub $0xc,%esp 10d4f0: 50 push %eax 10d4f1: 51 push %ecx 10d4f2: 68 08 0d 12 00 push $0x120d08 10d4f7: e9 64 fd ff ff jmp 10d260 <_Heap_Walk+0x120>
return false; } if ( _Heap_Is_used( free_block ) ) { (*printer)(
10d4fc: 51 push %ecx 10d4fd: 68 2d 0f 12 00 push $0x120f2d 10d502: e9 35 fd ff ff jmp 10d23c <_Heap_Walk+0xfc>
0010bc4c <_IO_Initialize_all_drivers>: * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) {
10bc4c: 55 push %ebp 10bc4d: 89 e5 mov %esp,%ebp 10bc4f: 53 push %ebx 10bc50: 83 ec 04 sub $0x4,%esp
rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )
10bc53: 8b 15 a0 56 12 00 mov 0x1256a0,%edx 10bc59: 85 d2 test %edx,%edx
10bc5b: 74 1a je 10bc77 <_IO_Initialize_all_drivers+0x2b><== ALWAYS TAKEN
10bc5d: 31 db xor %ebx,%ebx 10bc5f: 90 nop
(void) rtems_io_initialize( major, 0, NULL );
10bc60: 50 push %eax 10bc61: 6a 00 push $0x0 10bc63: 6a 00 push $0x0 10bc65: 53 push %ebx 10bc66: e8 1d 44 00 00 call 110088 <rtems_io_initialize>
void _IO_Initialize_all_drivers( void ) { rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )
10bc6b: 43 inc %ebx 10bc6c: 83 c4 10 add $0x10,%esp 10bc6f: 39 1d a0 56 12 00 cmp %ebx,0x1256a0
10bc75: 77 e9 ja 10bc60 <_IO_Initialize_all_drivers+0x14> (void) rtems_io_initialize( major, 0, NULL ); }
10bc77: 8b 5d fc mov -0x4(%ebp),%ebx 10bc7a: c9 leave 10bc7b: c3 ret
0010bc7c <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) {
10bc7c: 55 push %ebp 10bc7d: 89 e5 mov %esp,%ebp 10bc7f: 57 push %edi 10bc80: 56 push %esi 10bc81: 53 push %ebx 10bc82: 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;
10bc85: 8b 1d 54 12 12 00 mov 0x121254,%ebx
drivers_in_table = Configuration.number_of_device_drivers;
10bc8b: a1 50 12 12 00 mov 0x121250,%eax 10bc90: 89 45 e4 mov %eax,-0x1c(%ebp)
number_of_drivers = Configuration.maximum_drivers;
10bc93: 8b 35 4c 12 12 00 mov 0x12124c,%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 )
10bc99: 39 f0 cmp %esi,%eax
10bc9b: 72 17 jb 10bcb4 <_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;
10bc9d: 89 1d a4 56 12 00 mov %ebx,0x1256a4
_IO_Number_of_drivers = number_of_drivers;
10bca3: 8b 45 e4 mov -0x1c(%ebp),%eax 10bca6: a3 a0 56 12 00 mov %eax,0x1256a0
); for ( index = 0 ; index < drivers_in_table ; index++ ) _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; }
10bcab: 8d 65 f4 lea -0xc(%ebp),%esp 10bcae: 5b pop %ebx 10bcaf: 5e pop %esi 10bcb0: 5f pop %edi 10bcb1: c9 leave 10bcb2: c3 ret
10bcb3: 90 nop <== NOT EXECUTED
/* * 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 *)
10bcb4: 8d 0c 76 lea (%esi,%esi,2),%ecx 10bcb7: c1 e1 03 shl $0x3,%ecx 10bcba: 83 ec 0c sub $0xc,%esp 10bcbd: 51 push %ecx 10bcbe: 89 4d dc mov %ecx,-0x24(%ebp) 10bcc1: e8 a2 28 00 00 call 10e568 <_Workspace_Allocate_or_fatal_error> 10bcc6: 89 c2 mov %eax,%edx 10bcc8: a3 a4 56 12 00 mov %eax,0x1256a4
_Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers;
10bccd: 89 35 a0 56 12 00 mov %esi,0x1256a0
memset(
10bcd3: 31 c0 xor %eax,%eax 10bcd5: 8b 4d dc mov -0x24(%ebp),%ecx 10bcd8: 89 d7 mov %edx,%edi 10bcda: 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++ )
10bcdc: 83 c4 10 add $0x10,%esp 10bcdf: 8b 4d e4 mov -0x1c(%ebp),%ecx 10bce2: 85 c9 test %ecx,%ecx
10bce4: 74 c5 je 10bcab <_IO_Manager_initialization+0x2f><== ALWAYS TAKEN
10bce6: a1 a4 56 12 00 mov 0x1256a4,%eax 10bceb: 89 45 e0 mov %eax,-0x20(%ebp) 10bcee: 31 c0 xor %eax,%eax 10bcf0: 31 d2 xor %edx,%edx 10bcf2: 66 90 xchg %ax,%ax
_IO_Driver_address_table[index] = driver_table[index];
10bcf4: 8b 7d e0 mov -0x20(%ebp),%edi 10bcf7: 01 c7 add %eax,%edi 10bcf9: 8d 34 03 lea (%ebx,%eax,1),%esi 10bcfc: b9 06 00 00 00 mov $0x6,%ecx 10bd01: 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++ )
10bd03: 42 inc %edx 10bd04: 83 c0 18 add $0x18,%eax 10bd07: 39 55 e4 cmp %edx,-0x1c(%ebp)
10bd0a: 77 e8 ja 10bcf4 <_IO_Manager_initialization+0x78> _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; }
10bd0c: 8d 65 f4 lea -0xc(%ebp),%esp 10bd0f: 5b pop %ebx 10bd10: 5e pop %esi 10bd11: 5f pop %edi 10bd12: c9 leave 10bd13: c3 ret
0010c6c8 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) {
10c6c8: 55 push %ebp 10c6c9: 89 e5 mov %esp,%ebp 10c6cb: 53 push %ebx 10c6cc: 83 ec 08 sub $0x8,%esp 10c6cf: 8b 45 08 mov 0x8(%ebp),%eax 10c6d2: 8b 55 0c mov 0xc(%ebp),%edx 10c6d5: 8b 5d 10 mov 0x10(%ebp),%ebx
_Internal_errors_What_happened.the_source = the_source;
10c6d8: a3 00 54 12 00 mov %eax,0x125400
_Internal_errors_What_happened.is_internal = is_internal;
10c6dd: 88 15 04 54 12 00 mov %dl,0x125404
_Internal_errors_What_happened.the_error = the_error;
10c6e3: 89 1d 08 54 12 00 mov %ebx,0x125408
_User_extensions_Fatal( the_source, is_internal, the_error );
10c6e9: 53 push %ebx 10c6ea: 0f b6 d2 movzbl %dl,%edx 10c6ed: 52 push %edx 10c6ee: 50 push %eax 10c6ef: e8 0c 1b 00 00 call 10e200 <_User_extensions_Fatal>
RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state;
10c6f4: c7 05 20 55 12 00 05 movl $0x5,0x125520 <== NOT EXECUTED
10c6fb: 00 00 00 _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error );
10c6fe: fa cli <== NOT EXECUTED 10c6ff: 89 d8 mov %ebx,%eax <== NOT EXECUTED 10c701: f4 hlt <== NOT EXECUTED 10c702: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10c705: eb fe jmp 10c705 <_Internal_error_Occurred+0x3d><== NOT EXECUTED
00110648 <_Objects_API_maximum_class>: #include <rtems/score/object.h> unsigned int _Objects_API_maximum_class( uint32_t api ) {
110648: 55 push %ebp 110649: 89 e5 mov %esp,%ebp
case OBJECTS_NO_API: default: break; } return 0; }
11064b: 8b 45 08 mov 0x8(%ebp),%eax 11064e: 48 dec %eax 11064f: 83 f8 03 cmp $0x3,%eax
110652: 77 0c ja 110660 <_Objects_API_maximum_class+0x18>
110654: 8b 04 85 30 00 12 00 mov 0x120030(,%eax,4),%eax 11065b: c9 leave 11065c: c3 ret
11065d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
110660: 31 c0 xor %eax,%eax 110662: c9 leave 110663: c3 ret
0010c760 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) {
10c760: 55 push %ebp 10c761: 89 e5 mov %esp,%ebp 10c763: 56 push %esi 10c764: 53 push %ebx 10c765: 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 )
10c768: 8b 43 18 mov 0x18(%ebx),%eax 10c76b: 85 c0 test %eax,%eax
10c76d: 75 0d jne 10c77c <_Objects_Allocate+0x1c><== NEVER TAKEN
10c76f: 31 c9 xor %ecx,%ecx <== NOT EXECUTED
information->inactive--; } } return the_object; }
10c771: 89 c8 mov %ecx,%eax 10c773: 8d 65 f8 lea -0x8(%ebp),%esp 10c776: 5b pop %ebx 10c777: 5e pop %esi 10c778: c9 leave 10c779: c3 ret
10c77a: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * 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 );
10c77c: 8d 73 20 lea 0x20(%ebx),%esi 10c77f: 83 ec 0c sub $0xc,%esp 10c782: 56 push %esi 10c783: e8 68 f7 ff ff call 10bef0 <_Chain_Get> 10c788: 89 c1 mov %eax,%ecx
if ( information->auto_extend ) {
10c78a: 83 c4 10 add $0x10,%esp 10c78d: 80 7b 12 00 cmpb $0x0,0x12(%ebx)
10c791: 74 de je 10c771 <_Objects_Allocate+0x11> /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) {
10c793: 85 c0 test %eax,%eax
10c795: 74 29 je 10c7c0 <_Objects_Allocate+0x60> } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) -
10c797: 0f b7 41 08 movzwl 0x8(%ecx),%eax 10c79b: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10c79f: 29 d0 sub %edx,%eax
_Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--;
10c7a1: 0f b7 73 14 movzwl 0x14(%ebx),%esi 10c7a5: 31 d2 xor %edx,%edx 10c7a7: f7 f6 div %esi 10c7a9: c1 e0 02 shl $0x2,%eax 10c7ac: 03 43 30 add 0x30(%ebx),%eax 10c7af: ff 08 decl (%eax)
information->inactive--;
10c7b1: 66 ff 4b 2c decw 0x2c(%ebx)
} } return the_object; }
10c7b5: 89 c8 mov %ecx,%eax 10c7b7: 8d 65 f8 lea -0x8(%ebp),%esp 10c7ba: 5b pop %ebx 10c7bb: 5e pop %esi 10c7bc: c9 leave 10c7bd: c3 ret
10c7be: 66 90 xchg %ax,%ax <== NOT EXECUTED
* If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { _Objects_Extend_information( information );
10c7c0: 83 ec 0c sub $0xc,%esp 10c7c3: 53 push %ebx 10c7c4: e8 3b 00 00 00 call 10c804 <_Objects_Extend_information>
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
10c7c9: 89 34 24 mov %esi,(%esp) 10c7cc: e8 1f f7 ff ff call 10bef0 <_Chain_Get> 10c7d1: 89 c1 mov %eax,%ecx
} if ( the_object ) {
10c7d3: 83 c4 10 add $0x10,%esp 10c7d6: 85 c0 test %eax,%eax
10c7d8: 74 97 je 10c771 <_Objects_Allocate+0x11>
10c7da: eb bb jmp 10c797 <_Objects_Allocate+0x37>
0010c804 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) {
10c804: 55 push %ebp 10c805: 89 e5 mov %esp,%ebp 10c807: 57 push %edi 10c808: 56 push %esi 10c809: 53 push %ebx 10c80a: 83 ec 4c sub $0x4c,%esp 10c80d: 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 );
10c810: 0f b7 43 08 movzwl 0x8(%ebx),%eax 10c814: 89 45 d0 mov %eax,-0x30(%ebp)
index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL )
10c817: 8b 4b 34 mov 0x34(%ebx),%ecx 10c81a: 85 c9 test %ecx,%ecx
10c81c: 0f 84 72 02 00 00 je 10ca94 <_Objects_Extend_information+0x290> block_count = 0; else { block_count = information->maximum / information->allocation_size;
10c822: 8b 7b 10 mov 0x10(%ebx),%edi 10c825: 66 89 7d d4 mov %di,-0x2c(%ebp) 10c829: 8b 7b 14 mov 0x14(%ebx),%edi 10c82c: 31 d2 xor %edx,%edx 10c82e: 8b 45 d4 mov -0x2c(%ebp),%eax 10c831: 66 f7 f7 div %di 10c834: 0f b7 f0 movzwl %ax,%esi
for ( ; block < block_count; block++ ) {
10c837: 85 f6 test %esi,%esi
10c839: 0f 84 6c 02 00 00 je 10caab <_Objects_Extend_information+0x2a7><== ALWAYS TAKEN
if ( information->object_blocks[ block ] == NULL )
10c83f: 8b 01 mov (%ecx),%eax 10c841: 85 c0 test %eax,%eax
10c843: 0f 84 72 02 00 00 je 10cabb <_Objects_Extend_information+0x2b7><== ALWAYS TAKEN
10c849: 0f b7 ff movzwl %di,%edi 10c84c: 8b 55 d0 mov -0x30(%ebp),%edx 10c84f: 89 55 cc mov %edx,-0x34(%ebp) 10c852: 31 d2 xor %edx,%edx 10c854: 8b 45 cc mov -0x34(%ebp),%eax 10c857: eb 09 jmp 10c862 <_Objects_Extend_information+0x5e>
10c859: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
10c85c: 83 3c 91 00 cmpl $0x0,(%ecx,%edx,4)
10c860: 74 07 je 10c869 <_Objects_Extend_information+0x65> break; else index_base += information->allocation_size;
10c862: 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++ ) {
10c864: 42 inc %edx 10c865: 39 d6 cmp %edx,%esi
10c867: 77 f3 ja 10c85c <_Objects_Extend_information+0x58>
10c869: 89 45 cc mov %eax,-0x34(%ebp)
else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size;
10c86c: 0f b7 45 d4 movzwl -0x2c(%ebp),%eax 10c870: 01 f8 add %edi,%eax 10c872: 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 ) {
10c875: 3d ff ff 00 00 cmp $0xffff,%eax
10c87a: 0f 87 b1 01 00 00 ja 10ca31 <_Objects_Extend_information+0x22d><== ALWAYS 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;
10c880: 0f af 7b 18 imul 0x18(%ebx),%edi
if ( information->auto_extend ) {
10c884: 80 7b 12 00 cmpb $0x0,0x12(%ebx)
10c888: 0f 85 ae 01 00 00 jne 10ca3c <_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 );
10c88e: 83 ec 0c sub $0xc,%esp 10c891: 57 push %edi 10c892: 89 55 b4 mov %edx,-0x4c(%ebp) 10c895: e8 ce 1c 00 00 call 10e568 <_Workspace_Allocate_or_fatal_error> 10c89a: 89 45 c4 mov %eax,-0x3c(%ebp) 10c89d: 83 c4 10 add $0x10,%esp 10c8a0: 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 ) {
10c8a3: 0f b7 43 10 movzwl 0x10(%ebx),%eax 10c8a7: 39 45 cc cmp %eax,-0x34(%ebp)
10c8aa: 0f 82 fe 00 00 00 jb 10c9ae <_Objects_Extend_information+0x1aa> */ /* * Up the block count and maximum */ block_count++;
10c8b0: 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 );
10c8b3: 83 ec 0c sub $0xc,%esp 10c8b6: 8d 04 7f lea (%edi,%edi,2),%eax 10c8b9: 03 45 d4 add -0x2c(%ebp),%eax 10c8bc: 03 45 d0 add -0x30(%ebp),%eax 10c8bf: c1 e0 02 shl $0x2,%eax 10c8c2: 50 push %eax 10c8c3: 89 55 b4 mov %edx,-0x4c(%ebp) 10c8c6: e8 c9 1c 00 00 call 10e594 <_Workspace_Allocate> 10c8cb: 89 45 c8 mov %eax,-0x38(%ebp)
if ( !object_blocks ) {
10c8ce: 83 c4 10 add $0x10,%esp 10c8d1: 85 c0 test %eax,%eax 10c8d3: 8b 55 b4 mov -0x4c(%ebp),%edx
10c8d6: 0f 84 ef 01 00 00 je 10cacb <_Objects_Extend_information+0x2c7><== ALWAYS TAKEN
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset);
10c8dc: 8b 45 c8 mov -0x38(%ebp),%eax 10c8df: 8d 04 b8 lea (%eax,%edi,4),%eax 10c8e2: 89 45 b8 mov %eax,-0x48(%ebp) 10c8e5: 8b 4d c8 mov -0x38(%ebp),%ecx 10c8e8: 8d 3c f9 lea (%ecx,%edi,8),%edi 10c8eb: 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 ) {
10c8ee: 0f b7 43 10 movzwl 0x10(%ebx),%eax 10c8f2: 39 45 d0 cmp %eax,-0x30(%ebp)
10c8f5: 0f 82 60 01 00 00 jb 10ca5b <_Objects_Extend_information+0x257> } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) {
10c8fb: 8b 45 d0 mov -0x30(%ebp),%eax 10c8fe: 85 c0 test %eax,%eax
10c900: 74 16 je 10c918 <_Objects_Extend_information+0x114><== ALWAYS TAKEN
information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table,
10c902: 31 c0 xor %eax,%eax 10c904: 8b 4d bc mov -0x44(%ebp),%ecx 10c907: 8b 7d d0 mov -0x30(%ebp),%edi 10c90a: 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;
10c90c: 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++ ) {
10c913: 40 inc %eax 10c914: 39 c7 cmp %eax,%edi
10c916: 77 f4 ja 10c90c <_Objects_Extend_information+0x108><== ALWAYS TAKEN
10c918: c1 e6 02 shl $0x2,%esi 10c91b: 89 75 c0 mov %esi,-0x40(%ebp)
} /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL;
10c91e: 8b 45 c8 mov -0x38(%ebp),%eax 10c921: 8b 7d c0 mov -0x40(%ebp),%edi 10c924: c7 04 38 00 00 00 00 movl $0x0,(%eax,%edi,1)
inactive_per_block[block_count] = 0;
10c92b: 8b 4d b8 mov -0x48(%ebp),%ecx 10c92e: c7 04 39 00 00 00 00 movl $0x0,(%ecx,%edi,1)
for ( index=index_base ; index < ( information->allocation_size + index_base );
10c935: 0f b7 73 14 movzwl 0x14(%ebx),%esi 10c939: 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 ;
10c93c: 39 75 cc cmp %esi,-0x34(%ebp)
10c93f: 73 19 jae 10c95a <_Objects_Extend_information+0x156><== ALWAYS TAKEN
10c941: 8b 7d cc mov -0x34(%ebp),%edi 10c944: 8b 45 bc mov -0x44(%ebp),%eax 10c947: 8d 0c b8 lea (%eax,%edi,4),%ecx 10c94a: 89 f8 mov %edi,%eax
index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL;
10c94c: 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++ ) {
10c952: 40 inc %eax 10c953: 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 ;
10c956: 39 f0 cmp %esi,%eax
10c958: 72 f2 jb 10c94c <_Objects_Extend_information+0x148> index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level );
10c95a: 9c pushf 10c95b: fa cli 10c95c: 5f pop %edi
old_tables = information->object_blocks;
10c95d: 8b 4b 34 mov 0x34(%ebx),%ecx
information->object_blocks = object_blocks;
10c960: 8b 45 c8 mov -0x38(%ebp),%eax 10c963: 89 43 34 mov %eax,0x34(%ebx)
information->inactive_per_block = inactive_per_block;
10c966: 8b 45 b8 mov -0x48(%ebp),%eax 10c969: 89 43 30 mov %eax,0x30(%ebx)
information->local_table = local_table;
10c96c: 8b 45 bc mov -0x44(%ebp),%eax 10c96f: 89 43 1c mov %eax,0x1c(%ebx)
information->maximum = (Objects_Maximum) maximum;
10c972: 8b 45 d4 mov -0x2c(%ebp),%eax 10c975: 66 89 43 10 mov %ax,0x10(%ebx)
information->maximum_id = _Objects_Build_id(
10c979: 8b 33 mov (%ebx),%esi 10c97b: c1 e6 18 shl $0x18,%esi 10c97e: 81 ce 00 00 01 00 or $0x10000,%esi 10c984: 0f b7 43 04 movzwl 0x4(%ebx),%eax 10c988: c1 e0 1b shl $0x1b,%eax 10c98b: 09 c6 or %eax,%esi 10c98d: 0f b7 45 d4 movzwl -0x2c(%ebp),%eax 10c991: 09 c6 or %eax,%esi 10c993: 89 73 0c mov %esi,0xc(%ebx)
information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level );
10c996: 57 push %edi 10c997: 9d popf
if ( old_tables )
10c998: 85 c9 test %ecx,%ecx
10c99a: 74 12 je 10c9ae <_Objects_Extend_information+0x1aa> _Workspace_Free( old_tables );
10c99c: 83 ec 0c sub $0xc,%esp 10c99f: 51 push %ecx 10c9a0: 89 55 b4 mov %edx,-0x4c(%ebp) 10c9a3: e8 08 1c 00 00 call 10e5b0 <_Workspace_Free> 10c9a8: 83 c4 10 add $0x10,%esp 10c9ab: 8b 55 b4 mov -0x4c(%ebp),%edx
} /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block;
10c9ae: c1 e2 02 shl $0x2,%edx 10c9b1: 89 55 d0 mov %edx,-0x30(%ebp) 10c9b4: 8b 43 34 mov 0x34(%ebx),%eax 10c9b7: 8b 4d c4 mov -0x3c(%ebp),%ecx 10c9ba: 89 0c 10 mov %ecx,(%eax,%edx,1)
/* * Initialize objects .. add to a local chain first. */ _Chain_Initialize(
10c9bd: ff 73 18 pushl 0x18(%ebx) 10c9c0: 0f b7 53 14 movzwl 0x14(%ebx),%edx 10c9c4: 52 push %edx 10c9c5: 8b 7d d0 mov -0x30(%ebp),%edi 10c9c8: ff 34 38 pushl (%eax,%edi,1) 10c9cb: 8d 7d dc lea -0x24(%ebp),%edi 10c9ce: 57 push %edi 10c9cf: e8 14 37 00 00 call 1100e8 <_Chain_Initialize>
information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node );
10c9d4: 8d 43 20 lea 0x20(%ebx),%eax 10c9d7: 89 45 d4 mov %eax,-0x2c(%ebp) 10c9da: 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 ) {
10c9dd: 83 c4 10 add $0x10,%esp 10c9e0: eb 2b jmp 10ca0d <_Objects_Extend_information+0x209>
10c9e2: 66 90 xchg %ax,%ax <== NOT EXECUTED
the_object->id = _Objects_Build_id(
10c9e4: 8b 13 mov (%ebx),%edx 10c9e6: c1 e2 18 shl $0x18,%edx 10c9e9: 81 ca 00 00 01 00 or $0x10000,%edx 10c9ef: 0f b7 4b 04 movzwl 0x4(%ebx),%ecx 10c9f3: c1 e1 1b shl $0x1b,%ecx 10c9f6: 09 ca or %ecx,%edx 10c9f8: 09 f2 or %esi,%edx 10c9fa: 89 50 08 mov %edx,0x8(%eax)
information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node );
10c9fd: 83 ec 08 sub $0x8,%esp 10ca00: 50 push %eax 10ca01: ff 75 d4 pushl -0x2c(%ebp) 10ca04: e8 c3 f4 ff ff call 10becc <_Chain_Append>
index++;
10ca09: 46 inc %esi 10ca0a: 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 ) {
10ca0d: 83 ec 0c sub $0xc,%esp 10ca10: 57 push %edi 10ca11: e8 da f4 ff ff call 10bef0 <_Chain_Get> 10ca16: 83 c4 10 add $0x10,%esp 10ca19: 85 c0 test %eax,%eax
10ca1b: 75 c7 jne 10c9e4 <_Objects_Extend_information+0x1e0> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size;
10ca1d: 8b 43 30 mov 0x30(%ebx),%eax 10ca20: 0f b7 53 14 movzwl 0x14(%ebx),%edx 10ca24: 8b 4d d0 mov -0x30(%ebp),%ecx 10ca27: 89 14 08 mov %edx,(%eax,%ecx,1)
information->inactive =
10ca2a: 8b 43 14 mov 0x14(%ebx),%eax 10ca2d: 66 01 43 2c add %ax,0x2c(%ebx)
(Objects_Maximum)(information->inactive + information->allocation_size); }
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 <== NOT EXECUTED
* 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 );
10ca3c: 83 ec 0c sub $0xc,%esp 10ca3f: 57 push %edi 10ca40: 89 55 b4 mov %edx,-0x4c(%ebp) 10ca43: e8 4c 1b 00 00 call 10e594 <_Workspace_Allocate> 10ca48: 89 45 c4 mov %eax,-0x3c(%ebp)
if ( !new_object_block )
10ca4b: 83 c4 10 add $0x10,%esp 10ca4e: 85 c0 test %eax,%eax 10ca50: 8b 55 b4 mov -0x4c(%ebp),%edx
10ca53: 0f 85 4a fe ff ff jne 10c8a3 <_Objects_Extend_information+0x9f>
10ca59: eb d6 jmp 10ca31 <_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,
10ca5b: c1 e6 02 shl $0x2,%esi 10ca5e: 89 75 c0 mov %esi,-0x40(%ebp) 10ca61: 8b 73 34 mov 0x34(%ebx),%esi 10ca64: 8b 7d c8 mov -0x38(%ebp),%edi 10ca67: 8b 4d c0 mov -0x40(%ebp),%ecx 10ca6a: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block,
10ca6c: 8b 73 30 mov 0x30(%ebx),%esi 10ca6f: 8b 7d b8 mov -0x48(%ebp),%edi 10ca72: 8b 4d c0 mov -0x40(%ebp),%ecx 10ca75: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table,
10ca77: 0f b7 43 10 movzwl 0x10(%ebx),%eax 10ca7b: 03 45 d0 add -0x30(%ebp),%eax 10ca7e: 8d 0c 85 00 00 00 00 lea 0x0(,%eax,4),%ecx 10ca85: 8b 73 1c mov 0x1c(%ebx),%esi 10ca88: 8b 7d bc mov -0x44(%ebp),%edi 10ca8b: f3 a4 rep movsb %ds:(%esi),%es:(%edi) 10ca8d: e9 8c fe ff ff jmp 10c91e <_Objects_Extend_information+0x11a>
10ca92: 66 90 xchg %ax,%ax <== NOT EXECUTED
minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL )
10ca94: 8b 53 10 mov 0x10(%ebx),%edx 10ca97: 66 89 55 d4 mov %dx,-0x2c(%ebp) 10ca9b: 0f b7 7b 14 movzwl 0x14(%ebx),%edi 10ca9f: 89 45 cc mov %eax,-0x34(%ebp) 10caa2: 31 d2 xor %edx,%edx 10caa4: 31 f6 xor %esi,%esi 10caa6: e9 c1 fd ff ff jmp 10c86c <_Objects_Extend_information+0x68>
block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) {
10caab: 0f b7 ff movzwl %di,%edi <== NOT EXECUTED 10caae: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED 10cab1: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED 10cab4: 31 d2 xor %edx,%edx <== NOT EXECUTED 10cab6: e9 b1 fd ff ff jmp 10c86c <_Objects_Extend_information+0x68><== NOT EXECUTED
if ( information->object_blocks[ block ] == NULL )
10cabb: 0f b7 ff movzwl %di,%edi <== NOT EXECUTED 10cabe: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED 10cac1: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED 10cac4: 31 d2 xor %edx,%edx <== NOT EXECUTED 10cac6: e9 a1 fd ff ff jmp 10c86c <_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 );
10cacb: 83 ec 0c sub $0xc,%esp 10cace: ff 75 c4 pushl -0x3c(%ebp) 10cad1: e8 da 1a 00 00 call 10e5b0 <_Workspace_Free>
return;
10cad6: 83 c4 10 add $0x10,%esp 10cad9: e9 53 ff ff ff jmp 10ca31 <_Objects_Extend_information+0x22d>
0010cc10 <_Objects_Get>: Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) {
10cc10: 55 push %ebp 10cc11: 89 e5 mov %esp,%ebp 10cc13: 53 push %ebx 10cc14: 83 ec 14 sub $0x14,%esp 10cc17: 8b 55 08 mov 0x8(%ebp),%edx 10cc1a: 8b 5d 10 mov 0x10(%ebp),%ebx
* always NULL. * * If the Id is valid but the object has not been created yet, then * the local_table entry will be NULL. */ index = id - information->minimum_id + 1;
10cc1d: b8 01 00 00 00 mov $0x1,%eax 10cc22: 2b 42 08 sub 0x8(%edx),%eax 10cc25: 03 45 0c add 0xc(%ebp),%eax
/* * If the index is less than maximum, then it is OK to use it to * index into the local_table array. */ if ( index <= information->maximum ) {
10cc28: 0f b7 4a 10 movzwl 0x10(%edx),%ecx 10cc2c: 39 c8 cmp %ecx,%eax
10cc2e: 77 24 ja 10cc54 <_Objects_Get+0x44>
10cc30: 8b 0d 58 53 12 00 mov 0x125358,%ecx 10cc36: 41 inc %ecx 10cc37: 89 0d 58 53 12 00 mov %ecx,0x125358
_Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) {
10cc3d: 8b 52 1c mov 0x1c(%edx),%edx 10cc40: 8b 04 82 mov (%edx,%eax,4),%eax 10cc43: 85 c0 test %eax,%eax
10cc45: 74 1b je 10cc62 <_Objects_Get+0x52> *location = OBJECTS_LOCAL;
10cc47: c7 03 00 00 00 00 movl $0x0,(%ebx)
_Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif }
10cc4d: 83 c4 14 add $0x14,%esp 10cc50: 5b pop %ebx 10cc51: c9 leave 10cc52: c3 ret
10cc53: 90 nop <== NOT EXECUTED
/* * Object Id is not within this API and Class on this node. So * it may be global in a multiprocessing system. But it is clearly * invalid on a single processor system. */ *location = OBJECTS_ERROR;
10cc54: c7 03 01 00 00 00 movl $0x1,(%ebx) 10cc5a: 31 c0 xor %eax,%eax
_Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif }
10cc5c: 83 c4 14 add $0x14,%esp 10cc5f: 5b pop %ebx 10cc60: c9 leave 10cc61: c3 ret
/* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch();
10cc62: 89 45 f4 mov %eax,-0xc(%ebp) 10cc65: e8 ee 07 00 00 call 10d458 <_Thread_Enable_dispatch>
*location = OBJECTS_ERROR;
10cc6a: c7 03 01 00 00 00 movl $0x1,(%ebx)
return NULL;
10cc70: 8b 45 f4 mov -0xc(%ebp),%eax 10cc73: eb d8 jmp 10cc4d <_Objects_Get+0x3d>
0010cb70 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) {
10cb70: 55 push %ebp 10cb71: 89 e5 mov %esp,%ebp 10cb73: 56 push %esi 10cb74: 53 push %ebx 10cb75: 8b 75 08 mov 0x8(%ebp),%esi 10cb78: 8b 5d 0c mov 0xc(%ebp),%ebx
Objects_Information *info; int the_class_api_maximum; if ( !the_class )
10cb7b: 85 db test %ebx,%ebx
10cb7d: 75 09 jne 10cb88 <_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 )
10cb7f: 31 c0 xor %eax,%eax
return NULL; #endif return info; }
10cb81: 8d 65 f8 lea -0x8(%ebp),%esp 10cb84: 5b pop %ebx 10cb85: 5e pop %esi 10cb86: c9 leave 10cb87: 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 );
10cb88: 83 ec 0c sub $0xc,%esp 10cb8b: 56 push %esi 10cb8c: e8 b7 3a 00 00 call 110648 <_Objects_API_maximum_class>
if ( the_class_api_maximum == 0 )
10cb91: 83 c4 10 add $0x10,%esp 10cb94: 85 c0 test %eax,%eax
10cb96: 74 e7 je 10cb7f <_Objects_Get_information+0xf> return NULL; if ( the_class > (uint32_t) the_class_api_maximum )
10cb98: 39 c3 cmp %eax,%ebx
10cb9a: 77 e3 ja 10cb7f <_Objects_Get_information+0xf> return NULL; if ( !_Objects_Information_table[ the_api ] )
10cb9c: 8b 04 b5 2c 53 12 00 mov 0x12532c(,%esi,4),%eax 10cba3: 85 c0 test %eax,%eax
10cba5: 74 d8 je 10cb7f <_Objects_Get_information+0xf><== ALWAYS TAKEN
return NULL; info = _Objects_Information_table[ the_api ][ the_class ];
10cba7: 8b 04 98 mov (%eax,%ebx,4),%eax
if ( !info )
10cbaa: 85 c0 test %eax,%eax
10cbac: 74 d3 je 10cb81 <_Objects_Get_information+0x11><== ALWAYS 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 )
10cbae: 66 83 78 10 00 cmpw $0x0,0x10(%eax)
10cbb3: 75 cc jne 10cb81 <_Objects_Get_information+0x11>
10cbb5: eb c8 jmp 10cb7f <_Objects_Get_information+0xf>
0010cbb8 <_Objects_Get_isr_disable>: Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) {
10cbb8: 55 push %ebp 10cbb9: 89 e5 mov %esp,%ebp 10cbbb: 56 push %esi 10cbbc: 53 push %ebx 10cbbd: 8b 55 08 mov 0x8(%ebp),%edx 10cbc0: 8b 5d 10 mov 0x10(%ebp),%ebx
Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1;
10cbc3: b8 01 00 00 00 mov $0x1,%eax 10cbc8: 2b 42 08 sub 0x8(%edx),%eax 10cbcb: 03 45 0c add 0xc(%ebp),%eax
_ISR_Disable( level );
10cbce: 9c pushf 10cbcf: fa cli 10cbd0: 5e pop %esi
if ( information->maximum >= index ) {
10cbd1: 0f b7 4a 10 movzwl 0x10(%edx),%ecx 10cbd5: 39 c8 cmp %ecx,%eax
10cbd7: 77 1b ja 10cbf4 <_Objects_Get_isr_disable+0x3c> if ( (the_object = information->local_table[ index ]) != NULL ) {
10cbd9: 8b 52 1c mov 0x1c(%edx),%edx 10cbdc: 8b 04 82 mov (%edx,%eax,4),%eax 10cbdf: 85 c0 test %eax,%eax
10cbe1: 74 21 je 10cc04 <_Objects_Get_isr_disable+0x4c> *location = OBJECTS_LOCAL;
10cbe3: c7 03 00 00 00 00 movl $0x0,(%ebx)
*level_p = level;
10cbe9: 8b 55 14 mov 0x14(%ebp),%edx 10cbec: 89 32 mov %esi,(%edx)
_Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif }
10cbee: 5b pop %ebx 10cbef: 5e pop %esi 10cbf0: c9 leave 10cbf1: c3 ret
10cbf2: 66 90 xchg %ax,%ax <== NOT EXECUTED
} _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level );
10cbf4: 56 push %esi 10cbf5: 9d popf
*location = OBJECTS_ERROR;
10cbf6: c7 03 01 00 00 00 movl $0x1,(%ebx) 10cbfc: 31 c0 xor %eax,%eax
_Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif }
10cbfe: 5b pop %ebx 10cbff: 5e pop %esi 10cc00: c9 leave 10cc01: c3 ret
10cc02: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; *level_p = level; return the_object; } _ISR_Enable( level );
10cc04: 56 push %esi 10cc05: 9d popf
*location = OBJECTS_ERROR;
10cc06: c7 03 01 00 00 00 movl $0x1,(%ebx)
return NULL;
10cc0c: eb e0 jmp 10cbee <_Objects_Get_isr_disable+0x36>
00117e14 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) {
117e14: 55 push %ebp 117e15: 89 e5 mov %esp,%ebp 117e17: 57 push %edi 117e18: 56 push %esi 117e19: 53 push %ebx 117e1a: 83 ec 2c sub $0x2c,%esp 117e1d: 8b 7d 08 mov 0x8(%ebp),%edi 117e20: 8b 75 0c mov 0xc(%ebp),%esi 117e23: 8b 5d 10 mov 0x10(%ebp),%ebx
char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 )
117e26: 85 f6 test %esi,%esi
117e28: 75 0e jne 117e38 <_Objects_Get_name_as_string+0x24> } } *d = '\0'; _Thread_Enable_dispatch(); return name;
117e2a: 31 db xor %ebx,%ebx
} return NULL; /* unreachable path */ }
117e2c: 89 d8 mov %ebx,%eax 117e2e: 8d 65 f4 lea -0xc(%ebp),%esp 117e31: 5b pop %ebx 117e32: 5e pop %esi 117e33: 5f pop %edi 117e34: c9 leave 117e35: c3 ret
117e36: 66 90 xchg %ax,%ax <== NOT EXECUTED
Objects_Id tmpId; if ( length == 0 ) return NULL; if ( name == NULL )
117e38: 85 db test %ebx,%ebx
117e3a: 74 f0 je 117e2c <_Objects_Get_name_as_string+0x18> return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
117e3c: 85 ff test %edi,%edi
117e3e: 75 08 jne 117e48 <_Objects_Get_name_as_string+0x34>
117e40: a1 98 3b 13 00 mov 0x133b98,%eax 117e45: 8b 78 08 mov 0x8(%eax),%edi
information = _Objects_Get_information_id( tmpId );
117e48: 83 ec 0c sub $0xc,%esp 117e4b: 57 push %edi 117e4c: e8 cf 99 ff ff call 111820 <_Objects_Get_information_id>
if ( !information )
117e51: 83 c4 10 add $0x10,%esp 117e54: 85 c0 test %eax,%eax
117e56: 74 d2 je 117e2a <_Objects_Get_name_as_string+0x16> return NULL; the_object = _Objects_Get( information, tmpId, &location );
117e58: 51 push %ecx 117e59: 8d 55 e4 lea -0x1c(%ebp),%edx 117e5c: 52 push %edx 117e5d: 57 push %edi 117e5e: 50 push %eax 117e5f: e8 7c 9a ff ff call 1118e0 <_Objects_Get>
switch ( location ) {
117e64: 83 c4 10 add $0x10,%esp 117e67: 8b 55 e4 mov -0x1c(%ebp),%edx 117e6a: 85 d2 test %edx,%edx
117e6c: 75 bc jne 117e2a <_Objects_Get_name_as_string+0x16> if ( information->is_string ) { s = the_object->name.name_p; } else #endif { uint32_t u32_name = (uint32_t) the_object->name.name_u32;
117e6e: 8b 50 0c mov 0xc(%eax),%edx
lname[ 0 ] = (u32_name >> 24) & 0xff;
117e71: 89 d1 mov %edx,%ecx 117e73: c1 e9 18 shr $0x18,%ecx 117e76: 88 c8 mov %cl,%al 117e78: 88 4d df mov %cl,-0x21(%ebp)
lname[ 1 ] = (u32_name >> 16) & 0xff;
117e7b: 89 d1 mov %edx,%ecx 117e7d: c1 e9 10 shr $0x10,%ecx 117e80: 88 4d e0 mov %cl,-0x20(%ebp)
lname[ 2 ] = (u32_name >> 8) & 0xff;
117e83: 89 d1 mov %edx,%ecx 117e85: c1 e9 08 shr $0x8,%ecx 117e88: 88 4d e1 mov %cl,-0x1f(%ebp)
lname[ 3 ] = (u32_name >> 0) & 0xff;
117e8b: 88 55 e2 mov %dl,-0x1e(%ebp)
lname[ 4 ] = '\0';
117e8e: c6 45 e3 00 movb $0x0,-0x1d(%ebp)
s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
117e92: 4e dec %esi 117e93: 89 75 d4 mov %esi,-0x2c(%ebp)
117e96: 74 3c je 117ed4 <_Objects_Get_name_as_string+0xc0><== ALWAYS TAKEN
117e98: 84 c0 test %al,%al
117e9a: 74 38 je 117ed4 <_Objects_Get_name_as_string+0xc0>
117e9c: 89 d9 mov %ebx,%ecx 117e9e: 31 d2 xor %edx,%edx 117ea0: eb 0a jmp 117eac <_Objects_Get_name_as_string+0x98>
117ea2: 66 90 xchg %ax,%ax <== NOT EXECUTED
117ea4: 8a 44 15 df mov -0x21(%ebp,%edx,1),%al 117ea8: 84 c0 test %al,%al
117eaa: 74 1b je 117ec7 <_Objects_Get_name_as_string+0xb3> *d = (isprint((unsigned char)*s)) ? *s : '*';
117eac: 0f b6 f0 movzbl %al,%esi 117eaf: 8b 3d 38 11 13 00 mov 0x131138,%edi 117eb5: f6 44 37 01 97 testb $0x97,0x1(%edi,%esi,1)
117eba: 75 02 jne 117ebe <_Objects_Get_name_as_string+0xaa>
117ebc: b0 2a mov $0x2a,%al 117ebe: 88 01 mov %al,(%ecx)
s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
117ec0: 42 inc %edx 117ec1: 41 inc %ecx 117ec2: 3b 55 d4 cmp -0x2c(%ebp),%edx
117ec5: 72 dd jb 117ea4 <_Objects_Get_name_as_string+0x90> *d = (isprint((unsigned char)*s)) ? *s : '*'; } } *d = '\0';
117ec7: c6 01 00 movb $0x0,(%ecx)
_Thread_Enable_dispatch();
117eca: e8 c1 a2 ff ff call 112190 <_Thread_Enable_dispatch>
return name;
117ecf: e9 58 ff ff ff jmp 117e2c <_Objects_Get_name_as_string+0x18>
s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
117ed4: 89 d9 mov %ebx,%ecx 117ed6: eb ef jmp 117ec7 <_Objects_Get_name_as_string+0xb3>
0011a460 <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) {
11a460: 55 push %ebp 11a461: 89 e5 mov %esp,%ebp 11a463: 57 push %edi 11a464: 56 push %esi 11a465: 53 push %ebx 11a466: 83 ec 0c sub $0xc,%esp 11a469: 8b 5d 08 mov 0x8(%ebp),%ebx 11a46c: 8b 75 0c mov 0xc(%ebp),%esi 11a46f: 8b 7d 10 mov 0x10(%ebp),%edi
Objects_Control *object; Objects_Id next_id; if ( !information )
11a472: 85 db test %ebx,%ebx
11a474: 75 0a jne 11a480 <_Objects_Get_next+0x20> *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0;
11a476: 31 c0 xor %eax,%eax
}
11a478: 8d 65 f4 lea -0xc(%ebp),%esp 11a47b: 5b pop %ebx 11a47c: 5e pop %esi 11a47d: 5f pop %edi 11a47e: c9 leave 11a47f: c3 ret
Objects_Id next_id; if ( !information ) return NULL; if ( !location_p )
11a480: 85 ff test %edi,%edi
11a482: 74 f2 je 11a476 <_Objects_Get_next+0x16> return NULL; if ( !next_id_p )
11a484: 8b 45 14 mov 0x14(%ebp),%eax 11a487: 85 c0 test %eax,%eax
11a489: 74 eb je 11a476 <_Objects_Get_next+0x16> return NULL; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX)
11a48b: 66 85 f6 test %si,%si
11a48e: 75 04 jne 11a494 <_Objects_Get_next+0x34> next_id = information->minimum_id;
11a490: 8b 73 08 mov 0x8(%ebx),%esi 11a493: 90 nop
else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum)
11a494: 66 39 73 10 cmp %si,0x10(%ebx)
11a498: 72 22 jb 11a4bc <_Objects_Get_next+0x5c> *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p);
11a49a: 51 push %ecx 11a49b: 57 push %edi 11a49c: 56 push %esi 11a49d: 53 push %ebx 11a49e: e8 3d 74 ff ff call 1118e0 <_Objects_Get>
next_id++;
11a4a3: 46 inc %esi
} while (*location_p != OBJECTS_LOCAL);
11a4a4: 83 c4 10 add $0x10,%esp 11a4a7: 8b 17 mov (%edi),%edx 11a4a9: 85 d2 test %edx,%edx
11a4ab: 75 e7 jne 11a494 <_Objects_Get_next+0x34> *next_id_p = next_id;
11a4ad: 8b 55 14 mov 0x14(%ebp),%edx 11a4b0: 89 32 mov %esi,(%edx)
return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; }
11a4b2: 8d 65 f4 lea -0xc(%ebp),%esp 11a4b5: 5b pop %ebx 11a4b6: 5e pop %esi 11a4b7: 5f pop %edi 11a4b8: c9 leave 11a4b9: c3 ret
11a4ba: 66 90 xchg %ax,%ax <== NOT EXECUTED
do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) { *location_p = OBJECTS_ERROR;
11a4bc: c7 07 01 00 00 00 movl $0x1,(%edi)
*next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL;
11a4c2: 8b 45 14 mov 0x14(%ebp),%eax 11a4c5: c7 00 ff ff ff ff movl $0xffffffff,(%eax) 11a4cb: 31 c0 xor %eax,%eax
return 0;
11a4cd: eb a9 jmp 11a478 <_Objects_Get_next+0x18>
0011b1a8 <_Objects_Get_no_protection>: Objects_Control *_Objects_Get_no_protection( Objects_Information *information, Objects_Id id, Objects_Locations *location ) {
11b1a8: 55 push %ebp 11b1a9: 89 e5 mov %esp,%ebp 11b1ab: 53 push %ebx 11b1ac: 8b 55 08 mov 0x8(%ebp),%edx 11b1af: 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;
11b1b2: b8 01 00 00 00 mov $0x1,%eax 11b1b7: 2b 42 08 sub 0x8(%edx),%eax 11b1ba: 03 45 0c add 0xc(%ebp),%eax
if ( information->maximum >= index ) {
11b1bd: 0f b7 4a 10 movzwl 0x10(%edx),%ecx 11b1c1: 39 c8 cmp %ecx,%eax
11b1c3: 77 13 ja 11b1d8 <_Objects_Get_no_protection+0x30> if ( (the_object = information->local_table[ index ]) != NULL ) {
11b1c5: 8b 52 1c mov 0x1c(%edx),%edx 11b1c8: 8b 04 82 mov (%edx,%eax,4),%eax 11b1cb: 85 c0 test %eax,%eax
11b1cd: 74 09 je 11b1d8 <_Objects_Get_no_protection+0x30><== ALWAYS TAKEN
*location = OBJECTS_LOCAL;
11b1cf: 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; }
11b1d5: 5b pop %ebx 11b1d6: c9 leave 11b1d7: 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;
11b1d8: c7 03 01 00 00 00 movl $0x1,(%ebx) 11b1de: 31 c0 xor %eax,%eax
return NULL; }
11b1e0: 5b pop %ebx 11b1e1: c9 leave 11b1e2: c3 ret
00111948 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
111948: 55 push %ebp 111949: 89 e5 mov %esp,%ebp 11194b: 83 ec 18 sub $0x18,%esp 11194e: 8b 55 08 mov 0x8(%ebp),%edx
/* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
111951: 85 d2 test %edx,%edx
111953: 75 08 jne 11195d <_Objects_Id_to_name+0x15>
111955: a1 98 3b 13 00 mov 0x133b98,%eax 11195a: 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);
11195d: 89 d0 mov %edx,%eax 11195f: c1 e8 18 shr $0x18,%eax 111962: 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 )
111965: 8d 48 ff lea -0x1(%eax),%ecx 111968: 83 f9 03 cmp $0x3,%ecx
11196b: 77 3b ja 1119a8 <_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 ] )
11196d: 8b 04 85 ac 3a 13 00 mov 0x133aac(,%eax,4),%eax 111974: 85 c0 test %eax,%eax
111976: 74 30 je 1119a8 <_Objects_Id_to_name+0x60> return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ];
111978: 89 d1 mov %edx,%ecx 11197a: c1 e9 1b shr $0x1b,%ecx 11197d: 8b 04 88 mov (%eax,%ecx,4),%eax
if ( !information )
111980: 85 c0 test %eax,%eax
111982: 74 24 je 1119a8 <_Objects_Id_to_name+0x60><== ALWAYS 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 );
111984: 51 push %ecx 111985: 8d 4d f4 lea -0xc(%ebp),%ecx 111988: 51 push %ecx 111989: 52 push %edx 11198a: 50 push %eax 11198b: e8 50 ff ff ff call 1118e0 <_Objects_Get>
if ( !the_object )
111990: 83 c4 10 add $0x10,%esp 111993: 85 c0 test %eax,%eax
111995: 74 11 je 1119a8 <_Objects_Id_to_name+0x60> return OBJECTS_INVALID_ID; *name = the_object->name;
111997: 8b 50 0c mov 0xc(%eax),%edx 11199a: 8b 45 0c mov 0xc(%ebp),%eax 11199d: 89 10 mov %edx,(%eax)
_Thread_Enable_dispatch();
11199f: e8 ec 07 00 00 call 112190 <_Thread_Enable_dispatch> 1119a4: 31 c0 xor %eax,%eax
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; }
1119a6: c9 leave 1119a7: c3 ret
if ( !the_object ) return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
1119a8: b8 03 00 00 00 mov $0x3,%eax
}
1119ad: c9 leave 1119ae: c3 ret
0010cc78 <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) {
10cc78: 55 push %ebp 10cc79: 89 e5 mov %esp,%ebp 10cc7b: 57 push %edi 10cc7c: 56 push %esi 10cc7d: 53 push %ebx 10cc7e: 83 ec 0c sub $0xc,%esp 10cc81: 8b 45 08 mov 0x8(%ebp),%eax 10cc84: 8b 55 0c mov 0xc(%ebp),%edx 10cc87: 8b 5d 10 mov 0x10(%ebp),%ebx 10cc8a: 8b 75 20 mov 0x20(%ebp),%esi 10cc8d: 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;
10cc91: 89 10 mov %edx,(%eax)
information->the_class = the_class;
10cc93: 66 89 58 04 mov %bx,0x4(%eax)
information->size = size;
10cc97: 89 78 18 mov %edi,0x18(%eax)
information->local_table = 0;
10cc9a: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax)
information->inactive_per_block = 0;
10cca1: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax)
information->object_blocks = 0;
10cca8: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax)
information->inactive = 0;
10ccaf: 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;
10ccb5: 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;
10ccbb: 8b 3c 95 2c 53 12 00 mov 0x12532c(,%edx,4),%edi 10ccc2: 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;
10ccc5: 8b 7d 14 mov 0x14(%ebp),%edi 10ccc8: 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 =
10cccb: 89 f9 mov %edi,%ecx 10cccd: 88 48 12 mov %cl,0x12(%eax)
(maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false; maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;
10ccd0: 8b 4d 14 mov 0x14(%ebp),%ecx 10ccd3: 81 e1 ff ff ff 7f and $0x7fffffff,%ecx
/* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) {
10ccd9: 85 ff test %edi,%edi
10ccdb: 74 04 je 10cce1 <_Objects_Initialize_information+0x69>
10ccdd: 85 c9 test %ecx,%ecx
10ccdf: 74 6a je 10cd4b <_Objects_Initialize_information+0xd3> } /* * The allocation unit is the maximum value */ information->allocation_size = maximum_per_allocation;
10cce1: 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;
10cce5: c7 40 1c 84 4f 12 00 movl $0x124f84,0x1c(%eax)
/* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id =
10ccec: c1 e2 18 shl $0x18,%edx 10ccef: 81 ca 00 00 01 00 or $0x10000,%edx 10ccf5: c1 e3 1b shl $0x1b,%ebx 10ccf8: 09 da or %ebx,%edx 10ccfa: 31 db xor %ebx,%ebx 10ccfc: 85 c9 test %ecx,%ecx 10ccfe: 0f 95 c3 setne %bl 10cd01: 09 da or %ebx,%edx 10cd03: 89 50 08 mov %edx,0x8(%eax)
/* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
10cd06: f7 c6 03 00 00 00 test $0x3,%esi
10cd0c: 75 26 jne 10cd34 <_Objects_Initialize_information+0xbc><== ALWAYS TAKEN
name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length;
10cd0e: 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);
10cd12: 8d 50 24 lea 0x24(%eax),%edx 10cd15: 89 50 20 mov %edx,0x20(%eax)
the_chain->permanent_null = NULL;
10cd18: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax)
the_chain->last = _Chain_Head(the_chain);
10cd1f: 8d 50 20 lea 0x20(%eax),%edx 10cd22: 89 50 28 mov %edx,0x28(%eax)
_Chain_Initialize_empty( &information->Inactive ); /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) {
10cd25: 85 c9 test %ecx,%ecx
10cd27: 75 13 jne 10cd3c <_Objects_Initialize_information+0xc4> _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif }
10cd29: 8d 65 f4 lea -0xc(%ebp),%esp 10cd2c: 5b pop %ebx 10cd2d: 5e pop %esi 10cd2e: 5f pop %edi 10cd2f: c9 leave 10cd30: c3 ret
10cd31: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
10cd34: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 10cd37: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED 10cd3a: eb d2 jmp 10cd0e <_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 );
10cd3c: 89 45 08 mov %eax,0x8(%ebp)
_Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif }
10cd3f: 8d 65 f4 lea -0xc(%ebp),%esp 10cd42: 5b pop %ebx 10cd43: 5e pop %esi 10cd44: 5f pop %edi 10cd45: 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 );
10cd46: e9 b9 fa ff ff jmp 10c804 <_Objects_Extend_information>
/* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { _Internal_error_Occurred(
10cd4b: 50 push %eax 10cd4c: 6a 14 push $0x14 10cd4e: 6a 01 push $0x1 10cd50: 6a 00 push $0x0 10cd52: e8 71 f9 ff ff call 10c6c8 <_Internal_error_Occurred>
0010cd68 <_Objects_Name_to_id_u32>: Objects_Information *information, uint32_t name, uint32_t node, Objects_Id *id ) {
10cd68: 55 push %ebp 10cd69: 89 e5 mov %esp,%ebp 10cd6b: 57 push %edi 10cd6c: 56 push %esi 10cd6d: 53 push %ebx 10cd6e: 8b 45 08 mov 0x8(%ebp),%eax 10cd71: 8b 4d 0c mov 0xc(%ebp),%ecx 10cd74: 8b 55 10 mov 0x10(%ebp),%edx 10cd77: 8b 7d 14 mov 0x14(%ebp),%edi
Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id )
10cd7a: 85 ff test %edi,%edi
10cd7c: 74 56 je 10cdd4 <_Objects_Name_to_id_u32+0x6c> return OBJECTS_INVALID_ADDRESS; if ( name == 0 )
10cd7e: 85 c9 test %ecx,%ecx
10cd80: 74 08 je 10cd8a <_Objects_Name_to_id_u32+0x22> return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 &&
10cd82: 8b 70 10 mov 0x10(%eax),%esi 10cd85: 66 85 f6 test %si,%si
10cd88: 75 0a jne 10cd94 <_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++ ) {
10cd8a: 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 }
10cd8f: 5b pop %ebx 10cd90: 5e pop %esi 10cd91: 5f pop %edi 10cd92: c9 leave 10cd93: c3 ret
if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 &&
10cd94: 85 d2 test %edx,%edx
10cd96: 75 20 jne 10cdb8 <_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++ ) {
10cd98: 0f b7 f6 movzwl %si,%esi 10cd9b: 8b 58 1c mov 0x1c(%eax),%ebx 10cd9e: b8 01 00 00 00 mov $0x1,%eax 10cda3: 90 nop
the_object = information->local_table[ index ];
10cda4: 8b 14 83 mov (%ebx,%eax,4),%edx
if ( !the_object )
10cda7: 85 d2 test %edx,%edx
10cda9: 74 05 je 10cdb0 <_Objects_Name_to_id_u32+0x48> continue; if ( name == the_object->name.name_u32 ) {
10cdab: 39 4a 0c cmp %ecx,0xc(%edx)
10cdae: 74 18 je 10cdc8 <_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++ ) {
10cdb0: 40 inc %eax 10cdb1: 39 c6 cmp %eax,%esi
10cdb3: 73 ef jae 10cda4 <_Objects_Name_to_id_u32+0x3c>
10cdb5: eb d3 jmp 10cd8a <_Objects_Name_to_id_u32+0x22>
10cdb7: 90 nop <== NOT EXECUTED
if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 &&
10cdb8: 81 fa ff ff ff 7f cmp $0x7fffffff,%edx
10cdbe: 74 d8 je 10cd98 <_Objects_Name_to_id_u32+0x30>
10cdc0: 4a dec %edx
10cdc1: 75 c7 jne 10cd8a <_Objects_Name_to_id_u32+0x22>
10cdc3: eb d3 jmp 10cd98 <_Objects_Name_to_id_u32+0x30>
10cdc5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
the_object = information->local_table[ index ]; if ( !the_object ) continue; if ( name == the_object->name.name_u32 ) { *id = the_object->id;
10cdc8: 8b 42 08 mov 0x8(%edx),%eax 10cdcb: 89 07 mov %eax,(%edi) 10cdcd: 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 }
10cdcf: 5b pop %ebx 10cdd0: 5e pop %esi 10cdd1: 5f pop %edi 10cdd2: c9 leave 10cdd3: c3 ret
Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id )
10cdd4: 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 }
10cdd9: 5b pop %ebx 10cdda: 5e pop %esi 10cddb: 5f pop %edi 10cddc: c9 leave 10cddd: c3 ret
0010ebc8 <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) {
10ebc8: 55 push %ebp 10ebc9: 89 e5 mov %esp,%ebp 10ebcb: 53 push %ebx 10ebcc: 83 ec 0c sub $0xc,%esp 10ebcf: 8b 5d 10 mov 0x10(%ebp),%ebx
size_t length; const char *s; s = name; length = strnlen( name, information->name_length );
10ebd2: 8b 45 08 mov 0x8(%ebp),%eax 10ebd5: 0f b7 40 38 movzwl 0x38(%eax),%eax 10ebd9: 50 push %eax 10ebda: 53 push %ebx 10ebdb: e8 b8 66 00 00 call 115298 <strnlen>
d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name(
10ebe0: 0f be 0b movsbl (%ebx),%ecx 10ebe3: c1 e1 18 shl $0x18,%ecx 10ebe6: 83 c4 10 add $0x10,%esp 10ebe9: 83 f8 01 cmp $0x1,%eax
10ebec: 76 32 jbe 10ec20 <_Objects_Set_name+0x58>
10ebee: 0f be 53 01 movsbl 0x1(%ebx),%edx 10ebf2: c1 e2 10 shl $0x10,%edx 10ebf5: 09 ca or %ecx,%edx 10ebf7: 83 f8 02 cmp $0x2,%eax
10ebfa: 74 2c je 10ec28 <_Objects_Set_name+0x60>
10ebfc: 0f be 4b 02 movsbl 0x2(%ebx),%ecx 10ec00: c1 e1 08 shl $0x8,%ecx 10ec03: 09 d1 or %edx,%ecx 10ec05: 83 f8 03 cmp $0x3,%eax
10ec08: 74 37 je 10ec41 <_Objects_Set_name+0x79>
10ec0a: 0f be 43 03 movsbl 0x3(%ebx),%eax 10ec0e: 09 c1 or %eax,%ecx 10ec10: 8b 55 0c mov 0xc(%ebp),%edx 10ec13: 89 4a 0c mov %ecx,0xc(%edx)
); } return true; }
10ec16: b0 01 mov $0x1,%al 10ec18: 8b 5d fc mov -0x4(%ebp),%ebx 10ec1b: c9 leave 10ec1c: c3 ret
10ec1d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name(
10ec20: 89 ca mov %ecx,%edx 10ec22: 81 ca 00 00 20 00 or $0x200000,%edx 10ec28: 89 d1 mov %edx,%ecx 10ec2a: 80 cd 20 or $0x20,%ch 10ec2d: b8 20 00 00 00 mov $0x20,%eax 10ec32: 09 c1 or %eax,%ecx 10ec34: 8b 55 0c mov 0xc(%ebp),%edx 10ec37: 89 4a 0c mov %ecx,0xc(%edx)
); } return true; }
10ec3a: b0 01 mov $0x1,%al 10ec3c: 8b 5d fc mov -0x4(%ebp),%ebx 10ec3f: c9 leave 10ec40: c3 ret
d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name(
10ec41: b0 20 mov $0x20,%al 10ec43: eb c9 jmp 10ec0e <_Objects_Set_name+0x46>
0010cde0 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) {
10cde0: 55 push %ebp 10cde1: 89 e5 mov %esp,%ebp 10cde3: 57 push %edi 10cde4: 56 push %esi 10cde5: 53 push %ebx 10cde6: 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 );
10cde9: 8b 45 08 mov 0x8(%ebp),%eax 10cdec: 0f b7 58 08 movzwl 0x8(%eax),%ebx
block_count = (information->maximum - index_base) /
10cdf0: 0f b7 48 14 movzwl 0x14(%eax),%ecx 10cdf4: 0f b7 40 10 movzwl 0x10(%eax),%eax 10cdf8: 29 d8 sub %ebx,%eax 10cdfa: 31 d2 xor %edx,%edx 10cdfc: f7 f1 div %ecx
information->allocation_size; for ( block = 0; block < block_count; block++ ) {
10cdfe: 85 c0 test %eax,%eax
10ce00: 74 21 je 10ce23 <_Objects_Shrink_information+0x43><== ALWAYS TAKEN
if ( information->inactive_per_block[ block ] ==
10ce02: 8b 55 08 mov 0x8(%ebp),%edx 10ce05: 8b 7a 30 mov 0x30(%edx),%edi 10ce08: 3b 0f cmp (%edi),%ecx
10ce0a: 74 1f je 10ce2b <_Objects_Shrink_information+0x4b><== ALWAYS TAKEN
information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; return;
10ce0c: 31 d2 xor %edx,%edx 10ce0e: eb 0e jmp 10ce1e <_Objects_Shrink_information+0x3e>
} index_base += information->allocation_size;
10ce10: 01 cb add %ecx,%ebx 10ce12: 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 ] ==
10ce19: 3b 0c 97 cmp (%edi,%edx,4),%ecx
10ce1c: 74 12 je 10ce30 <_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++ ) {
10ce1e: 42 inc %edx 10ce1f: 39 d0 cmp %edx,%eax
10ce21: 77 ed ja 10ce10 <_Objects_Shrink_information+0x30> return; } index_base += information->allocation_size; } }
10ce23: 8d 65 f4 lea -0xc(%ebp),%esp 10ce26: 5b pop %ebx 10ce27: 5e pop %esi 10ce28: 5f pop %edi 10ce29: c9 leave 10ce2a: 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 ] ==
10ce2b: 31 f6 xor %esi,%esi <== NOT EXECUTED 10ce2d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
information->allocation_size ) { /* * Assume the Inactive chain is never empty at this point */ the_object = (Objects_Control *) information->Inactive.first;
10ce30: 8b 55 08 mov 0x8(%ebp),%edx 10ce33: 8b 42 20 mov 0x20(%edx),%eax 10ce36: 89 75 e4 mov %esi,-0x1c(%ebp) 10ce39: eb 07 jmp 10ce42 <_Objects_Shrink_information+0x62>
10ce3b: 90 nop <== NOT EXECUTED
if ((index >= index_base) && (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); } } while ( the_object );
10ce3c: 85 ff test %edi,%edi
10ce3e: 74 2c je 10ce6c <_Objects_Shrink_information+0x8c>
10ce40: 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 );
10ce42: 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;
10ce46: 8b 38 mov (%eax),%edi
if ((index >= index_base) &&
10ce48: 39 da cmp %ebx,%edx
10ce4a: 72 f0 jb 10ce3c <_Objects_Shrink_information+0x5c> (index < (index_base + information->allocation_size))) {
10ce4c: 8b 75 08 mov 0x8(%ebp),%esi 10ce4f: 0f b7 4e 14 movzwl 0x14(%esi),%ecx 10ce53: 8d 0c 0b lea (%ebx,%ecx,1),%ecx 10ce56: 39 ca cmp %ecx,%edx
10ce58: 73 e2 jae 10ce3c <_Objects_Shrink_information+0x5c> _Chain_Extract( &extract_me->Node );
10ce5a: 83 ec 0c sub $0xc,%esp 10ce5d: 50 push %eax 10ce5e: e8 6d 32 00 00 call 1100d0 <_Chain_Extract> 10ce63: 83 c4 10 add $0x10,%esp
} } while ( the_object );
10ce66: 85 ff test %edi,%edi
10ce68: 75 d6 jne 10ce40 <_Objects_Shrink_information+0x60>
10ce6a: 66 90 xchg %ax,%ax 10ce6c: 8b 75 e4 mov -0x1c(%ebp),%esi
/* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] );
10ce6f: 83 ec 0c sub $0xc,%esp 10ce72: 8b 55 08 mov 0x8(%ebp),%edx 10ce75: 8b 42 34 mov 0x34(%edx),%eax 10ce78: ff 34 30 pushl (%eax,%esi,1) 10ce7b: e8 30 17 00 00 call 10e5b0 <_Workspace_Free>
information->object_blocks[ block ] = NULL;
10ce80: 8b 55 08 mov 0x8(%ebp),%edx 10ce83: 8b 42 34 mov 0x34(%edx),%eax 10ce86: c7 04 30 00 00 00 00 movl $0x0,(%eax,%esi,1)
information->inactive_per_block[ block ] = 0;
10ce8d: 8b 42 30 mov 0x30(%edx),%eax 10ce90: c7 04 30 00 00 00 00 movl $0x0,(%eax,%esi,1)
information->inactive -= information->allocation_size;
10ce97: 8b 42 14 mov 0x14(%edx),%eax 10ce9a: 66 29 42 2c sub %ax,0x2c(%edx)
return;
10ce9e: 83 c4 10 add $0x10,%esp
} index_base += information->allocation_size; } }
10cea1: 8d 65 f4 lea -0xc(%ebp),%esp 10cea4: 5b pop %ebx 10cea5: 5e pop %esi 10cea6: 5f pop %edi 10cea7: c9 leave 10cea8: c3 ret
0012e4a8 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) {
12e4a8: 55 push %ebp 12e4a9: 89 e5 mov %esp,%ebp 12e4ab: 56 push %esi 12e4ac: 53 push %ebx 12e4ad: 8b 5d 08 mov 0x8(%ebp),%ebx 12e4b0: 8b 75 0c mov 0xc(%ebp),%esi
if ( !the_heap )
12e4b3: 85 db test %ebx,%ebx
12e4b5: 74 35 je 12e4ec <_Protected_heap_Get_information+0x44> return false; if ( !the_info )
12e4b7: 85 f6 test %esi,%esi
12e4b9: 74 31 je 12e4ec <_Protected_heap_Get_information+0x44> return false; _RTEMS_Lock_allocator();
12e4bb: 83 ec 0c sub $0xc,%esp 12e4be: ff 35 30 e1 16 00 pushl 0x16e130 12e4c4: e8 db 23 fe ff call 1108a4 <_API_Mutex_Lock>
_Heap_Get_information( the_heap, the_info );
12e4c9: 5a pop %edx 12e4ca: 59 pop %ecx 12e4cb: 56 push %esi 12e4cc: 53 push %ebx 12e4cd: e8 1a e7 00 00 call 13cbec <_Heap_Get_information>
_RTEMS_Unlock_allocator();
12e4d2: 58 pop %eax 12e4d3: ff 35 30 e1 16 00 pushl 0x16e130 12e4d9: e8 0e 24 fe ff call 1108ec <_API_Mutex_Unlock> 12e4de: b0 01 mov $0x1,%al
return true;
12e4e0: 83 c4 10 add $0x10,%esp
}
12e4e3: 8d 65 f8 lea -0x8(%ebp),%esp 12e4e6: 5b pop %ebx 12e4e7: 5e pop %esi 12e4e8: c9 leave 12e4e9: c3 ret
12e4ea: 66 90 xchg %ax,%ax <== NOT EXECUTED
_RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); return true;
12e4ec: 31 c0 xor %eax,%eax
}
12e4ee: 8d 65 f8 lea -0x8(%ebp),%esp 12e4f1: 5b pop %ebx 12e4f2: 5e pop %esi 12e4f3: c9 leave 12e4f4: c3 ret
0011076c <_Protected_heap_Walk>: bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) {
11076c: 55 push %ebp 11076d: 89 e5 mov %esp,%ebp 11076f: 56 push %esi 110770: 53 push %ebx 110771: 83 ec 10 sub $0x10,%esp 110774: 8b 5d 08 mov 0x8(%ebp),%ebx 110777: 8b 75 0c mov 0xc(%ebp),%esi 11077a: 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 ) {
11077d: 8b 15 58 bc 12 00 mov 0x12bc58,%edx 110783: 85 d2 test %edx,%edx
110785: 74 19 je 1107a0 <_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 );
110787: 0f b6 c0 movzbl %al,%eax 11078a: 89 45 10 mov %eax,0x10(%ebp) 11078d: 89 75 0c mov %esi,0xc(%ebp) 110790: 89 5d 08 mov %ebx,0x8(%ebp)
} return status; }
110793: 8d 65 f8 lea -0x8(%ebp),%esp 110796: 5b pop %ebx 110797: 5e pop %esi 110798: 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 );
110799: e9 1e f2 ff ff jmp 10f9bc <_Heap_Walk>
11079e: 66 90 xchg %ax,%ax <== NOT EXECUTED
* 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();
1107a0: 83 ec 0c sub $0xc,%esp 1107a3: ff 35 10 bd 12 00 pushl 0x12bd10 1107a9: 88 45 f4 mov %al,-0xc(%ebp) 1107ac: e8 9b e4 ff ff call 10ec4c <_API_Mutex_Lock>
status = _Heap_Walk( the_heap, source, do_dump );
1107b1: 83 c4 0c add $0xc,%esp 1107b4: 8a 45 f4 mov -0xc(%ebp),%al 1107b7: 0f b6 c0 movzbl %al,%eax 1107ba: 50 push %eax 1107bb: 56 push %esi 1107bc: 53 push %ebx 1107bd: e8 fa f1 ff ff call 10f9bc <_Heap_Walk>
_RTEMS_Unlock_allocator();
1107c2: 5a pop %edx 1107c3: ff 35 10 bd 12 00 pushl 0x12bd10 1107c9: 88 45 f4 mov %al,-0xc(%ebp) 1107cc: e8 c3 e4 ff ff call 10ec94 <_API_Mutex_Unlock> 1107d1: 83 c4 10 add $0x10,%esp
} else { status = _Heap_Walk( the_heap, source, do_dump ); } return status; }
1107d4: 8a 45 f4 mov -0xc(%ebp),%al 1107d7: 8d 65 f8 lea -0x8(%ebp),%esp 1107da: 5b pop %ebx 1107db: 5e pop %esi 1107dc: c9 leave 1107dd: c3 ret
0010fe10 <_RTEMS_tasks_Initialize_user_tasks>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks( void ) {
10fe10: 55 push %ebp 10fe11: 89 e5 mov %esp,%ebp 10fe13: 83 ec 08 sub $0x8,%esp
if ( _RTEMS_tasks_Initialize_user_tasks_p )
10fe16: a1 60 12 12 00 mov 0x121260,%eax 10fe1b: 85 c0 test %eax,%eax
10fe1d: 74 05 je 10fe24 <_RTEMS_tasks_Initialize_user_tasks+0x14> (*_RTEMS_tasks_Initialize_user_tasks_p)(); }
10fe1f: c9 leave
*/ void _RTEMS_tasks_Initialize_user_tasks( void ) { if ( _RTEMS_tasks_Initialize_user_tasks_p ) (*_RTEMS_tasks_Initialize_user_tasks_p)();
10fe20: ff e0 jmp *%eax
10fe22: 66 90 xchg %ax,%ax <== NOT EXECUTED
}
10fe24: c9 leave 10fe25: c3 ret
0010b9cc <_RTEMS_tasks_Initialize_user_tasks_body>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) {
10b9cc: 55 push %ebp 10b9cd: 89 e5 mov %esp,%ebp 10b9cf: 57 push %edi 10b9d0: 56 push %esi 10b9d1: 53 push %ebx 10b9d2: 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;
10b9d5: 8b 1d 0c 12 12 00 mov 0x12120c,%ebx
maximum = Configuration_RTEMS_API.number_of_initialization_tasks;
10b9db: 8b 3d 08 12 12 00 mov 0x121208,%edi
/* * Verify that we have a set of user tasks to iterate */ if ( !user_tasks )
10b9e1: 85 db test %ebx,%ebx
10b9e3: 74 46 je 10ba2b <_RTEMS_tasks_Initialize_user_tasks_body+0x5f> return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) {
10b9e5: 85 ff test %edi,%edi
10b9e7: 74 42 je 10ba2b <_RTEMS_tasks_Initialize_user_tasks_body+0x5f><== ALWAYS TAKEN
10b9e9: 31 f6 xor %esi,%esi 10b9eb: 90 nop
return_value = rtems_task_create(
10b9ec: 83 ec 08 sub $0x8,%esp 10b9ef: 8d 45 e4 lea -0x1c(%ebp),%eax 10b9f2: 50 push %eax 10b9f3: ff 73 0c pushl 0xc(%ebx) 10b9f6: ff 73 14 pushl 0x14(%ebx) 10b9f9: ff 73 04 pushl 0x4(%ebx) 10b9fc: ff 73 08 pushl 0x8(%ebx) 10b9ff: ff 33 pushl (%ebx) 10ba01: e8 96 fd ff ff call 10b79c <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 ) )
10ba06: 83 c4 20 add $0x20,%esp 10ba09: 85 c0 test %eax,%eax
10ba0b: 75 26 jne 10ba33 <_RTEMS_tasks_Initialize_user_tasks_body+0x67> _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); return_value = rtems_task_start(
10ba0d: 51 push %ecx 10ba0e: ff 73 18 pushl 0x18(%ebx) 10ba11: ff 73 10 pushl 0x10(%ebx) 10ba14: ff 75 e4 pushl -0x1c(%ebp) 10ba17: e8 24 00 00 00 call 10ba40 <rtems_task_start>
id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) )
10ba1c: 83 c4 10 add $0x10,%esp 10ba1f: 85 c0 test %eax,%eax
10ba21: 75 10 jne 10ba33 <_RTEMS_tasks_Initialize_user_tasks_body+0x67> return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) {
10ba23: 46 inc %esi 10ba24: 83 c3 1c add $0x1c,%ebx 10ba27: 39 f7 cmp %esi,%edi
10ba29: 77 c1 ja 10b9ec <_RTEMS_tasks_Initialize_user_tasks_body+0x20><== ALWAYS TAKEN
user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); } }
10ba2b: 8d 65 f4 lea -0xc(%ebp),%esp 10ba2e: 5b pop %ebx 10ba2f: 5e pop %esi 10ba30: 5f pop %edi 10ba31: c9 leave 10ba32: 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 );
10ba33: 52 push %edx 10ba34: 50 push %eax 10ba35: 6a 01 push $0x1 10ba37: 6a 01 push $0x1 10ba39: e8 8a 0c 00 00 call 10c6c8 <_Internal_error_Occurred>
0010fe6c <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) {
10fe6c: 55 push %ebp 10fe6d: 89 e5 mov %esp,%ebp 10fe6f: 57 push %edi 10fe70: 56 push %esi 10fe71: 53 push %ebx 10fe72: 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 ];
10fe75: 8b 45 08 mov 0x8(%ebp),%eax 10fe78: 8b 98 f0 00 00 00 mov 0xf0(%eax),%ebx
if ( !api )
10fe7e: 85 db test %ebx,%ebx
10fe80: 74 45 je 10fec7 <_RTEMS_tasks_Post_switch_extension+0x5b><== ALWAYS TAKEN
* Signal Processing */ asr = &api->Signal; _ISR_Disable( level );
10fe82: 9c pushf 10fe83: fa cli 10fe84: 58 pop %eax
signal_set = asr->signals_posted;
10fe85: 8b 73 14 mov 0x14(%ebx),%esi
asr->signals_posted = 0;
10fe88: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx)
_ISR_Enable( level );
10fe8f: 50 push %eax 10fe90: 9d popf
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
10fe91: 85 f6 test %esi,%esi
10fe93: 74 32 je 10fec7 <_RTEMS_tasks_Post_switch_extension+0x5b><== ALWAYS TAKEN
return; asr->nest_level += 1;
10fe95: ff 43 1c incl 0x1c(%ebx)
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
10fe98: 50 push %eax 10fe99: 8d 7d e4 lea -0x1c(%ebp),%edi 10fe9c: 57 push %edi 10fe9d: 68 ff ff 00 00 push $0xffff 10fea2: ff 73 10 pushl 0x10(%ebx) 10fea5: e8 62 1c 00 00 call 111b0c <rtems_task_mode>
(*asr->handler)( signal_set );
10feaa: 89 34 24 mov %esi,(%esp) 10fead: ff 53 0c call *0xc(%ebx)
asr->nest_level -= 1;
10feb0: ff 4b 1c decl 0x1c(%ebx)
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
10feb3: 83 c4 0c add $0xc,%esp 10feb6: 57 push %edi 10feb7: 68 ff ff 00 00 push $0xffff 10febc: ff 75 e4 pushl -0x1c(%ebp) 10febf: e8 48 1c 00 00 call 111b0c <rtems_task_mode> 10fec4: 83 c4 10 add $0x10,%esp
}
10fec7: 8d 65 f4 lea -0xc(%ebp),%esp 10feca: 5b pop %ebx 10fecb: 5e pop %esi 10fecc: 5f pop %edi 10fecd: c9 leave 10fece: c3 ret
0010fdc8 <_RTEMS_tasks_Switch_extension>: void _RTEMS_tasks_Switch_extension( Thread_Control *executing, Thread_Control *heir ) {
10fdc8: 55 push %ebp 10fdc9: 89 e5 mov %esp,%ebp
/* * Per Task Variables */ tvp = executing->task_variables;
10fdcb: 8b 45 08 mov 0x8(%ebp),%eax 10fdce: 8b 80 00 01 00 00 mov 0x100(%eax),%eax
while (tvp) {
10fdd4: 85 c0 test %eax,%eax
10fdd6: 74 13 je 10fdeb <_RTEMS_tasks_Switch_extension+0x23> tvp->tval = *tvp->ptr;
10fdd8: 8b 50 04 mov 0x4(%eax),%edx 10fddb: 8b 0a mov (%edx),%ecx 10fddd: 89 48 0c mov %ecx,0xc(%eax)
*tvp->ptr = tvp->gval;
10fde0: 8b 48 08 mov 0x8(%eax),%ecx 10fde3: 89 0a mov %ecx,(%edx)
tvp = (rtems_task_variable_t *)tvp->next;
10fde5: 8b 00 mov (%eax),%eax
/* * Per Task Variables */ tvp = executing->task_variables; while (tvp) {
10fde7: 85 c0 test %eax,%eax
10fde9: 75 ed jne 10fdd8 <_RTEMS_tasks_Switch_extension+0x10><== ALWAYS TAKEN
tvp->tval = *tvp->ptr; *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables;
10fdeb: 8b 45 0c mov 0xc(%ebp),%eax 10fdee: 8b 80 00 01 00 00 mov 0x100(%eax),%eax
while (tvp) {
10fdf4: 85 c0 test %eax,%eax
10fdf6: 74 13 je 10fe0b <_RTEMS_tasks_Switch_extension+0x43> tvp->gval = *tvp->ptr;
10fdf8: 8b 50 04 mov 0x4(%eax),%edx 10fdfb: 8b 0a mov (%edx),%ecx 10fdfd: 89 48 08 mov %ecx,0x8(%eax)
*tvp->ptr = tvp->tval;
10fe00: 8b 48 0c mov 0xc(%eax),%ecx 10fe03: 89 0a mov %ecx,(%edx)
tvp = (rtems_task_variable_t *)tvp->next;
10fe05: 8b 00 mov (%eax),%eax
*tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; while (tvp) {
10fe07: 85 c0 test %eax,%eax
10fe09: 75 ed jne 10fdf8 <_RTEMS_tasks_Switch_extension+0x30><== ALWAYS TAKEN
tvp->gval = *tvp->ptr; *tvp->ptr = tvp->tval; tvp = (rtems_task_variable_t *)tvp->next; } }
10fe0b: c9 leave 10fe0c: c3 ret
0013c688 <_Rate_monotonic_Get_status>: bool _Rate_monotonic_Get_status( Rate_monotonic_Control *the_period, Rate_monotonic_Period_time_t *wall_since_last_period, Thread_CPU_usage_t *cpu_since_last_period ) {
13c688: 55 push %ebp 13c689: 89 e5 mov %esp,%ebp 13c68b: 57 push %edi 13c68c: 56 push %esi 13c68d: 53 push %ebx 13c68e: 83 ec 38 sub $0x38,%esp 13c691: 8b 5d 08 mov 0x8(%ebp),%ebx
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; #endif Thread_Control *owning_thread = the_period->owner;
13c694: 8b 7b 40 mov 0x40(%ebx),%edi
/* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime );
13c697: 8d 75 e0 lea -0x20(%ebp),%esi 13c69a: 56 push %esi 13c69b: e8 28 18 ff ff call 12dec8 <_TOD_Get_uptime>
_Timestamp_Subtract(
13c6a0: 83 c4 0c add $0xc,%esp 13c6a3: ff 75 0c pushl 0xc(%ebp) 13c6a6: 56 push %esi 13c6a7: 8d 43 4c lea 0x4c(%ebx),%eax 13c6aa: 50 push %eax 13c6ab: e8 80 68 fd ff call 112f30 <_Timespec_Subtract>
#endif /* * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used;
13c6b0: 8b 87 84 00 00 00 mov 0x84(%edi),%eax 13c6b6: 8b 97 88 00 00 00 mov 0x88(%edi),%edx 13c6bc: 89 45 d8 mov %eax,-0x28(%ebp) 13c6bf: 89 55 dc mov %edx,-0x24(%ebp)
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) {
13c6c2: 83 c4 10 add $0x10,%esp 13c6c5: 3b 3d 38 e1 16 00 cmp 0x16e138,%edi
13c6cb: 74 0b je 13c6d8 <_Rate_monotonic_Get_status+0x50>
13c6cd: b0 01 mov $0x1,%al
return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; }
13c6cf: 8d 65 f4 lea -0xc(%ebp),%esp 13c6d2: 5b pop %ebx 13c6d3: 5e pop %esi 13c6d4: 5f pop %edi 13c6d5: c9 leave 13c6d6: c3 ret
13c6d7: 90 nop <== NOT EXECUTED
if (owning_thread == _Thread_Executing) { Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract(
13c6d8: 57 push %edi 13c6d9: 8d 7d d0 lea -0x30(%ebp),%edi 13c6dc: 57 push %edi 13c6dd: 56 push %esi 13c6de: 68 40 e1 16 00 push $0x16e140 13c6e3: e8 48 68 fd ff call 112f30 <_Timespec_Subtract>
&_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran );
13c6e8: 59 pop %ecx 13c6e9: 5e pop %esi 13c6ea: 57 push %edi 13c6eb: 8d 75 d8 lea -0x28(%ebp),%esi 13c6ee: 56 push %esi 13c6ef: e8 00 68 fd ff call 112ef4 <_Timespec_Add_to>
/* * The cpu usage info was reset while executing. Can't * determine a status. */ if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
13c6f4: 83 c3 44 add $0x44,%ebx 13c6f7: 58 pop %eax 13c6f8: 5a pop %edx 13c6f9: 53 push %ebx 13c6fa: 56 push %esi 13c6fb: e8 c4 06 00 00 call 13cdc4 <_Timespec_Less_than> 13c700: 83 c4 10 add $0x10,%esp 13c703: 84 c0 test %al,%al
13c705: 74 05 je 13c70c <_Rate_monotonic_Get_status+0x84>
13c707: 31 c0 xor %eax,%eax 13c709: eb c4 jmp 13c6cf <_Rate_monotonic_Get_status+0x47>
13c70b: 90 nop <== NOT EXECUTED
return false; /* used = current cpu usage - cpu usage at start of period */ _Timestamp_Subtract(
13c70c: 57 push %edi 13c70d: ff 75 10 pushl 0x10(%ebp) 13c710: 56 push %esi 13c711: 53 push %ebx 13c712: e8 19 68 fd ff call 112f30 <_Timespec_Subtract> 13c717: b0 01 mov $0x1,%al 13c719: 83 c4 10 add $0x10,%esp 13c71c: eb b1 jmp 13c6cf <_Rate_monotonic_Get_status+0x47>
0013c614 <_Rate_monotonic_Initiate_statistics>: } void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) {
13c614: 55 push %ebp 13c615: 89 e5 mov %esp,%ebp 13c617: 57 push %edi 13c618: 56 push %esi 13c619: 53 push %ebx 13c61a: 83 ec 28 sub $0x28,%esp 13c61d: 8b 5d 08 mov 0x8(%ebp),%ebx
Thread_Control *owning_thread = the_period->owner;
13c620: 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 );
13c623: 8d 7d e0 lea -0x20(%ebp),%edi 13c626: 57 push %edi 13c627: e8 9c 18 ff ff call 12dec8 <_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;
13c62c: 8b 45 e0 mov -0x20(%ebp),%eax 13c62f: 8b 55 e4 mov -0x1c(%ebp),%edx 13c632: 89 43 4c mov %eax,0x4c(%ebx) 13c635: 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;
13c638: 8b 86 84 00 00 00 mov 0x84(%esi),%eax 13c63e: 8b 96 88 00 00 00 mov 0x88(%esi),%edx 13c644: 89 43 44 mov %eax,0x44(%ebx) 13c647: 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) {
13c64a: 83 c4 10 add $0x10,%esp 13c64d: 3b 35 38 e1 16 00 cmp 0x16e138,%esi
13c653: 74 0b je 13c660 <_Rate_monotonic_Initiate_statistics+0x4c> ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); } #endif }
13c655: 8d 65 f4 lea -0xc(%ebp),%esp 13c658: 5b pop %ebx 13c659: 5e pop %esi 13c65a: 5f pop %edi 13c65b: c9 leave 13c65c: c3 ret
13c65d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * Adjust the CPU time used to account for the time since last * context switch. */ _Timespec_Subtract(
13c660: 51 push %ecx 13c661: 8d 75 d8 lea -0x28(%ebp),%esi 13c664: 56 push %esi 13c665: 57 push %edi 13c666: 68 40 e1 16 00 push $0x16e140 13c66b: e8 c0 68 fd ff call 112f30 <_Timespec_Subtract>
&_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran );
13c670: 58 pop %eax 13c671: 5a pop %edx 13c672: 56 push %esi 13c673: 83 c3 44 add $0x44,%ebx 13c676: 53 push %ebx 13c677: e8 78 68 fd ff call 112ef4 <_Timespec_Add_to> 13c67c: 83 c4 10 add $0x10,%esp
} #endif }
13c67f: 8d 65 f4 lea -0xc(%ebp),%esp 13c682: 5b pop %ebx 13c683: 5e pop %esi 13c684: 5f pop %edi 13c685: c9 leave 13c686: c3 ret
0013c9c0 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) {
13c9c0: 55 push %ebp 13c9c1: 89 e5 mov %esp,%ebp 13c9c3: 83 ec 2c sub $0x2c,%esp 13c9c6: 8d 45 f4 lea -0xc(%ebp),%eax 13c9c9: 50 push %eax 13c9ca: ff 75 08 pushl 0x8(%ebp) 13c9cd: 68 00 e6 16 00 push $0x16e600 13c9d2: e8 31 50 fd ff call 111a08 <_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 ) {
13c9d7: 83 c4 10 add $0x10,%esp 13c9da: 8b 55 f4 mov -0xc(%ebp),%edx 13c9dd: 85 d2 test %edx,%edx
13c9df: 75 29 jne 13ca0a <_Rate_monotonic_Timeout+0x4a><== ALWAYS TAKEN
case OBJECTS_LOCAL: the_thread = the_period->owner;
13c9e1: 8b 50 40 mov 0x40(%eax),%edx
if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
13c9e4: f6 42 11 40 testb $0x40,0x11(%edx)
13c9e8: 74 08 je 13c9f2 <_Rate_monotonic_Timeout+0x32> the_thread->Wait.id == the_period->Object.id ) {
13c9ea: 8b 4a 20 mov 0x20(%edx),%ecx 13c9ed: 3b 48 08 cmp 0x8(%eax),%ecx
13c9f0: 74 4e je 13ca40 <_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 ) {
13c9f2: 83 78 38 01 cmpl $0x1,0x38(%eax)
13c9f6: 74 14 je 13ca0c <_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;
13c9f8: 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;
13c9ff: a1 78 e0 16 00 mov 0x16e078,%eax 13ca04: 48 dec %eax 13ca05: a3 78 e0 16 00 mov %eax,0x16e078
case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } }
13ca0a: c9 leave 13ca0b: 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;
13ca0c: c7 40 38 03 00 00 00 movl $0x3,0x38(%eax)
_Rate_monotonic_Initiate_statistics( the_period );
13ca13: 83 ec 0c sub $0xc,%esp 13ca16: 50 push %eax 13ca17: 89 45 e4 mov %eax,-0x1c(%ebp) 13ca1a: e8 f5 fb ff ff call 13c614 <_Rate_monotonic_Initiate_statistics>
Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units;
13ca1f: 8b 45 e4 mov -0x1c(%ebp),%eax 13ca22: 8b 50 3c mov 0x3c(%eax),%edx 13ca25: 89 50 1c mov %edx,0x1c(%eax)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
13ca28: 5a pop %edx 13ca29: 59 pop %ecx 13ca2a: 83 c0 10 add $0x10,%eax 13ca2d: 50 push %eax 13ca2e: 68 58 e1 16 00 push $0x16e158 13ca33: e8 c8 67 fd ff call 113200 <_Watchdog_Insert> 13ca38: 83 c4 10 add $0x10,%esp 13ca3b: eb c2 jmp 13c9ff <_Rate_monotonic_Timeout+0x3f>
13ca3d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED );
13ca40: 83 ec 08 sub $0x8,%esp 13ca43: 68 f8 ff 03 10 push $0x1003fff8 13ca48: 52 push %edx 13ca49: 89 45 e4 mov %eax,-0x1c(%ebp) 13ca4c: e8 07 55 fd ff call 111f58 <_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 );
13ca51: 8b 45 e4 mov -0x1c(%ebp),%eax 13ca54: 89 04 24 mov %eax,(%esp) 13ca57: eb c1 jmp 13ca1a <_Rate_monotonic_Timeout+0x5a>
0013c720 <_Rate_monotonic_Update_statistics>: } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) {
13c720: 55 push %ebp 13c721: 89 e5 mov %esp,%ebp 13c723: 57 push %edi 13c724: 56 push %esi 13c725: 53 push %ebx 13c726: 83 ec 1c sub $0x1c,%esp 13c729: 8b 5d 08 mov 0x8(%ebp),%ebx
/* * Update the counts. */ stats = &the_period->Statistics; stats->count++;
13c72c: ff 43 54 incl 0x54(%ebx)
if ( the_period->state == RATE_MONOTONIC_EXPIRED )
13c72f: 83 7b 38 04 cmpl $0x4,0x38(%ebx)
13c733: 0f 84 bf 00 00 00 je 13c7f8 <_Rate_monotonic_Update_statistics+0xd8> /* * Grab status for time statistics. */ valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
13c739: 52 push %edx 13c73a: 8d 7d e0 lea -0x20(%ebp),%edi 13c73d: 57 push %edi 13c73e: 8d 75 d8 lea -0x28(%ebp),%esi 13c741: 56 push %esi 13c742: 53 push %ebx 13c743: e8 40 ff ff ff call 13c688 <_Rate_monotonic_Get_status>
if (!valid_status)
13c748: 83 c4 10 add $0x10,%esp 13c74b: 84 c0 test %al,%al
13c74d: 75 09 jne 13c758 <_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 }
13c74f: 8d 65 f4 lea -0xc(%ebp),%esp 13c752: 5b pop %ebx 13c753: 5e pop %esi 13c754: 5f pop %edi 13c755: c9 leave 13c756: c3 ret
13c757: 90 nop <== NOT EXECUTED
/* * Update CPU time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_cpu_time, &executed );
13c758: 83 ec 08 sub $0x8,%esp 13c75b: 57 push %edi 13c75c: 8d 43 6c lea 0x6c(%ebx),%eax 13c75f: 50 push %eax 13c760: e8 8f 67 fd ff call 112ef4 <_Timespec_Add_to>
if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )
13c765: 59 pop %ecx 13c766: 58 pop %eax 13c767: 8d 43 5c lea 0x5c(%ebx),%eax 13c76a: 50 push %eax 13c76b: 57 push %edi 13c76c: e8 53 06 00 00 call 13cdc4 <_Timespec_Less_than> 13c771: 83 c4 10 add $0x10,%esp 13c774: 84 c0 test %al,%al
13c776: 74 0c je 13c784 <_Rate_monotonic_Update_statistics+0x64> stats->min_cpu_time = executed;
13c778: 8b 45 e0 mov -0x20(%ebp),%eax 13c77b: 8b 55 e4 mov -0x1c(%ebp),%edx 13c77e: 89 43 5c mov %eax,0x5c(%ebx) 13c781: 89 53 60 mov %edx,0x60(%ebx)
if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) )
13c784: 83 ec 08 sub $0x8,%esp 13c787: 8d 43 64 lea 0x64(%ebx),%eax 13c78a: 50 push %eax 13c78b: 57 push %edi 13c78c: e8 0f 06 00 00 call 13cda0 <_Timespec_Greater_than> 13c791: 83 c4 10 add $0x10,%esp 13c794: 84 c0 test %al,%al
13c796: 74 0c je 13c7a4 <_Rate_monotonic_Update_statistics+0x84> stats->max_cpu_time = executed;
13c798: 8b 45 e0 mov -0x20(%ebp),%eax 13c79b: 8b 55 e4 mov -0x1c(%ebp),%edx 13c79e: 89 43 64 mov %eax,0x64(%ebx) 13c7a1: 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 );
13c7a4: 83 ec 08 sub $0x8,%esp 13c7a7: 56 push %esi 13c7a8: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax 13c7ae: 50 push %eax 13c7af: e8 40 67 fd ff call 112ef4 <_Timespec_Add_to>
if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
13c7b4: 58 pop %eax 13c7b5: 5a pop %edx 13c7b6: 8d 43 74 lea 0x74(%ebx),%eax 13c7b9: 50 push %eax 13c7ba: 56 push %esi 13c7bb: e8 04 06 00 00 call 13cdc4 <_Timespec_Less_than> 13c7c0: 83 c4 10 add $0x10,%esp 13c7c3: 84 c0 test %al,%al
13c7c5: 75 39 jne 13c800 <_Rate_monotonic_Update_statistics+0xe0> stats->min_wall_time = since_last_period; if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
13c7c7: 83 ec 08 sub $0x8,%esp 13c7ca: 8d 43 7c lea 0x7c(%ebx),%eax 13c7cd: 50 push %eax 13c7ce: 56 push %esi 13c7cf: e8 cc 05 00 00 call 13cda0 <_Timespec_Greater_than> 13c7d4: 83 c4 10 add $0x10,%esp 13c7d7: 84 c0 test %al,%al
13c7d9: 0f 84 70 ff ff ff je 13c74f <_Rate_monotonic_Update_statistics+0x2f> stats->max_wall_time = since_last_period;
13c7df: 8b 45 d8 mov -0x28(%ebp),%eax 13c7e2: 8b 55 dc mov -0x24(%ebp),%edx 13c7e5: 89 43 7c mov %eax,0x7c(%ebx) 13c7e8: 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 }
13c7ee: 8d 65 f4 lea -0xc(%ebp),%esp 13c7f1: 5b pop %ebx 13c7f2: 5e pop %esi 13c7f3: 5f pop %edi 13c7f4: c9 leave 13c7f5: c3 ret
13c7f6: 66 90 xchg %ax,%ax <== NOT EXECUTED
*/ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) stats->missed_count++;
13c7f8: ff 43 58 incl 0x58(%ebx) 13c7fb: e9 39 ff ff ff jmp 13c739 <_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;
13c800: 8b 45 d8 mov -0x28(%ebp),%eax 13c803: 8b 55 dc mov -0x24(%ebp),%edx 13c806: 89 43 74 mov %eax,0x74(%ebx) 13c809: 89 53 78 mov %edx,0x78(%ebx) 13c80c: eb b9 jmp 13c7c7 <_Rate_monotonic_Update_statistics+0xa7>
0010d8fc <_TOD_Set>: */ void _TOD_Set( const struct timespec *time ) {
10d8fc: 55 push %ebp 10d8fd: 89 e5 mov %esp,%ebp 10d8ff: 53 push %ebx 10d900: 83 ec 04 sub $0x4,%esp 10d903: 8b 5d 08 mov 0x8(%ebp),%ebx 10d906: a1 98 12 13 00 mov 0x131298,%eax 10d90b: 40 inc %eax 10d90c: a3 98 12 13 00 mov %eax,0x131298
long seconds; _Thread_Disable_dispatch(); _TOD_Deactivate(); seconds = _TOD_Seconds_since_epoch();
10d911: a1 2c 13 13 00 mov 0x13132c,%eax
if ( time->tv_sec < seconds )
10d916: 8b 13 mov (%ebx),%edx 10d918: 39 d0 cmp %edx,%eax
10d91a: 7f 34 jg 10d950 <_TOD_Set+0x54> Watchdog_Adjust_directions direction, Watchdog_Interval units ) { _Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units );
10d91c: 51 push %ecx 10d91d: 29 c2 sub %eax,%edx 10d91f: 52 push %edx 10d920: 6a 00 push $0x0 10d922: 68 6c 13 13 00 push $0x13136c 10d927: e8 44 24 00 00 call 10fd70 <_Watchdog_Adjust> 10d92c: 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 );
10d92f: 8b 03 mov (%ebx),%eax 10d931: a3 2c 13 13 00 mov %eax,0x13132c 10d936: 8b 43 04 mov 0x4(%ebx),%eax 10d939: a3 30 13 13 00 mov %eax,0x131330
_TOD_Is_set = true;
10d93e: c6 05 ac 12 13 00 01 movb $0x1,0x1312ac
_TOD_Activate(); _Thread_Enable_dispatch(); }
10d945: 8b 5d fc mov -0x4(%ebp),%ebx 10d948: c9 leave
_Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec ); _TOD_Is_set = true; _TOD_Activate(); _Thread_Enable_dispatch();
10d949: e9 76 12 00 00 jmp 10ebc4 <_Thread_Enable_dispatch>
10d94e: 66 90 xchg %ax,%ax <== NOT EXECUTED
10d950: 51 push %ecx 10d951: 29 d0 sub %edx,%eax 10d953: 50 push %eax 10d954: 6a 01 push $0x1 10d956: 68 6c 13 13 00 push $0x13136c 10d95b: e8 10 24 00 00 call 10fd70 <_Watchdog_Adjust> 10d960: 83 c4 10 add $0x10,%esp 10d963: eb ca jmp 10d92f <_TOD_Set+0x33>
0010c328 <_TOD_Tickle_ticks>: * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) {
10c328: 55 push %ebp 10c329: 89 e5 mov %esp,%ebp 10c32b: 53 push %ebx 10c32c: 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() );
10c32f: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 10c336: a1 2c 12 12 00 mov 0x12122c,%eax 10c33b: 8d 04 80 lea (%eax,%eax,4),%eax 10c33e: 8d 04 80 lea (%eax,%eax,4),%eax 10c341: 8d 04 80 lea (%eax,%eax,4),%eax 10c344: c1 e0 03 shl $0x3,%eax 10c347: 89 45 f4 mov %eax,-0xc(%ebp)
/* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1;
10c34a: a1 c4 54 12 00 mov 0x1254c4,%eax 10c34f: 40 inc %eax 10c350: a3 c4 54 12 00 mov %eax,0x1254c4
/* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick );
10c355: 8d 5d f0 lea -0x10(%ebp),%ebx 10c358: 53 push %ebx 10c359: 68 d8 53 12 00 push $0x1253d8 10c35e: e8 e9 1c 00 00 call 10e04c <_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 );
10c363: 58 pop %eax 10c364: 5a pop %edx 10c365: 53 push %ebx 10c366: 68 ec 53 12 00 push $0x1253ec 10c36b: e8 dc 1c 00 00 call 10e04c <_Timespec_Add_to> 10c370: 89 c3 mov %eax,%ebx
while ( seconds ) {
10c372: 83 c4 10 add $0x10,%esp 10c375: 85 c0 test %eax,%eax
10c377: 74 16 je 10c38f <_TOD_Tickle_ticks+0x67>
10c379: 8d 76 00 lea 0x0(%esi),%esi
*/ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void ) { _Watchdog_Tickle( &_Watchdog_Seconds_chain );
10c37c: 83 ec 0c sub $0xc,%esp 10c37f: 68 2c 54 12 00 push $0x12542c 10c384: e8 73 21 00 00 call 10e4fc <_Watchdog_Tickle> 10c389: 83 c4 10 add $0x10,%esp 10c38c: 4b dec %ebx
10c38d: 75 ed jne 10c37c <_TOD_Tickle_ticks+0x54><== ALWAYS TAKEN
_Watchdog_Tickle_seconds(); seconds--; } }
10c38f: 8b 5d fc mov -0x4(%ebp),%ebx 10c392: c9 leave 10c393: c3 ret
0010c11c <_TOD_To_seconds>: */ uint32_t _TOD_To_seconds( const rtems_time_of_day *the_tod ) {
10c11c: 55 push %ebp 10c11d: 89 e5 mov %esp,%ebp 10c11f: 56 push %esi 10c120: 53 push %ebx 10c121: 8b 55 08 mov 0x8(%ebp),%edx
uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1;
10c124: 8b 72 08 mov 0x8(%edx),%esi 10c127: 4e dec %esi
year_mod_4 = the_tod->year & 3;
10c128: 8b 02 mov (%edx),%eax
if ( year_mod_4 == 0 )
10c12a: 89 c3 mov %eax,%ebx 10c12c: 83 e3 03 and $0x3,%ebx
10c12f: 74 67 je 10c198 <_TOD_To_seconds+0x7c> time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ];
10c131: 8b 4a 04 mov 0x4(%edx),%ecx 10c134: 0f b7 8c 09 c0 24 12 movzwl 0x1224c0(%ecx,%ecx,1),%ecx
10c13b: 00
10c13c: 8d 34 31 lea (%ecx,%esi,1),%esi
time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) *
10c13f: 0f b7 8c 1b f4 24 12 movzwl 0x1224f4(%ebx,%ebx,1),%ecx
10c146: 00
10c147: 2d c4 07 00 00 sub $0x7c4,%eax 10c14c: c1 e8 02 shr $0x2,%eax 10c14f: 8d 1c c0 lea (%eax,%eax,8),%ebx 10c152: 8d 1c d8 lea (%eax,%ebx,8),%ebx 10c155: 8d 1c 9b lea (%ebx,%ebx,4),%ebx 10c158: 8d 04 98 lea (%eax,%ebx,4),%eax 10c15b: 01 c1 add %eax,%ecx
( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ];
10c15d: 01 f1 add %esi,%ecx
time *= TOD_SECONDS_PER_DAY;
10c15f: 8d 04 89 lea (%ecx,%ecx,4),%eax 10c162: 8d 04 81 lea (%ecx,%eax,4),%eax 10c165: 8d 04 c1 lea (%ecx,%eax,8),%eax 10c168: c1 e0 02 shl $0x2,%eax 10c16b: 29 c8 sub %ecx,%eax 10c16d: c1 e0 07 shl $0x7,%eax
time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute)
10c170: 8b 5a 14 mov 0x14(%edx),%ebx
* TOD_SECONDS_PER_MINUTE; time += the_tod->second;
10c173: 8b 4a 0c mov 0xc(%edx),%ecx 10c176: 8d 0c 49 lea (%ecx,%ecx,2),%ecx 10c179: 8d 0c 89 lea (%ecx,%ecx,4),%ecx 10c17c: c1 e1 02 shl $0x2,%ecx 10c17f: 03 4a 10 add 0x10(%edx),%ecx 10c182: 8d 14 49 lea (%ecx,%ecx,2),%edx 10c185: 8d 14 92 lea (%edx,%edx,4),%edx 10c188: 8d 94 93 00 e5 da 21 lea 0x21dae500(%ebx,%edx,4),%edx 10c18f: 8d 04 02 lea (%edx,%eax,1),%eax
time += TOD_SECONDS_1970_THROUGH_1988; return( time ); }
10c192: 5b pop %ebx 10c193: 5e pop %esi 10c194: c9 leave 10c195: c3 ret
10c196: 66 90 xchg %ax,%ax <== NOT EXECUTED
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 ];
10c198: 8b 4a 04 mov 0x4(%edx),%ecx 10c19b: 0f b7 8c 09 da 24 12 movzwl 0x1224da(%ecx,%ecx,1),%ecx
10c1a2: 00
10c1a3: 8d 34 31 lea (%ecx,%esi,1),%esi 10c1a6: eb 97 jmp 10c13f <_TOD_To_seconds+0x23>
0010c1a8 <_TOD_Validate>: */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) {
10c1a8: 55 push %ebp 10c1a9: 89 e5 mov %esp,%ebp 10c1ab: 53 push %ebx 10c1ac: 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();
10c1af: 8b 1d 2c 53 12 00 mov 0x12532c,%ebx
if ((!the_tod) ||
10c1b5: 85 c9 test %ecx,%ecx
10c1b7: 74 53 je 10c20c <_TOD_Validate+0x64> <== ALWAYS TAKEN
10c1b9: b8 40 42 0f 00 mov $0xf4240,%eax 10c1be: 31 d2 xor %edx,%edx 10c1c0: f7 f3 div %ebx
(the_tod->ticks >= ticks_per_second) ||
10c1c2: 3b 41 18 cmp 0x18(%ecx),%eax
10c1c5: 76 45 jbe 10c20c <_TOD_Validate+0x64> (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
10c1c7: 83 79 14 3b cmpl $0x3b,0x14(%ecx)
10c1cb: 77 3f ja 10c20c <_TOD_Validate+0x64> (the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
10c1cd: 83 79 10 3b cmpl $0x3b,0x10(%ecx)
10c1d1: 77 39 ja 10c20c <_TOD_Validate+0x64> (the_tod->hour >= TOD_HOURS_PER_DAY) ||
10c1d3: 83 79 0c 17 cmpl $0x17,0xc(%ecx)
10c1d7: 77 33 ja 10c20c <_TOD_Validate+0x64> (the_tod->month == 0) ||
10c1d9: 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) ||
10c1dc: 85 c0 test %eax,%eax
10c1de: 74 2c je 10c20c <_TOD_Validate+0x64> <== ALWAYS TAKEN
10c1e0: 83 f8 0c cmp $0xc,%eax
10c1e3: 77 27 ja 10c20c <_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) ||
10c1e5: 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) ||
10c1e7: 81 fa c3 07 00 00 cmp $0x7c3,%edx
10c1ed: 76 1d jbe 10c20c <_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) )
10c1ef: 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) ||
10c1f2: 85 c9 test %ecx,%ecx
10c1f4: 74 16 je 10c20c <_TOD_Validate+0x64> <== ALWAYS 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 )
10c1f6: 83 e2 03 and $0x3,%edx
10c1f9: 75 16 jne 10c211 <_TOD_Validate+0x69> days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
10c1fb: 8b 04 85 34 25 12 00 mov 0x122534(,%eax,4),%eax
* false - if the the_tod is invalid * * NOTE: This routine only works for leap-years through 2099. */ bool _TOD_Validate(
10c202: 39 c8 cmp %ecx,%eax 10c204: 0f 93 c0 setae %al 10c207: eb 05 jmp 10c20e <_TOD_Validate+0x66>
10c209: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
10c20c: 31 c0 xor %eax,%eax
if ( the_tod->day > days_in_month ) return false; return true; }
10c20e: 5b pop %ebx 10c20f: c9 leave 10c210: 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 ];
10c211: 8b 04 85 00 25 12 00 mov 0x122500(,%eax,4),%eax 10c218: eb e8 jmp 10c202 <_TOD_Validate+0x5a>
0010cf70 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
10cf70: 55 push %ebp 10cf71: 89 e5 mov %esp,%ebp 10cf73: 57 push %edi 10cf74: 56 push %esi 10cf75: 53 push %ebx 10cf76: 83 ec 28 sub $0x28,%esp 10cf79: 8b 5d 08 mov 0x8(%ebp),%ebx 10cf7c: 8b 75 0c mov 0xc(%ebp),%esi 10cf7f: 8a 45 10 mov 0x10(%ebp),%al 10cf82: 88 45 e7 mov %al,-0x19(%ebp)
*/ /* * Save original state */ original_state = the_thread->current_state;
10cf85: 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 );
10cf88: 53 push %ebx 10cf89: e8 56 0e 00 00 call 10dde4 <_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 )
10cf8e: 83 c4 10 add $0x10,%esp 10cf91: 39 73 14 cmp %esi,0x14(%ebx)
10cf94: 74 0d je 10cfa3 <_Thread_Change_priority+0x33> _Thread_Set_priority( the_thread, new_priority );
10cf96: 83 ec 08 sub $0x8,%esp 10cf99: 56 push %esi 10cf9a: 53 push %ebx 10cf9b: e8 fc 0c 00 00 call 10dc9c <_Thread_Set_priority> 10cfa0: 83 c4 10 add $0x10,%esp
_ISR_Disable( level );
10cfa3: 9c pushf 10cfa4: fa cli 10cfa5: 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;
10cfa6: 8b 43 10 mov 0x10(%ebx),%eax
if ( state != STATES_TRANSIENT ) {
10cfa9: 83 f8 04 cmp $0x4,%eax
10cfac: 74 26 je 10cfd4 <_Thread_Change_priority+0x64> /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) )
10cfae: 83 e7 04 and $0x4,%edi
10cfb1: 74 15 je 10cfc8 <_Thread_Change_priority+0x58><== NEVER TAKEN
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); _ISR_Enable( level );
10cfb3: 52 push %edx 10cfb4: 9d popf
if ( _States_Is_waiting_on_thread_queue( state ) ) {
10cfb5: a9 e0 be 03 00 test $0x3bee0,%eax
10cfba: 0f 85 bc 00 00 00 jne 10d07c <_Thread_Change_priority+0x10c> if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Context_Switch_necessary = true; _ISR_Enable( level ); }
10cfc0: 8d 65 f4 lea -0xc(%ebp),%esp 10cfc3: 5b pop %ebx 10cfc4: 5e pop %esi 10cfc5: 5f pop %edi 10cfc6: c9 leave 10cfc7: 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 );
10cfc8: 89 c1 mov %eax,%ecx 10cfca: 83 e1 fb and $0xfffffffb,%ecx 10cfcd: 89 4b 10 mov %ecx,0x10(%ebx) 10cfd0: eb e1 jmp 10cfb3 <_Thread_Change_priority+0x43>
10cfd2: 66 90 xchg %ax,%ax <== NOT EXECUTED
} return; } /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) {
10cfd4: 83 e7 04 and $0x4,%edi
10cfd7: 75 45 jne 10d01e <_Thread_Change_priority+0xae><== ALWAYS 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 );
10cfd9: 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;
10cfe0: 8b 83 90 00 00 00 mov 0x90(%ebx),%eax 10cfe6: 66 8b 8b 96 00 00 00 mov 0x96(%ebx),%cx 10cfed: 66 09 08 or %cx,(%eax)
_Priority_Major_bit_map |= the_priority_map->ready_major;
10cff0: 66 a1 0c 54 12 00 mov 0x12540c,%ax 10cff6: 0b 83 94 00 00 00 or 0x94(%ebx),%eax 10cffc: 66 a3 0c 54 12 00 mov %ax,0x12540c
_Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it )
10d002: 80 7d e7 00 cmpb $0x0,-0x19(%ebp)
10d006: 0f 84 88 00 00 00 je 10d094 <_Thread_Change_priority+0x124> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain;
10d00c: 8b 83 8c 00 00 00 mov 0x8c(%ebx),%eax
Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node;
10d012: 89 43 04 mov %eax,0x4(%ebx)
before_node = after_node->next;
10d015: 8b 08 mov (%eax),%ecx
after_node->next = the_node;
10d017: 89 18 mov %ebx,(%eax)
the_node->next = before_node;
10d019: 89 0b mov %ecx,(%ebx)
before_node->previous = the_node;
10d01b: 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 );
10d01e: 52 push %edx 10d01f: 9d popf 10d020: 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 );
10d021: 66 8b 1d 0c 54 12 00 mov 0x12540c,%bx 10d028: 31 c0 xor %eax,%eax 10d02a: 89 c1 mov %eax,%ecx 10d02c: 66 0f bc cb bsf %bx,%cx
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
10d030: 0f b7 c9 movzwl %cx,%ecx 10d033: 66 8b 9c 09 a0 54 12 mov 0x1254a0(%ecx,%ecx,1),%bx
10d03a: 00
10d03b: 66 0f bc c3 bsf %bx,%ax
* ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *)
10d03f: c1 e1 04 shl $0x4,%ecx 10d042: 0f b7 c0 movzwl %ax,%eax 10d045: 8d 04 01 lea (%ecx,%eax,1),%eax 10d048: 8d 0c 40 lea (%eax,%eax,2),%ecx 10d04b: a1 20 53 12 00 mov 0x125320,%eax 10d050: 8b 04 88 mov (%eax,%ecx,4),%eax 10d053: a3 e8 53 12 00 mov %eax,0x1253e8
* is also the heir thread, and false otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir );
10d058: 8b 0d 18 54 12 00 mov 0x125418,%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() &&
10d05e: 39 c8 cmp %ecx,%eax
10d060: 74 0d je 10d06f <_Thread_Change_priority+0xff> _Thread_Executing->is_preemptible )
10d062: 80 79 75 00 cmpb $0x0,0x75(%ecx)
10d066: 74 07 je 10d06f <_Thread_Change_priority+0xff> _Context_Switch_necessary = true;
10d068: c6 05 28 54 12 00 01 movb $0x1,0x125428
_ISR_Enable( level );
10d06f: 52 push %edx 10d070: 9d popf
}
10d071: 8d 65 f4 lea -0xc(%ebp),%esp 10d074: 5b pop %ebx 10d075: 5e pop %esi 10d076: 5f pop %edi 10d077: c9 leave 10d078: c3 ret
10d079: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* 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 );
10d07c: 89 5d 0c mov %ebx,0xc(%ebp) 10d07f: 8b 43 44 mov 0x44(%ebx),%eax 10d082: 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 ); }
10d085: 8d 65 f4 lea -0xc(%ebp),%esp 10d088: 5b pop %ebx 10d089: 5e pop %esi 10d08a: 5f pop %edi 10d08b: 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 );
10d08c: e9 73 0b 00 00 jmp 10dc04 <_Thread_queue_Requeue>
10d091: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_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 );
10d094: 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);
10d09a: 8d 48 04 lea 0x4(%eax),%ecx 10d09d: 89 0b mov %ecx,(%ebx)
old_last_node = the_chain->last;
10d09f: 8b 48 08 mov 0x8(%eax),%ecx
the_chain->last = the_node;
10d0a2: 89 58 08 mov %ebx,0x8(%eax)
old_last_node->next = the_node;
10d0a5: 89 19 mov %ebx,(%ecx)
the_node->previous = old_last_node;
10d0a7: 89 4b 04 mov %ecx,0x4(%ebx) 10d0aa: e9 6f ff ff ff jmp 10d01e <_Thread_Change_priority+0xae>
0010d0b0 <_Thread_Clear_state>: void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) {
10d0b0: 55 push %ebp 10d0b1: 89 e5 mov %esp,%ebp 10d0b3: 53 push %ebx 10d0b4: 8b 45 08 mov 0x8(%ebp),%eax 10d0b7: 8b 55 0c mov 0xc(%ebp),%edx
ISR_Level level; States_Control current_state; _ISR_Disable( level );
10d0ba: 9c pushf 10d0bb: fa cli 10d0bc: 5b pop %ebx
current_state = the_thread->current_state;
10d0bd: 8b 48 10 mov 0x10(%eax),%ecx
if ( current_state & state ) {
10d0c0: 85 ca test %ecx,%edx
10d0c2: 74 70 je 10d134 <_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);
10d0c4: f7 d2 not %edx 10d0c6: 21 ca and %ecx,%edx
current_state =
10d0c8: 89 50 10 mov %edx,0x10(%eax)
the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) {
10d0cb: 85 d2 test %edx,%edx
10d0cd: 75 65 jne 10d134 <_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;
10d0cf: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 10d0d5: 66 8b 88 96 00 00 00 mov 0x96(%eax),%cx 10d0dc: 66 09 0a or %cx,(%edx)
_Priority_Major_bit_map |= the_priority_map->ready_major;
10d0df: 66 8b 15 0c 54 12 00 mov 0x12540c,%dx 10d0e6: 0b 90 94 00 00 00 or 0x94(%eax),%edx 10d0ec: 66 89 15 0c 54 12 00 mov %dx,0x12540c
_Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
10d0f3: 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);
10d0f9: 8d 4a 04 lea 0x4(%edx),%ecx 10d0fc: 89 08 mov %ecx,(%eax)
old_last_node = the_chain->last;
10d0fe: 8b 4a 08 mov 0x8(%edx),%ecx
the_chain->last = the_node;
10d101: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
10d104: 89 01 mov %eax,(%ecx)
the_node->previous = old_last_node;
10d106: 89 48 04 mov %ecx,0x4(%eax)
_ISR_Flash( level );
10d109: 53 push %ebx 10d10a: 9d popf 10d10b: 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 ) {
10d10c: 8b 50 14 mov 0x14(%eax),%edx 10d10f: 8b 0d e8 53 12 00 mov 0x1253e8,%ecx 10d115: 3b 51 14 cmp 0x14(%ecx),%edx
10d118: 73 1a jae 10d134 <_Thread_Clear_state+0x84> _Thread_Heir = the_thread;
10d11a: a3 e8 53 12 00 mov %eax,0x1253e8
if ( _Thread_Executing->is_preemptible ||
10d11f: a1 18 54 12 00 mov 0x125418,%eax 10d124: 80 78 75 00 cmpb $0x0,0x75(%eax)
10d128: 74 12 je 10d13c <_Thread_Clear_state+0x8c> the_thread->current_priority == 0 ) _Context_Switch_necessary = true;
10d12a: c6 05 28 54 12 00 01 movb $0x1,0x125428 10d131: 8d 76 00 lea 0x0(%esi),%esi
} } } _ISR_Enable( level );
10d134: 53 push %ebx 10d135: 9d popf
}
10d136: 5b pop %ebx 10d137: c9 leave 10d138: c3 ret
10d139: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* 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 ||
10d13c: 85 d2 test %edx,%edx
10d13e: 74 ea je 10d12a <_Thread_Clear_state+0x7a><== ALWAYS TAKEN
10d140: eb f2 jmp 10d134 <_Thread_Clear_state+0x84>
0010d144 <_Thread_Close>: void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) {
10d144: 55 push %ebp 10d145: 89 e5 mov %esp,%ebp 10d147: 56 push %esi 10d148: 53 push %ebx 10d149: 8b 75 08 mov 0x8(%ebp),%esi 10d14c: 8b 5d 0c mov 0xc(%ebp),%ebx 10d14f: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10d153: 8b 46 1c mov 0x1c(%esi),%eax 10d156: 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;
10d15d: a1 58 53 12 00 mov 0x125358,%eax 10d162: 48 dec %eax 10d163: a3 58 53 12 00 mov %eax,0x125358
* disappear and set a transient state on it. So we temporarily * unnest dispatching. */ _Thread_Unnest_dispatch(); _User_extensions_Thread_delete( the_thread );
10d168: 83 ec 0c sub $0xc,%esp 10d16b: 53 push %ebx 10d16c: e8 27 11 00 00 call 10e298 <_User_extensions_Thread_delete>
rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1;
10d171: a1 58 53 12 00 mov 0x125358,%eax 10d176: 40 inc %eax 10d177: a3 58 53 12 00 mov %eax,0x125358
/* * 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 );
10d17c: 59 pop %ecx 10d17d: 58 pop %eax 10d17e: 53 push %ebx 10d17f: 56 push %esi 10d180: e8 57 f6 ff ff call 10c7dc <_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 );
10d185: 58 pop %eax 10d186: 5a pop %edx 10d187: 6a 01 push $0x1 10d189: 53 push %ebx 10d18a: e8 79 0b 00 00 call 10dd08 <_Thread_Set_state>
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
10d18f: 89 1c 24 mov %ebx,(%esp) 10d192: e8 c5 09 00 00 call 10db5c <_Thread_queue_Extract_with_proxy> 10d197: 83 c4 10 add $0x10,%esp 10d19a: 84 c0 test %al,%al
10d19c: 75 06 jne 10d1a4 <_Thread_Close+0x60> if ( _Watchdog_Is_active( &the_thread->Timer ) )
10d19e: 83 7b 50 02 cmpl $0x2,0x50(%ebx)
10d1a2: 74 68 je 10d20c <_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 ) )
10d1a4: 3b 1d e0 53 12 00 cmp 0x1253e0,%ebx
10d1aa: 74 74 je 10d220 <_Thread_Close+0xdc> _Thread_Deallocate_fp(); #endif the_thread->fp_context = NULL;
10d1ac: c7 83 e8 00 00 00 00 movl $0x0,0xe8(%ebx)
10d1b3: 00 00 00 if ( the_thread->Start.fp_context )
10d1b6: 8b 83 c8 00 00 00 mov 0xc8(%ebx),%eax 10d1bc: 85 c0 test %eax,%eax
10d1be: 74 0c je 10d1cc <_Thread_Close+0x88> (void) _Workspace_Free( the_thread->Start.fp_context );
10d1c0: 83 ec 0c sub $0xc,%esp 10d1c3: 50 push %eax 10d1c4: e8 e7 13 00 00 call 10e5b0 <_Workspace_Free> 10d1c9: 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 );
10d1cc: 83 ec 0c sub $0xc,%esp 10d1cf: 53 push %ebx 10d1d0: e8 e7 0c 00 00 call 10debc <_Thread_Stack_Free>
the_thread->Start.stack = NULL;
10d1d5: c7 83 cc 00 00 00 00 movl $0x0,0xcc(%ebx)
10d1dc: 00 00 00 if ( the_thread->extensions )
10d1df: 8b 83 fc 00 00 00 mov 0xfc(%ebx),%eax 10d1e5: 83 c4 10 add $0x10,%esp 10d1e8: 85 c0 test %eax,%eax
10d1ea: 74 0c je 10d1f8 <_Thread_Close+0xb4> (void) _Workspace_Free( the_thread->extensions );
10d1ec: 83 ec 0c sub $0xc,%esp 10d1ef: 50 push %eax 10d1f0: e8 bb 13 00 00 call 10e5b0 <_Workspace_Free> 10d1f5: 83 c4 10 add $0x10,%esp
the_thread->extensions = NULL;
10d1f8: c7 83 fc 00 00 00 00 movl $0x0,0xfc(%ebx)
10d1ff: 00 00 00 }
10d202: 8d 65 f8 lea -0x8(%ebp),%esp 10d205: 5b pop %ebx 10d206: 5e pop %esi 10d207: c9 leave 10d208: c3 ret
10d209: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/ _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 );
10d20c: 83 ec 0c sub $0xc,%esp 10d20f: 8d 43 48 lea 0x48(%ebx),%eax 10d212: 50 push %eax 10d213: e8 78 12 00 00 call 10e490 <_Watchdog_Remove> 10d218: 83 c4 10 add $0x10,%esp 10d21b: eb 87 jmp 10d1a4 <_Thread_Close+0x60>
10d21d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) RTEMS_INLINE_ROUTINE void _Thread_Deallocate_fp( void ) { _Thread_Allocated_fp = NULL;
10d220: c7 05 e0 53 12 00 00 movl $0x0,0x1253e0
10d227: 00 00 00
10d22a: eb 80 jmp 10d1ac <_Thread_Close+0x68>
0010d2c0 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
10d2c0: 55 push %ebp 10d2c1: 89 e5 mov %esp,%ebp 10d2c3: 83 ec 20 sub $0x20,%esp
Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location );
10d2c6: 8d 45 f4 lea -0xc(%ebp),%eax 10d2c9: 50 push %eax 10d2ca: ff 75 08 pushl 0x8(%ebp) 10d2cd: e8 aa 01 00 00 call 10d47c <_Thread_Get>
switch ( location ) {
10d2d2: 83 c4 10 add $0x10,%esp 10d2d5: 8b 55 f4 mov -0xc(%ebp),%edx 10d2d8: 85 d2 test %edx,%edx
10d2da: 75 1c jne 10d2f8 <_Thread_Delay_ended+0x38><== ALWAYS TAKEN
#if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_Clear_state(
10d2dc: 83 ec 08 sub $0x8,%esp 10d2df: 68 18 00 00 10 push $0x10000018 10d2e4: 50 push %eax 10d2e5: e8 c6 fd ff ff call 10d0b0 <_Thread_Clear_state> 10d2ea: a1 58 53 12 00 mov 0x125358,%eax 10d2ef: 48 dec %eax 10d2f0: a3 58 53 12 00 mov %eax,0x125358 10d2f5: 83 c4 10 add $0x10,%esp
| STATES_INTERRUPTIBLE_BY_SIGNAL ); _Thread_Unnest_dispatch(); break; } }
10d2f8: c9 leave 10d2f9: c3 ret
0010d2fc <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) {
10d2fc: 55 push %ebp 10d2fd: 89 e5 mov %esp,%ebp 10d2ff: 57 push %edi 10d300: 56 push %esi 10d301: 53 push %ebx 10d302: 83 ec 1c sub $0x1c,%esp
Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing;
10d305: 8b 1d 18 54 12 00 mov 0x125418,%ebx
_ISR_Disable( level );
10d30b: 9c pushf 10d30c: fa cli 10d30d: 58 pop %eax
while ( _Context_Switch_necessary == true ) {
10d30e: 8a 15 28 54 12 00 mov 0x125428,%dl 10d314: 84 d2 test %dl,%dl
10d316: 0f 84 10 01 00 00 je 10d42c <_Thread_Dispatch+0x130>
10d31c: 8d 7d d8 lea -0x28(%ebp),%edi 10d31f: e9 d1 00 00 00 jmp 10d3f5 <_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 );
10d324: 50 push %eax 10d325: 9d popf
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime );
10d326: 83 ec 0c sub $0xc,%esp 10d329: 8d 45 e0 lea -0x20(%ebp),%eax 10d32c: 50 push %eax 10d32d: e8 9a 2f 00 00 call 1102cc <_TOD_Get_uptime>
_Timestamp_Subtract(
10d332: 83 c4 0c add $0xc,%esp 10d335: 57 push %edi 10d336: 8d 45 e0 lea -0x20(%ebp),%eax 10d339: 50 push %eax 10d33a: 68 20 54 12 00 push $0x125420 10d33f: e8 44 0d 00 00 call 10e088 <_Timespec_Subtract>
&_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran );
10d344: 5a pop %edx 10d345: 59 pop %ecx 10d346: 57 push %edi 10d347: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax 10d34d: 50 push %eax 10d34e: e8 f9 0c 00 00 call 10e04c <_Timespec_Add_to>
_Thread_Time_of_last_context_switch = uptime;
10d353: 8b 45 e0 mov -0x20(%ebp),%eax 10d356: 8b 55 e4 mov -0x1c(%ebp),%edx 10d359: a3 20 54 12 00 mov %eax,0x125420 10d35e: 89 15 24 54 12 00 mov %edx,0x125424
#endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) {
10d364: a1 e4 53 12 00 mov 0x1253e4,%eax 10d369: 83 c4 10 add $0x10,%esp 10d36c: 85 c0 test %eax,%eax
10d36e: 74 10 je 10d380 <_Thread_Dispatch+0x84> <== ALWAYS TAKEN
executing->libc_reent = *_Thread_libc_reent;
10d370: 8b 10 mov (%eax),%edx 10d372: 89 93 ec 00 00 00 mov %edx,0xec(%ebx)
*_Thread_libc_reent = heir->libc_reent;
10d378: 8b 96 ec 00 00 00 mov 0xec(%esi),%edx 10d37e: 89 10 mov %edx,(%eax)
} _User_extensions_Thread_switch( executing, heir );
10d380: 83 ec 08 sub $0x8,%esp 10d383: 56 push %esi 10d384: 53 push %ebx 10d385: e8 8e 0f 00 00 call 10e318 <_User_extensions_Thread_switch>
if ( executing->fp_context != NULL ) _Context_Save_fp( &executing->fp_context ); #endif #endif _Context_Switch( &executing->Registers, &heir->Registers );
10d38a: 59 pop %ecx 10d38b: 58 pop %eax 10d38c: 81 c6 d0 00 00 00 add $0xd0,%esi 10d392: 56 push %esi 10d393: 8d 83 d0 00 00 00 lea 0xd0(%ebx),%eax 10d399: 50 push %eax 10d39a: e8 81 12 00 00 call 10e620 <_CPU_Context_switch>
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) &&
10d39f: 83 c4 10 add $0x10,%esp 10d3a2: 8b 93 e8 00 00 00 mov 0xe8(%ebx),%edx 10d3a8: 85 d2 test %edx,%edx
10d3aa: 74 36 je 10d3e2 <_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 );
10d3ac: a1 e0 53 12 00 mov 0x1253e0,%eax 10d3b1: 39 c3 cmp %eax,%ebx
10d3b3: 74 2d je 10d3e2 <_Thread_Dispatch+0xe6> !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL )
10d3b5: 85 c0 test %eax,%eax
10d3b7: 74 11 je 10d3ca <_Thread_Dispatch+0xce> _Context_Save_fp( &_Thread_Allocated_fp->fp_context );
10d3b9: 83 ec 0c sub $0xc,%esp 10d3bc: 05 e8 00 00 00 add $0xe8,%eax 10d3c1: 50 push %eax 10d3c2: e8 8d 12 00 00 call 10e654 <_CPU_Context_save_fp> 10d3c7: 83 c4 10 add $0x10,%esp
_Context_Restore_fp( &executing->fp_context );
10d3ca: 83 ec 0c sub $0xc,%esp 10d3cd: 8d 83 e8 00 00 00 lea 0xe8(%ebx),%eax 10d3d3: 50 push %eax 10d3d4: e8 85 12 00 00 call 10e65e <_CPU_Context_restore_fp>
_Thread_Allocated_fp = executing;
10d3d9: 89 1d e0 53 12 00 mov %ebx,0x1253e0 10d3df: 83 c4 10 add $0x10,%esp
if ( executing->fp_context != NULL ) _Context_Restore_fp( &executing->fp_context ); #endif #endif executing = _Thread_Executing;
10d3e2: 8b 1d 18 54 12 00 mov 0x125418,%ebx
_ISR_Disable( level );
10d3e8: 9c pushf 10d3e9: fa cli 10d3ea: 58 pop %eax
Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) {
10d3eb: 8a 15 28 54 12 00 mov 0x125428,%dl 10d3f1: 84 d2 test %dl,%dl
10d3f3: 74 37 je 10d42c <_Thread_Dispatch+0x130> heir = _Thread_Heir;
10d3f5: 8b 35 e8 53 12 00 mov 0x1253e8,%esi
_Thread_Dispatch_disable_level = 1;
10d3fb: c7 05 58 53 12 00 01 movl $0x1,0x125358
10d402: 00 00 00 _Context_Switch_necessary = false;
10d405: c6 05 28 54 12 00 00 movb $0x0,0x125428
_Thread_Executing = heir;
10d40c: 89 35 18 54 12 00 mov %esi,0x125418
#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 )
10d412: 83 7e 7c 01 cmpl $0x1,0x7c(%esi)
10d416: 0f 85 08 ff ff ff jne 10d324 <_Thread_Dispatch+0x28> heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
10d41c: 8b 15 24 53 12 00 mov 0x125324,%edx 10d422: 89 56 78 mov %edx,0x78(%esi) 10d425: e9 fa fe ff ff jmp 10d324 <_Thread_Dispatch+0x28>
10d42a: 66 90 xchg %ax,%ax <== NOT EXECUTED
executing = _Thread_Executing; _ISR_Disable( level ); } _Thread_Dispatch_disable_level = 0;
10d42c: c7 05 58 53 12 00 00 movl $0x0,0x125358
10d433: 00 00 00 _ISR_Enable( level );
10d436: 50 push %eax 10d437: 9d popf
if ( _Thread_Do_post_task_switch_extension ||
10d438: a1 fc 53 12 00 mov 0x1253fc,%eax 10d43d: 85 c0 test %eax,%eax
10d43f: 75 06 jne 10d447 <_Thread_Dispatch+0x14b><== ALWAYS TAKEN
executing->do_post_task_switch_extension ) {
10d441: 80 7b 74 00 cmpb $0x0,0x74(%ebx)
10d445: 74 09 je 10d450 <_Thread_Dispatch+0x154> executing->do_post_task_switch_extension = false;
10d447: c6 43 74 00 movb $0x0,0x74(%ebx)
_API_extensions_Run_postswitch();
10d44b: e8 5c e9 ff ff call 10bdac <_API_extensions_Run_postswitch>
} }
10d450: 8d 65 f4 lea -0xc(%ebp),%esp 10d453: 5b pop %ebx 10d454: 5e pop %esi 10d455: 5f pop %edi 10d456: c9 leave 10d457: c3 ret
00111eb0 <_Thread_Evaluate_mode>: * * XXX */ bool _Thread_Evaluate_mode( void ) {
111eb0: 55 push %ebp 111eb1: 89 e5 mov %esp,%ebp
Thread_Control *executing; executing = _Thread_Executing;
111eb3: a1 18 54 12 00 mov 0x125418,%eax
if ( !_States_Is_ready( executing->current_state ) ||
111eb8: 8b 50 10 mov 0x10(%eax),%edx 111ebb: 85 d2 test %edx,%edx
111ebd: 75 0e jne 111ecd <_Thread_Evaluate_mode+0x1d><== ALWAYS TAKEN
111ebf: 3b 05 e8 53 12 00 cmp 0x1253e8,%eax
111ec5: 74 11 je 111ed8 <_Thread_Evaluate_mode+0x28> ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
111ec7: 80 78 75 00 cmpb $0x0,0x75(%eax)
111ecb: 74 0b je 111ed8 <_Thread_Evaluate_mode+0x28><== ALWAYS TAKEN
_Context_Switch_necessary = true;
111ecd: c6 05 28 54 12 00 01 movb $0x1,0x125428 111ed4: b0 01 mov $0x1,%al
return true; } return false; }
111ed6: c9 leave 111ed7: 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;
111ed8: 31 c0 xor %eax,%eax
} return false; }
111eda: c9 leave 111edb: c3 ret
0010d47c <_Thread_Get>: Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) {
10d47c: 55 push %ebp 10d47d: 89 e5 mov %esp,%ebp 10d47f: 53 push %ebx 10d480: 83 ec 04 sub $0x4,%esp 10d483: 8b 45 08 mov 0x8(%ebp),%eax 10d486: 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 ) ) {
10d489: 85 c0 test %eax,%eax
10d48b: 74 4b je 10d4d8 <_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);
10d48d: 89 c2 mov %eax,%edx 10d48f: c1 ea 18 shr $0x18,%edx 10d492: 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 )
10d495: 8d 5a ff lea -0x1(%edx),%ebx 10d498: 83 fb 03 cmp $0x3,%ebx
10d49b: 77 2b ja 10d4c8 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */
10d49d: 89 c3 mov %eax,%ebx 10d49f: c1 eb 1b shr $0x1b,%ebx 10d4a2: 4b dec %ebx
10d4a3: 75 23 jne 10d4c8 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } api_information = _Objects_Information_table[ the_api ];
10d4a5: 8b 14 95 2c 53 12 00 mov 0x12532c(,%edx,4),%edx
if ( !api_information ) {
10d4ac: 85 d2 test %edx,%edx
10d4ae: 74 18 je 10d4c8 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } information = api_information[ the_class ];
10d4b0: 8b 52 04 mov 0x4(%edx),%edx
if ( !information ) {
10d4b3: 85 d2 test %edx,%edx
10d4b5: 74 11 je 10d4c8 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location );
10d4b7: 53 push %ebx 10d4b8: 51 push %ecx 10d4b9: 50 push %eax 10d4ba: 52 push %edx 10d4bb: e8 50 f7 ff ff call 10cc10 <_Objects_Get> 10d4c0: 83 c4 10 add $0x10,%esp
done: return tp; }
10d4c3: 8b 5d fc mov -0x4(%ebp),%ebx 10d4c6: c9 leave 10d4c7: c3 ret
goto done; } information = api_information[ the_class ]; if ( !information ) { *location = OBJECTS_ERROR;
10d4c8: c7 01 01 00 00 00 movl $0x1,(%ecx) 10d4ce: 31 c0 xor %eax,%eax
tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; }
10d4d0: 8b 5d fc mov -0x4(%ebp),%ebx 10d4d3: c9 leave 10d4d4: c3 ret
10d4d5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1;
10d4d8: a1 58 53 12 00 mov 0x125358,%eax 10d4dd: 40 inc %eax 10d4de: a3 58 53 12 00 mov %eax,0x125358
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;
10d4e3: c7 01 00 00 00 00 movl $0x0,(%ecx)
tp = _Thread_Executing;
10d4e9: a1 18 54 12 00 mov 0x125418,%eax
tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; }
10d4ee: 8b 5d fc mov -0x4(%ebp),%ebx 10d4f1: c9 leave 10d4f2: c3 ret
00111edc <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) {
111edc: 55 push %ebp 111edd: 89 e5 mov %esp,%ebp 111edf: 53 push %ebx 111ee0: 83 ec 14 sub $0x14,%esp
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing;
111ee3: 8b 1d 18 54 12 00 mov 0x125418,%ebx
/* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level;
111ee9: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax
_ISR_Set_level(level);
111eef: 85 c0 test %eax,%eax
111ef1: 74 79 je 111f6c <_Thread_Handler+0x90>
111ef3: fa cli
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors;
111ef4: a0 94 4f 12 00 mov 0x124f94,%al 111ef9: 88 45 f7 mov %al,-0x9(%ebp)
doneConstructors = 1;
111efc: c6 05 94 4f 12 00 01 movb $0x1,0x124f94
#endif #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) &&
111f03: 8b 93 e8 00 00 00 mov 0xe8(%ebx),%edx 111f09: 85 d2 test %edx,%edx
111f0b: 74 24 je 111f31 <_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 );
111f0d: a1 e0 53 12 00 mov 0x1253e0,%eax 111f12: 39 c3 cmp %eax,%ebx
111f14: 74 1b je 111f31 <_Thread_Handler+0x55> !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL )
111f16: 85 c0 test %eax,%eax
111f18: 74 11 je 111f2b <_Thread_Handler+0x4f> _Context_Save_fp( &_Thread_Allocated_fp->fp_context );
111f1a: 83 ec 0c sub $0xc,%esp 111f1d: 05 e8 00 00 00 add $0xe8,%eax 111f22: 50 push %eax 111f23: e8 2c c7 ff ff call 10e654 <_CPU_Context_save_fp> 111f28: 83 c4 10 add $0x10,%esp
_Thread_Allocated_fp = executing;
111f2b: 89 1d e0 53 12 00 mov %ebx,0x1253e0
/* * 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 );
111f31: 83 ec 0c sub $0xc,%esp 111f34: 53 push %ebx 111f35: e8 4e c2 ff ff call 10e188 <_User_extensions_Thread_begin>
/* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch();
111f3a: e8 19 b5 ff ff call 10d458 <_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) */ {
111f3f: 83 c4 10 add $0x10,%esp 111f42: 80 7d f7 00 cmpb $0x0,-0x9(%ebp)
111f46: 74 28 je 111f70 <_Thread_Handler+0x94> INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
111f48: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax 111f4e: 85 c0 test %eax,%eax
111f50: 74 2d je 111f7f <_Thread_Handler+0xa3> <== NEVER 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 );
111f52: 83 ec 0c sub $0xc,%esp 111f55: 53 push %ebx 111f56: e8 69 c2 ff ff call 10e1c4 <_User_extensions_Thread_exitted>
_Internal_error_Occurred(
111f5b: 83 c4 0c add $0xc,%esp 111f5e: 6a 06 push $0x6 111f60: 6a 01 push $0x1 111f62: 6a 00 push $0x0 111f64: e8 5f a7 ff ff call 10c6c8 <_Internal_error_Occurred>
111f69: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* 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);
111f6c: fb sti 111f6d: eb 85 jmp 111ef4 <_Thread_Handler+0x18>
111f6f: 90 nop <== NOT EXECUTED
* _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 ();
111f70: e8 9b c0 00 00 call 11e010 <__start_set_sysctl_set>
} #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
111f75: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax 111f7b: 85 c0 test %eax,%eax
111f7d: 75 d3 jne 111f52 <_Thread_Handler+0x76> <== ALWAYS TAKEN
executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)(
111f7f: 83 ec 0c sub $0xc,%esp 111f82: ff b3 a8 00 00 00 pushl 0xa8(%ebx) 111f88: ff 93 9c 00 00 00 call *0x9c(%ebx)
INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument =
111f8e: 89 43 28 mov %eax,0x28(%ebx) 111f91: 83 c4 10 add $0x10,%esp 111f94: eb bc jmp 111f52 <_Thread_Handler+0x76>
0010d4f4 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) {
10d4f4: 55 push %ebp 10d4f5: 89 e5 mov %esp,%ebp 10d4f7: 57 push %edi 10d4f8: 56 push %esi 10d4f9: 53 push %ebx 10d4fa: 83 ec 24 sub $0x24,%esp 10d4fd: 8b 5d 0c mov 0xc(%ebp),%ebx 10d500: 8b 75 14 mov 0x14(%ebp),%esi 10d503: 0f b6 7d 18 movzbl 0x18(%ebp),%edi 10d507: 8a 45 20 mov 0x20(%ebp),%al 10d50a: 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;
10d50d: c7 83 f0 00 00 00 00 movl $0x0,0xf0(%ebx)
10d514: 00 00 00
10d517: c7 83 f4 00 00 00 00 movl $0x0,0xf4(%ebx)
10d51e: 00 00 00
10d521: c7 83 f8 00 00 00 00 movl $0x0,0xf8(%ebx)
10d528: 00 00 00 extensions_area = NULL; the_thread->libc_reent = NULL;
10d52b: c7 83 ec 00 00 00 00 movl $0x0,0xec(%ebx)
10d532: 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 );
10d535: 56 push %esi 10d536: 53 push %ebx 10d537: e8 1c 09 00 00 call 10de58 <_Thread_Stack_Allocate>
if ( !actual_stack_size || actual_stack_size < stack_size )
10d53c: 83 c4 10 add $0x10,%esp 10d53f: 85 c0 test %eax,%eax
10d541: 0f 84 8d 01 00 00 je 10d6d4 <_Thread_Initialize+0x1e0>
10d547: 39 c6 cmp %eax,%esi
10d549: 0f 87 85 01 00 00 ja 10d6d4 <_Thread_Initialize+0x1e0><== ALWAYS TAKEN
Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address;
10d54f: 8b 93 cc 00 00 00 mov 0xcc(%ebx),%edx 10d555: 89 93 c4 00 00 00 mov %edx,0xc4(%ebx)
the_stack->size = size;
10d55b: 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 ) {
10d561: 89 f8 mov %edi,%eax 10d563: 84 c0 test %al,%al
10d565: 0f 85 81 01 00 00 jne 10d6ec <_Thread_Initialize+0x1f8>
10d56b: 31 c0 xor %eax,%eax 10d56d: 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;
10d574: 89 83 e8 00 00 00 mov %eax,0xe8(%ebx)
the_thread->Start.fp_context = fp_area;
10d57a: 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;
10d580: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx)
the_watchdog->routine = routine;
10d587: c7 43 64 00 00 00 00 movl $0x0,0x64(%ebx)
the_watchdog->id = id;
10d58e: c7 43 68 00 00 00 00 movl $0x0,0x68(%ebx)
the_watchdog->user_data = user_data;
10d595: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx)
#endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) {
10d59c: a1 f8 53 12 00 mov 0x1253f8,%eax 10d5a1: 85 c0 test %eax,%eax
10d5a3: 0f 85 5f 01 00 00 jne 10d708 <_Thread_Initialize+0x214> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area;
10d5a9: c7 83 fc 00 00 00 00 movl $0x0,0xfc(%ebx)
10d5b0: 00 00 00
10d5b3: 31 ff xor %edi,%edi
/* * General initialization */ the_thread->Start.is_preemptible = is_preemptible;
10d5b5: 8a 45 e7 mov -0x19(%ebp),%al 10d5b8: 88 83 ac 00 00 00 mov %al,0xac(%ebx)
the_thread->Start.budget_algorithm = budget_algorithm;
10d5be: 8b 45 24 mov 0x24(%ebp),%eax 10d5c1: 89 83 b0 00 00 00 mov %eax,0xb0(%ebx)
the_thread->Start.budget_callout = budget_callout;
10d5c7: 8b 45 28 mov 0x28(%ebp),%eax 10d5ca: 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;
10d5d0: 8b 45 2c mov 0x2c(%ebp),%eax 10d5d3: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx)
the_thread->current_state = STATES_DORMANT;
10d5d9: c7 43 10 01 00 00 00 movl $0x1,0x10(%ebx)
the_thread->Wait.queue = NULL;
10d5e0: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx)
the_thread->resource_count = 0;
10d5e7: 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;
10d5ee: 8b 45 1c mov 0x1c(%ebp),%eax 10d5f1: 89 43 18 mov %eax,0x18(%ebx)
the_thread->Start.initial_priority = priority;
10d5f4: 89 83 bc 00 00 00 mov %eax,0xbc(%ebx)
_Thread_Set_priority( the_thread, priority );
10d5fa: 83 ec 08 sub $0x8,%esp 10d5fd: 50 push %eax 10d5fe: 53 push %ebx 10d5ff: e8 98 06 00 00 call 10dc9c <_Thread_Set_priority>
/* * Initialize the CPU usage statistics */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Set_to_zero( &the_thread->cpu_time_used );
10d604: c7 83 84 00 00 00 00 movl $0x0,0x84(%ebx)
10d60b: 00 00 00
10d60e: c7 83 88 00 00 00 00 movl $0x0,0x88(%ebx)
10d615: 00 00 00 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object;
10d618: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10d61c: 8b 45 08 mov 0x8(%ebp),%eax 10d61f: 8b 40 1c mov 0x1c(%eax),%eax 10d622: 89 1c 90 mov %ebx,(%eax,%edx,4)
information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name;
10d625: 8b 45 30 mov 0x30(%ebp),%eax 10d628: 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 );
10d62b: 89 1c 24 mov %ebx,(%esp) 10d62e: e8 1d 0c 00 00 call 10e250 <_User_extensions_Thread_create>
if ( extension_status )
10d633: 83 c4 10 add $0x10,%esp 10d636: 84 c0 test %al,%al
10d638: 0f 85 a2 00 00 00 jne 10d6e0 <_Thread_Initialize+0x1ec> return true; failed: if ( the_thread->libc_reent )
10d63e: 8b 83 ec 00 00 00 mov 0xec(%ebx),%eax 10d644: 85 c0 test %eax,%eax
10d646: 74 0c je 10d654 <_Thread_Initialize+0x160> _Workspace_Free( the_thread->libc_reent );
10d648: 83 ec 0c sub $0xc,%esp 10d64b: 50 push %eax 10d64c: e8 5f 0f 00 00 call 10e5b0 <_Workspace_Free> 10d651: 83 c4 10 add $0x10,%esp
for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] )
10d654: 8b 83 f0 00 00 00 mov 0xf0(%ebx),%eax 10d65a: 85 c0 test %eax,%eax
10d65c: 74 0c je 10d66a <_Thread_Initialize+0x176> _Workspace_Free( the_thread->API_Extensions[i] );
10d65e: 83 ec 0c sub $0xc,%esp 10d661: 50 push %eax 10d662: e8 49 0f 00 00 call 10e5b0 <_Workspace_Free> 10d667: 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] )
10d66a: 8b 83 f4 00 00 00 mov 0xf4(%ebx),%eax 10d670: 85 c0 test %eax,%eax
10d672: 74 0c je 10d680 <_Thread_Initialize+0x18c><== NEVER TAKEN
_Workspace_Free( the_thread->API_Extensions[i] );
10d674: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10d677: 50 push %eax <== NOT EXECUTED 10d678: e8 33 0f 00 00 call 10e5b0 <_Workspace_Free> <== NOT EXECUTED 10d67d: 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] )
10d680: 8b 83 f8 00 00 00 mov 0xf8(%ebx),%eax 10d686: 85 c0 test %eax,%eax
10d688: 74 0c je 10d696 <_Thread_Initialize+0x1a2><== NEVER TAKEN
_Workspace_Free( the_thread->API_Extensions[i] );
10d68a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10d68d: 50 push %eax <== NOT EXECUTED 10d68e: e8 1d 0f 00 00 call 10e5b0 <_Workspace_Free> <== NOT EXECUTED 10d693: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( extensions_area )
10d696: 85 ff test %edi,%edi
10d698: 74 0c je 10d6a6 <_Thread_Initialize+0x1b2> (void) _Workspace_Free( extensions_area );
10d69a: 83 ec 0c sub $0xc,%esp 10d69d: 57 push %edi 10d69e: e8 0d 0f 00 00 call 10e5b0 <_Workspace_Free> 10d6a3: 83 c4 10 add $0x10,%esp
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area )
10d6a6: 8b 45 e0 mov -0x20(%ebp),%eax 10d6a9: 85 c0 test %eax,%eax
10d6ab: 74 0e je 10d6bb <_Thread_Initialize+0x1c7> (void) _Workspace_Free( fp_area );
10d6ad: 83 ec 0c sub $0xc,%esp 10d6b0: ff 75 e0 pushl -0x20(%ebp) 10d6b3: e8 f8 0e 00 00 call 10e5b0 <_Workspace_Free> 10d6b8: 83 c4 10 add $0x10,%esp
#endif _Thread_Stack_Free( the_thread );
10d6bb: 83 ec 0c sub $0xc,%esp 10d6be: 53 push %ebx 10d6bf: e8 f8 07 00 00 call 10debc <_Thread_Stack_Free> 10d6c4: 31 c0 xor %eax,%eax
return false;
10d6c6: 83 c4 10 add $0x10,%esp
}
10d6c9: 8d 65 f4 lea -0xc(%ebp),%esp 10d6cc: 5b pop %ebx 10d6cd: 5e pop %esi 10d6ce: 5f pop %edi 10d6cf: c9 leave 10d6d0: c3 ret
10d6d1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if ( fp_area ) (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); return false;
10d6d4: 31 c0 xor %eax,%eax
}
10d6d6: 8d 65 f4 lea -0xc(%ebp),%esp 10d6d9: 5b pop %ebx 10d6da: 5e pop %esi 10d6db: 5f pop %edi 10d6dc: c9 leave 10d6dd: c3 ret
10d6de: 66 90 xchg %ax,%ax <== NOT EXECUTED
* 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 )
10d6e0: b0 01 mov $0x1,%al
_Thread_Stack_Free( the_thread ); return false; }
10d6e2: 8d 65 f4 lea -0xc(%ebp),%esp 10d6e5: 5b pop %ebx 10d6e6: 5e pop %esi 10d6e7: 5f pop %edi 10d6e8: c9 leave 10d6e9: c3 ret
10d6ea: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * 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 );
10d6ec: 83 ec 0c sub $0xc,%esp 10d6ef: 6a 6c push $0x6c 10d6f1: e8 9e 0e 00 00 call 10e594 <_Workspace_Allocate> 10d6f6: 89 45 e0 mov %eax,-0x20(%ebp)
if ( !fp_area )
10d6f9: 83 c4 10 add $0x10,%esp 10d6fc: 85 c0 test %eax,%eax
10d6fe: 74 55 je 10d755 <_Thread_Initialize+0x261>
10d700: 8b 45 e0 mov -0x20(%ebp),%eax 10d703: e9 6c fe ff ff jmp 10d574 <_Thread_Initialize+0x80>
/* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { extensions_area = _Workspace_Allocate(
10d708: 83 ec 0c sub $0xc,%esp 10d70b: 8d 04 85 04 00 00 00 lea 0x4(,%eax,4),%eax 10d712: 50 push %eax 10d713: e8 7c 0e 00 00 call 10e594 <_Workspace_Allocate> 10d718: 89 c7 mov %eax,%edi
(_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area )
10d71a: 83 c4 10 add $0x10,%esp 10d71d: 85 c0 test %eax,%eax
10d71f: 0f 84 19 ff ff ff je 10d63e <_Thread_Initialize+0x14a> goto failed; } the_thread->extensions = (void **) extensions_area;
10d725: 89 c1 mov %eax,%ecx 10d727: 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++ )
10d72d: 8b 35 f8 53 12 00 mov 0x1253f8,%esi 10d733: 31 d2 xor %edx,%edx 10d735: 31 c0 xor %eax,%eax 10d737: eb 09 jmp 10d742 <_Thread_Initialize+0x24e>
10d739: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
10d73c: 8b 8b fc 00 00 00 mov 0xfc(%ebx),%ecx
the_thread->extensions[i] = NULL;
10d742: 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++ )
10d749: 40 inc %eax 10d74a: 89 c2 mov %eax,%edx 10d74c: 39 c6 cmp %eax,%esi
10d74e: 73 ec jae 10d73c <_Thread_Initialize+0x248>
10d750: e9 60 fe ff ff jmp 10d5b5 <_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 )
10d755: 31 ff xor %edi,%edi 10d757: e9 e2 fe ff ff jmp 10d63e <_Thread_Initialize+0x14a>
00111600 <_Thread_Reset>: void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) {
111600: 55 push %ebp 111601: 89 e5 mov %esp,%ebp 111603: 53 push %ebx 111604: 83 ec 10 sub $0x10,%esp 111607: 8b 5d 08 mov 0x8(%ebp),%ebx
the_thread->resource_count = 0;
11160a: 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;
111611: 8a 83 ac 00 00 00 mov 0xac(%ebx),%al 111617: 88 43 75 mov %al,0x75(%ebx)
the_thread->budget_algorithm = the_thread->Start.budget_algorithm;
11161a: 8b 83 b0 00 00 00 mov 0xb0(%ebx),%eax 111620: 89 43 7c mov %eax,0x7c(%ebx)
the_thread->budget_callout = the_thread->Start.budget_callout;
111623: 8b 83 b4 00 00 00 mov 0xb4(%ebx),%eax 111629: 89 83 80 00 00 00 mov %eax,0x80(%ebx)
the_thread->Start.pointer_argument = pointer_argument;
11162f: 8b 45 0c mov 0xc(%ebp),%eax 111632: 89 83 a4 00 00 00 mov %eax,0xa4(%ebx)
the_thread->Start.numeric_argument = numeric_argument;
111638: 8b 45 10 mov 0x10(%ebp),%eax 11163b: 89 83 a8 00 00 00 mov %eax,0xa8(%ebx)
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
111641: 53 push %ebx 111642: e8 3d d0 ff ff call 10e684 <_Thread_queue_Extract_with_proxy> 111647: 83 c4 10 add $0x10,%esp 11164a: 84 c0 test %al,%al
11164c: 75 06 jne 111654 <_Thread_Reset+0x54> if ( _Watchdog_Is_active( &the_thread->Timer ) )
11164e: 83 7b 50 02 cmpl $0x2,0x50(%ebx)
111652: 74 28 je 11167c <_Thread_Reset+0x7c> (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) {
111654: 8b 83 bc 00 00 00 mov 0xbc(%ebx),%eax 11165a: 39 43 14 cmp %eax,0x14(%ebx)
11165d: 74 15 je 111674 <_Thread_Reset+0x74> the_thread->real_priority = the_thread->Start.initial_priority;
11165f: 89 43 18 mov %eax,0x18(%ebx)
_Thread_Set_priority( the_thread, the_thread->Start.initial_priority );
111662: 89 45 0c mov %eax,0xc(%ebp) 111665: 89 5d 08 mov %ebx,0x8(%ebp)
} }
111668: 8b 5d fc mov -0x4(%ebp),%ebx 11166b: 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 );
11166c: e9 df d1 ff ff jmp 10e850 <_Thread_Set_priority>
111671: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
} }
111674: 8b 5d fc mov -0x4(%ebp),%ebx 111677: c9 leave 111678: c3 ret
111679: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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 );
11167c: 83 ec 0c sub $0xc,%esp 11167f: 8d 43 48 lea 0x48(%ebx),%eax 111682: 50 push %eax 111683: e8 fc d9 ff ff call 10f084 <_Watchdog_Remove> 111688: 83 c4 10 add $0x10,%esp 11168b: eb c7 jmp 111654 <_Thread_Reset+0x54>
00110988 <_Thread_Reset_timeslice>: * ready chain * select heir */ void _Thread_Reset_timeslice( void ) {
110988: 55 push %ebp 110989: 89 e5 mov %esp,%ebp 11098b: 56 push %esi 11098c: 53 push %ebx
ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing;
11098d: a1 18 54 12 00 mov 0x125418,%eax
ready = executing->ready;
110992: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
_ISR_Disable( level );
110998: 9c pushf 110999: fa cli 11099a: 59 pop %ecx
if ( _Chain_Has_only_one_node( ready ) ) {
11099b: 8b 1a mov (%edx),%ebx 11099d: 3b 5a 08 cmp 0x8(%edx),%ebx
1109a0: 74 3e je 1109e0 <_Thread_Reset_timeslice+0x58> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next;
1109a2: 8b 30 mov (%eax),%esi
previous = the_node->previous;
1109a4: 8b 58 04 mov 0x4(%eax),%ebx
next->previous = previous;
1109a7: 89 5e 04 mov %ebx,0x4(%esi)
previous->next = next;
1109aa: 89 33 mov %esi,(%ebx)
Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain);
1109ac: 8d 5a 04 lea 0x4(%edx),%ebx 1109af: 89 18 mov %ebx,(%eax)
old_last_node = the_chain->last;
1109b1: 8b 5a 08 mov 0x8(%edx),%ebx
the_chain->last = the_node;
1109b4: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
1109b7: 89 03 mov %eax,(%ebx)
the_node->previous = old_last_node;
1109b9: 89 58 04 mov %ebx,0x4(%eax)
return; } _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level );
1109bc: 51 push %ecx 1109bd: 9d popf 1109be: fa cli
if ( _Thread_Is_heir( executing ) )
1109bf: 3b 05 e8 53 12 00 cmp 0x1253e8,%eax
1109c5: 74 0d je 1109d4 <_Thread_Reset_timeslice+0x4c><== NEVER TAKEN
_Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true;
1109c7: c6 05 28 54 12 00 01 movb $0x1,0x125428
_ISR_Enable( level );
1109ce: 51 push %ecx 1109cf: 9d popf
}
1109d0: 5b pop %ebx 1109d1: 5e pop %esi 1109d2: c9 leave 1109d3: c3 ret
_Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first;
1109d4: 8b 02 mov (%edx),%eax 1109d6: a3 e8 53 12 00 mov %eax,0x1253e8 1109db: eb ea jmp 1109c7 <_Thread_Reset_timeslice+0x3f>
1109dd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
executing = _Thread_Executing; ready = executing->ready; _ISR_Disable( level ); if ( _Chain_Has_only_one_node( ready ) ) { _ISR_Enable( level );
1109e0: 51 push %ecx 1109e1: 9d popf
_Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; _ISR_Enable( level ); }
1109e2: 5b pop %ebx 1109e3: 5e pop %esi 1109e4: c9 leave 1109e5: c3 ret
0010e7c4 <_Thread_Restart>: bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) {
10e7c4: 55 push %ebp 10e7c5: 89 e5 mov %esp,%ebp 10e7c7: 53 push %ebx 10e7c8: 83 ec 04 sub $0x4,%esp 10e7cb: 8b 5d 08 mov 0x8(%ebp),%ebx
if ( !_States_Is_dormant( the_thread->current_state ) ) {
10e7ce: f6 43 10 01 testb $0x1,0x10(%ebx)
10e7d2: 74 08 je 10e7dc <_Thread_Restart+0x18>
10e7d4: 31 c0 xor %eax,%eax
return true; } return false; }
10e7d6: 8b 5d fc mov -0x4(%ebp),%ebx 10e7d9: c9 leave 10e7da: c3 ret
10e7db: 90 nop <== NOT EXECUTED
Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { _Thread_Set_transient( the_thread );
10e7dc: 83 ec 0c sub $0xc,%esp 10e7df: 53 push %ebx 10e7e0: e8 b3 01 00 00 call 10e998 <_Thread_Set_transient>
_Thread_Reset( the_thread, pointer_argument, numeric_argument );
10e7e5: 83 c4 0c add $0xc,%esp 10e7e8: ff 75 10 pushl 0x10(%ebp) 10e7eb: ff 75 0c pushl 0xc(%ebp) 10e7ee: 53 push %ebx 10e7ef: e8 0c 2e 00 00 call 111600 <_Thread_Reset>
_Thread_Load_environment( the_thread );
10e7f4: 89 1c 24 mov %ebx,(%esp) 10e7f7: e8 e0 2a 00 00 call 1112dc <_Thread_Load_environment>
_Thread_Ready( the_thread );
10e7fc: 89 1c 24 mov %ebx,(%esp) 10e7ff: e8 58 2d 00 00 call 11155c <_Thread_Ready>
_User_extensions_Thread_restart( the_thread );
10e804: 89 1c 24 mov %ebx,(%esp) 10e807: e8 80 06 00 00 call 10ee8c <_User_extensions_Thread_restart>
if ( _Thread_Is_executing ( the_thread ) )
10e80c: 83 c4 10 add $0x10,%esp 10e80f: 3b 1d 78 74 12 00 cmp 0x127478,%ebx
10e815: 74 07 je 10e81e <_Thread_Restart+0x5a> #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( _Thread_Executing->fp_context != NULL ) _Context_Restore_fp( &_Thread_Executing->fp_context ); #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers );
10e817: b0 01 mov $0x1,%al
return true; } return false; }
10e819: 8b 5d fc mov -0x4(%ebp),%ebx 10e81c: c9 leave 10e81d: c3 ret
*/ RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void ) { #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( _Thread_Executing->fp_context != NULL )
10e81e: 83 bb e8 00 00 00 00 cmpl $0x0,0xe8(%ebx)
10e825: 74 18 je 10e83f <_Thread_Restart+0x7b> _Context_Restore_fp( &_Thread_Executing->fp_context );
10e827: 83 ec 0c sub $0xc,%esp 10e82a: 81 c3 e8 00 00 00 add $0xe8,%ebx 10e830: 53 push %ebx 10e831: e8 18 0a 00 00 call 10f24e <_CPU_Context_restore_fp> 10e836: 8b 1d 78 74 12 00 mov 0x127478,%ebx 10e83c: 83 c4 10 add $0x10,%esp
#endif _CPU_Context_Restart_self( &_Thread_Executing->Registers );
10e83f: 83 ec 0c sub $0xc,%esp 10e842: 81 c3 d0 00 00 00 add $0xd0,%ebx 10e848: 53 push %ebx 10e849: e8 ef 09 00 00 call 10f23d <_CPU_Context_restore>
001115d8 <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) {
1115d8: 55 push %ebp 1115d9: 89 e5 mov %esp,%ebp 1115db: 53 push %ebx 1115dc: 8b 45 08 mov 0x8(%ebp),%eax
ISR_Level level; States_Control current_state; _ISR_Disable( level );
1115df: 9c pushf 1115e0: fa cli 1115e1: 59 pop %ecx
_ISR_Enable( level ); return; } #endif current_state = the_thread->current_state;
1115e2: 8b 50 10 mov 0x10(%eax),%edx
if ( current_state & STATES_SUSPENDED ) {
1115e5: f6 c2 02 test $0x2,%dl
1115e8: 74 6e je 111658 <_Thread_Resume+0x80> <== ALWAYS TAKEN
1115ea: 83 e2 fd and $0xfffffffd,%edx
current_state =
1115ed: 89 50 10 mov %edx,0x10(%eax)
the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) {
1115f0: 85 d2 test %edx,%edx
1115f2: 75 64 jne 111658 <_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;
1115f4: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 1115fa: 66 8b 98 96 00 00 00 mov 0x96(%eax),%bx 111601: 66 09 1a or %bx,(%edx)
_Priority_Major_bit_map |= the_priority_map->ready_major;
111604: 66 8b 15 2c a5 12 00 mov 0x12a52c,%dx 11160b: 0b 90 94 00 00 00 or 0x94(%eax),%edx 111611: 66 89 15 2c a5 12 00 mov %dx,0x12a52c
_Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
111618: 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);
11161e: 8d 5a 04 lea 0x4(%edx),%ebx 111621: 89 18 mov %ebx,(%eax)
old_last_node = the_chain->last;
111623: 8b 5a 08 mov 0x8(%edx),%ebx
the_chain->last = the_node;
111626: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
111629: 89 03 mov %eax,(%ebx)
the_node->previous = old_last_node;
11162b: 89 58 04 mov %ebx,0x4(%eax)
_ISR_Flash( level );
11162e: 51 push %ecx 11162f: 9d popf 111630: fa cli
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
111631: 8b 50 14 mov 0x14(%eax),%edx 111634: 8b 1d 08 a5 12 00 mov 0x12a508,%ebx 11163a: 3b 53 14 cmp 0x14(%ebx),%edx
11163d: 73 19 jae 111658 <_Thread_Resume+0x80> _Thread_Heir = the_thread;
11163f: a3 08 a5 12 00 mov %eax,0x12a508
if ( _Thread_Executing->is_preemptible ||
111644: a1 38 a5 12 00 mov 0x12a538,%eax 111649: 80 78 75 00 cmpb $0x0,0x75(%eax)
11164d: 74 11 je 111660 <_Thread_Resume+0x88> the_thread->current_priority == 0 ) _Context_Switch_necessary = true;
11164f: c6 05 48 a5 12 00 01 movb $0x1,0x12a548 111656: 66 90 xchg %ax,%ax
} } } _ISR_Enable( level );
111658: 51 push %ecx 111659: 9d popf
}
11165a: 5b pop %ebx 11165b: c9 leave 11165c: c3 ret
11165d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_ISR_Flash( level ); if ( the_thread->current_priority < _Thread_Heir->current_priority ) { _Thread_Heir = the_thread; if ( _Thread_Executing->is_preemptible ||
111660: 85 d2 test %edx,%edx
111662: 74 eb je 11164f <_Thread_Resume+0x77> <== ALWAYS TAKEN
111664: eb f2 jmp 111658 <_Thread_Resume+0x80>
0010dd08 <_Thread_Set_state>: void _Thread_Set_state( Thread_Control *the_thread, States_Control state ) {
10dd08: 55 push %ebp 10dd09: 89 e5 mov %esp,%ebp 10dd0b: 56 push %esi 10dd0c: 53 push %ebx 10dd0d: 8b 45 08 mov 0x8(%ebp),%eax 10dd10: 8b 75 0c mov 0xc(%ebp),%esi
ISR_Level level; Chain_Control *ready; ready = the_thread->ready;
10dd13: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
_ISR_Disable( level );
10dd19: 9c pushf 10dd1a: fa cli 10dd1b: 59 pop %ecx
if ( !_States_Is_ready( the_thread->current_state ) ) {
10dd1c: 8b 58 10 mov 0x10(%eax),%ebx 10dd1f: 85 db test %ebx,%ebx
10dd21: 75 2d jne 10dd50 <_Thread_Set_state+0x48> _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = state;
10dd23: 89 70 10 mov %esi,0x10(%eax)
if ( _Chain_Has_only_one_node( ready ) ) {
10dd26: 8b 1a mov (%edx),%ebx 10dd28: 3b 5a 08 cmp 0x8(%edx),%ebx
10dd2b: 74 3b je 10dd68 <_Thread_Set_state+0x60> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next;
10dd2d: 8b 18 mov (%eax),%ebx
previous = the_node->previous;
10dd2f: 8b 50 04 mov 0x4(%eax),%edx
next->previous = previous;
10dd32: 89 53 04 mov %edx,0x4(%ebx)
previous->next = next;
10dd35: 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 );
10dd37: 51 push %ecx 10dd38: 9d popf 10dd39: fa cli
if ( _Thread_Is_heir( the_thread ) )
10dd3a: 3b 05 e8 53 12 00 cmp 0x1253e8,%eax
10dd40: 74 62 je 10dda4 <_Thread_Set_state+0x9c> _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) )
10dd42: 3b 05 18 54 12 00 cmp 0x125418,%eax
10dd48: 74 12 je 10dd5c <_Thread_Set_state+0x54> _Context_Switch_necessary = true; _ISR_Enable( level );
10dd4a: 51 push %ecx 10dd4b: 9d popf
}
10dd4c: 5b pop %ebx 10dd4d: 5e pop %esi 10dd4e: c9 leave 10dd4f: c3 ret
Chain_Control *ready; ready = the_thread->ready; _ISR_Disable( level ); if ( !_States_Is_ready( the_thread->current_state ) ) { the_thread->current_state =
10dd50: 09 f3 or %esi,%ebx 10dd52: 89 58 10 mov %ebx,0x10(%eax)
_States_Set( state, the_thread->current_state ); _ISR_Enable( level );
10dd55: 51 push %ecx 10dd56: 9d popf
if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; _ISR_Enable( level ); }
10dd57: 5b pop %ebx 10dd58: 5e pop %esi 10dd59: c9 leave 10dd5a: c3 ret
10dd5b: 90 nop <== NOT EXECUTED
if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true;
10dd5c: c6 05 28 54 12 00 01 movb $0x1,0x125428 10dd63: eb e5 jmp 10dd4a <_Thread_Set_state+0x42>
10dd65: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain);
10dd68: 8d 5a 04 lea 0x4(%edx),%ebx 10dd6b: 89 1a mov %ebx,(%edx)
the_chain->permanent_null = NULL;
10dd6d: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx)
the_chain->last = _Chain_Head(the_chain);
10dd74: 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;
10dd77: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 10dd7d: 66 8b 98 9a 00 00 00 mov 0x9a(%eax),%bx 10dd84: 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 );
10dd87: 66 83 3a 00 cmpw $0x0,(%edx)
10dd8b: 75 aa jne 10dd37 <_Thread_Set_state+0x2f> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major;
10dd8d: 66 8b 15 0c 54 12 00 mov 0x12540c,%dx 10dd94: 23 90 98 00 00 00 and 0x98(%eax),%edx 10dd9a: 66 89 15 0c 54 12 00 mov %dx,0x12540c 10dda1: eb 94 jmp 10dd37 <_Thread_Set_state+0x2f>
10dda3: 90 nop <== NOT EXECUTED
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 );
10dda4: 66 8b 35 0c 54 12 00 mov 0x12540c,%si 10ddab: 31 d2 xor %edx,%edx 10ddad: 89 d3 mov %edx,%ebx 10ddaf: 66 0f bc de bsf %si,%bx
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
10ddb3: 0f b7 db movzwl %bx,%ebx 10ddb6: 66 8b b4 1b a0 54 12 mov 0x1254a0(%ebx,%ebx,1),%si
10ddbd: 00
10ddbe: 66 0f bc d6 bsf %si,%dx
* ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *)
10ddc2: c1 e3 04 shl $0x4,%ebx 10ddc5: 0f b7 d2 movzwl %dx,%edx 10ddc8: 8d 14 13 lea (%ebx,%edx,1),%edx 10ddcb: 8d 1c 52 lea (%edx,%edx,2),%ebx 10ddce: 8b 15 20 53 12 00 mov 0x125320,%edx 10ddd4: 8b 14 9a mov (%edx,%ebx,4),%edx 10ddd7: 89 15 e8 53 12 00 mov %edx,0x1253e8 10dddd: e9 60 ff ff ff jmp 10dd42 <_Thread_Set_state+0x3a>
0010dde4 <_Thread_Set_transient>: */ void _Thread_Set_transient( Thread_Control *the_thread ) {
10dde4: 55 push %ebp 10dde5: 89 e5 mov %esp,%ebp 10dde7: 56 push %esi 10dde8: 53 push %ebx 10dde9: 8b 45 08 mov 0x8(%ebp),%eax
ISR_Level level; uint32_t old_state; Chain_Control *ready; ready = the_thread->ready;
10ddec: 8b 88 8c 00 00 00 mov 0x8c(%eax),%ecx
_ISR_Disable( level );
10ddf2: 9c pushf 10ddf3: fa cli 10ddf4: 5b pop %ebx
old_state = the_thread->current_state;
10ddf5: 8b 50 10 mov 0x10(%eax),%edx
the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state );
10ddf8: 89 d6 mov %edx,%esi 10ddfa: 83 ce 04 or $0x4,%esi 10ddfd: 89 70 10 mov %esi,0x10(%eax)
if ( _States_Is_ready( old_state ) ) {
10de00: 85 d2 test %edx,%edx
10de02: 75 11 jne 10de15 <_Thread_Set_transient+0x31> if ( _Chain_Has_only_one_node( ready ) ) {
10de04: 8b 11 mov (%ecx),%edx 10de06: 3b 51 08 cmp 0x8(%ecx),%edx
10de09: 74 11 je 10de1c <_Thread_Set_transient+0x38> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next;
10de0b: 8b 10 mov (%eax),%edx
previous = the_node->previous;
10de0d: 8b 40 04 mov 0x4(%eax),%eax
next->previous = previous;
10de10: 89 42 04 mov %eax,0x4(%edx)
previous->next = next;
10de13: 89 10 mov %edx,(%eax)
} else _Chain_Extract_unprotected( &the_thread->Object.Node ); } _ISR_Enable( level );
10de15: 53 push %ebx 10de16: 9d popf
}
10de17: 5b pop %ebx 10de18: 5e pop %esi 10de19: c9 leave 10de1a: c3 ret
10de1b: 90 nop <== NOT EXECUTED
*/ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain);
10de1c: 8d 51 04 lea 0x4(%ecx),%edx 10de1f: 89 11 mov %edx,(%ecx)
the_chain->permanent_null = NULL;
10de21: c7 41 04 00 00 00 00 movl $0x0,0x4(%ecx)
the_chain->last = _Chain_Head(the_chain);
10de28: 89 49 08 mov %ecx,0x8(%ecx)
RTEMS_INLINE_ROUTINE void _Priority_Remove_from_bit_map ( Priority_Information *the_priority_map ) { *the_priority_map->minor &= the_priority_map->block_minor;
10de2b: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 10de31: 66 8b 88 9a 00 00 00 mov 0x9a(%eax),%cx 10de38: 66 21 0a and %cx,(%edx)
if ( _States_Is_ready( old_state ) ) { if ( _Chain_Has_only_one_node( ready ) ) { _Chain_Initialize_empty( ready ); _Priority_Remove_from_bit_map( &the_thread->Priority_map );
10de3b: 66 83 3a 00 cmpw $0x0,(%edx)
10de3f: 75 d4 jne 10de15 <_Thread_Set_transient+0x31> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major;
10de41: 66 8b 15 0c 54 12 00 mov 0x12540c,%dx 10de48: 23 90 98 00 00 00 and 0x98(%eax),%edx 10de4e: 66 89 15 0c 54 12 00 mov %dx,0x12540c 10de55: eb be jmp 10de15 <_Thread_Set_transient+0x31>
0010de58 <_Thread_Stack_Allocate>: size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) {
10de58: 55 push %ebp 10de59: 89 e5 mov %esp,%ebp 10de5b: 53 push %ebx 10de5c: 83 ec 04 sub $0x4,%esp 10de5f: a1 10 12 12 00 mov 0x121210,%eax 10de64: 8b 5d 0c mov 0xc(%ebp),%ebx 10de67: 39 c3 cmp %eax,%ebx
10de69: 73 02 jae 10de6d <_Thread_Stack_Allocate+0x15>
10de6b: 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 ) {
10de6d: a1 40 12 12 00 mov 0x121240,%eax 10de72: 85 c0 test %eax,%eax
10de74: 74 32 je 10dea8 <_Thread_Stack_Allocate+0x50> stack_addr = (*Configuration.stack_allocate_hook)( the_stack_size );
10de76: 83 ec 0c sub $0xc,%esp 10de79: 53 push %ebx 10de7a: ff d0 call *%eax 10de7c: 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 )
10de7f: 85 c0 test %eax,%eax
10de81: 74 11 je 10de94 <_Thread_Stack_Allocate+0x3c> the_stack_size = 0; the_thread->Start.stack = stack_addr;
10de83: 8b 55 08 mov 0x8(%ebp),%edx 10de86: 89 82 cc 00 00 00 mov %eax,0xcc(%edx)
return the_stack_size; }
10de8c: 89 d8 mov %ebx,%eax 10de8e: 8b 5d fc mov -0x4(%ebp),%ebx 10de91: c9 leave 10de92: c3 ret
10de93: 90 nop <== NOT EXECUTED
the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr )
10de94: 31 db xor %ebx,%ebx
the_stack_size = 0; the_thread->Start.stack = stack_addr;
10de96: 8b 55 08 mov 0x8(%ebp),%edx 10de99: 89 82 cc 00 00 00 mov %eax,0xcc(%edx)
return the_stack_size; }
10de9f: 89 d8 mov %ebx,%eax 10dea1: 8b 5d fc mov -0x4(%ebp),%ebx 10dea4: c9 leave 10dea5: c3 ret
10dea6: 66 90 xchg %ax,%ax <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uint32_t _Stack_Adjust_size ( size_t size ) { return size + CPU_STACK_ALIGNMENT;
10dea8: 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 );
10deab: 83 ec 0c sub $0xc,%esp 10deae: 53 push %ebx 10deaf: e8 e0 06 00 00 call 10e594 <_Workspace_Allocate> 10deb4: 83 c4 10 add $0x10,%esp 10deb7: eb c6 jmp 10de7f <_Thread_Stack_Allocate+0x27>
0010debc <_Thread_Stack_Free>: */ void _Thread_Stack_Free( Thread_Control *the_thread ) {
10debc: 55 push %ebp 10debd: 89 e5 mov %esp,%ebp 10debf: 83 ec 08 sub $0x8,%esp 10dec2: 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 )
10dec5: a1 44 12 12 00 mov 0x121244,%eax 10deca: 85 c0 test %eax,%eax
10decc: 74 0e je 10dedc <_Thread_Stack_Free+0x20> (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area );
10dece: 8b 92 c4 00 00 00 mov 0xc4(%edx),%edx 10ded4: 89 55 08 mov %edx,0x8(%ebp)
else _Workspace_Free( the_thread->Start.Initial_stack.area ); }
10ded7: 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 );
10ded8: ff e0 jmp *%eax
10deda: 66 90 xchg %ax,%ax <== NOT EXECUTED
else _Workspace_Free( the_thread->Start.Initial_stack.area );
10dedc: 8b 82 c4 00 00 00 mov 0xc4(%edx),%eax 10dee2: 89 45 08 mov %eax,0x8(%ebp)
}
10dee5: 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 );
10dee6: e9 c5 06 00 00 jmp 10e5b0 <_Workspace_Free>
0010df48 <_Thread_Start>: Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) {
10df48: 55 push %ebp 10df49: 89 e5 mov %esp,%ebp 10df4b: 53 push %ebx 10df4c: 83 ec 04 sub $0x4,%esp 10df4f: 8b 5d 08 mov 0x8(%ebp),%ebx
if ( _States_Is_dormant( the_thread->current_state ) ) {
10df52: f6 43 10 01 testb $0x1,0x10(%ebx)
10df56: 75 08 jne 10df60 <_Thread_Start+0x18>
10df58: 31 c0 xor %eax,%eax
return true; } return false; }
10df5a: 8b 5d fc mov -0x4(%ebp),%ebx 10df5d: c9 leave 10df5e: c3 ret
10df5f: 90 nop <== NOT EXECUTED
Thread_Entry_numeric_type numeric_argument ) { if ( _States_Is_dormant( the_thread->current_state ) ) { the_thread->Start.entry_point = (Thread_Entry) entry_point;
10df60: 8b 45 10 mov 0x10(%ebp),%eax 10df63: 89 83 9c 00 00 00 mov %eax,0x9c(%ebx)
the_thread->Start.prototype = the_prototype;
10df69: 8b 45 0c mov 0xc(%ebp),%eax 10df6c: 89 83 a0 00 00 00 mov %eax,0xa0(%ebx)
the_thread->Start.pointer_argument = pointer_argument;
10df72: 8b 45 14 mov 0x14(%ebp),%eax 10df75: 89 83 a4 00 00 00 mov %eax,0xa4(%ebx)
the_thread->Start.numeric_argument = numeric_argument;
10df7b: 8b 45 18 mov 0x18(%ebp),%eax 10df7e: 89 83 a8 00 00 00 mov %eax,0xa8(%ebx)
_Thread_Load_environment( the_thread );
10df84: 83 ec 0c sub $0xc,%esp 10df87: 53 push %ebx 10df88: e8 d7 26 00 00 call 110664 <_Thread_Load_environment>
_Thread_Ready( the_thread );
10df8d: 89 1c 24 mov %ebx,(%esp) 10df90: e8 4f 29 00 00 call 1108e4 <_Thread_Ready>
_User_extensions_Thread_start( the_thread );
10df95: 89 1c 24 mov %ebx,(%esp) 10df98: e8 3b 03 00 00 call 10e2d8 <_User_extensions_Thread_start> 10df9d: b0 01 mov $0x1,%al
return true;
10df9f: 83 c4 10 add $0x10,%esp
} return false; }
10dfa2: 8b 5d fc mov -0x4(%ebp),%ebx 10dfa5: c9 leave 10dfa6: c3 ret
001109e8 <_Thread_Suspend>: */ void _Thread_Suspend( Thread_Control *the_thread ) {
1109e8: 55 push %ebp 1109e9: 89 e5 mov %esp,%ebp 1109eb: 56 push %esi 1109ec: 53 push %ebx 1109ed: 8b 45 08 mov 0x8(%ebp),%eax
ISR_Level level; Chain_Control *ready; ready = the_thread->ready;
1109f0: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
_ISR_Disable( level );
1109f6: 9c pushf 1109f7: fa cli 1109f8: 59 pop %ecx
#if defined(RTEMS_ITRON_API) the_thread->suspend_count++; #endif if ( !_States_Is_ready( the_thread->current_state ) ) {
1109f9: 8b 58 10 mov 0x10(%eax),%ebx 1109fc: 85 db test %ebx,%ebx
1109fe: 75 34 jne 110a34 <_Thread_Suspend+0x4c> _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = STATES_SUSPENDED;
110a00: c7 40 10 02 00 00 00 movl $0x2,0x10(%eax)
if ( _Chain_Has_only_one_node( ready ) ) {
110a07: 8b 1a mov (%edx),%ebx 110a09: 3b 5a 08 cmp 0x8(%edx),%ebx
110a0c: 74 3e je 110a4c <_Thread_Suspend+0x64> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next;
110a0e: 8b 18 mov (%eax),%ebx
previous = the_node->previous;
110a10: 8b 50 04 mov 0x4(%eax),%edx
next->previous = previous;
110a13: 89 53 04 mov %edx,0x4(%ebx)
previous->next = next;
110a16: 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 );
110a18: 51 push %ecx 110a19: 9d popf 110a1a: fa cli
if ( _Thread_Is_heir( the_thread ) )
110a1b: 3b 05 e8 53 12 00 cmp 0x1253e8,%eax
110a21: 74 65 je 110a88 <_Thread_Suspend+0xa0> _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) )
110a23: 3b 05 18 54 12 00 cmp 0x125418,%eax
110a29: 74 15 je 110a40 <_Thread_Suspend+0x58> _Context_Switch_necessary = true; _ISR_Enable( level );
110a2b: 51 push %ecx 110a2c: 9d popf
}
110a2d: 5b pop %ebx 110a2e: 5e pop %esi 110a2f: c9 leave 110a30: c3 ret
110a31: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_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 =
110a34: 83 cb 02 or $0x2,%ebx 110a37: 89 58 10 mov %ebx,0x10(%eax)
_States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level );
110a3a: 51 push %ecx 110a3b: 9d popf
if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; _ISR_Enable( level ); }
110a3c: 5b pop %ebx 110a3d: 5e pop %esi 110a3e: c9 leave 110a3f: c3 ret
if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true;
110a40: c6 05 28 54 12 00 01 movb $0x1,0x125428 110a47: eb e2 jmp 110a2b <_Thread_Suspend+0x43>
110a49: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain);
110a4c: 8d 5a 04 lea 0x4(%edx),%ebx 110a4f: 89 1a mov %ebx,(%edx)
the_chain->permanent_null = NULL;
110a51: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx)
the_chain->last = _Chain_Head(the_chain);
110a58: 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;
110a5b: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 110a61: 66 8b 98 9a 00 00 00 mov 0x9a(%eax),%bx 110a68: 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 );
110a6b: 66 83 3a 00 cmpw $0x0,(%edx)
110a6f: 75 a7 jne 110a18 <_Thread_Suspend+0x30> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major;
110a71: 66 8b 15 0c 54 12 00 mov 0x12540c,%dx 110a78: 23 90 98 00 00 00 and 0x98(%eax),%edx 110a7e: 66 89 15 0c 54 12 00 mov %dx,0x12540c 110a85: eb 91 jmp 110a18 <_Thread_Suspend+0x30>
110a87: 90 nop <== NOT EXECUTED
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 );
110a88: 66 8b 35 0c 54 12 00 mov 0x12540c,%si 110a8f: 31 d2 xor %edx,%edx 110a91: 89 d3 mov %edx,%ebx 110a93: 66 0f bc de bsf %si,%bx
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
110a97: 0f b7 db movzwl %bx,%ebx 110a9a: 66 8b b4 1b a0 54 12 mov 0x1254a0(%ebx,%ebx,1),%si
110aa1: 00
110aa2: 66 0f bc d6 bsf %si,%dx
* ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *)
110aa6: c1 e3 04 shl $0x4,%ebx 110aa9: 0f b7 d2 movzwl %dx,%edx 110aac: 8d 14 13 lea (%ebx,%edx,1),%edx 110aaf: 8d 1c 52 lea (%edx,%edx,2),%ebx 110ab2: 8b 15 20 53 12 00 mov 0x125320,%edx 110ab8: 8b 14 9a mov (%edx,%ebx,4),%edx 110abb: 89 15 e8 53 12 00 mov %edx,0x1253e8 110ac1: e9 5d ff ff ff jmp 110a23 <_Thread_Suspend+0x3b>
0010dfe8 <_Thread_Yield_processor>: * ready chain * select heir */ void _Thread_Yield_processor( void ) {
10dfe8: 55 push %ebp 10dfe9: 89 e5 mov %esp,%ebp 10dfeb: 56 push %esi 10dfec: 53 push %ebx
ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing;
10dfed: a1 18 54 12 00 mov 0x125418,%eax
ready = executing->ready;
10dff2: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx
_ISR_Disable( level );
10dff8: 9c pushf 10dff9: fa cli 10dffa: 59 pop %ecx
if ( !_Chain_Has_only_one_node( ready ) ) {
10dffb: 8b 1a mov (%edx),%ebx 10dffd: 3b 5a 08 cmp 0x8(%edx),%ebx
10e000: 74 3e je 10e040 <_Thread_Yield_processor+0x58> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next;
10e002: 8b 30 mov (%eax),%esi
previous = the_node->previous;
10e004: 8b 58 04 mov 0x4(%eax),%ebx
next->previous = previous;
10e007: 89 5e 04 mov %ebx,0x4(%esi)
previous->next = next;
10e00a: 89 33 mov %esi,(%ebx)
Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain);
10e00c: 8d 5a 04 lea 0x4(%edx),%ebx 10e00f: 89 18 mov %ebx,(%eax)
old_last_node = the_chain->last;
10e011: 8b 5a 08 mov 0x8(%edx),%ebx
the_chain->last = the_node;
10e014: 89 42 08 mov %eax,0x8(%edx)
old_last_node->next = the_node;
10e017: 89 03 mov %eax,(%ebx)
the_node->previous = old_last_node;
10e019: 89 58 04 mov %ebx,0x4(%eax)
_Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level );
10e01c: 51 push %ecx 10e01d: 9d popf 10e01e: fa cli
if ( _Thread_Is_heir( executing ) )
10e01f: 3b 05 e8 53 12 00 cmp 0x1253e8,%eax
10e025: 74 0d je 10e034 <_Thread_Yield_processor+0x4c><== NEVER TAKEN
_Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) _Context_Switch_necessary = true;
10e027: c6 05 28 54 12 00 01 movb $0x1,0x125428
_ISR_Enable( level );
10e02e: 51 push %ecx 10e02f: 9d popf
}
10e030: 5b pop %ebx 10e031: 5e pop %esi 10e032: c9 leave 10e033: c3 ret
_Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first;
10e034: 8b 02 mov (%edx),%eax 10e036: a3 e8 53 12 00 mov %eax,0x1253e8 10e03b: eb ea jmp 10e027 <_Thread_Yield_processor+0x3f>
10e03d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) )
10e040: 3b 05 e8 53 12 00 cmp 0x1253e8,%eax
10e046: 75 df jne 10e027 <_Thread_Yield_processor+0x3f><== ALWAYS TAKEN
10e048: eb e4 jmp 10e02e <_Thread_Yield_processor+0x46>
0010cf24 <_Thread_blocking_operation_Cancel>: Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) {
10cf24: 55 push %ebp 10cf25: 89 e5 mov %esp,%ebp 10cf27: 53 push %ebx 10cf28: 83 ec 04 sub $0x4,%esp 10cf2b: 8b 5d 0c mov 0xc(%ebp),%ebx 10cf2e: 8b 45 10 mov 0x10(%ebp),%eax
#endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL;
10cf31: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx)
/* * If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) {
10cf38: 83 7b 50 02 cmpl $0x2,0x50(%ebx)
10cf3c: 74 16 je 10cf54 <_Thread_blocking_operation_Cancel+0x30> _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); } else _ISR_Enable( level );
10cf3e: 50 push %eax 10cf3f: 9d popf
RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED );
10cf40: c7 45 0c f8 ff 03 10 movl $0x1003fff8,0xc(%ebp) 10cf47: 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 }
10cf4a: 8b 5d fc mov -0x4(%ebp),%ebx 10cf4d: c9 leave 10cf4e: e9 5d 01 00 00 jmp 10d0b0 <_Thread_Clear_state>
10cf53: 90 nop <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT;
10cf54: c7 43 50 03 00 00 00 movl $0x3,0x50(%ebx)
* If the sync state is timed out, this is very likely not needed. * But better safe than sorry when it comes to critical sections. */ if ( _Watchdog_Is_active( &the_thread->Timer ) ) { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level );
10cf5b: 50 push %eax 10cf5c: 9d popf
(void) _Watchdog_Remove( &the_thread->Timer );
10cf5d: 83 ec 0c sub $0xc,%esp 10cf60: 8d 43 48 lea 0x48(%ebx),%eax 10cf63: 50 push %eax 10cf64: e8 27 15 00 00 call 10e490 <_Watchdog_Remove> 10cf69: 83 c4 10 add $0x10,%esp 10cf6c: eb d2 jmp 10cf40 <_Thread_blocking_operation_Cancel+0x1c>
0010d838 <_Thread_queue_Dequeue>: */ Thread_Control *_Thread_queue_Dequeue( Thread_queue_Control *the_thread_queue ) {
10d838: 55 push %ebp 10d839: 89 e5 mov %esp,%ebp 10d83b: 53 push %ebx 10d83c: 83 ec 04 sub $0x4,%esp 10d83f: 8b 5d 08 mov 0x8(%ebp),%ebx
Thread_Control *(*dequeue_p)( Thread_queue_Control * ); Thread_Control *the_thread; ISR_Level level; Thread_blocking_operation_States sync_state; if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
10d842: 83 7b 34 01 cmpl $0x1,0x34(%ebx)
10d846: 74 1c je 10d864 <_Thread_queue_Dequeue+0x2c>
10d848: b8 f4 06 11 00 mov $0x1106f4,%eax
dequeue_p = _Thread_queue_Dequeue_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ dequeue_p = _Thread_queue_Dequeue_fifo; the_thread = (*dequeue_p)( the_thread_queue );
10d84d: 83 ec 0c sub $0xc,%esp 10d850: 53 push %ebx 10d851: ff d0 call *%eax
_ISR_Disable( level );
10d853: 9c pushf 10d854: fa cli 10d855: 5a pop %edx
if ( !the_thread ) {
10d856: 83 c4 10 add $0x10,%esp 10d859: 85 c0 test %eax,%eax
10d85b: 74 0f je 10d86c <_Thread_queue_Dequeue+0x34> (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; the_thread = _Thread_Executing; } } _ISR_Enable( level );
10d85d: 52 push %edx 10d85e: 9d popf
return the_thread; }
10d85f: 8b 5d fc mov -0x4(%ebp),%ebx 10d862: c9 leave 10d863: c3 ret
Thread_Control *(*dequeue_p)( Thread_queue_Control * ); Thread_Control *the_thread; ISR_Level level; Thread_blocking_operation_States sync_state; if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
10d864: b8 84 d8 10 00 mov $0x10d884,%eax 10d869: eb e2 jmp 10d84d <_Thread_queue_Dequeue+0x15>
10d86b: 90 nop <== NOT EXECUTED
dequeue_p = _Thread_queue_Dequeue_fifo; the_thread = (*dequeue_p)( the_thread_queue ); _ISR_Disable( level ); if ( !the_thread ) { sync_state = the_thread_queue->sync_state;
10d86c: 8b 4b 30 mov 0x30(%ebx),%ecx 10d86f: 49 dec %ecx 10d870: 83 f9 01 cmp $0x1,%ecx
10d873: 77 e8 ja 10d85d <_Thread_queue_Dequeue+0x25> if ( (sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
10d875: c7 43 30 03 00 00 00 movl $0x3,0x30(%ebx)
the_thread = _Thread_Executing;
10d87c: a1 18 54 12 00 mov 0x125418,%eax 10d881: eb da jmp 10d85d <_Thread_queue_Dequeue+0x25>
0010d884 <_Thread_queue_Dequeue_priority>: */ Thread_Control *_Thread_queue_Dequeue_priority( Thread_queue_Control *the_thread_queue ) {
10d884: 55 push %ebp 10d885: 89 e5 mov %esp,%ebp 10d887: 57 push %edi 10d888: 56 push %esi 10d889: 53 push %ebx 10d88a: 83 ec 1c sub $0x1c,%esp 10d88d: 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 );
10d890: 9c pushf 10d891: fa cli 10d892: 58 pop %eax 10d893: 89 f2 mov %esi,%edx 10d895: 31 c9 xor %ecx,%ecx
*/ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null;
10d897: 8d 5a 04 lea 0x4(%edx),%ebx 10d89a: 39 1a cmp %ebx,(%edx)
10d89c: 75 1a jne 10d8b8 <_Thread_queue_Dequeue_priority+0x34> for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) {
10d89e: 41 inc %ecx 10d89f: 83 c2 0c add $0xc,%edx
Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ;
10d8a2: 83 f9 04 cmp $0x4,%ecx
10d8a5: 75 f0 jne 10d897 <_Thread_queue_Dequeue_priority+0x13> } /* * We did not find a thread to unblock. */ _ISR_Enable( level );
10d8a7: 50 push %eax 10d8a8: 9d popf 10d8a9: 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 ); }
10d8ab: 89 d8 mov %ebx,%eax 10d8ad: 8d 65 f4 lea -0xc(%ebp),%esp 10d8b0: 5b pop %ebx 10d8b1: 5e pop %esi 10d8b2: 5f pop %edi 10d8b3: c9 leave 10d8b4: c3 ret
10d8b5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_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 *)
10d8b8: 8d 14 49 lea (%ecx,%ecx,2),%edx 10d8bb: 8b 1c 96 mov (%esi,%edx,4),%ebx
*/ _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL;
10d8be: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx)
new_first_node = the_thread->Wait.Block2n.first;
10d8c5: 8b 53 38 mov 0x38(%ebx),%edx
new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next;
10d8c8: 8b 0b mov (%ebx),%ecx
previous_node = the_thread->Object.Node.previous;
10d8ca: 8b 73 04 mov 0x4(%ebx),%esi 10d8cd: 8d 7b 3c lea 0x3c(%ebx),%edi 10d8d0: 39 fa cmp %edi,%edx
10d8d2: 74 76 je 10d94a <_Thread_queue_Dequeue_priority+0xc6> if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { last_node = the_thread->Wait.Block2n.last;
10d8d4: 8b 7b 40 mov 0x40(%ebx),%edi 10d8d7: 89 7d e4 mov %edi,-0x1c(%ebp)
new_second_node = new_first_node->next;
10d8da: 8b 3a mov (%edx),%edi
previous_node->next = new_first_node;
10d8dc: 89 16 mov %edx,(%esi)
next_node->previous = new_first_node;
10d8de: 89 51 04 mov %edx,0x4(%ecx)
new_first_node->next = next_node;
10d8e1: 89 0a mov %ecx,(%edx)
new_first_node->previous = previous_node;
10d8e3: 89 72 04 mov %esi,0x4(%edx)
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
10d8e6: 8b 4b 38 mov 0x38(%ebx),%ecx 10d8e9: 3b 4b 40 cmp 0x40(%ebx),%ecx
10d8ec: 74 14 je 10d902 <_Thread_queue_Dequeue_priority+0x7e> /* > two threads on 2-n */ new_second_node->previous =
10d8ee: 8d 4a 38 lea 0x38(%edx),%ecx 10d8f1: 89 4f 04 mov %ecx,0x4(%edi)
_Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node;
10d8f4: 89 7a 38 mov %edi,0x38(%edx)
new_first_thread->Wait.Block2n.last = last_node;
10d8f7: 8b 4d e4 mov -0x1c(%ebp),%ecx 10d8fa: 89 4a 40 mov %ecx,0x40(%edx)
last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n );
10d8fd: 83 c2 3c add $0x3c,%edx 10d900: 89 11 mov %edx,(%ecx)
} else { previous_node->next = next_node; next_node->previous = previous_node; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
10d902: 83 7b 50 02 cmpl $0x2,0x50(%ebx)
10d906: 74 18 je 10d920 <_Thread_queue_Dequeue_priority+0x9c> _ISR_Enable( level );
10d908: 50 push %eax 10d909: 9d popf
RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED );
10d90a: 83 ec 08 sub $0x8,%esp 10d90d: 68 f8 ff 03 10 push $0x1003fff8 10d912: 53 push %ebx 10d913: e8 98 f7 ff ff call 10d0b0 <_Thread_Clear_state> 10d918: 83 c4 10 add $0x10,%esp 10d91b: eb 8e jmp 10d8ab <_Thread_queue_Dequeue_priority+0x27>
10d91d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT;
10d920: c7 43 50 03 00 00 00 movl $0x3,0x50(%ebx)
_Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level );
10d927: 50 push %eax 10d928: 9d popf
(void) _Watchdog_Remove( &the_thread->Timer );
10d929: 83 ec 0c sub $0xc,%esp 10d92c: 8d 43 48 lea 0x48(%ebx),%eax 10d92f: 50 push %eax 10d930: e8 5b 0b 00 00 call 10e490 <_Watchdog_Remove> 10d935: 58 pop %eax 10d936: 5a pop %edx 10d937: 68 f8 ff 03 10 push $0x1003fff8 10d93c: 53 push %ebx 10d93d: e8 6e f7 ff ff call 10d0b0 <_Thread_Clear_state> 10d942: 83 c4 10 add $0x10,%esp 10d945: e9 61 ff ff ff jmp 10d8ab <_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;
10d94a: 89 0e mov %ecx,(%esi)
next_node->previous = previous_node;
10d94c: 89 71 04 mov %esi,0x4(%ecx) 10d94f: eb b1 jmp 10d902 <_Thread_queue_Dequeue_priority+0x7e>
0011076c <_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 ) {
11076c: 55 push %ebp 11076d: 89 e5 mov %esp,%ebp 11076f: 56 push %esi 110770: 53 push %ebx 110771: 8b 55 08 mov 0x8(%ebp),%edx 110774: 8b 5d 0c mov 0xc(%ebp),%ebx
Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level );
110777: 9c pushf 110778: fa cli 110779: 59 pop %ecx
sync_state = the_thread_queue->sync_state;
11077a: 8b 42 30 mov 0x30(%edx),%eax
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
11077d: c7 42 30 00 00 00 00 movl $0x0,0x30(%edx)
if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) {
110784: 83 f8 01 cmp $0x1,%eax
110787: 74 0b je 110794 <_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;
110789: 8b 55 10 mov 0x10(%ebp),%edx 11078c: 89 0a mov %ecx,(%edx)
return sync_state; }
11078e: 5b pop %ebx 11078f: 5e pop %esi 110790: c9 leave 110791: c3 ret
110792: 66 90 xchg %ax,%ax <== NOT EXECUTED
Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain);
110794: 8d 72 04 lea 0x4(%edx),%esi 110797: 89 33 mov %esi,(%ebx)
old_last_node = the_chain->last;
110799: 8b 72 08 mov 0x8(%edx),%esi
the_chain->last = the_node;
11079c: 89 5a 08 mov %ebx,0x8(%edx)
old_last_node->next = the_node;
11079f: 89 1e mov %ebx,(%esi)
the_node->previous = old_last_node;
1107a1: 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;
1107a4: 89 53 44 mov %edx,0x44(%ebx)
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; _ISR_Enable( level );
1107a7: 51 push %ecx 1107a8: 9d popf
* * WARNING! Returning with interrupts disabled! */ *level_p = level; return sync_state; }
1107a9: 5b pop %ebx 1107aa: 5e pop %esi 1107ab: c9 leave 1107ac: c3 ret
0010d9ec <_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 ) {
10d9ec: 55 push %ebp 10d9ed: 89 e5 mov %esp,%ebp 10d9ef: 57 push %edi 10d9f0: 56 push %esi 10d9f1: 53 push %ebx 10d9f2: 83 ec 08 sub $0x8,%esp 10d9f5: 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);
10d9f8: 8d 47 3c lea 0x3c(%edi),%eax 10d9fb: 89 47 38 mov %eax,0x38(%edi)
the_chain->permanent_null = NULL;
10d9fe: c7 47 3c 00 00 00 00 movl $0x0,0x3c(%edi)
the_chain->last = _Chain_Head(the_chain);
10da05: 8d 47 38 lea 0x38(%edi),%eax 10da08: 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;
10da0b: 8b 57 14 mov 0x14(%edi),%edx
header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ];
10da0e: 89 d0 mov %edx,%eax 10da10: c1 e8 06 shr $0x6,%eax 10da13: 8d 04 40 lea (%eax,%eax,2),%eax 10da16: 8b 4d 08 mov 0x8(%ebp),%ecx 10da19: 8d 34 81 lea (%ecx,%eax,4),%esi
block_state = the_thread_queue->state;
10da1c: 8b 59 38 mov 0x38(%ecx),%ebx
if ( _Thread_queue_Is_reverse_search( priority ) )
10da1f: f6 c2 20 test $0x20,%dl
10da22: 75 60 jne 10da84 <_Thread_queue_Enqueue_priority+0x98> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null;
10da24: 8d 46 04 lea 0x4(%esi),%eax 10da27: 89 75 f0 mov %esi,-0x10(%ebp) 10da2a: 89 7d ec mov %edi,-0x14(%ebp) 10da2d: 89 c7 mov %eax,%edi
goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level );
10da2f: 9c pushf 10da30: fa cli 10da31: 5e pop %esi
search_thread = (Thread_Control *) header->first;
10da32: 8b 4d f0 mov -0x10(%ebp),%ecx 10da35: 8b 01 mov (%ecx),%eax
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
10da37: 39 f8 cmp %edi,%eax
10da39: 75 17 jne 10da52 <_Thread_queue_Enqueue_priority+0x66>
10da3b: e9 09 01 00 00 jmp 10db49 <_Thread_queue_Enqueue_priority+0x15d>
break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level );
10da40: 56 push %esi 10da41: 9d popf 10da42: fa cli
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
10da43: 85 58 10 test %ebx,0x10(%eax)
10da46: 0f 84 a8 00 00 00 je 10daf4 <_Thread_queue_Enqueue_priority+0x108><== ALWAYS TAKEN
_ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next;
10da4c: 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 ) ) {
10da4e: 39 f8 cmp %edi,%eax
10da50: 74 07 je 10da59 <_Thread_queue_Enqueue_priority+0x6d> search_priority = search_thread->current_priority;
10da52: 8b 48 14 mov 0x14(%eax),%ecx
if ( priority <= search_priority )
10da55: 39 ca cmp %ecx,%edx
10da57: 77 e7 ja 10da40 <_Thread_queue_Enqueue_priority+0x54>
10da59: 89 4d f0 mov %ecx,-0x10(%ebp) 10da5c: 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 ) ) {
10da5f: 89 f3 mov %esi,%ebx
} search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state !=
10da61: 8b 4d 08 mov 0x8(%ebp),%ecx 10da64: 83 79 30 01 cmpl $0x1,0x30(%ecx)
10da68: 0f 84 8e 00 00 00 je 10dafc <_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;
10da6e: 8b 45 10 mov 0x10(%ebp),%eax 10da71: 89 18 mov %ebx,(%eax)
return the_thread_queue->sync_state;
10da73: 8b 55 08 mov 0x8(%ebp),%edx 10da76: 8b 42 30 mov 0x30(%edx),%eax
}
10da79: 83 c4 08 add $0x8,%esp 10da7c: 5b pop %ebx 10da7d: 5e pop %esi 10da7e: 5f pop %edi 10da7f: c9 leave 10da80: c3 ret
10da81: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
10da84: 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;
10da87: 0f b6 0d 14 12 12 00 movzbl 0x121214,%ecx 10da8e: 41 inc %ecx
_ISR_Disable( level );
10da8f: 9c pushf 10da90: fa cli 10da91: 5f pop %edi
search_thread = (Thread_Control *) header->last;
10da92: 8b 46 08 mov 0x8(%esi),%eax
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
10da95: 39 f0 cmp %esi,%eax
10da97: 75 12 jne 10daab <_Thread_queue_Enqueue_priority+0xbf>
10da99: eb 17 jmp 10dab2 <_Thread_queue_Enqueue_priority+0xc6>
10da9b: 90 nop <== NOT EXECUTED
break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level );
10da9c: 57 push %edi 10da9d: 9d popf 10da9e: fa cli
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
10da9f: 85 58 10 test %ebx,0x10(%eax)
10daa2: 74 4c je 10daf0 <_Thread_queue_Enqueue_priority+0x104> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *)
10daa4: 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 ) ) {
10daa7: 39 f0 cmp %esi,%eax
10daa9: 74 07 je 10dab2 <_Thread_queue_Enqueue_priority+0xc6> search_priority = search_thread->current_priority;
10daab: 8b 48 14 mov 0x14(%eax),%ecx
if ( priority >= search_priority )
10daae: 39 ca cmp %ecx,%edx
10dab0: 72 ea jb 10da9c <_Thread_queue_Enqueue_priority+0xb0>
10dab2: 89 fe mov %edi,%esi 10dab4: 89 4d ec mov %ecx,-0x14(%ebp) 10dab7: 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 ) ) {
10daba: 89 f3 mov %esi,%ebx
} search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state !=
10dabc: 8b 4d 08 mov 0x8(%ebp),%ecx 10dabf: 83 79 30 01 cmpl $0x1,0x30(%ecx)
10dac3: 75 a9 jne 10da6e <_Thread_queue_Enqueue_priority+0x82> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
10dac5: c7 41 30 00 00 00 00 movl $0x0,0x30(%ecx)
if ( priority == search_priority )
10dacc: 3b 55 ec cmp -0x14(%ebp),%edx
10dacf: 74 56 je 10db27 <_Thread_queue_Enqueue_priority+0x13b> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next;
10dad1: 8b 10 mov (%eax),%edx
the_node = (Chain_Node *) the_thread; the_node->next = next_node;
10dad3: 89 17 mov %edx,(%edi)
the_node->previous = search_node;
10dad5: 89 47 04 mov %eax,0x4(%edi)
search_node->next = the_node;
10dad8: 89 38 mov %edi,(%eax)
next_node->previous = the_node;
10dada: 89 7a 04 mov %edi,0x4(%edx)
the_thread->Wait.queue = the_thread_queue;
10dadd: 89 4f 44 mov %ecx,0x44(%edi)
_ISR_Enable( level );
10dae0: 56 push %esi 10dae1: 9d popf 10dae2: b8 01 00 00 00 mov $0x1,%eax
* * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; }
10dae7: 83 c4 08 add $0x8,%esp 10daea: 5b pop %ebx 10daeb: 5e pop %esi 10daec: 5f pop %edi 10daed: c9 leave 10daee: c3 ret
10daef: 90 nop <== NOT EXECUTED
if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level );
10daf0: 57 push %edi 10daf1: 9d popf
goto restart_reverse_search;
10daf2: eb 93 jmp 10da87 <_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 );
10daf4: 56 push %esi <== NOT EXECUTED 10daf5: 9d popf <== NOT EXECUTED
goto restart_forward_search;
10daf6: e9 34 ff ff ff jmp 10da2f <_Thread_queue_Enqueue_priority+0x43><== NOT EXECUTED 10dafb: 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;
10dafc: c7 41 30 00 00 00 00 movl $0x0,0x30(%ecx)
if ( priority == search_priority )
10db03: 3b 55 f0 cmp -0x10(%ebp),%edx
10db06: 74 1f je 10db27 <_Thread_queue_Enqueue_priority+0x13b> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous;
10db08: 8b 50 04 mov 0x4(%eax),%edx
the_node = (Chain_Node *) the_thread; the_node->next = search_node;
10db0b: 89 07 mov %eax,(%edi)
the_node->previous = previous_node;
10db0d: 89 57 04 mov %edx,0x4(%edi)
previous_node->next = the_node;
10db10: 89 3a mov %edi,(%edx)
search_node->previous = the_node;
10db12: 89 78 04 mov %edi,0x4(%eax)
the_thread->Wait.queue = the_thread_queue;
10db15: 89 4f 44 mov %ecx,0x44(%edi)
_ISR_Enable( level );
10db18: 56 push %esi 10db19: 9d popf 10db1a: b8 01 00 00 00 mov $0x1,%eax
* * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; }
10db1f: 83 c4 08 add $0x8,%esp 10db22: 5b pop %ebx 10db23: 5e pop %esi 10db24: 5f pop %edi 10db25: c9 leave 10db26: c3 ret 10db27: 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;
10db2a: 8b 50 04 mov 0x4(%eax),%edx
the_node = (Chain_Node *) the_thread; the_node->next = search_node;
10db2d: 89 07 mov %eax,(%edi)
the_node->previous = previous_node;
10db2f: 89 57 04 mov %edx,0x4(%edi)
previous_node->next = the_node;
10db32: 89 3a mov %edi,(%edx)
search_node->previous = the_node;
10db34: 89 78 04 mov %edi,0x4(%eax)
the_thread->Wait.queue = the_thread_queue;
10db37: 8b 45 08 mov 0x8(%ebp),%eax 10db3a: 89 47 44 mov %eax,0x44(%edi)
_ISR_Enable( level );
10db3d: 53 push %ebx 10db3e: 9d popf 10db3f: b8 01 00 00 00 mov $0x1,%eax
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
10db44: e9 30 ff ff ff jmp 10da79 <_Thread_queue_Enqueue_priority+0x8d> 10db49: 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 ) ) {
10db4c: 89 f3 mov %esi,%ebx 10db4e: c7 45 f0 ff ff ff ff movl $0xffffffff,-0x10(%ebp) 10db55: e9 07 ff ff ff jmp 10da61 <_Thread_queue_Enqueue_priority+0x75>
0010d954 <_Thread_queue_Enqueue_with_handler>: void _Thread_queue_Enqueue_with_handler( Thread_queue_Control *the_thread_queue, Watchdog_Interval timeout, Thread_queue_Timeout_callout handler ) {
10d954: 55 push %ebp 10d955: 89 e5 mov %esp,%ebp 10d957: 57 push %edi 10d958: 56 push %esi 10d959: 53 push %ebx 10d95a: 83 ec 24 sub $0x24,%esp 10d95d: 8b 75 08 mov 0x8(%ebp),%esi 10d960: 8b 7d 0c mov 0xc(%ebp),%edi
Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing;
10d963: 8b 1d 18 54 12 00 mov 0x125418,%ebx
else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state );
10d969: ff 76 38 pushl 0x38(%esi) 10d96c: 53 push %ebx 10d96d: e8 96 03 00 00 call 10dd08 <_Thread_Set_state>
/* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) {
10d972: 83 c4 10 add $0x10,%esp 10d975: 85 ff test %edi,%edi
10d977: 75 33 jne 10d9ac <_Thread_queue_Enqueue_with_handler+0x58> } /* * Now enqueue the thread per the discipline for this thread queue. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
10d979: 83 7e 34 01 cmpl $0x1,0x34(%esi)
10d97d: 74 64 je 10d9e3 <_Thread_queue_Enqueue_with_handler+0x8f>
10d97f: b8 6c 07 11 00 mov $0x11076c,%eax
enqueue_p = _Thread_queue_Enqueue_priority; else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ enqueue_p = _Thread_queue_Enqueue_fifo; sync_state = (*enqueue_p)( the_thread_queue, the_thread, &level );
10d984: 51 push %ecx 10d985: 8d 55 e4 lea -0x1c(%ebp),%edx 10d988: 52 push %edx 10d989: 53 push %ebx 10d98a: 56 push %esi 10d98b: ff d0 call *%eax
if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
10d98d: 83 c4 10 add $0x10,%esp 10d990: 83 f8 01 cmp $0x1,%eax
10d993: 74 0e je 10d9a3 <_Thread_queue_Enqueue_with_handler+0x4f> _Thread_blocking_operation_Cancel( sync_state, the_thread, level );
10d995: 52 push %edx 10d996: ff 75 e4 pushl -0x1c(%ebp) 10d999: 53 push %ebx 10d99a: 50 push %eax 10d99b: e8 84 f5 ff ff call 10cf24 <_Thread_blocking_operation_Cancel> 10d9a0: 83 c4 10 add $0x10,%esp
}
10d9a3: 8d 65 f4 lea -0xc(%ebp),%esp 10d9a6: 5b pop %ebx 10d9a7: 5e pop %esi 10d9a8: 5f pop %edi 10d9a9: c9 leave 10d9aa: c3 ret
10d9ab: 90 nop <== NOT EXECUTED
/* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { _Watchdog_Initialize(
10d9ac: 8b 43 08 mov 0x8(%ebx),%eax
Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE;
10d9af: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx)
the_watchdog->routine = routine;
10d9b6: 8b 55 10 mov 0x10(%ebp),%edx 10d9b9: 89 53 64 mov %edx,0x64(%ebx)
the_watchdog->id = id;
10d9bc: 89 43 68 mov %eax,0x68(%ebx)
the_watchdog->user_data = user_data;
10d9bf: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx)
Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units;
10d9c6: 89 7b 54 mov %edi,0x54(%ebx)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
10d9c9: 83 ec 08 sub $0x8,%esp 10d9cc: 8d 43 48 lea 0x48(%ebx),%eax 10d9cf: 50 push %eax 10d9d0: 68 38 54 12 00 push $0x125438 10d9d5: e8 7e 09 00 00 call 10e358 <_Watchdog_Insert> 10d9da: 83 c4 10 add $0x10,%esp
} /* * Now enqueue the thread per the discipline for this thread queue. */ if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
10d9dd: 83 7e 34 01 cmpl $0x1,0x34(%esi)
10d9e1: 75 9c jne 10d97f <_Thread_queue_Enqueue_with_handler+0x2b>
10d9e3: b8 ec d9 10 00 mov $0x10d9ec,%eax 10d9e8: eb 9a jmp 10d984 <_Thread_queue_Enqueue_with_handler+0x30>
001107b0 <_Thread_queue_Extract>: void _Thread_queue_Extract( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
1107b0: 55 push %ebp 1107b1: 89 e5 mov %esp,%ebp 1107b3: 83 ec 08 sub $0x8,%esp 1107b6: 8b 45 08 mov 0x8(%ebp),%eax 1107b9: 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 )
1107bc: 83 78 34 01 cmpl $0x1,0x34(%eax)
1107c0: 74 0e je 1107d0 <_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 );
1107c2: 89 55 0c mov %edx,0xc(%ebp) 1107c5: 89 45 08 mov %eax,0x8(%ebp)
}
1107c8: 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 );
1107c9: e9 ca 17 00 00 jmp 111f98 <_Thread_queue_Extract_fifo>
1107ce: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * 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 );
1107d0: 51 push %ecx 1107d1: 6a 00 push $0x0 1107d3: 52 push %edx 1107d4: 50 push %eax 1107d5: e8 06 00 00 00 call 1107e0 <_Thread_queue_Extract_priority_helper> 1107da: 83 c4 10 add $0x10,%esp
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); }
1107dd: c9 leave 1107de: c3 ret
00111f98 <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread ) {
111f98: 55 push %ebp 111f99: 89 e5 mov %esp,%ebp 111f9b: 53 push %ebx 111f9c: 83 ec 04 sub $0x4,%esp 111f9f: 8b 5d 0c mov 0xc(%ebp),%ebx
ISR_Level level; _ISR_Disable( level );
111fa2: 9c pushf 111fa3: fa cli 111fa4: 58 pop %eax
if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
111fa5: f7 43 10 e0 be 03 00 testl $0x3bee0,0x10(%ebx)
111fac: 74 2e je 111fdc <_Thread_queue_Extract_fifo+0x44> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next;
111fae: 8b 0b mov (%ebx),%ecx
previous = the_node->previous;
111fb0: 8b 53 04 mov 0x4(%ebx),%edx
next->previous = previous;
111fb3: 89 51 04 mov %edx,0x4(%ecx)
previous->next = next;
111fb6: 89 0a mov %ecx,(%edx)
return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL;
111fb8: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx)
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
111fbf: 83 7b 50 02 cmpl $0x2,0x50(%ebx)
111fc3: 74 1f je 111fe4 <_Thread_queue_Extract_fifo+0x4c> _ISR_Enable( level );
111fc5: 50 push %eax 111fc6: 9d popf
RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED );
111fc7: c7 45 0c f8 ff 03 10 movl $0x1003fff8,0xc(%ebp) 111fce: 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 }
111fd1: 8b 5d fc mov -0x4(%ebp),%ebx 111fd4: c9 leave 111fd5: e9 d6 b0 ff ff jmp 10d0b0 <_Thread_Clear_state>
111fda: 66 90 xchg %ax,%ax <== NOT EXECUTED
ISR_Level level; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _ISR_Enable( level );
111fdc: 50 push %eax 111fdd: 9d popf
#if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif }
111fde: 8b 5d fc mov -0x4(%ebp),%ebx 111fe1: c9 leave 111fe2: c3 ret
111fe3: 90 nop <== NOT EXECUTED
111fe4: 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 );
111feb: 50 push %eax 111fec: 9d popf
(void) _Watchdog_Remove( &the_thread->Timer );
111fed: 83 ec 0c sub $0xc,%esp 111ff0: 8d 43 48 lea 0x48(%ebx),%eax 111ff3: 50 push %eax 111ff4: e8 97 c4 ff ff call 10e490 <_Watchdog_Remove> 111ff9: 83 c4 10 add $0x10,%esp 111ffc: eb c9 jmp 111fc7 <_Thread_queue_Extract_fifo+0x2f>
001107e0 <_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 ) {
1107e0: 55 push %ebp 1107e1: 89 e5 mov %esp,%ebp 1107e3: 57 push %edi 1107e4: 56 push %esi 1107e5: 53 push %ebx 1107e6: 83 ec 1c sub $0x1c,%esp 1107e9: 8b 5d 0c mov 0xc(%ebp),%ebx 1107ec: 8a 45 10 mov 0x10(%ebp),%al 1107ef: 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 );
1107f2: 9c pushf 1107f3: fa cli 1107f4: 8f 45 e4 popl -0x1c(%ebp)
if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
1107f7: f7 43 10 e0 be 03 00 testl $0x3bee0,0x10(%ebx)
1107fe: 74 6c je 11086c <_Thread_queue_Extract_priority_helper+0x8c> /* * The thread was actually waiting on a thread queue so let's remove it. */ next_node = the_node->next;
110800: 8b 13 mov (%ebx),%edx
previous_node = the_node->previous;
110802: 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));
110805: 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;
110808: 8d 73 3c lea 0x3c(%ebx),%esi 11080b: 39 f0 cmp %esi,%eax
11080d: 74 69 je 110878 <_Thread_queue_Extract_priority_helper+0x98> 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;
11080f: 8b 7b 40 mov 0x40(%ebx),%edi
new_second_node = new_first_node->next;
110812: 8b 30 mov (%eax),%esi
previous_node->next = new_first_node;
110814: 89 01 mov %eax,(%ecx)
next_node->previous = new_first_node;
110816: 89 42 04 mov %eax,0x4(%edx)
new_first_node->next = next_node;
110819: 89 10 mov %edx,(%eax)
new_first_node->previous = previous_node;
11081b: 89 48 04 mov %ecx,0x4(%eax)
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
11081e: 8b 53 38 mov 0x38(%ebx),%edx 110821: 3b 53 40 cmp 0x40(%ebx),%edx
110824: 74 11 je 110837 <_Thread_queue_Extract_priority_helper+0x57> /* > two threads on 2-n */ new_second_node->previous =
110826: 8d 50 38 lea 0x38(%eax),%edx 110829: 89 56 04 mov %edx,0x4(%esi)
_Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node;
11082c: 89 70 38 mov %esi,0x38(%eax)
new_first_thread->Wait.Block2n.last = last_node;
11082f: 89 78 40 mov %edi,0x40(%eax)
last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n );
110832: 83 c0 3c add $0x3c,%eax 110835: 89 07 mov %eax,(%edi)
/* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) {
110837: 80 7d e3 00 cmpb $0x0,-0x1d(%ebp)
11083b: 75 23 jne 110860 <_Thread_queue_Extract_priority_helper+0x80> _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
11083d: 83 7b 50 02 cmpl $0x2,0x50(%ebx)
110841: 74 3d je 110880 <_Thread_queue_Extract_priority_helper+0xa0> _ISR_Enable( level );
110843: ff 75 e4 pushl -0x1c(%ebp) 110846: 9d popf 110847: c7 45 0c f8 ff 03 10 movl $0x1003fff8,0xc(%ebp) 11084e: 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 }
110851: 8d 65 f4 lea -0xc(%ebp),%esp 110854: 5b pop %ebx 110855: 5e pop %esi 110856: 5f pop %edi 110857: c9 leave 110858: e9 53 c8 ff ff jmp 10d0b0 <_Thread_Clear_state>
11085d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { _ISR_Enable( level );
110860: ff 75 e4 pushl -0x1c(%ebp) 110863: 9d popf
#if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif }
110864: 8d 65 f4 lea -0xc(%ebp),%esp 110867: 5b pop %ebx 110868: 5e pop %esi 110869: 5f pop %edi 11086a: c9 leave 11086b: c3 ret
Chain_Node *last_node; the_node = (Chain_Node *) the_thread; _ISR_Disable( level ); if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { _ISR_Enable( level );
11086c: ff 75 e4 pushl -0x1c(%ebp) 11086f: 9d popf
#if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif }
110870: 8d 65 f4 lea -0xc(%ebp),%esp 110873: 5b pop %ebx 110874: 5e pop %esi 110875: 5f pop %edi 110876: c9 leave 110877: c3 ret
new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node;
110878: 89 11 mov %edx,(%ecx)
next_node->previous = previous_node;
11087a: 89 4a 04 mov %ecx,0x4(%edx) 11087d: eb b8 jmp 110837 <_Thread_queue_Extract_priority_helper+0x57>
11087f: 90 nop <== NOT EXECUTED
110880: 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 );
110887: ff 75 e4 pushl -0x1c(%ebp) 11088a: 9d popf
(void) _Watchdog_Remove( &the_thread->Timer );
11088b: 83 ec 0c sub $0xc,%esp 11088e: 8d 43 48 lea 0x48(%ebx),%eax 110891: 50 push %eax 110892: e8 f9 db ff ff call 10e490 <_Watchdog_Remove> 110897: 83 c4 10 add $0x10,%esp 11089a: eb ab jmp 110847 <_Thread_queue_Extract_priority_helper+0x67>
0010db5c <_Thread_queue_Extract_with_proxy>: */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) {
10db5c: 55 push %ebp 10db5d: 89 e5 mov %esp,%ebp 10db5f: 83 ec 08 sub $0x8,%esp 10db62: 8b 45 08 mov 0x8(%ebp),%eax
States_Control state; state = the_thread->current_state;
10db65: f7 40 10 e0 be 03 00 testl $0x3bee0,0x10(%eax)
10db6c: 75 06 jne 10db74 <_Thread_queue_Extract_with_proxy+0x18>
10db6e: 31 c0 xor %eax,%eax
_Thread_queue_Extract( the_thread->Wait.queue, the_thread ); return true; } return false; }
10db70: c9 leave 10db71: c3 ret
10db72: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( proxy_extract_callout ) (*proxy_extract_callout)( the_thread ); } #endif _Thread_queue_Extract( the_thread->Wait.queue, the_thread );
10db74: 83 ec 08 sub $0x8,%esp 10db77: 50 push %eax 10db78: ff 70 44 pushl 0x44(%eax) 10db7b: e8 30 2c 00 00 call 1107b0 <_Thread_queue_Extract> 10db80: b0 01 mov $0x1,%al
return true;
10db82: 83 c4 10 add $0x10,%esp
} return false; }
10db85: c9 leave 10db86: c3 ret
0011eec8 <_Thread_queue_First>: */ Thread_Control *_Thread_queue_First( Thread_queue_Control *the_thread_queue ) {
11eec8: 55 push %ebp 11eec9: 89 e5 mov %esp,%ebp 11eecb: 83 ec 08 sub $0x8,%esp 11eece: 8b 45 08 mov 0x8(%ebp),%eax
Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
11eed1: 83 78 34 01 cmpl $0x1,0x34(%eax)
11eed5: 74 0d je 11eee4 <_Thread_queue_First+0x1c>
11eed7: ba 54 03 12 00 mov $0x120354,%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 );
11eedc: 89 45 08 mov %eax,0x8(%ebp)
}
11eedf: 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 );
11eee0: ff e2 jmp *%edx
11eee2: 66 90 xchg %ax,%ax <== NOT EXECUTED
Thread_queue_Control *the_thread_queue ) { Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
11eee4: ba f0 ee 11 00 mov $0x11eef0,%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 );
11eee9: 89 45 08 mov %eax,0x8(%ebp)
}
11eeec: 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 );
11eeed: ff e2 jmp *%edx
00120354 <_Thread_queue_First_fifo>: */ Thread_Control *_Thread_queue_First_fifo( Thread_queue_Control *the_thread_queue ) {
120354: 55 push %ebp 120355: 89 e5 mov %esp,%ebp 120357: 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));
12035a: 8b 02 mov (%edx),%eax
*/ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null;
12035c: 83 c2 04 add $0x4,%edx 12035f: 39 d0 cmp %edx,%eax
120361: 74 05 je 120368 <_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; }
120363: c9 leave 120364: c3 ret
120365: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
120368: 31 c0 xor %eax,%eax 12036a: c9 leave 12036b: c3 ret
0010db88 <_Thread_queue_Flush>: #else Thread_queue_Flush_callout remote_extract_callout __attribute__((unused)), #endif uint32_t status ) {
10db88: 55 push %ebp 10db89: 89 e5 mov %esp,%ebp 10db8b: 56 push %esi 10db8c: 53 push %ebx 10db8d: 8b 5d 08 mov 0x8(%ebp),%ebx 10db90: 8b 75 10 mov 0x10(%ebp),%esi
Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) {
10db93: eb 06 jmp 10db9b <_Thread_queue_Flush+0x13>
10db95: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
#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;
10db98: 89 70 34 mov %esi,0x34(%eax)
uint32_t status ) { Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) {
10db9b: 83 ec 0c sub $0xc,%esp 10db9e: 53 push %ebx 10db9f: e8 94 fc ff ff call 10d838 <_Thread_queue_Dequeue> 10dba4: 83 c4 10 add $0x10,%esp 10dba7: 85 c0 test %eax,%eax
10dba9: 75 ed jne 10db98 <_Thread_queue_Flush+0x10> ( *remote_extract_callout )( the_thread ); else #endif the_thread->Wait.return_code = status; } }
10dbab: 8d 65 f8 lea -0x8(%ebp),%esp 10dbae: 5b pop %ebx 10dbaf: 5e pop %esi 10dbb0: c9 leave 10dbb1: c3 ret
0010dbb4 <_Thread_queue_Initialize>: Thread_queue_Control *the_thread_queue, Thread_queue_Disciplines the_discipline, States_Control state, uint32_t timeout_status ) {
10dbb4: 55 push %ebp 10dbb5: 89 e5 mov %esp,%ebp 10dbb7: 8b 45 08 mov 0x8(%ebp),%eax 10dbba: 8b 55 0c mov 0xc(%ebp),%edx
the_thread_queue->state = state;
10dbbd: 8b 4d 10 mov 0x10(%ebp),%ecx 10dbc0: 89 48 38 mov %ecx,0x38(%eax)
the_thread_queue->discipline = the_discipline;
10dbc3: 89 50 34 mov %edx,0x34(%eax)
the_thread_queue->timeout_status = timeout_status;
10dbc6: 8b 4d 14 mov 0x14(%ebp),%ecx 10dbc9: 89 48 3c mov %ecx,0x3c(%eax)
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
10dbcc: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax)
if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) {
10dbd3: 4a dec %edx
10dbd4: 74 12 je 10dbe8 <_Thread_queue_Initialize+0x34> */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain);
10dbd6: 8d 50 04 lea 0x4(%eax),%edx 10dbd9: 89 10 mov %edx,(%eax)
the_chain->permanent_null = NULL;
10dbdb: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
the_chain->last = _Chain_Head(the_chain);
10dbe2: 89 40 08 mov %eax,0x8(%eax)
_Chain_Initialize_empty( &the_thread_queue->Queues.Priority[index] ); } else { /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Chain_Initialize_empty( &the_thread_queue->Queues.Fifo ); } }
10dbe5: c9 leave 10dbe6: c3 ret
10dbe7: 90 nop <== NOT EXECUTED
* timeout_status - return on a timeout * * Output parameters: NONE */ void _Thread_queue_Initialize(
10dbe8: 8d 48 30 lea 0x30(%eax),%ecx
*/ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain);
10dbeb: 8d 50 04 lea 0x4(%eax),%edx 10dbee: 89 10 mov %edx,(%eax)
the_chain->permanent_null = NULL;
10dbf0: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
the_chain->last = _Chain_Head(the_chain);
10dbf7: 89 40 08 mov %eax,0x8(%eax) 10dbfa: 83 c0 0c add $0xc,%eax
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { uint32_t index; for( index=0 ;
10dbfd: 39 c8 cmp %ecx,%eax
10dbff: 75 ea jne 10dbeb <_Thread_queue_Initialize+0x37> _Chain_Initialize_empty( &the_thread_queue->Queues.Priority[index] ); } else { /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Chain_Initialize_empty( &the_thread_queue->Queues.Fifo ); } }
10dc01: c9 leave 10dc02: c3 ret
0011089c <_Thread_queue_Process_timeout>: #include <rtems/score/tqdata.h> void _Thread_queue_Process_timeout( Thread_Control *the_thread ) {
11089c: 55 push %ebp 11089d: 89 e5 mov %esp,%ebp 11089f: 83 ec 08 sub $0x8,%esp 1108a2: 8b 45 08 mov 0x8(%ebp),%eax
Thread_queue_Control *the_thread_queue = the_thread->Wait.queue;
1108a5: 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 &&
1108a8: 8b 4a 30 mov 0x30(%edx),%ecx 1108ab: 85 c9 test %ecx,%ecx
1108ad: 74 08 je 1108b7 <_Thread_queue_Process_timeout+0x1b>
1108af: 3b 05 18 54 12 00 cmp 0x125418,%eax
1108b5: 74 19 je 1108d0 <_Thread_queue_Process_timeout+0x34> 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;
1108b7: 8b 52 3c mov 0x3c(%edx),%edx 1108ba: 89 50 34 mov %edx,0x34(%eax)
_Thread_queue_Extract( the_thread->Wait.queue, the_thread );
1108bd: 83 ec 08 sub $0x8,%esp 1108c0: 50 push %eax 1108c1: ff 70 44 pushl 0x44(%eax) 1108c4: e8 e7 fe ff ff call 1107b0 <_Thread_queue_Extract> 1108c9: 83 c4 10 add $0x10,%esp
} }
1108cc: c9 leave 1108cd: c3 ret
1108ce: 66 90 xchg %ax,%ax <== NOT EXECUTED
* 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 ) {
1108d0: 83 f9 03 cmp $0x3,%ecx
1108d3: 74 f7 je 1108cc <_Thread_queue_Process_timeout+0x30> the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
1108d5: 8b 4a 3c mov 0x3c(%edx),%ecx 1108d8: 89 48 34 mov %ecx,0x34(%eax)
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
1108db: 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 ); } }
1108e2: c9 leave 1108e3: c3 ret
0010dc04 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
10dc04: 55 push %ebp 10dc05: 89 e5 mov %esp,%ebp 10dc07: 57 push %edi 10dc08: 56 push %esi 10dc09: 53 push %ebx 10dc0a: 83 ec 1c sub $0x1c,%esp 10dc0d: 8b 75 08 mov 0x8(%ebp),%esi 10dc10: 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 )
10dc13: 85 f6 test %esi,%esi
10dc15: 74 06 je 10dc1d <_Thread_queue_Requeue+0x19><== ALWAYS 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 ) {
10dc17: 83 7e 34 01 cmpl $0x1,0x34(%esi)
10dc1b: 74 0b je 10dc28 <_Thread_queue_Requeue+0x24><== NEVER TAKEN
_Thread_queue_Extract_priority_helper( tq, the_thread, true ); (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); } _ISR_Enable( level ); } }
10dc1d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10dc20: 5b pop %ebx <== NOT EXECUTED 10dc21: 5e pop %esi <== NOT EXECUTED 10dc22: 5f pop %edi <== NOT EXECUTED 10dc23: c9 leave <== NOT EXECUTED 10dc24: c3 ret <== NOT EXECUTED 10dc25: 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 );
10dc28: 9c pushf 10dc29: fa cli 10dc2a: 5b pop %ebx
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
10dc2b: f7 47 10 e0 be 03 00 testl $0x3bee0,0x10(%edi)
10dc32: 75 0c jne 10dc40 <_Thread_queue_Requeue+0x3c><== NEVER 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 );
10dc34: 53 push %ebx 10dc35: 9d popf
} }
10dc36: 8d 65 f4 lea -0xc(%ebp),%esp 10dc39: 5b pop %ebx 10dc3a: 5e pop %esi 10dc3b: 5f pop %edi 10dc3c: c9 leave 10dc3d: c3 ret
10dc3e: 66 90 xchg %ax,%ax <== NOT EXECUTED
10dc40: 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 );
10dc47: 50 push %eax 10dc48: 6a 01 push $0x1 10dc4a: 57 push %edi 10dc4b: 56 push %esi 10dc4c: e8 8f 2b 00 00 call 1107e0 <_Thread_queue_Extract_priority_helper>
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
10dc51: 83 c4 0c add $0xc,%esp 10dc54: 8d 45 e4 lea -0x1c(%ebp),%eax 10dc57: 50 push %eax 10dc58: 57 push %edi 10dc59: 56 push %esi 10dc5a: e8 8d fd ff ff call 10d9ec <_Thread_queue_Enqueue_priority> 10dc5f: 83 c4 10 add $0x10,%esp 10dc62: eb d0 jmp 10dc34 <_Thread_queue_Requeue+0x30>
0010dc64 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
10dc64: 55 push %ebp 10dc65: 89 e5 mov %esp,%ebp 10dc67: 83 ec 20 sub $0x20,%esp
Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location );
10dc6a: 8d 45 f4 lea -0xc(%ebp),%eax 10dc6d: 50 push %eax 10dc6e: ff 75 08 pushl 0x8(%ebp) 10dc71: e8 06 f8 ff ff call 10d47c <_Thread_Get>
switch ( location ) {
10dc76: 83 c4 10 add $0x10,%esp 10dc79: 8b 55 f4 mov -0xc(%ebp),%edx 10dc7c: 85 d2 test %edx,%edx
10dc7e: 75 17 jne 10dc97 <_Thread_queue_Timeout+0x33><== ALWAYS TAKEN
#if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_queue_Process_timeout( the_thread );
10dc80: 83 ec 0c sub $0xc,%esp 10dc83: 50 push %eax 10dc84: e8 13 2c 00 00 call 11089c <_Thread_queue_Process_timeout>
*/ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1;
10dc89: a1 58 53 12 00 mov 0x125358,%eax 10dc8e: 48 dec %eax 10dc8f: a3 58 53 12 00 mov %eax,0x125358 10dc94: 83 c4 10 add $0x10,%esp
_Thread_Unnest_dispatch(); break; } }
10dc97: c9 leave 10dc98: c3 ret
00119184 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
119184: 55 push %ebp 119185: 89 e5 mov %esp,%ebp 119187: 57 push %edi 119188: 56 push %esi 119189: 53 push %ebx 11918a: 83 ec 4c sub $0x4c,%esp 11918d: 8b 5d 08 mov 0x8(%ebp),%ebx 119190: 8d 45 e0 lea -0x20(%ebp),%eax 119193: 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);
119196: 89 45 dc mov %eax,-0x24(%ebp)
the_chain->permanent_null = NULL;
119199: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp)
the_chain->last = _Chain_Head(the_chain);
1191a0: 8d 4d dc lea -0x24(%ebp),%ecx 1191a3: 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;
1191a6: 8d 7d d0 lea -0x30(%ebp),%edi 1191a9: 8d 45 d4 lea -0x2c(%ebp),%eax 1191ac: 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);
1191af: 89 45 d0 mov %eax,-0x30(%ebp)
the_chain->permanent_null = NULL;
1191b2: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp)
the_chain->last = _Chain_Head(the_chain);
1191b9: 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 );
1191bc: 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 );
1191bf: 8d 4b 68 lea 0x68(%ebx),%ecx 1191c2: 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 );
1191c5: 8d 43 08 lea 0x8(%ebx),%eax 1191c8: 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 );
1191cb: 8d 53 40 lea 0x40(%ebx),%edx 1191ce: 89 55 c0 mov %edx,-0x40(%ebp) 1191d1: 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;
1191d4: 8d 4d dc lea -0x24(%ebp),%ecx 1191d7: 89 4b 78 mov %ecx,0x78(%ebx) 1191da: 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;
1191dc: a1 e4 08 14 00 mov 0x1408e4,%eax
/* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
1191e1: 8b 53 3c mov 0x3c(%ebx),%edx
watchdogs->last_snapshot = snapshot;
1191e4: 89 43 3c mov %eax,0x3c(%ebx)
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
1191e7: 51 push %ecx 1191e8: 57 push %edi 1191e9: 29 d0 sub %edx,%eax 1191eb: 50 push %eax 1191ec: 56 push %esi 1191ed: e8 ca 3a 00 00 call 11ccbc <_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();
1191f2: a1 0c 08 14 00 mov 0x14080c,%eax
Watchdog_Interval last_snapshot = watchdogs->last_snapshot;
1191f7: 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 ) {
1191fa: 83 c4 10 add $0x10,%esp 1191fd: 39 d0 cmp %edx,%eax
1191ff: 77 63 ja 119264 <_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 ) { 119201: 72 7d jb 119280 <_Timer_server_Body+0xfc> */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot;
119203: 89 43 74 mov %eax,0x74(%ebx) 119206: 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 );
119208: 8b 43 78 mov 0x78(%ebx),%eax 11920b: 83 ec 0c sub $0xc,%esp 11920e: 50 push %eax 11920f: e8 38 08 00 00 call 119a4c <_Chain_Get>
if ( timer == NULL ) {
119214: 83 c4 10 add $0x10,%esp 119217: 85 c0 test %eax,%eax
119219: 74 35 je 119250 <_Timer_server_Body+0xcc><== NEVER TAKEN
static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
11921b: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED 11921e: 83 fa 01 cmp $0x1,%edx <== NOT EXECUTED 119221: 74 19 je 11923c <_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 ) {
119223: 83 fa 03 cmp $0x3,%edx <== NOT EXECUTED 119226: 75 e0 jne 119208 <_Timer_server_Body+0x84><== NOT EXECUTED
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
119228: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11922b: 83 c0 10 add $0x10,%eax <== NOT EXECUTED 11922e: 50 push %eax <== NOT EXECUTED 11922f: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED 119232: e8 1d 3b 00 00 call 11cd54 <_Watchdog_Insert> <== NOT EXECUTED 119237: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11923a: eb cc jmp 119208 <_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 );
11923c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11923f: 83 c0 10 add $0x10,%eax <== NOT EXECUTED 119242: 50 push %eax <== NOT EXECUTED 119243: 56 push %esi <== NOT EXECUTED 119244: e8 0b 3b 00 00 call 11cd54 <_Watchdog_Insert> <== NOT EXECUTED 119249: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11924c: eb ba jmp 119208 <_Timer_server_Body+0x84><== NOT EXECUTED 11924e: 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 );
119250: 9c pushf 119251: fa cli 119252: 58 pop %eax
if ( _Chain_Is_empty( insert_chain ) ) {
119253: 8b 55 b4 mov -0x4c(%ebp),%edx 119256: 3b 55 dc cmp -0x24(%ebp),%edx
119259: 74 41 je 11929c <_Timer_server_Body+0x118><== NEVER TAKEN
ts->insert_chain = NULL; _ISR_Enable( level ); break; } else { _ISR_Enable( level );
11925b: 50 push %eax <== NOT EXECUTED 11925c: 9d popf <== NOT EXECUTED 11925d: e9 7a ff ff ff jmp 1191dc <_Timer_server_Body+0x58><== NOT EXECUTED 119262: 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 );
119264: 51 push %ecx 119265: 57 push %edi 119266: 89 c1 mov %eax,%ecx 119268: 29 d1 sub %edx,%ecx 11926a: 51 push %ecx 11926b: ff 75 c4 pushl -0x3c(%ebp) 11926e: 89 45 b8 mov %eax,-0x48(%ebp) 119271: e8 46 3a 00 00 call 11ccbc <_Watchdog_Adjust_to_chain> 119276: 83 c4 10 add $0x10,%esp 119279: 8b 45 b8 mov -0x48(%ebp),%eax 11927c: eb 85 jmp 119203 <_Timer_server_Body+0x7f>
11927e: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * 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 );
119280: 51 push %ecx 119281: 29 c2 sub %eax,%edx 119283: 52 push %edx 119284: 6a 01 push $0x1 119286: ff 75 c4 pushl -0x3c(%ebp) 119289: 89 45 b8 mov %eax,-0x48(%ebp) 11928c: e8 b3 39 00 00 call 11cc44 <_Watchdog_Adjust> 119291: 83 c4 10 add $0x10,%esp 119294: 8b 45 b8 mov -0x48(%ebp),%eax 119297: e9 67 ff ff ff jmp 119203 <_Timer_server_Body+0x7f>
*/ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ts->insert_chain = NULL;
11929c: c7 43 78 00 00 00 00 movl $0x0,0x78(%ebx)
_ISR_Enable( level );
1192a3: 50 push %eax 1192a4: 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 ) ) {
1192a5: 8b 4d b0 mov -0x50(%ebp),%ecx 1192a8: 3b 4d d0 cmp -0x30(%ebp),%ecx
1192ab: 75 23 jne 1192d0 <_Timer_server_Body+0x14c>
1192ad: eb 33 jmp 1192e2 <_Timer_server_Body+0x15e>
1192af: 90 nop <== NOT EXECUTED
{ Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next;
1192b0: 8b 10 mov (%eax),%edx
the_chain->first = new_first;
1192b2: 89 55 d0 mov %edx,-0x30(%ebp)
new_first->previous = _Chain_Head(the_chain);
1192b5: 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;
1192b8: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
_ISR_Enable( level );
1192bf: 51 push %ecx 1192c0: 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 );
1192c1: 83 ec 08 sub $0x8,%esp 1192c4: ff 70 24 pushl 0x24(%eax) 1192c7: ff 70 20 pushl 0x20(%eax) 1192ca: ff 50 1c call *0x1c(%eax)
}
1192cd: 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 );
1192d0: 9c pushf 1192d1: fa cli 1192d2: 59 pop %ecx
*/ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain));
1192d3: 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))
1192d6: 39 45 b0 cmp %eax,-0x50(%ebp)
1192d9: 75 d5 jne 1192b0 <_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 );
1192db: 51 push %ecx 1192dc: 9d popf 1192dd: e9 f2 fe ff ff jmp 1191d4 <_Timer_server_Body+0x50>
* the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false;
1192e2: c6 43 7c 00 movb $0x0,0x7c(%ebx) 1192e6: a1 78 07 14 00 mov 0x140778,%eax 1192eb: 40 inc %eax 1192ec: a3 78 07 14 00 mov %eax,0x140778
/* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING );
1192f1: 83 ec 08 sub $0x8,%esp 1192f4: 6a 08 push $0x8 1192f6: ff 33 pushl (%ebx) 1192f8: e8 8f 31 00 00 call 11c48c <_Thread_Set_state>
_Timer_server_Reset_interval_system_watchdog( ts );
1192fd: 89 d8 mov %ebx,%eax 1192ff: e8 e0 fd ff ff call 1190e4 <_Timer_server_Reset_interval_system_watchdog>
_Timer_server_Reset_tod_system_watchdog( ts );
119304: 89 d8 mov %ebx,%eax 119306: e8 29 fe ff ff call 119134 <_Timer_server_Reset_tod_system_watchdog>
_Thread_Enable_dispatch();
11930b: e8 84 27 00 00 call 11ba94 <_Thread_Enable_dispatch>
ts->active = true;
119310: 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 );
119314: 58 pop %eax 119315: ff 75 bc pushl -0x44(%ebp) 119318: e8 6f 3b 00 00 call 11ce8c <_Watchdog_Remove>
static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
11931d: 59 pop %ecx 11931e: ff 75 c0 pushl -0x40(%ebp) 119321: e8 66 3b 00 00 call 11ce8c <_Watchdog_Remove> 119326: 83 c4 10 add $0x10,%esp 119329: e9 a6 fe ff ff jmp 1191d4 <_Timer_server_Body+0x50>
001190e4 <_Timer_server_Reset_interval_system_watchdog>: } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) {
1190e4: 55 push %ebp 1190e5: 89 e5 mov %esp,%ebp 1190e7: 56 push %esi 1190e8: 53 push %ebx 1190e9: 89 c3 mov %eax,%ebx
static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
1190eb: 8d 70 08 lea 0x8(%eax),%esi 1190ee: 83 ec 0c sub $0xc,%esp 1190f1: 56 push %esi 1190f2: e8 95 3d 00 00 call 11ce8c <_Watchdog_Remove>
{ ISR_Level level; _Timer_server_Stop_interval_system_watchdog( ts ); _ISR_Disable( level );
1190f7: 9c pushf 1190f8: fa cli 1190f9: 59 pop %ecx
*/ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain));
1190fa: 8b 43 30 mov 0x30(%ebx),%eax
*/ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null;
1190fd: 8d 53 34 lea 0x34(%ebx),%edx 119100: 83 c4 10 add $0x10,%esp 119103: 39 d0 cmp %edx,%eax
119105: 74 21 je 119128 <_Timer_server_Reset_interval_system_watchdog+0x44> if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) { Watchdog_Interval delta_interval = _Watchdog_First( &ts->Interval_watchdogs.Chain )->delta_interval;
119107: 8b 40 10 mov 0x10(%eax),%eax
_ISR_Enable( level );
11910a: 51 push %ecx 11910b: 9d popf
Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units;
11910c: 89 43 14 mov %eax,0x14(%ebx)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
11910f: 83 ec 08 sub $0x8,%esp 119112: 56 push %esi 119113: 68 58 08 14 00 push $0x140858 119118: e8 37 3c 00 00 call 11cd54 <_Watchdog_Insert> 11911d: 83 c4 10 add $0x10,%esp
delta_interval ); } else { _ISR_Enable( level ); } }
119120: 8d 65 f8 lea -0x8(%ebp),%esp 119123: 5b pop %ebx 119124: 5e pop %esi 119125: c9 leave 119126: c3 ret
119127: 90 nop <== NOT EXECUTED
_Watchdog_Insert_ticks( &ts->Interval_watchdogs.System_watchdog, delta_interval ); } else { _ISR_Enable( level );
119128: 51 push %ecx 119129: 9d popf
} }
11912a: 8d 65 f8 lea -0x8(%ebp),%esp 11912d: 5b pop %ebx 11912e: 5e pop %esi 11912f: c9 leave 119130: c3 ret
00119134 <_Timer_server_Reset_tod_system_watchdog>: } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) {
119134: 55 push %ebp 119135: 89 e5 mov %esp,%ebp 119137: 56 push %esi 119138: 53 push %ebx 119139: 89 c3 mov %eax,%ebx
static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
11913b: 8d 70 40 lea 0x40(%eax),%esi 11913e: 83 ec 0c sub $0xc,%esp 119141: 56 push %esi 119142: e8 45 3d 00 00 call 11ce8c <_Watchdog_Remove>
{ ISR_Level level; _Timer_server_Stop_tod_system_watchdog( ts ); _ISR_Disable( level );
119147: 9c pushf 119148: fa cli 119149: 59 pop %ecx
*/ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain));
11914a: 8b 43 68 mov 0x68(%ebx),%eax
*/ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null;
11914d: 8d 53 6c lea 0x6c(%ebx),%edx 119150: 83 c4 10 add $0x10,%esp 119153: 39 d0 cmp %edx,%eax
119155: 74 21 je 119178 <_Timer_server_Reset_tod_system_watchdog+0x44> if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) { Watchdog_Interval delta_interval = _Watchdog_First( &ts->TOD_watchdogs.Chain )->delta_interval;
119157: 8b 40 10 mov 0x10(%eax),%eax
_ISR_Enable( level );
11915a: 51 push %ecx 11915b: 9d popf
Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units;
11915c: 89 43 4c mov %eax,0x4c(%ebx)
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
11915f: 83 ec 08 sub $0x8,%esp 119162: 56 push %esi 119163: 68 4c 08 14 00 push $0x14084c 119168: e8 e7 3b 00 00 call 11cd54 <_Watchdog_Insert> 11916d: 83 c4 10 add $0x10,%esp
delta_interval ); } else { _ISR_Enable( level ); } }
119170: 8d 65 f8 lea -0x8(%ebp),%esp 119173: 5b pop %ebx 119174: 5e pop %esi 119175: c9 leave 119176: c3 ret
119177: 90 nop <== NOT EXECUTED
_Watchdog_Insert_seconds( &ts->TOD_watchdogs.System_watchdog, delta_interval ); } else { _ISR_Enable( level );
119178: 51 push %ecx 119179: 9d popf
} }
11917a: 8d 65 f8 lea -0x8(%ebp),%esp 11917d: 5b pop %ebx 11917e: 5e pop %esi 11917f: c9 leave 119180: c3 ret
00119330 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) {
119330: 55 push %ebp 119331: 89 e5 mov %esp,%ebp 119333: 57 push %edi 119334: 56 push %esi 119335: 53 push %ebx 119336: 83 ec 2c sub $0x2c,%esp 119339: 8b 5d 08 mov 0x8(%ebp),%ebx 11933c: 8b 45 0c mov 0xc(%ebp),%eax
if ( ts->insert_chain == NULL ) {
11933f: 8b 53 78 mov 0x78(%ebx),%edx 119342: 85 d2 test %edx,%edx
119344: 74 16 je 11935c <_Timer_server_Schedule_operation_method+0x2c><== NEVER 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 );
119346: 8b 53 78 mov 0x78(%ebx),%edx <== NOT EXECUTED 119349: 89 45 0c mov %eax,0xc(%ebp) <== NOT EXECUTED 11934c: 89 55 08 mov %edx,0x8(%ebp) <== NOT EXECUTED
} }
11934f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 119352: 5b pop %ebx <== NOT EXECUTED 119353: 5e pop %esi <== NOT EXECUTED 119354: 5f pop %edi <== NOT EXECUTED 119355: 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 );
119356: e9 cd 06 00 00 jmp 119a28 <_Chain_Append> <== NOT EXECUTED 11935b: 90 nop <== NOT EXECUTED
11935c: 8b 15 78 07 14 00 mov 0x140778,%edx 119362: 42 inc %edx 119363: 89 15 78 07 14 00 mov %edx,0x140778
* being inserted. This could result in an integer overflow. */ _Thread_Disable_dispatch(); if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
119369: 8b 50 38 mov 0x38(%eax),%edx 11936c: 83 fa 01 cmp $0x1,%edx
11936f: 74 77 je 1193e8 <_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 ) {
119371: 83 fa 03 cmp $0x3,%edx
119374: 74 0e je 119384 <_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 ); } }
119376: 8d 65 f4 lea -0xc(%ebp),%esp 119379: 5b pop %ebx 11937a: 5e pop %esi 11937b: 5f pop %edi 11937c: c9 leave
if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch();
11937d: e9 12 27 00 00 jmp 11ba94 <_Thread_Enable_dispatch>
119382: 66 90 xchg %ax,%ax <== NOT EXECUTED
} 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 );
119384: 9c pushf 119385: fa cli 119386: 8f 45 e4 popl -0x1c(%ebp)
snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
119389: 8b 0d 0c 08 14 00 mov 0x14080c,%ecx
last_snapshot = ts->TOD_watchdogs.last_snapshot;
11938f: 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));
119392: 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;
119395: 8d 7b 6c lea 0x6c(%ebx),%edi 119398: 39 fa cmp %edi,%edx
11939a: 74 22 je 1193be <_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;
11939c: 8b 7a 10 mov 0x10(%edx),%edi 11939f: 89 7d d4 mov %edi,-0x2c(%ebp)
if ( snapshot > last_snapshot ) {
1193a2: 39 f1 cmp %esi,%ecx
1193a4: 0f 86 9e 00 00 00 jbe 119448 <_Timer_server_Schedule_operation_method+0x118> /* * We advanced in time. */ delta = snapshot - last_snapshot;
1193aa: 89 cf mov %ecx,%edi 1193ac: 29 f7 sub %esi,%edi 1193ae: 89 fe mov %edi,%esi
if (delta_interval > delta) {
1193b0: 39 7d d4 cmp %edi,-0x2c(%ebp)
1193b3: 0f 87 9b 00 00 00 ja 119454 <_Timer_server_Schedule_operation_method+0x124><== NEVER TAKEN
1193b9: 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;
1193bb: 89 7a 10 mov %edi,0x10(%edx)
} ts->TOD_watchdogs.last_snapshot = snapshot;
1193be: 89 4b 74 mov %ecx,0x74(%ebx)
_ISR_Enable( level );
1193c1: ff 75 e4 pushl -0x1c(%ebp) 1193c4: 9d popf
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
1193c5: 83 ec 08 sub $0x8,%esp 1193c8: 83 c0 10 add $0x10,%eax 1193cb: 50 push %eax 1193cc: 8d 43 68 lea 0x68(%ebx),%eax 1193cf: 50 push %eax 1193d0: e8 7f 39 00 00 call 11cd54 <_Watchdog_Insert>
if ( !ts->active ) {
1193d5: 8a 43 7c mov 0x7c(%ebx),%al 1193d8: 83 c4 10 add $0x10,%esp 1193db: 84 c0 test %al,%al
1193dd: 75 97 jne 119376 <_Timer_server_Schedule_operation_method+0x46> _Timer_server_Reset_tod_system_watchdog( ts );
1193df: 89 d8 mov %ebx,%eax 1193e1: e8 4e fd ff ff call 119134 <_Timer_server_Reset_tod_system_watchdog> 1193e6: eb 8e jmp 119376 <_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 );
1193e8: 9c pushf 1193e9: fa cli 1193ea: 8f 45 e4 popl -0x1c(%ebp)
snapshot = _Watchdog_Ticks_since_boot;
1193ed: 8b 0d e4 08 14 00 mov 0x1408e4,%ecx
last_snapshot = ts->Interval_watchdogs.last_snapshot;
1193f3: 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));
1193f6: 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;
1193f9: 8d 7b 34 lea 0x34(%ebx),%edi 1193fc: 39 fa cmp %edi,%edx
1193fe: 74 12 je 119412 <_Timer_server_Schedule_operation_method+0xe2> first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain ); /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot;
119400: 89 cf mov %ecx,%edi 119402: 29 f7 sub %esi,%edi 119404: 89 fe mov %edi,%esi
delta_interval = first_watchdog->delta_interval;
119406: 8b 7a 10 mov 0x10(%edx),%edi
if (delta_interval > delta) {
119409: 39 fe cmp %edi,%esi
11940b: 72 37 jb 119444 <_Timer_server_Schedule_operation_method+0x114>
11940d: 31 ff xor %edi,%edi
delta_interval -= delta; } else { delta_interval = 0; } first_watchdog->delta_interval = delta_interval;
11940f: 89 7a 10 mov %edi,0x10(%edx)
} ts->Interval_watchdogs.last_snapshot = snapshot;
119412: 89 4b 3c mov %ecx,0x3c(%ebx)
_ISR_Enable( level );
119415: ff 75 e4 pushl -0x1c(%ebp) 119418: 9d popf
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
119419: 83 ec 08 sub $0x8,%esp 11941c: 83 c0 10 add $0x10,%eax 11941f: 50 push %eax 119420: 8d 43 30 lea 0x30(%ebx),%eax 119423: 50 push %eax 119424: e8 2b 39 00 00 call 11cd54 <_Watchdog_Insert>
if ( !ts->active ) {
119429: 8a 43 7c mov 0x7c(%ebx),%al 11942c: 83 c4 10 add $0x10,%esp 11942f: 84 c0 test %al,%al
119431: 0f 85 3f ff ff ff jne 119376 <_Timer_server_Schedule_operation_method+0x46> _Timer_server_Reset_interval_system_watchdog( ts );
119437: 89 d8 mov %ebx,%eax 119439: e8 a6 fc ff ff call 1190e4 <_Timer_server_Reset_interval_system_watchdog> 11943e: e9 33 ff ff ff jmp 119376 <_Timer_server_Schedule_operation_method+0x46>
119443: 90 nop <== NOT EXECUTED
*/ delta = snapshot - last_snapshot; delta_interval = first_watchdog->delta_interval; if (delta_interval > delta) { delta_interval -= delta;
119444: 29 f7 sub %esi,%edi 119446: eb c7 jmp 11940f <_Timer_server_Schedule_operation_method+0xdf>
} } else { /* * Someone put us in the past. */ delta = last_snapshot - snapshot;
119448: 8b 7d d4 mov -0x2c(%ebp),%edi 11944b: 01 f7 add %esi,%edi
delta_interval += delta;
11944d: 29 cf sub %ecx,%edi 11944f: e9 67 ff ff ff jmp 1193bb <_Timer_server_Schedule_operation_method+0x8b>
/* * We advanced in time. */ delta = snapshot - last_snapshot; if (delta_interval > delta) { delta_interval -= delta;
119454: 8b 7d d4 mov -0x2c(%ebp),%edi 119457: 29 f7 sub %esi,%edi 119459: e9 5d ff ff ff jmp 1193bb <_Timer_server_Schedule_operation_method+0x8b>
0010e04c <_Timespec_Add_to>: uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) {
10e04c: 55 push %ebp 10e04d: 89 e5 mov %esp,%ebp 10e04f: 53 push %ebx 10e050: 8b 5d 08 mov 0x8(%ebp),%ebx 10e053: 8b 55 0c mov 0xc(%ebp),%edx
uint32_t seconds = add->tv_sec;
10e056: 8b 02 mov (%edx),%eax
/* Add the basics */ time->tv_sec += add->tv_sec;
10e058: 01 03 add %eax,(%ebx)
time->tv_nsec += add->tv_nsec;
10e05a: 8b 52 04 mov 0x4(%edx),%edx 10e05d: 03 53 04 add 0x4(%ebx),%edx 10e060: 89 53 04 mov %edx,0x4(%ebx)
/* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
10e063: 81 fa ff c9 9a 3b cmp $0x3b9ac9ff,%edx
10e069: 76 1a jbe 10e085 <_Timespec_Add_to+0x39>
10e06b: 8b 0b mov (%ebx),%ecx 10e06d: 8d 76 00 lea 0x0(%esi),%esi
time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
10e070: 81 ea 00 ca 9a 3b sub $0x3b9aca00,%edx
* * This routines adds two timespecs. The second argument is added * to the first. */ uint32_t _Timespec_Add_to(
10e076: 41 inc %ecx
/* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND; time->tv_sec++; seconds++;
10e077: 40 inc %eax
/* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec; /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
10e078: 81 fa ff c9 9a 3b cmp $0x3b9ac9ff,%edx
10e07e: 77 f0 ja 10e070 <_Timespec_Add_to+0x24> <== ALWAYS TAKEN
10e080: 89 53 04 mov %edx,0x4(%ebx) 10e083: 89 0b mov %ecx,(%ebx)
time->tv_sec++; seconds++; } return seconds; }
10e085: 5b pop %ebx 10e086: c9 leave 10e087: c3 ret
0010f990 <_Timespec_Divide>: const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) {
10f990: 55 push %ebp 10f991: 89 e5 mov %esp,%ebp 10f993: 57 push %edi 10f994: 56 push %esi 10f995: 53 push %ebx 10f996: 83 ec 2c sub $0x2c,%esp 10f999: 8b 45 08 mov 0x8(%ebp),%eax 10f99c: 8b 5d 0c mov 0xc(%ebp),%ebx
/* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
10f99f: 8b 10 mov (%eax),%edx 10f9a1: 89 55 e0 mov %edx,-0x20(%ebp)
left += lhs->tv_nsec;
10f9a4: 8b 78 04 mov 0x4(%eax),%edi
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
10f9a7: b9 00 ca 9a 3b mov $0x3b9aca00,%ecx 10f9ac: 8b 03 mov (%ebx),%eax 10f9ae: f7 e9 imul %ecx 10f9b0: 89 45 d0 mov %eax,-0x30(%ebp) 10f9b3: 89 55 d4 mov %edx,-0x2c(%ebp)
right += rhs->tv_nsec;
10f9b6: 8b 5b 04 mov 0x4(%ebx),%ebx 10f9b9: 89 de mov %ebx,%esi 10f9bb: c1 fe 1f sar $0x1f,%esi 10f9be: 01 5d d0 add %ebx,-0x30(%ebp) 10f9c1: 11 75 d4 adc %esi,-0x2c(%ebp)
if ( right == 0 ) {
10f9c4: 8b 55 d4 mov -0x2c(%ebp),%edx 10f9c7: 0b 55 d0 or -0x30(%ebp),%edx
10f9ca: 74 7c je 10fa48 <_Timespec_Divide+0xb8> /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
10f9cc: 8b 45 e0 mov -0x20(%ebp),%eax 10f9cf: f7 e9 imul %ecx 10f9d1: 89 45 e0 mov %eax,-0x20(%ebp) 10f9d4: 89 55 e4 mov %edx,-0x1c(%ebp)
* Put it back in the timespec result. * * TODO: Rounding on the last digit of the fval. */ answer = (left * 100000) / right;
10f9d7: 89 fb mov %edi,%ebx 10f9d9: c1 fb 1f sar $0x1f,%ebx 10f9dc: 01 7d e0 add %edi,-0x20(%ebp) 10f9df: 11 5d e4 adc %ebx,-0x1c(%ebp) 10f9e2: 69 5d e4 a0 86 01 00 imul $0x186a0,-0x1c(%ebp),%ebx 10f9e9: b9 a0 86 01 00 mov $0x186a0,%ecx 10f9ee: 8b 45 e0 mov -0x20(%ebp),%eax 10f9f1: f7 e1 mul %ecx 10f9f3: 89 45 e0 mov %eax,-0x20(%ebp) 10f9f6: 01 da add %ebx,%edx 10f9f8: 89 55 e4 mov %edx,-0x1c(%ebp) 10f9fb: ff 75 d4 pushl -0x2c(%ebp) 10f9fe: ff 75 d0 pushl -0x30(%ebp) 10fa01: ff 75 e4 pushl -0x1c(%ebp) 10fa04: ff 75 e0 pushl -0x20(%ebp) 10fa07: e8 40 fc 00 00 call 11f64c <__udivdi3> 10fa0c: 83 c4 10 add $0x10,%esp 10fa0f: 89 c3 mov %eax,%ebx 10fa11: 89 d6 mov %edx,%esi
*ival_percentage = answer / 1000;
10fa13: 6a 00 push $0x0 10fa15: 68 e8 03 00 00 push $0x3e8 10fa1a: 52 push %edx 10fa1b: 50 push %eax 10fa1c: e8 2b fc 00 00 call 11f64c <__udivdi3> 10fa21: 83 c4 10 add $0x10,%esp 10fa24: 8b 55 10 mov 0x10(%ebp),%edx 10fa27: 89 02 mov %eax,(%edx)
*fval_percentage = answer % 1000;
10fa29: 6a 00 push $0x0 10fa2b: 68 e8 03 00 00 push $0x3e8 10fa30: 56 push %esi 10fa31: 53 push %ebx 10fa32: e8 25 fd 00 00 call 11f75c <__umoddi3> 10fa37: 83 c4 10 add $0x10,%esp 10fa3a: 8b 55 14 mov 0x14(%ebp),%edx 10fa3d: 89 02 mov %eax,(%edx)
}
10fa3f: 8d 65 f4 lea -0xc(%ebp),%esp 10fa42: 5b pop %ebx 10fa43: 5e pop %esi 10fa44: 5f pop %edi 10fa45: c9 leave 10fa46: c3 ret
10fa47: 90 nop <== NOT EXECUTED
left += lhs->tv_nsec; right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; right += rhs->tv_nsec; if ( right == 0 ) { *ival_percentage = 0;
10fa48: 8b 45 10 mov 0x10(%ebp),%eax 10fa4b: c7 00 00 00 00 00 movl $0x0,(%eax)
*fval_percentage = 0;
10fa51: 8b 55 14 mov 0x14(%ebp),%edx 10fa54: c7 02 00 00 00 00 movl $0x0,(%edx)
answer = (left * 100000) / right; *ival_percentage = answer / 1000; *fval_percentage = answer % 1000; }
10fa5a: 8d 65 f4 lea -0xc(%ebp),%esp 10fa5d: 5b pop %ebx 10fa5e: 5e pop %esi 10fa5f: 5f pop %edi 10fa60: c9 leave 10fa61: c3 ret
0013cda0 <_Timespec_Greater_than>: bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) {
13cda0: 55 push %ebp 13cda1: 89 e5 mov %esp,%ebp 13cda3: 8b 55 08 mov 0x8(%ebp),%edx 13cda6: 8b 45 0c mov 0xc(%ebp),%eax
if ( lhs->tv_sec > rhs->tv_sec )
13cda9: 8b 08 mov (%eax),%ecx 13cdab: 39 0a cmp %ecx,(%edx)
13cdad: 7f 11 jg 13cdc0 <_Timespec_Greater_than+0x20> return true; if ( lhs->tv_sec < rhs->tv_sec )
13cdaf: 7c 0b jl 13cdbc <_Timespec_Greater_than+0x1c><== ALWAYS TAKEN
#include <rtems/system.h> #include <rtems/score/timespec.h> #include <rtems/score/tod.h> bool _Timespec_Greater_than(
13cdb1: 8b 52 04 mov 0x4(%edx),%edx 13cdb4: 3b 50 04 cmp 0x4(%eax),%edx 13cdb7: 0f 9f c0 setg %al
/* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; }
13cdba: c9 leave 13cdbb: c3 ret
) { if ( lhs->tv_sec > rhs->tv_sec ) return true; if ( lhs->tv_sec < rhs->tv_sec )
13cdbc: 31 c0 xor %eax,%eax <== NOT EXECUTED
/* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; }
13cdbe: c9 leave <== NOT EXECUTED 13cdbf: c3 ret <== NOT EXECUTED
bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec > rhs->tv_sec )
13cdc0: b0 01 mov $0x1,%al
/* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; }
13cdc2: c9 leave 13cdc3: c3 ret
00127e74 <_Timespec_Is_valid>: #include <rtems/score/tod.h> bool _Timespec_Is_valid( const struct timespec *time ) {
127e74: 55 push %ebp 127e75: 89 e5 mov %esp,%ebp 127e77: 8b 45 08 mov 0x8(%ebp),%eax
if ( !time )
127e7a: 85 c0 test %eax,%eax
127e7c: 74 1a je 127e98 <_Timespec_Is_valid+0x24> return false; if ( time->tv_sec < 0 )
127e7e: 8b 10 mov (%eax),%edx 127e80: 85 d2 test %edx,%edx
127e82: 78 14 js 127e98 <_Timespec_Is_valid+0x24> return false; if ( time->tv_nsec < 0 )
127e84: 8b 40 04 mov 0x4(%eax),%eax 127e87: 85 c0 test %eax,%eax
127e89: 78 0d js 127e98 <_Timespec_Is_valid+0x24> #include <rtems/system.h> #include <rtems/score/timespec.h> #include <rtems/score/tod.h> bool _Timespec_Is_valid(
127e8b: 3d ff c9 9a 3b cmp $0x3b9ac9ff,%eax 127e90: 0f 96 c0 setbe %al
if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; }
127e93: c9 leave 127e94: c3 ret
127e95: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
#include <rtems/system.h> #include <rtems/score/timespec.h> #include <rtems/score/tod.h> bool _Timespec_Is_valid(
127e98: 31 c0 xor %eax,%eax
if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; }
127e9a: c9 leave 127e9b: c3 ret
00127e9c <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) {
127e9c: 55 push %ebp 127e9d: 89 e5 mov %esp,%ebp 127e9f: 56 push %esi 127ea0: 53 push %ebx 127ea1: 8b 5d 08 mov 0x8(%ebp),%ebx
uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) )
127ea4: 8b 33 mov (%ebx),%esi 127ea6: 85 f6 test %esi,%esi
127ea8: 75 07 jne 127eb1 <_Timespec_To_ticks+0x15>
127eaa: 8b 43 04 mov 0x4(%ebx),%eax 127ead: 85 c0 test %eax,%eax
127eaf: 74 37 je 127ee8 <_Timespec_To_ticks+0x4c> return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND;
127eb1: e8 da 00 00 00 call 127f90 <TOD_TICKS_PER_SECOND_method> 127eb6: 89 c1 mov %eax,%ecx 127eb8: 0f af ce imul %esi,%ecx
ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick();
127ebb: a1 ac f0 12 00 mov 0x12f0ac,%eax 127ec0: 8d 04 80 lea (%eax,%eax,4),%eax 127ec3: 8d 04 80 lea (%eax,%eax,4),%eax 127ec6: 8d 34 80 lea (%eax,%eax,4),%esi 127ec9: c1 e6 03 shl $0x3,%esi 127ecc: 8b 43 04 mov 0x4(%ebx),%eax 127ecf: 31 d2 xor %edx,%edx 127ed1: f7 f6 div %esi
if (ticks)
127ed3: 01 c8 add %ecx,%eax
127ed5: 74 05 je 127edc <_Timespec_To_ticks+0x40> return ticks; return 1; }
127ed7: 5b pop %ebx 127ed8: 5e pop %esi 127ed9: c9 leave 127eda: c3 ret
127edb: 90 nop <== NOT EXECUTED
ticks = time->tv_sec * TOD_TICKS_PER_SECOND; ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); if (ticks)
127edc: b8 01 00 00 00 mov $0x1,%eax
return ticks; return 1; }
127ee1: 5b pop %ebx 127ee2: 5e pop %esi 127ee3: c9 leave 127ee4: c3 ret
127ee5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
const struct timespec *time ) { uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) )
127ee8: 31 c0 xor %eax,%eax
if (ticks) return ticks; return 1; }
127eea: 5b pop %ebx 127eeb: 5e pop %esi 127eec: c9 leave 127eed: c3 ret
0010e200 <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) {
10e200: 55 push %ebp 10e201: 89 e5 mov %esp,%ebp 10e203: 57 push %edi 10e204: 56 push %esi 10e205: 53 push %ebx 10e206: 83 ec 1c sub $0x1c,%esp 10e209: 8b 75 08 mov 0x8(%ebp),%esi 10e20c: 8b 7d 10 mov 0x10(%ebp),%edi 10e20f: 8a 45 0c mov 0xc(%ebp),%al
Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ;
10e212: 8b 1d b4 55 12 00 mov 0x1255b4,%ebx 10e218: 81 fb ac 55 12 00 cmp $0x1255ac,%ebx
10e21e: 74 25 je 10e245 <_User_extensions_Fatal+0x45><== ALWAYS 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 );
10e220: 0f b6 c0 movzbl %al,%eax 10e223: 89 45 e4 mov %eax,-0x1c(%ebp) 10e226: 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 )
10e228: 8b 43 30 mov 0x30(%ebx),%eax 10e22b: 85 c0 test %eax,%eax
10e22d: 74 0b je 10e23a <_User_extensions_Fatal+0x3a> (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
10e22f: 52 push %edx 10e230: 57 push %edi 10e231: ff 75 e4 pushl -0x1c(%ebp) 10e234: 56 push %esi 10e235: ff d0 call *%eax 10e237: 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 ) {
10e23a: 8b 5b 04 mov 0x4(%ebx),%ebx
) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ;
10e23d: 81 fb ac 55 12 00 cmp $0x1255ac,%ebx
10e243: 75 e3 jne 10e228 <_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 ); } }
10e245: 8d 65 f4 lea -0xc(%ebp),%esp 10e248: 5b pop %ebx 10e249: 5e pop %esi 10e24a: 5f pop %edi 10e24b: c9 leave 10e24c: c3 ret
0010e0c4 <_User_extensions_Handler_initialization>: #include <rtems/score/userext.h> #include <rtems/score/wkspace.h> #include <string.h> void _User_extensions_Handler_initialization(void) {
10e0c4: 55 push %ebp 10e0c5: 89 e5 mov %esp,%ebp 10e0c7: 57 push %edi 10e0c8: 56 push %esi 10e0c9: 53 push %ebx 10e0ca: 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;
10e0cd: a1 58 12 12 00 mov 0x121258,%eax 10e0d2: 89 45 dc mov %eax,-0x24(%ebp)
initial_extensions = Configuration.User_extension_table;
10e0d5: 8b 35 5c 12 12 00 mov 0x12125c,%esi
*/ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain);
10e0db: c7 05 ac 55 12 00 b0 movl $0x1255b0,0x1255ac
10e0e2: 55 12 00 the_chain->permanent_null = NULL;
10e0e5: c7 05 b0 55 12 00 00 movl $0x0,0x1255b0
10e0ec: 00 00 00 the_chain->last = _Chain_Head(the_chain);
10e0ef: c7 05 b4 55 12 00 ac movl $0x1255ac,0x1255b4
10e0f6: 55 12 00 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain);
10e0f9: c7 05 5c 53 12 00 60 movl $0x125360,0x12535c
10e100: 53 12 00 the_chain->permanent_null = NULL;
10e103: c7 05 60 53 12 00 00 movl $0x0,0x125360
10e10a: 00 00 00 the_chain->last = _Chain_Head(the_chain);
10e10d: c7 05 64 53 12 00 5c movl $0x12535c,0x125364
10e114: 53 12 00 _Chain_Initialize_empty( &_User_extensions_List ); _Chain_Initialize_empty( &_User_extensions_Switches_list ); if ( initial_extensions ) {
10e117: 85 f6 test %esi,%esi
10e119: 74 64 je 10e17f <_User_extensions_Handler_initialization+0xbb> extension = (User_extensions_Control *)
10e11b: 89 c2 mov %eax,%edx 10e11d: 8d 04 40 lea (%eax,%eax,2),%eax 10e120: 8d 0c 82 lea (%edx,%eax,4),%ecx 10e123: c1 e1 02 shl $0x2,%ecx 10e126: 83 ec 0c sub $0xc,%esp 10e129: 51 push %ecx 10e12a: 89 4d d8 mov %ecx,-0x28(%ebp) 10e12d: e8 36 04 00 00 call 10e568 <_Workspace_Allocate_or_fatal_error> 10e132: 89 c3 mov %eax,%ebx
_Workspace_Allocate_or_fatal_error( number_of_extensions * sizeof( User_extensions_Control ) ); memset (
10e134: 31 c0 xor %eax,%eax 10e136: 8b 4d d8 mov -0x28(%ebp),%ecx 10e139: 89 df mov %ebx,%edi 10e13b: f3 aa rep stos %al,%es:(%edi)
extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) {
10e13d: 83 c4 10 add $0x10,%esp 10e140: 8b 45 dc mov -0x24(%ebp),%eax 10e143: 85 c0 test %eax,%eax
10e145: 74 38 je 10e17f <_User_extensions_Handler_initialization+0xbb><== ALWAYS TAKEN
10e147: 89 75 e4 mov %esi,-0x1c(%ebp) 10e14a: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) 10e151: 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;
10e154: 8d 7b 14 lea 0x14(%ebx),%edi 10e157: 8b 75 e4 mov -0x1c(%ebp),%esi 10e15a: b9 08 00 00 00 mov $0x8,%ecx 10e15f: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
_User_extensions_Add_set( extension );
10e161: 83 ec 0c sub $0xc,%esp 10e164: 53 push %ebx 10e165: e8 5e 29 00 00 call 110ac8 <_User_extensions_Add_set>
_User_extensions_Add_set_with_table (extension, &initial_extensions[i]); extension++;
10e16a: 83 c3 34 add $0x34,%ebx
extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) {
10e16d: ff 45 e0 incl -0x20(%ebp) 10e170: 83 45 e4 20 addl $0x20,-0x1c(%ebp) 10e174: 83 c4 10 add $0x10,%esp 10e177: 8b 45 e0 mov -0x20(%ebp),%eax 10e17a: 39 45 dc cmp %eax,-0x24(%ebp)
10e17d: 77 d5 ja 10e154 <_User_extensions_Handler_initialization+0x90> _User_extensions_Add_set_with_table (extension, &initial_extensions[i]); extension++; } } }
10e17f: 8d 65 f4 lea -0xc(%ebp),%esp 10e182: 5b pop %ebx 10e183: 5e pop %esi 10e184: 5f pop %edi 10e185: c9 leave 10e186: c3 ret
00112f28 <_User_extensions_Remove_set>: #include <rtems/score/userext.h> void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) {
112f28: 55 push %ebp 112f29: 89 e5 mov %esp,%ebp 112f2b: 53 push %ebx 112f2c: 83 ec 10 sub $0x10,%esp 112f2f: 8b 5d 08 mov 0x8(%ebp),%ebx
_Chain_Extract( &the_extension->Node );
112f32: 53 push %ebx 112f33: e8 ec 47 00 00 call 117724 <_Chain_Extract>
/* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL )
112f38: 83 c4 10 add $0x10,%esp 112f3b: 8b 43 24 mov 0x24(%ebx),%eax 112f3e: 85 c0 test %eax,%eax
112f40: 74 12 je 112f54 <_User_extensions_Remove_set+0x2c> _Chain_Extract( &the_extension->Switch.Node );
112f42: 83 c3 08 add $0x8,%ebx 112f45: 89 5d 08 mov %ebx,0x8(%ebp)
}
112f48: 8b 5d fc mov -0x4(%ebp),%ebx 112f4b: c9 leave
/* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) _Chain_Extract( &the_extension->Switch.Node );
112f4c: e9 d3 47 00 00 jmp 117724 <_Chain_Extract>
112f51: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
}
112f54: 8b 5d fc mov -0x4(%ebp),%ebx 112f57: c9 leave 112f58: c3 ret
0010e188 <_User_extensions_Thread_begin>: #include <rtems/score/userext.h> void _User_extensions_Thread_begin ( Thread_Control *executing ) {
10e188: 55 push %ebp 10e189: 89 e5 mov %esp,%ebp 10e18b: 56 push %esi 10e18c: 53 push %ebx 10e18d: 8b 75 08 mov 0x8(%ebp),%esi
Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ;
10e190: 8b 1d ac 55 12 00 mov 0x1255ac,%ebx 10e196: 81 fb b0 55 12 00 cmp $0x1255b0,%ebx
10e19c: 74 1c je 10e1ba <_User_extensions_Thread_begin+0x32><== ALWAYS TAKEN
10e19e: 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 )
10e1a0: 8b 43 28 mov 0x28(%ebx),%eax 10e1a3: 85 c0 test %eax,%eax
10e1a5: 74 09 je 10e1b0 <_User_extensions_Thread_begin+0x28> (*the_extension->Callouts.thread_begin)( executing );
10e1a7: 83 ec 0c sub $0xc,%esp 10e1aa: 56 push %esi 10e1ab: ff d0 call *%eax 10e1ad: 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 ) {
10e1b0: 8b 1b mov (%ebx),%ebx
) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ;
10e1b2: 81 fb b0 55 12 00 cmp $0x1255b0,%ebx
10e1b8: 75 e6 jne 10e1a0 <_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 ); } }
10e1ba: 8d 65 f8 lea -0x8(%ebp),%esp 10e1bd: 5b pop %ebx 10e1be: 5e pop %esi 10e1bf: c9 leave 10e1c0: c3 ret
0010e250 <_User_extensions_Thread_create>: #include <rtems/score/userext.h> bool _User_extensions_Thread_create ( Thread_Control *the_thread ) {
10e250: 55 push %ebp 10e251: 89 e5 mov %esp,%ebp 10e253: 56 push %esi 10e254: 53 push %ebx 10e255: 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 ;
10e258: 8b 1d ac 55 12 00 mov 0x1255ac,%ebx 10e25e: 81 fb b0 55 12 00 cmp $0x1255b0,%ebx
10e264: 74 26 je 10e28c <_User_extensions_Thread_create+0x3c><== ALWAYS TAKEN
10e266: 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 ) {
10e268: 8b 43 14 mov 0x14(%ebx),%eax 10e26b: 85 c0 test %eax,%eax
10e26d: 74 13 je 10e282 <_User_extensions_Thread_create+0x32> status = (*the_extension->Callouts.thread_create)(
10e26f: 83 ec 08 sub $0x8,%esp 10e272: 56 push %esi 10e273: ff 35 18 54 12 00 pushl 0x125418 10e279: ff d0 call *%eax
_Thread_Executing, the_thread ); if ( !status )
10e27b: 83 c4 10 add $0x10,%esp 10e27e: 84 c0 test %al,%al
10e280: 74 0c je 10e28e <_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 ) {
10e282: 8b 1b mov (%ebx),%ebx
{ Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ;
10e284: 81 fb b0 55 12 00 cmp $0x1255b0,%ebx
10e28a: 75 dc jne 10e268 <_User_extensions_Thread_create+0x18>
10e28c: b0 01 mov $0x1,%al
return false; } } return true; }
10e28e: 8d 65 f8 lea -0x8(%ebp),%esp 10e291: 5b pop %ebx 10e292: 5e pop %esi 10e293: c9 leave 10e294: c3 ret
0010e298 <_User_extensions_Thread_delete>: #include <rtems/score/userext.h> void _User_extensions_Thread_delete ( Thread_Control *the_thread ) {
10e298: 55 push %ebp 10e299: 89 e5 mov %esp,%ebp 10e29b: 56 push %esi 10e29c: 53 push %ebx 10e29d: 8b 75 08 mov 0x8(%ebp),%esi
Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ;
10e2a0: 8b 1d b4 55 12 00 mov 0x1255b4,%ebx 10e2a6: 81 fb ac 55 12 00 cmp $0x1255ac,%ebx
10e2ac: 74 23 je 10e2d1 <_User_extensions_Thread_delete+0x39><== ALWAYS TAKEN
10e2ae: 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 )
10e2b0: 8b 43 20 mov 0x20(%ebx),%eax 10e2b3: 85 c0 test %eax,%eax
10e2b5: 74 0f je 10e2c6 <_User_extensions_Thread_delete+0x2e> (*the_extension->Callouts.thread_delete)(
10e2b7: 83 ec 08 sub $0x8,%esp 10e2ba: 56 push %esi 10e2bb: ff 35 18 54 12 00 pushl 0x125418 10e2c1: ff d0 call *%eax 10e2c3: 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 ) {
10e2c6: 8b 5b 04 mov 0x4(%ebx),%ebx
) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ;
10e2c9: 81 fb ac 55 12 00 cmp $0x1255ac,%ebx
10e2cf: 75 df jne 10e2b0 <_User_extensions_Thread_delete+0x18> (*the_extension->Callouts.thread_delete)( _Thread_Executing, the_thread ); } }
10e2d1: 8d 65 f8 lea -0x8(%ebp),%esp 10e2d4: 5b pop %ebx 10e2d5: 5e pop %esi 10e2d6: c9 leave 10e2d7: c3 ret
0010e1c4 <_User_extensions_Thread_exitted>: void _User_extensions_Thread_exitted ( Thread_Control *executing ) {
10e1c4: 55 push %ebp 10e1c5: 89 e5 mov %esp,%ebp 10e1c7: 56 push %esi 10e1c8: 53 push %ebx 10e1c9: 8b 75 08 mov 0x8(%ebp),%esi
Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ;
10e1cc: 8b 1d b4 55 12 00 mov 0x1255b4,%ebx 10e1d2: 81 fb ac 55 12 00 cmp $0x1255ac,%ebx
10e1d8: 74 1d je 10e1f7 <_User_extensions_Thread_exitted+0x33><== ALWAYS TAKEN
10e1da: 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 )
10e1dc: 8b 43 2c mov 0x2c(%ebx),%eax 10e1df: 85 c0 test %eax,%eax
10e1e1: 74 09 je 10e1ec <_User_extensions_Thread_exitted+0x28> (*the_extension->Callouts.thread_exitted)( executing );
10e1e3: 83 ec 0c sub $0xc,%esp 10e1e6: 56 push %esi 10e1e7: ff d0 call *%eax
10e1e9: 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 ) {
10e1ec: 8b 5b 04 mov 0x4(%ebx),%ebx
) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ;
10e1ef: 81 fb ac 55 12 00 cmp $0x1255ac,%ebx
10e1f5: 75 e5 jne 10e1dc <_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 ); } }
10e1f7: 8d 65 f8 lea -0x8(%ebp),%esp 10e1fa: 5b pop %ebx 10e1fb: 5e pop %esi 10e1fc: c9 leave 10e1fd: c3 ret
0010ee8c <_User_extensions_Thread_restart>: #include <rtems/score/userext.h> void _User_extensions_Thread_restart ( Thread_Control *the_thread ) {
10ee8c: 55 push %ebp 10ee8d: 89 e5 mov %esp,%ebp 10ee8f: 56 push %esi 10ee90: 53 push %ebx 10ee91: 8b 75 08 mov 0x8(%ebp),%esi
Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ;
10ee94: 8b 1d 0c 76 12 00 mov 0x12760c,%ebx 10ee9a: 81 fb 10 76 12 00 cmp $0x127610,%ebx
10eea0: 74 22 je 10eec4 <_User_extensions_Thread_restart+0x38><== ALWAYS TAKEN
10eea2: 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 )
10eea4: 8b 43 1c mov 0x1c(%ebx),%eax 10eea7: 85 c0 test %eax,%eax
10eea9: 74 0f je 10eeba <_User_extensions_Thread_restart+0x2e> (*the_extension->Callouts.thread_restart)(
10eeab: 83 ec 08 sub $0x8,%esp 10eeae: 56 push %esi 10eeaf: ff 35 78 74 12 00 pushl 0x127478 10eeb5: ff d0 call *%eax 10eeb7: 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 ) {
10eeba: 8b 1b mov (%ebx),%ebx
) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ;
10eebc: 81 fb 10 76 12 00 cmp $0x127610,%ebx
10eec2: 75 e0 jne 10eea4 <_User_extensions_Thread_restart+0x18> (*the_extension->Callouts.thread_restart)( _Thread_Executing, the_thread ); } }
10eec4: 8d 65 f8 lea -0x8(%ebp),%esp 10eec7: 5b pop %ebx 10eec8: 5e pop %esi 10eec9: c9 leave 10eeca: c3 ret
0010e2d8 <_User_extensions_Thread_start>: #include <rtems/score/userext.h> void _User_extensions_Thread_start ( Thread_Control *the_thread ) {
10e2d8: 55 push %ebp 10e2d9: 89 e5 mov %esp,%ebp 10e2db: 56 push %esi 10e2dc: 53 push %ebx 10e2dd: 8b 75 08 mov 0x8(%ebp),%esi
Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ;
10e2e0: 8b 1d ac 55 12 00 mov 0x1255ac,%ebx 10e2e6: 81 fb b0 55 12 00 cmp $0x1255b0,%ebx
10e2ec: 74 22 je 10e310 <_User_extensions_Thread_start+0x38><== ALWAYS TAKEN
10e2ee: 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 )
10e2f0: 8b 43 18 mov 0x18(%ebx),%eax 10e2f3: 85 c0 test %eax,%eax
10e2f5: 74 0f je 10e306 <_User_extensions_Thread_start+0x2e> (*the_extension->Callouts.thread_start)(
10e2f7: 83 ec 08 sub $0x8,%esp 10e2fa: 56 push %esi 10e2fb: ff 35 18 54 12 00 pushl 0x125418 10e301: ff d0 call *%eax 10e303: 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 ) {
10e306: 8b 1b mov (%ebx),%ebx
) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ;
10e308: 81 fb b0 55 12 00 cmp $0x1255b0,%ebx
10e30e: 75 e0 jne 10e2f0 <_User_extensions_Thread_start+0x18> (*the_extension->Callouts.thread_start)( _Thread_Executing, the_thread ); } }
10e310: 8d 65 f8 lea -0x8(%ebp),%esp 10e313: 5b pop %ebx 10e314: 5e pop %esi 10e315: c9 leave 10e316: c3 ret
0010e318 <_User_extensions_Thread_switch>: void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) {
10e318: 55 push %ebp 10e319: 89 e5 mov %esp,%ebp 10e31b: 57 push %edi 10e31c: 56 push %esi 10e31d: 53 push %ebx 10e31e: 83 ec 0c sub $0xc,%esp 10e321: 8b 7d 08 mov 0x8(%ebp),%edi 10e324: 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 ;
10e327: 8b 1d 5c 53 12 00 mov 0x12535c,%ebx 10e32d: 81 fb 60 53 12 00 cmp $0x125360,%ebx
10e333: 74 18 je 10e34d <_User_extensions_Thread_switch+0x35><== ALWAYS TAKEN
10e335: 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 );
10e338: 83 ec 08 sub $0x8,%esp 10e33b: 56 push %esi 10e33c: 57 push %edi 10e33d: 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 ) {
10e340: 8b 1b mov (%ebx),%ebx
) { Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ;
10e342: 83 c4 10 add $0x10,%esp 10e345: 81 fb 60 53 12 00 cmp $0x125360,%ebx
10e34b: 75 eb jne 10e338 <_User_extensions_Thread_switch+0x20> the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); } }
10e34d: 8d 65 f4 lea -0xc(%ebp),%esp 10e350: 5b pop %ebx 10e351: 5e pop %esi 10e352: 5f pop %edi 10e353: c9 leave 10e354: c3 ret
0010fd70 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
10fd70: 55 push %ebp 10fd71: 89 e5 mov %esp,%ebp 10fd73: 57 push %edi 10fd74: 56 push %esi 10fd75: 53 push %ebx 10fd76: 83 ec 1c sub $0x1c,%esp 10fd79: 8b 75 08 mov 0x8(%ebp),%esi 10fd7c: 8b 4d 0c mov 0xc(%ebp),%ecx 10fd7f: 8b 5d 10 mov 0x10(%ebp),%ebx
ISR_Level level; _ISR_Disable( level );
10fd82: 9c pushf 10fd83: fa cli 10fd84: 58 pop %eax
*/ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain));
10fd85: 8b 16 mov (%esi),%edx
*/ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null;
10fd87: 8d 7e 04 lea 0x4(%esi),%edi 10fd8a: 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 ) ) {
10fd8d: 39 fa cmp %edi,%edx
10fd8f: 74 3d je 10fdce <_Watchdog_Adjust+0x5e> switch ( direction ) {
10fd91: 85 c9 test %ecx,%ecx
10fd93: 75 43 jne 10fdd8 <_Watchdog_Adjust+0x68> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) {
10fd95: 85 db test %ebx,%ebx
10fd97: 74 35 je 10fdce <_Watchdog_Adjust+0x5e> <== ALWAYS TAKEN
if ( units < _Watchdog_First( header )->delta_interval ) {
10fd99: 8b 7a 10 mov 0x10(%edx),%edi 10fd9c: 39 fb cmp %edi,%ebx
10fd9e: 73 0f jae 10fdaf <_Watchdog_Adjust+0x3f> <== NEVER TAKEN
10fda0: eb 3e jmp 10fde0 <_Watchdog_Adjust+0x70> <== NOT EXECUTED 10fda2: 66 90 xchg %ax,%ax <== NOT EXECUTED
switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) {
10fda4: 29 fb sub %edi,%ebx
10fda6: 74 26 je 10fdce <_Watchdog_Adjust+0x5e> <== ALWAYS TAKEN
if ( units < _Watchdog_First( header )->delta_interval ) {
10fda8: 8b 7a 10 mov 0x10(%edx),%edi 10fdab: 39 df cmp %ebx,%edi
10fdad: 77 31 ja 10fde0 <_Watchdog_Adjust+0x70> _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1;
10fdaf: c7 42 10 01 00 00 00 movl $0x1,0x10(%edx)
_ISR_Enable( level );
10fdb6: 50 push %eax 10fdb7: 9d popf
_Watchdog_Tickle( header );
10fdb8: 83 ec 0c sub $0xc,%esp 10fdbb: 56 push %esi 10fdbc: e8 cb 01 00 00 call 10ff8c <_Watchdog_Tickle>
_ISR_Disable( level );
10fdc1: 9c pushf 10fdc2: fa cli 10fdc3: 58 pop %eax
*/ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain));
10fdc4: 8b 16 mov (%esi),%edx
if ( _Chain_Is_empty( header ) )
10fdc6: 83 c4 10 add $0x10,%esp 10fdc9: 39 55 e4 cmp %edx,-0x1c(%ebp)
10fdcc: 75 d6 jne 10fda4 <_Watchdog_Adjust+0x34> } break; } } _ISR_Enable( level );
10fdce: 50 push %eax 10fdcf: 9d popf
}
10fdd0: 8d 65 f4 lea -0xc(%ebp),%esp 10fdd3: 5b pop %ebx 10fdd4: 5e pop %esi 10fdd5: 5f pop %edi 10fdd6: c9 leave 10fdd7: c3 ret
* unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) {
10fdd8: 49 dec %ecx
10fdd9: 75 f3 jne 10fdce <_Watchdog_Adjust+0x5e> <== ALWAYS TAKEN
case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units;
10fddb: 01 5a 10 add %ebx,0x10(%edx)
break;
10fdde: eb ee jmp 10fdce <_Watchdog_Adjust+0x5e>
case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units;
10fde0: 29 df sub %ebx,%edi 10fde2: 89 7a 10 mov %edi,0x10(%edx)
break;
10fde5: eb e7 jmp 10fdce <_Watchdog_Adjust+0x5e>
0011ccbc <_Watchdog_Adjust_to_chain>: Chain_Control *header, Watchdog_Interval units_arg, Chain_Control *to_fire ) {
11ccbc: 55 push %ebp 11ccbd: 89 e5 mov %esp,%ebp 11ccbf: 57 push %edi 11ccc0: 56 push %esi 11ccc1: 53 push %ebx 11ccc2: 83 ec 0c sub $0xc,%esp 11ccc5: 8b 75 08 mov 0x8(%ebp),%esi 11ccc8: 8b 55 0c mov 0xc(%ebp),%edx 11cccb: 8b 5d 10 mov 0x10(%ebp),%ebx
Watchdog_Interval units = units_arg; ISR_Level level; Watchdog_Control *first; if ( units <= 0 ) {
11ccce: 85 d2 test %edx,%edx
11ccd0: 74 63 je 11cd35 <_Watchdog_Adjust_to_chain+0x79> return; } _ISR_Disable( level );
11ccd2: 9c pushf 11ccd3: fa cli 11ccd4: 8f 45 ec popl -0x14(%ebp) 11ccd7: 8b 06 mov (%esi),%eax
*/ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null;
11ccd9: 8d 4e 04 lea 0x4(%esi),%ecx 11ccdc: 89 4d f0 mov %ecx,-0x10(%ebp) 11ccdf: 8d 7b 04 lea 0x4(%ebx),%edi 11cce2: 89 55 e8 mov %edx,-0x18(%ebp) 11cce5: 8d 76 00 lea 0x0(%esi),%esi
while ( 1 ) { if ( units <= 0 ) { break; } if ( _Chain_Is_empty( header ) ) {
11cce8: 39 45 f0 cmp %eax,-0x10(%ebp)
11cceb: 74 44 je 11cd31 <_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 ) {
11cced: 8b 50 10 mov 0x10(%eax),%edx 11ccf0: 3b 55 e8 cmp -0x18(%ebp),%edx
11ccf3: 77 57 ja 11cd4c <_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;
11ccf5: 29 55 e8 sub %edx,-0x18(%ebp)
first->delta_interval = 0;
11ccf8: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) 11ccff: 90 nop
) { Chain_Node *next; Chain_Node *previous; next = the_node->next;
11cd00: 8b 08 mov (%eax),%ecx
previous = the_node->previous;
11cd02: 8b 50 04 mov 0x4(%eax),%edx
next->previous = previous;
11cd05: 89 51 04 mov %edx,0x4(%ecx)
previous->next = next;
11cd08: 89 0a mov %ecx,(%edx)
Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain);
11cd0a: 89 38 mov %edi,(%eax)
old_last_node = the_chain->last;
11cd0c: 8b 53 08 mov 0x8(%ebx),%edx
the_chain->last = the_node;
11cd0f: 89 43 08 mov %eax,0x8(%ebx)
old_last_node->next = the_node;
11cd12: 89 02 mov %eax,(%edx)
the_node->previous = old_last_node;
11cd14: 89 50 04 mov %edx,0x4(%eax)
while ( 1 ) { _Chain_Extract_unprotected( &first->Node ); _Chain_Append_unprotected( to_fire, &first->Node ); _ISR_Flash( level );
11cd17: ff 75 ec pushl -0x14(%ebp) 11cd1a: 9d popf 11cd1b: fa cli
*/ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain));
11cd1c: 8b 06 mov (%esi),%eax
if ( _Chain_Is_empty( header ) )
11cd1e: 39 45 f0 cmp %eax,-0x10(%ebp)
11cd21: 74 1d je 11cd40 <_Watchdog_Adjust_to_chain+0x84> break; first = _Watchdog_First( header ); if ( first->delta_interval != 0 )
11cd23: 8b 50 10 mov 0x10(%eax),%edx 11cd26: 85 d2 test %edx,%edx
11cd28: 74 d6 je 11cd00 <_Watchdog_Adjust_to_chain+0x44> } _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) {
11cd2a: 8b 4d e8 mov -0x18(%ebp),%ecx 11cd2d: 85 c9 test %ecx,%ecx
11cd2f: 75 b7 jne 11cce8 <_Watchdog_Adjust_to_chain+0x2c> if ( first->delta_interval != 0 ) break; } } _ISR_Enable( level );
11cd31: ff 75 ec pushl -0x14(%ebp) 11cd34: 9d popf
}
11cd35: 83 c4 0c add $0xc,%esp 11cd38: 5b pop %ebx 11cd39: 5e pop %esi 11cd3a: 5f pop %edi 11cd3b: c9 leave 11cd3c: c3 ret
11cd3d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null;
11cd40: 8b 45 f0 mov -0x10(%ebp),%eax
} _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) {
11cd43: 8b 4d e8 mov -0x18(%ebp),%ecx 11cd46: 85 c9 test %ecx,%ecx
11cd48: 75 9e jne 11cce8 <_Watchdog_Adjust_to_chain+0x2c>
11cd4a: eb e5 jmp 11cd31 <_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;
11cd4c: 2b 55 e8 sub -0x18(%ebp),%edx 11cd4f: 89 50 10 mov %edx,0x10(%eax)
break;
11cd52: eb dd jmp 11cd31 <_Watchdog_Adjust_to_chain+0x75>
0010e358 <_Watchdog_Insert>: void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) {
10e358: 55 push %ebp 10e359: 89 e5 mov %esp,%ebp 10e35b: 57 push %edi 10e35c: 56 push %esi 10e35d: 53 push %ebx 10e35e: 83 ec 04 sub $0x4,%esp 10e361: 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;
10e364: 8b 3d f4 53 12 00 mov 0x1253f4,%edi
_ISR_Disable( level );
10e36a: 9c pushf 10e36b: fa cli 10e36c: 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 ) {
10e36f: 8b 43 08 mov 0x8(%ebx),%eax 10e372: 85 c0 test %eax,%eax
10e374: 0f 85 9e 00 00 00 jne 10e418 <_Watchdog_Insert+0xc0> _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED;
10e37a: c7 43 08 01 00 00 00 movl $0x1,0x8(%ebx)
_Watchdog_Sync_count++;
10e381: a1 c0 54 12 00 mov 0x1254c0,%eax 10e386: 40 inc %eax 10e387: a3 c0 54 12 00 mov %eax,0x1254c0
restart: delta_interval = the_watchdog->initial;
10e38c: 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 ;
10e38f: 8b 4d 08 mov 0x8(%ebp),%ecx 10e392: 8b 11 mov (%ecx),%edx
; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) )
10e394: 85 c0 test %eax,%eax
10e396: 74 5d je 10e3f5 <_Watchdog_Insert+0x9d>
10e398: 8b 32 mov (%edx),%esi 10e39a: 85 f6 test %esi,%esi
10e39c: 74 57 je 10e3f5 <_Watchdog_Insert+0x9d> break; if ( delta_interval < after->delta_interval ) {
10e39e: 8b 4a 10 mov 0x10(%edx),%ecx 10e3a1: 39 c8 cmp %ecx,%eax
10e3a3: 73 22 jae 10e3c7 <_Watchdog_Insert+0x6f>
10e3a5: eb 49 jmp 10e3f0 <_Watchdog_Insert+0x98>
10e3a7: 90 nop <== NOT EXECUTED
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
10e3a8: 8b 35 14 54 12 00 mov 0x125414,%esi 10e3ae: 39 f7 cmp %esi,%edi
10e3b0: 72 72 jb 10e424 <_Watchdog_Insert+0xcc> if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval;
10e3b2: 29 c8 sub %ecx,%eax
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next );
10e3b4: 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 ) )
10e3b6: 85 c0 test %eax,%eax
10e3b8: 74 3b je 10e3f5 <_Watchdog_Insert+0x9d>
10e3ba: 8b 0a mov (%edx),%ecx 10e3bc: 85 c9 test %ecx,%ecx
10e3be: 74 35 je 10e3f5 <_Watchdog_Insert+0x9d> break; if ( delta_interval < after->delta_interval ) {
10e3c0: 8b 4a 10 mov 0x10(%edx),%ecx 10e3c3: 39 c1 cmp %eax,%ecx
10e3c5: 77 29 ja 10e3f0 <_Watchdog_Insert+0x98> * 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 );
10e3c7: ff 75 f0 pushl -0x10(%ebp) 10e3ca: 9d popf 10e3cb: fa cli
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
10e3cc: 83 7b 08 01 cmpl $0x1,0x8(%ebx)
10e3d0: 74 d6 je 10e3a8 <_Watchdog_Insert+0x50> _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;
10e3d2: 89 3d 14 54 12 00 mov %edi,0x125414
_Watchdog_Sync_count--;
10e3d8: a1 c0 54 12 00 mov 0x1254c0,%eax 10e3dd: 48 dec %eax 10e3de: a3 c0 54 12 00 mov %eax,0x1254c0
_ISR_Enable( level );
10e3e3: ff 75 f0 pushl -0x10(%ebp) 10e3e6: 9d popf
}
10e3e7: 58 pop %eax 10e3e8: 5b pop %ebx 10e3e9: 5e pop %esi 10e3ea: 5f pop %edi 10e3eb: c9 leave 10e3ec: c3 ret
10e3ed: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if ( delta_interval == 0 || !_Watchdog_Next( after ) ) break; if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval;
10e3f0: 29 c1 sub %eax,%ecx 10e3f2: 89 4a 10 mov %ecx,0x10(%edx)
RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE;
10e3f5: c7 43 08 02 00 00 00 movl $0x2,0x8(%ebx)
} } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval;
10e3fc: 89 43 10 mov %eax,0x10(%ebx)
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
10e3ff: 8b 42 04 mov 0x4(%edx),%eax
Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node;
10e402: 89 43 04 mov %eax,0x4(%ebx)
before_node = after_node->next;
10e405: 8b 10 mov (%eax),%edx
after_node->next = the_node;
10e407: 89 18 mov %ebx,(%eax)
the_node->next = before_node;
10e409: 89 13 mov %edx,(%ebx)
before_node->previous = the_node;
10e40b: 89 5a 04 mov %ebx,0x4(%edx)
the_watchdog->start_time = _Watchdog_Ticks_since_boot;
10e40e: a1 c4 54 12 00 mov 0x1254c4,%eax 10e413: 89 43 14 mov %eax,0x14(%ebx) 10e416: eb ba jmp 10e3d2 <_Watchdog_Insert+0x7a>
* 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 ) { _ISR_Enable( level );
10e418: ff 75 f0 pushl -0x10(%ebp) 10e41b: 9d popf
exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; _Watchdog_Sync_count--; _ISR_Enable( level ); }
10e41c: 58 pop %eax 10e41d: 5b pop %ebx 10e41e: 5e pop %esi 10e41f: 5f pop %edi 10e420: c9 leave 10e421: c3 ret
10e422: 66 90 xchg %ax,%ax <== NOT EXECUTED
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;
10e424: 89 3d 14 54 12 00 mov %edi,0x125414
goto restart;
10e42a: e9 5d ff ff ff jmp 10e38c <_Watchdog_Insert+0x34>
0010e490 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) {
10e490: 55 push %ebp 10e491: 89 e5 mov %esp,%ebp 10e493: 56 push %esi 10e494: 53 push %ebx 10e495: 8b 55 08 mov 0x8(%ebp),%edx
ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level );
10e498: 9c pushf 10e499: fa cli 10e49a: 59 pop %ecx
previous_state = the_watchdog->state;
10e49b: 8b 42 08 mov 0x8(%edx),%eax
switch ( previous_state ) {
10e49e: 83 f8 01 cmp $0x1,%eax
10e4a1: 74 4d je 10e4f0 <_Watchdog_Remove+0x60> 10e4a3: 73 0f jae 10e4b4 <_Watchdog_Remove+0x24> _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
10e4a5: 8b 1d c4 54 12 00 mov 0x1254c4,%ebx 10e4ab: 89 5a 18 mov %ebx,0x18(%edx)
_ISR_Enable( level );
10e4ae: 51 push %ecx 10e4af: 9d popf
return( previous_state ); }
10e4b0: 5b pop %ebx 10e4b1: 5e pop %esi 10e4b2: c9 leave 10e4b3: c3 ret
Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; switch ( previous_state ) {
10e4b4: 83 f8 03 cmp $0x3,%eax
10e4b7: 77 ec ja 10e4a5 <_Watchdog_Remove+0x15> <== ALWAYS TAKEN
break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE;
10e4b9: 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 );
10e4c0: 8b 1a mov (%edx),%ebx
next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) )
10e4c2: 8b 33 mov (%ebx),%esi 10e4c4: 85 f6 test %esi,%esi
10e4c6: 74 06 je 10e4ce <_Watchdog_Remove+0x3e> next_watchdog->delta_interval += the_watchdog->delta_interval;
10e4c8: 8b 72 10 mov 0x10(%edx),%esi 10e4cb: 01 73 10 add %esi,0x10(%ebx)
if ( _Watchdog_Sync_count )
10e4ce: 8b 35 c0 54 12 00 mov 0x1254c0,%esi 10e4d4: 85 f6 test %esi,%esi
10e4d6: 74 0c je 10e4e4 <_Watchdog_Remove+0x54> _Watchdog_Sync_level = _ISR_Nest_level;
10e4d8: 8b 35 f4 53 12 00 mov 0x1253f4,%esi 10e4de: 89 35 14 54 12 00 mov %esi,0x125414
{ Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous;
10e4e4: 8b 72 04 mov 0x4(%edx),%esi
next->previous = previous;
10e4e7: 89 73 04 mov %esi,0x4(%ebx)
previous->next = next;
10e4ea: 89 1e mov %ebx,(%esi) 10e4ec: eb b7 jmp 10e4a5 <_Watchdog_Remove+0x15>
10e4ee: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * 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;
10e4f0: c7 42 08 00 00 00 00 movl $0x0,0x8(%edx)
break;
10e4f7: eb ac jmp 10e4a5 <_Watchdog_Remove+0x15>
0010f974 <_Watchdog_Report>: void _Watchdog_Report( const char *name, Watchdog_Control *watch ) {
10f974: 55 push %ebp 10f975: 89 e5 mov %esp,%ebp 10f977: 57 push %edi 10f978: 56 push %esi 10f979: 53 push %ebx 10f97a: 83 ec 2c sub $0x2c,%esp 10f97d: 8b 55 08 mov 0x8(%ebp),%edx 10f980: 8b 45 0c mov 0xc(%ebp),%eax
printk(
10f983: 8b 78 24 mov 0x24(%eax),%edi 10f986: 8b 70 20 mov 0x20(%eax),%esi 10f989: 8b 58 1c mov 0x1c(%eax),%ebx 10f98c: 8b 48 0c mov 0xc(%eax),%ecx 10f98f: 89 4d d4 mov %ecx,-0x2c(%ebp) 10f992: 8b 48 10 mov 0x10(%eax),%ecx 10f995: 89 4d e0 mov %ecx,-0x20(%ebp) 10f998: 85 d2 test %edx,%edx
10f99a: 74 2c je 10f9c8 <_Watchdog_Report+0x54>
10f99c: b9 63 17 12 00 mov $0x121763,%ecx 10f9a1: 83 ec 0c sub $0xc,%esp 10f9a4: 57 push %edi 10f9a5: 56 push %esi 10f9a6: 53 push %ebx 10f9a7: 50 push %eax 10f9a8: ff 75 d4 pushl -0x2c(%ebp) 10f9ab: ff 75 e0 pushl -0x20(%ebp) 10f9ae: 51 push %ecx 10f9af: 52 push %edx 10f9b0: 68 e6 20 12 00 push $0x1220e6 10f9b5: e8 ca 9f ff ff call 109984 <printk> 10f9ba: 83 c4 30 add $0x30,%esp
watch, watch->routine, watch->id, watch->user_data ); }
10f9bd: 8d 65 f4 lea -0xc(%ebp),%esp 10f9c0: 5b pop %ebx 10f9c1: 5e pop %esi 10f9c2: 5f pop %edi 10f9c3: c9 leave 10f9c4: c3 ret
10f9c5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { printk(
10f9c8: b9 45 1f 12 00 mov $0x121f45,%ecx 10f9cd: 89 ca mov %ecx,%edx 10f9cf: eb d0 jmp 10f9a1 <_Watchdog_Report+0x2d>
0010f904 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) {
10f904: 55 push %ebp 10f905: 89 e5 mov %esp,%ebp 10f907: 57 push %edi 10f908: 56 push %esi 10f909: 53 push %ebx 10f90a: 83 ec 20 sub $0x20,%esp 10f90d: 8b 7d 08 mov 0x8(%ebp),%edi 10f910: 8b 75 0c mov 0xc(%ebp),%esi
ISR_Level level; Chain_Node *node; _ISR_Disable( level );
10f913: 9c pushf 10f914: fa cli 10f915: 8f 45 e4 popl -0x1c(%ebp)
printk( "Watchdog Chain: %s %p\n", name, header );
10f918: 56 push %esi 10f919: 57 push %edi 10f91a: 68 b0 20 12 00 push $0x1220b0 10f91f: e8 60 a0 ff ff call 109984 <printk>
*/ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain));
10f924: 8b 1e mov (%esi),%ebx
*/ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null;
10f926: 83 c6 04 add $0x4,%esi
if ( !_Chain_Is_empty( header ) ) {
10f929: 83 c4 10 add $0x10,%esp 10f92c: 39 f3 cmp %esi,%ebx
10f92e: 74 31 je 10f961 <_Watchdog_Report_chain+0x5d> node != _Chain_Tail(header) ; node = node->next ) { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch );
10f930: 83 ec 08 sub $0x8,%esp 10f933: 53 push %ebx 10f934: 6a 00 push $0x0 10f936: e8 39 00 00 00 call 10f974 <_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 )
10f93b: 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 ;
10f93d: 83 c4 10 add $0x10,%esp 10f940: 39 f3 cmp %esi,%ebx
10f942: 75 ec jne 10f930 <_Watchdog_Report_chain+0x2c><== ALWAYS TAKEN
{ Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name );
10f944: 83 ec 08 sub $0x8,%esp 10f947: 57 push %edi 10f948: 68 c7 20 12 00 push $0x1220c7 10f94d: e8 32 a0 ff ff call 109984 <printk> 10f952: 83 c4 10 add $0x10,%esp
} else { printk( "Chain is empty\n" ); } _ISR_Enable( level );
10f955: ff 75 e4 pushl -0x1c(%ebp) 10f958: 9d popf
}
10f959: 8d 65 f4 lea -0xc(%ebp),%esp 10f95c: 5b pop %ebx 10f95d: 5e pop %esi 10f95e: 5f pop %edi 10f95f: c9 leave 10f960: c3 ret
_Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); } else { printk( "Chain is empty\n" );
10f961: 83 ec 0c sub $0xc,%esp 10f964: 68 d6 20 12 00 push $0x1220d6 10f969: e8 16 a0 ff ff call 109984 <printk> 10f96e: 83 c4 10 add $0x10,%esp 10f971: eb e2 jmp 10f955 <_Watchdog_Report_chain+0x51>
0010e5c8 <_Workspace_Handler_initialization>: /* * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) {
10e5c8: 55 push %ebp 10e5c9: 89 e5 mov %esp,%ebp 10e5cb: 57 push %edi 10e5cc: 53 push %ebx
uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start;
10e5cd: 8b 1d 20 12 12 00 mov 0x121220,%ebx
uintptr_t size = Configuration.work_space_size;
10e5d3: 8b 15 24 12 12 00 mov 0x121224,%edx
if ( Configuration.do_zero_of_workspace )
10e5d9: 80 3d 48 12 12 00 00 cmpb $0x0,0x121248
10e5e0: 75 1e jne 10e600 <_Workspace_Handler_initialization+0x38> memset( starting_address, 0, size ); memory_available = _Heap_Initialize(
10e5e2: 6a 04 push $0x4 10e5e4: 52 push %edx 10e5e5: 53 push %ebx 10e5e6: 68 80 53 12 00 push $0x125380 10e5eb: e8 b4 dd ff ff call 10c3a4 <_Heap_Initialize>
starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 )
10e5f0: 83 c4 10 add $0x10,%esp 10e5f3: 85 c0 test %eax,%eax
10e5f5: 74 13 je 10e60a <_Workspace_Handler_initialization+0x42> _Internal_error_Occurred( INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_TOO_LITTLE_WORKSPACE ); }
10e5f7: 8d 65 f8 lea -0x8(%ebp),%esp 10e5fa: 5b pop %ebx 10e5fb: 5f pop %edi 10e5fc: c9 leave 10e5fd: c3 ret
10e5fe: 66 90 xchg %ax,%ax <== NOT EXECUTED
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 );
10e600: 31 c0 xor %eax,%eax 10e602: 89 df mov %ebx,%edi 10e604: 89 d1 mov %edx,%ecx 10e606: f3 aa rep stos %al,%es:(%edi) 10e608: eb d8 jmp 10e5e2 <_Workspace_Handler_initialization+0x1a>
size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) _Internal_error_Occurred(
10e60a: 52 push %edx 10e60b: 6a 03 push $0x3 10e60d: 6a 01 push $0x1 10e60f: 6a 00 push $0x0 10e611: e8 b2 e0 ff ff call 10c6c8 <_Internal_error_Occurred>
001245b8 <__kill>: #endif int __kill( pid_t pid, int sig ) {
1245b8: 55 push %ebp <== NOT EXECUTED 1245b9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0; }
1245bb: 31 c0 xor %eax,%eax <== NOT EXECUTED 1245bd: c9 leave <== NOT EXECUTED 1245be: c3 ret <== NOT EXECUTED
0011d960 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL();
11d960: 55 push %ebp 11d961: 89 e5 mov %esp,%ebp 11d963: 83 ec 08 sub $0x8,%esp 11d966: e8 b2 06 00 00 call 11e01d <_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();
11d96b: e8 88 ff ff ff call 11d8f8 <libc_wrapup>
rtems_shutdown_executive(status);
11d970: 83 ec 0c sub $0xc,%esp 11d973: ff 75 08 pushl 0x8(%ebp) 11d976: e8 fd 00 00 00 call 11da78 <rtems_shutdown_executive>
11d97b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11d97e: eb fe jmp 11d97e <_exit+0x1e> <== NOT EXECUTED
0013c45c <_fcntl_r>: struct _reent *ptr __attribute__((unused)), int fd, int cmd, int arg ) {
13c45c: 55 push %ebp <== NOT EXECUTED 13c45d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 13c45f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 13c462: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 13c465: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED
return fcntl( fd, cmd, arg );
13c468: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED 13c46b: 89 4d 10 mov %ecx,0x10(%ebp) <== NOT EXECUTED 13c46e: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 13c471: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
13c474: c9 leave <== NOT EXECUTED
int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg );
13c475: e9 4a fe ff ff jmp 13c2c4 <fcntl> <== NOT EXECUTED
00124588 <_getpid_r>: #include <reent.h> pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) {
124588: 55 push %ebp <== NOT EXECUTED 124589: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return getpid(); }
12458b: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED 124590: c9 leave <== NOT EXECUTED 124591: c3 ret <== NOT EXECUTED
0010fa0c <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) {
10fa0c: 55 push %ebp <== NOT EXECUTED 10fa0d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10fa0f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
return gettimeofday( tp, tzp ); }
10fa12: c9 leave <== NOT EXECUTED
int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp );
10fa13: e9 90 ff ff ff jmp 10f9a8 <gettimeofday> <== NOT EXECUTED
001245b0 <_kill_r>: #if defined(RTEMS_NEWLIB) #include <reent.h> int _kill_r( struct _reent *ptr, pid_t pid, int sig ) {
1245b0: 55 push %ebp <== NOT EXECUTED 1245b1: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0; }
1245b3: 31 c0 xor %eax,%eax <== NOT EXECUTED 1245b5: c9 leave <== NOT EXECUTED 1245b6: c3 ret <== NOT EXECUTED
0012bd58 <_link_r>: int _link_r( struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) {
12bd58: 55 push %ebp <== NOT EXECUTED 12bd59: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bd5b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12bd5e: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return link( existing, new );
12bd61: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 12bd64: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 12bd67: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
12bd6a: c9 leave <== NOT EXECUTED
struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new );
12bd6b: e9 e8 fd ff ff jmp 12bb58 <link> <== NOT EXECUTED
0012bf74 <_lstat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) {
12bf74: 55 push %ebp <== NOT EXECUTED 12bf75: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bf77: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12bf7a: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return _STAT_NAME( path, buf );
12bf7d: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 12bf80: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 12bf83: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
12bf86: c9 leave <== NOT EXECUTED
struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf );
12bf87: e9 18 ff ff ff jmp 12bea4 <lstat> <== NOT EXECUTED
0011da40 <_realloc_r>: void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) {
11da40: 55 push %ebp <== NOT EXECUTED 11da41: 89 e5 mov %esp,%ebp <== NOT EXECUTED 11da43: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11da46: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return realloc( ptr, size );
11da49: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 11da4c: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 11da4f: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
11da52: c9 leave <== NOT EXECUTED
struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size );
11da53: e9 48 00 00 00 jmp 11daa0 <realloc> <== NOT EXECUTED
00157554 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) {
157554: 55 push %ebp <== NOT EXECUTED 157555: 89 e5 mov %esp,%ebp <== NOT EXECUTED 157557: 57 push %edi <== NOT EXECUTED 157558: 56 push %esi <== NOT EXECUTED 157559: 53 push %ebx <== NOT EXECUTED 15755a: 83 ec 68 sub $0x68,%esp <== NOT EXECUTED 15755d: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED
/* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old );
157560: 52 push %edx <== NOT EXECUTED 157561: 89 55 9c mov %edx,-0x64(%ebp) <== NOT EXECUTED 157564: e8 bb 46 fb ff call 10bc24 <rtems_filesystem_dirname><== NOT EXECUTED 157569: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if ( old_parent_pathlen == 0 )
15756b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 15756e: 85 c0 test %eax,%eax <== NOT EXECUTED 157570: 8b 55 9c mov -0x64(%ebp),%edx <== NOT EXECUTED 157573: 0f 85 fb 02 00 00 jne 157874 <_rename_r+0x320> <== NOT EXECUTED
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
157579: 8a 02 mov (%edx),%al <== NOT EXECUTED 15757b: 3c 2f cmp $0x2f,%al <== NOT EXECUTED 15757d: 74 0c je 15758b <_rename_r+0x37> <== NOT EXECUTED 15757f: 3c 5c cmp $0x5c,%al <== NOT EXECUTED 157581: 74 08 je 15758b <_rename_r+0x37> <== NOT EXECUTED 157583: 84 c0 test %al,%al <== NOT EXECUTED 157585: 0f 85 75 01 00 00 jne 157700 <_rename_r+0x1ac> <== NOT EXECUTED 15758b: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED 15758e: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED 157591: 8b 35 a4 84 16 00 mov 0x1684a4,%esi <== NOT EXECUTED 157597: 83 c6 18 add $0x18,%esi <== NOT EXECUTED 15759a: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 15759f: 89 c7 mov %eax,%edi <== NOT EXECUTED 1575a1: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 1575a3: c6 45 a3 00 movb $0x0,-0x5d(%ebp) <== NOT EXECUTED
/* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc;
1575a7: 8d 7d d0 lea -0x30(%ebp),%edi <== NOT EXECUTED 1575aa: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 1575af: 8b 75 a4 mov -0x5c(%ebp),%esi <== NOT EXECUTED 1575b2: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
name = old + old_parent_pathlen;
1575b4: 8d 1c 1a lea (%edx,%ebx,1),%ebx <== NOT EXECUTED 1575b7: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
1575ba: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 1575bf: 89 f1 mov %esi,%ecx <== NOT EXECUTED 1575c1: 89 df mov %ebx,%edi <== NOT EXECUTED 1575c3: 31 c0 xor %eax,%eax <== NOT EXECUTED 1575c5: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 1575c7: f7 d1 not %ecx <== NOT EXECUTED 1575c9: 49 dec %ecx <== NOT EXECUTED 1575ca: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1575cd: 51 push %ecx <== NOT EXECUTED 1575ce: 53 push %ebx <== NOT EXECUTED 1575cf: e8 14 46 fb ff call 10bbe8 <rtems_filesystem_prefix_separators><== NOT EXECUTED 1575d4: 01 c3 add %eax,%ebx <== NOT EXECUTED 1575d6: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
1575d9: 89 f1 mov %esi,%ecx <== NOT EXECUTED 1575db: 89 df mov %ebx,%edi <== NOT EXECUTED 1575dd: 31 c0 xor %eax,%eax <== NOT EXECUTED 1575df: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 1575e1: 89 ce mov %ecx,%esi <== NOT EXECUTED 1575e3: f7 d6 not %esi <== NOT EXECUTED 1575e5: 4e dec %esi <== NOT EXECUTED 1575e6: c7 04 24 00 00 00 00 movl $0x0,(%esp) <== NOT EXECUTED 1575ed: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED 1575f0: 50 push %eax <== NOT EXECUTED 1575f1: 6a 00 push $0x0 <== NOT EXECUTED 1575f3: 56 push %esi <== NOT EXECUTED 1575f4: 53 push %ebx <== NOT EXECUTED 1575f5: e8 7a 46 fb ff call 10bc74 <rtems_filesystem_evaluate_relative_path><== NOT EXECUTED 1575fa: 89 c3 mov %eax,%ebx <== NOT EXECUTED
0, &old_loc, false ); if ( result != 0 ) {
1575fc: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 1575ff: 85 c0 test %eax,%eax <== NOT EXECUTED 157601: 0f 85 89 01 00 00 jne 157790 <_rename_r+0x23c> <== NOT EXECUTED
/* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );
157607: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 15760a: 8a 02 mov (%edx),%al <== NOT EXECUTED 15760c: 3c 2f cmp $0x2f,%al <== NOT EXECUTED 15760e: 74 24 je 157634 <_rename_r+0xe0> <== NOT EXECUTED 157610: 3c 5c cmp $0x5c,%al <== NOT EXECUTED 157612: 74 20 je 157634 <_rename_r+0xe0> <== NOT EXECUTED 157614: 84 c0 test %al,%al <== NOT EXECUTED 157616: 74 1c je 157634 <_rename_r+0xe0> <== NOT EXECUTED 157618: 8d 5d a8 lea -0x58(%ebp),%ebx <== NOT EXECUTED 15761b: 8b 35 a4 84 16 00 mov 0x1684a4,%esi <== NOT EXECUTED 157621: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 157624: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 157629: 89 df mov %ebx,%edi <== NOT EXECUTED 15762b: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 15762d: 31 d2 xor %edx,%edx <== NOT EXECUTED 15762f: eb 1d jmp 15764e <_rename_r+0xfa> <== NOT EXECUTED 157631: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 157634: 8d 5d a8 lea -0x58(%ebp),%ebx <== NOT EXECUTED 157637: 8b 35 a4 84 16 00 mov 0x1684a4,%esi <== NOT EXECUTED 15763d: 83 c6 18 add $0x18,%esi <== NOT EXECUTED 157640: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 157645: 89 df mov %ebx,%edi <== NOT EXECUTED 157647: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 157649: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED
if ( !new_parent_loc.ops->evalformake_h ) {
15764e: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 157651: 8b 40 04 mov 0x4(%eax),%eax <== NOT EXECUTED 157654: 85 c0 test %eax,%eax <== NOT EXECUTED 157656: 0f 84 c8 01 00 00 je 157824 <_rename_r+0x2d0> <== NOT EXECUTED
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 );
15765c: 51 push %ecx <== NOT EXECUTED 15765d: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED 157660: 51 push %ecx <== NOT EXECUTED 157661: 53 push %ebx <== NOT EXECUTED 157662: 03 55 10 add 0x10(%ebp),%edx <== NOT EXECUTED 157665: 52 push %edx <== NOT EXECUTED 157666: ff d0 call *%eax <== NOT EXECUTED 157668: 89 c6 mov %eax,%esi <== NOT EXECUTED
if ( result != 0 ) {
15766a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 15766d: 85 c0 test %eax,%eax <== NOT EXECUTED 15766f: 0f 85 4b 01 00 00 jne 1577c0 <_rename_r+0x26c> <== NOT EXECUTED
/* * 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 ) {
157675: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 157678: 3b 45 b8 cmp -0x48(%ebp),%eax <== NOT EXECUTED 15767b: 0f 85 a3 00 00 00 jne 157724 <_rename_r+0x1d0> <== NOT EXECUTED
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 ) {
157681: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED 157684: 8b 42 40 mov 0x40(%edx),%eax <== NOT EXECUTED 157687: 85 c0 test %eax,%eax <== NOT EXECUTED 157689: 0f 84 15 02 00 00 je 1578a4 <_rename_r+0x350> <== NOT EXECUTED
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 );
15768f: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 157692: 53 push %ebx <== NOT EXECUTED 157693: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED 157696: 51 push %ecx <== NOT EXECUTED 157697: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 15769a: ff d0 call *%eax <== NOT EXECUTED 15769c: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_filesystem_freenode( &new_parent_loc );
15769e: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 1576a1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1576a4: 85 c0 test %eax,%eax <== NOT EXECUTED 1576a6: 74 10 je 1576b8 <_rename_r+0x164> <== NOT EXECUTED 1576a8: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1576ab: 85 c0 test %eax,%eax <== NOT EXECUTED 1576ad: 74 09 je 1576b8 <_rename_r+0x164> <== NOT EXECUTED 1576af: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1576b2: 53 push %ebx <== NOT EXECUTED 1576b3: ff d0 call *%eax <== NOT EXECUTED 1576b5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( free_old_parentloc )
1576b8: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 1576bc: 75 26 jne 1576e4 <_rename_r+0x190> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc );
1576be: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 1576c1: 85 c0 test %eax,%eax <== NOT EXECUTED 1576c3: 74 13 je 1576d8 <_rename_r+0x184> <== NOT EXECUTED 1576c5: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1576c8: 85 c0 test %eax,%eax <== NOT EXECUTED 1576ca: 74 0c je 1576d8 <_rename_r+0x184> <== NOT EXECUTED 1576cc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1576cf: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 1576d2: 52 push %edx <== NOT EXECUTED 1576d3: ff d0 call *%eax <== NOT EXECUTED 1576d5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return result; }
1576d8: 89 f0 mov %esi,%eax <== NOT EXECUTED 1576da: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1576dd: 5b pop %ebx <== NOT EXECUTED 1576de: 5e pop %esi <== NOT EXECUTED 1576df: 5f pop %edi <== NOT EXECUTED 1576e0: c9 leave <== NOT EXECUTED 1576e1: c3 ret <== NOT EXECUTED 1576e2: 66 90 xchg %ax,%ax <== NOT EXECUTED
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 );
1576e4: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 1576e7: 85 c0 test %eax,%eax <== NOT EXECUTED 1576e9: 74 d3 je 1576be <_rename_r+0x16a> <== NOT EXECUTED 1576eb: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1576ee: 85 c0 test %eax,%eax <== NOT EXECUTED 1576f0: 74 cc je 1576be <_rename_r+0x16a> <== NOT EXECUTED 1576f2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1576f5: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 1576f8: ff d0 call *%eax <== NOT EXECUTED 1576fa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1576fd: eb bf jmp 1576be <_rename_r+0x16a> <== NOT EXECUTED 1576ff: 90 nop <== NOT EXECUTED
*/ old_parent_pathlen = rtems_filesystem_dirname ( old ); if ( old_parent_pathlen == 0 ) rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
157700: 8d 4d bc lea -0x44(%ebp),%ecx <== NOT EXECUTED 157703: 89 4d a4 mov %ecx,-0x5c(%ebp) <== NOT EXECUTED 157706: 8b 35 a4 84 16 00 mov 0x1684a4,%esi <== NOT EXECUTED 15770c: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 15770f: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 157714: 8b 7d a4 mov -0x5c(%ebp),%edi <== NOT EXECUTED 157717: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 157719: c6 45 a3 00 movb $0x0,-0x5d(%ebp) <== NOT EXECUTED 15771d: e9 85 fe ff ff jmp 1575a7 <_rename_r+0x53> <== NOT EXECUTED 157722: 66 90 xchg %ax,%ax <== NOT EXECUTED
* 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 );
157724: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 157727: 85 c0 test %eax,%eax <== NOT EXECUTED 157729: 74 10 je 15773b <_rename_r+0x1e7> <== NOT EXECUTED 15772b: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 15772e: 85 c0 test %eax,%eax <== NOT EXECUTED 157730: 74 09 je 15773b <_rename_r+0x1e7> <== NOT EXECUTED 157732: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157735: 53 push %ebx <== NOT EXECUTED 157736: ff d0 call *%eax <== NOT EXECUTED 157738: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( free_old_parentloc )
15773b: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 15773f: 74 19 je 15775a <_rename_r+0x206> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
157741: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 157744: 85 c0 test %eax,%eax <== NOT EXECUTED 157746: 74 12 je 15775a <_rename_r+0x206> <== NOT EXECUTED 157748: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 15774b: 85 c0 test %eax,%eax <== NOT EXECUTED 15774d: 74 0b je 15775a <_rename_r+0x206> <== NOT EXECUTED 15774f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157752: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 157755: ff d0 call *%eax <== NOT EXECUTED 157757: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
15775a: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 15775d: 85 c0 test %eax,%eax <== NOT EXECUTED 15775f: 74 13 je 157774 <_rename_r+0x220> <== NOT EXECUTED 157761: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 157764: 85 c0 test %eax,%eax <== NOT EXECUTED 157766: 74 0c je 157774 <_rename_r+0x220> <== NOT EXECUTED 157768: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 15776b: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED 15776e: 51 push %ecx <== NOT EXECUTED 15776f: ff d0 call *%eax <== NOT EXECUTED 157771: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EXDEV );
157774: e8 83 9e fe ff call 1415fc <__errno> <== NOT EXECUTED 157779: c7 00 12 00 00 00 movl $0x12,(%eax) <== NOT EXECUTED 15777f: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); return result; }
157784: 89 f0 mov %esi,%eax <== NOT EXECUTED 157786: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 157789: 5b pop %ebx <== NOT EXECUTED 15778a: 5e pop %esi <== NOT EXECUTED 15778b: 5f pop %edi <== NOT EXECUTED 15778c: c9 leave <== NOT EXECUTED 15778d: c3 ret <== NOT EXECUTED 15778e: 66 90 xchg %ax,%ax <== NOT EXECUTED
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 )
157790: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 157794: 74 19 je 1577af <_rename_r+0x25b> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
157796: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 157799: 85 c0 test %eax,%eax <== NOT EXECUTED 15779b: 74 12 je 1577af <_rename_r+0x25b> <== NOT EXECUTED 15779d: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1577a0: 85 c0 test %eax,%eax <== NOT EXECUTED 1577a2: 74 0b je 1577af <_rename_r+0x25b> <== NOT EXECUTED 1577a4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1577a7: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 1577aa: ff d0 call *%eax <== NOT EXECUTED 1577ac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( result );
1577af: e8 48 9e fe ff call 1415fc <__errno> <== NOT EXECUTED 1577b4: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 1577b6: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 1577bb: e9 18 ff ff ff jmp 1576d8 <_rename_r+0x184> <== NOT EXECUTED
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 );
1577c0: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 1577c3: 85 c0 test %eax,%eax <== NOT EXECUTED 1577c5: 74 10 je 1577d7 <_rename_r+0x283> <== NOT EXECUTED 1577c7: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1577ca: 85 c0 test %eax,%eax <== NOT EXECUTED 1577cc: 74 09 je 1577d7 <_rename_r+0x283> <== NOT EXECUTED 1577ce: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1577d1: 53 push %ebx <== NOT EXECUTED 1577d2: ff d0 call *%eax <== NOT EXECUTED 1577d4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( free_old_parentloc )
1577d7: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 1577db: 74 19 je 1577f6 <_rename_r+0x2a2> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
1577dd: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 1577e0: 85 c0 test %eax,%eax <== NOT EXECUTED 1577e2: 74 12 je 1577f6 <_rename_r+0x2a2> <== NOT EXECUTED 1577e4: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1577e7: 85 c0 test %eax,%eax <== NOT EXECUTED 1577e9: 74 0b je 1577f6 <_rename_r+0x2a2> <== NOT EXECUTED 1577eb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1577ee: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 1577f1: ff d0 call *%eax <== NOT EXECUTED 1577f3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
1577f6: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 1577f9: 85 c0 test %eax,%eax <== NOT EXECUTED 1577fb: 74 13 je 157810 <_rename_r+0x2bc> <== NOT EXECUTED 1577fd: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 157800: 85 c0 test %eax,%eax <== NOT EXECUTED 157802: 74 0c je 157810 <_rename_r+0x2bc> <== NOT EXECUTED 157804: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157807: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 15780a: 52 push %edx <== NOT EXECUTED 15780b: ff d0 call *%eax <== NOT EXECUTED 15780d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( result );
157810: e8 e7 9d fe ff call 1415fc <__errno> <== NOT EXECUTED 157815: 89 30 mov %esi,(%eax) <== NOT EXECUTED 157817: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 15781c: e9 b7 fe ff ff jmp 1576d8 <_rename_r+0x184> <== NOT EXECUTED 157821: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); if ( !new_parent_loc.ops->evalformake_h ) { if ( free_old_parentloc )
157824: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 157828: 74 19 je 157843 <_rename_r+0x2ef> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
15782a: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 15782d: 85 c0 test %eax,%eax <== NOT EXECUTED 15782f: 74 12 je 157843 <_rename_r+0x2ef> <== NOT EXECUTED 157831: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 157834: 85 c0 test %eax,%eax <== NOT EXECUTED 157836: 74 0b je 157843 <_rename_r+0x2ef> <== NOT EXECUTED 157838: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 15783b: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 15783e: ff d0 call *%eax <== NOT EXECUTED 157840: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
157843: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 157846: 85 c0 test %eax,%eax <== NOT EXECUTED 157848: 74 13 je 15785d <_rename_r+0x309> <== NOT EXECUTED 15784a: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 15784d: 85 c0 test %eax,%eax <== NOT EXECUTED 15784f: 74 0c je 15785d <_rename_r+0x309> <== NOT EXECUTED 157851: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157854: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED 157857: 51 push %ecx <== NOT EXECUTED 157858: ff d0 call *%eax <== NOT EXECUTED 15785a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( !new_parent_loc.ops->rename_h ) { rtems_filesystem_freenode( &new_parent_loc ); if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP );
15785d: e8 9a 9d fe ff call 1415fc <__errno> <== NOT EXECUTED 157862: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 157868: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 15786d: e9 66 fe ff ff jmp 1576d8 <_rename_r+0x184> <== NOT EXECUTED 157872: 66 90 xchg %ax,%ax <== 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,
157874: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157877: 6a 00 push $0x0 <== NOT EXECUTED 157879: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED 15787c: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED 15787f: 50 push %eax <== NOT EXECUTED 157880: 6a 02 push $0x2 <== NOT EXECUTED 157882: 53 push %ebx <== NOT EXECUTED 157883: 52 push %edx <== NOT EXECUTED 157884: 89 55 9c mov %edx,-0x64(%ebp) <== NOT EXECUTED 157887: e8 bc 44 fb ff call 10bd48 <rtems_filesystem_evaluate_path><== NOT EXECUTED
RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 )
15788c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 15788f: 85 c0 test %eax,%eax <== NOT EXECUTED 157891: 8b 55 9c mov -0x64(%ebp),%edx <== NOT EXECUTED 157894: 0f 85 1c ff ff ff jne 1577b6 <_rename_r+0x262> <== NOT EXECUTED 15789a: c6 45 a3 01 movb $0x1,-0x5d(%ebp) <== NOT EXECUTED 15789e: e9 04 fd ff ff jmp 1575a7 <_rename_r+0x53> <== NOT EXECUTED 1578a3: 90 nop <== NOT EXECUTED
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 );
1578a4: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 1578a7: 85 c0 test %eax,%eax <== NOT EXECUTED 1578a9: 74 09 je 1578b4 <_rename_r+0x360> <== NOT EXECUTED 1578ab: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1578ae: 53 push %ebx <== NOT EXECUTED 1578af: ff d0 call *%eax <== NOT EXECUTED 1578b1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( free_old_parentloc )
1578b4: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 1578b8: 74 19 je 1578d3 <_rename_r+0x37f> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
1578ba: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 1578bd: 85 c0 test %eax,%eax <== NOT EXECUTED 1578bf: 74 12 je 1578d3 <_rename_r+0x37f> <== NOT EXECUTED 1578c1: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1578c4: 85 c0 test %eax,%eax <== NOT EXECUTED 1578c6: 74 0b je 1578d3 <_rename_r+0x37f> <== NOT EXECUTED 1578c8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1578cb: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 1578ce: ff d0 call *%eax <== NOT EXECUTED 1578d0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
1578d3: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 1578d6: 85 c0 test %eax,%eax <== NOT EXECUTED 1578d8: 74 83 je 15785d <_rename_r+0x309> <== NOT EXECUTED 1578da: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1578dd: 85 c0 test %eax,%eax <== NOT EXECUTED 1578df: 0f 84 78 ff ff ff je 15785d <_rename_r+0x309> <== NOT EXECUTED 1578e5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1578e8: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 1578eb: 52 push %edx <== NOT EXECUTED 1578ec: ff d0 call *%eax <== NOT EXECUTED 1578ee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1578f1: e9 67 ff ff ff jmp 15785d <_rename_r+0x309> <== NOT EXECUTED
0010d168 <_stat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) {
10d168: 55 push %ebp <== NOT EXECUTED 10d169: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10d16b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10d16e: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED
return _STAT_NAME( path, buf );
10d171: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 10d174: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 10d177: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
10d17a: c9 leave <== NOT EXECUTED
struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf );
10d17b: e9 18 ff ff ff jmp 10d098 <stat> <== NOT EXECUTED
00112424 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) {
112424: 55 push %ebp <== NOT EXECUTED 112425: 89 e5 mov %esp,%ebp <== NOT EXECUTED 112427: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
return unlink( path );
11242a: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 11242d: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
112430: c9 leave <== NOT EXECUTED
int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path );
112431: e9 ae fd ff ff jmp 1121e4 <unlink> <== NOT EXECUTED
0012a9c0 <access>: int access( const char *path, int amode ) {
12a9c0: 55 push %ebp 12a9c1: 89 e5 mov %esp,%ebp 12a9c3: 53 push %ebx 12a9c4: 83 ec 5c sub $0x5c,%esp 12a9c7: 8b 5d 0c mov 0xc(%ebp),%ebx
struct stat statbuf; if ( stat(path, &statbuf) )
12a9ca: 8d 45 b0 lea -0x50(%ebp),%eax 12a9cd: 50 push %eax 12a9ce: ff 75 08 pushl 0x8(%ebp) 12a9d1: e8 c2 26 fe ff call 10d098 <stat> 12a9d6: 83 c4 10 add $0x10,%esp 12a9d9: 85 c0 test %eax,%eax
12a9db: 75 1f jne 12a9fc <access+0x3c> return -1; if ( amode & R_OK ) {
12a9dd: f6 c3 04 test $0x4,%bl
12a9e0: 75 12 jne 12a9f4 <access+0x34> if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) {
12a9e2: f6 c3 02 test $0x2,%bl
12a9e5: 75 29 jne 12aa10 <access+0x50> if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) {
12a9e7: 83 e3 01 and $0x1,%ebx
12a9ea: 75 1c jne 12aa08 <access+0x48> if ( !( statbuf.st_mode & S_IEXEC ) )
12a9ec: 31 c0 xor %eax,%eax
return -1; } return 0; }
12a9ee: 8b 5d fc mov -0x4(%ebp),%ebx 12a9f1: c9 leave 12a9f2: c3 ret
12a9f3: 90 nop <== NOT EXECUTED
if ( stat(path, &statbuf) ) return -1; if ( amode & R_OK ) { if (!( statbuf.st_mode & S_IREAD ))
12a9f4: f6 45 bd 01 testb $0x1,-0x43(%ebp)
12a9f8: 75 e8 jne 12a9e2 <access+0x22>
12a9fa: 66 90 xchg %ax,%ax
if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) )
12a9fc: b8 ff ff ff ff mov $0xffffffff,%eax
return -1; } return 0; }
12aa01: 8b 5d fc mov -0x4(%ebp),%ebx 12aa04: c9 leave 12aa05: c3 ret
12aa06: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) )
12aa08: f6 45 bc 40 testb $0x40,-0x44(%ebp)
12aa0c: 75 de jne 12a9ec <access+0x2c>
12aa0e: eb ec jmp 12a9fc <access+0x3c>
if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { if ( !( statbuf.st_mode & S_IWRITE ) )
12aa10: 80 7d bc 00 cmpb $0x0,-0x44(%ebp)
12aa14: 78 d1 js 12a9e7 <access+0x27>
12aa16: eb e4 jmp 12a9fc <access+0x3c>
0010f814 <calloc>: ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1);
10f814: 55 push %ebp 10f815: 89 e5 mov %esp,%ebp 10f817: 57 push %edi 10f818: 53 push %ebx 10f819: 8b 5d 0c mov 0xc(%ebp),%ebx 10f81c: ff 05 f4 51 12 00 incl 0x1251f4
length = nelem * elsize;
10f822: 0f af 5d 08 imul 0x8(%ebp),%ebx
cptr = malloc( length );
10f826: 83 ec 0c sub $0xc,%esp 10f829: 53 push %ebx 10f82a: e8 9d 8a ff ff call 1082cc <malloc> 10f82f: 89 c2 mov %eax,%edx
if ( cptr )
10f831: 83 c4 10 add $0x10,%esp 10f834: 85 c0 test %eax,%eax
10f836: 74 08 je 10f840 <calloc+0x2c> <== ALWAYS TAKEN
memset( cptr, '\0', length );
10f838: 31 c0 xor %eax,%eax 10f83a: 89 d7 mov %edx,%edi 10f83c: 89 d9 mov %ebx,%ecx 10f83e: f3 aa rep stos %al,%es:(%edi)
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
10f840: ff 0d e4 51 12 00 decl 0x1251e4
return cptr; }
10f846: 89 d0 mov %edx,%eax 10f848: 8d 65 f8 lea -0x8(%ebp),%esp 10f84b: 5b pop %ebx 10f84c: 5f pop %edi 10f84d: c9 leave 10f84e: c3 ret
0012aae0 <chdir>: #include <rtems/seterr.h> int chdir( const char *pathname ) {
12aae0: 55 push %ebp 12aae1: 89 e5 mov %esp,%ebp 12aae3: 57 push %edi 12aae4: 56 push %esi 12aae5: 83 ec 20 sub $0x20,%esp 12aae8: 8b 55 08 mov 0x8(%ebp),%edx
rtems_filesystem_location_info_t loc; int result; if ( !pathname )
12aaeb: 85 d2 test %edx,%edx
12aaed: 0f 84 9d 00 00 00 je 12ab90 <chdir+0xb0> /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
12aaf3: 31 c0 xor %eax,%eax 12aaf5: b9 ff ff ff ff mov $0xffffffff,%ecx 12aafa: 89 d7 mov %edx,%edi 12aafc: f2 ae repnz scas %es:(%edi),%al 12aafe: f7 d1 not %ecx 12ab00: 49 dec %ecx
rtems_set_errno_and_return_minus_one( EFAULT ); /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path(
12ab01: 83 ec 0c sub $0xc,%esp 12ab04: 6a 01 push $0x1 12ab06: 8d 75 e4 lea -0x1c(%ebp),%esi 12ab09: 56 push %esi 12ab0a: 6a 01 push $0x1 12ab0c: 51 push %ecx 12ab0d: 52 push %edx 12ab0e: e8 35 12 fe ff call 10bd48 <rtems_filesystem_evaluate_path>
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 )
12ab13: 83 c4 20 add $0x20,%esp 12ab16: 85 c0 test %eax,%eax
12ab18: 75 6a jne 12ab84 <chdir+0xa4> return -1; /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) {
12ab1a: 8b 55 f0 mov -0x10(%ebp),%edx 12ab1d: 8b 42 10 mov 0x10(%edx),%eax 12ab20: 85 c0 test %eax,%eax
12ab22: 74 45 je 12ab69 <chdir+0x89> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
12ab24: 83 ec 0c sub $0xc,%esp 12ab27: 56 push %esi 12ab28: ff d0 call *%eax 12ab2a: 83 c4 10 add $0x10,%esp 12ab2d: 48 dec %eax
12ab2e: 75 78 jne 12aba8 <chdir+0xc8> rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current );
12ab30: 8b 3d a4 84 16 00 mov 0x1684a4,%edi 12ab36: 8b 47 10 mov 0x10(%edi),%eax 12ab39: 85 c0 test %eax,%eax
12ab3b: 74 19 je 12ab56 <chdir+0x76> <== ALWAYS TAKEN
12ab3d: 8b 40 1c mov 0x1c(%eax),%eax 12ab40: 85 c0 test %eax,%eax
12ab42: 74 12 je 12ab56 <chdir+0x76> <== ALWAYS TAKEN
12ab44: 83 ec 0c sub $0xc,%esp 12ab47: 83 c7 04 add $0x4,%edi 12ab4a: 57 push %edi 12ab4b: ff d0 call *%eax 12ab4d: 8b 3d a4 84 16 00 mov 0x1684a4,%edi 12ab53: 83 c4 10 add $0x10,%esp
rtems_filesystem_current = loc;
12ab56: 83 c7 04 add $0x4,%edi 12ab59: b9 05 00 00 00 mov $0x5,%ecx 12ab5e: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12ab60: 31 c0 xor %eax,%eax
return 0; }
12ab62: 8d 65 f8 lea -0x8(%ebp),%esp 12ab65: 5e pop %esi 12ab66: 5f pop %edi 12ab67: c9 leave 12ab68: c3 ret
/* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc );
12ab69: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12ab6c: 85 c0 test %eax,%eax <== NOT EXECUTED 12ab6e: 74 09 je 12ab79 <chdir+0x99> <== NOT EXECUTED 12ab70: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12ab73: 56 push %esi <== NOT EXECUTED 12ab74: ff d0 call *%eax <== NOT EXECUTED 12ab76: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12ab79: e8 7e 6a 01 00 call 1415fc <__errno> <== NOT EXECUTED 12ab7e: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12ab84: b8 ff ff ff ff mov $0xffffffff,%eax
rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; }
12ab89: 8d 65 f8 lea -0x8(%ebp),%esp 12ab8c: 5e pop %esi 12ab8d: 5f pop %edi 12ab8e: c9 leave 12ab8f: c3 ret
{ rtems_filesystem_location_info_t loc; int result; if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT );
12ab90: e8 67 6a 01 00 call 1415fc <__errno> 12ab95: c7 00 0e 00 00 00 movl $0xe,(%eax) 12ab9b: b8 ff ff ff ff mov $0xffffffff,%eax
rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; }
12aba0: 8d 65 f8 lea -0x8(%ebp),%esp 12aba3: 5e pop %esi 12aba4: 5f pop %edi 12aba5: c9 leave 12aba6: c3 ret
12aba7: 90 nop <== NOT EXECUTED
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 );
12aba8: 8b 45 f0 mov -0x10(%ebp),%eax 12abab: 85 c0 test %eax,%eax
12abad: 74 10 je 12abbf <chdir+0xdf> <== ALWAYS TAKEN
12abaf: 8b 40 1c mov 0x1c(%eax),%eax 12abb2: 85 c0 test %eax,%eax
12abb4: 74 09 je 12abbf <chdir+0xdf> <== ALWAYS TAKEN
12abb6: 83 ec 0c sub $0xc,%esp 12abb9: 56 push %esi 12abba: ff d0 call *%eax 12abbc: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( ENOTDIR );
12abbf: e8 38 6a 01 00 call 1415fc <__errno> 12abc4: c7 00 14 00 00 00 movl $0x14,(%eax) 12abca: b8 ff ff ff ff mov $0xffffffff,%eax 12abcf: eb 91 jmp 12ab62 <chdir+0x82>
0010ba8c <chmod>: int chmod( const char *path, mode_t mode ) {
10ba8c: 55 push %ebp 10ba8d: 89 e5 mov %esp,%ebp 10ba8f: 57 push %edi 10ba90: 56 push %esi 10ba91: 53 push %ebx 10ba92: 83 ec 38 sub $0x38,%esp 10ba95: 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 );
10ba98: 31 c0 xor %eax,%eax 10ba9a: b9 ff ff ff ff mov $0xffffffff,%ecx 10ba9f: 89 d7 mov %edx,%edi 10baa1: f2 ae repnz scas %es:(%edi),%al 10baa3: f7 d1 not %ecx 10baa5: 49 dec %ecx 10baa6: 6a 01 push $0x1 10baa8: 8d 5d d4 lea -0x2c(%ebp),%ebx 10baab: 53 push %ebx 10baac: 6a 00 push $0x0 10baae: 51 push %ecx 10baaf: 52 push %edx 10bab0: e8 93 02 00 00 call 10bd48 <rtems_filesystem_evaluate_path>
if ( status != 0 )
10bab5: 83 c4 20 add $0x20,%esp 10bab8: 85 c0 test %eax,%eax
10baba: 75 60 jne 10bb1c <chmod+0x90> return -1; if ( !loc.handlers ){
10babc: 8b 45 dc mov -0x24(%ebp),%eax 10babf: 85 c0 test %eax,%eax
10bac1: 74 36 je 10baf9 <chmod+0x6d> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){
10bac3: 8b 40 1c mov 0x1c(%eax),%eax 10bac6: 85 c0 test %eax,%eax
10bac8: 74 62 je 10bb2c <chmod+0xa0> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode );
10baca: 83 ec 08 sub $0x8,%esp 10bacd: ff 75 0c pushl 0xc(%ebp) 10bad0: 53 push %ebx 10bad1: ff d0 call *%eax 10bad3: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &loc );
10bad5: 8b 45 e0 mov -0x20(%ebp),%eax 10bad8: 83 c4 10 add $0x10,%esp 10badb: 85 c0 test %eax,%eax
10badd: 74 10 je 10baef <chmod+0x63> <== ALWAYS TAKEN
10badf: 8b 40 1c mov 0x1c(%eax),%eax 10bae2: 85 c0 test %eax,%eax
10bae4: 74 09 je 10baef <chmod+0x63> <== ALWAYS TAKEN
10bae6: 83 ec 0c sub $0xc,%esp 10bae9: 53 push %ebx 10baea: ff d0 call *%eax 10baec: 83 c4 10 add $0x10,%esp
return result; }
10baef: 89 f0 mov %esi,%eax 10baf1: 8d 65 f4 lea -0xc(%ebp),%esp 10baf4: 5b pop %ebx 10baf5: 5e pop %esi 10baf6: 5f pop %edi 10baf7: c9 leave 10baf8: 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 );
10baf9: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10bafc: 85 c0 test %eax,%eax <== NOT EXECUTED 10bafe: 74 10 je 10bb10 <chmod+0x84> <== NOT EXECUTED 10bb00: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10bb03: 85 c0 test %eax,%eax <== NOT EXECUTED 10bb05: 74 09 je 10bb10 <chmod+0x84> <== NOT EXECUTED 10bb07: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10bb0a: 53 push %ebx <== NOT EXECUTED 10bb0b: ff d0 call *%eax <== NOT EXECUTED 10bb0d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EBADF );
10bb10: e8 e7 5a 03 00 call 1415fc <__errno> <== NOT EXECUTED 10bb15: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 10bb1b: 90 nop <== NOT EXECUTED
10bb1c: be ff ff ff ff mov $0xffffffff,%esi
result = (*loc.handlers->fchmod_h)( &loc, mode ); rtems_filesystem_freenode( &loc ); return result; }
10bb21: 89 f0 mov %esi,%eax 10bb23: 8d 65 f4 lea -0xc(%ebp),%esp 10bb26: 5b pop %ebx 10bb27: 5e pop %esi 10bb28: 5f pop %edi 10bb29: c9 leave 10bb2a: c3 ret
10bb2b: 90 nop <== NOT EXECUTED
rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc );
10bb2c: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10bb2f: 85 c0 test %eax,%eax <== NOT EXECUTED 10bb31: 74 10 je 10bb43 <chmod+0xb7> <== NOT EXECUTED 10bb33: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10bb36: 85 c0 test %eax,%eax <== NOT EXECUTED 10bb38: 74 09 je 10bb43 <chmod+0xb7> <== NOT EXECUTED 10bb3a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10bb3d: 53 push %ebx <== NOT EXECUTED 10bb3e: ff d0 call *%eax <== NOT EXECUTED 10bb40: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
10bb43: e8 b4 5a 03 00 call 1415fc <__errno> <== NOT EXECUTED 10bb48: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10bb4e: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 10bb53: eb 9a jmp 10baef <chmod+0x63> <== NOT EXECUTED
0012abd4 <chown>: int chown( const char *path, uid_t owner, gid_t group ) {
12abd4: 55 push %ebp 12abd5: 89 e5 mov %esp,%ebp 12abd7: 57 push %edi 12abd8: 56 push %esi 12abd9: 53 push %ebx 12abda: 83 ec 38 sub $0x38,%esp 12abdd: 8b 55 08 mov 0x8(%ebp),%edx 12abe0: 8b 75 0c mov 0xc(%ebp),%esi 12abe3: 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 ) )
12abe6: 31 c0 xor %eax,%eax 12abe8: b9 ff ff ff ff mov $0xffffffff,%ecx 12abed: 89 d7 mov %edx,%edi 12abef: f2 ae repnz scas %es:(%edi),%al 12abf1: f7 d1 not %ecx 12abf3: 49 dec %ecx 12abf4: 6a 01 push $0x1 12abf6: 8d 7d d4 lea -0x2c(%ebp),%edi 12abf9: 57 push %edi 12abfa: 6a 00 push $0x0 12abfc: 51 push %ecx 12abfd: 52 push %edx 12abfe: e8 45 11 fe ff call 10bd48 <rtems_filesystem_evaluate_path> 12ac03: 83 c4 20 add $0x20,%esp 12ac06: 85 c0 test %eax,%eax
12ac08: 75 5a jne 12ac64 <chown+0x90> <== ALWAYS TAKEN
return -1; if ( !loc.ops->chown_h ) {
12ac0a: 8b 55 e0 mov -0x20(%ebp),%edx 12ac0d: 8b 42 18 mov 0x18(%edx),%eax 12ac10: 85 c0 test %eax,%eax
12ac12: 74 34 je 12ac48 <chown+0x74> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group );
12ac14: 52 push %edx 12ac15: 0f b7 db movzwl %bx,%ebx 12ac18: 53 push %ebx 12ac19: 0f b7 f6 movzwl %si,%esi 12ac1c: 56 push %esi 12ac1d: 57 push %edi 12ac1e: ff d0 call *%eax 12ac20: 89 c3 mov %eax,%ebx
rtems_filesystem_freenode( &loc );
12ac22: 8b 45 e0 mov -0x20(%ebp),%eax 12ac25: 83 c4 10 add $0x10,%esp 12ac28: 85 c0 test %eax,%eax
12ac2a: 74 10 je 12ac3c <chown+0x68> <== ALWAYS TAKEN
12ac2c: 8b 40 1c mov 0x1c(%eax),%eax 12ac2f: 85 c0 test %eax,%eax
12ac31: 74 09 je 12ac3c <chown+0x68> <== ALWAYS TAKEN
12ac33: 83 ec 0c sub $0xc,%esp 12ac36: 57 push %edi 12ac37: ff d0 call *%eax 12ac39: 83 c4 10 add $0x10,%esp
return result; }
12ac3c: 89 d8 mov %ebx,%eax 12ac3e: 8d 65 f4 lea -0xc(%ebp),%esp 12ac41: 5b pop %ebx 12ac42: 5e pop %esi 12ac43: 5f pop %edi 12ac44: c9 leave 12ac45: c3 ret
12ac46: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) return -1; if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc );
12ac48: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12ac4b: 85 c0 test %eax,%eax <== NOT EXECUTED 12ac4d: 74 09 je 12ac58 <chown+0x84> <== NOT EXECUTED 12ac4f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12ac52: 57 push %edi <== NOT EXECUTED 12ac53: ff d0 call *%eax <== NOT EXECUTED 12ac55: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12ac58: e8 9f 69 01 00 call 1415fc <__errno> <== NOT EXECUTED 12ac5d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12ac63: 90 nop <== NOT EXECUTED
12ac64: bb ff ff ff ff mov $0xffffffff,%ebx
result = (*loc.ops->chown_h)( &loc, owner, group ); rtems_filesystem_freenode( &loc ); return result; }
12ac69: 89 d8 mov %ebx,%eax 12ac6b: 8d 65 f4 lea -0xc(%ebp),%esp 12ac6e: 5b pop %ebx 12ac6f: 5e pop %esi 12ac70: 5f pop %edi 12ac71: c9 leave 12ac72: c3 ret
0012ac74 <chroot>: #include <rtems/seterr.h> int chroot( const char *pathname ) {
12ac74: 55 push %ebp 12ac75: 89 e5 mov %esp,%ebp 12ac77: 57 push %edi 12ac78: 56 push %esi 12ac79: 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) {
12ac7c: 81 3d a4 84 16 00 60 cmpl $0x16df60,0x1684a4
12ac83: df 16 00
12ac86: 74 6c je 12acf4 <chroot+0x80> <== NEVER 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);
12ac88: 83 ec 0c sub $0xc,%esp 12ac8b: ff 75 08 pushl 0x8(%ebp) 12ac8e: e8 4d fe ff ff call 12aae0 <chdir>
if (result) {
12ac93: 83 c4 10 add $0x10,%esp 12ac96: 85 c0 test %eax,%eax
12ac98: 75 7e jne 12ad18 <chroot+0xa4> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
12ac9a: 83 ec 0c sub $0xc,%esp 12ac9d: 6a 00 push $0x0 12ac9f: 8d 75 e4 lea -0x1c(%ebp),%esi 12aca2: 56 push %esi 12aca3: 6a 00 push $0x0 12aca5: 6a 01 push $0x1 12aca7: 68 1c ac 15 00 push $0x15ac1c 12acac: e8 97 10 fe ff call 10bd48 <rtems_filesystem_evaluate_path> 12acb1: 83 c4 20 add $0x20,%esp 12acb4: 85 c0 test %eax,%eax
12acb6: 75 60 jne 12ad18 <chroot+0xa4> <== ALWAYS 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);
12acb8: 8b 3d a4 84 16 00 mov 0x1684a4,%edi 12acbe: 8b 47 24 mov 0x24(%edi),%eax 12acc1: 85 c0 test %eax,%eax
12acc3: 74 19 je 12acde <chroot+0x6a> <== ALWAYS TAKEN
12acc5: 8b 40 1c mov 0x1c(%eax),%eax 12acc8: 85 c0 test %eax,%eax
12acca: 74 12 je 12acde <chroot+0x6a> <== ALWAYS TAKEN
12accc: 83 ec 0c sub $0xc,%esp 12accf: 83 c7 18 add $0x18,%edi 12acd2: 57 push %edi 12acd3: ff d0 call *%eax 12acd5: 8b 3d a4 84 16 00 mov 0x1684a4,%edi 12acdb: 83 c4 10 add $0x10,%esp
rtems_filesystem_root = loc;
12acde: 83 c7 18 add $0x18,%edi 12ace1: b9 05 00 00 00 mov $0x5,%ecx 12ace6: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12ace8: 31 c0 xor %eax,%eax
return 0; }
12acea: 8d 65 f8 lea -0x8(%ebp),%esp 12aced: 5e pop %esi 12acee: 5f pop %edi 12acef: c9 leave 12acf0: c3 ret
12acf1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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*/
12acf4: e8 43 15 00 00 call 12c23c <rtems_libio_set_private_env>
if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
12acf9: 81 3d a4 84 16 00 60 cmpl $0x16df60,0x1684a4
12ad00: df 16 00
12ad03: 75 83 jne 12ac88 <chroot+0x14> <== NEVER TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
12ad05: e8 f2 68 01 00 call 1415fc <__errno> <== NOT EXECUTED 12ad0a: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12ad10: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 12ad13: eb d5 jmp 12acea <chroot+0x76> <== NOT EXECUTED 12ad15: 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 );
12ad18: e8 df 68 01 00 call 1415fc <__errno> <== NOT EXECUTED 12ad1d: 89 c6 mov %eax,%esi <== NOT EXECUTED 12ad1f: e8 d8 68 01 00 call 1415fc <__errno> <== NOT EXECUTED 12ad24: 8b 00 mov (%eax),%eax <== NOT EXECUTED 12ad26: 89 06 mov %eax,(%esi) <== NOT EXECUTED 12ad28: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 12ad2d: eb bb jmp 12acea <chroot+0x76> <== NOT EXECUTED
0010f850 <close>: #include <rtems/libio_.h> int close( int fd ) {
10f850: 55 push %ebp 10f851: 89 e5 mov %esp,%ebp 10f853: 56 push %esi 10f854: 53 push %ebx 10f855: 8b 5d 08 mov 0x8(%ebp),%ebx
rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd);
10f858: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx
10f85e: 73 58 jae 10f8b8 <close+0x68> iop = rtems_libio_iop(fd);
10f860: c1 e3 06 shl $0x6,%ebx 10f863: 03 1d c0 51 12 00 add 0x1251c0,%ebx
rtems_libio_check_is_open(iop);
10f869: f6 43 15 01 testb $0x1,0x15(%ebx)
10f86d: 74 49 je 10f8b8 <close+0x68> rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h )
10f86f: 8b 43 3c mov 0x3c(%ebx),%eax 10f872: 8b 40 04 mov 0x4(%eax),%eax 10f875: 85 c0 test %eax,%eax
10f877: 74 3b je 10f8b4 <close+0x64> <== ALWAYS TAKEN
rc = (*iop->handlers->close_h)( iop );
10f879: 83 ec 0c sub $0xc,%esp 10f87c: 53 push %ebx 10f87d: ff d0 call *%eax 10f87f: 89 c6 mov %eax,%esi 10f881: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &iop->pathinfo );
10f884: 8b 43 24 mov 0x24(%ebx),%eax 10f887: 85 c0 test %eax,%eax
10f889: 74 13 je 10f89e <close+0x4e> <== ALWAYS TAKEN
10f88b: 8b 40 1c mov 0x1c(%eax),%eax 10f88e: 85 c0 test %eax,%eax
10f890: 74 0c je 10f89e <close+0x4e>
10f892: 83 ec 0c sub $0xc,%esp 10f895: 8d 53 18 lea 0x18(%ebx),%edx 10f898: 52 push %edx 10f899: ff d0 call *%eax 10f89b: 83 c4 10 add $0x10,%esp
rtems_libio_free( iop );
10f89e: 83 ec 0c sub $0xc,%esp 10f8a1: 53 push %ebx 10f8a2: e8 91 02 00 00 call 10fb38 <rtems_libio_free>
return rc;
10f8a7: 83 c4 10 add $0x10,%esp
}
10f8aa: 89 f0 mov %esi,%eax 10f8ac: 8d 65 f8 lea -0x8(%ebp),%esp 10f8af: 5b pop %ebx 10f8b0: 5e pop %esi 10f8b1: c9 leave 10f8b2: c3 ret
10f8b3: 90 nop <== NOT EXECUTED
rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h )
10f8b4: 31 f6 xor %esi,%esi <== NOT EXECUTED 10f8b6: eb cc jmp 10f884 <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);
10f8b8: e8 fb 2b 00 00 call 1124b8 <__errno> 10f8bd: c7 00 09 00 00 00 movl $0x9,(%eax) 10f8c3: be ff ff ff ff mov $0xffffffff,%esi 10f8c8: eb e0 jmp 10f8aa <close+0x5a>
0010edf0 <devFS_close>: #include "devfs.h" int devFS_close( rtems_libio_t *iop ) {
10edf0: 55 push %ebp 10edf1: 89 e5 mov %esp,%ebp 10edf3: 83 ec 1c sub $0x1c,%esp 10edf6: 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;
10edf9: 8b 42 38 mov 0x38(%edx),%eax
args.iop = iop;
10edfc: 89 55 ec mov %edx,-0x14(%ebp)
args.flags = 0;
10edff: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
args.mode = 0;
10ee06: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_close(
10ee0d: 8d 55 ec lea -0x14(%ebp),%edx 10ee10: 52 push %edx 10ee11: ff 70 0c pushl 0xc(%eax) 10ee14: ff 70 08 pushl 0x8(%eax) 10ee17: e8 18 09 00 00 call 10f734 <rtems_io_close>
np->major, np->minor, (void *) &args ); if ( status ) {
10ee1c: 83 c4 10 add $0x10,%esp 10ee1f: 85 c0 test %eax,%eax
10ee21: 75 05 jne 10ee28 <devFS_close+0x38> <== ALWAYS TAKEN
return rtems_deviceio_errno(status); } return 0; }
10ee23: c9 leave 10ee24: c3 ret
10ee25: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
np->major, np->minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status);
10ee28: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10ee2b: 50 push %eax <== NOT EXECUTED 10ee2c: e8 c7 00 00 00 call 10eef8 <rtems_deviceio_errno> <== NOT EXECUTED 10ee31: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} return 0; }
10ee34: c9 leave <== NOT EXECUTED 10ee35: c3 ret <== NOT EXECUTED
0010ee48 <devFS_evaluate_path>: const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) {
10ee48: 55 push %ebp 10ee49: 89 e5 mov %esp,%ebp 10ee4b: 57 push %edi 10ee4c: 56 push %esi 10ee4d: 53 push %ebx 10ee4e: 83 ec 1c sub $0x1c,%esp
assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access;
10ee51: 8b 45 14 mov 0x14(%ebp),%eax 10ee54: 8b 00 mov (%eax),%eax 10ee56: 89 45 e4 mov %eax,-0x1c(%ebp)
if (!device_name_table)
10ee59: 85 c0 test %eax,%eax
10ee5b: 0f 84 87 00 00 00 je 10eee8 <devFS_evaluate_path+0xa0><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) {
10ee61: 8b 15 50 f1 11 00 mov 0x11f150,%edx 10ee67: 89 55 e0 mov %edx,-0x20(%ebp) 10ee6a: 85 d2 test %edx,%edx
10ee6c: 74 38 je 10eea6 <devFS_evaluate_path+0x5e><== 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 );
10ee6e: 31 c0 xor %eax,%eax 10ee70: 31 db xor %ebx,%ebx
for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name)
10ee72: 8d 04 80 lea (%eax,%eax,4),%eax 10ee75: 8b 55 e4 mov -0x1c(%ebp),%edx 10ee78: 8d 3c 82 lea (%edx,%eax,4),%edi 10ee7b: 8b 37 mov (%edi),%esi 10ee7d: 85 f6 test %esi,%esi
10ee7f: 74 1d je 10ee9e <devFS_evaluate_path+0x56> continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
10ee81: 50 push %eax 10ee82: ff 75 0c pushl 0xc(%ebp) 10ee85: 56 push %esi 10ee86: ff 75 08 pushl 0x8(%ebp) 10ee89: e8 8e 22 00 00 call 11111c <strncmp> 10ee8e: 83 c4 10 add $0x10,%esp 10ee91: 85 c0 test %eax,%eax
10ee93: 75 09 jne 10ee9e <devFS_evaluate_path+0x56><== ALWAYS TAKEN
continue; if (device_name_table[i].device_name[pathnamelen] != '\0')
10ee95: 8b 45 0c mov 0xc(%ebp),%eax 10ee98: 80 3c 06 00 cmpb $0x0,(%esi,%eax,1)
10ee9c: 74 22 je 10eec0 <devFS_evaluate_path+0x78><== NEVER 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++) {
10ee9e: 43 inc %ebx 10ee9f: 89 d8 mov %ebx,%eax 10eea1: 39 5d e0 cmp %ebx,-0x20(%ebp)
10eea4: 77 cc ja 10ee72 <devFS_evaluate_path+0x2a> pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT );
10eea6: e8 c1 16 00 00 call 11056c <__errno> 10eeab: c7 00 02 00 00 00 movl $0x2,(%eax) 10eeb1: b8 ff ff ff ff mov $0xffffffff,%eax
}
10eeb6: 8d 65 f4 lea -0xc(%ebp),%esp 10eeb9: 5b pop %ebx 10eeba: 5e pop %esi 10eebb: 5f pop %edi 10eebc: c9 leave 10eebd: c3 ret
10eebe: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i];
10eec0: 8b 55 14 mov 0x14(%ebp),%edx 10eec3: 89 3a mov %edi,(%edx)
pathloc->handlers = &devFS_file_handlers;
10eec5: c7 42 08 80 10 12 00 movl $0x121080,0x8(%edx)
pathloc->ops = &devFS_ops;
10eecc: c7 42 0c 20 10 12 00 movl $0x121020,0xc(%edx)
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
10eed3: a1 cc 10 12 00 mov 0x1210cc,%eax 10eed8: 8b 40 28 mov 0x28(%eax),%eax 10eedb: 89 42 10 mov %eax,0x10(%edx) 10eede: 31 c0 xor %eax,%eax
return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); }
10eee0: 8d 65 f4 lea -0xc(%ebp),%esp 10eee3: 5b pop %ebx 10eee4: 5e pop %esi 10eee5: 5f pop %edi 10eee6: c9 leave 10eee7: c3 ret
} /* 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 );
10eee8: e8 7f 16 00 00 call 11056c <__errno> <== NOT EXECUTED 10eeed: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 10eef3: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 10eef6: eb e8 jmp 10eee0 <devFS_evaluate_path+0x98><== NOT EXECUTED
00107b8c <devFS_initialize>: int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) {
107b8c: 55 push %ebp 107b8d: 89 e5 mov %esp,%ebp 107b8f: 57 push %edi 107b90: 53 push %ebx 107b91: 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(
107b94: 83 ec 0c sub $0xc,%esp 107b97: a1 50 f1 11 00 mov 0x11f150,%eax 107b9c: 8d 04 80 lea (%eax,%eax,4),%eax 107b9f: c1 e0 02 shl $0x2,%eax 107ba2: 50 push %eax 107ba3: e8 c0 6d 00 00 call 10e968 <_Workspace_Allocate> 107ba8: 89 c2 mov %eax,%edx
sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table)
107baa: 83 c4 10 add $0x10,%esp 107bad: 85 c0 test %eax,%eax
107baf: 74 2b je 107bdc <devFS_initialize+0x50> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOMEM ); memset(
107bb1: a1 50 f1 11 00 mov 0x11f150,%eax 107bb6: 8d 0c 80 lea (%eax,%eax,4),%ecx 107bb9: c1 e1 02 shl $0x2,%ecx 107bbc: 31 c0 xor %eax,%eax 107bbe: 89 d7 mov %edx,%edi 107bc0: 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;
107bc2: c7 43 24 80 10 12 00 movl $0x121080,0x24(%ebx)
temp_mt_entry->mt_fs_root.ops = &devFS_ops;
107bc9: 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;
107bd0: 89 53 1c mov %edx,0x1c(%ebx) 107bd3: 31 c0 xor %eax,%eax
return 0; }
107bd5: 8d 65 f8 lea -0x8(%ebp),%esp 107bd8: 5b pop %ebx 107bd9: 5f pop %edi 107bda: c9 leave 107bdb: 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 );
107bdc: e8 8b 89 00 00 call 11056c <__errno> <== NOT EXECUTED 107be1: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 107be7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 107bec: eb e7 jmp 107bd5 <devFS_initialize+0x49> <== NOT EXECUTED
00107d48 <devFS_ioctl>: int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) {
107d48: 55 push %ebp 107d49: 89 e5 mov %esp,%ebp 107d4b: 83 ec 1c sub $0x1c,%esp 107d4e: 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;
107d51: 8b 42 38 mov 0x38(%edx),%eax
args.iop = iop;
107d54: 89 55 e8 mov %edx,-0x18(%ebp)
args.command = command;
107d57: 8b 55 0c mov 0xc(%ebp),%edx 107d5a: 89 55 ec mov %edx,-0x14(%ebp)
args.buffer = buffer;
107d5d: 8b 55 10 mov 0x10(%ebp),%edx 107d60: 89 55 f0 mov %edx,-0x10(%ebp)
status = rtems_io_control(
107d63: 8d 55 e8 lea -0x18(%ebp),%edx 107d66: 52 push %edx 107d67: ff 70 0c pushl 0xc(%eax) 107d6a: ff 70 08 pushl 0x8(%eax) 107d6d: e8 7e 41 00 00 call 10bef0 <rtems_io_control>
np->major, np->minor, (void *) &args ); if ( status )
107d72: 83 c4 10 add $0x10,%esp 107d75: 85 c0 test %eax,%eax
107d77: 75 07 jne 107d80 <devFS_ioctl+0x38> <== ALWAYS TAKEN
return rtems_deviceio_errno(status); return args.ioctl_return;
107d79: 8b 45 f4 mov -0xc(%ebp),%eax
}
107d7c: c9 leave 107d7d: c3 ret
107d7e: 66 90 xchg %ax,%ax <== NOT EXECUTED
np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status);
107d80: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107d83: 50 push %eax <== NOT EXECUTED 107d84: e8 6f 71 00 00 call 10eef8 <rtems_deviceio_errno> <== NOT EXECUTED 107d89: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return args.ioctl_return; }
107d8c: c9 leave <== NOT EXECUTED 107d8d: c3 ret <== NOT EXECUTED
00107bf0 <devFS_mknod>: const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) {
107bf0: 55 push %ebp 107bf1: 89 e5 mov %esp,%ebp 107bf3: 57 push %edi 107bf4: 56 push %esi 107bf5: 53 push %ebx 107bf6: 83 ec 1c sub $0x1c,%esp 107bf9: 8b 7d 08 mov 0x8(%ebp),%edi 107bfc: 8b 4d 10 mov 0x10(%ebp),%ecx 107bff: 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') &&
107c02: 80 3f 64 cmpb $0x64,(%edi)
107c05: 0f 84 dd 00 00 00 je 107ce8 <devFS_mknod+0xf8> <== NEVER 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))
107c0b: 8b 45 0c mov 0xc(%ebp),%eax 107c0e: 25 00 f0 00 00 and $0xf000,%eax 107c13: 3d 00 60 00 00 cmp $0x6000,%eax
107c18: 74 0b je 107c25 <devFS_mknod+0x35> <== ALWAYS TAKEN
107c1a: 3d 00 20 00 00 cmp $0x2000,%eax
107c1f: 0f 85 e3 00 00 00 jne 107d08 <devFS_mknod+0x118> <== ALWAYS TAKEN
) { union __rtems_dev_t temp; temp.device = device; return temp.__overlay.major;
107c25: 89 4d d8 mov %ecx,-0x28(%ebp)
dev_t device ) { union __rtems_dev_t temp; temp.device = device;
107c28: 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;
107c2b: 8b 45 18 mov 0x18(%ebp),%eax 107c2e: 8b 30 mov (%eax),%esi
if (!device_name_table)
107c30: 85 f6 test %esi,%esi
107c32: 0f 84 f2 00 00 00 je 107d2a <devFS_mknod+0x13a> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){
107c38: 8b 15 50 f1 11 00 mov 0x11f150,%edx 107c3e: 85 d2 test %edx,%edx
107c40: 0f 84 d4 00 00 00 je 107d1a <devFS_mknod+0x12a> <== ALWAYS 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 );
107c46: 31 c0 xor %eax,%eax 107c48: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) 107c4f: 31 db xor %ebx,%ebx 107c51: 89 7d e4 mov %edi,-0x1c(%ebp) 107c54: 89 d7 mov %edx,%edi 107c56: eb 1a jmp 107c72 <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)
107c58: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 107c5b: 50 push %eax <== NOT EXECUTED 107c5c: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 107c5f: e8 94 93 00 00 call 110ff8 <strcmp> <== NOT EXECUTED 107c64: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 107c67: 85 c0 test %eax,%eax <== NOT EXECUTED 107c69: 74 65 je 107cd0 <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++){
107c6b: 43 inc %ebx <== NOT EXECUTED 107c6c: 89 d8 mov %ebx,%eax <== NOT EXECUTED 107c6e: 39 fb cmp %edi,%ebx <== NOT EXECUTED 107c70: 73 16 jae 107c88 <devFS_mknod+0x98> <== NOT EXECUTED
if (device_name_table[i].device_name == NULL)
107c72: 8d 04 80 lea (%eax,%eax,4),%eax 107c75: 8b 04 86 mov (%esi,%eax,4),%eax 107c78: 85 c0 test %eax,%eax
107c7a: 75 dc jne 107c58 <devFS_mknod+0x68> <== ALWAYS TAKEN
slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST );
107c7c: 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++){
107c7f: 43 inc %ebx 107c80: 89 d8 mov %ebx,%eax 107c82: 39 fb cmp %edi,%ebx
107c84: 72 ec jb 107c72 <devFS_mknod+0x82>
107c86: 66 90 xchg %ax,%ax 107c88: 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)
107c8b: 83 7d e0 ff cmpl $0xffffffff,-0x20(%ebp)
107c8f: 0f 84 85 00 00 00 je 107d1a <devFS_mknod+0x12a> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level);
107c95: 9c pushf 107c96: fa cli 107c97: 5b pop %ebx
device_name_table[slot].device_name = (char *)path;
107c98: 8b 55 e0 mov -0x20(%ebp),%edx 107c9b: 8d 04 92 lea (%edx,%edx,4),%eax 107c9e: 8d 14 86 lea (%esi,%eax,4),%edx 107ca1: 89 3a mov %edi,(%edx)
device_name_table[slot].device_name_length = strlen(path);
107ca3: 31 c0 xor %eax,%eax 107ca5: b9 ff ff ff ff mov $0xffffffff,%ecx 107caa: f2 ae repnz scas %es:(%edi),%al 107cac: f7 d1 not %ecx 107cae: 49 dec %ecx 107caf: 89 4a 04 mov %ecx,0x4(%edx)
device_name_table[slot].major = major;
107cb2: 8b 45 d8 mov -0x28(%ebp),%eax 107cb5: 89 42 08 mov %eax,0x8(%edx)
device_name_table[slot].minor = minor;
107cb8: 8b 45 dc mov -0x24(%ebp),%eax 107cbb: 89 42 0c mov %eax,0xc(%edx)
device_name_table[slot].mode = mode;
107cbe: 8b 45 0c mov 0xc(%ebp),%eax 107cc1: 89 42 10 mov %eax,0x10(%edx)
_ISR_Enable(level);
107cc4: 53 push %ebx 107cc5: 9d popf 107cc6: 31 c0 xor %eax,%eax
return 0; }
107cc8: 8d 65 f4 lea -0xc(%ebp),%esp 107ccb: 5b pop %ebx 107ccc: 5e pop %esi 107ccd: 5f pop %edi 107cce: c9 leave 107ccf: 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 );
107cd0: e8 97 88 00 00 call 11056c <__errno> <== NOT EXECUTED 107cd5: c7 00 11 00 00 00 movl $0x11,(%eax) <== NOT EXECUTED 107cdb: 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; }
107ce0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 107ce3: 5b pop %ebx <== NOT EXECUTED 107ce4: 5e pop %esi <== NOT EXECUTED 107ce5: 5f pop %edi <== NOT EXECUTED 107ce6: c9 leave <== NOT EXECUTED 107ce7: 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') &&
107ce8: 80 7f 01 65 cmpb $0x65,0x1(%edi)
107cec: 0f 85 19 ff ff ff jne 107c0b <devFS_mknod+0x1b> <== ALWAYS TAKEN
(path[2] == 'v') && (path[3] == '\0'))
107cf2: 80 7f 02 76 cmpb $0x76,0x2(%edi)
107cf6: 0f 85 0f ff ff ff jne 107c0b <devFS_mknod+0x1b> <== ALWAYS TAKEN
107cfc: 80 7f 03 00 cmpb $0x0,0x3(%edi)
107d00: 0f 85 05 ff ff ff jne 107c0b <devFS_mknod+0x1b>
107d06: eb be jmp 107cc6 <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 );
107d08: e8 5f 88 00 00 call 11056c <__errno> <== NOT EXECUTED 107d0d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 107d13: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 107d18: eb ae jmp 107cc8 <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 );
107d1a: e8 4d 88 00 00 call 11056c <__errno> <== NOT EXECUTED 107d1f: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 107d25: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 107d28: eb 9e jmp 107cc8 <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 );
107d2a: e8 3d 88 00 00 call 11056c <__errno> <== NOT EXECUTED 107d2f: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 107d35: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 107d38: eb 8e jmp 107cc8 <devFS_mknod+0xd8> <== NOT EXECUTED
00107d90 <devFS_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
107d90: 55 push %ebp 107d91: 89 e5 mov %esp,%ebp 107d93: 83 ec 1c sub $0x1c,%esp 107d96: 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;
107d99: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
107d9c: 89 45 ec mov %eax,-0x14(%ebp)
args.flags = iop->flags;
107d9f: 8b 40 14 mov 0x14(%eax),%eax 107da2: 89 45 f0 mov %eax,-0x10(%ebp)
args.mode = mode;
107da5: 8b 45 14 mov 0x14(%ebp),%eax 107da8: 89 45 f4 mov %eax,-0xc(%ebp)
status = rtems_io_open(
107dab: 8d 45 ec lea -0x14(%ebp),%eax 107dae: 50 push %eax 107daf: ff 72 0c pushl 0xc(%edx) 107db2: ff 72 08 pushl 0x8(%edx) 107db5: e8 4a 42 00 00 call 10c004 <rtems_io_open>
np->major, np->minor, (void *) &args ); if ( status )
107dba: 83 c4 10 add $0x10,%esp 107dbd: 85 c0 test %eax,%eax
107dbf: 75 03 jne 107dc4 <devFS_open+0x34> <== ALWAYS TAKEN
return rtems_deviceio_errno(status); return 0; }
107dc1: c9 leave 107dc2: c3 ret
107dc3: 90 nop <== NOT EXECUTED
np->major, np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status);
107dc4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107dc7: 50 push %eax <== NOT EXECUTED 107dc8: e8 2b 71 00 00 call 10eef8 <rtems_deviceio_errno> <== NOT EXECUTED 107dcd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0; }
107dd0: c9 leave <== NOT EXECUTED 107dd1: c3 ret <== NOT EXECUTED
00107dd4 <devFS_read>: ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) {
107dd4: 55 push %ebp <== NOT EXECUTED 107dd5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 107dd7: 53 push %ebx <== NOT EXECUTED 107dd8: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED 107ddb: 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;
107dde: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED
args.iop = iop;
107de1: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
args.offset = iop->offset;
107de4: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED 107de7: 8b 58 10 mov 0x10(%eax),%ebx <== NOT EXECUTED 107dea: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 107ded: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED
args.buffer = buffer;
107df0: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 107df3: 89 4d e8 mov %ecx,-0x18(%ebp) <== NOT EXECUTED
args.count = count;
107df6: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED 107df9: 89 4d ec mov %ecx,-0x14(%ebp) <== NOT EXECUTED
args.flags = iop->flags;
107dfc: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED 107dff: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
args.bytes_moved = 0;
107e02: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
status = rtems_io_read(
107e09: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED 107e0c: 50 push %eax <== NOT EXECUTED 107e0d: ff 72 0c pushl 0xc(%edx) <== NOT EXECUTED 107e10: ff 72 08 pushl 0x8(%edx) <== NOT EXECUTED 107e13: e8 38 42 00 00 call 10c050 <rtems_io_read> <== NOT EXECUTED
np->major, np->minor, (void *) &args ); if ( status )
107e18: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 107e1b: 85 c0 test %eax,%eax <== NOT EXECUTED 107e1d: 75 09 jne 107e28 <devFS_read+0x54> <== NOT EXECUTED
return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved;
107e1f: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
107e22: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 107e25: c9 leave <== NOT EXECUTED 107e26: c3 ret <== NOT EXECUTED 107e27: 90 nop <== NOT EXECUTED
np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status);
107e28: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107e2b: 50 push %eax <== NOT EXECUTED 107e2c: e8 c7 70 00 00 call 10eef8 <rtems_deviceio_errno> <== NOT EXECUTED 107e31: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return (ssize_t) args.bytes_moved; }
107e34: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 107e37: c9 leave <== NOT EXECUTED 107e38: c3 ret <== NOT EXECUTED
00107e3c <devFS_stat>: int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) {
107e3c: 55 push %ebp 107e3d: 89 e5 mov %esp,%ebp 107e3f: 53 push %ebx 107e40: 83 ec 04 sub $0x4,%esp 107e43: 8b 55 0c mov 0xc(%ebp),%edx
rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access;
107e46: 8b 45 08 mov 0x8(%ebp),%eax 107e49: 8b 00 mov (%eax),%eax
if (!the_dev)
107e4b: 85 c0 test %eax,%eax
107e4d: 74 18 je 107e67 <devFS_stat+0x2b> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
107e4f: 8b 48 0c mov 0xc(%eax),%ecx
rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major;
107e52: 8b 58 08 mov 0x8(%eax),%ebx 107e55: 89 5a 18 mov %ebx,0x18(%edx) 107e58: 89 4a 1c mov %ecx,0x1c(%edx)
buf->st_mode = the_dev->mode;
107e5b: 8b 40 10 mov 0x10(%eax),%eax 107e5e: 89 42 0c mov %eax,0xc(%edx) 107e61: 31 c0 xor %eax,%eax
return 0; }
107e63: 5a pop %edx 107e64: 5b pop %ebx 107e65: c9 leave 107e66: 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 );
107e67: e8 00 87 00 00 call 11056c <__errno> <== NOT EXECUTED 107e6c: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 107e72: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 107e77: eb ea jmp 107e63 <devFS_stat+0x27> <== NOT EXECUTED
00107e7c <devFS_write>: ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
107e7c: 55 push %ebp 107e7d: 89 e5 mov %esp,%ebp 107e7f: 53 push %ebx 107e80: 83 ec 28 sub $0x28,%esp 107e83: 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;
107e86: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
107e89: 89 45 dc mov %eax,-0x24(%ebp)
args.offset = iop->offset;
107e8c: 8b 48 0c mov 0xc(%eax),%ecx 107e8f: 8b 58 10 mov 0x10(%eax),%ebx 107e92: 89 4d e0 mov %ecx,-0x20(%ebp) 107e95: 89 5d e4 mov %ebx,-0x1c(%ebp)
args.buffer = (void *) buffer;
107e98: 8b 4d 0c mov 0xc(%ebp),%ecx 107e9b: 89 4d e8 mov %ecx,-0x18(%ebp)
args.count = count;
107e9e: 8b 4d 10 mov 0x10(%ebp),%ecx 107ea1: 89 4d ec mov %ecx,-0x14(%ebp)
args.flags = iop->flags;
107ea4: 8b 40 14 mov 0x14(%eax),%eax 107ea7: 89 45 f0 mov %eax,-0x10(%ebp)
args.bytes_moved = 0;
107eaa: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_write(
107eb1: 8d 45 dc lea -0x24(%ebp),%eax 107eb4: 50 push %eax 107eb5: ff 72 0c pushl 0xc(%edx) 107eb8: ff 72 08 pushl 0x8(%edx) 107ebb: e8 dc 41 00 00 call 10c09c <rtems_io_write>
np->major, np->minor, (void *) &args ); if ( status )
107ec0: 83 c4 10 add $0x10,%esp 107ec3: 85 c0 test %eax,%eax
107ec5: 75 09 jne 107ed0 <devFS_write+0x54> <== ALWAYS TAKEN
return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved;
107ec7: 8b 45 f4 mov -0xc(%ebp),%eax
}
107eca: 8b 5d fc mov -0x4(%ebp),%ebx 107ecd: c9 leave 107ece: c3 ret
107ecf: 90 nop <== NOT EXECUTED
np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status);
107ed0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107ed3: 50 push %eax <== NOT EXECUTED 107ed4: e8 1f 70 00 00 call 10eef8 <rtems_deviceio_errno> <== NOT EXECUTED 107ed9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return (ssize_t) args.bytes_moved; }
107edc: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 107edf: c9 leave <== NOT EXECUTED 107ee0: c3 ret <== NOT EXECUTED
00110c30 <device_close>: */ int device_close( rtems_libio_t *iop ) {
110c30: 55 push %ebp 110c31: 89 e5 mov %esp,%ebp 110c33: 83 ec 1c sub $0x1c,%esp 110c36: 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;
110c39: 8b 42 38 mov 0x38(%edx),%eax
args.iop = iop;
110c3c: 89 55 ec mov %edx,-0x14(%ebp)
args.flags = 0;
110c3f: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
args.mode = 0;
110c46: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_close(
110c4d: 8d 55 ec lea -0x14(%ebp),%edx 110c50: 52 push %edx 110c51: ff 70 54 pushl 0x54(%eax) 110c54: ff 70 50 pushl 0x50(%eax) 110c57: e8 f0 0f 00 00 call 111c4c <rtems_io_close>
the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) {
110c5c: 83 c4 10 add $0x10,%esp 110c5f: 85 c0 test %eax,%eax
110c61: 75 05 jne 110c68 <device_close+0x38> <== ALWAYS TAKEN
return rtems_deviceio_errno(status); } return 0; }
110c63: c9 leave 110c64: c3 ret
110c65: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status);
110c68: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110c6b: 50 push %eax <== NOT EXECUTED 110c6c: e8 07 15 00 00 call 112178 <rtems_deviceio_errno> <== NOT EXECUTED 110c71: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} return 0; }
110c74: c9 leave <== NOT EXECUTED 110c75: c3 ret <== NOT EXECUTED
00110b18 <device_ioctl>: int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) {
110b18: 55 push %ebp 110b19: 89 e5 mov %esp,%ebp 110b1b: 83 ec 1c sub $0x1c,%esp 110b1e: 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;
110b21: 89 45 e8 mov %eax,-0x18(%ebp)
args.command = command;
110b24: 8b 55 0c mov 0xc(%ebp),%edx 110b27: 89 55 ec mov %edx,-0x14(%ebp)
args.buffer = buffer;
110b2a: 8b 55 10 mov 0x10(%ebp),%edx 110b2d: 89 55 f0 mov %edx,-0x10(%ebp)
the_jnode = iop->file_info;
110b30: 8b 40 38 mov 0x38(%eax),%eax
status = rtems_io_control(
110b33: 8d 55 e8 lea -0x18(%ebp),%edx 110b36: 52 push %edx 110b37: ff 70 54 pushl 0x54(%eax) 110b3a: ff 70 50 pushl 0x50(%eax) 110b3d: e8 56 11 00 00 call 111c98 <rtems_io_control>
the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status )
110b42: 83 c4 10 add $0x10,%esp 110b45: 85 c0 test %eax,%eax
110b47: 75 07 jne 110b50 <device_ioctl+0x38> <== ALWAYS TAKEN
return rtems_deviceio_errno(status); return args.ioctl_return;
110b49: 8b 45 f4 mov -0xc(%ebp),%eax
}
110b4c: c9 leave 110b4d: c3 ret
110b4e: 66 90 xchg %ax,%ax <== NOT EXECUTED
the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status);
110b50: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110b53: 50 push %eax <== NOT EXECUTED 110b54: e8 1f 16 00 00 call 112178 <rtems_deviceio_errno> <== NOT EXECUTED 110b59: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return args.ioctl_return; }
110b5c: c9 leave <== NOT EXECUTED 110b5d: c3 ret <== NOT EXECUTED
00110c78 <device_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
110c78: 55 push %ebp 110c79: 89 e5 mov %esp,%ebp 110c7b: 83 ec 1c sub $0x1c,%esp 110c7e: 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;
110c81: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
110c84: 89 45 ec mov %eax,-0x14(%ebp)
args.flags = iop->flags;
110c87: 8b 40 14 mov 0x14(%eax),%eax 110c8a: 89 45 f0 mov %eax,-0x10(%ebp)
args.mode = mode;
110c8d: 8b 45 14 mov 0x14(%ebp),%eax 110c90: 89 45 f4 mov %eax,-0xc(%ebp)
status = rtems_io_open(
110c93: 8d 45 ec lea -0x14(%ebp),%eax 110c96: 50 push %eax 110c97: ff 72 54 pushl 0x54(%edx) 110c9a: ff 72 50 pushl 0x50(%edx) 110c9d: e8 42 10 00 00 call 111ce4 <rtems_io_open>
the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status )
110ca2: 83 c4 10 add $0x10,%esp 110ca5: 85 c0 test %eax,%eax
110ca7: 75 03 jne 110cac <device_open+0x34> <== ALWAYS TAKEN
return rtems_deviceio_errno(status); return 0; }
110ca9: c9 leave 110caa: c3 ret
110cab: 90 nop <== NOT EXECUTED
the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status);
110cac: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110caf: 50 push %eax <== NOT EXECUTED 110cb0: e8 c3 14 00 00 call 112178 <rtems_deviceio_errno> <== NOT EXECUTED 110cb5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0; }
110cb8: c9 leave <== NOT EXECUTED 110cb9: c3 ret <== NOT EXECUTED
00110bc8 <device_read>: ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) {
110bc8: 55 push %ebp <== NOT EXECUTED 110bc9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 110bcb: 53 push %ebx <== NOT EXECUTED 110bcc: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED 110bcf: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info;
110bd2: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED
args.iop = iop;
110bd5: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED
args.offset = iop->offset;
110bd8: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED 110bdb: 8b 58 10 mov 0x10(%eax),%ebx <== NOT EXECUTED 110bde: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 110be1: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED
args.buffer = buffer;
110be4: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 110be7: 89 4d e8 mov %ecx,-0x18(%ebp) <== NOT EXECUTED
args.count = count;
110bea: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED 110bed: 89 4d ec mov %ecx,-0x14(%ebp) <== NOT EXECUTED
args.flags = iop->flags;
110bf0: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED 110bf3: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED
args.bytes_moved = 0;
110bf6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
status = rtems_io_read(
110bfd: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED 110c00: 50 push %eax <== NOT EXECUTED 110c01: ff 72 54 pushl 0x54(%edx) <== NOT EXECUTED 110c04: ff 72 50 pushl 0x50(%edx) <== NOT EXECUTED 110c07: e8 24 11 00 00 call 111d30 <rtems_io_read> <== NOT EXECUTED
the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status )
110c0c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110c0f: 85 c0 test %eax,%eax <== NOT EXECUTED 110c11: 75 09 jne 110c1c <device_read+0x54> <== NOT EXECUTED
return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved;
110c13: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
110c16: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 110c19: c9 leave <== NOT EXECUTED 110c1a: c3 ret <== NOT EXECUTED 110c1b: 90 nop <== NOT EXECUTED
the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status);
110c1c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110c1f: 50 push %eax <== NOT EXECUTED 110c20: e8 53 15 00 00 call 112178 <rtems_deviceio_errno> <== NOT EXECUTED 110c25: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return (ssize_t) args.bytes_moved; }
110c28: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 110c2b: c9 leave <== NOT EXECUTED 110c2c: c3 ret <== NOT EXECUTED
00110b60 <device_write>: ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
110b60: 55 push %ebp 110b61: 89 e5 mov %esp,%ebp 110b63: 53 push %ebx 110b64: 83 ec 28 sub $0x28,%esp 110b67: 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;
110b6a: 8b 50 38 mov 0x38(%eax),%edx
args.iop = iop;
110b6d: 89 45 dc mov %eax,-0x24(%ebp)
args.offset = iop->offset;
110b70: 8b 48 0c mov 0xc(%eax),%ecx 110b73: 8b 58 10 mov 0x10(%eax),%ebx 110b76: 89 4d e0 mov %ecx,-0x20(%ebp) 110b79: 89 5d e4 mov %ebx,-0x1c(%ebp)
args.buffer = (void *) buffer;
110b7c: 8b 4d 0c mov 0xc(%ebp),%ecx 110b7f: 89 4d e8 mov %ecx,-0x18(%ebp)
args.count = count;
110b82: 8b 4d 10 mov 0x10(%ebp),%ecx 110b85: 89 4d ec mov %ecx,-0x14(%ebp)
args.flags = iop->flags;
110b88: 8b 40 14 mov 0x14(%eax),%eax 110b8b: 89 45 f0 mov %eax,-0x10(%ebp)
args.bytes_moved = 0;
110b8e: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
status = rtems_io_write(
110b95: 8d 45 dc lea -0x24(%ebp),%eax 110b98: 50 push %eax 110b99: ff 72 54 pushl 0x54(%edx) 110b9c: ff 72 50 pushl 0x50(%edx) 110b9f: e8 d8 11 00 00 call 111d7c <rtems_io_write>
the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status )
110ba4: 83 c4 10 add $0x10,%esp 110ba7: 85 c0 test %eax,%eax
110ba9: 75 09 jne 110bb4 <device_write+0x54> <== ALWAYS TAKEN
return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved;
110bab: 8b 45 f4 mov -0xc(%ebp),%eax
}
110bae: 8b 5d fc mov -0x4(%ebp),%ebx 110bb1: c9 leave 110bb2: c3 ret
110bb3: 90 nop <== NOT EXECUTED
the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status);
110bb4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110bb7: 50 push %eax <== NOT EXECUTED 110bb8: e8 bb 15 00 00 call 112178 <rtems_deviceio_errno> <== NOT EXECUTED 110bbd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return (ssize_t) args.bytes_moved; }
110bc0: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 110bc3: c9 leave <== NOT EXECUTED 110bc4: c3 ret <== NOT EXECUTED
00109c2c <drainOutput>: /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) {
109c2c: 55 push %ebp 109c2d: 89 e5 mov %esp,%ebp 109c2f: 53 push %ebx 109c30: 83 ec 04 sub $0x4,%esp 109c33: 89 c3 mov %eax,%ebx
rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
109c35: 8b 90 b4 00 00 00 mov 0xb4(%eax),%edx 109c3b: 85 d2 test %edx,%edx
109c3d: 74 4d je 109c8c <drainOutput+0x60> rtems_interrupt_disable (level);
109c3f: 9c pushf 109c40: fa cli 109c41: 58 pop %eax
while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {
109c42: 8b 8b 84 00 00 00 mov 0x84(%ebx),%ecx 109c48: 8b 93 80 00 00 00 mov 0x80(%ebx),%edx 109c4e: 39 d1 cmp %edx,%ecx
109c50: 74 38 je 109c8a <drainOutput+0x5e>
109c52: 66 90 xchg %ax,%ax
tty->rawOutBufState = rob_wait;
109c54: c7 83 94 00 00 00 02 movl $0x2,0x94(%ebx)
109c5b: 00 00 00 rtems_interrupt_enable (level);
109c5e: 50 push %eax 109c5f: 9d popf
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
109c60: 50 push %eax 109c61: 6a 00 push $0x0 109c63: 6a 00 push $0x0 109c65: ff b3 8c 00 00 00 pushl 0x8c(%ebx) 109c6b: e8 90 19 00 00 call 10b600 <rtems_semaphore_obtain>
RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL)
109c70: 83 c4 10 add $0x10,%esp 109c73: 85 c0 test %eax,%eax
109c75: 75 1a jne 109c91 <drainOutput+0x65> <== ALWAYS TAKEN
rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level);
109c77: 9c pushf 109c78: fa cli 109c79: 58 pop %eax
rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {
109c7a: 8b 8b 84 00 00 00 mov 0x84(%ebx),%ecx 109c80: 8b 93 80 00 00 00 mov 0x80(%ebx),%edx 109c86: 39 d1 cmp %edx,%ecx
109c88: 75 ca jne 109c54 <drainOutput+0x28> <== ALWAYS TAKEN
RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level);
109c8a: 50 push %eax 109c8b: 9d popf
} }
109c8c: 8b 5d fc mov -0x4(%ebp),%ebx 109c8f: c9 leave 109c90: 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);
109c91: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109c94: 50 push %eax <== NOT EXECUTED 109c95: e8 9e 1f 00 00 call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
00108d70 <dup2>: int dup2( int fildes, int fildes2 ) {
108d70: 55 push %ebp 108d71: 89 e5 mov %esp,%ebp 108d73: 57 push %edi 108d74: 56 push %esi 108d75: 53 push %ebx 108d76: 83 ec 64 sub $0x64,%esp 108d79: 8b 75 08 mov 0x8(%ebp),%esi 108d7c: 8b 7d 0c mov 0xc(%ebp),%edi
/* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf );
108d7f: 8d 5d a0 lea -0x60(%ebp),%ebx 108d82: 53 push %ebx 108d83: 56 push %esi 108d84: e8 bf 05 00 00 call 109348 <fstat>
if ( status == -1 )
108d89: 83 c4 10 add $0x10,%esp 108d8c: 40 inc %eax
108d8d: 75 0d jne 108d9c <dup2+0x2c> <== NEVER TAKEN
/* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 );
108d8f: b8 ff ff ff ff mov $0xffffffff,%eax
}
108d94: 8d 65 f4 lea -0xc(%ebp),%esp 108d97: 5b pop %ebx 108d98: 5e pop %esi 108d99: 5f pop %edi 108d9a: c9 leave 108d9b: c3 ret
/* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf );
108d9c: 83 ec 08 sub $0x8,%esp 108d9f: 53 push %ebx 108da0: 57 push %edi 108da1: e8 a2 05 00 00 call 109348 <fstat>
if ( status == -1 )
108da6: 83 c4 10 add $0x10,%esp 108da9: 40 inc %eax
108daa: 74 e3 je 108d8f <dup2+0x1f> <== NEVER TAKEN
/* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 );
108dac: 50 push %eax <== NOT EXECUTED 108dad: 57 push %edi <== NOT EXECUTED 108dae: 6a 00 push $0x0 <== NOT EXECUTED 108db0: 56 push %esi <== NOT EXECUTED 108db1: e8 2e 02 00 00 call 108fe4 <fcntl> <== NOT EXECUTED 108db6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108db9: eb d9 jmp 108d94 <dup2+0x24> <== NOT EXECUTED
001097a0 <echo>: /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) {
1097a0: 55 push %ebp <== NOT EXECUTED 1097a1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 1097a3: 53 push %ebx <== NOT EXECUTED 1097a4: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
1097a7: f6 42 3d 02 testb $0x2,0x3d(%edx) <== NOT EXECUTED 1097ab: 74 1b je 1097c8 <echo+0x28> <== NOT EXECUTED 1097ad: 0f b6 c8 movzbl %al,%ecx <== NOT EXECUTED 1097b0: 8b 1d a8 30 12 00 mov 0x1230a8,%ebx <== NOT EXECUTED 1097b6: f6 44 0b 01 20 testb $0x20,0x1(%ebx,%ecx,1) <== NOT EXECUTED 1097bb: 74 0b je 1097c8 <echo+0x28> <== NOT EXECUTED 1097bd: 3c 09 cmp $0x9,%al <== NOT EXECUTED 1097bf: 74 07 je 1097c8 <echo+0x28> <== NOT EXECUTED 1097c1: 3c 0a cmp $0xa,%al <== NOT EXECUTED 1097c3: 75 13 jne 1097d8 <echo+0x38> <== NOT EXECUTED 1097c5: 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);
1097c8: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 1097cb: e8 94 fe ff ff call 109664 <oproc> <== NOT EXECUTED
} }
1097d0: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 1097d3: c9 leave <== NOT EXECUTED 1097d4: c3 ret <== NOT EXECUTED 1097d5: 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] = '^';
1097d8: c6 45 f6 5e movb $0x5e,-0xa(%ebp) <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
1097dc: 83 f0 40 xor $0x40,%eax <== NOT EXECUTED 1097df: 88 45 f7 mov %al,-0x9(%ebp) <== NOT EXECUTED
rtems_termios_puts (echobuf, 2, tty);
1097e2: 50 push %eax <== NOT EXECUTED 1097e3: 52 push %edx <== NOT EXECUTED 1097e4: 6a 02 push $0x2 <== NOT EXECUTED 1097e6: 8d 45 f6 lea -0xa(%ebp),%eax <== NOT EXECUTED 1097e9: 50 push %eax <== NOT EXECUTED 1097ea: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 1097ed: e8 3e fd ff ff call 109530 <rtems_termios_puts> <== NOT EXECUTED
tty->column += 2;
1097f2: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 1097f5: 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')) {
1097f9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
tty->column += 2; } else { oproc (c, tty); } }
1097fc: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 1097ff: c9 leave <== NOT EXECUTED 109800: c3 ret <== NOT EXECUTED
0012b224 <endgrent>: fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) {
12b224: 55 push %ebp <== NOT EXECUTED 12b225: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b227: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (group_fp != NULL)
12b22a: a1 c4 da 16 00 mov 0x16dac4,%eax <== NOT EXECUTED 12b22f: 85 c0 test %eax,%eax <== NOT EXECUTED 12b231: 74 0c je 12b23f <endgrent+0x1b> <== NOT EXECUTED
fclose(group_fp);
12b233: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b236: 50 push %eax <== NOT EXECUTED 12b237: e8 0c 65 01 00 call 141748 <fclose> <== NOT EXECUTED 12b23c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12b23f: c9 leave <== NOT EXECUTED 12b240: c3 ret <== NOT EXECUTED
0012b244 <endpwent>: fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) {
12b244: 55 push %ebp <== NOT EXECUTED 12b245: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b247: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (passwd_fp != NULL)
12b24a: a1 c4 d9 16 00 mov 0x16d9c4,%eax <== NOT EXECUTED 12b24f: 85 c0 test %eax,%eax <== NOT EXECUTED 12b251: 74 0c je 12b25f <endpwent+0x1b> <== NOT EXECUTED
fclose(passwd_fp);
12b253: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b256: 50 push %eax <== NOT EXECUTED 12b257: e8 ec 64 01 00 call 141748 <fclose> <== NOT EXECUTED 12b25c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12b25f: c9 leave <== NOT EXECUTED 12b260: c3 ret <== NOT EXECUTED
00109804 <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) {
109804: 55 push %ebp <== NOT EXECUTED 109805: 89 e5 mov %esp,%ebp <== NOT EXECUTED 109807: 57 push %edi <== NOT EXECUTED 109808: 56 push %esi <== NOT EXECUTED 109809: 53 push %ebx <== NOT EXECUTED 10980a: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED 10980d: 89 c3 mov %eax,%ebx <== NOT EXECUTED 10980f: 89 d7 mov %edx,%edi <== NOT EXECUTED
if (tty->ccount == 0)
109811: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED 109814: 85 c9 test %ecx,%ecx <== NOT EXECUTED 109816: 0f 84 84 00 00 00 je 1098a0 <erase+0x9c> <== NOT EXECUTED
return; if (lineFlag) {
10981c: 85 d2 test %edx,%edx <== NOT EXECUTED 10981e: 0f 85 84 00 00 00 jne 1098a8 <erase+0xa4> <== NOT EXECUTED 109824: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED 109827: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED 10982a: eb 1d jmp 109849 <erase+0x45> <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
10982c: 80 e6 02 and $0x2,%dh <== NOT EXECUTED 10982f: 0f 85 37 01 00 00 jne 10996c <erase+0x168> <== NOT EXECUTED 109835: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (tty->column) tty->column--; } } } if (!lineFlag)
109838: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10983b: 85 d2 test %edx,%edx <== NOT EXECUTED 10983d: 74 61 je 1098a0 <erase+0x9c> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) {
10983f: 8b 4b 20 mov 0x20(%ebx),%ecx <== NOT EXECUTED 109842: 85 c9 test %ecx,%ecx <== NOT EXECUTED 109844: 74 5a je 1098a0 <erase+0x9c> <== NOT EXECUTED 109846: 8b 53 3c mov 0x3c(%ebx),%edx <== NOT EXECUTED
unsigned char c = tty->cbuf[--tty->ccount];
109849: 8b 7b 1c mov 0x1c(%ebx),%edi <== NOT EXECUTED 10984c: 49 dec %ecx <== NOT EXECUTED 10984d: 89 4b 20 mov %ecx,0x20(%ebx) <== NOT EXECUTED 109850: 8a 04 0f mov (%edi,%ecx,1),%al <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO) {
109853: f6 c2 08 test $0x8,%dl <== NOT EXECUTED 109856: 74 e0 je 109838 <erase+0x34> <== NOT EXECUTED
if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {
109858: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED 10985b: 85 f6 test %esi,%esi <== NOT EXECUTED 10985d: 75 09 jne 109868 <erase+0x64> <== NOT EXECUTED 10985f: f6 c2 10 test $0x10,%dl <== NOT EXECUTED 109862: 0f 84 f0 00 00 00 je 109958 <erase+0x154> <== NOT EXECUTED
echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') {
109868: 3c 09 cmp $0x9,%al <== NOT EXECUTED 10986a: 74 58 je 1098c4 <erase+0xc0> <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
10986c: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 10986f: 8d 70 01 lea 0x1(%eax),%esi <== NOT EXECUTED 109872: a1 a8 30 12 00 mov 0x1230a8,%eax <== NOT EXECUTED 109877: f6 04 30 20 testb $0x20,(%eax,%esi,1) <== NOT EXECUTED 10987b: 75 af jne 10982c <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);
10987d: 51 push %ecx <== NOT EXECUTED 10987e: 53 push %ebx <== NOT EXECUTED 10987f: 6a 03 push $0x3 <== NOT EXECUTED 109881: 68 36 fa 11 00 push $0x11fa36 <== NOT EXECUTED 109886: e8 a5 fc ff ff call 109530 <rtems_termios_puts> <== NOT EXECUTED
if (tty->column)
10988b: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED 10988e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109891: 85 c0 test %eax,%eax <== NOT EXECUTED 109893: 74 a3 je 109838 <erase+0x34> <== NOT EXECUTED
tty->column--;
109895: 48 dec %eax <== NOT EXECUTED 109896: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
} } } if (!lineFlag)
109899: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10989c: 85 d2 test %edx,%edx <== NOT EXECUTED 10989e: 75 9f jne 10983f <erase+0x3b> <== NOT EXECUTED
break; } }
1098a0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1098a3: 5b pop %ebx <== NOT EXECUTED 1098a4: 5e pop %esi <== NOT EXECUTED 1098a5: 5f pop %edi <== NOT EXECUTED 1098a6: c9 leave <== NOT EXECUTED 1098a7: 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)) {
1098a8: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED 1098ab: f6 c2 08 test $0x8,%dl <== NOT EXECUTED 1098ae: 0f 84 94 00 00 00 je 109948 <erase+0x144> <== NOT EXECUTED
tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) {
1098b4: f6 c2 10 test $0x10,%dl <== NOT EXECUTED 1098b7: 0f 84 eb 00 00 00 je 1099a8 <erase+0x1a4> <== NOT EXECUTED 1098bd: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED 1098c0: eb 87 jmp 109849 <erase+0x45> <== NOT EXECUTED 1098c2: 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;
1098c4: 8b 73 2c mov 0x2c(%ebx),%esi <== NOT EXECUTED
int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) {
1098c7: 85 c9 test %ecx,%ecx <== NOT EXECUTED 1098c9: 74 46 je 109911 <erase+0x10d> <== NOT EXECUTED
c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) {
1098cb: a1 a8 30 12 00 mov 0x1230a8,%eax <== NOT EXECUTED 1098d0: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED 1098d3: 31 c0 xor %eax,%eax <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOCTL)
1098d5: 81 e2 00 02 00 00 and $0x200,%edx <== NOT EXECUTED 1098db: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED 1098de: 89 5d d8 mov %ebx,-0x28(%ebp) <== NOT EXECUTED 1098e1: 8b 5d dc mov -0x24(%ebp),%ebx <== NOT EXECUTED 1098e4: eb 10 jmp 1098f6 <erase+0xf2> <== NOT EXECUTED 1098e6: 66 90 xchg %ax,%ax <== NOT EXECUTED 1098e8: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED 1098eb: 85 d2 test %edx,%edx <== NOT EXECUTED 1098ed: 74 03 je 1098f2 <erase+0xee> <== NOT EXECUTED
col += 2;
1098ef: 83 c6 02 add $0x2,%esi <== NOT EXECUTED
int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) {
1098f2: 39 c1 cmp %eax,%ecx <== NOT EXECUTED 1098f4: 74 18 je 10990e <erase+0x10a> <== NOT EXECUTED
c = tty->cbuf[i++];
1098f6: 8a 14 07 mov (%edi,%eax,1),%dl <== NOT EXECUTED 1098f9: 40 inc %eax <== NOT EXECUTED
if (c == '\t') {
1098fa: 80 fa 09 cmp $0x9,%dl <== NOT EXECUTED 1098fd: 74 41 je 109940 <erase+0x13c> <== NOT EXECUTED
col = (col | 7) + 1; } else if (iscntrl (c)) {
1098ff: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED 109902: f6 44 13 01 20 testb $0x20,0x1(%ebx,%edx,1) <== NOT EXECUTED 109907: 75 df jne 1098e8 <erase+0xe4> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++;
109909: 46 inc %esi <== NOT EXECUTED
int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) {
10990a: 39 c1 cmp %eax,%ecx <== NOT EXECUTED 10990c: 75 e8 jne 1098f6 <erase+0xf2> <== NOT EXECUTED 10990e: 8b 5d d8 mov -0x28(%ebp),%ebx <== NOT EXECUTED
} /* * Back up over the tab */ while (tty->column > col) {
109911: 3b 73 28 cmp 0x28(%ebx),%esi <== NOT EXECUTED 109914: 0f 8d 1e ff ff ff jge 109838 <erase+0x34> <== NOT EXECUTED 10991a: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
10991c: 50 push %eax <== NOT EXECUTED 10991d: 53 push %ebx <== NOT EXECUTED 10991e: 6a 01 push $0x1 <== NOT EXECUTED 109920: 68 38 fa 11 00 push $0x11fa38 <== NOT EXECUTED 109925: e8 06 fc ff ff call 109530 <rtems_termios_puts> <== NOT EXECUTED
tty->column--;
10992a: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED 10992d: 48 dec %eax <== NOT EXECUTED 10992e: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
} /* * Back up over the tab */ while (tty->column > col) {
109931: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109934: 39 c6 cmp %eax,%esi <== NOT EXECUTED 109936: 7c e4 jl 10991c <erase+0x118> <== NOT EXECUTED 109938: e9 fb fe ff ff jmp 109838 <erase+0x34> <== NOT EXECUTED 10993d: 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;
109940: 83 ce 07 or $0x7,%esi <== NOT EXECUTED 109943: 46 inc %esi <== NOT EXECUTED 109944: eb ac jmp 1098f2 <erase+0xee> <== NOT EXECUTED 109946: 66 90 xchg %ax,%ax <== NOT EXECUTED
{ if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0;
109948: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) <== NOT EXECUTED
} } if (!lineFlag) break; } }
10994f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109952: 5b pop %ebx <== NOT EXECUTED 109953: 5e pop %esi <== NOT EXECUTED 109954: 5f pop %edi <== NOT EXECUTED 109955: c9 leave <== NOT EXECUTED 109956: c3 ret <== NOT EXECUTED 109957: 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);
109958: 0f b6 43 43 movzbl 0x43(%ebx),%eax <== NOT EXECUTED 10995c: 89 da mov %ebx,%edx <== NOT EXECUTED
} } if (!lineFlag) break; } }
10995e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109961: 5b pop %ebx <== NOT EXECUTED 109962: 5e pop %esi <== NOT EXECUTED 109963: 5f pop %edi <== NOT EXECUTED 109964: 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);
109965: e9 36 fe ff ff jmp 1097a0 <echo> <== NOT EXECUTED 10996a: 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);
10996c: 57 push %edi <== NOT EXECUTED 10996d: 53 push %ebx <== NOT EXECUTED 10996e: 6a 03 push $0x3 <== NOT EXECUTED 109970: 68 36 fa 11 00 push $0x11fa36 <== NOT EXECUTED 109975: e8 b6 fb ff ff call 109530 <rtems_termios_puts> <== NOT EXECUTED
if (tty->column)
10997a: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED 10997d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109980: 85 c0 test %eax,%eax <== NOT EXECUTED 109982: 74 04 je 109988 <erase+0x184> <== NOT EXECUTED
tty->column--;
109984: 48 dec %eax <== NOT EXECUTED 109985: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED
} if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {
109988: a1 a8 30 12 00 mov 0x1230a8,%eax <== NOT EXECUTED 10998d: f6 04 30 20 testb $0x20,(%eax,%esi,1) <== NOT EXECUTED 109991: 0f 84 e6 fe ff ff je 10987d <erase+0x79> <== NOT EXECUTED 109997: f6 43 3d 02 testb $0x2,0x3d(%ebx) <== NOT EXECUTED 10999b: 0f 85 dc fe ff ff jne 10987d <erase+0x79> <== NOT EXECUTED 1099a1: e9 92 fe ff ff jmp 109838 <erase+0x34> <== NOT EXECUTED 1099a6: 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;
1099a8: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) <== NOT EXECUTED
echo (tty->termios.c_cc[VKILL], tty);
1099af: 0f b6 40 44 movzbl 0x44(%eax),%eax <== NOT EXECUTED 1099b3: 89 da mov %ebx,%edx <== NOT EXECUTED 1099b5: e8 e6 fd ff ff call 1097a0 <echo> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK)
1099ba: f6 43 3c 20 testb $0x20,0x3c(%ebx) <== NOT EXECUTED 1099be: 0f 84 dc fe ff ff je 1098a0 <erase+0x9c> <== NOT EXECUTED
echo ('\n', tty);
1099c4: 89 da mov %ebx,%edx <== NOT EXECUTED 1099c6: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED 1099cb: eb 91 jmp 10995e <erase+0x15a> <== NOT EXECUTED
0013c190 <fchdir>: #include <rtems/seterr.h> int fchdir( int fd ) {
13c190: 55 push %ebp <== NOT EXECUTED 13c191: 89 e5 mov %esp,%ebp <== NOT EXECUTED 13c193: 57 push %edi <== NOT EXECUTED 13c194: 56 push %esi <== NOT EXECUTED 13c195: 53 push %ebx <== NOT EXECUTED 13c196: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED 13c199: 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 );
13c19c: 3b 1d 6c 63 16 00 cmp 0x16636c,%ebx <== NOT EXECUTED 13c1a2: 0f 83 c8 00 00 00 jae 13c270 <fchdir+0xe0> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
13c1a8: c1 e3 06 shl $0x6,%ebx <== NOT EXECUTED 13c1ab: 03 1d d8 de 16 00 add 0x16ded8,%ebx <== NOT EXECUTED
rtems_libio_check_is_open(iop);
13c1b1: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 13c1b4: f6 c4 01 test $0x1,%ah <== NOT EXECUTED 13c1b7: 0f 84 b3 00 00 00 je 13c270 <fchdir+0xe0> <== NOT EXECUTED
/* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
13c1bd: a8 02 test $0x2,%al <== NOT EXECUTED 13c1bf: 0f 84 db 00 00 00 je 13c2a0 <fchdir+0x110> <== NOT EXECUTED
/* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) {
13c1c5: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED 13c1c8: 85 c0 test %eax,%eax <== NOT EXECUTED 13c1ca: 0f 84 e2 00 00 00 je 13c2b2 <fchdir+0x122> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) {
13c1d0: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED 13c1d3: 85 c0 test %eax,%eax <== NOT EXECUTED 13c1d5: 0f 84 d7 00 00 00 je 13c2b2 <fchdir+0x122> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) !=
13c1db: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 13c1de: 83 c3 18 add $0x18,%ebx <== NOT EXECUTED 13c1e1: 53 push %ebx <== NOT EXECUTED 13c1e2: ff d0 call *%eax <== NOT EXECUTED 13c1e4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 13c1e7: 48 dec %eax <== NOT EXECUTED 13c1e8: 75 72 jne 13c25c <fchdir+0xcc> <== NOT EXECUTED
* but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current;
13c1ea: a1 a4 84 16 00 mov 0x1684a4,%eax <== NOT EXECUTED 13c1ef: 8d 55 c0 lea -0x40(%ebp),%edx <== NOT EXECUTED 13c1f2: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED 13c1f5: 8d 70 04 lea 0x4(%eax),%esi <== NOT EXECUTED 13c1f8: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 13c1fd: 89 d7 mov %edx,%edi <== NOT EXECUTED 13c1ff: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
13c201: 8d 78 04 lea 0x4(%eax),%edi <== NOT EXECUTED 13c204: b1 05 mov $0x5,%cl <== NOT EXECUTED 13c206: 89 de mov %ebx,%esi <== NOT EXECUTED 13c208: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED
/* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
13c20a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 13c20d: 6a 00 push $0x0 <== NOT EXECUTED 13c20f: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED 13c212: 56 push %esi <== NOT EXECUTED 13c213: 6a 00 push $0x0 <== NOT EXECUTED 13c215: 6a 01 push $0x1 <== NOT EXECUTED 13c217: 68 1c ac 15 00 push $0x15ac1c <== NOT EXECUTED 13c21c: e8 27 fb fc ff call 10bd48 <rtems_filesystem_evaluate_path><== NOT EXECUTED 13c221: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 13c224: 85 c0 test %eax,%eax <== NOT EXECUTED 13c226: 75 5c jne 13c284 <fchdir+0xf4> <== NOT EXECUTED
/* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved );
13c228: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 13c22b: 85 c0 test %eax,%eax <== NOT EXECUTED 13c22d: 74 13 je 13c242 <fchdir+0xb2> <== NOT EXECUTED 13c22f: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 13c232: 85 c0 test %eax,%eax <== NOT EXECUTED 13c234: 74 0c je 13c242 <fchdir+0xb2> <== NOT EXECUTED 13c236: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 13c239: 8d 55 c0 lea -0x40(%ebp),%edx <== NOT EXECUTED 13c23c: 52 push %edx <== NOT EXECUTED 13c23d: ff d0 call *%eax <== NOT EXECUTED 13c23f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_current = loc;
13c242: 8b 3d a4 84 16 00 mov 0x1684a4,%edi <== NOT EXECUTED 13c248: 83 c7 04 add $0x4,%edi <== NOT EXECUTED 13c24b: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 13c250: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 13c252: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0; }
13c254: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 13c257: 5b pop %ebx <== NOT EXECUTED 13c258: 5e pop %esi <== NOT EXECUTED 13c259: 5f pop %edi <== NOT EXECUTED 13c25a: c9 leave <== NOT EXECUTED 13c25b: c3 ret <== 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 );
13c25c: e8 9b 53 00 00 call 1415fc <__errno> <== NOT EXECUTED 13c261: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED 13c267: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13c26c: eb e6 jmp 13c254 <fchdir+0xc4> <== NOT EXECUTED 13c26e: 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);
13c270: e8 87 53 00 00 call 1415fc <__errno> <== NOT EXECUTED 13c275: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 13c27b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13c280: eb d2 jmp 13c254 <fchdir+0xc4> <== NOT EXECUTED 13c282: 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;
13c284: 8b 3d a4 84 16 00 mov 0x1684a4,%edi <== NOT EXECUTED 13c28a: 83 c7 04 add $0x4,%edi <== NOT EXECUTED 13c28d: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 13c292: 8b 75 b4 mov -0x4c(%ebp),%esi <== NOT EXECUTED 13c295: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 13c297: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
13c29c: eb b6 jmp 13c254 <fchdir+0xc4> <== NOT EXECUTED 13c29e: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
13c2a0: e8 57 53 00 00 call 1415fc <__errno> <== NOT EXECUTED 13c2a5: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 13c2ab: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13c2b0: eb a2 jmp 13c254 <fchdir+0xc4> <== 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 );
13c2b2: e8 45 53 00 00 call 1415fc <__errno> <== NOT EXECUTED 13c2b7: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 13c2bd: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13c2c2: eb 90 jmp 13c254 <fchdir+0xc4> <== NOT EXECUTED
0012af18 <fchmod>: int fchmod( int fd, mode_t mode ) {
12af18: 55 push %ebp <== NOT EXECUTED 12af19: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12af1b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12af1e: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 12af21: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED
rtems_libio_t *iop; rtems_libio_check_fd( fd );
12af24: 3b 05 6c 63 16 00 cmp 0x16636c,%eax <== NOT EXECUTED 12af2a: 73 34 jae 12af60 <fchmod+0x48> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
12af2c: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 12af2f: 03 05 d8 de 16 00 add 0x16ded8,%eax <== NOT EXECUTED
rtems_libio_check_is_open(iop);
12af35: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED 12af38: f6 c6 01 test $0x1,%dh <== NOT EXECUTED 12af3b: 74 23 je 12af60 <fchmod+0x48> <== NOT EXECUTED
/* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
12af3d: 83 e2 04 and $0x4,%edx <== NOT EXECUTED 12af40: 74 32 je 12af74 <fchmod+0x5c> <== NOT EXECUTED
if ( !iop->handlers->fchmod_h )
12af42: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED 12af45: 8b 52 1c mov 0x1c(%edx),%edx <== NOT EXECUTED 12af48: 85 d2 test %edx,%edx <== NOT EXECUTED 12af4a: 74 35 je 12af81 <fchmod+0x69> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
12af4c: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED 12af4f: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED 12af52: 83 c0 18 add $0x18,%eax <== NOT EXECUTED 12af55: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 12af58: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED
}
12af5b: c9 leave <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
12af5c: ff e0 jmp *%eax <== NOT EXECUTED 12af5e: 66 90 xchg %ax,%ax <== NOT EXECUTED
{ rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop);
12af60: e8 97 66 01 00 call 1415fc <__errno> <== NOT EXECUTED 12af65: 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 ); }
12af6b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 12af70: c9 leave <== NOT EXECUTED 12af71: c3 ret <== NOT EXECUTED 12af72: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
12af74: e8 83 66 01 00 call 1415fc <__errno> <== NOT EXECUTED 12af79: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12af7f: eb ea jmp 12af6b <fchmod+0x53> <== NOT EXECUTED
if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP );
12af81: e8 76 66 01 00 call 1415fc <__errno> <== NOT EXECUTED 12af86: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12af8c: eb dd jmp 12af6b <fchmod+0x53> <== NOT EXECUTED
0012af90 <fchown>: int fchown( int fd, uid_t owner, gid_t group ) {
12af90: 55 push %ebp <== NOT EXECUTED 12af91: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12af93: 53 push %ebx <== NOT EXECUTED 12af94: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12af97: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 12af9a: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 12af9d: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
rtems_libio_t *iop; rtems_libio_check_fd( fd );
12afa0: 3b 05 6c 63 16 00 cmp 0x16636c,%eax <== NOT EXECUTED 12afa6: 73 38 jae 12afe0 <fchown+0x50> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
12afa8: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 12afab: 03 05 d8 de 16 00 add 0x16ded8,%eax <== NOT EXECUTED
rtems_libio_check_is_open(iop);
12afb1: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED 12afb4: f6 c6 01 test $0x1,%dh <== NOT EXECUTED 12afb7: 74 27 je 12afe0 <fchown+0x50> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
12afb9: 83 e2 04 and $0x4,%edx <== NOT EXECUTED 12afbc: 74 36 je 12aff4 <fchown+0x64> <== NOT EXECUTED
if ( !iop->pathinfo.ops->chown_h )
12afbe: 8b 50 24 mov 0x24(%eax),%edx <== NOT EXECUTED 12afc1: 8b 52 18 mov 0x18(%edx),%edx <== NOT EXECUTED 12afc4: 85 d2 test %edx,%edx <== NOT EXECUTED 12afc6: 74 39 je 12b001 <fchown+0x71> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group );
12afc8: 0f b7 db movzwl %bx,%ebx <== NOT EXECUTED 12afcb: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED 12afce: 0f b7 c9 movzwl %cx,%ecx <== NOT EXECUTED 12afd1: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED 12afd4: 83 c0 18 add $0x18,%eax <== NOT EXECUTED 12afd7: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
}
12afda: 59 pop %ecx <== NOT EXECUTED 12afdb: 5b pop %ebx <== NOT EXECUTED 12afdc: 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 );
12afdd: ff e2 jmp *%edx <== NOT EXECUTED 12afdf: 90 nop <== NOT EXECUTED
{ rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop);
12afe0: e8 17 66 01 00 call 1415fc <__errno> <== NOT EXECUTED 12afe5: 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 ); }
12afeb: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 12aff0: 5a pop %edx <== NOT EXECUTED 12aff1: 5b pop %ebx <== NOT EXECUTED 12aff2: c9 leave <== NOT EXECUTED 12aff3: 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 );
12aff4: e8 03 66 01 00 call 1415fc <__errno> <== NOT EXECUTED 12aff9: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12afff: eb ea jmp 12afeb <fchown+0x5b> <== NOT EXECUTED
if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP );
12b001: e8 f6 65 01 00 call 1415fc <__errno> <== NOT EXECUTED 12b006: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12b00c: eb dd jmp 12afeb <fchown+0x5b> <== NOT EXECUTED
0013c2c4 <fcntl>: int fcntl( int fd, int cmd, ... ) {
13c2c4: 55 push %ebp 13c2c5: 89 e5 mov %esp,%ebp 13c2c7: 57 push %edi 13c2c8: 56 push %esi 13c2c9: 53 push %ebx 13c2ca: 83 ec 1c sub $0x1c,%esp 13c2cd: 8b 5d 08 mov 0x8(%ebp),%ebx 13c2d0: 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, ...));
13c2d3: 8d 7d 10 lea 0x10(%ebp),%edi
int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd );
13c2d6: 8b 35 6c 63 16 00 mov 0x16636c,%esi 13c2dc: 39 f3 cmp %esi,%ebx
13c2de: 0f 83 3c 01 00 00 jae 13c420 <fcntl+0x15c> <== ALWAYS TAKEN
iop = rtems_libio_iop( fd );
13c2e4: a1 d8 de 16 00 mov 0x16ded8,%eax 13c2e9: c1 e3 06 shl $0x6,%ebx 13c2ec: 8d 1c 18 lea (%eax,%ebx,1),%ebx
rtems_libio_check_is_open(iop);
13c2ef: 8b 4b 14 mov 0x14(%ebx),%ecx 13c2f2: f6 c5 01 test $0x1,%ch
13c2f5: 0f 84 25 01 00 00 je 13c420 <fcntl+0x15c> <== ALWAYS TAKEN
/* * This switch should contain all the cases from POSIX. */ switch ( cmd ) {
13c2fb: 83 fa 09 cmp $0x9,%edx
13c2fe: 76 14 jbe 13c314 <fcntl+0x50> errno = ENOTSUP; ret = -1; break; default: errno = EINVAL;
13c300: e8 f7 52 00 00 call 1415fc <__errno> 13c305: c7 00 16 00 00 00 movl $0x16,(%eax) 13c30b: be ff ff ff ff mov $0xffffffff,%esi 13c310: eb 1a jmp 13c32c <fcntl+0x68>
13c312: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * This switch should contain all the cases from POSIX. */ switch ( cmd ) {
13c314: ff 24 95 bc 29 16 00 jmp *0x1629bc(,%edx,4)
13c31b: 90 nop <== NOT EXECUTED
errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP;
13c31c: e8 db 52 00 00 call 1415fc <__errno> 13c321: c7 00 86 00 00 00 movl $0x86,(%eax) 13c327: 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; }
13c32c: 89 f0 mov %esi,%eax 13c32e: 8d 65 f4 lea -0xc(%ebp),%esp 13c331: 5b pop %ebx 13c332: 5e pop %esi 13c333: 5f pop %edi 13c334: c9 leave 13c335: c3 ret
13c336: 66 90 xchg %ax,%ax <== NOT EXECUTED
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 ) );
13c338: 83 ec 0c sub $0xc,%esp 13c33b: ff 37 pushl (%edi) 13c33d: 89 55 e0 mov %edx,-0x20(%ebp) 13c340: e8 6f fe fc ff call 10c1b4 <rtems_libio_fcntl_flags>
/* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask);
13c345: 25 01 02 00 00 and $0x201,%eax 13c34a: 8b 4b 14 mov 0x14(%ebx),%ecx 13c34d: 81 e1 fe fd ff ff and $0xfffffdfe,%ecx 13c353: 09 c8 or %ecx,%eax 13c355: 89 43 14 mov %eax,0x14(%ebx) 13c358: 31 f6 xor %esi,%esi 13c35a: 83 c4 10 add $0x10,%esp 13c35d: 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) {
13c360: 8b 43 3c mov 0x3c(%ebx),%eax 13c363: 8b 40 30 mov 0x30(%eax),%eax 13c366: 85 c0 test %eax,%eax
13c368: 74 c2 je 13c32c <fcntl+0x68> <== ALWAYS TAKEN
int err = (*iop->handlers->fcntl_h)( cmd, iop );
13c36a: 83 ec 08 sub $0x8,%esp 13c36d: 53 push %ebx 13c36e: 52 push %edx 13c36f: ff d0 call *%eax 13c371: 89 c3 mov %eax,%ebx
if (err) {
13c373: 83 c4 10 add $0x10,%esp 13c376: 85 c0 test %eax,%eax
13c378: 74 b2 je 13c32c <fcntl+0x68> <== NEVER TAKEN
errno = err;
13c37a: e8 7d 52 00 00 call 1415fc <__errno> <== NOT EXECUTED 13c37f: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 13c381: 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; }
13c386: 89 f0 mov %esi,%eax <== NOT EXECUTED 13c388: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 13c38b: 5b pop %ebx <== NOT EXECUTED 13c38c: 5e pop %esi <== NOT EXECUTED 13c38d: 5f pop %edi <== NOT EXECUTED 13c38e: c9 leave <== NOT EXECUTED 13c38f: 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 );
13c390: 83 ec 0c sub $0xc,%esp 13c393: 51 push %ecx 13c394: 89 55 e0 mov %edx,-0x20(%ebp) 13c397: e8 2c fc fc ff call 10bfc8 <rtems_libio_to_fcntl_flags> 13c39c: 89 c6 mov %eax,%esi 13c39e: 83 c4 10 add $0x10,%esp 13c3a1: 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) {
13c3a4: 85 f6 test %esi,%esi
13c3a6: 79 b8 jns 13c360 <fcntl+0x9c> <== NEVER TAKEN
13c3a8: eb 82 jmp 13c32c <fcntl+0x68> <== NOT EXECUTED 13c3aa: 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 ) )
13c3ac: 8b 07 mov (%edi),%eax 13c3ae: 85 c0 test %eax,%eax
13c3b0: 74 52 je 13c404 <fcntl+0x140> <== ALWAYS TAKEN
iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;
13c3b2: 80 cd 08 or $0x8,%ch 13c3b5: 89 4b 14 mov %ecx,0x14(%ebx) 13c3b8: 31 f6 xor %esi,%esi 13c3ba: eb a4 jmp 13c360 <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);
13c3bc: 89 ce mov %ecx,%esi 13c3be: c1 ee 0b shr $0xb,%esi 13c3c1: 83 e6 01 and $0x1,%esi 13c3c4: eb 9a jmp 13c360 <fcntl+0x9c>
13c3c6: 66 90 xchg %ax,%ax <== NOT EXECUTED
* This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int );
13c3c8: 8b 3f mov (%edi),%edi
if ( fd2 )
13c3ca: 85 ff test %edi,%edi
13c3cc: 74 6a je 13c438 <fcntl+0x174> <== NEVER TAKEN
diop = rtems_libio_iop( fd2 );
13c3ce: 39 fe cmp %edi,%esi <== NOT EXECUTED 13c3d0: 77 42 ja 13c414 <fcntl+0x150> <== NOT EXECUTED 13c3d2: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED 13c3d9: 31 ff xor %edi,%edi <== NOT EXECUTED
ret = -1; break; } } diop->handlers = iop->handlers;
13c3db: 8b 73 3c mov 0x3c(%ebx),%esi 13c3de: 89 77 3c mov %esi,0x3c(%edi)
diop->file_info = iop->file_info;
13c3e1: 8b 73 38 mov 0x38(%ebx),%esi 13c3e4: 89 77 38 mov %esi,0x38(%edi)
diop->flags = iop->flags;
13c3e7: 89 4f 14 mov %ecx,0x14(%edi)
diop->pathinfo = iop->pathinfo;
13c3ea: 83 c7 18 add $0x18,%edi 13c3ed: 8d 73 18 lea 0x18(%ebx),%esi 13c3f0: b9 05 00 00 00 mov $0x5,%ecx 13c3f5: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
ret = (int) (diop - rtems_libio_iops);
13c3f7: 8b 75 e4 mov -0x1c(%ebp),%esi 13c3fa: 29 c6 sub %eax,%esi 13c3fc: c1 fe 06 sar $0x6,%esi 13c3ff: eb a3 jmp 13c3a4 <fcntl+0xe0>
13c401: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/ if ( va_arg( ap, int ) ) iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
13c404: 80 e5 f7 and $0xf7,%ch <== NOT EXECUTED 13c407: 89 4b 14 mov %ecx,0x14(%ebx) <== NOT EXECUTED 13c40a: 31 f6 xor %esi,%esi <== NOT EXECUTED 13c40c: e9 4f ff ff ff jmp 13c360 <fcntl+0x9c> <== NOT EXECUTED 13c411: 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 );
13c414: c1 e7 06 shl $0x6,%edi <== NOT EXECUTED 13c417: 8d 3c 38 lea (%eax,%edi,1),%edi <== NOT EXECUTED 13c41a: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED 13c41d: eb bc jmp 13c3db <fcntl+0x117> <== NOT EXECUTED 13c41f: 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);
13c420: e8 d7 51 00 00 call 1415fc <__errno> <== NOT EXECUTED 13c425: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 13c42b: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 13c430: e9 f7 fe ff ff jmp 13c32c <fcntl+0x68> <== NOT EXECUTED 13c435: 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();
13c438: 89 55 e0 mov %edx,-0x20(%ebp) 13c43b: e8 e8 fc fc ff call 10c128 <rtems_libio_allocate> 13c440: 89 c7 mov %eax,%edi
if ( diop == 0 ) {
13c442: 85 c0 test %eax,%eax 13c444: 8b 55 e0 mov -0x20(%ebp),%edx
13c447: 0f 84 34 ff ff ff je 13c381 <fcntl+0xbd> <== ALWAYS TAKEN
13c44d: 89 45 e4 mov %eax,-0x1c(%ebp) 13c450: a1 d8 de 16 00 mov 0x16ded8,%eax 13c455: 8b 4b 14 mov 0x14(%ebx),%ecx 13c458: eb 81 jmp 13c3db <fcntl+0x117>
0010919c <fdatasync>: #include <rtems/seterr.h> int fdatasync( int fd ) {
10919c: 55 push %ebp 10919d: 89 e5 mov %esp,%ebp 10919f: 83 ec 08 sub $0x8,%esp 1091a2: 8b 45 08 mov 0x8(%ebp),%eax
rtems_libio_t *iop; rtems_libio_check_fd( fd );
1091a5: 3b 05 8c 56 12 00 cmp 0x12568c,%eax
1091ab: 73 27 jae 1091d4 <fdatasync+0x38> iop = rtems_libio_iop( fd );
1091ad: c1 e0 06 shl $0x6,%eax 1091b0: 03 05 00 97 12 00 add 0x129700,%eax
rtems_libio_check_is_open(iop);
1091b6: 8b 50 14 mov 0x14(%eax),%edx 1091b9: f6 c6 01 test $0x1,%dh
1091bc: 74 16 je 1091d4 <fdatasync+0x38> <== ALWAYS TAKEN
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
1091be: 83 e2 04 and $0x4,%edx
1091c1: 74 25 je 1091e8 <fdatasync+0x4c> /* * Now process the fdatasync(). */ if ( !iop->handlers->fdatasync_h )
1091c3: 8b 50 3c mov 0x3c(%eax),%edx 1091c6: 8b 52 2c mov 0x2c(%edx),%edx 1091c9: 85 d2 test %edx,%edx
1091cb: 74 28 je 1091f5 <fdatasync+0x59> rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fdatasync_h)( iop );
1091cd: 89 45 08 mov %eax,0x8(%ebp)
}
1091d0: c9 leave
*/ if ( !iop->handlers->fdatasync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fdatasync_h)( iop );
1091d1: ff e2 jmp *%edx
1091d3: 90 nop <== NOT EXECUTED
{ rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop);
1091d4: e8 7f ba 00 00 call 114c58 <__errno> 1091d9: 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 ); }
1091df: b8 ff ff ff ff mov $0xffffffff,%eax 1091e4: c9 leave 1091e5: c3 ret
1091e6: 66 90 xchg %ax,%ax <== 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( iop, LIBIO_FLAGS_WRITE );
1091e8: e8 6b ba 00 00 call 114c58 <__errno> 1091ed: c7 00 16 00 00 00 movl $0x16,(%eax) 1091f3: eb ea jmp 1091df <fdatasync+0x43>
/* * Now process the fdatasync(). */ if ( !iop->handlers->fdatasync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP );
1091f5: e8 5e ba 00 00 call 114c58 <__errno> 1091fa: c7 00 86 00 00 00 movl $0x86,(%eax) 109200: eb dd jmp 1091df <fdatasync+0x43>
00111234 <fifo_open>: */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) {
111234: 55 push %ebp 111235: 89 e5 mov %esp,%ebp 111237: 57 push %edi 111238: 56 push %esi 111239: 53 push %ebx 11123a: 83 ec 30 sub $0x30,%esp 11123d: 8b 75 08 mov 0x8(%ebp),%esi
) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore,
111240: 6a 00 push $0x0 111242: 6a 00 push $0x0 111244: ff 35 90 4f 12 00 pushl 0x124f90 11124a: e8 b1 a3 ff ff call 10b600 <rtems_semaphore_obtain> 11124f: 83 c4 10 add $0x10,%esp 111252: 85 c0 test %eax,%eax
111254: 74 12 je 111268 <fifo_open+0x34> <== ALWAYS TAKEN
111256: bf fc ff ff ff mov $0xfffffffc,%edi
return 0; out_error: pipe_release(pipep, iop); return err; }
11125b: 89 f8 mov %edi,%eax 11125d: 8d 65 f4 lea -0xc(%ebp),%esp 111260: 5b pop %ebx 111261: 5e pop %esi 111262: 5f pop %edi 111263: c9 leave 111264: c3 ret
111265: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (rtems_semaphore_obtain(rtems_pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep;
111268: 8b 1e mov (%esi),%ebx <== NOT EXECUTED
if (pipe == NULL) {
11126a: 85 db test %ebx,%ebx <== NOT EXECUTED 11126c: 74 7e je 1112ec <fifo_open+0xb8> <== NOT EXECUTED
err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe))
11126e: 57 push %edi <== NOT EXECUTED 11126f: 6a 00 push $0x0 <== NOT EXECUTED 111271: 6a 00 push $0x0 <== NOT EXECUTED 111273: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111276: e8 85 a3 ff ff call 10b600 <rtems_semaphore_obtain><== NOT EXECUTED 11127b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11127e: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED 111281: 19 ff sbb %edi,%edi <== NOT EXECUTED 111283: f7 d7 not %edi <== NOT EXECUTED 111285: 83 e7 fc and $0xfffffffc,%edi <== NOT EXECUTED
err = -EINTR; if (*pipep == NULL) {
111288: 8b 0e mov (%esi),%ecx <== NOT EXECUTED 11128a: 85 c9 test %ecx,%ecx <== NOT EXECUTED 11128c: 0f 84 7e 02 00 00 je 111510 <fifo_open+0x2dc> <== NOT EXECUTED
else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore);
111292: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111295: ff 35 90 4f 12 00 pushl 0x124f90 <== NOT EXECUTED 11129b: e8 5c a4 ff ff call 10b6fc <rtems_semaphore_release><== NOT EXECUTED
pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err)
1112a0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1112a3: 85 ff test %edi,%edi <== NOT EXECUTED 1112a5: 75 b4 jne 11125b <fifo_open+0x27> <== NOT EXECUTED
return err; pipe = *pipep;
1112a7: 8b 1e mov (%esi),%ebx <== NOT EXECUTED
switch (LIBIO_ACCMODE(iop)) {
1112a9: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 1112ac: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED 1112af: 89 d0 mov %edx,%eax <== NOT EXECUTED 1112b1: 83 e0 06 and $0x6,%eax <== NOT EXECUTED 1112b4: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED 1112b7: 0f 84 db 01 00 00 je 111498 <fifo_open+0x264> <== NOT EXECUTED 1112bd: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED 1112c0: 0f 84 92 01 00 00 je 111458 <fifo_open+0x224> <== NOT EXECUTED 1112c6: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED 1112c9: 0f 84 0d 01 00 00 je 1113dc <fifo_open+0x1a8> <== NOT EXECUTED
if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe);
1112cf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1112d2: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 1112d5: e8 22 a4 ff ff call 10b6fc <rtems_semaphore_release><== NOT EXECUTED 1112da: 31 ff xor %edi,%edi <== NOT EXECUTED
return 0;
1112dc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
out_error: pipe_release(pipep, iop); return err; }
1112df: 89 f8 mov %edi,%eax <== NOT EXECUTED 1112e1: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1112e4: 5b pop %ebx <== NOT EXECUTED 1112e5: 5e pop %esi <== NOT EXECUTED 1112e6: 5f pop %edi <== NOT EXECUTED 1112e7: c9 leave <== NOT EXECUTED 1112e8: c3 ret <== NOT EXECUTED 1112e9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{ static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t));
1112ec: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1112ef: 6a 34 push $0x34 <== NOT EXECUTED 1112f1: e8 d6 6f ff ff call 1082cc <malloc> <== NOT EXECUTED 1112f6: 89 c2 mov %eax,%edx <== NOT EXECUTED 1112f8: 89 c3 mov %eax,%ebx <== NOT EXECUTED
if (pipe == NULL)
1112fa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1112fd: 85 c0 test %eax,%eax <== NOT EXECUTED 1112ff: 0f 84 23 03 00 00 je 111628 <fifo_open+0x3f4> <== NOT EXECUTED
return err; memset(pipe, 0, sizeof(pipe_control_t));
111305: b9 34 00 00 00 mov $0x34,%ecx <== NOT EXECUTED 11130a: 31 c0 xor %eax,%eax <== NOT EXECUTED 11130c: 89 d7 mov %edx,%edi <== NOT EXECUTED 11130e: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
pipe->Size = PIPE_BUF;
111310: c7 42 04 00 02 00 00 movl $0x200,0x4(%edx) <== NOT EXECUTED
pipe->Buffer = malloc(pipe->Size);
111317: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11131a: 68 00 02 00 00 push $0x200 <== NOT EXECUTED 11131f: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 111322: e8 a5 6f ff ff call 1082cc <malloc> <== NOT EXECUTED 111327: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 11132a: 89 02 mov %eax,(%edx) <== NOT EXECUTED
if (! pipe->Buffer)
11132c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11132f: 85 c0 test %eax,%eax <== NOT EXECUTED 111331: 0f 84 fb 02 00 00 je 111632 <fifo_open+0x3fe> <== NOT EXECUTED
goto err_buf; err = -EINTR; if (rtems_barrier_create(
111337: 8d 43 2c lea 0x2c(%ebx),%eax <== NOT EXECUTED 11133a: 50 push %eax <== NOT EXECUTED 11133b: 6a 00 push $0x0 <== NOT EXECUTED 11133d: 6a 00 push $0x0 <== NOT EXECUTED 11133f: 0f be 05 94 30 12 00 movsbl 0x123094,%eax <== NOT EXECUTED 111346: 0d 00 72 49 50 or $0x50497200,%eax <== NOT EXECUTED 11134b: 50 push %eax <== NOT EXECUTED 11134c: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 11134f: e8 a0 05 00 00 call 1118f4 <rtems_barrier_create> <== NOT EXECUTED 111354: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111357: 85 c0 test %eax,%eax <== NOT EXECUTED 111359: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 11135c: 0f 85 0f 02 00 00 jne 111571 <fifo_open+0x33d> <== 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(
111362: 8d 43 30 lea 0x30(%ebx),%eax <== NOT EXECUTED 111365: 50 push %eax <== NOT EXECUTED 111366: 6a 00 push $0x0 <== NOT EXECUTED 111368: 6a 00 push $0x0 <== NOT EXECUTED 11136a: 0f be 05 94 30 12 00 movsbl 0x123094,%eax <== NOT EXECUTED 111371: 0d 00 77 49 50 or $0x50497700,%eax <== NOT EXECUTED 111376: 50 push %eax <== NOT EXECUTED 111377: e8 78 05 00 00 call 1118f4 <rtems_barrier_create> <== NOT EXECUTED 11137c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11137f: 85 c0 test %eax,%eax <== NOT EXECUTED 111381: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 111384: 0f 85 d3 01 00 00 jne 11155d <fifo_open+0x329> <== 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(
11138a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11138d: 8d 43 28 lea 0x28(%ebx),%eax <== NOT EXECUTED 111390: 50 push %eax <== NOT EXECUTED 111391: 6a 00 push $0x0 <== NOT EXECUTED 111393: 6a 10 push $0x10 <== NOT EXECUTED 111395: 6a 01 push $0x1 <== NOT EXECUTED 111397: 0f be 05 94 30 12 00 movsbl 0x123094,%eax <== NOT EXECUTED 11139e: 0d 00 73 49 50 or $0x50497300,%eax <== NOT EXECUTED 1113a3: 50 push %eax <== NOT EXECUTED 1113a4: e8 df 9f ff ff call 10b388 <rtems_semaphore_create><== NOT EXECUTED 1113a9: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 1113ac: 85 c0 test %eax,%eax <== NOT EXECUTED 1113ae: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 1113b1: 0f 85 92 01 00 00 jne 111549 <fifo_open+0x315> <== NOT EXECUTED
#ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z')
1113b7: a0 94 30 12 00 mov 0x123094,%al <== NOT EXECUTED 1113bc: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 1113bf: 88 15 94 30 12 00 mov %dl,0x123094 <== NOT EXECUTED 1113c5: 3c 7a cmp $0x7a,%al <== NOT EXECUTED 1113c7: 0f 85 a1 fe ff ff jne 11126e <fifo_open+0x3a> <== NOT EXECUTED
c = 'a';
1113cd: c6 05 94 30 12 00 61 movb $0x61,0x123094 <== NOT EXECUTED 1113d4: e9 95 fe ff ff jmp 11126e <fifo_open+0x3a> <== NOT EXECUTED 1113d9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++;
1113dc: ff 43 20 incl 0x20(%ebx) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
1113df: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 1113e2: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 1113e5: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED 1113e8: 85 c0 test %eax,%eax <== NOT EXECUTED 1113ea: 0f 84 f0 01 00 00 je 1115e0 <fifo_open+0x3ac> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe); if (pipe->Writers == 0) {
1113f0: 8b 53 14 mov 0x14(%ebx),%edx <== NOT EXECUTED 1113f3: 85 d2 test %edx,%edx <== NOT EXECUTED 1113f5: 0f 85 d4 fe ff ff jne 1112cf <fifo_open+0x9b> <== NOT EXECUTED
/* Not an error */ if (LIBIO_NODELAY(iop))
1113fb: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 1113fe: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED 111402: 0f 85 c7 fe ff ff jne 1112cf <fifo_open+0x9b> <== NOT EXECUTED
break; prevCounter = pipe->writerCounter;
111408: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED 11140b: eb 20 jmp 11142d <fifo_open+0x1f9> <== NOT EXECUTED 11140d: 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))
111410: 52 push %edx <== NOT EXECUTED 111411: 6a 00 push $0x0 <== NOT EXECUTED 111413: 6a 00 push $0x0 <== NOT EXECUTED 111415: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111418: e8 e3 a1 ff ff call 10b600 <rtems_semaphore_obtain><== NOT EXECUTED 11141d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111420: 85 c0 test %eax,%eax <== NOT EXECUTED 111422: 75 27 jne 11144b <fifo_open+0x217> <== NOT EXECUTED
goto out_error; } while (prevCounter == pipe->writerCounter);
111424: 39 7b 24 cmp %edi,0x24(%ebx) <== NOT EXECUTED 111427: 0f 85 a2 fe ff ff jne 1112cf <fifo_open+0x9b> <== NOT EXECUTED
prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe);
11142d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111430: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111433: e8 c4 a2 ff ff call 10b6fc <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
111438: 59 pop %ecx <== NOT EXECUTED 111439: 58 pop %eax <== NOT EXECUTED 11143a: 6a 00 push $0x0 <== NOT EXECUTED 11143c: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 11143f: e8 64 06 00 00 call 111aa8 <rtems_barrier_wait> <== NOT EXECUTED 111444: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111447: 85 c0 test %eax,%eax <== NOT EXECUTED 111449: 74 c5 je 111410 <fifo_open+0x1dc> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0;
11144b: bf fc ff ff ff mov $0xfffffffc,%edi <== NOT EXECUTED 111450: e9 e0 00 00 00 jmp 111535 <fifo_open+0x301> <== NOT EXECUTED 111455: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
} while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++;
111458: ff 43 20 incl 0x20(%ebx) <== NOT EXECUTED
if (pipe->Readers ++ == 0)
11145b: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 11145e: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 111461: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED 111464: 85 c0 test %eax,%eax <== NOT EXECUTED 111466: 0f 84 8c 01 00 00 je 1115f8 <fifo_open+0x3c4> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++;
11146c: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
11146f: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 111472: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 111475: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED 111478: 85 c0 test %eax,%eax <== NOT EXECUTED 11147a: 0f 85 4f fe ff ff jne 1112cf <fifo_open+0x9b> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
111480: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 111483: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 111486: 50 push %eax <== NOT EXECUTED 111487: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 11148a: e8 b5 05 00 00 call 111a44 <rtems_barrier_release> <== NOT EXECUTED 11148f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111492: e9 38 fe ff ff jmp 1112cf <fifo_open+0x9b> <== NOT EXECUTED 111497: 90 nop <== NOT EXECUTED
} while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
111498: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 11149b: 85 c0 test %eax,%eax <== NOT EXECUTED 11149d: 75 09 jne 1114a8 <fifo_open+0x274> <== NOT EXECUTED 11149f: 83 e2 01 and $0x1,%edx <== NOT EXECUTED 1114a2: 0f 85 88 00 00 00 jne 111530 <fifo_open+0x2fc> <== NOT EXECUTED
err = -ENXIO; goto out_error; } pipe->writerCounter ++;
1114a8: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED
if (pipe->Writers ++ == 0)
1114ab: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 1114ae: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 1114b1: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED 1114b4: 85 c0 test %eax,%eax <== NOT EXECUTED 1114b6: 0f 84 54 01 00 00 je 111610 <fifo_open+0x3dc> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe); if (pipe->Readers == 0) {
1114bc: 8b 7b 10 mov 0x10(%ebx),%edi <== NOT EXECUTED 1114bf: 85 ff test %edi,%edi <== NOT EXECUTED 1114c1: 0f 85 08 fe ff ff jne 1112cf <fifo_open+0x9b> <== NOT EXECUTED
prevCounter = pipe->readerCounter;
1114c7: 8b 7b 20 mov 0x20(%ebx),%edi <== NOT EXECUTED 1114ca: eb 21 jmp 1114ed <fifo_open+0x2b9> <== NOT EXECUTED
err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe))
1114cc: 50 push %eax <== NOT EXECUTED 1114cd: 6a 00 push $0x0 <== NOT EXECUTED 1114cf: 6a 00 push $0x0 <== NOT EXECUTED 1114d1: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 1114d4: e8 27 a1 ff ff call 10b600 <rtems_semaphore_obtain><== NOT EXECUTED 1114d9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1114dc: 85 c0 test %eax,%eax <== NOT EXECUTED 1114de: 0f 85 67 ff ff ff jne 11144b <fifo_open+0x217> <== NOT EXECUTED
goto out_error; } while (prevCounter == pipe->readerCounter);
1114e4: 39 7b 20 cmp %edi,0x20(%ebx) <== NOT EXECUTED 1114e7: 0f 85 e2 fd ff ff jne 1112cf <fifo_open+0x9b> <== NOT EXECUTED
if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe);
1114ed: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1114f0: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 1114f3: e8 04 a2 ff ff call 10b6fc <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
1114f8: 5a pop %edx <== NOT EXECUTED 1114f9: 59 pop %ecx <== NOT EXECUTED 1114fa: 6a 00 push $0x0 <== NOT EXECUTED 1114fc: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 1114ff: e8 a4 05 00 00 call 111aa8 <rtems_barrier_wait> <== NOT EXECUTED 111504: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111507: 85 c0 test %eax,%eax <== NOT EXECUTED 111509: 74 c1 je 1114cc <fifo_open+0x298> <== NOT EXECUTED 11150b: e9 3b ff ff ff jmp 11144b <fifo_open+0x217> <== NOT EXECUTED
if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err)
111510: 85 ff test %edi,%edi <== NOT EXECUTED 111512: 0f 85 84 00 00 00 jne 11159c <fifo_open+0x368> <== NOT EXECUTED
pipe_free(pipe); else *pipep = pipe;
111518: 89 1e mov %ebx,(%esi) <== NOT EXECUTED
} out: rtems_semaphore_release(rtems_pipe_semaphore);
11151a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11151d: ff 35 90 4f 12 00 pushl 0x124f90 <== NOT EXECUTED 111523: e8 d4 a1 ff ff call 10b6fc <rtems_semaphore_release><== NOT EXECUTED 111528: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11152b: e9 77 fd ff ff jmp 1112a7 <fifo_open+0x73> <== NOT EXECUTED
} while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
111530: bf fa ff ff ff mov $0xfffffffa,%edi <== NOT EXECUTED
PIPE_UNLOCK(pipe); return 0; out_error: pipe_release(pipep, iop);
111535: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 111538: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 11153b: 56 push %esi <== NOT EXECUTED 11153c: e8 df fb ff ff call 111120 <pipe_release> <== NOT EXECUTED
return err;
111541: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111544: e9 12 fd ff ff jmp 11125b <fifo_open+0x27> <== NOT EXECUTED
if (c ++ == 'z') c = 'a'; return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier);
111549: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11154c: ff 72 30 pushl 0x30(%edx) <== NOT EXECUTED 11154f: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 111552: e8 85 04 00 00 call 1119dc <rtems_barrier_delete> <== NOT EXECUTED 111557: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11155a: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
err_wbar: rtems_barrier_delete(pipe->readBarrier);
11155d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111560: ff 72 2c pushl 0x2c(%edx) <== NOT EXECUTED 111563: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 111566: e8 71 04 00 00 call 1119dc <rtems_barrier_delete> <== NOT EXECUTED 11156b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11156e: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
err_rbar: free(pipe->Buffer);
111571: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111574: ff 32 pushl (%edx) <== NOT EXECUTED 111576: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 111579: e8 fe 6a ff ff call 10807c <free> <== NOT EXECUTED 11157e: bf fc ff ff ff mov $0xfffffffc,%edi <== NOT EXECUTED 111583: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111586: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
err_buf: free(pipe);
111589: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11158c: 52 push %edx <== NOT EXECUTED 11158d: e8 ea 6a ff ff call 10807c <free> <== NOT EXECUTED 111592: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111595: e9 f8 fc ff ff jmp 111292 <fifo_open+0x5e> <== NOT EXECUTED 11159a: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier);
11159c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11159f: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 1115a2: e8 35 04 00 00 call 1119dc <rtems_barrier_delete> <== NOT EXECUTED
rtems_barrier_delete(pipe->writeBarrier);
1115a7: 5a pop %edx <== NOT EXECUTED 1115a8: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 1115ab: e8 2c 04 00 00 call 1119dc <rtems_barrier_delete> <== NOT EXECUTED
rtems_semaphore_delete(pipe->Semaphore);
1115b0: 58 pop %eax <== NOT EXECUTED 1115b1: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 1115b4: e8 a3 9f ff ff call 10b55c <rtems_semaphore_delete><== NOT EXECUTED
free(pipe->Buffer);
1115b9: 5e pop %esi <== NOT EXECUTED 1115ba: ff 33 pushl (%ebx) <== NOT EXECUTED 1115bc: e8 bb 6a ff ff call 10807c <free> <== NOT EXECUTED
free(pipe);
1115c1: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED 1115c4: e8 b3 6a ff ff call 10807c <free> <== NOT EXECUTED
else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore);
1115c9: 59 pop %ecx <== NOT EXECUTED 1115ca: ff 35 90 4f 12 00 pushl 0x124f90 <== NOT EXECUTED 1115d0: e8 27 a1 ff ff call 10b6fc <rtems_semaphore_release><== NOT EXECUTED 1115d5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1115d8: e9 7e fc ff ff jmp 11125b <fifo_open+0x27> <== NOT EXECUTED 1115dd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe);
1115e0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1115e3: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 1115e6: 50 push %eax <== NOT EXECUTED 1115e7: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 1115ea: e8 55 04 00 00 call 111a44 <rtems_barrier_release> <== NOT EXECUTED 1115ef: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1115f2: e9 f9 fd ff ff jmp 1113f0 <fifo_open+0x1bc> <== NOT EXECUTED 1115f7: 90 nop <== NOT EXECUTED
break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe);
1115f8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1115fb: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 1115fe: 50 push %eax <== NOT EXECUTED 1115ff: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 111602: e8 3d 04 00 00 call 111a44 <rtems_barrier_release> <== NOT EXECUTED 111607: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11160a: e9 5d fe ff ff jmp 11146c <fifo_open+0x238> <== NOT EXECUTED 11160f: 90 nop <== NOT EXECUTED
goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe);
111610: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 111613: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 111616: 50 push %eax <== NOT EXECUTED 111617: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 11161a: e8 25 04 00 00 call 111a44 <rtems_barrier_release> <== NOT EXECUTED 11161f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111622: e9 95 fe ff ff jmp 1114bc <fifo_open+0x288> <== NOT EXECUTED 111627: 90 nop <== NOT EXECUTED
static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); if (pipe == NULL)
111628: bf f4 ff ff ff mov $0xfffffff4,%edi <== NOT EXECUTED 11162d: e9 60 fc ff ff jmp 111292 <fifo_open+0x5e> <== NOT EXECUTED
return err; memset(pipe, 0, sizeof(pipe_control_t)); pipe->Size = PIPE_BUF; pipe->Buffer = malloc(pipe->Size); if (! pipe->Buffer)
111632: bf f4 ff ff ff mov $0xfffffff4,%edi <== NOT EXECUTED 111637: e9 4d ff ff ff jmp 111589 <fifo_open+0x355> <== NOT EXECUTED
0012c95c <file_systems_below_this_mountpoint>: bool file_systems_below_this_mountpoint( const char *path __attribute__((unused)), rtems_filesystem_location_info_t *fs_root_loc, rtems_filesystem_mount_table_entry_t *fs_to_unmount __attribute__((unused)) ) {
12c95c: 55 push %ebp <== NOT EXECUTED 12c95d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
/* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first;
12c95f: a1 2c df 16 00 mov 0x16df2c,%eax <== NOT EXECUTED 12c964: 3d 30 df 16 00 cmp $0x16df30,%eax <== NOT EXECUTED 12c969: 74 1b je 12c986 <file_systems_below_this_mountpoint+0x2a><== NOT EXECUTED
!rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { the_mount_entry = ( rtems_filesystem_mount_table_entry_t * )the_node; if (the_mount_entry->mt_point_node.mt_entry == fs_root_loc->mt_entry ) {
12c96b: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 12c96e: 8b 52 10 mov 0x10(%edx),%edx <== NOT EXECUTED 12c971: 39 50 18 cmp %edx,0x18(%eax) <== NOT EXECUTED 12c974: 75 07 jne 12c97d <file_systems_below_this_mountpoint+0x21><== NOT EXECUTED 12c976: eb 14 jmp 12c98c <file_systems_below_this_mountpoint+0x30><== NOT EXECUTED 12c978: 39 50 18 cmp %edx,0x18(%eax) <== NOT EXECUTED 12c97b: 74 0f je 12c98c <file_systems_below_this_mountpoint+0x30><== NOT EXECUTED
* mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) {
12c97d: 8b 00 mov (%eax),%eax <== NOT EXECUTED
/* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first;
12c97f: 3d 30 df 16 00 cmp $0x16df30,%eax <== NOT EXECUTED 12c984: 75 f2 jne 12c978 <file_systems_below_this_mountpoint+0x1c><== NOT EXECUTED 12c986: 31 c0 xor %eax,%eax <== NOT EXECUTED
return true; } } return false; }
12c988: c9 leave <== NOT EXECUTED 12c989: c3 ret <== NOT EXECUTED 12c98a: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first;
12c98c: b0 01 mov $0x1,%al <== NOT EXECUTED
return true; } } return false; }
12c98e: c9 leave <== NOT EXECUTED 12c98f: c3 ret <== NOT EXECUTED
00109204 <fpathconf>: long fpathconf( int fd, int name ) {
109204: 55 push %ebp 109205: 89 e5 mov %esp,%ebp 109207: 83 ec 08 sub $0x8,%esp 10920a: 8b 45 08 mov 0x8(%ebp),%eax 10920d: 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);
109210: 3b 05 8c 56 12 00 cmp 0x12568c,%eax
109216: 0f 83 9c 00 00 00 jae 1092b8 <fpathconf+0xb4> iop = rtems_libio_iop(fd);
10921c: c1 e0 06 shl $0x6,%eax 10921f: 03 05 00 97 12 00 add 0x129700,%eax
rtems_libio_check_is_open(iop);
109225: 8b 48 14 mov 0x14(%eax),%ecx 109228: f6 c5 01 test $0x1,%ch
10922b: 0f 84 87 00 00 00 je 1092b8 <fpathconf+0xb4> <== ALWAYS TAKEN
rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ);
109231: 83 e1 02 and $0x2,%ecx
109234: 74 08 je 10923e <fpathconf+0x3a> <== ALWAYS TAKEN
/* * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;
109236: 8b 40 28 mov 0x28(%eax),%eax
switch ( name ) {
109239: 83 fa 0b cmp $0xb,%edx
10923c: 76 12 jbe 109250 <fpathconf+0x4c> break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; break; default: rtems_set_errno_and_return_minus_one( EINVAL );
10923e: e8 15 ba 00 00 call 114c58 <__errno> 109243: c7 00 16 00 00 00 movl $0x16,(%eax) 109249: b8 ff ff ff ff mov $0xffffffff,%eax
break; } return return_value; }
10924e: c9 leave 10924f: c3 ret
* Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) {
109250: ff 24 95 b8 2f 12 00 jmp *0x122fb8(,%edx,4)
109257: 90 nop <== NOT EXECUTED
break; case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; break; case _PC_PRIO_IO: return_value = the_limits->posix_prio_io;
109258: 8b 40 5c mov 0x5c(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; }
10925b: c9 leave 10925c: c3 ret
10925d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
break; case _PC_VDISABLE: return_value = the_limits->posix_vdisable; break; case _PC_ASYNC_IO: return_value = the_limits->posix_async_io;
109260: 8b 40 50 mov 0x50(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; }
109263: c9 leave 109264: c3 ret
109265: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
break; case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; break; case _PC_VDISABLE: return_value = the_limits->posix_vdisable;
109268: 8b 40 64 mov 0x64(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; }
10926b: c9 leave 10926c: c3 ret
10926d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
break; case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; break; case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc;
109270: 8b 40 58 mov 0x58(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; }
109273: c9 leave 109274: c3 ret
109275: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
break; case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; break; case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions;
109278: 8b 40 54 mov 0x54(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; }
10927b: c9 leave 10927c: c3 ret
10927d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
break; case _PC_PATH_MAX: return_value = the_limits->path_max; break; case _PC_PIPE_BUF: return_value = the_limits->pipe_buf;
109280: 8b 40 4c mov 0x4c(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; }
109283: c9 leave 109284: c3 ret
109285: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
break; case _PC_NAME_MAX: return_value = the_limits->name_max; break; case _PC_PATH_MAX: return_value = the_limits->path_max;
109288: 8b 40 48 mov 0x48(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; }
10928b: c9 leave 10928c: c3 ret
10928d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
break; case _PC_MAX_INPUT: return_value = the_limits->max_input; break; case _PC_NAME_MAX: return_value = the_limits->name_max;
109290: 8b 40 44 mov 0x44(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; }
109293: c9 leave 109294: c3 ret
109295: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
break; case _PC_MAX_CANON: return_value = the_limits->max_canon; break; case _PC_MAX_INPUT: return_value = the_limits->max_input;
109298: 8b 40 40 mov 0x40(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; }
10929b: c9 leave 10929c: c3 ret
10929d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
switch ( name ) { case _PC_LINK_MAX: return_value = the_limits->link_max; break; case _PC_MAX_CANON: return_value = the_limits->max_canon;
1092a0: 8b 40 3c mov 0x3c(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; }
1092a3: c9 leave 1092a4: c3 ret
1092a5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { case _PC_LINK_MAX: return_value = the_limits->link_max;
1092a8: 8b 40 38 mov 0x38(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; }
1092ab: c9 leave 1092ac: c3 ret
1092ad: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
break; case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io;
1092b0: 8b 40 60 mov 0x60(%eax),%eax
rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; }
1092b3: c9 leave 1092b4: c3 ret
1092b5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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);
1092b8: e8 9b b9 00 00 call 114c58 <__errno> 1092bd: c7 00 09 00 00 00 movl $0x9,(%eax) 1092c3: b8 ff ff ff ff mov $0xffffffff,%eax
rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; }
1092c8: c9 leave 1092c9: c3 ret
0010807c <free>: void free( void *ptr ) { MSBUMP(free_calls, 1);
10807c: 55 push %ebp 10807d: 89 e5 mov %esp,%ebp 10807f: 53 push %ebx 108080: 83 ec 04 sub $0x4,%esp 108083: 8b 5d 08 mov 0x8(%ebp),%ebx 108086: ff 05 ec 51 12 00 incl 0x1251ec
if ( !ptr )
10808c: 85 db test %ebx,%ebx
10808e: 74 4b je 1080db <free+0x5f> /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) &&
108090: 83 3d 20 55 12 00 03 cmpl $0x3,0x125520
108097: 74 47 je 1080e0 <free+0x64> <== NEVER TAKEN
#endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers )
108099: a1 c8 35 12 00 mov 0x1235c8,%eax 10809e: 85 c0 test %eax,%eax
1080a0: 74 0a je 1080ac <free+0x30> <== NEVER TAKEN
(*rtems_malloc_statistics_helpers->at_free)(ptr);
1080a2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1080a5: 53 push %ebx <== NOT EXECUTED 1080a6: ff 50 08 call *0x8(%eax) <== NOT EXECUTED 1080a9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {
1080ac: 83 ec 08 sub $0x8,%esp 1080af: 53 push %ebx 1080b0: ff 35 58 11 12 00 pushl 0x121158 1080b6: e8 29 4e 00 00 call 10cee4 <_Protected_heap_Free> 1080bb: 83 c4 10 add $0x10,%esp 1080be: 84 c0 test %al,%al
1080c0: 75 19 jne 1080db <free+0x5f> <== NEVER TAKEN
printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end
1080c2: a1 58 11 12 00 mov 0x121158,%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",
1080c7: ff 70 1c pushl 0x1c(%eax) <== NOT EXECUTED 1080ca: ff 70 18 pushl 0x18(%eax) <== NOT EXECUTED 1080cd: 53 push %ebx <== NOT EXECUTED 1080ce: 68 fc f9 11 00 push $0x11f9fc <== NOT EXECUTED 1080d3: e8 cc 0c 00 00 call 108da4 <printk> <== NOT EXECUTED 1080d8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } }
1080db: 8b 5d fc mov -0x4(%ebp),%ebx 1080de: c9 leave 1080df: c3 ret
/* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) &&
1080e0: e8 b7 00 00 00 call 10819c <malloc_is_system_state_OK> 1080e5: 84 c0 test %al,%al
1080e7: 75 b0 jne 108099 <free+0x1d> <== NEVER TAKEN
!malloc_is_system_state_OK() ) { malloc_deferred_free(ptr);
1080e9: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } }
1080ec: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 1080ef: 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);
1080f0: e9 e7 00 00 00 jmp 1081dc <malloc_deferred_free> <== NOT EXECUTED
0012c148 <free_user_env>: * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) {
12c148: 55 push %ebp <== NOT EXECUTED 12c149: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c14b: 53 push %ebx <== NOT EXECUTED 12c14c: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12c14f: 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
12c152: 81 fb 60 df 16 00 cmp $0x16df60,%ebx <== NOT EXECUTED 12c158: 74 42 je 12c19c <free_user_env+0x54> <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory);
12c15a: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 12c15d: 85 c0 test %eax,%eax <== NOT EXECUTED 12c15f: 74 13 je 12c174 <free_user_env+0x2c> <== NOT EXECUTED 12c161: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c164: 85 c0 test %eax,%eax <== NOT EXECUTED 12c166: 74 0c je 12c174 <free_user_env+0x2c> <== NOT EXECUTED 12c168: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c16b: 8d 53 04 lea 0x4(%ebx),%edx <== NOT EXECUTED 12c16e: 52 push %edx <== NOT EXECUTED 12c16f: ff d0 call *%eax <== NOT EXECUTED 12c171: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_freenode( &env->root_directory);
12c174: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED 12c177: 85 c0 test %eax,%eax <== NOT EXECUTED 12c179: 74 13 je 12c18e <free_user_env+0x46> <== NOT EXECUTED 12c17b: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c17e: 85 c0 test %eax,%eax <== NOT EXECUTED 12c180: 74 0c je 12c18e <free_user_env+0x46> <== NOT EXECUTED 12c182: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c185: 8d 53 18 lea 0x18(%ebx),%edx <== NOT EXECUTED 12c188: 52 push %edx <== NOT EXECUTED 12c189: ff d0 call *%eax <== NOT EXECUTED 12c18b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
free(env);
12c18e: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
} }
12c191: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12c194: c9 leave <== NOT EXECUTED
&& --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env);
12c195: e9 62 fc fd ff jmp 10bdfc <free> <== NOT EXECUTED 12c19a: 66 90 xchg %ax,%ax <== NOT EXECUTED
} }
12c19c: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12c19f: c9 leave <== NOT EXECUTED 12c1a0: c3 ret <== NOT EXECUTED
0011d700 <fstat>: int fstat( int fd, struct stat *sbuf ) {
11d700: 55 push %ebp 11d701: 89 e5 mov %esp,%ebp 11d703: 57 push %edi 11d704: 53 push %ebx 11d705: 8b 55 08 mov 0x8(%ebp),%edx 11d708: 8b 5d 0c mov 0xc(%ebp),%ebx
/* * Check to see if we were passed a valid pointer. */ if ( !sbuf )
11d70b: 85 db test %ebx,%ebx
11d70d: 74 66 je 11d775 <fstat+0x75> /* * Now process the stat() request. */ iop = rtems_libio_iop( fd );
11d70f: 3b 15 4c 11 12 00 cmp 0x12114c,%edx
11d715: 73 3d jae 11d754 <fstat+0x54>
11d717: c1 e2 06 shl $0x6,%edx 11d71a: 03 15 c0 51 12 00 add 0x1251c0,%edx
rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop);
11d720: f6 42 15 01 testb $0x1,0x15(%edx)
11d724: 74 2e je 11d754 <fstat+0x54> <== ALWAYS TAKEN
if ( !iop->handlers )
11d726: 8b 42 3c mov 0x3c(%edx),%eax 11d729: 85 c0 test %eax,%eax
11d72b: 74 27 je 11d754 <fstat+0x54> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h )
11d72d: 8b 40 18 mov 0x18(%eax),%eax 11d730: 85 c0 test %eax,%eax
11d732: 74 34 je 11d768 <fstat+0x68> <== ALWAYS TAKEN
/* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) );
11d734: b9 48 00 00 00 mov $0x48,%ecx 11d739: 31 c0 xor %eax,%eax 11d73b: 89 df mov %ebx,%edi 11d73d: f3 aa rep stos %al,%es:(%edi)
return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf );
11d73f: 8b 42 3c mov 0x3c(%edx),%eax 11d742: 89 5d 0c mov %ebx,0xc(%ebp) 11d745: 83 c2 18 add $0x18,%edx 11d748: 89 55 08 mov %edx,0x8(%ebp) 11d74b: 8b 40 18 mov 0x18(%eax),%eax
}
11d74e: 5b pop %ebx 11d74f: 5f pop %edi 11d750: 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 );
11d751: ff e0 jmp *%eax
11d753: 90 nop <== NOT EXECUTED
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 );
11d754: e8 5f 4d ff ff call 1124b8 <__errno> 11d759: 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 ); }
11d75f: b8 ff ff ff ff mov $0xffffffff,%eax 11d764: 5b pop %ebx 11d765: 5f pop %edi 11d766: c9 leave 11d767: 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 );
11d768: e8 4b 4d ff ff call 1124b8 <__errno> <== NOT EXECUTED 11d76d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11d773: eb ea jmp 11d75f <fstat+0x5f> <== NOT EXECUTED
/* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT );
11d775: e8 3e 4d ff ff call 1124b8 <__errno> 11d77a: c7 00 0e 00 00 00 movl $0xe,(%eax) 11d780: eb dd jmp 11d75f <fstat+0x5f>
0012b0ac <fsync>: #include <rtems/seterr.h> int fsync( int fd ) {
12b0ac: 55 push %ebp 12b0ad: 89 e5 mov %esp,%ebp 12b0af: 83 ec 08 sub $0x8,%esp 12b0b2: 8b 45 08 mov 0x8(%ebp),%eax
rtems_libio_t *iop; rtems_libio_check_fd( fd );
12b0b5: 3b 05 6c 63 16 00 cmp 0x16636c,%eax
12b0bb: 73 2b jae 12b0e8 <fsync+0x3c> <== ALWAYS TAKEN
iop = rtems_libio_iop( fd );
12b0bd: c1 e0 06 shl $0x6,%eax 12b0c0: 03 05 d8 de 16 00 add 0x16ded8,%eax
rtems_libio_check_is_open(iop);
12b0c6: 8b 50 14 mov 0x14(%eax),%edx 12b0c9: f6 c6 01 test $0x1,%dh
12b0cc: 74 1a je 12b0e8 <fsync+0x3c> <== ALWAYS TAKEN
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
12b0ce: 83 e2 04 and $0x4,%edx
12b0d1: 74 29 je 12b0fc <fsync+0x50> /* * Now process the fsync(). */ if ( !iop->handlers )
12b0d3: 8b 50 3c mov 0x3c(%eax),%edx 12b0d6: 85 d2 test %edx,%edx
12b0d8: 74 0e je 12b0e8 <fsync+0x3c> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h )
12b0da: 8b 52 28 mov 0x28(%edx),%edx 12b0dd: 85 d2 test %edx,%edx
12b0df: 74 28 je 12b109 <fsync+0x5d> rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop );
12b0e1: 89 45 08 mov %eax,0x8(%ebp)
}
12b0e4: 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 );
12b0e5: ff e2 jmp *%edx
12b0e7: 90 nop <== NOT EXECUTED
/* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF );
12b0e8: e8 0f 65 01 00 call 1415fc <__errno> <== NOT EXECUTED 12b0ed: 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 ); }
12b0f3: b8 ff ff ff ff mov $0xffffffff,%eax 12b0f8: c9 leave 12b0f9: c3 ret
12b0fa: 66 90 xchg %ax,%ax <== 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( iop, LIBIO_FLAGS_WRITE );
12b0fc: e8 fb 64 01 00 call 1415fc <__errno> 12b101: c7 00 16 00 00 00 movl $0x16,(%eax) 12b107: eb ea jmp 12b0f3 <fsync+0x47>
if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP );
12b109: e8 ee 64 01 00 call 1415fc <__errno> 12b10e: c7 00 86 00 00 00 movl $0x86,(%eax) 12b114: eb dd jmp 12b0f3 <fsync+0x47>
0010f8e0 <ftruncate>: int ftruncate( int fd, off_t length ) {
10f8e0: 55 push %ebp 10f8e1: 89 e5 mov %esp,%ebp 10f8e3: 57 push %edi 10f8e4: 56 push %esi 10f8e5: 53 push %ebx 10f8e6: 83 ec 3c sub $0x3c,%esp 10f8e9: 8b 5d 08 mov 0x8(%ebp),%ebx 10f8ec: 8b 45 0c mov 0xc(%ebp),%eax 10f8ef: 8b 55 10 mov 0x10(%ebp),%edx 10f8f2: 89 45 c0 mov %eax,-0x40(%ebp) 10f8f5: 89 55 c4 mov %edx,-0x3c(%ebp)
rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd );
10f8f8: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx
10f8fe: 73 5c jae 10f95c <ftruncate+0x7c> <== ALWAYS TAKEN
iop = rtems_libio_iop( fd );
10f900: c1 e3 06 shl $0x6,%ebx 10f903: 03 1d c0 51 12 00 add 0x1251c0,%ebx
rtems_libio_check_is_open(iop);
10f909: f6 43 15 01 testb $0x1,0x15(%ebx)
10f90d: 74 4d je 10f95c <ftruncate+0x7c> <== ALWAYS TAKEN
/* * Make sure we are not working on a directory */ loc = iop->pathinfo;
10f90f: 8d 45 d4 lea -0x2c(%ebp),%eax 10f912: 8d 73 18 lea 0x18(%ebx),%esi 10f915: b9 05 00 00 00 mov $0x5,%ecx 10f91a: 89 c7 mov %eax,%edi 10f91c: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
if ( !loc.ops->node_type_h )
10f91e: 8b 55 e0 mov -0x20(%ebp),%edx 10f921: 8b 52 10 mov 0x10(%edx),%edx 10f924: 85 d2 test %edx,%edx
10f926: 74 5c je 10f984 <ftruncate+0xa4> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
10f928: 83 ec 0c sub $0xc,%esp 10f92b: 50 push %eax 10f92c: ff d2 call *%edx 10f92e: 83 c4 10 add $0x10,%esp 10f931: 48 dec %eax
10f932: 74 62 je 10f996 <ftruncate+0xb6> rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
10f934: f6 43 14 04 testb $0x4,0x14(%ebx)
10f938: 74 36 je 10f970 <ftruncate+0x90> <== ALWAYS TAKEN
if ( !iop->handlers->ftruncate_h )
10f93a: 8b 43 3c mov 0x3c(%ebx),%eax 10f93d: 8b 40 20 mov 0x20(%eax),%eax 10f940: 85 c0 test %eax,%eax
10f942: 74 40 je 10f984 <ftruncate+0xa4> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length );
10f944: 52 push %edx 10f945: ff 75 c4 pushl -0x3c(%ebp) 10f948: ff 75 c0 pushl -0x40(%ebp) 10f94b: 53 push %ebx 10f94c: ff d0 call *%eax 10f94e: 83 c4 10 add $0x10,%esp
}
10f951: 8d 65 f4 lea -0xc(%ebp),%esp 10f954: 5b pop %ebx 10f955: 5e pop %esi 10f956: 5f pop %edi 10f957: c9 leave 10f958: c3 ret
10f959: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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);
10f95c: e8 57 2b 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10f961: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 10f967: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f96c: eb e3 jmp 10f951 <ftruncate+0x71> <== NOT EXECUTED 10f96e: 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 );
10f970: e8 43 2b 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10f975: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 10f97b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f980: eb cf jmp 10f951 <ftruncate+0x71> <== NOT EXECUTED 10f982: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP );
10f984: e8 2f 2b 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10f989: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10f98f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f994: eb bb jmp 10f951 <ftruncate+0x71> <== 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 );
10f996: e8 1d 2b 00 00 call 1124b8 <__errno> 10f99b: c7 00 15 00 00 00 movl $0x15,(%eax) 10f9a1: b8 ff ff ff ff mov $0xffffffff,%eax 10f9a6: eb a9 jmp 10f951 <ftruncate+0x71>
00157454 <getdents>: int getdents( int dd_fd, char *dd_buf, int dd_len ) {
157454: 55 push %ebp 157455: 89 e5 mov %esp,%ebp 157457: 57 push %edi 157458: 56 push %esi 157459: 53 push %ebx 15745a: 83 ec 2c sub $0x2c,%esp 15745d: 8b 5d 08 mov 0x8(%ebp),%ebx
/* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd );
157460: 3b 1d 6c 63 16 00 cmp 0x16636c,%ebx
157466: 72 48 jb 1574b0 <getdents+0x5c> <== NEVER TAKEN
157468: 31 db xor %ebx,%ebx <== NOT EXECUTED
/* * Make sure we are working on a directory */ loc = iop->pathinfo;
15746a: 8d 45 d4 lea -0x2c(%ebp),%eax 15746d: 8d 73 18 lea 0x18(%ebx),%esi 157470: b9 05 00 00 00 mov $0x5,%ecx 157475: 89 c7 mov %eax,%edi 157477: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
if ( !loc.ops->node_type_h )
157479: 8b 55 e0 mov -0x20(%ebp),%edx 15747c: 8b 52 10 mov 0x10(%edx),%edx 15747f: 85 d2 test %edx,%edx
157481: 74 4d je 1574d0 <getdents+0x7c> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
157483: 83 ec 0c sub $0xc,%esp 157486: 50 push %eax 157487: ff d2 call *%edx 157489: 83 c4 10 add $0x10,%esp 15748c: 48 dec %eax
15748d: 75 2d jne 1574bc <getdents+0x68> /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h )
15748f: 8b 43 3c mov 0x3c(%ebx),%eax 157492: 8b 40 08 mov 0x8(%eax),%eax 157495: 85 c0 test %eax,%eax
157497: 74 37 je 1574d0 <getdents+0x7c> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len );
157499: 52 push %edx 15749a: ff 75 10 pushl 0x10(%ebp) 15749d: ff 75 0c pushl 0xc(%ebp) 1574a0: 53 push %ebx 1574a1: ff d0 call *%eax 1574a3: 83 c4 10 add $0x10,%esp
}
1574a6: 8d 65 f4 lea -0xc(%ebp),%esp 1574a9: 5b pop %ebx 1574aa: 5e pop %esi 1574ab: 5f pop %edi 1574ac: c9 leave 1574ad: c3 ret
1574ae: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd );
1574b0: c1 e3 06 shl $0x6,%ebx 1574b3: 03 1d d8 de 16 00 add 0x16ded8,%ebx 1574b9: eb af jmp 15746a <getdents+0x16>
1574bb: 90 nop <== 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( ENOTDIR );
1574bc: e8 3b a1 fe ff call 1415fc <__errno> 1574c1: c7 00 14 00 00 00 movl $0x14,(%eax) 1574c7: b8 ff ff ff ff mov $0xffffffff,%eax 1574cc: eb d8 jmp 1574a6 <getdents+0x52>
1574ce: 66 90 xchg %ax,%ax <== NOT EXECUTED
* 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 );
1574d0: e8 27 a1 fe ff call 1415fc <__errno> <== NOT EXECUTED 1574d5: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 1574db: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 1574e0: eb c4 jmp 1574a6 <getdents+0x52> <== NOT EXECUTED
0012b200 <getgid>: * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) {
12b200: 55 push %ebp <== NOT EXECUTED 12b201: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b203: a1 a4 84 16 00 mov 0x1684a4,%eax <== NOT EXECUTED 12b208: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED
return _POSIX_types_Gid; }
12b20b: c9 leave <== NOT EXECUTED 12b20c: c3 ret <== NOT EXECUTED
0012b798 <getgr_r>: struct group *grp, char *buffer, size_t bufsize, struct group **result ) {
12b798: 55 push %ebp 12b799: 89 e5 mov %esp,%ebp 12b79b: 57 push %edi 12b79c: 56 push %esi 12b79d: 53 push %ebx 12b79e: 83 ec 1c sub $0x1c,%esp 12b7a1: 89 c3 mov %eax,%ebx 12b7a3: 89 55 e4 mov %edx,-0x1c(%ebp) 12b7a6: 89 ce mov %ecx,%esi
FILE *fp; int match; init_etc_passwd_group();
12b7a8: e8 af fe ff ff call 12b65c <init_etc_passwd_group>
if ((fp = fopen("/etc/group", "r")) == NULL) {
12b7ad: 83 ec 08 sub $0x8,%esp 12b7b0: 68 ed ad 15 00 push $0x15aded 12b7b5: 68 57 7c 15 00 push $0x157c57 12b7ba: e8 a1 67 01 00 call 141f60 <fopen> 12b7bf: 89 c7 mov %eax,%edi 12b7c1: 83 c4 10 add $0x10,%esp 12b7c4: 85 c0 test %eax,%eax
12b7c6: 75 22 jne 12b7ea <getgr_r+0x52> <== NEVER TAKEN
12b7c8: e9 8b 00 00 00 jmp 12b858 <getgr_r+0xc0> <== NOT EXECUTED 12b7cd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0);
12b7d0: 83 ec 08 sub $0x8,%esp 12b7d3: 53 push %ebx 12b7d4: ff 36 pushl (%esi) 12b7d6: e8 e1 b4 01 00 call 146cbc <strcmp> 12b7db: 83 c4 10 add $0x10,%esp 12b7de: 85 c0 test %eax,%eax 12b7e0: 0f 94 c0 sete %al 12b7e3: 0f b6 c0 movzbl %al,%eax
} else { match = (grp->gr_gid == gid); } if (match) {
12b7e6: 85 c0 test %eax,%eax
12b7e8: 75 2e jne 12b818 <getgr_r+0x80> if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) {
12b7ea: 83 ec 0c sub $0xc,%esp 12b7ed: ff 75 0c pushl 0xc(%ebp) 12b7f0: 8b 4d 08 mov 0x8(%ebp),%ecx 12b7f3: 89 f2 mov %esi,%edx 12b7f5: 89 f8 mov %edi,%eax 12b7f7: e8 d4 fb ff ff call 12b3d0 <scangr> 12b7fc: 83 c4 10 add $0x10,%esp 12b7ff: 85 c0 test %eax,%eax
12b801: 74 31 je 12b834 <getgr_r+0x9c> <== ALWAYS TAKEN
errno = EINVAL; fclose(fp); return -1; } if (name) {
12b803: 85 db test %ebx,%ebx
12b805: 75 c9 jne 12b7d0 <getgr_r+0x38> <== NEVER TAKEN
match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid);
12b807: 0f b7 46 08 movzwl 0x8(%esi),%eax <== NOT EXECUTED 12b80b: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED 12b80e: 0f 94 c0 sete %al <== NOT EXECUTED 12b811: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
} if (match) {
12b814: 85 c0 test %eax,%eax <== NOT EXECUTED 12b816: 74 d2 je 12b7ea <getgr_r+0x52> <== NOT EXECUTED
fclose(fp);
12b818: 83 ec 0c sub $0xc,%esp 12b81b: 57 push %edi 12b81c: e8 27 5f 01 00 call 141748 <fclose>
*result = grp;
12b821: 8b 45 10 mov 0x10(%ebp),%eax 12b824: 89 30 mov %esi,(%eax) 12b826: 31 c0 xor %eax,%eax
return 0;
12b828: 83 c4 10 add $0x10,%esp
} } fclose(fp); errno = EINVAL; return -1; }
12b82b: 8d 65 f4 lea -0xc(%ebp),%esp 12b82e: 5b pop %ebx 12b82f: 5e pop %esi 12b830: 5f pop %edi 12b831: c9 leave 12b832: c3 ret
12b833: 90 nop <== NOT EXECUTED
errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL;
12b834: e8 c3 5d 01 00 call 1415fc <__errno> <== NOT EXECUTED 12b839: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
fclose(fp);
12b83f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b842: 57 push %edi <== NOT EXECUTED 12b843: e8 00 5f 01 00 call 141748 <fclose> <== NOT EXECUTED 12b848: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
12b84d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} } fclose(fp); errno = EINVAL; return -1; }
12b850: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12b853: 5b pop %ebx <== NOT EXECUTED 12b854: 5e pop %esi <== NOT EXECUTED 12b855: 5f pop %edi <== NOT EXECUTED 12b856: c9 leave <== NOT EXECUTED 12b857: c3 ret <== NOT EXECUTED
int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL;
12b858: e8 9f 5d 01 00 call 1415fc <__errno> <== NOT EXECUTED 12b85d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12b863: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
12b866: eb c3 jmp 12b82b <getgr_r+0x93> <== NOT EXECUTED
0012b4e8 <getgrent>: return NULL; return p; } struct group *getgrent(void) {
12b4e8: 55 push %ebp <== NOT EXECUTED 12b4e9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b4eb: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (group_fp == NULL)
12b4ee: a1 c4 da 16 00 mov 0x16dac4,%eax <== NOT EXECUTED 12b4f3: 85 c0 test %eax,%eax <== NOT EXECUTED 12b4f5: 75 05 jne 12b4fc <getgrent+0x14> <== NOT EXECUTED
return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
12b4f7: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL; return &grent; }
12b4f9: c9 leave <== NOT EXECUTED 12b4fa: c3 ret <== NOT EXECUTED 12b4fb: 90 nop <== NOT EXECUTED
struct group *getgrent(void) { if (group_fp == NULL) return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
12b4fc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b4ff: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12b504: b9 e0 da 16 00 mov $0x16dae0,%ecx <== NOT EXECUTED 12b509: ba a8 db 16 00 mov $0x16dba8,%edx <== NOT EXECUTED 12b50e: e8 bd fe ff ff call 12b3d0 <scangr> <== NOT EXECUTED 12b513: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12b516: 85 c0 test %eax,%eax <== NOT EXECUTED 12b518: 74 dd je 12b4f7 <getgrent+0xf> <== NOT EXECUTED 12b51a: b8 a8 db 16 00 mov $0x16dba8,%eax <== NOT EXECUTED
return NULL; return &grent; }
12b51f: c9 leave <== NOT EXECUTED 12b520: c3 ret <== NOT EXECUTED
0012b894 <getgrgid>: } struct group *getgrgid( gid_t gid ) {
12b894: 55 push %ebp <== NOT EXECUTED 12b895: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b897: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
12b89a: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 12b89d: 50 push %eax <== NOT EXECUTED 12b89e: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12b8a3: 68 e0 da 16 00 push $0x16dae0 <== NOT EXECUTED 12b8a8: 68 a8 db 16 00 push $0x16dba8 <== NOT EXECUTED 12b8ad: 0f b7 45 08 movzwl 0x8(%ebp),%eax <== NOT EXECUTED 12b8b1: 50 push %eax <== NOT EXECUTED 12b8b2: e8 b1 ff ff ff call 12b868 <getgrgid_r> <== NOT EXECUTED 12b8b7: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12b8ba: 85 c0 test %eax,%eax <== NOT EXECUTED 12b8bc: 75 06 jne 12b8c4 <getgrgid+0x30> <== NOT EXECUTED
return NULL; return p;
12b8be: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
12b8c1: c9 leave <== NOT EXECUTED 12b8c2: c3 ret <== NOT EXECUTED 12b8c3: 90 nop <== NOT EXECUTED
gid_t gid ) { struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
12b8c4: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL; return p; }
12b8c6: c9 leave <== NOT EXECUTED 12b8c7: c3 ret <== NOT EXECUTED
0012b868 <getgrgid_r>: struct group *grp, char *buffer, size_t bufsize, struct group **result ) {
12b868: 55 push %ebp <== NOT EXECUTED 12b869: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b86b: 53 push %ebx <== NOT EXECUTED 12b86c: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12b86f: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 12b872: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
12b875: 0f b7 55 08 movzwl 0x8(%ebp),%edx <== NOT EXECUTED 12b879: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED 12b87c: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED 12b87f: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED 12b882: 89 5d 0c mov %ebx,0xc(%ebp) <== NOT EXECUTED 12b885: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 12b888: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
12b88a: 5b pop %ebx <== NOT EXECUTED 12b88b: 5b pop %ebx <== NOT EXECUTED 12b88c: c9 leave <== NOT EXECUTED
char *buffer, size_t bufsize, struct group **result ) { return getgr_r(NULL, gid, grp, buffer, bufsize, result);
12b88d: e9 06 ff ff ff jmp 12b798 <getgr_r> <== NOT EXECUTED
0012b8f4 <getgrnam>: } struct group *getgrnam( const char *name ) {
12b8f4: 55 push %ebp 12b8f5: 89 e5 mov %esp,%ebp 12b8f7: 83 ec 24 sub $0x24,%esp
struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p))
12b8fa: 8d 45 f4 lea -0xc(%ebp),%eax 12b8fd: 50 push %eax 12b8fe: 68 c8 00 00 00 push $0xc8 12b903: 68 e0 da 16 00 push $0x16dae0 12b908: 68 a8 db 16 00 push $0x16dba8 12b90d: ff 75 08 pushl 0x8(%ebp) 12b910: e8 b3 ff ff ff call 12b8c8 <getgrnam_r> 12b915: 83 c4 20 add $0x20,%esp 12b918: 85 c0 test %eax,%eax
12b91a: 75 08 jne 12b924 <getgrnam+0x30> <== ALWAYS TAKEN
return NULL; return p;
12b91c: 8b 45 f4 mov -0xc(%ebp),%eax
}
12b91f: c9 leave 12b920: c3 ret
12b921: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
const char *name ) { struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p))
12b924: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL; return p; }
12b926: c9 leave <== NOT EXECUTED 12b927: c3 ret <== NOT EXECUTED
0012457c <getpid>: * * 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83 */ pid_t getpid( void ) {
12457c: 55 push %ebp <== NOT EXECUTED 12457d: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return _Objects_Local_node; }
12457f: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED 124584: c9 leave <== NOT EXECUTED 124585: c3 ret <== NOT EXECUTED
0012b964 <getpw_r>: struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) {
12b964: 55 push %ebp 12b965: 89 e5 mov %esp,%ebp 12b967: 57 push %edi 12b968: 56 push %esi 12b969: 53 push %ebx 12b96a: 83 ec 1c sub $0x1c,%esp 12b96d: 89 c3 mov %eax,%ebx 12b96f: 89 55 e4 mov %edx,-0x1c(%ebp) 12b972: 89 ce mov %ecx,%esi
FILE *fp; int match; init_etc_passwd_group();
12b974: e8 e3 fc ff ff call 12b65c <init_etc_passwd_group>
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
12b979: 83 ec 08 sub $0x8,%esp 12b97c: 68 ed ad 15 00 push $0x15aded 12b981: 68 4b 7c 15 00 push $0x157c4b 12b986: e8 d5 65 01 00 call 141f60 <fopen> 12b98b: 89 c7 mov %eax,%edi 12b98d: 83 c4 10 add $0x10,%esp 12b990: 85 c0 test %eax,%eax
12b992: 75 22 jne 12b9b6 <getpw_r+0x52> <== NEVER TAKEN
12b994: e9 8b 00 00 00 jmp 12ba24 <getpw_r+0xc0> <== NOT EXECUTED 12b999: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0);
12b99c: 83 ec 08 sub $0x8,%esp 12b99f: 53 push %ebx 12b9a0: ff 36 pushl (%esi) 12b9a2: e8 15 b3 01 00 call 146cbc <strcmp> 12b9a7: 83 c4 10 add $0x10,%esp 12b9aa: 85 c0 test %eax,%eax 12b9ac: 0f 94 c0 sete %al 12b9af: 0f b6 c0 movzbl %al,%eax
} else { match = (pwd->pw_uid == uid); } if (match) {
12b9b2: 85 c0 test %eax,%eax
12b9b4: 75 2e jne 12b9e4 <getpw_r+0x80> if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) {
12b9b6: 83 ec 0c sub $0xc,%esp 12b9b9: ff 75 0c pushl 0xc(%ebp) 12b9bc: 8b 4d 08 mov 0x8(%ebp),%ecx 12b9bf: 89 f2 mov %esi,%edx 12b9c1: 89 f8 mov %edi,%eax 12b9c3: e8 5c fb ff ff call 12b524 <scanpw> 12b9c8: 83 c4 10 add $0x10,%esp 12b9cb: 85 c0 test %eax,%eax
12b9cd: 74 31 je 12ba00 <getpw_r+0x9c> <== ALWAYS TAKEN
errno = EINVAL; fclose(fp); return -1; } if (name) {
12b9cf: 85 db test %ebx,%ebx
12b9d1: 75 c9 jne 12b99c <getpw_r+0x38> <== NEVER TAKEN
match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid);
12b9d3: 0f b7 46 08 movzwl 0x8(%esi),%eax <== NOT EXECUTED 12b9d7: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED 12b9da: 0f 94 c0 sete %al <== NOT EXECUTED 12b9dd: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED
} if (match) {
12b9e0: 85 c0 test %eax,%eax <== NOT EXECUTED 12b9e2: 74 d2 je 12b9b6 <getpw_r+0x52> <== NOT EXECUTED
fclose(fp);
12b9e4: 83 ec 0c sub $0xc,%esp 12b9e7: 57 push %edi 12b9e8: e8 5b 5d 01 00 call 141748 <fclose>
*result = pwd;
12b9ed: 8b 45 10 mov 0x10(%ebp),%eax 12b9f0: 89 30 mov %esi,(%eax) 12b9f2: 31 c0 xor %eax,%eax
return 0;
12b9f4: 83 c4 10 add $0x10,%esp
} } fclose(fp); errno = EINVAL; return -1; }
12b9f7: 8d 65 f4 lea -0xc(%ebp),%esp 12b9fa: 5b pop %ebx 12b9fb: 5e pop %esi 12b9fc: 5f pop %edi 12b9fd: c9 leave 12b9fe: c3 ret
12b9ff: 90 nop <== NOT EXECUTED
errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL;
12ba00: e8 f7 5b 01 00 call 1415fc <__errno> <== NOT EXECUTED 12ba05: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED
fclose(fp);
12ba0b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12ba0e: 57 push %edi <== NOT EXECUTED 12ba0f: e8 34 5d 01 00 call 141748 <fclose> <== NOT EXECUTED 12ba14: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
12ba19: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} } fclose(fp); errno = EINVAL; return -1; }
12ba1c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12ba1f: 5b pop %ebx <== NOT EXECUTED 12ba20: 5e pop %esi <== NOT EXECUTED 12ba21: 5f pop %edi <== NOT EXECUTED 12ba22: c9 leave <== NOT EXECUTED 12ba23: c3 ret <== NOT EXECUTED
int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL;
12ba24: e8 d3 5b 01 00 call 1415fc <__errno> <== NOT EXECUTED 12ba29: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12ba2f: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
12ba32: eb c3 jmp 12b9f7 <getpw_r+0x93> <== NOT EXECUTED
0012b620 <getpwent>: return NULL; return p; } struct passwd *getpwent(void) {
12b620: 55 push %ebp <== NOT EXECUTED 12b621: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b623: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
if (passwd_fp == NULL)
12b626: a1 c4 d9 16 00 mov 0x16d9c4,%eax <== NOT EXECUTED 12b62b: 85 c0 test %eax,%eax <== NOT EXECUTED 12b62d: 75 05 jne 12b634 <getpwent+0x14> <== NOT EXECUTED
return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
12b62f: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL; return &pwent; }
12b631: c9 leave <== NOT EXECUTED 12b632: c3 ret <== NOT EXECUTED 12b633: 90 nop <== NOT EXECUTED
struct passwd *getpwent(void) { if (passwd_fp == NULL) return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
12b634: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b637: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12b63c: b9 e0 d9 16 00 mov $0x16d9e0,%ecx <== NOT EXECUTED 12b641: ba a8 da 16 00 mov $0x16daa8,%edx <== NOT EXECUTED 12b646: e8 d9 fe ff ff call 12b524 <scanpw> <== NOT EXECUTED 12b64b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12b64e: 85 c0 test %eax,%eax <== NOT EXECUTED 12b650: 74 dd je 12b62f <getpwent+0xf> <== NOT EXECUTED 12b652: b8 a8 da 16 00 mov $0x16daa8,%eax <== NOT EXECUTED
return NULL; return &pwent; }
12b657: c9 leave <== NOT EXECUTED 12b658: c3 ret <== NOT EXECUTED
0012bac0 <getpwnam>: } struct passwd *getpwnam( const char *name ) {
12bac0: 55 push %ebp 12bac1: 89 e5 mov %esp,%ebp 12bac3: 83 ec 24 sub $0x24,%esp
struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p))
12bac6: 8d 45 f4 lea -0xc(%ebp),%eax 12bac9: 50 push %eax 12baca: 68 c8 00 00 00 push $0xc8 12bacf: 68 e0 d9 16 00 push $0x16d9e0 12bad4: 68 a8 da 16 00 push $0x16daa8 12bad9: ff 75 08 pushl 0x8(%ebp) 12badc: e8 b3 ff ff ff call 12ba94 <getpwnam_r> 12bae1: 83 c4 20 add $0x20,%esp 12bae4: 85 c0 test %eax,%eax
12bae6: 75 08 jne 12baf0 <getpwnam+0x30> <== ALWAYS TAKEN
return NULL; return p;
12bae8: 8b 45 f4 mov -0xc(%ebp),%eax
}
12baeb: c9 leave 12baec: c3 ret
12baed: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
const char *name ) { struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p))
12baf0: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL; return p; }
12baf2: c9 leave <== NOT EXECUTED 12baf3: c3 ret <== NOT EXECUTED
0012ba60 <getpwuid>: } struct passwd *getpwuid( uid_t uid ) {
12ba60: 55 push %ebp <== NOT EXECUTED 12ba61: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12ba63: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED
struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
12ba66: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 12ba69: 50 push %eax <== NOT EXECUTED 12ba6a: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12ba6f: 68 e0 d9 16 00 push $0x16d9e0 <== NOT EXECUTED 12ba74: 68 a8 da 16 00 push $0x16daa8 <== NOT EXECUTED 12ba79: 0f b7 45 08 movzwl 0x8(%ebp),%eax <== NOT EXECUTED 12ba7d: 50 push %eax <== NOT EXECUTED 12ba7e: e8 b1 ff ff ff call 12ba34 <getpwuid_r> <== NOT EXECUTED 12ba83: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12ba86: 85 c0 test %eax,%eax <== NOT EXECUTED 12ba88: 75 06 jne 12ba90 <getpwuid+0x30> <== NOT EXECUTED
return NULL; return p;
12ba8a: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
}
12ba8d: c9 leave <== NOT EXECUTED 12ba8e: c3 ret <== NOT EXECUTED 12ba8f: 90 nop <== NOT EXECUTED
uid_t uid ) { struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
12ba90: 31 c0 xor %eax,%eax <== NOT EXECUTED
return NULL; return p; }
12ba92: c9 leave <== NOT EXECUTED 12ba93: c3 ret <== NOT EXECUTED
0012ba34 <getpwuid_r>: struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) {
12ba34: 55 push %ebp <== NOT EXECUTED 12ba35: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12ba37: 53 push %ebx <== NOT EXECUTED 12ba38: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12ba3b: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 12ba3e: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
12ba41: 0f b7 55 08 movzwl 0x8(%ebp),%edx <== NOT EXECUTED 12ba45: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED 12ba48: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED 12ba4b: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED 12ba4e: 89 5d 0c mov %ebx,0xc(%ebp) <== NOT EXECUTED 12ba51: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 12ba54: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
12ba56: 5b pop %ebx <== NOT EXECUTED 12ba57: 5b pop %ebx <== NOT EXECUTED 12ba58: c9 leave <== NOT EXECUTED
char *buffer, size_t bufsize, struct passwd **result ) { return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
12ba59: e9 06 ff ff ff jmp 12b964 <getpw_r> <== NOT EXECUTED
0010f9a8 <gettimeofday>: */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) {
10f9a8: 55 push %ebp 10f9a9: 89 e5 mov %esp,%ebp 10f9ab: 56 push %esi 10f9ac: 53 push %ebx 10f9ad: 83 ec 20 sub $0x20,%esp 10f9b0: 8b 5d 08 mov 0x8(%ebp),%ebx
/* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) {
10f9b3: 85 db test %ebx,%ebx
10f9b5: 74 42 je 10f9f9 <gettimeofday+0x51> <== ALWAYS TAKEN
{ ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level);
10f9b7: 9c pushf 10f9b8: fa cli 10f9b9: 5e pop %esi
_TOD_Get( &now );
10f9ba: 83 ec 0c sub $0xc,%esp 10f9bd: 8d 45 f0 lea -0x10(%ebp),%eax 10f9c0: 50 push %eax 10f9c1: e8 ae 08 00 00 call 110274 <_TOD_Get>
_ISR_Enable(level);
10f9c6: 56 push %esi 10f9c7: 9d popf
useconds = (suseconds_t)now.tv_nsec;
10f9c8: 8b 4d f4 mov -0xc(%ebp),%ecx
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec;
10f9cb: 8b 45 f0 mov -0x10(%ebp),%eax 10f9ce: 89 03 mov %eax,(%ebx)
time->tv_usec = useconds;
10f9d0: be d3 4d 62 10 mov $0x10624dd3,%esi 10f9d5: 89 c8 mov %ecx,%eax 10f9d7: f7 ee imul %esi 10f9d9: 89 45 e0 mov %eax,-0x20(%ebp) 10f9dc: 89 55 e4 mov %edx,-0x1c(%ebp) 10f9df: 8b 75 e4 mov -0x1c(%ebp),%esi 10f9e2: c1 fe 06 sar $0x6,%esi 10f9e5: 89 c8 mov %ecx,%eax 10f9e7: 99 cltd 10f9e8: 29 d6 sub %edx,%esi 10f9ea: 89 73 04 mov %esi,0x4(%ebx) 10f9ed: 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;
10f9ef: 83 c4 10 add $0x10,%esp
}
10f9f2: 8d 65 f8 lea -0x8(%ebp),%esp 10f9f5: 5b pop %ebx 10f9f6: 5e pop %esi 10f9f7: c9 leave 10f9f8: c3 ret
void * __tz __attribute__((unused)) ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT;
10f9f9: e8 ba 2a 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10f9fe: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 10fa04: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1;
10fa09: eb e7 jmp 10f9f2 <gettimeofday+0x4a> <== NOT EXECUTED
0010bf00 <getuid>: * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) {
10bf00: 55 push %ebp <== NOT EXECUTED 10bf01: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10bf03: a1 a4 84 16 00 mov 0x1684a4,%eax <== NOT EXECUTED 10bf08: 66 8b 40 32 mov 0x32(%eax),%ax <== NOT EXECUTED
return _POSIX_types_Uid; }
10bf0c: c9 leave <== NOT EXECUTED 10bf0d: c3 ret <== NOT EXECUTED
00116e9c <imfs_dir_lseek>: rtems_off64_t imfs_dir_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
116e9c: 55 push %ebp 116e9d: 89 e5 mov %esp,%ebp 116e9f: 57 push %edi 116ea0: 56 push %esi 116ea1: 53 push %ebx 116ea2: 83 ec 1c sub $0x1c,%esp 116ea5: 8b 5d 08 mov 0x8(%ebp),%ebx
switch( whence ) {
116ea8: 83 7d 14 01 cmpl $0x1,0x14(%ebp)
116eac: 76 1e jbe 116ecc <imfs_dir_lseek+0x30> break; case SEEK_END: /* Movement past the end of the directory via lseek */ /* is not a permitted operation */ default: rtems_set_errno_and_return_minus_one( EINVAL );
116eae: e8 41 07 00 00 call 1175f4 <__errno> 116eb3: c7 00 16 00 00 00 movl $0x16,(%eax) 116eb9: b8 ff ff ff ff mov $0xffffffff,%eax 116ebe: ba ff ff ff ff mov $0xffffffff,%edx
break; } return 0; }
116ec3: 8d 65 f4 lea -0xc(%ebp),%esp 116ec6: 5b pop %ebx 116ec7: 5e pop %esi 116ec8: 5f pop %edi 116ec9: c9 leave 116eca: c3 ret
116ecb: 90 nop <== NOT EXECUTED
) { switch( whence ) { case SEEK_SET: /* absolute move from the start of the file */ case SEEK_CUR: /* relative move */ iop->offset = (iop->offset/sizeof(struct dirent)) *
116ecc: 6a 00 push $0x0 116ece: 68 10 01 00 00 push $0x110 116ed3: ff 73 10 pushl 0x10(%ebx) 116ed6: ff 73 0c pushl 0xc(%ebx) 116ed9: e8 de b6 00 00 call 1225bc <__divdi3> 116ede: 83 c4 10 add $0x10,%esp 116ee1: 69 f2 10 01 00 00 imul $0x110,%edx,%esi 116ee7: b9 10 01 00 00 mov $0x110,%ecx 116eec: f7 e1 mul %ecx 116eee: 89 45 e0 mov %eax,-0x20(%ebp) 116ef1: 01 f2 add %esi,%edx 116ef3: 89 55 e4 mov %edx,-0x1c(%ebp) 116ef6: 8b 45 e0 mov -0x20(%ebp),%eax 116ef9: 8b 55 e4 mov -0x1c(%ebp),%edx 116efc: 89 43 0c mov %eax,0xc(%ebx) 116eff: 89 53 10 mov %edx,0x10(%ebx) 116f02: 31 c0 xor %eax,%eax 116f04: 31 d2 xor %edx,%edx
rtems_set_errno_and_return_minus_one( EINVAL ); break; } return 0; }
116f06: 8d 65 f4 lea -0xc(%ebp),%esp 116f09: 5b pop %ebx 116f0a: 5e pop %esi 116f0b: 5f pop %edi 116f0c: c9 leave 116f0d: c3 ret
00116db4 <imfs_dir_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
116db4: 55 push %ebp 116db5: 89 e5 mov %esp,%ebp 116db7: 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;
116dba: 8b 50 38 mov 0x38(%eax),%edx 116dbd: 83 7a 4c 01 cmpl $0x1,0x4c(%edx)
116dc1: 74 09 je 116dcc <imfs_dir_open+0x18> <== NEVER TAKEN
116dc3: 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; }
116dc8: c9 leave <== NOT EXECUTED 116dc9: c3 ret <== NOT EXECUTED 116dca: 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;
116dcc: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) 116dd3: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) 116dda: 31 c0 xor %eax,%eax
return 0; }
116ddc: c9 leave 116ddd: c3 ret
00116fec <imfs_dir_read>: ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) {
116fec: 55 push %ebp 116fed: 89 e5 mov %esp,%ebp 116fef: 57 push %edi 116ff0: 56 push %esi 116ff1: 53 push %ebx 116ff2: 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;
116ff8: 8b 55 08 mov 0x8(%ebp),%edx 116ffb: 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));
116ffe: 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;
117001: 83 c0 54 add $0x54,%eax 117004: 89 85 cc fe ff ff mov %eax,-0x134(%ebp)
the_chain = &the_jnode->info.directory.Entries; if ( rtems_chain_is_empty( the_chain ) )
11700a: 39 c3 cmp %eax,%ebx
11700c: 0f 84 2a 01 00 00 je 11713c <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;
117012: 8b 45 08 mov 0x8(%ebp),%eax 117015: 8b 40 0c mov 0xc(%eax),%eax 117018: 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);
11701e: ba f1 f0 f0 f0 mov $0xf0f0f0f1,%edx 117023: 8b 45 10 mov 0x10(%ebp),%eax 117026: f7 e2 mul %edx 117028: c1 ea 08 shr $0x8,%edx 11702b: 89 d0 mov %edx,%eax 11702d: c1 e0 04 shl $0x4,%eax 117030: c1 e2 08 shl $0x8,%edx 117033: 8d 14 10 lea (%eax,%edx,1),%edx 117036: 03 95 d0 fe ff ff add -0x130(%ebp),%edx 11703c: 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 (
117042: 85 d2 test %edx,%edx
117044: 0f 8e f2 00 00 00 jle 11713c <imfs_dir_read+0x150> <== ALWAYS TAKEN
11704a: 31 d2 xor %edx,%edx 11704c: c7 85 c8 fe ff ff 00 movl $0x0,-0x138(%ebp)
117053: 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 );
117056: 8d 85 d8 fe ff ff lea -0x128(%ebp),%eax 11705c: 89 85 b4 fe ff ff mov %eax,-0x14c(%ebp) 117062: eb 20 jmp 117084 <imfs_dir_read+0x98>
); iop->offset = iop->offset + sizeof(struct dirent); bytes_transferred = bytes_transferred + sizeof( struct dirent ); } the_node = the_node->next;
117064: 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(
117066: 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 (
11706c: 3b 95 d4 fe ff ff cmp -0x12c(%ebp),%edx
117072: 0f 8d b4 00 00 00 jge 11712c <imfs_dir_read+0x140> <== ALWAYS TAKEN
current_entry = 0; current_entry < last_entry; current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){
117078: 3b 9d cc fe ff ff cmp -0x134(%ebp),%ebx
11707e: 0f 84 a8 00 00 00 je 11712c <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 ) {
117084: 39 95 d0 fe ff ff cmp %edx,-0x130(%ebp)
11708a: 7f d8 jg 117064 <imfs_dir_read+0x78> /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry;
11708c: 89 95 dc fe ff ff mov %edx,-0x124(%ebp) 117092: 89 d0 mov %edx,%eax 117094: c1 f8 1f sar $0x1f,%eax 117097: 89 85 e0 fe ff ff mov %eax,-0x120(%ebp)
tmp_dirent.d_reclen = sizeof( struct dirent );
11709d: 66 c7 85 e4 fe ff ff movw $0x110,-0x11c(%ebp)
1170a4: 10 01 the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino;
1170a6: 8b 43 38 mov 0x38(%ebx),%eax 1170a9: 89 85 d8 fe ff ff mov %eax,-0x128(%ebp)
tmp_dirent.d_namlen = strlen( the_jnode->name );
1170af: 8d 73 0c lea 0xc(%ebx),%esi 1170b2: 31 c0 xor %eax,%eax 1170b4: b9 ff ff ff ff mov $0xffffffff,%ecx 1170b9: 89 f7 mov %esi,%edi 1170bb: f2 ae repnz scas %es:(%edi),%al 1170bd: f7 d1 not %ecx 1170bf: 49 dec %ecx 1170c0: 66 89 8d e6 fe ff ff mov %cx,-0x11a(%ebp)
strcpy( tmp_dirent.d_name, the_jnode->name );
1170c7: 83 ec 08 sub $0x8,%esp 1170ca: 56 push %esi 1170cb: 8d 85 e8 fe ff ff lea -0x118(%ebp),%eax 1170d1: 50 push %eax 1170d2: 89 95 c4 fe ff ff mov %edx,-0x13c(%ebp) 1170d8: e8 9f 0f 00 00 call 11807c <strcpy>
memcpy(
1170dd: 8b 45 0c mov 0xc(%ebp),%eax 1170e0: 03 85 c8 fe ff ff add -0x138(%ebp),%eax 1170e6: b9 44 00 00 00 mov $0x44,%ecx 1170eb: 89 c7 mov %eax,%edi 1170ed: 8b b5 b4 fe ff ff mov -0x14c(%ebp),%esi 1170f3: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent);
1170f5: 8b 45 08 mov 0x8(%ebp),%eax 1170f8: 81 40 0c 10 01 00 00 addl $0x110,0xc(%eax) 1170ff: 83 50 10 00 adcl $0x0,0x10(%eax)
bytes_transferred = bytes_transferred + sizeof( struct dirent );
117103: 81 85 c8 fe ff ff 10 addl $0x110,-0x138(%ebp)
11710a: 01 00 00
11710d: 83 c4 10 add $0x10,%esp 117110: 8b 95 c4 fe ff ff mov -0x13c(%ebp),%edx
} the_node = the_node->next;
117116: 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(
117118: 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 (
11711e: 3b 95 d4 fe ff ff cmp -0x12c(%ebp),%edx
117124: 0f 8c 4e ff ff ff jl 117078 <imfs_dir_read+0x8c> <== ALWAYS TAKEN
11712a: 66 90 xchg %ax,%ax
the_node = the_node->next; } /* Success */ return bytes_transferred; }
11712c: 8b 85 c8 fe ff ff mov -0x138(%ebp),%eax 117132: 8d 65 f4 lea -0xc(%ebp),%esp 117135: 5b pop %ebx 117136: 5e pop %esi 117137: 5f pop %edi 117138: c9 leave 117139: c3 ret
11713a: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* 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 (
11713c: c7 85 c8 fe ff ff 00 movl $0x0,-0x138(%ebp)
117143: 00 00 00 the_node = the_node->next; } /* Success */ return bytes_transferred; }
117146: 8b 85 c8 fe ff ff mov -0x138(%ebp),%eax 11714c: 8d 65 f4 lea -0xc(%ebp),%esp 11714f: 5b pop %ebx 117150: 5e pop %esi 117151: 5f pop %edi 117152: c9 leave 117153: c3 ret
00116f10 <imfs_dir_rmnod>: int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) {
116f10: 55 push %ebp 116f11: 89 e5 mov %esp,%ebp 116f13: 56 push %esi 116f14: 53 push %ebx 116f15: 83 ec 10 sub $0x10,%esp 116f18: 8b 75 0c mov 0xc(%ebp),%esi
IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access;
116f1b: 8b 1e mov (%esi),%ebx 116f1d: 8d 43 54 lea 0x54(%ebx),%eax 116f20: 39 43 50 cmp %eax,0x50(%ebx)
116f23: 0f 85 8f 00 00 00 jne 116fb8 <imfs_dir_rmnod+0xa8> /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
116f29: 8b 46 10 mov 0x10(%esi),%eax 116f2c: 3b 58 1c cmp 0x1c(%eax),%ebx
116f2f: 0f 84 97 00 00 00 je 116fcc <imfs_dir_rmnod+0xbc> /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL )
116f35: 8b 43 5c mov 0x5c(%ebx),%eax 116f38: 85 c0 test %eax,%eax
116f3a: 0f 85 8c 00 00 00 jne 116fcc <imfs_dir_rmnod+0xbc> <== ALWAYS TAKEN
/* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) {
116f40: 8b 4b 08 mov 0x8(%ebx),%ecx 116f43: 85 c9 test %ecx,%ecx
116f45: 74 13 je 116f5a <imfs_dir_rmnod+0x4a>
116f47: 83 ec 0c sub $0xc,%esp 116f4a: 53 push %ebx 116f4b: e8 60 68 ff ff call 10d7b0 <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL;
116f50: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 116f57: 83 c4 10 add $0x10,%esp
/* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--;
116f5a: 66 ff 4b 34 decw 0x34(%ebx)
IMFS_update_ctime( the_jnode );
116f5e: 83 ec 08 sub $0x8,%esp 116f61: 6a 00 push $0x0 116f63: 8d 45 f0 lea -0x10(%ebp),%eax 116f66: 50 push %eax 116f67: e8 20 25 ff ff call 10948c <gettimeofday> 116f6c: 8b 45 f0 mov -0x10(%ebp),%eax 116f6f: 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) ) {
116f72: 89 1c 24 mov %ebx,(%esp) 116f75: e8 ae d5 ff ff call 114528 <rtems_libio_is_file_open> 116f7a: 83 c4 10 add $0x10,%esp 116f7d: 85 c0 test %eax,%eax
116f7f: 75 2b jne 116fac <imfs_dir_rmnod+0x9c>
116f81: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx)
116f86: 75 24 jne 116fac <imfs_dir_rmnod+0x9c> /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access )
116f88: a1 58 92 12 00 mov 0x129258,%eax 116f8d: 8b 50 04 mov 0x4(%eax),%edx 116f90: 3b 16 cmp (%esi),%edx
116f92: 74 4c je 116fe0 <imfs_dir_rmnod+0xd0> <== ALWAYS TAKEN
/* * Free memory associated with a memory file. */ free( the_jnode );
116f94: 83 ec 0c sub $0xc,%esp 116f97: 53 push %ebx 116f98: e8 73 24 ff ff call 109410 <free> 116f9d: 31 c0 xor %eax,%eax 116f9f: 83 c4 10 add $0x10,%esp
} return 0; }
116fa2: 8d 65 f8 lea -0x8(%ebp),%esp 116fa5: 5b pop %ebx 116fa6: 5e pop %esi 116fa7: c9 leave 116fa8: c3 ret
116fa9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * Free memory associated with a memory file. */ free( the_jnode );
116fac: 31 c0 xor %eax,%eax
} return 0; }
116fae: 8d 65 f8 lea -0x8(%ebp),%esp 116fb1: 5b pop %ebx 116fb2: 5e pop %esi 116fb3: c9 leave 116fb4: c3 ret
116fb5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * 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 );
116fb8: e8 37 06 00 00 call 1175f4 <__errno> 116fbd: c7 00 5a 00 00 00 movl $0x5a,(%eax) 116fc3: b8 ff ff ff ff mov $0xffffffff,%eax 116fc8: eb e4 jmp 116fae <imfs_dir_rmnod+0x9e>
116fca: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) rtems_set_errno_and_return_minus_one( EBUSY );
116fcc: e8 23 06 00 00 call 1175f4 <__errno> 116fd1: c7 00 10 00 00 00 movl $0x10,(%eax) 116fd7: b8 ff ff ff ff mov $0xffffffff,%eax 116fdc: eb d0 jmp 116fae <imfs_dir_rmnod+0x9e>
116fde: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) rtems_filesystem_current.node_access = NULL;
116fe0: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED 116fe7: eb ab jmp 116f94 <imfs_dir_rmnod+0x84> <== NOT EXECUTED
0012b65c <init_etc_passwd_group>: /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) {
12b65c: 55 push %ebp 12b65d: 89 e5 mov %esp,%ebp 12b65f: 53 push %ebx 12b660: 83 ec 04 sub $0x4,%esp
FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted)
12b663: 80 3d c0 d9 16 00 00 cmpb $0x0,0x16d9c0
12b66a: 74 08 je 12b674 <init_etc_passwd_group+0x18> fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); } }
12b66c: 8b 5d fc mov -0x4(%ebp),%ebx 12b66f: c9 leave 12b670: c3 ret
12b671: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) return; etc_passwd_initted = 1;
12b674: c6 05 c0 d9 16 00 01 movb $0x1,0x16d9c0
mkdir("/etc", 0777);
12b67b: 83 ec 08 sub $0x8,%esp 12b67e: 68 ff 01 00 00 push $0x1ff 12b683: 68 35 7c 15 00 push $0x157c35 12b688: e8 13 0e fe ff call 10c4a0 <mkdir>
/* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) {
12b68d: 59 pop %ecx 12b68e: 5b pop %ebx 12b68f: 68 ed ad 15 00 push $0x15aded 12b694: 68 4b 7c 15 00 push $0x157c4b 12b699: e8 c2 68 01 00 call 141f60 <fopen> 12b69e: 83 c4 10 add $0x10,%esp 12b6a1: 85 c0 test %eax,%eax
12b6a3: 74 77 je 12b71c <init_etc_passwd_group+0xc0><== NEVER TAKEN
fclose(fp);
12b6a5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b6a8: 50 push %eax <== NOT EXECUTED 12b6a9: e8 9a 60 01 00 call 141748 <fclose> <== NOT EXECUTED 12b6ae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) {
12b6b1: 83 ec 08 sub $0x8,%esp 12b6b4: 68 ed ad 15 00 push $0x15aded 12b6b9: 68 57 7c 15 00 push $0x157c57 12b6be: e8 9d 68 01 00 call 141f60 <fopen> 12b6c3: 83 c4 10 add $0x10,%esp 12b6c6: 85 c0 test %eax,%eax
12b6c8: 74 12 je 12b6dc <init_etc_passwd_group+0x80><== NEVER TAKEN
fclose(fp);
12b6ca: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b6cd: 50 push %eax <== NOT EXECUTED 12b6ce: e8 75 60 01 00 call 141748 <fclose> <== NOT EXECUTED 12b6d3: 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); } }
12b6d6: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12b6d9: c9 leave <== NOT EXECUTED 12b6da: c3 ret <== NOT EXECUTED 12b6db: 90 nop <== NOT EXECUTED
* Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) {
12b6dc: 83 ec 08 sub $0x8,%esp 12b6df: 68 70 a9 15 00 push $0x15a970 12b6e4: 68 57 7c 15 00 push $0x157c57 12b6e9: e8 72 68 01 00 call 141f60 <fopen> 12b6ee: 89 c3 mov %eax,%ebx 12b6f0: 83 c4 10 add $0x10,%esp 12b6f3: 85 c0 test %eax,%eax
12b6f5: 0f 84 71 ff ff ff je 12b66c <init_etc_passwd_group+0x10><== ALWAYS TAKEN
fprintf( fp, "root:x:0:root\n"
12b6fb: 50 push %eax 12b6fc: 6a 2a push $0x2a 12b6fe: 6a 01 push $0x1 12b700: 68 d0 ee 15 00 push $0x15eed0 12b705: e8 d2 7a 01 00 call 1431dc <fwrite>
"rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp);
12b70a: 89 1c 24 mov %ebx,(%esp) 12b70d: e8 36 60 01 00 call 141748 <fclose> 12b712: 83 c4 10 add $0x10,%esp 12b715: e9 52 ff ff ff jmp 12b66c <init_etc_passwd_group+0x10>
12b71a: 66 90 xchg %ax,%ax <== NOT EXECUTED
* Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/passwd", "w")) != NULL) {
12b71c: 83 ec 08 sub $0x8,%esp 12b71f: 68 70 a9 15 00 push $0x15a970 12b724: 68 4b 7c 15 00 push $0x157c4b 12b729: e8 32 68 01 00 call 141f60 <fopen> 12b72e: 89 c3 mov %eax,%ebx 12b730: 83 c4 10 add $0x10,%esp 12b733: 85 c0 test %eax,%eax
12b735: 0f 84 76 ff ff ff je 12b6b1 <init_etc_passwd_group+0x55><== ALWAYS TAKEN
fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"
12b73b: 50 push %eax 12b73c: 6a 66 push $0x66 12b73e: 6a 01 push $0x1 12b740: 68 68 ee 15 00 push $0x15ee68 12b745: e8 92 7a 01 00 call 1431dc <fwrite>
"rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp);
12b74a: 89 1c 24 mov %ebx,(%esp) 12b74d: e8 f6 5f 01 00 call 141748 <fclose> 12b752: 83 c4 10 add $0x10,%esp 12b755: e9 57 ff ff ff jmp 12b6b1 <init_etc_passwd_group+0x55>
0010b784 <ioctl>: int ioctl( int fd, ioctl_command_t command, ... ) {
10b784: 55 push %ebp 10b785: 89 e5 mov %esp,%ebp 10b787: 83 ec 08 sub $0x8,%esp 10b78a: 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 );
10b78d: 3b 05 0c 76 12 00 cmp 0x12760c,%eax
10b793: 73 2f jae 10b7c4 <ioctl+0x40> iop = rtems_libio_iop( fd );
10b795: c1 e0 06 shl $0x6,%eax 10b798: 03 05 a0 b7 12 00 add 0x12b7a0,%eax
rtems_libio_check_is_open(iop);
10b79e: f6 40 15 01 testb $0x1,0x15(%eax)
10b7a2: 74 20 je 10b7c4 <ioctl+0x40> <== ALWAYS TAKEN
va_start(ap, command); buffer = va_arg(ap, void *);
10b7a4: 8b 4d 10 mov 0x10(%ebp),%ecx
/* * Now process the ioctl(). */ if ( !iop->handlers )
10b7a7: 8b 50 3c mov 0x3c(%eax),%edx 10b7aa: 85 d2 test %edx,%edx
10b7ac: 74 16 je 10b7c4 <ioctl+0x40> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h )
10b7ae: 8b 52 10 mov 0x10(%edx),%edx 10b7b1: 85 d2 test %edx,%edx
10b7b3: 74 21 je 10b7d6 <ioctl+0x52> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer );
10b7b5: 83 ec 04 sub $0x4,%esp 10b7b8: 51 push %ecx 10b7b9: ff 75 0c pushl 0xc(%ebp) 10b7bc: 50 push %eax 10b7bd: ff d2 call *%edx
return rc;
10b7bf: 83 c4 10 add $0x10,%esp
}
10b7c2: c9 leave 10b7c3: c3 ret
/* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF );
10b7c4: e8 4b c0 00 00 call 117814 <__errno> 10b7c9: c7 00 09 00 00 00 movl $0x9,(%eax) 10b7cf: 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; }
10b7d4: c9 leave 10b7d5: 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 );
10b7d6: e8 39 c0 00 00 call 117814 <__errno> <== NOT EXECUTED 10b7db: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10b7e1: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); return rc; }
10b7e6: c9 leave <== NOT EXECUTED 10b7e7: c3 ret <== NOT EXECUTED
001099d0 <iproc>: /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) {
1099d0: 55 push %ebp <== NOT EXECUTED 1099d1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 1099d3: 56 push %esi <== NOT EXECUTED 1099d4: 53 push %ebx <== NOT EXECUTED 1099d5: 89 d6 mov %edx,%esi <== NOT EXECUTED 1099d7: 88 c3 mov %al,%bl <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
1099d9: 8b 42 30 mov 0x30(%edx),%eax <== NOT EXECUTED 1099dc: a8 20 test $0x20,%al <== NOT EXECUTED 1099de: 74 03 je 1099e3 <iproc+0x13> <== NOT EXECUTED
c &= 0x7f;
1099e0: 83 e3 7f and $0x7f,%ebx <== NOT EXECUTED
if (tty->termios.c_iflag & IUCLC)
1099e3: f6 c4 02 test $0x2,%ah <== NOT EXECUTED 1099e6: 74 18 je 109a00 <iproc+0x30> <== NOT EXECUTED
c = tolower (c);
1099e8: 0f b6 db movzbl %bl,%ebx <== NOT EXECUTED 1099eb: 8b 15 a8 30 12 00 mov 0x1230a8,%edx <== NOT EXECUTED 1099f1: 0f be 54 1a 01 movsbl 0x1(%edx,%ebx,1),%edx <== NOT EXECUTED 1099f6: 83 e2 03 and $0x3,%edx <== NOT EXECUTED 1099f9: 4a dec %edx <== NOT EXECUTED 1099fa: 0f 84 98 00 00 00 je 109a98 <iproc+0xc8> <== NOT EXECUTED
if (c == '\r') {
109a00: 80 fb 0d cmp $0xd,%bl <== NOT EXECUTED 109a03: 74 33 je 109a38 <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)) {
109a05: 80 fb 0a cmp $0xa,%bl <== NOT EXECUTED 109a08: 0f 84 82 00 00 00 je 109a90 <iproc+0xc0> <== NOT EXECUTED
c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
109a0e: 84 db test %bl,%bl <== NOT EXECUTED 109a10: 75 3a jne 109a4c <iproc+0x7c> <== NOT EXECUTED
} /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) {
109a12: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED 109a15: 8b 15 08 30 12 00 mov 0x123008,%edx <== NOT EXECUTED 109a1b: 4a dec %edx <== NOT EXECUTED 109a1c: 39 d0 cmp %edx,%eax <== NOT EXECUTED 109a1e: 7d 1c jge 109a3c <iproc+0x6c> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
109a20: f6 46 3c 08 testb $0x8,0x3c(%esi) <== NOT EXECUTED 109a24: 75 7a jne 109aa0 <iproc+0xd0> <== NOT EXECUTED
echo (c, tty); tty->cbuf[tty->ccount++] = c;
109a26: 8b 56 1c mov 0x1c(%esi),%edx <== NOT EXECUTED 109a29: 88 1c 02 mov %bl,(%edx,%eax,1) <== NOT EXECUTED 109a2c: 40 inc %eax <== NOT EXECUTED 109a2d: 89 46 20 mov %eax,0x20(%esi) <== NOT EXECUTED 109a30: 31 c0 xor %eax,%eax <== NOT EXECUTED
} return 0; }
109a32: 5b pop %ebx <== NOT EXECUTED 109a33: 5e pop %esi <== NOT EXECUTED 109a34: c9 leave <== NOT EXECUTED 109a35: c3 ret <== NOT EXECUTED 109a36: 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)
109a38: 84 c0 test %al,%al <== NOT EXECUTED 109a3a: 79 08 jns 109a44 <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;
109a3c: 31 c0 xor %eax,%eax <== NOT EXECUTED
} return 0; }
109a3e: 5b pop %ebx <== NOT EXECUTED 109a3f: 5e pop %esi <== NOT EXECUTED 109a40: c9 leave <== NOT EXECUTED 109a41: c3 ret <== NOT EXECUTED 109a42: 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)
109a44: f6 c4 01 test $0x1,%ah <== NOT EXECUTED 109a47: 74 03 je 109a4c <iproc+0x7c> <== NOT EXECUTED 109a49: b3 0a mov $0xa,%bl <== NOT EXECUTED 109a4b: 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)) {
109a4c: 8b 46 3c mov 0x3c(%esi),%eax <== NOT EXECUTED 109a4f: a8 02 test $0x2,%al <== NOT EXECUTED 109a51: 74 bf je 109a12 <iproc+0x42> <== NOT EXECUTED
if (c == tty->termios.c_cc[VERASE]) {
109a53: 38 5e 43 cmp %bl,0x43(%esi) <== NOT EXECUTED 109a56: 0f 84 a0 00 00 00 je 109afc <iproc+0x12c> <== NOT EXECUTED
erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) {
109a5c: 38 5e 44 cmp %bl,0x44(%esi) <== NOT EXECUTED 109a5f: 74 5f je 109ac0 <iproc+0xf0> <== NOT EXECUTED
erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) {
109a61: 38 5e 45 cmp %bl,0x45(%esi) <== NOT EXECUTED 109a64: 74 20 je 109a86 <iproc+0xb6> <== NOT EXECUTED
return 1; } else if (c == '\n') {
109a66: 80 fb 0a cmp $0xa,%bl <== NOT EXECUTED 109a69: 74 69 je 109ad4 <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])
109a6b: 38 5e 4c cmp %bl,0x4c(%esi) <== NOT EXECUTED 109a6e: 74 05 je 109a75 <iproc+0xa5> <== NOT EXECUTED
|| (c == tty->termios.c_cc[VEOL2])) {
109a70: 38 5e 51 cmp %bl,0x51(%esi) <== NOT EXECUTED 109a73: 75 9d jne 109a12 <iproc+0x42> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
109a75: a8 08 test $0x8,%al <== NOT EXECUTED 109a77: 75 3b jne 109ab4 <iproc+0xe4> <== NOT EXECUTED
echo (c, tty); tty->cbuf[tty->ccount++] = c;
109a79: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED 109a7c: 8b 56 1c mov 0x1c(%esi),%edx <== NOT EXECUTED 109a7f: 88 1c 02 mov %bl,(%edx,%eax,1) <== NOT EXECUTED 109a82: 40 inc %eax <== NOT EXECUTED 109a83: 89 46 20 mov %eax,0x20(%esi) <== NOT EXECUTED 109a86: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
109a8b: eb a5 jmp 109a32 <iproc+0x62> <== NOT EXECUTED 109a8d: 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)) {
109a90: a8 40 test $0x40,%al <== NOT EXECUTED 109a92: 74 b8 je 109a4c <iproc+0x7c> <== NOT EXECUTED 109a94: b3 0d mov $0xd,%bl <== NOT EXECUTED 109a96: eb b4 jmp 109a4c <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);
109a98: 83 c3 20 add $0x20,%ebx <== NOT EXECUTED 109a9b: e9 60 ff ff ff jmp 109a00 <iproc+0x30> <== NOT EXECUTED
/* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty);
109aa0: 0f b6 c3 movzbl %bl,%eax <== NOT EXECUTED 109aa3: 89 f2 mov %esi,%edx <== NOT EXECUTED 109aa5: e8 f6 fc ff ff call 1097a0 <echo> <== NOT EXECUTED 109aaa: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED 109aad: e9 74 ff ff ff jmp 109a26 <iproc+0x56> <== NOT EXECUTED 109ab2: 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);
109ab4: 0f b6 c3 movzbl %bl,%eax <== NOT EXECUTED 109ab7: 89 f2 mov %esi,%edx <== NOT EXECUTED 109ab9: e8 e2 fc ff ff call 1097a0 <echo> <== NOT EXECUTED 109abe: eb b9 jmp 109a79 <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);
109ac0: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED 109ac5: 89 f0 mov %esi,%eax <== NOT EXECUTED 109ac7: e8 38 fd ff ff call 109804 <erase> <== NOT EXECUTED 109acc: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
109ace: e9 5f ff ff ff jmp 109a32 <iproc+0x62> <== NOT EXECUTED 109ad3: 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))
109ad4: a8 48 test $0x48,%al <== NOT EXECUTED 109ad6: 74 0c je 109ae4 <iproc+0x114> <== NOT EXECUTED
echo (c, tty);
109ad8: 89 f2 mov %esi,%edx <== NOT EXECUTED 109ada: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED 109adf: e8 bc fc ff ff call 1097a0 <echo> <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
109ae4: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED 109ae7: 8b 56 1c mov 0x1c(%esi),%edx <== NOT EXECUTED 109aea: c6 04 02 0a movb $0xa,(%edx,%eax,1) <== NOT EXECUTED 109aee: 40 inc %eax <== NOT EXECUTED 109aef: 89 46 20 mov %eax,0x20(%esi) <== NOT EXECUTED 109af2: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
return 1;
109af7: e9 36 ff ff ff jmp 109a32 <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);
109afc: 31 d2 xor %edx,%edx <== NOT EXECUTED 109afe: 89 f0 mov %esi,%eax <== NOT EXECUTED 109b00: e8 ff fc ff ff call 109804 <erase> <== NOT EXECUTED 109b05: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
109b07: e9 26 ff ff ff jmp 109a32 <iproc+0x62> <== NOT EXECUTED
001245a8 <kill>: * These are directly supported (and completely correct) in the posix api. */ #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) {
1245a8: 55 push %ebp <== NOT EXECUTED 1245a9: 89 e5 mov %esp,%ebp <== NOT EXECUTED
return 0; }
1245ab: 31 c0 xor %eax,%eax <== NOT EXECUTED 1245ad: c9 leave <== NOT EXECUTED 1245ae: c3 ret <== NOT EXECUTED
0011d8f8 <libc_wrapup>: extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) {
11d8f8: 55 push %ebp 11d8f9: 89 e5 mov %esp,%ebp 11d8fb: 53 push %ebx 11d8fc: 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()))
11d8ff: 83 3d 20 55 12 00 03 cmpl $0x3,0x125520
11d906: 74 08 je 11d910 <libc_wrapup+0x18> */ fclose (stdin); fclose (stdout); fclose (stderr); }
11d908: 8b 5d fc mov -0x4(%ebp),%ebx 11d90b: c9 leave 11d90c: c3 ret
11d90d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != _global_impure_ptr) {
11d910: 8b 1d c0 04 12 00 mov 0x1204c0,%ebx 11d916: 39 1d c0 30 12 00 cmp %ebx,0x1230c0
11d91c: 74 12 je 11d930 <libc_wrapup+0x38> _wrapup_reent(_global_impure_ptr);
11d91e: 83 ec 0c sub $0xc,%esp 11d921: 53 push %ebx 11d922: e8 f5 04 00 00 call 11de1c <_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;
11d927: 89 1d c0 30 12 00 mov %ebx,0x1230c0 11d92d: 83 c4 10 add $0x10,%esp
* * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin);
11d930: 83 ec 0c sub $0xc,%esp 11d933: ff 73 04 pushl 0x4(%ebx) 11d936: e8 c9 4c ff ff call 112604 <fclose>
fclose (stdout);
11d93b: 5a pop %edx 11d93c: a1 c0 30 12 00 mov 0x1230c0,%eax 11d941: ff 70 08 pushl 0x8(%eax) 11d944: e8 bb 4c ff ff call 112604 <fclose>
fclose (stderr);
11d949: 58 pop %eax 11d94a: a1 c0 30 12 00 mov 0x1230c0,%eax 11d94f: ff 70 0c pushl 0xc(%eax) 11d952: e8 ad 4c ff ff call 112604 <fclose> 11d957: 83 c4 10 add $0x10,%esp
}
11d95a: 8b 5d fc mov -0x4(%ebp),%ebx 11d95d: c9 leave 11d95e: c3 ret
0012bb58 <link>: int link( const char *existing, const char *new ) {
12bb58: 55 push %ebp 12bb59: 89 e5 mov %esp,%ebp 12bb5b: 57 push %edi 12bb5c: 56 push %esi 12bb5d: 53 push %ebx 12bb5e: 83 ec 48 sub $0x48,%esp 12bb61: 8b 55 08 mov 0x8(%ebp),%edx
/* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ),
12bb64: 31 c0 xor %eax,%eax 12bb66: b9 ff ff ff ff mov $0xffffffff,%ecx 12bb6b: 89 d7 mov %edx,%edi 12bb6d: f2 ae repnz scas %es:(%edi),%al 12bb6f: f7 d1 not %ecx 12bb71: 49 dec %ecx 12bb72: 6a 01 push $0x1 12bb74: 8d 45 d0 lea -0x30(%ebp),%eax 12bb77: 50 push %eax 12bb78: 6a 00 push $0x0 12bb7a: 51 push %ecx 12bb7b: 52 push %edx 12bb7c: e8 c7 01 fe ff call 10bd48 <rtems_filesystem_evaluate_path>
0, &existing_loc, true ); if ( result != 0 )
12bb81: 83 c4 20 add $0x20,%esp 12bb84: 85 c0 test %eax,%eax
12bb86: 0f 85 e0 00 00 00 jne 12bc6c <link+0x114> /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc );
12bb8c: 8b 55 0c mov 0xc(%ebp),%edx 12bb8f: 8a 02 mov (%edx),%al 12bb91: 3c 2f cmp $0x2f,%al
12bb93: 74 0c je 12bba1 <link+0x49>
12bb95: 3c 5c cmp $0x5c,%al
12bb97: 74 08 je 12bba1 <link+0x49> <== ALWAYS TAKEN
12bb99: 84 c0 test %al,%al
12bb9b: 0f 85 db 00 00 00 jne 12bc7c <link+0x124> <== NEVER TAKEN
12bba1: 8d 5d bc lea -0x44(%ebp),%ebx 12bba4: 8b 35 a4 84 16 00 mov 0x1684a4,%esi 12bbaa: 83 c6 18 add $0x18,%esi 12bbad: b9 05 00 00 00 mov $0x5,%ecx 12bbb2: 89 df mov %ebx,%edi 12bbb4: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12bbb6: ba 01 00 00 00 mov $0x1,%edx
if ( !parent_loc.ops->evalformake_h ) {
12bbbb: 8b 45 c8 mov -0x38(%ebp),%eax 12bbbe: 8b 40 04 mov 0x4(%eax),%eax 12bbc1: 85 c0 test %eax,%eax
12bbc3: 74 7f je 12bc44 <link+0xec> <== ALWAYS 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 );
12bbc5: 51 push %ecx 12bbc6: 8d 4d e4 lea -0x1c(%ebp),%ecx 12bbc9: 51 push %ecx 12bbca: 53 push %ebx 12bbcb: 03 55 0c add 0xc(%ebp),%edx 12bbce: 52 push %edx 12bbcf: ff d0 call *%eax 12bbd1: 89 c6 mov %eax,%esi
if ( result != 0 ) {
12bbd3: 83 c4 10 add $0x10,%esp 12bbd6: 85 c0 test %eax,%eax
12bbd8: 0f 85 06 01 00 00 jne 12bce4 <link+0x18c> /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) {
12bbde: 8b 45 cc mov -0x34(%ebp),%eax 12bbe1: 3b 45 e0 cmp -0x20(%ebp),%eax
12bbe4: 0f 85 ae 00 00 00 jne 12bc98 <link+0x140> rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) {
12bbea: 8b 55 c8 mov -0x38(%ebp),%edx 12bbed: 8b 42 08 mov 0x8(%edx),%eax 12bbf0: 85 c0 test %eax,%eax
12bbf2: 0f 84 17 01 00 00 je 12bd0f <link+0x1b7> <== ALWAYS 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 );
12bbf8: 52 push %edx 12bbf9: ff 75 e4 pushl -0x1c(%ebp) 12bbfc: 53 push %ebx 12bbfd: 8d 55 d0 lea -0x30(%ebp),%edx 12bc00: 52 push %edx 12bc01: ff d0 call *%eax 12bc03: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &existing_loc );
12bc05: 8b 45 dc mov -0x24(%ebp),%eax 12bc08: 83 c4 10 add $0x10,%esp 12bc0b: 85 c0 test %eax,%eax
12bc0d: 74 13 je 12bc22 <link+0xca> <== ALWAYS TAKEN
12bc0f: 8b 40 1c mov 0x1c(%eax),%eax 12bc12: 85 c0 test %eax,%eax
12bc14: 74 0c je 12bc22 <link+0xca> <== ALWAYS TAKEN
12bc16: 83 ec 0c sub $0xc,%esp 12bc19: 8d 55 d0 lea -0x30(%ebp),%edx 12bc1c: 52 push %edx 12bc1d: ff d0 call *%eax 12bc1f: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &parent_loc );
12bc22: 8b 45 c8 mov -0x38(%ebp),%eax 12bc25: 85 c0 test %eax,%eax
12bc27: 74 10 je 12bc39 <link+0xe1> <== ALWAYS TAKEN
12bc29: 8b 40 1c mov 0x1c(%eax),%eax 12bc2c: 85 c0 test %eax,%eax
12bc2e: 74 09 je 12bc39 <link+0xe1> <== ALWAYS TAKEN
12bc30: 83 ec 0c sub $0xc,%esp 12bc33: 53 push %ebx 12bc34: ff d0 call *%eax 12bc36: 83 c4 10 add $0x10,%esp
return result; }
12bc39: 89 f0 mov %esi,%eax 12bc3b: 8d 65 f4 lea -0xc(%ebp),%esp 12bc3e: 5b pop %ebx 12bc3f: 5e pop %esi 12bc40: 5f pop %edi 12bc41: c9 leave 12bc42: c3 ret
12bc43: 90 nop <== NOT EXECUTED
*/ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc );
12bc44: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 12bc47: 85 c0 test %eax,%eax <== NOT EXECUTED 12bc49: 74 13 je 12bc5e <link+0x106> <== NOT EXECUTED 12bc4b: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12bc4e: 85 c0 test %eax,%eax <== NOT EXECUTED 12bc50: 74 0c je 12bc5e <link+0x106> <== NOT EXECUTED 12bc52: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bc55: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 12bc58: 52 push %edx <== NOT EXECUTED 12bc59: ff d0 call *%eax <== NOT EXECUTED 12bc5b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12bc5e: e8 99 59 01 00 call 1415fc <__errno> <== NOT EXECUTED 12bc63: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12bc69: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
12bc6c: be ff ff ff ff mov $0xffffffff,%esi
rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; }
12bc71: 89 f0 mov %esi,%eax 12bc73: 8d 65 f4 lea -0xc(%ebp),%esp 12bc76: 5b pop %ebx 12bc77: 5e pop %esi 12bc78: 5f pop %edi 12bc79: c9 leave 12bc7a: c3 ret
12bc7b: 90 nop <== NOT EXECUTED
/* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc );
12bc7c: 8d 5d bc lea -0x44(%ebp),%ebx 12bc7f: 8b 35 a4 84 16 00 mov 0x1684a4,%esi 12bc85: 83 c6 04 add $0x4,%esi 12bc88: b9 05 00 00 00 mov $0x5,%ecx 12bc8d: 89 df mov %ebx,%edi 12bc8f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12bc91: 31 d2 xor %edx,%edx 12bc93: e9 23 ff ff ff jmp 12bbbb <link+0x63>
* 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 );
12bc98: 8b 45 dc mov -0x24(%ebp),%eax 12bc9b: 85 c0 test %eax,%eax
12bc9d: 74 13 je 12bcb2 <link+0x15a> <== ALWAYS TAKEN
12bc9f: 8b 40 1c mov 0x1c(%eax),%eax 12bca2: 85 c0 test %eax,%eax
12bca4: 74 0c je 12bcb2 <link+0x15a> <== ALWAYS TAKEN
12bca6: 83 ec 0c sub $0xc,%esp 12bca9: 8d 55 d0 lea -0x30(%ebp),%edx 12bcac: 52 push %edx 12bcad: ff d0 call *%eax 12bcaf: 83 c4 10 add $0x10,%esp
rtems_filesystem_freenode( &parent_loc );
12bcb2: 8b 45 c8 mov -0x38(%ebp),%eax 12bcb5: 85 c0 test %eax,%eax
12bcb7: 74 10 je 12bcc9 <link+0x171> <== ALWAYS TAKEN
12bcb9: 8b 40 1c mov 0x1c(%eax),%eax 12bcbc: 85 c0 test %eax,%eax
12bcbe: 74 09 je 12bcc9 <link+0x171> <== ALWAYS TAKEN
12bcc0: 83 ec 0c sub $0xc,%esp 12bcc3: 53 push %ebx 12bcc4: ff d0 call *%eax 12bcc6: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EXDEV );
12bcc9: e8 2e 59 01 00 call 1415fc <__errno> 12bcce: c7 00 12 00 00 00 movl $0x12,(%eax) 12bcd4: be ff ff ff ff mov $0xffffffff,%esi
rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; }
12bcd9: 89 f0 mov %esi,%eax 12bcdb: 8d 65 f4 lea -0xc(%ebp),%esp 12bcde: 5b pop %ebx 12bcdf: 5e pop %esi 12bce0: 5f pop %edi 12bce1: c9 leave 12bce2: c3 ret
12bce3: 90 nop <== NOT EXECUTED
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 );
12bce4: 8b 45 dc mov -0x24(%ebp),%eax 12bce7: 85 c0 test %eax,%eax
12bce9: 74 13 je 12bcfe <link+0x1a6> <== ALWAYS TAKEN
12bceb: 8b 40 1c mov 0x1c(%eax),%eax 12bcee: 85 c0 test %eax,%eax
12bcf0: 74 0c je 12bcfe <link+0x1a6> <== ALWAYS TAKEN
12bcf2: 83 ec 0c sub $0xc,%esp 12bcf5: 8d 55 d0 lea -0x30(%ebp),%edx 12bcf8: 52 push %edx 12bcf9: ff d0 call *%eax 12bcfb: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( result );
12bcfe: e8 f9 58 01 00 call 1415fc <__errno> 12bd03: 89 30 mov %esi,(%eax) 12bd05: be ff ff ff ff mov $0xffffffff,%esi 12bd0a: e9 2a ff ff ff jmp 12bc39 <link+0xe1>
rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc );
12bd0f: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 12bd12: 85 c0 test %eax,%eax <== NOT EXECUTED 12bd14: 74 16 je 12bd2c <link+0x1d4> <== NOT EXECUTED 12bd16: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12bd19: 85 c0 test %eax,%eax <== NOT EXECUTED 12bd1b: 74 0f je 12bd2c <link+0x1d4> <== NOT EXECUTED 12bd1d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bd20: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 12bd23: 52 push %edx <== NOT EXECUTED 12bd24: ff d0 call *%eax <== NOT EXECUTED 12bd26: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED 12bd29: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_filesystem_freenode( &parent_loc );
12bd2c: 85 d2 test %edx,%edx <== NOT EXECUTED 12bd2e: 74 10 je 12bd40 <link+0x1e8> <== NOT EXECUTED 12bd30: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12bd33: 85 c0 test %eax,%eax <== NOT EXECUTED 12bd35: 74 09 je 12bd40 <link+0x1e8> <== NOT EXECUTED 12bd37: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bd3a: 53 push %ebx <== NOT EXECUTED 12bd3b: ff d0 call *%eax <== NOT EXECUTED 12bd3d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12bd40: e8 b7 58 01 00 call 1415fc <__errno> <== NOT EXECUTED 12bd45: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12bd4b: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 12bd50: e9 e4 fe ff ff jmp 12bc39 <link+0xe1> <== NOT EXECUTED
0011d7b0 <lseek>: off_t lseek( int fd, off_t offset, int whence ) {
11d7b0: 55 push %ebp 11d7b1: 89 e5 mov %esp,%ebp 11d7b3: 57 push %edi 11d7b4: 56 push %esi 11d7b5: 53 push %ebx 11d7b6: 83 ec 2c sub $0x2c,%esp 11d7b9: 8b 5d 08 mov 0x8(%ebp),%ebx 11d7bc: 8b 75 0c mov 0xc(%ebp),%esi 11d7bf: 8b 7d 10 mov 0x10(%ebp),%edi 11d7c2: 8b 45 14 mov 0x14(%ebp),%eax
rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd );
11d7c5: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx
11d7cb: 0f 83 b7 00 00 00 jae 11d888 <lseek+0xd8> <== ALWAYS TAKEN
iop = rtems_libio_iop( fd );
11d7d1: c1 e3 06 shl $0x6,%ebx 11d7d4: 03 1d c0 51 12 00 add 0x1251c0,%ebx
rtems_libio_check_is_open(iop);
11d7da: f6 43 15 01 testb $0x1,0x15(%ebx)
11d7de: 0f 84 a4 00 00 00 je 11d888 <lseek+0xd8> <== ALWAYS TAKEN
/* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h )
11d7e4: 8b 53 3c mov 0x3c(%ebx),%edx 11d7e7: 89 55 d4 mov %edx,-0x2c(%ebp) 11d7ea: 8b 52 14 mov 0x14(%edx),%edx 11d7ed: 85 d2 test %edx,%edx
11d7ef: 0f 84 aa 00 00 00 je 11d89f <lseek+0xef> <== ALWAYS TAKEN
/* * Now process the lseek(). */ old_offset = iop->offset;
11d7f5: 8b 53 0c mov 0xc(%ebx),%edx 11d7f8: 8b 4b 10 mov 0x10(%ebx),%ecx 11d7fb: 89 55 e0 mov %edx,-0x20(%ebp) 11d7fe: 89 4d e4 mov %ecx,-0x1c(%ebp)
switch ( whence ) {
11d801: 83 f8 01 cmp $0x1,%eax
11d804: 74 6e je 11d874 <lseek+0xc4>
11d806: 83 f8 02 cmp $0x2,%eax
11d809: 74 35 je 11d840 <lseek+0x90>
11d80b: 85 c0 test %eax,%eax
11d80d: 75 45 jne 11d854 <lseek+0xa4> case SEEK_SET: iop->offset = offset;
11d80f: 89 73 0c mov %esi,0xc(%ebx) 11d812: 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 );
11d815: 50 push %eax 11d816: 57 push %edi 11d817: 56 push %esi 11d818: 53 push %ebx 11d819: 8b 4d d4 mov -0x2c(%ebp),%ecx 11d81c: ff 51 14 call *0x14(%ecx)
if ( status == (off_t) -1 )
11d81f: 83 c4 10 add $0x10,%esp 11d822: 89 c1 mov %eax,%ecx 11d824: 21 d1 and %edx,%ecx 11d826: 41 inc %ecx
11d827: 75 0c jne 11d835 <lseek+0x85> iop->offset = old_offset;
11d829: 8b 75 e0 mov -0x20(%ebp),%esi 11d82c: 8b 7d e4 mov -0x1c(%ebp),%edi 11d82f: 89 73 0c mov %esi,0xc(%ebx) 11d832: 89 7b 10 mov %edi,0x10(%ebx)
/* * So if the operation failed, we have to restore iop->offset. */ return status; }
11d835: 8d 65 f4 lea -0xc(%ebp),%esp 11d838: 5b pop %ebx 11d839: 5e pop %esi 11d83a: 5f pop %edi 11d83b: c9 leave 11d83c: c3 ret
11d83d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset;
11d840: 89 f2 mov %esi,%edx 11d842: 89 f9 mov %edi,%ecx 11d844: 03 53 04 add 0x4(%ebx),%edx 11d847: 13 4b 08 adc 0x8(%ebx),%ecx 11d84a: 89 53 0c mov %edx,0xc(%ebx) 11d84d: 89 4b 10 mov %ecx,0x10(%ebx)
break;
11d850: eb c3 jmp 11d815 <lseek+0x65>
11d852: 66 90 xchg %ax,%ax <== NOT EXECUTED
default: rtems_set_errno_and_return_minus_one( EINVAL );
11d854: e8 5f 4c ff ff call 1124b8 <__errno> 11d859: c7 00 16 00 00 00 movl $0x16,(%eax) 11d85f: b8 ff ff ff ff mov $0xffffffff,%eax 11d864: ba ff ff ff ff mov $0xffffffff,%edx
/* * So if the operation failed, we have to restore iop->offset. */ return status; }
11d869: 8d 65 f4 lea -0xc(%ebp),%esp 11d86c: 5b pop %ebx 11d86d: 5e pop %esi 11d86e: 5f pop %edi 11d86f: c9 leave 11d870: c3 ret
11d871: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset;
11d874: 8b 55 e0 mov -0x20(%ebp),%edx 11d877: 8b 4d e4 mov -0x1c(%ebp),%ecx 11d87a: 01 f2 add %esi,%edx 11d87c: 11 f9 adc %edi,%ecx 11d87e: 89 53 0c mov %edx,0xc(%ebx) 11d881: 89 4b 10 mov %ecx,0x10(%ebx)
break;
11d884: eb 8f jmp 11d815 <lseek+0x65>
11d886: 66 90 xchg %ax,%ax <== NOT EXECUTED
off_t old_offset; off_t status; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop);
11d888: e8 2b 4c ff ff call 1124b8 <__errno> <== NOT EXECUTED 11d88d: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 11d893: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11d898: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED 11d89d: eb 96 jmp 11d835 <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 );
11d89f: e8 14 4c ff ff call 1124b8 <__errno> <== NOT EXECUTED 11d8a4: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11d8aa: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11d8af: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED 11d8b4: e9 7c ff ff ff jmp 11d835 <lseek+0x85> <== NOT EXECUTED
0012bea4 <lstat>: int _STAT_NAME( const char *path, struct stat *buf ) {
12bea4: 55 push %ebp <== NOT EXECUTED 12bea5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bea7: 57 push %edi <== NOT EXECUTED 12bea8: 56 push %esi <== NOT EXECUTED 12bea9: 53 push %ebx <== NOT EXECUTED 12beaa: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED 12bead: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 12beb0: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED
/* * Check to see if we were passed a valid pointer. */ if ( !buf )
12beb3: 85 f6 test %esi,%esi <== NOT EXECUTED 12beb5: 0f 84 9d 00 00 00 je 12bf58 <lstat+0xb4> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ),
12bebb: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 12bec0: 89 d7 mov %edx,%edi <== NOT EXECUTED 12bec2: 31 c0 xor %eax,%eax <== NOT EXECUTED 12bec4: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 12bec6: f7 d1 not %ecx <== NOT EXECUTED 12bec8: 49 dec %ecx <== NOT EXECUTED 12bec9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12becc: 6a 00 push $0x0 <== NOT EXECUTED 12bece: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED 12bed1: 53 push %ebx <== NOT EXECUTED 12bed2: 6a 00 push $0x0 <== NOT EXECUTED 12bed4: 51 push %ecx <== NOT EXECUTED 12bed5: 52 push %edx <== NOT EXECUTED 12bed6: e8 6d fe fd ff call 10bd48 <rtems_filesystem_evaluate_path><== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 )
12bedb: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12bede: 85 c0 test %eax,%eax <== NOT EXECUTED 12bee0: 75 66 jne 12bf48 <lstat+0xa4> <== NOT EXECUTED
return -1; if ( !loc.handlers->fstat_h ){
12bee2: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED 12bee5: 8b 42 18 mov 0x18(%edx),%eax <== NOT EXECUTED 12bee8: 85 c0 test %eax,%eax <== NOT EXECUTED 12beea: 74 39 je 12bf25 <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) );
12beec: b9 48 00 00 00 mov $0x48,%ecx <== NOT EXECUTED 12bef1: 89 f7 mov %esi,%edi <== NOT EXECUTED 12bef3: 31 c0 xor %eax,%eax <== NOT EXECUTED 12bef5: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
12bef7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12befa: 56 push %esi <== NOT EXECUTED 12befb: 53 push %ebx <== NOT EXECUTED 12befc: ff 52 18 call *0x18(%edx) <== NOT EXECUTED 12beff: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
12bf01: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 12bf04: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12bf07: 85 c0 test %eax,%eax <== NOT EXECUTED 12bf09: 74 10 je 12bf1b <lstat+0x77> <== NOT EXECUTED 12bf0b: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12bf0e: 85 c0 test %eax,%eax <== NOT EXECUTED 12bf10: 74 09 je 12bf1b <lstat+0x77> <== NOT EXECUTED 12bf12: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bf15: 53 push %ebx <== NOT EXECUTED 12bf16: ff d0 call *%eax <== NOT EXECUTED 12bf18: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return status; }
12bf1b: 89 f0 mov %esi,%eax <== NOT EXECUTED 12bf1d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12bf20: 5b pop %ebx <== NOT EXECUTED 12bf21: 5e pop %esi <== NOT EXECUTED 12bf22: 5f pop %edi <== NOT EXECUTED 12bf23: c9 leave <== NOT EXECUTED 12bf24: c3 ret <== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc );
12bf25: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 12bf28: 85 c0 test %eax,%eax <== NOT EXECUTED 12bf2a: 74 10 je 12bf3c <lstat+0x98> <== NOT EXECUTED 12bf2c: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12bf2f: 85 c0 test %eax,%eax <== NOT EXECUTED 12bf31: 74 09 je 12bf3c <lstat+0x98> <== NOT EXECUTED 12bf33: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bf36: 53 push %ebx <== NOT EXECUTED 12bf37: ff d0 call *%eax <== NOT EXECUTED 12bf39: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12bf3c: e8 bb 56 01 00 call 1415fc <__errno> <== NOT EXECUTED 12bf41: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12bf47: 90 nop <== NOT EXECUTED 12bf48: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; }
12bf4d: 89 f0 mov %esi,%eax <== NOT EXECUTED 12bf4f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12bf52: 5b pop %ebx <== NOT EXECUTED 12bf53: 5e pop %esi <== NOT EXECUTED 12bf54: 5f pop %edi <== NOT EXECUTED 12bf55: c9 leave <== NOT EXECUTED 12bf56: c3 ret <== NOT EXECUTED 12bf57: 90 nop <== NOT EXECUTED
/* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT );
12bf58: e8 9f 56 01 00 call 1415fc <__errno> <== NOT EXECUTED 12bf5d: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 12bf63: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; }
12bf68: 89 f0 mov %esi,%eax <== NOT EXECUTED 12bf6a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12bf6d: 5b pop %ebx <== NOT EXECUTED 12bf6e: 5e pop %esi <== NOT EXECUTED 12bf6f: 5f pop %edi <== NOT EXECUTED 12bf70: c9 leave <== NOT EXECUTED 12bf71: c3 ret <== NOT EXECUTED
001082cc <malloc>: size_t size ) { void *return_this; MSBUMP(malloc_calls, 1);
1082cc: 55 push %ebp 1082cd: 89 e5 mov %esp,%ebp 1082cf: 57 push %edi 1082d0: 56 push %esi 1082d1: 53 push %ebx 1082d2: 83 ec 0c sub $0xc,%esp 1082d5: 8b 75 08 mov 0x8(%ebp),%esi 1082d8: ff 05 e4 51 12 00 incl 0x1251e4
/* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process();
1082de: e8 11 ff ff ff call 1081f4 <malloc_deferred_frees_process>
/* * Validate the parameters */ if ( !size )
1082e3: 85 f6 test %esi,%esi
1082e5: 74 65 je 10834c <malloc+0x80> <== ALWAYS TAKEN
return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) &&
1082e7: 83 3d 20 55 12 00 03 cmpl $0x3,0x125520
1082ee: 74 50 je 108340 <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 );
1082f0: 6a 00 push $0x0 1082f2: 6a 00 push $0x0 1082f4: 56 push %esi 1082f5: ff 35 58 11 12 00 pushl 0x121158 1082fb: e8 ac 4b 00 00 call 10ceac <_Protected_heap_Allocate_aligned_with_boundary> 108300: 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 ) {
108302: 83 c4 10 add $0x10,%esp 108305: 85 c0 test %eax,%eax
108307: 74 5b je 108364 <malloc+0x98> if (rtems_malloc_sbrk_helpers) return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); if ( !return_this ) { errno = ENOMEM; return (void *) 0;
108309: 89 c7 mov %eax,%edi
} /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper )
10830b: a1 d0 35 12 00 mov 0x1235d0,%eax 108310: 85 c0 test %eax,%eax
108312: 74 0a je 10831e <malloc+0x52> <== NEVER TAKEN
(*rtems_malloc_dirty_helper)( return_this, size );
108314: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 108317: 56 push %esi <== NOT EXECUTED 108318: 57 push %edi <== NOT EXECUTED 108319: ff 10 call *(%eax) <== NOT EXECUTED 10831b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers )
10831e: a1 c8 35 12 00 mov 0x1235c8,%eax 108323: 85 c0 test %eax,%eax
108325: 74 31 je 108358 <malloc+0x8c> <== NEVER TAKEN
(*rtems_malloc_statistics_helpers->at_malloc)(return_this);
108327: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10832a: 57 push %edi <== NOT EXECUTED 10832b: ff 50 04 call *0x4(%eax) <== NOT EXECUTED 10832e: 89 fb mov %edi,%ebx <== NOT EXECUTED 108330: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; }
108333: 89 d8 mov %ebx,%eax 108335: 8d 65 f4 lea -0xc(%ebp),%esp 108338: 5b pop %ebx 108339: 5e pop %esi 10833a: 5f pop %edi 10833b: c9 leave 10833c: c3 ret
10833d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) &&
108340: e8 57 fe ff ff call 10819c <malloc_is_system_state_OK> 108345: 84 c0 test %al,%al
108347: 75 a7 jne 1082f0 <malloc+0x24> <== NEVER TAKEN
108349: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->at_malloc)(return_this);
10834c: 31 db xor %ebx,%ebx <== NOT EXECUTED
if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; }
10834e: 89 d8 mov %ebx,%eax <== NOT EXECUTED 108350: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 108353: 5b pop %ebx <== NOT EXECUTED 108354: 5e pop %esi <== NOT EXECUTED 108355: 5f pop %edi <== NOT EXECUTED 108356: c9 leave <== NOT EXECUTED 108357: c3 ret <== NOT EXECUTED
(*rtems_malloc_dirty_helper)( return_this, size ); /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers )
108358: 89 fb mov %edi,%ebx
if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; }
10835a: 89 d8 mov %ebx,%eax 10835c: 8d 65 f4 lea -0xc(%ebp),%esp 10835f: 5b pop %ebx 108360: 5e pop %esi 108361: 5f pop %edi 108362: c9 leave 108363: c3 ret
*/ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers)
108364: a1 cc 35 12 00 mov 0x1235cc,%eax 108369: 85 c0 test %eax,%eax
10836b: 74 10 je 10837d <malloc+0xb1> <== NEVER TAKEN
return_this = (*rtems_malloc_sbrk_helpers->extend)( size );
10836d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108370: 56 push %esi <== NOT EXECUTED 108371: ff 50 04 call *0x4(%eax) <== NOT EXECUTED 108374: 89 c7 mov %eax,%edi <== NOT EXECUTED
if ( !return_this ) {
108376: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108379: 85 c0 test %eax,%eax <== NOT EXECUTED 10837b: 75 8e jne 10830b <malloc+0x3f> <== NOT EXECUTED
errno = ENOMEM;
10837d: e8 36 a1 00 00 call 1124b8 <__errno> 108382: c7 00 0c 00 00 00 movl $0xc,(%eax)
return (void *) 0;
108388: eb a9 jmp 108333 <malloc+0x67>
001081dc <malloc_deferred_free>: } void malloc_deferred_free( void *pointer ) {
1081dc: 55 push %ebp <== NOT EXECUTED 1081dd: 89 e5 mov %esp,%ebp <== NOT EXECUTED 1081df: 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 );
1081e2: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 1081e5: 68 cc 51 12 00 push $0x1251cc <== NOT EXECUTED 1081ea: e8 dd 3c 00 00 call 10becc <_Chain_Append> <== NOT EXECUTED 1081ef: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer); }
1081f2: c9 leave <== NOT EXECUTED 1081f3: c3 ret <== NOT EXECUTED
001081f4 <malloc_deferred_frees_process>: { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) {
1081f4: 55 push %ebp 1081f5: 89 e5 mov %esp,%ebp 1081f7: 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)
1081fa: eb 0c jmp 108208 <malloc_deferred_frees_process+0x14>
free(to_be_freed);
1081fc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1081ff: 50 push %eax <== NOT EXECUTED 108200: e8 77 fe ff ff call 10807c <free> <== NOT EXECUTED 108205: 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 );
108208: 83 ec 0c sub $0xc,%esp 10820b: 68 cc 51 12 00 push $0x1251cc 108210: e8 db 3c 00 00 call 10bef0 <_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)
108215: 83 c4 10 add $0x10,%esp 108218: 85 c0 test %eax,%eax
10821a: 75 e0 jne 1081fc <malloc_deferred_frees_process+0x8><== ALWAYS TAKEN
free(to_be_freed); }
10821c: c9 leave 10821d: c3 ret
0012bf8c <malloc_info>: */ int malloc_info( Heap_Information_block *the_info ) {
12bf8c: 55 push %ebp 12bf8d: 89 e5 mov %esp,%ebp 12bf8f: 83 ec 08 sub $0x8,%esp 12bf92: 8b 45 08 mov 0x8(%ebp),%eax
if ( !the_info )
12bf95: 85 c0 test %eax,%eax
12bf97: 74 17 je 12bfb0 <malloc_info+0x24> return -1; _Protected_heap_Get_information( RTEMS_Malloc_Heap, the_info );
12bf99: 83 ec 08 sub $0x8,%esp 12bf9c: 50 push %eax 12bf9d: ff 35 78 63 16 00 pushl 0x166378 12bfa3: e8 00 25 00 00 call 12e4a8 <_Protected_heap_Get_information> 12bfa8: 31 c0 xor %eax,%eax
return 0;
12bfaa: 83 c4 10 add $0x10,%esp
}
12bfad: c9 leave 12bfae: c3 ret
12bfaf: 90 nop <== NOT EXECUTED
int malloc_info( Heap_Information_block *the_info ) { if ( !the_info )
12bfb0: b8 ff ff ff ff mov $0xffffffff,%eax
return -1; _Protected_heap_Get_information( RTEMS_Malloc_Heap, the_info ); return 0; }
12bfb5: c9 leave 12bfb6: c3 ret
0010819c <malloc_is_system_state_OK>: #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) {
10819c: 55 push %ebp 10819d: 89 e5 mov %esp,%ebp
if ( _Thread_Dispatch_disable_level > 0 )
10819f: a1 58 53 12 00 mov 0x125358,%eax 1081a4: 85 c0 test %eax,%eax
1081a6: 75 0c jne 1081b4 <malloc_is_system_state_OK+0x18><== ALWAYS TAKEN
return false; if ( _ISR_Nest_level > 0 )
1081a8: a1 f4 53 12 00 mov 0x1253f4,%eax
#include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void)
1081ad: 85 c0 test %eax,%eax 1081af: 0f 94 c0 sete %al
if ( _ISR_Nest_level > 0 ) return false; return true; }
1081b2: c9 leave 1081b3: c3 ret
rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { if ( _Thread_Dispatch_disable_level > 0 )
1081b4: 31 c0 xor %eax,%eax <== NOT EXECUTED
if ( _ISR_Nest_level > 0 ) return false; return true; }
1081b6: c9 leave <== NOT EXECUTED 1081b7: c3 ret <== NOT EXECUTED
00115c40 <memfile_alloc_block>: */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) {
115c40: 55 push %ebp 115c41: 89 e5 mov %esp,%ebp 115c43: 83 ec 10 sub $0x10,%esp
void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);
115c46: ff 35 10 b1 12 00 pushl 0x12b110 115c4c: 6a 01 push $0x1 115c4e: e8 6d 35 ff ff call 1091c0 <calloc>
if ( memory )
115c53: 83 c4 10 add $0x10,%esp 115c56: 85 c0 test %eax,%eax
115c58: 74 06 je 115c60 <memfile_alloc_block+0x20><== ALWAYS TAKEN
memfile_blocks_allocated++;
115c5a: ff 05 d0 b2 12 00 incl 0x12b2d0
return memory; }
115c60: c9 leave 115c61: c3 ret
001160b4 <memfile_check_rmnod>: return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){
1160b4: 55 push %ebp 1160b5: 89 e5 mov %esp,%ebp 1160b7: 53 push %ebx 1160b8: 83 ec 10 sub $0x10,%esp 1160bb: 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) ) {
1160be: 53 push %ebx 1160bf: e8 64 e4 ff ff call 114528 <rtems_libio_is_file_open> 1160c4: 83 c4 10 add $0x10,%esp 1160c7: 85 c0 test %eax,%eax
1160c9: 75 2f jne 1160fa <memfile_check_rmnod+0x46>
1160cb: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx)
1160d0: 75 28 jne 1160fa <memfile_check_rmnod+0x46><== ALWAYS TAKEN
/* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode )
1160d2: a1 58 92 12 00 mov 0x129258,%eax 1160d7: 39 58 04 cmp %ebx,0x4(%eax)
1160da: 74 28 je 116104 <memfile_check_rmnod+0x50><== ALWAYS TAKEN
rtems_filesystem_current.node_access = NULL; /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE)
1160dc: 83 7b 4c 06 cmpl $0x6,0x4c(%ebx)
1160e0: 74 0c je 1160ee <memfile_check_rmnod+0x3a><== ALWAYS TAKEN
IMFS_memfile_remove( the_jnode );
1160e2: 83 ec 0c sub $0xc,%esp 1160e5: 53 push %ebx 1160e6: e8 21 fe ff ff call 115f0c <IMFS_memfile_remove> 1160eb: 83 c4 10 add $0x10,%esp
free( the_jnode );
1160ee: 83 ec 0c sub $0xc,%esp 1160f1: 53 push %ebx 1160f2: e8 19 33 ff ff call 109410 <free> 1160f7: 83 c4 10 add $0x10,%esp
} return 0; }
1160fa: 31 c0 xor %eax,%eax 1160fc: 8b 5d fc mov -0x4(%ebp),%ebx 1160ff: c9 leave 116100: c3 ret
116101: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) rtems_filesystem_current.node_access = NULL;
116104: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED 11610b: eb cf jmp 1160dc <memfile_check_rmnod+0x28><== NOT EXECUTED
00115e44 <memfile_free_blocks_in_table>: void memfile_free_blocks_in_table( block_p **block_table, int entries ) {
115e44: 55 push %ebp 115e45: 89 e5 mov %esp,%ebp 115e47: 57 push %edi 115e48: 56 push %esi 115e49: 53 push %ebx 115e4a: 83 ec 0c sub $0xc,%esp 115e4d: 8b 7d 0c mov 0xc(%ebp),%edi
/* * Perform internal consistency checks */ assert( block_table );
115e50: 8b 45 08 mov 0x8(%ebp),%eax 115e53: 85 c0 test %eax,%eax
115e55: 74 4e je 115ea5 <memfile_free_blocks_in_table+0x61><== ALWAYS TAKEN
/* * Now go through all the slots in the table and free the memory. */ b = *block_table;
115e57: 8b 45 08 mov 0x8(%ebp),%eax 115e5a: 8b 30 mov (%eax),%esi
for ( i=0 ; i<entries ; i++ ) {
115e5c: 85 ff test %edi,%edi
115e5e: 7e 28 jle 115e88 <memfile_free_blocks_in_table+0x44><== ALWAYS TAKEN
115e60: 31 db xor %ebx,%ebx 115e62: 66 90 xchg %ax,%ax
if ( b[i] ) {
115e64: 8b 04 9e mov (%esi,%ebx,4),%eax 115e67: 85 c0 test %eax,%eax
115e69: 74 13 je 115e7e <memfile_free_blocks_in_table+0x3a> memfile_free_block( b[i] );
115e6b: 83 ec 0c sub $0xc,%esp 115e6e: 50 push %eax 115e6f: e8 b0 fd ff ff call 115c24 <memfile_free_block>
b[i] = 0;
115e74: c7 04 9e 00 00 00 00 movl $0x0,(%esi,%ebx,4) 115e7b: 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++ ) {
115e7e: 43 inc %ebx 115e7f: 39 df cmp %ebx,%edi
115e81: 7f e1 jg 115e64 <memfile_free_blocks_in_table+0x20>
115e83: 8b 45 08 mov 0x8(%ebp),%eax 115e86: 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 );
115e88: 83 ec 0c sub $0xc,%esp 115e8b: 56 push %esi 115e8c: e8 93 fd ff ff call 115c24 <memfile_free_block>
*block_table = 0;
115e91: 8b 45 08 mov 0x8(%ebp),%eax 115e94: c7 00 00 00 00 00 movl $0x0,(%eax) 115e9a: 83 c4 10 add $0x10,%esp
}
115e9d: 8d 65 f4 lea -0xc(%ebp),%esp 115ea0: 5b pop %ebx 115ea1: 5e pop %esi 115ea2: 5f pop %edi 115ea3: c9 leave 115ea4: c3 ret
/* * Perform internal consistency checks */ assert( block_table );
115ea5: 68 ea 53 12 00 push $0x1253ea <== NOT EXECUTED 115eaa: 68 1c 55 12 00 push $0x12551c <== NOT EXECUTED 115eaf: 68 b3 01 00 00 push $0x1b3 <== NOT EXECUTED 115eb4: 68 0c 54 12 00 push $0x12540c <== NOT EXECUTED 115eb9: e8 c2 31 ff ff call 109080 <__assert_func> <== NOT EXECUTED
00116368 <memfile_ftruncate>: int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) {
116368: 55 push %ebp 116369: 89 e5 mov %esp,%ebp 11636b: 53 push %ebx 11636c: 83 ec 14 sub $0x14,%esp 11636f: 8b 4d 08 mov 0x8(%ebp),%ecx 116372: 8b 45 0c mov 0xc(%ebp),%eax 116375: 8b 55 10 mov 0x10(%ebp),%edx
IMFS_jnode_t *the_jnode; the_jnode = iop->file_info;
116378: 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 )
11637b: 39 53 54 cmp %edx,0x54(%ebx)
11637e: 7f 19 jg 116399 <memfile_ftruncate+0x31><== ALWAYS TAKEN
116380: 7d 12 jge 116394 <memfile_ftruncate+0x2c><== NEVER TAKEN
return IMFS_memfile_extend( the_jnode, length );
116382: 51 push %ecx <== NOT EXECUTED 116383: 52 push %edx <== NOT EXECUTED 116384: 50 push %eax <== NOT EXECUTED 116385: 53 push %ebx <== NOT EXECUTED 116386: e8 79 fe ff ff call 116204 <IMFS_memfile_extend> <== NOT EXECUTED 11638b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); return 0; }
11638e: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 116391: c9 leave <== NOT EXECUTED 116392: c3 ret <== NOT EXECUTED 116393: 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 )
116394: 39 43 50 cmp %eax,0x50(%ebx)
116397: 72 e9 jb 116382 <memfile_ftruncate+0x1a><== ALWAYS 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;
116399: 89 43 50 mov %eax,0x50(%ebx) 11639c: 89 53 54 mov %edx,0x54(%ebx)
iop->size = the_jnode->info.file.size;
11639f: 89 41 04 mov %eax,0x4(%ecx) 1163a2: 89 51 08 mov %edx,0x8(%ecx)
IMFS_update_atime( the_jnode );
1163a5: 83 ec 08 sub $0x8,%esp 1163a8: 6a 00 push $0x0 1163aa: 8d 45 f0 lea -0x10(%ebp),%eax 1163ad: 50 push %eax 1163ae: e8 d9 30 ff ff call 10948c <gettimeofday> 1163b3: 8b 45 f0 mov -0x10(%ebp),%eax 1163b6: 89 43 40 mov %eax,0x40(%ebx) 1163b9: 31 c0 xor %eax,%eax
return 0;
1163bb: 83 c4 10 add $0x10,%esp
}
1163be: 8b 5d fc mov -0x4(%ebp),%ebx 1163c1: c9 leave 1163c2: c3 ret
001163c4 <memfile_lseek>: rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
1163c4: 55 push %ebp 1163c5: 89 e5 mov %esp,%ebp 1163c7: 57 push %edi 1163c8: 56 push %esi 1163c9: 53 push %ebx 1163ca: 83 ec 0c sub $0xc,%esp 1163cd: 8b 5d 08 mov 0x8(%ebp),%ebx
IMFS_jnode_t *the_jnode; the_jnode = iop->file_info;
1163d0: 8b 73 38 mov 0x38(%ebx),%esi
if (the_jnode->type == IMFS_LINEAR_FILE) {
1163d3: 83 7e 4c 06 cmpl $0x6,0x4c(%esi)
1163d7: 74 2f je 116408 <memfile_lseek+0x44> <== ALWAYS 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 ))
1163d9: 57 push %edi 1163da: ff 73 10 pushl 0x10(%ebx) 1163dd: ff 73 0c pushl 0xc(%ebx) 1163e0: 56 push %esi 1163e1: e8 1e fe ff ff call 116204 <IMFS_memfile_extend> 1163e6: 83 c4 10 add $0x10,%esp 1163e9: 85 c0 test %eax,%eax
1163eb: 75 4d jne 11643a <memfile_lseek+0x76> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size;
1163ed: 8b 46 50 mov 0x50(%esi),%eax 1163f0: 8b 56 54 mov 0x54(%esi),%edx 1163f3: 89 43 04 mov %eax,0x4(%ebx) 1163f6: 89 53 08 mov %edx,0x8(%ebx) 1163f9: 8b 43 0c mov 0xc(%ebx),%eax 1163fc: 8b 53 10 mov 0x10(%ebx),%edx
} return iop->offset; }
1163ff: 8d 65 f4 lea -0xc(%ebp),%esp 116402: 5b pop %ebx 116403: 5e pop %esi 116404: 5f pop %edi 116405: c9 leave 116406: c3 ret
116407: 90 nop <== 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)
116408: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED 11640b: 8b 4b 10 mov 0x10(%ebx),%ecx <== NOT EXECUTED 11640e: 8b 46 50 mov 0x50(%esi),%eax <== NOT EXECUTED 116411: 8b 56 54 mov 0x54(%esi),%edx <== NOT EXECUTED 116414: 39 d1 cmp %edx,%ecx <== NOT EXECUTED 116416: 7f 14 jg 11642c <memfile_lseek+0x68> <== NOT EXECUTED 116418: 7d 0e jge 116428 <memfile_lseek+0x64> <== NOT EXECUTED 11641a: 89 f8 mov %edi,%eax <== NOT EXECUTED 11641c: 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; }
11641e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 116421: 5b pop %ebx <== NOT EXECUTED 116422: 5e pop %esi <== NOT EXECUTED 116423: 5f pop %edi <== NOT EXECUTED 116424: c9 leave <== NOT EXECUTED 116425: c3 ret <== NOT EXECUTED 116426: 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)
116428: 39 c7 cmp %eax,%edi <== NOT EXECUTED 11642a: 76 ee jbe 11641a <memfile_lseek+0x56> <== NOT EXECUTED
iop->offset = the_jnode->info.linearfile.size;
11642c: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED 11642f: 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; }
116432: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 116435: 5b pop %ebx <== NOT EXECUTED 116436: 5e pop %esi <== NOT EXECUTED 116437: 5f pop %edi <== NOT EXECUTED 116438: c9 leave <== NOT EXECUTED 116439: 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 );
11643a: e8 b5 11 00 00 call 1175f4 <__errno> <== NOT EXECUTED 11643f: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED 116445: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11644a: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED 11644f: eb ae jmp 1163ff <memfile_lseek+0x3b> <== NOT EXECUTED
001166e0 <memfile_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
1166e0: 55 push %ebp 1166e1: 89 e5 mov %esp,%ebp 1166e3: 56 push %esi 1166e4: 53 push %ebx 1166e5: 8b 5d 08 mov 0x8(%ebp),%ebx
IMFS_jnode_t *the_jnode; the_jnode = iop->file_info;
1166e8: 8b 73 38 mov 0x38(%ebx),%esi
/* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
1166eb: 8b 43 14 mov 0x14(%ebx),%eax 1166ee: a9 04 02 00 00 test $0x204,%eax
1166f3: 74 06 je 1166fb <memfile_open+0x1b> && (the_jnode->type == IMFS_LINEAR_FILE)) {
1166f5: 83 7e 4c 06 cmpl $0x6,0x4c(%esi)
1166f9: 74 2d je 116728 <memfile_open+0x48> <== ALWAYS 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)
1166fb: 8b 56 50 mov 0x50(%esi),%edx 1166fe: 8b 4e 54 mov 0x54(%esi),%ecx
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND)
116701: f6 c4 02 test $0x2,%ah
116704: 75 12 jne 116718 <memfile_open+0x38> iop->offset = the_jnode->info.file.size; iop->size = the_jnode->info.file.size;
116706: 89 53 04 mov %edx,0x4(%ebx) 116709: 89 4b 08 mov %ecx,0x8(%ebx) 11670c: 31 c0 xor %eax,%eax
return 0; }
11670e: 8d 65 f8 lea -0x8(%ebp),%esp 116711: 5b pop %ebx 116712: 5e pop %esi 116713: c9 leave 116714: c3 ret
116715: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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;
116718: 89 53 0c mov %edx,0xc(%ebx) 11671b: 89 4b 10 mov %ecx,0x10(%ebx) 11671e: 8b 56 50 mov 0x50(%esi),%edx 116721: 8b 4e 54 mov 0x54(%esi),%ecx 116724: eb e0 jmp 116706 <memfile_open+0x26>
116726: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) && (the_jnode->type == IMFS_LINEAR_FILE)) { uint32_t count = the_jnode->info.linearfile.size;
116728: 8b 46 50 mov 0x50(%esi),%eax <== NOT EXECUTED
const unsigned char *buffer = the_jnode->info.linearfile.direct;
11672b: 8b 56 58 mov 0x58(%esi),%edx <== NOT EXECUTED
the_jnode->type = IMFS_MEMORY_FILE;
11672e: c7 46 4c 05 00 00 00 movl $0x5,0x4c(%esi) <== NOT EXECUTED
the_jnode->info.file.size = 0;
116735: c7 46 50 00 00 00 00 movl $0x0,0x50(%esi) <== NOT EXECUTED 11673c: c7 46 54 00 00 00 00 movl $0x0,0x54(%esi) <== NOT EXECUTED
the_jnode->info.file.indirect = 0;
116743: c7 46 58 00 00 00 00 movl $0x0,0x58(%esi) <== NOT EXECUTED
the_jnode->info.file.doubly_indirect = 0;
11674a: c7 46 5c 00 00 00 00 movl $0x0,0x5c(%esi) <== NOT EXECUTED
the_jnode->info.file.triply_indirect = 0;
116751: c7 46 60 00 00 00 00 movl $0x0,0x60(%esi) <== NOT EXECUTED
if ((count != 0)
116758: 85 c0 test %eax,%eax <== NOT EXECUTED 11675a: 75 09 jne 116765 <memfile_open+0x85> <== NOT EXECUTED 11675c: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 11675f: 31 d2 xor %edx,%edx <== NOT EXECUTED 116761: 31 c9 xor %ecx,%ecx <== NOT EXECUTED 116763: eb 9c jmp 116701 <memfile_open+0x21> <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
116765: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 116768: 50 push %eax <== NOT EXECUTED 116769: 52 push %edx <== NOT EXECUTED 11676a: 6a 00 push $0x0 <== NOT EXECUTED 11676c: 6a 00 push $0x0 <== NOT EXECUTED 11676e: 56 push %esi <== NOT EXECUTED 11676f: e8 e0 fc ff ff call 116454 <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)
116774: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 116777: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED 11677a: 74 92 je 11670e <memfile_open+0x2e> <== NOT EXECUTED 11677c: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 11677f: e9 77 ff ff ff jmp 1166fb <memfile_open+0x1b> <== NOT EXECUTED
00116110 <memfile_rmnod>: int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) {
116110: 55 push %ebp 116111: 89 e5 mov %esp,%ebp 116113: 53 push %ebx 116114: 83 ec 14 sub $0x14,%esp
IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access;
116117: 8b 45 0c mov 0xc(%ebp),%eax 11611a: 8b 18 mov (%eax),%ebx
/* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) {
11611c: 8b 4b 08 mov 0x8(%ebx),%ecx 11611f: 85 c9 test %ecx,%ecx
116121: 74 13 je 116136 <memfile_rmnod+0x26> <== ALWAYS TAKEN
116123: 83 ec 0c sub $0xc,%esp 116126: 53 push %ebx 116127: e8 84 76 ff ff call 10d7b0 <_Chain_Extract>
rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL;
11612c: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 116133: 83 c4 10 add $0x10,%esp
/* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--;
116136: 66 ff 4b 34 decw 0x34(%ebx)
IMFS_update_ctime( the_jnode );
11613a: 83 ec 08 sub $0x8,%esp 11613d: 6a 00 push $0x0 11613f: 8d 45 f0 lea -0x10(%ebp),%eax 116142: 50 push %eax 116143: e8 44 33 ff ff call 10948c <gettimeofday> 116148: 8b 45 f0 mov -0x10(%ebp),%eax 11614b: 89 43 48 mov %eax,0x48(%ebx)
return memfile_check_rmnod( the_jnode );
11614e: 89 1c 24 mov %ebx,(%esp) 116151: e8 5e ff ff ff call 1160b4 <memfile_check_rmnod>
}
116156: 8b 5d fc mov -0x4(%ebp),%ebx 116159: c9 leave 11615a: c3 ret
001083a8 <mknod>: int mknod( const char *pathname, mode_t mode, dev_t dev ) {
1083a8: 55 push %ebp 1083a9: 89 e5 mov %esp,%ebp 1083ab: 57 push %edi 1083ac: 56 push %esi 1083ad: 53 push %ebx 1083ae: 83 ec 3c sub $0x3c,%esp 1083b1: 8b 55 0c mov 0xc(%ebp),%edx 1083b4: 8b 4d 10 mov 0x10(%ebp),%ecx 1083b7: 8b 5d 14 mov 0x14(%ebp),%ebx 1083ba: 89 4d c0 mov %ecx,-0x40(%ebp) 1083bd: 89 5d c4 mov %ebx,-0x3c(%ebp)
rtems_filesystem_location_info_t temp_loc; int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) )
1083c0: f6 c6 f0 test $0xf0,%dh
1083c3: 0f 84 cb 00 00 00 je 108494 <mknod+0xec> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );
1083c9: 8b 5d 08 mov 0x8(%ebp),%ebx 1083cc: 8a 03 mov (%ebx),%al 1083ce: 3c 2f cmp $0x2f,%al
1083d0: 74 08 je 1083da <mknod+0x32>
1083d2: 3c 5c cmp $0x5c,%al
1083d4: 74 04 je 1083da <mknod+0x32> <== ALWAYS TAKEN
1083d6: 84 c0 test %al,%al
1083d8: 75 7e jne 108458 <mknod+0xb0> <== NEVER TAKEN
1083da: 8d 5d d0 lea -0x30(%ebp),%ebx 1083dd: 8b 35 18 30 12 00 mov 0x123018,%esi 1083e3: 83 c6 18 add $0x18,%esi 1083e6: b9 05 00 00 00 mov $0x5,%ecx 1083eb: 89 df mov %ebx,%edi 1083ed: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 1083ef: b1 01 mov $0x1,%cl
if ( !temp_loc.ops->evalformake_h ) {
1083f1: 8b 45 dc mov -0x24(%ebp),%eax 1083f4: 8b 40 04 mov 0x4(%eax),%eax 1083f7: 85 c0 test %eax,%eax
1083f9: 74 7c je 108477 <mknod+0xcf> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)(
1083fb: 56 push %esi 1083fc: 8d 75 e4 lea -0x1c(%ebp),%esi 1083ff: 56 push %esi 108400: 53 push %ebx 108401: 03 4d 08 add 0x8(%ebp),%ecx 108404: 51 push %ecx 108405: 89 55 bc mov %edx,-0x44(%ebp) 108408: ff d0 call *%eax
&pathname[i], &temp_loc, &name_start ); if ( result != 0 )
10840a: 83 c4 10 add $0x10,%esp 10840d: 85 c0 test %eax,%eax 10840f: 8b 55 bc mov -0x44(%ebp),%edx
108412: 75 6e jne 108482 <mknod+0xda> return -1; if ( !temp_loc.ops->mknod_h ) {
108414: 8b 4d dc mov -0x24(%ebp),%ecx 108417: 8b 41 14 mov 0x14(%ecx),%eax 10841a: 85 c0 test %eax,%eax
10841c: 0f 84 84 00 00 00 je 1084a6 <mknod+0xfe> <== ALWAYS 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 );
108422: 83 ec 0c sub $0xc,%esp 108425: 53 push %ebx 108426: ff 75 c4 pushl -0x3c(%ebp) 108429: ff 75 c0 pushl -0x40(%ebp) 10842c: 52 push %edx 10842d: ff 75 e4 pushl -0x1c(%ebp) 108430: ff d0 call *%eax 108432: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &temp_loc );
108434: 8b 45 dc mov -0x24(%ebp),%eax 108437: 83 c4 20 add $0x20,%esp 10843a: 85 c0 test %eax,%eax
10843c: 74 10 je 10844e <mknod+0xa6> <== ALWAYS TAKEN
10843e: 8b 40 1c mov 0x1c(%eax),%eax 108441: 85 c0 test %eax,%eax
108443: 74 09 je 10844e <mknod+0xa6>
108445: 83 ec 0c sub $0xc,%esp 108448: 53 push %ebx 108449: ff d0 call *%eax 10844b: 83 c4 10 add $0x10,%esp
return result; }
10844e: 89 f0 mov %esi,%eax 108450: 8d 65 f4 lea -0xc(%ebp),%esp 108453: 5b pop %ebx 108454: 5e pop %esi 108455: 5f pop %edi 108456: c9 leave 108457: c3 ret
int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );
108458: 8d 5d d0 lea -0x30(%ebp),%ebx 10845b: 8b 35 18 30 12 00 mov 0x123018,%esi 108461: 83 c6 04 add $0x4,%esi 108464: b9 05 00 00 00 mov $0x5,%ecx 108469: 89 df mov %ebx,%edi 10846b: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
if ( !temp_loc.ops->evalformake_h ) {
10846d: 8b 45 dc mov -0x24(%ebp),%eax 108470: 8b 40 04 mov 0x4(%eax),%eax 108473: 85 c0 test %eax,%eax
108475: 75 84 jne 1083fb <mknod+0x53> <== NEVER TAKEN
if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP );
108477: e8 3c a0 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10847c: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
108482: 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; }
108487: 89 f0 mov %esi,%eax 108489: 8d 65 f4 lea -0xc(%ebp),%esp 10848c: 5b pop %ebx 10848d: 5e pop %esi 10848e: 5f pop %edi 10848f: c9 leave 108490: c3 ret
108491: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL );
108494: e8 1f a0 00 00 call 1124b8 <__errno> <== NOT EXECUTED 108499: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 10849f: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 1084a4: eb a8 jmp 10844e <mknod+0xa6> <== NOT EXECUTED
); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc );
1084a6: 8b 41 1c mov 0x1c(%ecx),%eax <== NOT EXECUTED 1084a9: 85 c0 test %eax,%eax <== NOT EXECUTED 1084ab: 74 ca je 108477 <mknod+0xcf> <== NOT EXECUTED 1084ad: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1084b0: 53 push %ebx <== NOT EXECUTED 1084b1: ff d0 call *%eax <== NOT EXECUTED 1084b3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1084b6: eb bf jmp 108477 <mknod+0xcf> <== NOT EXECUTED
001084e0 <mount>: const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) {
1084e0: 55 push %ebp 1084e1: 89 e5 mov %esp,%ebp 1084e3: 57 push %edi 1084e4: 56 push %esi 1084e5: 53 push %ebx 1084e6: 83 ec 3c sub $0x3c,%esp 1084e9: 8b 75 14 mov 0x14(%ebp),%esi
/* * Is there a file system operations table? */ if ( fs_ops == NULL ) {
1084ec: 8b 5d 0c mov 0xc(%ebp),%ebx 1084ef: 85 db test %ebx,%ebx
1084f1: 0f 84 1d 02 00 00 je 108714 <mount+0x234> /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY &&
1084f7: 83 7d 10 01 cmpl $0x1,0x10(%ebp)
1084fb: 0f 87 13 02 00 00 ja 108714 <mount+0x234> errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) {
108501: 8b 45 0c mov 0xc(%ebp),%eax 108504: 8b 48 24 mov 0x24(%eax),%ecx 108507: 85 c9 test %ecx,%ecx
108509: 0f 84 32 02 00 00 je 108741 <mount+0x261> <== ALWAYS TAKEN
/* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device )
10850f: 85 f6 test %esi,%esi
108511: 0f 84 a9 01 00 00 je 1086c0 <mount+0x1e0> <== NEVER TAKEN
size += strlen( device ) + 1;
108517: 31 c0 xor %eax,%eax <== NOT EXECUTED 108519: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 10851e: 89 f7 mov %esi,%edi <== NOT EXECUTED 108520: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 108522: f7 d1 not %ecx <== NOT EXECUTED 108524: 83 c1 6c add $0x6c,%ecx <== NOT EXECUTED
temp_mt_entry = malloc( size );
108527: 83 ec 0c sub $0xc,%esp 10852a: 51 push %ecx 10852b: e8 9c fd ff ff call 1082cc <malloc> 108530: 89 c3 mov %eax,%ebx 108532: 89 45 c4 mov %eax,-0x3c(%ebp)
if ( !temp_mt_entry ) {
108535: 83 c4 10 add $0x10,%esp 108538: 85 c0 test %eax,%eax
10853a: 0f 84 3b 02 00 00 je 10877b <mount+0x29b> <== ALWAYS TAKEN
errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry;
108540: 89 43 2c mov %eax,0x2c(%ebx)
temp_mt_entry->options = options;
108543: 8b 55 10 mov 0x10(%ebp),%edx 108546: 89 50 30 mov %edx,0x30(%eax)
if ( device ) {
108549: 85 f6 test %esi,%esi
10854b: 0f 84 63 01 00 00 je 1086b4 <mount+0x1d4> <== NEVER TAKEN
temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t );
108551: 8d 40 6c lea 0x6c(%eax),%eax <== NOT EXECUTED
} temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev =
108554: 89 43 68 mov %eax,0x68(%ebx) <== NOT EXECUTED
(char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device );
108557: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10855a: 56 push %esi <== NOT EXECUTED 10855b: 50 push %eax <== NOT EXECUTED 10855c: e8 77 aa 00 00 call 112fd8 <strcpy> <== NOT EXECUTED 108561: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) {
108564: 8b 55 18 mov 0x18(%ebp),%edx 108567: 85 d2 test %edx,%edx
108569: 0f 84 0d 01 00 00 je 10867c <mount+0x19c> if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 )
10856f: 31 c0 xor %eax,%eax 108571: b9 ff ff ff ff mov $0xffffffff,%ecx 108576: 8b 7d 18 mov 0x18(%ebp),%edi 108579: f2 ae repnz scas %es:(%edi),%al 10857b: f7 d1 not %ecx 10857d: 49 dec %ecx
* permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path(
10857e: 83 ec 0c sub $0xc,%esp 108581: 6a 01 push $0x1 108583: 8d 75 d4 lea -0x2c(%ebp),%esi 108586: 56 push %esi 108587: 6a 07 push $0x7 108589: 51 push %ecx 10858a: ff 75 18 pushl 0x18(%ebp) 10858d: e8 36 fa ff ff call 107fc8 <rtems_filesystem_evaluate_path> 108592: 83 c4 20 add $0x20,%esp 108595: 40 inc %eax
108596: 0f 84 b7 01 00 00 je 108753 <mount+0x273> <== ALWAYS TAKEN
/* * Test for node_type_h */ if (!loc.ops->node_type_h) {
10859c: 8b 45 e0 mov -0x20(%ebp),%eax 10859f: 8b 40 10 mov 0x10(%eax),%eax 1085a2: 85 c0 test %eax,%eax
1085a4: 0f 84 c1 01 00 00 je 10876b <mount+0x28b> <== ALWAYS TAKEN
/* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
1085aa: 83 ec 0c sub $0xc,%esp 1085ad: 56 push %esi 1085ae: ff d0 call *%eax 1085b0: 83 c4 10 add $0x10,%esp 1085b3: 48 dec %eax
1085b4: 0f 85 77 01 00 00 jne 108731 <mount+0x251> /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first;
1085ba: a1 0c 52 12 00 mov 0x12520c,%eax 1085bf: 3d 10 52 12 00 cmp $0x125210,%eax
1085c4: 0f 84 5f 01 00 00 je 108729 <mount+0x249> <== ALWAYS TAKEN
!rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { the_mount_entry = (rtems_filesystem_mount_table_entry_t *) the_node; if ( the_mount_entry->mt_fs_root.node_access == loc->node_access )
1085ca: 8b 55 d4 mov -0x2c(%ebp),%edx 1085cd: 39 50 1c cmp %edx,0x1c(%eax)
1085d0: 75 07 jne 1085d9 <mount+0xf9> <== NEVER TAKEN
1085d2: eb 78 jmp 10864c <mount+0x16c> <== NOT EXECUTED
1085d4: 39 50 1c cmp %edx,0x1c(%eax)
1085d7: 74 73 je 10864c <mount+0x16c> * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) {
1085d9: 8b 00 mov (%eax),%eax
/* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first;
1085db: 3d 10 52 12 00 cmp $0x125210,%eax
1085e0: 75 f2 jne 1085d4 <mount+0xf4> * 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. */ temp_mt_entry->mt_point_node.node_access = loc.node_access;
1085e2: 89 53 08 mov %edx,0x8(%ebx)
temp_mt_entry->mt_point_node.handlers = loc.handlers;
1085e5: 8b 45 dc mov -0x24(%ebp),%eax 1085e8: 89 43 10 mov %eax,0x10(%ebx)
temp_mt_entry->mt_point_node.ops = loc.ops;
1085eb: 8b 45 e0 mov -0x20(%ebp),%eax 1085ee: 89 43 14 mov %eax,0x14(%ebx)
temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry;
1085f1: 8b 55 e4 mov -0x1c(%ebp),%edx 1085f4: 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 ){
1085f7: 8b 40 20 mov 0x20(%eax),%eax 1085fa: 85 c0 test %eax,%eax
1085fc: 0f 84 69 01 00 00 je 10876b <mount+0x28b> <== ALWAYS TAKEN
errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) {
108602: 83 ec 0c sub $0xc,%esp 108605: 53 push %ebx 108606: ff d0 call *%eax 108608: 83 c4 10 add $0x10,%esp 10860b: 85 c0 test %eax,%eax
10860d: 75 48 jne 108657 <mount+0x177> <== ALWAYS TAKEN
temp_mt_entry->mt_point_node.handlers = NULL; temp_mt_entry->mt_point_node.ops = NULL; temp_mt_entry->mt_point_node.mt_entry = NULL; } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) {
10860f: 83 ec 0c sub $0xc,%esp 108612: 53 push %ebx 108613: 8b 55 0c mov 0xc(%ebp),%edx 108616: ff 52 24 call *0x24(%edx) 108619: 83 c4 10 add $0x10,%esp 10861c: 85 c0 test %eax,%eax
10861e: 0f 85 a8 00 00 00 jne 1086cc <mount+0x1ec> <== ALWAYS TAKEN
RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node );
108624: 83 ec 08 sub $0x8,%esp 108627: 53 push %ebx 108628: 68 0c 52 12 00 push $0x12520c 10862d: e8 9a 38 00 00 call 10becc <_Chain_Append>
*/ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry )
108632: 83 c4 10 add $0x10,%esp 108635: 8b 45 08 mov 0x8(%ebp),%eax 108638: 85 c0 test %eax,%eax
10863a: 74 05 je 108641 <mount+0x161> <== ALWAYS TAKEN
*mt_entry = temp_mt_entry;
10863c: 8b 45 08 mov 0x8(%ebp),%eax 10863f: 89 18 mov %ebx,(%eax) 108641: 31 c0 xor %eax,%eax
if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; }
108643: 8d 65 f4 lea -0xc(%ebp),%esp 108646: 5b pop %ebx 108647: 5e pop %esi 108648: 5f pop %edi 108649: c9 leave 10864a: c3 ret
10864b: 90 nop <== NOT EXECUTED
/* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY;
10864c: e8 67 9e 00 00 call 1124b8 <__errno> 108651: c7 00 10 00 00 00 movl $0x10,(%eax)
return 0; cleanup_and_bail: free( temp_mt_entry );
108657: 83 ec 0c sub $0xc,%esp 10865a: 53 push %ebx 10865b: e8 1c fa ff ff call 10807c <free> 108660: 83 c4 10 add $0x10,%esp
if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free );
108663: 8b 46 0c mov 0xc(%esi),%eax 108666: 85 c0 test %eax,%eax
108668: 0f 85 8a 00 00 00 jne 1086f8 <mount+0x218> <== NEVER TAKEN
10866e: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED
return -1; }
108673: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 108676: 5b pop %ebx <== NOT EXECUTED 108677: 5e pop %esi <== NOT EXECUTED 108678: 5f pop %edi <== NOT EXECUTED 108679: c9 leave <== NOT EXECUTED 10867a: c3 ret <== NOT EXECUTED 10867b: 90 nop <== NOT EXECUTED
* This is a mount of the base file system --> The * mt_point_node.node_access will be set to null to indicate that this * is the root of the entire file system. */ temp_mt_entry->mt_fs_root.node_access = NULL;
10867c: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx)
temp_mt_entry->mt_fs_root.handlers = NULL;
108683: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx)
temp_mt_entry->mt_fs_root.ops = NULL;
10868a: c7 43 28 00 00 00 00 movl $0x0,0x28(%ebx)
temp_mt_entry->mt_point_node.node_access = NULL;
108691: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
temp_mt_entry->mt_point_node.handlers = NULL;
108698: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx)
temp_mt_entry->mt_point_node.ops = NULL;
10869f: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx)
temp_mt_entry->mt_point_node.mt_entry = NULL;
1086a6: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) 1086ad: 31 f6 xor %esi,%esi 1086af: e9 5b ff ff ff jmp 10860f <mount+0x12f>
if ( device ) { temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); } else temp_mt_entry->dev = 0;
1086b4: c7 40 68 00 00 00 00 movl $0x0,0x68(%eax) 1086bb: e9 a4 fe ff ff jmp 108564 <mount+0x84>
/* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device )
1086c0: b9 6c 00 00 00 mov $0x6c,%ecx 1086c5: e9 5d fe ff ff jmp 108527 <mount+0x47>
1086ca: 66 90 xchg %ax,%ax <== NOT EXECUTED
temp_mt_entry->mt_point_node.mt_entry = NULL; } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { /* try to undo the mount operation */ if ( loc.ops->unmount_h ) {
1086cc: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 1086cf: 8b 40 28 mov 0x28(%eax),%eax <== NOT EXECUTED 1086d2: 85 c0 test %eax,%eax <== NOT EXECUTED 1086d4: 74 09 je 1086df <mount+0x1ff> <== NOT EXECUTED
loc.ops->unmount_h( temp_mt_entry );
1086d6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1086d9: 53 push %ebx <== NOT EXECUTED 1086da: ff d0 call *%eax <== NOT EXECUTED 1086dc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0; cleanup_and_bail: free( temp_mt_entry );
1086df: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1086e2: 53 push %ebx <== NOT EXECUTED 1086e3: e8 94 f9 ff ff call 10807c <free> <== NOT EXECUTED
if ( loc_to_free )
1086e8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1086eb: 85 f6 test %esi,%esi <== NOT EXECUTED 1086ed: 0f 84 7b ff ff ff je 10866e <mount+0x18e> <== NOT EXECUTED 1086f3: e9 6b ff ff ff jmp 108663 <mount+0x183> <== NOT EXECUTED
rtems_filesystem_freenode( loc_to_free );
1086f8: 8b 40 1c mov 0x1c(%eax),%eax 1086fb: 85 c0 test %eax,%eax
1086fd: 0f 84 6b ff ff ff je 10866e <mount+0x18e> <== ALWAYS TAKEN
108703: 83 ec 0c sub $0xc,%esp 108706: 56 push %esi 108707: ff d0 call *%eax 108709: 83 c8 ff or $0xffffffff,%eax 10870c: 83 c4 10 add $0x10,%esp 10870f: e9 2f ff ff ff jmp 108643 <mount+0x163>
* Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL;
108714: e8 9f 9d 00 00 call 1124b8 <__errno> 108719: c7 00 16 00 00 00 movl $0x16,(%eax) 10871f: b8 ff ff ff ff mov $0xffffffff,%eax
return -1;
108724: e9 1a ff ff ff jmp 108643 <mount+0x163>
cleanup_and_bail: free( temp_mt_entry ); if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free );
108729: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 10872c: e9 b1 fe ff ff jmp 1085e2 <mount+0x102> <== NOT EXECUTED
/* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { errno = ENOTDIR;
108731: e8 82 9d 00 00 call 1124b8 <__errno> 108736: c7 00 14 00 00 00 movl $0x14,(%eax)
goto cleanup_and_bail;
10873c: e9 16 ff ff ff jmp 108657 <mount+0x177>
return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP;
108741: e8 72 9d 00 00 call 1124b8 <__errno> <== NOT EXECUTED 108746: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10874c: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) <== NOT EXECUTED
return 0; cleanup_and_bail: free( temp_mt_entry );
108753: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108756: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED 108759: e8 1e f9 ff ff call 10807c <free> <== NOT EXECUTED 10875e: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108763: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108766: e9 d8 fe ff ff jmp 108643 <mount+0x163> <== NOT EXECUTED
* 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;
10876b: e8 48 9d 00 00 call 1124b8 <__errno> <== NOT EXECUTED 108770: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
goto cleanup_and_bail;
108776: e9 dc fe ff ff jmp 108657 <mount+0x177> <== NOT EXECUTED
if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM;
10877b: e8 38 9d 00 00 call 1124b8 <__errno> <== NOT EXECUTED 108780: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 108786: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED
return -1;
108789: e9 b5 fe ff ff jmp 108643 <mount+0x163> <== NOT EXECUTED
00108864 <newlib_create_hook>: */ bool newlib_create_hook( rtems_tcb *current_task __attribute__((unused)), rtems_tcb *creating_task ) {
108864: 55 push %ebp 108865: 89 e5 mov %esp,%ebp 108867: 57 push %edi 108868: 56 push %esi 108869: 53 push %ebx 10886a: 83 ec 0c sub $0xc,%esp
struct _reent *ptr; if (_Thread_libc_reent == 0)
10886d: a1 e4 53 12 00 mov 0x1253e4,%eax 108872: 85 c0 test %eax,%eax
108874: 0f 84 52 02 00 00 je 108acc <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));
10887a: 83 ec 0c sub $0xc,%esp 10887d: 68 24 04 00 00 push $0x424 108882: e8 0d 5d 00 00 call 10e594 <_Workspace_Allocate> 108887: 89 c2 mov %eax,%edx
#endif if (ptr) {
108889: 83 c4 10 add $0x10,%esp 10888c: 85 c0 test %eax,%eax
10888e: 0f 84 2c 02 00 00 je 108ac0 <newlib_create_hook+0x25c> _REENT_INIT_PTR((ptr)); /* GCC extension: structure constants */
108894: c7 00 00 00 00 00 movl $0x0,(%eax) 10889a: 8d 98 ec 02 00 00 lea 0x2ec(%eax),%ebx 1088a0: 89 58 04 mov %ebx,0x4(%eax) 1088a3: 8d 80 54 03 00 00 lea 0x354(%eax),%eax 1088a9: 89 42 08 mov %eax,0x8(%edx) 1088ac: 8d 82 bc 03 00 00 lea 0x3bc(%edx),%eax 1088b2: 89 42 0c mov %eax,0xc(%edx) 1088b5: c7 42 10 00 00 00 00 movl $0x0,0x10(%edx) 1088bc: 8d 72 14 lea 0x14(%edx),%esi 1088bf: 31 c0 xor %eax,%eax 1088c1: b9 19 00 00 00 mov $0x19,%ecx 1088c6: 89 f7 mov %esi,%edi 1088c8: f3 aa rep stos %al,%es:(%edi) 1088ca: c7 42 30 00 00 00 00 movl $0x0,0x30(%edx) 1088d1: c7 42 34 ca f7 11 00 movl $0x11f7ca,0x34(%edx) 1088d8: c7 42 38 00 00 00 00 movl $0x0,0x38(%edx) 1088df: c7 42 3c 00 00 00 00 movl $0x0,0x3c(%edx) 1088e6: c7 42 40 00 00 00 00 movl $0x0,0x40(%edx) 1088ed: c7 42 44 00 00 00 00 movl $0x0,0x44(%edx) 1088f4: c7 42 48 00 00 00 00 movl $0x0,0x48(%edx) 1088fb: c7 42 4c 00 00 00 00 movl $0x0,0x4c(%edx) 108902: c7 42 50 00 00 00 00 movl $0x0,0x50(%edx) 108909: c7 42 54 00 00 00 00 movl $0x0,0x54(%edx) 108910: c7 42 58 00 00 00 00 movl $0x0,0x58(%edx) 108917: c7 42 5c 00 00 00 00 movl $0x0,0x5c(%edx) 10891e: c6 42 60 00 movb $0x0,0x60(%edx) 108922: 8d 72 7c lea 0x7c(%edx),%esi 108925: b1 24 mov $0x24,%cl 108927: 89 f7 mov %esi,%edi 108929: f3 aa rep stos %al,%es:(%edi) 10892b: c7 82 a0 00 00 00 00 movl $0x0,0xa0(%edx)
108932: 00 00 00
108935: c7 82 a4 00 00 00 01 movl $0x1,0xa4(%edx)
10893c: 00 00 00
10893f: c7 82 a8 00 00 00 00 movl $0x0,0xa8(%edx)
108946: 00 00 00
108949: 66 c7 82 ac 00 00 00 movw $0x330e,0xac(%edx)
108950: 0e 33
108952: 66 c7 82 ae 00 00 00 movw $0xabcd,0xae(%edx)
108959: cd ab
10895b: 66 c7 82 b0 00 00 00 movw $0x1234,0xb0(%edx)
108962: 34 12
108964: 66 c7 82 b2 00 00 00 movw $0xe66d,0xb2(%edx)
10896b: 6d e6
10896d: 66 c7 82 b4 00 00 00 movw $0xdeec,0xb4(%edx)
108974: ec de
108976: 66 c7 82 b6 00 00 00 movw $0x5,0xb6(%edx)
10897d: 05 00
10897f: 66 c7 82 b8 00 00 00 movw $0xb,0xb8(%edx)
108986: 0b 00
108988: c7 82 bc 00 00 00 00 movl $0x0,0xbc(%edx)
10898f: 00 00 00
108992: c7 82 c0 00 00 00 00 movl $0x0,0xc0(%edx)
108999: 00 00 00
10899c: c7 82 c4 00 00 00 00 movl $0x0,0xc4(%edx)
1089a3: 00 00 00
1089a6: c7 82 c8 00 00 00 00 movl $0x0,0xc8(%edx)
1089ad: 00 00 00
1089b0: c7 82 cc 00 00 00 00 movl $0x0,0xcc(%edx)
1089b7: 00 00 00
1089ba: c7 82 d0 00 00 00 00 movl $0x0,0xd0(%edx)
1089c1: 00 00 00
1089c4: c7 82 f8 00 00 00 00 movl $0x0,0xf8(%edx)
1089cb: 00 00 00
1089ce: c7 82 fc 00 00 00 00 movl $0x0,0xfc(%edx)
1089d5: 00 00 00
1089d8: c7 82 00 01 00 00 00 movl $0x0,0x100(%edx)
1089df: 00 00 00
1089e2: c7 82 04 01 00 00 00 movl $0x0,0x104(%edx)
1089e9: 00 00 00
1089ec: c7 82 08 01 00 00 00 movl $0x0,0x108(%edx)
1089f3: 00 00 00
1089f6: c7 82 0c 01 00 00 00 movl $0x0,0x10c(%edx)
1089fd: 00 00 00
108a00: c7 82 10 01 00 00 00 movl $0x0,0x110(%edx)
108a07: 00 00 00
108a0a: c7 82 14 01 00 00 00 movl $0x0,0x114(%edx)
108a11: 00 00 00
108a14: c7 82 18 01 00 00 00 movl $0x0,0x118(%edx)
108a1b: 00 00 00
108a1e: c7 82 1c 01 00 00 00 movl $0x0,0x11c(%edx)
108a25: 00 00 00
108a28: c6 82 d4 00 00 00 00 movb $0x0,0xd4(%edx) 108a2f: c6 82 dc 00 00 00 00 movb $0x0,0xdc(%edx) 108a36: c7 82 f4 00 00 00 00 movl $0x0,0xf4(%edx)
108a3d: 00 00 00
108a40: c7 82 48 01 00 00 00 movl $0x0,0x148(%edx)
108a47: 00 00 00
108a4a: c7 82 4c 01 00 00 00 movl $0x0,0x14c(%edx)
108a51: 00 00 00
108a54: c7 82 50 01 00 00 00 movl $0x0,0x150(%edx)
108a5b: 00 00 00
108a5e: c7 82 54 01 00 00 00 movl $0x0,0x154(%edx)
108a65: 00 00 00
108a68: c7 82 d4 02 00 00 00 movl $0x0,0x2d4(%edx)
108a6f: 00 00 00
108a72: c7 82 d4 01 00 00 00 movl $0x0,0x1d4(%edx)
108a79: 00 00 00
108a7c: c7 82 dc 02 00 00 00 movl $0x0,0x2dc(%edx)
108a83: 00 00 00
108a86: c7 82 e0 02 00 00 00 movl $0x0,0x2e0(%edx)
108a8d: 00 00 00
108a90: c7 82 e4 02 00 00 00 movl $0x0,0x2e4(%edx)
108a97: 00 00 00
108a9a: c7 82 e8 02 00 00 00 movl $0x0,0x2e8(%edx)
108aa1: 00 00 00
108aa4: 66 b9 38 01 mov $0x138,%cx 108aa8: 89 df mov %ebx,%edi 108aaa: f3 aa rep stos %al,%es:(%edi)
creating_task->libc_reent = ptr;
108aac: 8b 45 0c mov 0xc(%ebp),%eax 108aaf: 89 90 ec 00 00 00 mov %edx,0xec(%eax) 108ab5: b0 01 mov $0x1,%al
return TRUE; } return FALSE; }
108ab7: 8d 65 f4 lea -0xc(%ebp),%esp 108aba: 5b pop %ebx 108abb: 5e pop %esi 108abc: 5f pop %edi 108abd: c9 leave 108abe: c3 ret
108abf: 90 nop <== NOT EXECUTED
* hooks run with thread dispatching disabled. */ ptr = (struct _reent *) _Workspace_Allocate(sizeof(struct _reent)); #endif if (ptr) {
108ac0: 31 c0 xor %eax,%eax
creating_task->libc_reent = ptr; return TRUE; } return FALSE; }
108ac2: 8d 65 f4 lea -0xc(%ebp),%esp 108ac5: 5b pop %ebx 108ac6: 5e pop %esi 108ac7: 5f pop %edi 108ac8: c9 leave 108ac9: c3 ret
108aca: 66 90 xchg %ax,%ax <== NOT EXECUTED
{ struct _reent *ptr; if (_Thread_libc_reent == 0) { _REENT = _global_impure_ptr;
108acc: a1 c0 04 12 00 mov 0x1204c0,%eax 108ad1: a3 c0 30 12 00 mov %eax,0x1230c0
RTEMS_INLINE_ROUTINE void _Thread_Set_libc_reent ( struct _reent **libc_reent ) { _Thread_libc_reent = libc_reent;
108ad6: c7 05 e4 53 12 00 c0 movl $0x1230c0,0x1253e4
108add: 30 12 00
108ae0: e9 95 fd ff ff jmp 10887a <newlib_create_hook+0x16>
00108798 <newlib_delete_hook>: void newlib_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) {
108798: 55 push %ebp 108799: 89 e5 mov %esp,%ebp 10879b: 57 push %edi 10879c: 56 push %esi 10879d: 53 push %ebx 10879e: 83 ec 0c sub $0xc,%esp 1087a1: 8b 7d 08 mov 0x8(%ebp),%edi 1087a4: 8b 5d 0c mov 0xc(%ebp),%ebx
/* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) {
1087a7: 39 df cmp %ebx,%edi
1087a9: 74 55 je 108800 <newlib_delete_hook+0x68> ptr = _REENT; } else { ptr = deleted_task->libc_reent;
1087ab: 8b b3 ec 00 00 00 mov 0xec(%ebx),%esi
} if (ptr && ptr != _global_impure_ptr) {
1087b1: 85 f6 test %esi,%esi
1087b3: 74 21 je 1087d6 <newlib_delete_hook+0x3e><== ALWAYS TAKEN
1087b5: 3b 35 c0 04 12 00 cmp 0x1204c0,%esi
1087bb: 74 19 je 1087d6 <newlib_delete_hook+0x3e> _reclaim_reent(ptr); */ /* * Just in case there are some buffers lying around. */ _fwalk(ptr, newlib_free_buffers);
1087bd: 83 ec 08 sub $0x8,%esp 1087c0: 68 08 88 10 00 push $0x108808 1087c5: 56 push %esi 1087c6: e8 9d a4 00 00 call 112c68 <_fwalk>
#if REENT_MALLOCED free(ptr); #else _Workspace_Free(ptr);
1087cb: 89 34 24 mov %esi,(%esp) 1087ce: e8 dd 5d 00 00 call 10e5b0 <_Workspace_Free> 1087d3: 83 c4 10 add $0x10,%esp
#endif } deleted_task->libc_reent = NULL;
1087d6: c7 83 ec 00 00 00 00 movl $0x0,0xec(%ebx)
1087dd: 00 00 00 /* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) {
1087e0: 39 df cmp %ebx,%edi
1087e2: 74 08 je 1087ec <newlib_delete_hook+0x54> _REENT = 0; } }
1087e4: 8d 65 f4 lea -0xc(%ebp),%esp 1087e7: 5b pop %ebx 1087e8: 5e pop %esi 1087e9: 5f pop %edi 1087ea: c9 leave 1087eb: c3 ret
/* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) { _REENT = 0;
1087ec: c7 05 c0 30 12 00 00 movl $0x0,0x1230c0
1087f3: 00 00 00 } }
1087f6: 8d 65 f4 lea -0xc(%ebp),%esp 1087f9: 5b pop %ebx 1087fa: 5e pop %esi 1087fb: 5f pop %edi 1087fc: c9 leave 1087fd: c3 ret
1087fe: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) { ptr = _REENT;
108800: 8b 35 c0 30 12 00 mov 0x1230c0,%esi 108806: eb a9 jmp 1087b1 <newlib_delete_hook+0x19>
00108808 <newlib_free_buffers>: */ int newlib_free_buffers( FILE *fp ) {
108808: 55 push %ebp 108809: 89 e5 mov %esp,%ebp 10880b: 53 push %ebx 10880c: 83 ec 10 sub $0x10,%esp 10880f: 8b 5d 08 mov 0x8(%ebp),%ebx
switch ( fileno(fp) ) {
108812: 53 push %ebx 108813: e8 58 a0 00 00 call 112870 <fileno> 108818: 83 c4 10 add $0x10,%esp 10881b: 83 f8 02 cmp $0x2,%eax
10881e: 76 14 jbe 108834 <newlib_free_buffers+0x2c><== NEVER TAKEN
fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp);
108820: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108823: 53 push %ebx <== NOT EXECUTED 108824: e8 db 9d 00 00 call 112604 <fclose> <== NOT EXECUTED 108829: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} return 0; }
10882c: 31 c0 xor %eax,%eax 10882e: 8b 5d fc mov -0x4(%ebp),%ebx 108831: c9 leave 108832: c3 ret
108833: 90 nop <== NOT EXECUTED
{ switch ( fileno(fp) ) { case 0: case 1: case 2: if (fp->_flags & __SMBF) {
108834: 80 7b 0c 00 cmpb $0x0,0xc(%ebx)
108838: 79 f2 jns 10882c <newlib_free_buffers+0x24><== NEVER TAKEN
free( fp->_bf._base );
10883a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10883d: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 108840: e8 37 f8 ff ff call 10807c <free> <== NOT EXECUTED
fp->_flags &= ~__SMBF;
108845: 66 81 63 0c 7f ff andw $0xff7f,0xc(%ebx) <== NOT EXECUTED
fp->_bf._base = fp->_p = (unsigned char *) NULL;
10884b: c7 03 00 00 00 00 movl $0x0,(%ebx) <== NOT EXECUTED 108851: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED 108858: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
break; default: fclose(fp); } return 0; }
10885b: 31 c0 xor %eax,%eax <== NOT EXECUTED 10885d: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 108860: c9 leave <== NOT EXECUTED 108861: c3 ret <== NOT EXECUTED
00108780 <null_initialize>: rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) {
108780: 55 push %ebp 108781: 89 e5 mov %esp,%ebp 108783: 53 push %ebx 108784: 83 ec 04 sub $0x4,%esp 108787: 8b 5d 08 mov 0x8(%ebp),%ebx
rtems_device_driver status; if ( !initialized ) {
10878a: 80 3d f8 81 12 00 00 cmpb $0x0,0x1281f8
108791: 74 09 je 10879c <null_initialize+0x1c> NULL_major = major; } return RTEMS_SUCCESSFUL; }
108793: 31 c0 xor %eax,%eax 108795: 8b 5d fc mov -0x4(%ebp),%ebx 108798: c9 leave 108799: c3 ret
10879a: 66 90 xchg %ax,%ax <== NOT EXECUTED
) { rtems_device_driver status; if ( !initialized ) { initialized = 1;
10879c: c6 05 f8 81 12 00 01 movb $0x1,0x1281f8
status = rtems_io_register_name(
1087a3: 50 push %eax 1087a4: 6a 00 push $0x0 1087a6: 53 push %ebx 1087a7: 68 73 12 12 00 push $0x121273 1087ac: e8 1f 01 00 00 call 1088d0 <rtems_io_register_name>
"/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL)
1087b1: 83 c4 10 add $0x10,%esp 1087b4: 85 c0 test %eax,%eax
1087b6: 75 0d jne 1087c5 <null_initialize+0x45> <== ALWAYS TAKEN
rtems_fatal_error_occurred(status); NULL_major = major;
1087b8: 89 1d 60 85 12 00 mov %ebx,0x128560
} return RTEMS_SUCCESSFUL; }
1087be: 31 c0 xor %eax,%eax 1087c0: 8b 5d fc mov -0x4(%ebp),%ebx 1087c3: c9 leave 1087c4: c3 ret
major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status);
1087c5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1087c8: 50 push %eax <== NOT EXECUTED 1087c9: e8 92 42 00 00 call 10ca60 <rtems_fatal_error_occurred><== NOT EXECUTED
00108764 <null_write>: rtems_device_driver null_write( rtems_device_major_number major __attribute__((unused)), rtems_device_minor_number minor __attribute__((unused)), void *pargp ) {
108764: 55 push %ebp 108765: 89 e5 mov %esp,%ebp 108767: 8b 45 10 mov 0x10(%ebp),%eax
rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args )
10876a: 85 c0 test %eax,%eax
10876c: 74 06 je 108774 <null_write+0x10> <== NEVER TAKEN
rw_args->bytes_moved = rw_args->count;
10876e: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED 108771: 89 50 18 mov %edx,0x18(%eax) <== NOT EXECUTED
return NULL_SUCCESSFUL; }
108774: 31 c0 xor %eax,%eax 108776: c9 leave 108777: c3 ret
00108b48 <open>: int open( const char *pathname, int flags, ... ) {
108b48: 55 push %ebp 108b49: 89 e5 mov %esp,%ebp 108b4b: 57 push %edi 108b4c: 56 push %esi 108b4d: 53 push %ebx 108b4e: 83 ec 4c sub $0x4c,%esp
/* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1;
108b51: 8b 45 0c mov 0xc(%ebp),%eax 108b54: 40 inc %eax
if ( ( status & _FREAD ) == _FREAD )
108b55: 89 c6 mov %eax,%esi 108b57: 83 e6 01 and $0x1,%esi 108b5a: f7 de neg %esi 108b5c: 83 e6 04 and $0x4,%esi
eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE )
108b5f: a8 02 test $0x2,%al
108b61: 74 03 je 108b66 <open+0x1e> eval_flags |= RTEMS_LIBIO_PERMS_WRITE;
108b63: 83 ce 02 or $0x2,%esi
va_start(ap, flags); mode = va_arg( ap, int );
108b66: 8b 45 10 mov 0x10(%ebp),%eax 108b69: 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();
108b6c: e8 1f 70 00 00 call 10fb90 <rtems_libio_allocate> 108b71: 89 c3 mov %eax,%ebx
if ( iop == 0 ) {
108b73: 85 c0 test %eax,%eax
108b75: 0f 84 bd 00 00 00 je 108c38 <open+0xf0> /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true );
108b7b: b9 ff ff ff ff mov $0xffffffff,%ecx 108b80: 8b 7d 08 mov 0x8(%ebp),%edi 108b83: 31 c0 xor %eax,%eax 108b85: f2 ae repnz scas %es:(%edi),%al 108b87: f7 d1 not %ecx 108b89: 49 dec %ecx
/* * See if the file exists. */ status = rtems_filesystem_evaluate_path(
108b8a: 83 ec 0c sub $0xc,%esp 108b8d: 6a 01 push $0x1 108b8f: 8d 45 d4 lea -0x2c(%ebp),%eax 108b92: 89 45 b4 mov %eax,-0x4c(%ebp) 108b95: 50 push %eax 108b96: 56 push %esi 108b97: 51 push %ecx 108b98: ff 75 08 pushl 0x8(%ebp) 108b9b: e8 28 f4 ff ff call 107fc8 <rtems_filesystem_evaluate_path> 108ba0: 89 c6 mov %eax,%esi
pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) {
108ba2: 83 c4 20 add $0x20,%esp 108ba5: 83 f8 ff cmp $0xffffffff,%eax
108ba8: 0f 84 f2 00 00 00 je 108ca0 <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)) {
108bae: 8b 45 0c mov 0xc(%ebp),%eax 108bb1: 25 00 0a 00 00 and $0xa00,%eax 108bb6: 3d 00 0a 00 00 cmp $0xa00,%eax
108bbb: 0f 84 8b 00 00 00 je 108c4c <open+0x104> /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers;
108bc1: 8b 45 dc mov -0x24(%ebp),%eax 108bc4: 89 43 3c mov %eax,0x3c(%ebx)
iop->file_info = loc.node_access;
108bc7: 8b 45 d4 mov -0x2c(%ebp),%eax 108bca: 89 43 38 mov %eax,0x38(%ebx)
iop->flags |= rtems_libio_fcntl_flags( flags );
108bcd: 8b 73 14 mov 0x14(%ebx),%esi 108bd0: 83 ec 0c sub $0xc,%esp 108bd3: ff 75 0c pushl 0xc(%ebp) 108bd6: e8 41 70 00 00 call 10fc1c <rtems_libio_fcntl_flags> 108bdb: 09 f0 or %esi,%eax 108bdd: 89 43 14 mov %eax,0x14(%ebx)
iop->pathinfo = loc;
108be0: 8d 7b 18 lea 0x18(%ebx),%edi 108be3: b9 05 00 00 00 mov $0x5,%ecx 108be8: 8b 75 b4 mov -0x4c(%ebp),%esi 108beb: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
if ( !iop->handlers || !iop->handlers->open_h ) {
108bed: 8b 43 3c mov 0x3c(%ebx),%eax 108bf0: 83 c4 10 add $0x10,%esp 108bf3: 85 c0 test %eax,%eax
108bf5: 0f 84 99 00 00 00 je 108c94 <open+0x14c> <== ALWAYS TAKEN
108bfb: 8b 00 mov (%eax),%eax 108bfd: 85 c0 test %eax,%eax
108bff: 0f 84 8f 00 00 00 je 108c94 <open+0x14c> <== ALWAYS TAKEN
rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode );
108c05: ff 75 c4 pushl -0x3c(%ebp) 108c08: ff 75 0c pushl 0xc(%ebp) 108c0b: ff 75 08 pushl 0x8(%ebp) 108c0e: 53 push %ebx 108c0f: ff d0 call *%eax
if ( rc ) {
108c11: 83 c4 10 add $0x10,%esp 108c14: 85 c0 test %eax,%eax
108c16: 75 6c jne 108c84 <open+0x13c> /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) {
108c18: f7 45 0c 00 04 00 00 testl $0x400,0xc(%ebp)
108c1f: 0f 85 93 00 00 00 jne 108cb8 <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;
108c25: 89 d8 mov %ebx,%eax 108c27: 2b 05 c0 51 12 00 sub 0x1251c0,%eax 108c2d: c1 f8 06 sar $0x6,%eax
}
108c30: 8d 65 f4 lea -0xc(%ebp),%esp 108c33: 5b pop %ebx 108c34: 5e pop %esi 108c35: 5f pop %edi 108c36: c9 leave 108c37: c3 ret
* descriptors are obtained using socket(), not open(). */ /* allocate a file control block */ iop = rtems_libio_allocate(); if ( iop == 0 ) {
108c38: 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 );
108c3d: e8 76 98 00 00 call 1124b8 <__errno> 108c42: 89 30 mov %esi,(%eax) 108c44: b8 ff ff ff ff mov $0xffffffff,%eax 108c49: eb e5 jmp 108c30 <open+0xe8>
108c4b: 90 nop <== NOT EXECUTED
if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {
108c4c: 8d 7d d4 lea -0x2c(%ebp),%edi 108c4f: be 11 00 00 00 mov $0x11,%esi
done: va_end(ap); if ( rc ) { if ( iop )
108c54: 85 db test %ebx,%ebx
108c56: 74 0c je 108c64 <open+0x11c> <== ALWAYS TAKEN
rtems_libio_free( iop );
108c58: 83 ec 0c sub $0xc,%esp 108c5b: 53 push %ebx 108c5c: e8 d7 6e 00 00 call 10fb38 <rtems_libio_free> 108c61: 83 c4 10 add $0x10,%esp
if ( loc_to_free )
108c64: 85 ff test %edi,%edi
108c66: 74 d5 je 108c3d <open+0xf5> rtems_filesystem_freenode( loc_to_free );
108c68: 8b 47 0c mov 0xc(%edi),%eax 108c6b: 85 c0 test %eax,%eax
108c6d: 74 ce je 108c3d <open+0xf5> <== ALWAYS TAKEN
108c6f: 8b 40 1c mov 0x1c(%eax),%eax 108c72: 85 c0 test %eax,%eax
108c74: 74 c7 je 108c3d <open+0xf5> <== ALWAYS TAKEN
108c76: 83 ec 0c sub $0xc,%esp 108c79: 57 push %edi 108c7a: ff d0 call *%eax 108c7c: 83 c4 10 add $0x10,%esp 108c7f: eb bc jmp 108c3d <open+0xf5>
108c81: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); if ( rc ) { rc = errno;
108c84: e8 2f 98 00 00 call 1124b8 <__errno> 108c89: 8b 30 mov (%eax),%esi 108c8b: 8d 7d d4 lea -0x2c(%ebp),%edi
*/ done: va_end(ap); if ( rc ) {
108c8e: 85 f6 test %esi,%esi
108c90: 74 93 je 108c25 <open+0xdd> <== ALWAYS TAKEN
108c92: eb c0 jmp 108c54 <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;
108c94: 8d 7d d4 lea -0x2c(%ebp),%edi <== NOT EXECUTED 108c97: be 86 00 00 00 mov $0x86,%esi <== NOT EXECUTED 108c9c: eb b6 jmp 108c54 <open+0x10c> <== NOT EXECUTED 108c9e: 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 ) {
108ca0: e8 13 98 00 00 call 1124b8 <__errno> 108ca5: 83 38 02 cmpl $0x2,(%eax)
108ca8: 74 5e je 108d08 <open+0x1c0> } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); if ( rc ) { rc = errno;
108caa: e8 09 98 00 00 call 1124b8 <__errno> 108caf: 8b 30 mov (%eax),%esi 108cb1: 31 ff xor %edi,%edi
goto done;
108cb3: eb d9 jmp 108c8e <open+0x146>
108cb5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 );
108cb8: 52 push %edx 108cb9: 6a 00 push $0x0 108cbb: 6a 00 push $0x0 108cbd: 89 d8 mov %ebx,%eax 108cbf: 2b 05 c0 51 12 00 sub 0x1251c0,%eax 108cc5: c1 f8 06 sar $0x6,%eax 108cc8: 50 push %eax 108cc9: e8 12 6c 00 00 call 10f8e0 <ftruncate> 108cce: 89 c6 mov %eax,%esi
if ( rc ) {
108cd0: 83 c4 10 add $0x10,%esp 108cd3: 85 c0 test %eax,%eax
108cd5: 0f 84 4a ff ff ff je 108c25 <open+0xdd> <== NEVER TAKEN
if(errno) rc = errno;
108cdb: e8 d8 97 00 00 call 1124b8 <__errno> <== NOT EXECUTED 108ce0: 8b 00 mov (%eax),%eax <== NOT EXECUTED 108ce2: 85 c0 test %eax,%eax <== NOT EXECUTED 108ce4: 0f 85 8b 00 00 00 jne 108d75 <open+0x22d> <== NOT EXECUTED
close( iop - rtems_libio_iops );
108cea: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108ced: 2b 1d c0 51 12 00 sub 0x1251c0,%ebx <== NOT EXECUTED 108cf3: c1 fb 06 sar $0x6,%ebx <== NOT EXECUTED 108cf6: 53 push %ebx <== NOT EXECUTED 108cf7: e8 54 6b 00 00 call 10f850 <close> <== NOT EXECUTED 108cfc: 31 ff xor %edi,%edi <== NOT EXECUTED 108cfe: 31 db xor %ebx,%ebx <== NOT EXECUTED 108d00: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108d03: eb 89 jmp 108c8e <open+0x146> <== NOT EXECUTED 108d05: 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) ) {
108d08: f7 45 0c 00 02 00 00 testl $0x200,0xc(%ebp)
108d0f: 75 0f jne 108d20 <open+0x1d8>
108d11: 31 ff xor %edi,%edi 108d13: be 02 00 00 00 mov $0x2,%esi 108d18: e9 37 ff ff ff jmp 108c54 <open+0x10c>
108d1d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL );
108d20: 6a 00 push $0x0 108d22: 6a 00 push $0x0 108d24: 8b 45 c4 mov -0x3c(%ebp),%eax 108d27: 80 cc 80 or $0x80,%ah 108d2a: 50 push %eax 108d2b: ff 75 08 pushl 0x8(%ebp) 108d2e: e8 75 f6 ff ff call 1083a8 <mknod>
if ( rc ) {
108d33: 83 c4 10 add $0x10,%esp 108d36: 85 c0 test %eax,%eax
108d38: 0f 85 6c ff ff ff jne 108caa <open+0x162> <== ALWAYS 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 );
108d3e: 89 f1 mov %esi,%ecx 108d40: 8b 7d 08 mov 0x8(%ebp),%edi 108d43: 31 c0 xor %eax,%eax 108d45: f2 ae repnz scas %es:(%edi),%al 108d47: f7 d1 not %ecx 108d49: 49 dec %ecx 108d4a: 83 ec 0c sub $0xc,%esp 108d4d: 6a 01 push $0x1 108d4f: 8d 45 d4 lea -0x2c(%ebp),%eax 108d52: 50 push %eax 108d53: 6a 00 push $0x0 108d55: 51 push %ecx 108d56: ff 75 08 pushl 0x8(%ebp) 108d59: e8 6a f2 ff ff call 107fc8 <rtems_filesystem_evaluate_path>
if ( status != 0 ) { /* The file did not exist */
108d5e: 83 c4 20 add $0x20,%esp 108d61: 85 c0 test %eax,%eax
108d63: 0f 84 58 fe ff ff je 108bc1 <open+0x79> <== NEVER TAKEN
108d69: 31 ff xor %edi,%edi <== NOT EXECUTED 108d6b: be 0d 00 00 00 mov $0xd,%esi <== NOT EXECUTED 108d70: e9 df fe ff ff jmp 108c54 <open+0x10c> <== NOT EXECUTED
*/ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno;
108d75: e8 3e 97 00 00 call 1124b8 <__errno> <== NOT EXECUTED 108d7a: 8b 30 mov (%eax),%esi <== NOT EXECUTED 108d7c: e9 69 ff ff ff jmp 108cea <open+0x1a2> <== NOT EXECUTED
00108ae8 <open_dev_console>: /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) {
108ae8: 55 push %ebp 108ae9: 89 e5 mov %esp,%ebp 108aeb: 83 ec 0c sub $0xc,%esp
int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) {
108aee: 6a 00 push $0x0 108af0: 6a 00 push $0x0 108af2: 68 d0 e1 11 00 push $0x11e1d0 108af7: e8 4c 00 00 00 call 108b48 <open> 108afc: 83 c4 10 add $0x10,%esp 108aff: 40 inc %eax
108b00: 74 2a je 108b2c <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)
108b02: 52 push %edx 108b03: 6a 00 push $0x0 108b05: 6a 01 push $0x1 108b07: 68 d0 e1 11 00 push $0x11e1d0 108b0c: e8 37 00 00 00 call 108b48 <open> 108b11: 83 c4 10 add $0x10,%esp 108b14: 40 inc %eax
108b15: 74 24 je 108b3b <open_dev_console+0x53> <== ALWAYS TAKEN
rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1)
108b17: 50 push %eax 108b18: 6a 00 push $0x0 108b1a: 6a 01 push $0x1 108b1c: 68 d0 e1 11 00 push $0x11e1d0 108b21: e8 22 00 00 00 call 108b48 <open> 108b26: 83 c4 10 add $0x10,%esp 108b29: 40 inc %eax
108b2a: 74 02 je 108b2e <open_dev_console+0x46> <== ALWAYS TAKEN
rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ }
108b2c: c9 leave 108b2d: 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 */
108b2e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108b31: 68 32 44 54 55 push $0x55544432 <== NOT EXECUTED 108b36: e8 fd 30 00 00 call 10bc38 <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 */
108b3b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108b3e: 68 31 44 54 55 push $0x55544431 <== NOT EXECUTED 108b43: e8 f0 30 00 00 call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
00109664 <oproc>: /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) {
109664: 55 push %ebp 109665: 89 e5 mov %esp,%ebp 109667: 56 push %esi 109668: 53 push %ebx 109669: 83 ec 10 sub $0x10,%esp 10966c: 88 45 f4 mov %al,-0xc(%ebp)
int i; if (tty->termios.c_oflag & OPOST) {
10966f: 8b 4a 34 mov 0x34(%edx),%ecx 109672: f6 c1 01 test $0x1,%cl
109675: 74 31 je 1096a8 <oproc+0x44> <== ALWAYS TAKEN
switch (c) {
109677: 3c 09 cmp $0x9,%al
109679: 0f 84 b1 00 00 00 je 109730 <oproc+0xcc>
10967f: 76 3f jbe 1096c0 <oproc+0x5c> <== ALWAYS TAKEN
109681: 3c 0a cmp $0xa,%al
109683: 74 4f je 1096d4 <oproc+0x70>
109685: 3c 0d cmp $0xd,%al
109687: 74 7f je 109708 <oproc+0xa4> <== ALWAYS TAKEN
if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC)
109689: 83 e1 02 and $0x2,%ecx
10968c: 0f 85 c6 00 00 00 jne 109758 <oproc+0xf4> <== ALWAYS TAKEN
109692: 8b 0d a8 30 12 00 mov 0x1230a8,%ecx
c = toupper(c); if (!iscntrl(c))
109698: 0f b6 c0 movzbl %al,%eax 10969b: f6 44 01 01 20 testb $0x20,0x1(%ecx,%eax,1)
1096a0: 75 06 jne 1096a8 <oproc+0x44> <== ALWAYS TAKEN
tty->column++;
1096a2: ff 42 28 incl 0x28(%edx) 1096a5: 8d 76 00 lea 0x0(%esi),%esi
break; } } rtems_termios_puts (&c, 1, tty);
1096a8: 50 push %eax 1096a9: 52 push %edx 1096aa: 6a 01 push $0x1 1096ac: 8d 45 f4 lea -0xc(%ebp),%eax 1096af: 50 push %eax 1096b0: e8 7b fe ff ff call 109530 <rtems_termios_puts> 1096b5: 83 c4 10 add $0x10,%esp
}
1096b8: 8d 65 f8 lea -0x8(%ebp),%esp 1096bb: 5b pop %ebx 1096bc: 5e pop %esi 1096bd: c9 leave 1096be: c3 ret
1096bf: 90 nop <== NOT EXECUTED
oproc (unsigned char c, struct rtems_termios_tty *tty) { int i; if (tty->termios.c_oflag & OPOST) { switch (c) {
1096c0: 3c 08 cmp $0x8,%al <== NOT EXECUTED 1096c2: 75 c5 jne 109689 <oproc+0x25> <== NOT EXECUTED
} tty->column += i; break; case '\b': if (tty->column > 0)
1096c4: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED 1096c7: 85 c0 test %eax,%eax <== NOT EXECUTED 1096c9: 7e dd jle 1096a8 <oproc+0x44> <== NOT EXECUTED
tty->column--;
1096cb: 48 dec %eax <== NOT EXECUTED 1096cc: 89 42 28 mov %eax,0x28(%edx) <== NOT EXECUTED 1096cf: eb d7 jmp 1096a8 <oproc+0x44> <== NOT EXECUTED 1096d1: 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)
1096d4: f6 c1 20 test $0x20,%cl
1096d7: 74 07 je 1096e0 <oproc+0x7c> <== NEVER TAKEN
tty->column = 0;
1096d9: c7 42 28 00 00 00 00 movl $0x0,0x28(%edx) <== NOT EXECUTED
if (tty->termios.c_oflag & ONLCR) {
1096e0: 83 e1 04 and $0x4,%ecx
1096e3: 74 c3 je 1096a8 <oproc+0x44> <== ALWAYS TAKEN
rtems_termios_puts ("\r", 1, tty);
1096e5: 56 push %esi 1096e6: 52 push %edx 1096e7: 6a 01 push $0x1 1096e9: 68 34 fa 11 00 push $0x11fa34 1096ee: 89 55 f0 mov %edx,-0x10(%ebp) 1096f1: e8 3a fe ff ff call 109530 <rtems_termios_puts>
tty->column = 0;
1096f6: 8b 55 f0 mov -0x10(%ebp),%edx 1096f9: c7 42 28 00 00 00 00 movl $0x0,0x28(%edx) 109700: 83 c4 10 add $0x10,%esp 109703: eb a3 jmp 1096a8 <oproc+0x44>
109705: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
} break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))
109708: f6 c1 10 test $0x10,%cl <== NOT EXECUTED 10970b: 74 07 je 109714 <oproc+0xb0> <== NOT EXECUTED 10970d: 8b 5a 28 mov 0x28(%edx),%ebx <== NOT EXECUTED 109710: 85 db test %ebx,%ebx <== NOT EXECUTED 109712: 74 a4 je 1096b8 <oproc+0x54> <== NOT EXECUTED
return; if (tty->termios.c_oflag & OCRNL) {
109714: f6 c1 08 test $0x8,%cl <== NOT EXECUTED 109717: 74 09 je 109722 <oproc+0xbe> <== NOT EXECUTED
c = '\n';
109719: c6 45 f4 0a movb $0xa,-0xc(%ebp) <== NOT EXECUTED
if (tty->termios.c_oflag & ONLRET)
10971d: 83 e1 20 and $0x20,%ecx <== NOT EXECUTED 109720: 74 86 je 1096a8 <oproc+0x44> <== NOT EXECUTED
tty->column = 0; break; } tty->column = 0;
109722: c7 42 28 00 00 00 00 movl $0x0,0x28(%edx) <== NOT EXECUTED
break;
109729: e9 7a ff ff ff jmp 1096a8 <oproc+0x44> <== NOT EXECUTED 10972e: 66 90 xchg %ax,%ax <== NOT EXECUTED
case '\t': i = 8 - (tty->column & 7);
109730: 8b 5a 28 mov 0x28(%edx),%ebx 109733: 89 de mov %ebx,%esi 109735: 83 e6 07 and $0x7,%esi 109738: b8 08 00 00 00 mov $0x8,%eax 10973d: 29 f0 sub %esi,%eax
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
10973f: 81 e1 00 18 00 00 and $0x1800,%ecx 109745: 81 f9 00 18 00 00 cmp $0x1800,%ecx
10974b: 74 37 je 109784 <oproc+0x120> <== NEVER TAKEN
tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i;
10974d: 01 d8 add %ebx,%eax <== NOT EXECUTED 10974f: 89 42 28 mov %eax,0x28(%edx) <== NOT EXECUTED
break;
109752: e9 51 ff ff ff jmp 1096a8 <oproc+0x44> <== NOT EXECUTED 109757: 90 nop <== NOT EXECUTED
tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) c = toupper(c);
109758: 8b 0d a8 30 12 00 mov 0x1230a8,%ecx <== NOT EXECUTED 10975e: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 109761: 0f be 5c 01 01 movsbl 0x1(%ecx,%eax,1),%ebx <== NOT EXECUTED 109766: 83 e3 03 and $0x3,%ebx <== NOT EXECUTED 109769: 83 fb 02 cmp $0x2,%ebx <== NOT EXECUTED 10976c: 74 0e je 10977c <oproc+0x118> <== NOT EXECUTED 10976e: 89 c3 mov %eax,%ebx <== NOT EXECUTED 109770: 88 d8 mov %bl,%al <== NOT EXECUTED 109772: 88 5d f4 mov %bl,-0xc(%ebp) <== NOT EXECUTED 109775: e9 1e ff ff ff jmp 109698 <oproc+0x34> <== NOT EXECUTED 10977a: 66 90 xchg %ax,%ax <== NOT EXECUTED 10977c: 8d 58 e0 lea -0x20(%eax),%ebx <== NOT EXECUTED 10977f: eb ef jmp 109770 <oproc+0x10c> <== NOT EXECUTED 109781: 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;
109784: 8d 1c 18 lea (%eax,%ebx,1),%ebx 109787: 89 5a 28 mov %ebx,0x28(%edx)
rtems_termios_puts ( " ", i, tty);
10978a: 51 push %ecx 10978b: 52 push %edx 10978c: 50 push %eax 10978d: 68 dc f6 11 00 push $0x11f6dc 109792: e8 99 fd ff ff call 109530 <rtems_termios_puts>
return;
109797: 83 c4 10 add $0x10,%esp 10979a: e9 19 ff ff ff jmp 1096b8 <oproc+0x54>
0010a4dc <pathconf>: long pathconf( const char *path, int name ) {
10a4dc: 55 push %ebp 10a4dd: 89 e5 mov %esp,%ebp 10a4df: 56 push %esi 10a4e0: 53 push %ebx
int status; int fd; fd = open( path, O_RDONLY );
10a4e1: 83 ec 08 sub $0x8,%esp 10a4e4: 6a 00 push $0x0 10a4e6: ff 75 08 pushl 0x8(%ebp) 10a4e9: e8 92 fd ff ff call 10a280 <open> 10a4ee: 89 c3 mov %eax,%ebx
if ( fd == -1 )
10a4f0: 83 c4 10 add $0x10,%esp 10a4f3: 83 f8 ff cmp $0xffffffff,%eax
10a4f6: 74 24 je 10a51c <pathconf+0x40> return -1; status = fpathconf( fd, name );
10a4f8: 83 ec 08 sub $0x8,%esp 10a4fb: ff 75 0c pushl 0xc(%ebp) 10a4fe: 50 push %eax 10a4ff: e8 00 ed ff ff call 109204 <fpathconf> 10a504: 89 c6 mov %eax,%esi
(void) close( fd );
10a506: 89 1c 24 mov %ebx,(%esp) 10a509: e8 d2 e7 ff ff call 108ce0 <close>
return status;
10a50e: 83 c4 10 add $0x10,%esp
}
10a511: 89 f0 mov %esi,%eax 10a513: 8d 65 f8 lea -0x8(%ebp),%esp 10a516: 5b pop %ebx 10a517: 5e pop %esi 10a518: c9 leave 10a519: c3 ret
10a51a: 66 90 xchg %ax,%ax <== NOT EXECUTED
{ int status; int fd; fd = open( path, O_RDONLY ); if ( fd == -1 )
10a51c: be ff ff ff ff mov $0xffffffff,%esi
status = fpathconf( fd, name ); (void) close( fd ); return status; }
10a521: 89 f0 mov %esi,%eax 10a523: 8d 65 f8 lea -0x8(%ebp),%esp 10a526: 5b pop %ebx 10a527: 5e pop %esi 10a528: c9 leave 10a529: c3 ret
00112000 <pipe_create>: * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) {
112000: 55 push %ebp 112001: 89 e5 mov %esp,%ebp 112003: 57 push %edi 112004: 56 push %esi 112005: 53 push %ebx 112006: 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)
112009: 6a 01 push $0x1 11200b: 8d 5d c4 lea -0x3c(%ebp),%ebx 11200e: 53 push %ebx 11200f: 6a 07 push $0x7 112011: 6a 03 push $0x3 112013: 68 f7 00 12 00 push $0x1200f7 112018: e8 ab 5f ff ff call 107fc8 <rtems_filesystem_evaluate_path> 11201d: 83 c4 20 add $0x20,%esp 112020: 85 c0 test %eax,%eax
112022: 0f 85 e0 00 00 00 jne 112108 <pipe_create+0x108> <== NEVER TAKEN
return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) return -1; } else rtems_filesystem_freenode(&loc);
112028: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED 11202b: 85 c0 test %eax,%eax <== NOT EXECUTED 11202d: 74 10 je 11203f <pipe_create+0x3f> <== NOT EXECUTED 11202f: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 112032: 85 c0 test %eax,%eax <== NOT EXECUTED 112034: 74 09 je 11203f <pipe_create+0x3f> <== NOT EXECUTED 112036: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 112039: 53 push %ebx <== NOT EXECUTED 11203a: ff d0 call *%eax <== NOT EXECUTED 11203c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10);
11203f: 8d 5d d9 lea -0x27(%ebp),%ebx 112042: be fc 00 12 00 mov $0x1200fc,%esi 112047: b9 0a 00 00 00 mov $0xa,%ecx 11204c: 89 df mov %ebx,%edi 11204e: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
112050: 0f b7 05 98 4f 12 00 movzwl 0x124f98,%eax 112057: 8d 50 01 lea 0x1(%eax),%edx 11205a: 66 89 15 98 4f 12 00 mov %dx,0x124f98 112061: 51 push %ecx 112062: 50 push %eax 112063: 68 07 01 12 00 push $0x120107 112068: 8d 45 e3 lea -0x1d(%ebp),%eax 11206b: 50 push %eax 11206c: e8 87 0d 00 00 call 112df8 <sprintf>
/* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
112071: 58 pop %eax 112072: 5a pop %edx 112073: 68 80 01 00 00 push $0x180 112078: 53 push %ebx 112079: e8 4a 01 00 00 call 1121c8 <mkfifo> 11207e: 83 c4 10 add $0x10,%esp 112081: 85 c0 test %eax,%eax
112083: 75 6f jne 1120f4 <pipe_create+0xf4> <== ALWAYS 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);
112085: 83 ec 08 sub $0x8,%esp 112088: 68 00 40 00 00 push $0x4000 11208d: 53 push %ebx 11208e: e8 b5 6a ff ff call 108b48 <open> 112093: 8b 55 08 mov 0x8(%ebp),%edx 112096: 89 02 mov %eax,(%edx)
if (filsdes[0] < 0) {
112098: 83 c4 10 add $0x10,%esp 11209b: 85 c0 test %eax,%eax
11209d: 0f 88 a1 00 00 00 js 112144 <pipe_create+0x144> <== NEVER 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]);
1120a3: 3b 05 4c 11 12 00 cmp 0x12114c,%eax <== NOT EXECUTED 1120a9: 0f 82 85 00 00 00 jb 112134 <pipe_create+0x134> <== NOT EXECUTED 1120af: 31 c0 xor %eax,%eax <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
1120b1: 83 60 14 fe andl $0xfffffffe,0x14(%eax) <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
1120b5: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1120b8: 6a 01 push $0x1 <== NOT EXECUTED 1120ba: 53 push %ebx <== NOT EXECUTED 1120bb: e8 88 6a ff ff call 108b48 <open> <== NOT EXECUTED 1120c0: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 1120c3: 89 42 04 mov %eax,0x4(%edx) <== NOT EXECUTED
if (filsdes[1] < 0) {
1120c6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1120c9: 85 c0 test %eax,%eax <== NOT EXECUTED 1120cb: 0f 88 8b 00 00 00 js 11215c <pipe_create+0x15c> <== NOT EXECUTED 1120d1: 31 f6 xor %esi,%esi <== NOT EXECUTED
err = errno; close(filsdes[0]); } unlink(fifopath);
1120d3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1120d6: 53 push %ebx <== NOT EXECUTED 1120d7: e8 08 01 00 00 call 1121e4 <unlink> <== NOT EXECUTED 1120dc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} rtems_set_errno_and_return_minus_one(err);
1120df: e8 d4 03 00 00 call 1124b8 <__errno> 1120e4: 89 30 mov %esi,(%eax)
}
1120e6: b8 ff ff ff ff mov $0xffffffff,%eax 1120eb: 8d 65 f4 lea -0xc(%ebp),%esp 1120ee: 5b pop %ebx 1120ef: 5e pop %esi 1120f0: 5f pop %edi 1120f1: c9 leave 1120f2: c3 ret
1120f3: 90 nop <== NOT EXECUTED
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){
1120f4: e8 bf 03 00 00 call 1124b8 <__errno> <== NOT EXECUTED
} unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); }
1120f9: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 1120fe: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 112101: 5b pop %ebx <== NOT EXECUTED 112102: 5e pop %esi <== NOT EXECUTED 112103: 5f pop %edi <== NOT EXECUTED 112104: c9 leave <== NOT EXECUTED 112105: c3 ret <== NOT EXECUTED 112106: 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)
112108: e8 ab 03 00 00 call 1124b8 <__errno> 11210d: 83 38 02 cmpl $0x2,(%eax)
112110: 75 e7 jne 1120f9 <pipe_create+0xf9> <== ALWAYS TAKEN
return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
112112: 83 ec 08 sub $0x8,%esp 112115: 68 ff 03 00 00 push $0x3ff 11211a: 68 f7 00 12 00 push $0x1200f7 11211f: e8 68 62 ff ff call 10838c <mkdir> 112124: 83 c4 10 add $0x10,%esp 112127: 85 c0 test %eax,%eax
112129: 0f 84 10 ff ff ff je 11203f <pipe_create+0x3f> <== NEVER TAKEN
11212f: eb c8 jmp 1120f9 <pipe_create+0xf9> <== NOT EXECUTED 112131: 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]);
112134: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 112137: 03 05 c0 51 12 00 add 0x1251c0,%eax <== NOT EXECUTED 11213d: e9 6f ff ff ff jmp 1120b1 <pipe_create+0xb1> <== NOT EXECUTED 112142: 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;
112144: e8 6f 03 00 00 call 1124b8 <__errno> 112149: 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);
11214b: 83 ec 0c sub $0xc,%esp 11214e: 53 push %ebx 11214f: e8 90 00 00 00 call 1121e4 <unlink> 112154: 83 c4 10 add $0x10,%esp 112157: eb 86 jmp 1120df <pipe_create+0xdf>
112159: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { err = errno;
11215c: e8 57 03 00 00 call 1124b8 <__errno> <== NOT EXECUTED 112161: 8b 30 mov (%eax),%esi <== NOT EXECUTED
close(filsdes[0]);
112163: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 112166: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 112169: ff 30 pushl (%eax) <== NOT EXECUTED 11216b: e8 e0 d6 ff ff call 10f850 <close> <== NOT EXECUTED 112170: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 112173: e9 5b ff ff ff jmp 1120d3 <pipe_create+0xd3> <== NOT EXECUTED
00110d1c <pipe_ioctl>: pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) {
110d1c: 55 push %ebp <== NOT EXECUTED 110d1d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 110d1f: 56 push %esi <== NOT EXECUTED 110d20: 53 push %ebx <== NOT EXECUTED 110d21: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED 110d24: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED
if (cmd == FIONREAD) {
110d27: 81 7d 0c 7f 66 04 40 cmpl $0x4004667f,0xc(%ebp) <== NOT EXECUTED 110d2e: 74 0c je 110d3c <pipe_ioctl+0x20> <== NOT EXECUTED 110d30: b8 ea ff ff ff mov $0xffffffea,%eax <== NOT EXECUTED
PIPE_UNLOCK(pipe); return 0; } return -EINVAL; }
110d35: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 110d38: 5b pop %ebx <== NOT EXECUTED 110d39: 5e pop %esi <== NOT EXECUTED 110d3a: c9 leave <== NOT EXECUTED 110d3b: c3 ret <== NOT EXECUTED
void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) { if (buffer == NULL)
110d3c: 85 db test %ebx,%ebx <== NOT EXECUTED 110d3e: 75 07 jne 110d47 <pipe_ioctl+0x2b> <== NOT EXECUTED 110d40: b8 f2 ff ff ff mov $0xfffffff2,%eax <== NOT EXECUTED 110d45: eb ee jmp 110d35 <pipe_ioctl+0x19> <== NOT EXECUTED
return -EFAULT; if (! PIPE_LOCK(pipe))
110d47: 52 push %edx <== NOT EXECUTED 110d48: 6a 00 push $0x0 <== NOT EXECUTED 110d4a: 6a 00 push $0x0 <== NOT EXECUTED 110d4c: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED 110d4f: e8 ac a8 ff ff call 10b600 <rtems_semaphore_obtain><== NOT EXECUTED 110d54: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110d57: 85 c0 test %eax,%eax <== NOT EXECUTED 110d59: 74 07 je 110d62 <pipe_ioctl+0x46> <== NOT EXECUTED 110d5b: b8 fc ff ff ff mov $0xfffffffc,%eax <== NOT EXECUTED 110d60: eb d3 jmp 110d35 <pipe_ioctl+0x19> <== NOT EXECUTED
return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length;
110d62: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED 110d65: 89 03 mov %eax,(%ebx) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
110d67: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110d6a: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED 110d6d: e8 8a a9 ff ff call 10b6fc <rtems_semaphore_release><== NOT EXECUTED 110d72: 31 c0 xor %eax,%eax <== NOT EXECUTED
return 0;
110d74: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110d77: eb bc jmp 110d35 <pipe_ioctl+0x19> <== NOT EXECUTED
00110cbc <pipe_lseek>: pipe_control_t *pipe, off_t offset, int whence, rtems_libio_t *iop ) {
110cbc: 55 push %ebp <== NOT EXECUTED 110cbd: 89 e5 mov %esp,%ebp <== NOT EXECUTED
/* Seek on pipe is not supported */ return -ESPIPE; }
110cbf: b8 e3 ff ff ff mov $0xffffffe3,%eax <== NOT EXECUTED 110cc4: c9 leave <== NOT EXECUTED 110cc5: c3 ret <== NOT EXECUTED
00110f60 <pipe_read>: pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) {
110f60: 55 push %ebp <== NOT EXECUTED 110f61: 89 e5 mov %esp,%ebp <== NOT EXECUTED 110f63: 57 push %edi <== NOT EXECUTED 110f64: 56 push %esi <== NOT EXECUTED 110f65: 53 push %ebx <== NOT EXECUTED 110f66: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED 110f69: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe))
110f6c: 6a 00 push $0x0 <== NOT EXECUTED 110f6e: 6a 00 push $0x0 <== NOT EXECUTED 110f70: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110f73: e8 88 a6 ff ff call 10b600 <rtems_semaphore_obtain><== NOT EXECUTED 110f78: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110f7b: 85 c0 test %eax,%eax <== NOT EXECUTED 110f7d: 0f 85 b1 00 00 00 jne 111034 <pipe_read+0xd4> <== NOT EXECUTED
return -EINTR; while (read < count) {
110f83: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED 110f86: 85 ff test %edi,%edi <== NOT EXECUTED 110f88: 0f 84 82 01 00 00 je 111110 <pipe_read+0x1b0> <== NOT EXECUTED
/* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0)
110f8e: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED 110f95: 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)) {
110f9c: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED 110f9f: 85 d2 test %edx,%edx <== NOT EXECUTED 110fa1: 0f 85 a1 00 00 00 jne 111048 <pipe_read+0xe8> <== NOT EXECUTED
/* Not an error */ if (pipe->Writers == 0)
110fa7: 8b 73 14 mov 0x14(%ebx),%esi <== NOT EXECUTED 110faa: 85 f6 test %esi,%esi <== NOT EXECUTED 110fac: 0f 84 06 01 00 00 je 1110b8 <pipe_read+0x158> <== NOT EXECUTED
goto out_locked; if (LIBIO_NODELAY(iop)) {
110fb2: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED 110fb5: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED 110fb9: 0f 85 01 01 00 00 jne 1110c0 <pipe_read+0x160> <== NOT EXECUTED
ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++;
110fbf: ff 43 18 incl 0x18(%ebx) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
110fc2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110fc5: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110fc8: e8 2f a7 ff ff call 10b6fc <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
110fcd: 5a pop %edx <== NOT EXECUTED 110fce: 59 pop %ecx <== NOT EXECUTED 110fcf: 6a 00 push $0x0 <== NOT EXECUTED 110fd1: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 110fd4: e8 cf 0a 00 00 call 111aa8 <rtems_barrier_wait> <== NOT EXECUTED 110fd9: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 110fdc: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED 110fdf: 19 f6 sbb %esi,%esi <== NOT EXECUTED 110fe1: f7 d6 not %esi <== NOT EXECUTED 110fe3: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED
ret = -EINTR; if (! PIPE_LOCK(pipe)) {
110fe6: 6a 00 push $0x0 <== NOT EXECUTED 110fe8: 6a 00 push $0x0 <== NOT EXECUTED 110fea: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110fed: e8 0e a6 ff ff call 10b600 <rtems_semaphore_obtain><== NOT EXECUTED 110ff2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110ff5: 85 c0 test %eax,%eax <== NOT EXECUTED 110ff7: 0f 85 cf 00 00 00 jne 1110cc <pipe_read+0x16c> <== NOT EXECUTED
/* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --;
110ffd: ff 4b 18 decl 0x18(%ebx) <== NOT EXECUTED
if (ret != 0)
111000: 85 f6 test %esi,%esi <== NOT EXECUTED 111002: 74 98 je 110f9c <pipe_read+0x3c> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe);
111004: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111007: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 11100a: e8 ed a6 ff ff call 10b6fc <rtems_semaphore_release><== NOT EXECUTED 11100f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
out_nolock: if (read > 0)
111012: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED 111015: 85 ff test %edi,%edi <== NOT EXECUTED 111017: 7e 0b jle 111024 <pipe_read+0xc4> <== NOT EXECUTED
return read; return ret; }
111019: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 11101c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 11101f: 5b pop %ebx <== NOT EXECUTED 111020: 5e pop %esi <== NOT EXECUTED 111021: 5f pop %edi <== NOT EXECUTED 111022: c9 leave <== NOT EXECUTED 111023: c3 ret <== NOT EXECUTED
out_locked: PIPE_UNLOCK(pipe); out_nolock: if (read > 0)
111024: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED
return read; return ret; }
111027: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 11102a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 11102d: 5b pop %ebx <== NOT EXECUTED 11102e: 5e pop %esi <== NOT EXECUTED 11102f: 5f pop %edi <== NOT EXECUTED 111030: c9 leave <== NOT EXECUTED 111031: c3 ret <== NOT EXECUTED 111032: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_libio_t *iop ) { int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe))
111034: c7 45 d4 fc ff ff ff movl $0xfffffffc,-0x2c(%ebp) <== NOT EXECUTED
out_nolock: if (read > 0) return read; return ret; }
11103b: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 11103e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 111041: 5b pop %ebx <== NOT EXECUTED 111042: 5e pop %esi <== NOT EXECUTED 111043: 5f pop %edi <== NOT EXECUTED 111044: c9 leave <== NOT EXECUTED 111045: c3 ret <== NOT EXECUTED 111046: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length);
111048: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 11104b: 2b 45 d0 sub -0x30(%ebp),%eax <== NOT EXECUTED 11104e: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED 111051: 39 c2 cmp %eax,%edx <== NOT EXECUTED 111053: 76 03 jbe 111058 <pipe_read+0xf8> <== NOT EXECUTED 111055: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED
chunk1 = pipe->Size - pipe->Start;
111058: 8b 73 08 mov 0x8(%ebx),%esi <== NOT EXECUTED 11105b: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED 11105e: 29 f0 sub %esi,%eax <== NOT EXECUTED
if (chunk > chunk1) {
111060: 39 45 cc cmp %eax,-0x34(%ebp) <== NOT EXECUTED 111063: 7f 71 jg 1110d6 <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);
111065: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 111068: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED 11106b: 03 33 add (%ebx),%esi <== NOT EXECUTED 11106d: 89 c7 mov %eax,%edi <== NOT EXECUTED 11106f: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 111072: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
pipe->Start += chunk;
111074: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 111077: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED
pipe->Start %= pipe->Size;
11107a: 31 d2 xor %edx,%edx <== NOT EXECUTED 11107c: f7 73 04 divl 0x4(%ebx) <== NOT EXECUTED 11107f: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED
pipe->Length -= chunk;
111082: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED 111085: 2b 45 cc sub -0x34(%ebp),%eax <== NOT EXECUTED 111088: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
/* For buffering optimization */ if (PIPE_EMPTY(pipe))
11108b: 85 c0 test %eax,%eax <== NOT EXECUTED 11108d: 75 07 jne 111096 <pipe_read+0x136> <== NOT EXECUTED
pipe->Start = 0;
11108f: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED
if (pipe->waitingWriters > 0)
111096: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED 111099: 85 c0 test %eax,%eax <== NOT EXECUTED 11109b: 75 5f jne 1110fc <pipe_read+0x19c> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe); read += chunk;
11109d: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 1110a0: 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) {
1110a3: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 1110a6: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED 1110a9: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 1110ac: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED 1110af: 0f 82 e7 fe ff ff jb 110f9c <pipe_read+0x3c> <== NOT EXECUTED 1110b5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 1110b8: 31 f6 xor %esi,%esi <== NOT EXECUTED 1110ba: e9 45 ff ff ff jmp 111004 <pipe_read+0xa4> <== NOT EXECUTED 1110bf: 90 nop <== NOT EXECUTED
while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) goto out_locked; if (LIBIO_NODELAY(iop)) {
1110c0: be f5 ff ff ff mov $0xfffffff5,%esi <== NOT EXECUTED 1110c5: e9 3a ff ff ff jmp 111004 <pipe_read+0xa4> <== NOT EXECUTED 1110ca: 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)) {
1110cc: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED 1110d1: e9 3c ff ff ff jmp 111012 <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);
1110d6: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 1110d9: 03 55 d0 add -0x30(%ebp),%edx <== NOT EXECUTED 1110dc: 03 33 add (%ebx),%esi <== NOT EXECUTED 1110de: 89 d7 mov %edx,%edi <== NOT EXECUTED 1110e0: 89 c1 mov %eax,%ecx <== NOT EXECUTED 1110e2: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
1110e4: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED 1110e7: 01 c2 add %eax,%edx <== NOT EXECUTED 1110e9: 03 55 0c add 0xc(%ebp),%edx <== NOT EXECUTED 1110ec: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 1110ef: 29 c1 sub %eax,%ecx <== NOT EXECUTED 1110f1: 8b 33 mov (%ebx),%esi <== NOT EXECUTED 1110f3: 89 d7 mov %edx,%edi <== NOT EXECUTED 1110f5: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED 1110f7: e9 78 ff ff ff jmp 111074 <pipe_read+0x114> <== NOT EXECUTED
/* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe);
1110fc: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1110ff: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 111102: 50 push %eax <== NOT EXECUTED 111103: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 111106: e8 39 09 00 00 call 111a44 <rtems_barrier_release> <== NOT EXECUTED 11110b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11110e: eb 8d jmp 11109d <pipe_read+0x13d> <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) {
111110: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED 111117: 31 f6 xor %esi,%esi <== NOT EXECUTED 111119: e9 e6 fe ff ff jmp 111004 <pipe_read+0xa4> <== NOT EXECUTED
00111120 <pipe_release>: */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) {
111120: 55 push %ebp <== NOT EXECUTED 111121: 89 e5 mov %esp,%ebp <== NOT EXECUTED 111123: 57 push %edi <== NOT EXECUTED 111124: 56 push %esi <== NOT EXECUTED 111125: 53 push %ebx <== NOT EXECUTED 111126: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED 111129: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
11112c: 8b 1f mov (%edi),%ebx <== NOT EXECUTED
uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore,
11112e: 6a 00 push $0x0 <== NOT EXECUTED 111130: 6a 00 push $0x0 <== NOT EXECUTED 111132: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111135: e8 c6 a4 ff ff call 10b600 <rtems_semaphore_obtain><== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL)
11113a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11113d: 85 c0 test %eax,%eax <== NOT EXECUTED 11113f: 0f 85 e3 00 00 00 jne 111228 <pipe_release+0x108> <== NOT EXECUTED
rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop);
111145: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 111148: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED 11114b: 89 c6 mov %eax,%esi <== NOT EXECUTED 11114d: 83 e6 06 and $0x6,%esi <== NOT EXECUTED
if (mode & LIBIO_FLAGS_READ)
111150: a8 02 test $0x2,%al <== NOT EXECUTED 111152: 74 03 je 111157 <pipe_release+0x37> <== NOT EXECUTED
pipe->Readers --;
111154: ff 4b 10 decl 0x10(%ebx) <== NOT EXECUTED
if (mode & LIBIO_FLAGS_WRITE)
111157: f7 c6 04 00 00 00 test $0x4,%esi <== NOT EXECUTED 11115d: 75 69 jne 1111c8 <pipe_release+0xa8> <== NOT EXECUTED
pipe->Writers --; sc = rtems_semaphore_obtain(rtems_pipe_semaphore,
11115f: 51 push %ecx <== NOT EXECUTED 111160: 6a 00 push $0x0 <== NOT EXECUTED 111162: 6a 00 push $0x0 <== NOT EXECUTED 111164: ff 35 90 4f 12 00 pushl 0x124f90 <== NOT EXECUTED 11116a: e8 91 a4 ff ff call 10b600 <rtems_semaphore_obtain><== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL)
11116f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111172: 85 c0 test %eax,%eax <== NOT EXECUTED 111174: 0f 85 ae 00 00 00 jne 111228 <pipe_release+0x108> <== NOT EXECUTED
rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe);
11117a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11117d: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111180: e8 77 a5 ff ff call 10b6fc <rtems_semaphore_release><== NOT EXECUTED
if (pipe->Readers == 0 && pipe->Writers == 0) {
111185: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111188: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED 11118b: 85 d2 test %edx,%edx <== NOT EXECUTED 11118d: 74 41 je 1111d0 <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)
11118f: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 111192: 85 c0 test %eax,%eax <== NOT EXECUTED 111194: 75 17 jne 1111ad <pipe_release+0x8d> <== NOT EXECUTED 111196: 83 fe 02 cmp $0x2,%esi <== NOT EXECUTED 111199: 74 12 je 1111ad <pipe_release+0x8d> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
11119b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11119e: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 1111a1: 50 push %eax <== NOT EXECUTED 1111a2: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 1111a5: e8 9a 08 00 00 call 111a44 <rtems_barrier_release> <== NOT EXECUTED 1111aa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_semaphore_release(rtems_pipe_semaphore);
1111ad: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1111b0: ff 35 90 4f 12 00 pushl 0x124f90 <== NOT EXECUTED 1111b6: e8 41 a5 ff ff call 10b6fc <rtems_semaphore_release><== NOT EXECUTED
if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; }
1111bb: 31 c0 xor %eax,%eax <== NOT EXECUTED 1111bd: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1111c0: 5b pop %ebx <== NOT EXECUTED 1111c1: 5e pop %esi <== NOT EXECUTED 1111c2: 5f pop %edi <== NOT EXECUTED 1111c3: c9 leave <== NOT EXECUTED 1111c4: c3 ret <== NOT EXECUTED 1111c5: 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 --;
1111c8: ff 4b 14 decl 0x14(%ebx) <== NOT EXECUTED 1111cb: eb 92 jmp 11115f <pipe_release+0x3f> <== NOT EXECUTED 1111cd: 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) {
1111d0: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 1111d3: 85 c0 test %eax,%eax <== NOT EXECUTED 1111d5: 74 19 je 1111f0 <pipe_release+0xd0> <== NOT EXECUTED
delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
1111d7: 83 fe 04 cmp $0x4,%esi <== NOT EXECUTED 1111da: 74 d1 je 1111ad <pipe_release+0x8d> <== NOT EXECUTED
/* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe);
1111dc: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1111df: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 1111e2: 50 push %eax <== NOT EXECUTED 1111e3: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 1111e6: e8 59 08 00 00 call 111a44 <rtems_barrier_release> <== NOT EXECUTED
delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
1111eb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1111ee: eb bd jmp 1111ad <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);
1111f0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1111f3: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 1111f6: e8 e1 07 00 00 call 1119dc <rtems_barrier_delete> <== NOT EXECUTED
rtems_barrier_delete(pipe->writeBarrier);
1111fb: 5e pop %esi <== NOT EXECUTED 1111fc: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 1111ff: e8 d8 07 00 00 call 1119dc <rtems_barrier_delete> <== NOT EXECUTED
rtems_semaphore_delete(pipe->Semaphore);
111204: 59 pop %ecx <== NOT EXECUTED 111205: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111208: e8 4f a3 ff ff call 10b55c <rtems_semaphore_delete><== NOT EXECUTED
free(pipe->Buffer);
11120d: 5a pop %edx <== NOT EXECUTED 11120e: ff 33 pushl (%ebx) <== NOT EXECUTED 111210: e8 67 6e ff ff call 10807c <free> <== NOT EXECUTED
free(pipe);
111215: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED 111218: e8 5f 6e ff ff call 10807c <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;
11121d: 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) {
111223: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111226: eb 85 jmp 1111ad <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);
111228: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11122b: 50 push %eax <== NOT EXECUTED 11122c: e8 07 aa ff ff call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
00110d7c <pipe_write>: pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) {
110d7c: 55 push %ebp <== NOT EXECUTED 110d7d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 110d7f: 57 push %edi <== NOT EXECUTED 110d80: 56 push %esi <== NOT EXECUTED 110d81: 53 push %ebx <== NOT EXECUTED 110d82: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0)
110d85: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED 110d88: 85 f6 test %esi,%esi <== NOT EXECUTED 110d8a: 75 0c jne 110d98 <pipe_write+0x1c> <== NOT EXECUTED 110d8c: 31 db xor %ebx,%ebx <== NOT EXECUTED
#endif if (written > 0) return written; return ret; }
110d8e: 89 d8 mov %ebx,%eax <== NOT EXECUTED 110d90: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 110d93: 5b pop %ebx <== NOT EXECUTED 110d94: 5e pop %esi <== NOT EXECUTED 110d95: 5f pop %edi <== NOT EXECUTED 110d96: c9 leave <== NOT EXECUTED 110d97: c3 ret <== NOT EXECUTED
/* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe))
110d98: 53 push %ebx <== NOT EXECUTED 110d99: 6a 00 push $0x0 <== NOT EXECUTED 110d9b: 6a 00 push $0x0 <== NOT EXECUTED 110d9d: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 110da0: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED 110da3: e8 58 a8 ff ff call 10b600 <rtems_semaphore_obtain><== NOT EXECUTED 110da8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110dab: 85 c0 test %eax,%eax <== NOT EXECUTED 110dad: 0f 85 1d 01 00 00 jne 110ed0 <pipe_write+0x154> <== NOT EXECUTED
return -EINTR; if (pipe->Readers == 0) {
110db3: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 110db6: 8b 48 10 mov 0x10(%eax),%ecx <== NOT EXECUTED 110db9: 85 c9 test %ecx,%ecx <== NOT EXECUTED 110dbb: 0f 84 4b 01 00 00 je 110f0c <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;
110dc1: 8b 48 04 mov 0x4(%eax),%ecx <== NOT EXECUTED 110dc4: 39 4d 10 cmp %ecx,0x10(%ebp) <== NOT EXECUTED 110dc7: 0f 87 35 01 00 00 ja 110f02 <pipe_write+0x186> <== NOT EXECUTED 110dcd: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED
} pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) {
110dd0: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED 110dd7: 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);
110dd9: 89 5d d4 mov %ebx,-0x2c(%ebp) <== NOT EXECUTED 110ddc: 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) {
110ddf: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED 110de2: 89 ca mov %ecx,%edx <== NOT EXECUTED 110de4: 29 c2 sub %eax,%edx <== NOT EXECUTED 110de6: 39 fa cmp %edi,%edx <== NOT EXECUTED 110de8: 73 6f jae 110e59 <pipe_write+0xdd> <== NOT EXECUTED
if (LIBIO_NODELAY(iop)) {
110dea: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED 110ded: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED 110df1: 0f 85 28 01 00 00 jne 110f1f <pipe_write+0x1a3> <== NOT EXECUTED
ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++;
110df7: ff 43 1c incl 0x1c(%ebx) <== NOT EXECUTED
PIPE_UNLOCK(pipe);
110dfa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110dfd: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110e00: e8 f7 a8 ff ff call 10b6fc <rtems_semaphore_release><== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
110e05: 58 pop %eax <== NOT EXECUTED 110e06: 5a pop %edx <== NOT EXECUTED 110e07: 6a 00 push $0x0 <== NOT EXECUTED 110e09: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 110e0c: e8 97 0c 00 00 call 111aa8 <rtems_barrier_wait> <== NOT EXECUTED 110e11: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 110e14: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED 110e17: 19 f6 sbb %esi,%esi <== NOT EXECUTED 110e19: f7 d6 not %esi <== NOT EXECUTED 110e1b: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED
ret = -EINTR; if (! PIPE_LOCK(pipe)) {
110e1e: 6a 00 push $0x0 <== NOT EXECUTED 110e20: 6a 00 push $0x0 <== NOT EXECUTED 110e22: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110e25: e8 d6 a7 ff ff call 10b600 <rtems_semaphore_obtain><== NOT EXECUTED 110e2a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110e2d: 85 c0 test %eax,%eax <== NOT EXECUTED 110e2f: 0f 85 e0 00 00 00 jne 110f15 <pipe_write+0x199> <== NOT EXECUTED
/* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --;
110e35: ff 4b 1c decl 0x1c(%ebx) <== NOT EXECUTED
if (ret != 0)
110e38: 85 f6 test %esi,%esi <== NOT EXECUTED 110e3a: 0f 85 e9 00 00 00 jne 110f29 <pipe_write+0x1ad> <== NOT EXECUTED
goto out_locked; if (pipe->Readers == 0) {
110e40: 8b 73 10 mov 0x10(%ebx),%esi <== NOT EXECUTED 110e43: 85 f6 test %esi,%esi <== NOT EXECUTED 110e45: 0f 84 8f 00 00 00 je 110eda <pipe_write+0x15e> <== NOT EXECUTED 110e4b: 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) {
110e4e: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED 110e51: 89 ca mov %ecx,%edx <== NOT EXECUTED 110e53: 29 c2 sub %eax,%edx <== NOT EXECUTED 110e55: 39 fa cmp %edi,%edx <== NOT EXECUTED 110e57: 72 91 jb 110dea <pipe_write+0x6e> <== NOT EXECUTED
ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe));
110e59: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED 110e5c: 2b 75 d0 sub -0x30(%ebp),%esi <== NOT EXECUTED 110e5f: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED 110e62: 39 f2 cmp %esi,%edx <== NOT EXECUTED 110e64: 76 03 jbe 110e69 <pipe_write+0xed> <== NOT EXECUTED 110e66: 89 75 cc mov %esi,-0x34(%ebp) <== NOT EXECUTED
chunk1 = pipe->Size - PIPE_WSTART(pipe);
110e69: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED 110e6c: 31 d2 xor %edx,%edx <== NOT EXECUTED 110e6e: f7 f1 div %ecx <== NOT EXECUTED 110e70: 89 c8 mov %ecx,%eax <== NOT EXECUTED 110e72: 29 d0 sub %edx,%eax <== NOT EXECUTED
if (chunk > chunk1) {
110e74: 39 45 cc cmp %eax,-0x34(%ebp) <== NOT EXECUTED 110e77: 0f 8e b1 00 00 00 jle 110f2e <pipe_write+0x1b2> <== NOT EXECUTED
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
110e7d: 03 13 add (%ebx),%edx <== NOT EXECUTED 110e7f: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 110e82: 03 75 d0 add -0x30(%ebp),%esi <== NOT EXECUTED 110e85: 89 d7 mov %edx,%edi <== NOT EXECUTED 110e87: 89 c1 mov %eax,%ecx <== NOT EXECUTED 110e89: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
110e8b: 8b 13 mov (%ebx),%edx <== NOT EXECUTED 110e8d: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 110e90: 29 c1 sub %eax,%ecx <== NOT EXECUTED 110e92: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED 110e95: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 110e98: 01 c6 add %eax,%esi <== NOT EXECUTED 110e9a: 89 d7 mov %edx,%edi <== NOT EXECUTED 110e9c: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED
} else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk;
110e9e: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 110ea1: 01 43 0c add %eax,0xc(%ebx) <== NOT EXECUTED
if (pipe->waitingReaders > 0)
110ea4: 83 7b 18 00 cmpl $0x0,0x18(%ebx) <== NOT EXECUTED 110ea8: 0f 85 94 00 00 00 jne 110f42 <pipe_write+0x1c6> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe); written += chunk;
110eae: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 110eb1: 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) {
110eb4: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 110eb7: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED 110eba: 39 45 10 cmp %eax,0x10(%ebp) <== NOT EXECUTED 110ebd: 0f 86 95 00 00 00 jbe 110f58 <pipe_write+0x1dc> <== NOT EXECUTED 110ec3: 8b 4b 04 mov 0x4(%ebx),%ecx <== NOT EXECUTED 110ec6: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED 110ecb: e9 0f ff ff ff jmp 110ddf <pipe_write+0x63> <== NOT EXECUTED
/* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe))
110ed0: bb fc ff ff ff mov $0xfffffffc,%ebx <== NOT EXECUTED 110ed5: e9 b4 fe ff ff jmp 110d8e <pipe_write+0x12> <== NOT EXECUTED 110eda: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED
} pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) {
110edd: 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);
110ee2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110ee5: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 110ee8: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED 110eeb: e8 0c a8 ff ff call 10b6fc <rtems_semaphore_release><== NOT EXECUTED 110ef0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
/* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); #endif if (written > 0)
110ef3: 85 db test %ebx,%ebx <== NOT EXECUTED 110ef5: 0f 8f 93 fe ff ff jg 110d8e <pipe_write+0x12> <== NOT EXECUTED 110efb: 89 f3 mov %esi,%ebx <== NOT EXECUTED 110efd: e9 8c fe ff ff jmp 110d8e <pipe_write+0x12> <== NOT EXECUTED
} pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) {
110f02: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED 110f07: e9 c4 fe ff ff jmp 110dd0 <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) {
110f0c: be e0 ff ff ff mov $0xffffffe0,%esi <== NOT EXECUTED 110f11: 31 db xor %ebx,%ebx <== NOT EXECUTED 110f13: eb cd jmp 110ee2 <pipe_write+0x166> <== NOT EXECUTED 110f15: 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)) {
110f18: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED 110f1d: eb d4 jmp 110ef3 <pipe_write+0x177> <== NOT EXECUTED 110f1f: 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)) {
110f22: be f5 ff ff ff mov $0xfffffff5,%esi <== NOT EXECUTED 110f27: eb b9 jmp 110ee2 <pipe_write+0x166> <== NOT EXECUTED 110f29: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED 110f2c: eb b4 jmp 110ee2 <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);
110f2e: 03 13 add (%ebx),%edx <== NOT EXECUTED 110f30: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 110f33: 03 75 d0 add -0x30(%ebp),%esi <== NOT EXECUTED 110f36: 89 d7 mov %edx,%edi <== NOT EXECUTED 110f38: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 110f3b: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED 110f3d: e9 5c ff ff ff jmp 110e9e <pipe_write+0x122> <== NOT EXECUTED
pipe->Length += chunk; if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe);
110f42: 51 push %ecx <== NOT EXECUTED 110f43: 51 push %ecx <== NOT EXECUTED 110f44: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 110f47: 50 push %eax <== NOT EXECUTED 110f48: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 110f4b: e8 f4 0a 00 00 call 111a44 <rtems_barrier_release> <== NOT EXECUTED 110f50: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110f53: e9 56 ff ff ff jmp 110eae <pipe_write+0x132> <== NOT EXECUTED 110f58: 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) {
110f5a: 31 f6 xor %esi,%esi <== NOT EXECUTED 110f5c: eb 84 jmp 110ee2 <pipe_write+0x166> <== NOT EXECUTED
0010b784 <posix_memalign>: int posix_memalign( void **pointer, size_t alignment, size_t size ) {
10b784: 55 push %ebp 10b785: 89 e5 mov %esp,%ebp 10b787: 53 push %ebx 10b788: 83 ec 04 sub $0x4,%esp 10b78b: 8b 45 0c mov 0xc(%ebp),%eax
/* * Update call statistics */ MSBUMP(memalign_calls, 1);
10b78e: ff 05 e8 ba 12 00 incl 0x12bae8
if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
10b794: 8d 50 ff lea -0x1(%eax),%edx 10b797: 85 c2 test %eax,%edx
10b799: 75 05 jne 10b7a0 <posix_memalign+0x1c> <== ALWAYS TAKEN
10b79b: 83 f8 03 cmp $0x3,%eax
10b79e: 77 0c ja 10b7ac <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 ); }
10b7a0: b8 16 00 00 00 mov $0x16,%eax 10b7a5: 5a pop %edx 10b7a6: 5b pop %ebx 10b7a7: c9 leave 10b7a8: c3 ret
10b7a9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
10b7ac: 59 pop %ecx 10b7ad: 5b pop %ebx 10b7ae: c9 leave
/* * rtems_memalign does all of the error checking work EXCEPT * for adding restrictionso on the alignment. */ return rtems_memalign( pointer, alignment, size );
10b7af: e9 20 01 00 00 jmp 10b8d4 <rtems_memalign>
00108eac <putk>: * putk * * Kernel putk (e.g. puts) function requiring minimal infrastrure. */ void putk(const char *s) {
108eac: 55 push %ebp 108ead: 89 e5 mov %esp,%ebp 108eaf: 53 push %ebx 108eb0: 83 ec 04 sub $0x4,%esp 108eb3: 8b 5d 08 mov 0x8(%ebp),%ebx
const char *p = s; for (p=s ; *p ; p++ )
108eb6: 8a 03 mov (%ebx),%al 108eb8: 84 c0 test %al,%al
108eba: 74 17 je 108ed3 <putk+0x27> <== ALWAYS TAKEN
BSP_output_char(*p);
108ebc: 83 ec 0c sub $0xc,%esp 108ebf: 0f be c0 movsbl %al,%eax 108ec2: 50 push %eax 108ec3: ff 15 44 12 12 00 call *0x121244
*/ void putk(const char *s) { const char *p = s; for (p=s ; *p ; p++ )
108ec9: 43 inc %ebx 108eca: 8a 03 mov (%ebx),%al 108ecc: 83 c4 10 add $0x10,%esp 108ecf: 84 c0 test %al,%al
108ed1: 75 e9 jne 108ebc <putk+0x10> BSP_output_char(*p); BSP_output_char('\n');
108ed3: c7 45 08 0a 00 00 00 movl $0xa,0x8(%ebp) 108eda: a1 44 12 12 00 mov 0x121244,%eax
}
108edf: 8b 5d fc mov -0x4(%ebp),%ebx 108ee2: c9 leave
{ const char *p = s; for (p=s ; *p ; p++ ) BSP_output_char(*p); BSP_output_char('\n');
108ee3: ff e0 jmp *%eax
0011d980 <read>: ssize_t read( int fd, void *buffer, size_t count ) {
11d980: 55 push %ebp 11d981: 89 e5 mov %esp,%ebp 11d983: 53 push %ebx 11d984: 83 ec 04 sub $0x4,%esp 11d987: 8b 5d 08 mov 0x8(%ebp),%ebx 11d98a: 8b 45 0c mov 0xc(%ebp),%eax 11d98d: 8b 55 10 mov 0x10(%ebp),%edx
ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd );
11d990: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx
11d996: 73 50 jae 11d9e8 <read+0x68> <== ALWAYS TAKEN
iop = rtems_libio_iop( fd );
11d998: c1 e3 06 shl $0x6,%ebx 11d99b: 03 1d c0 51 12 00 add 0x1251c0,%ebx
rtems_libio_check_is_open( iop );
11d9a1: 8b 4b 14 mov 0x14(%ebx),%ecx 11d9a4: f6 c5 01 test $0x1,%ch
11d9a7: 74 3f je 11d9e8 <read+0x68> rtems_libio_check_buffer( buffer );
11d9a9: 85 c0 test %eax,%eax
11d9ab: 74 4f je 11d9fc <read+0x7c> <== ALWAYS TAKEN
rtems_libio_check_count( count );
11d9ad: 85 d2 test %edx,%edx
11d9af: 74 2f je 11d9e0 <read+0x60> <== ALWAYS TAKEN
rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
11d9b1: 83 e1 02 and $0x2,%ecx
11d9b4: 74 46 je 11d9fc <read+0x7c> <== ALWAYS TAKEN
/* * Now process the read(). */ if ( !iop->handlers->read_h )
11d9b6: 8b 4b 3c mov 0x3c(%ebx),%ecx 11d9b9: 8b 49 08 mov 0x8(%ecx),%ecx 11d9bc: 85 c9 test %ecx,%ecx
11d9be: 74 4e je 11da0e <read+0x8e> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count );
11d9c0: 83 ec 04 sub $0x4,%esp 11d9c3: 52 push %edx 11d9c4: 50 push %eax 11d9c5: 53 push %ebx 11d9c6: ff d1 call *%ecx
if ( rc > 0 )
11d9c8: 83 c4 10 add $0x10,%esp 11d9cb: 85 c0 test %eax,%eax
11d9cd: 7e 0b jle 11d9da <read+0x5a> iop->offset += rc;
11d9cf: 89 c1 mov %eax,%ecx 11d9d1: c1 f9 1f sar $0x1f,%ecx 11d9d4: 01 43 0c add %eax,0xc(%ebx) 11d9d7: 11 4b 10 adc %ecx,0x10(%ebx)
return rc; }
11d9da: 8b 5d fc mov -0x4(%ebp),%ebx 11d9dd: c9 leave 11d9de: c3 ret
11d9df: 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 );
11d9e0: 31 c0 xor %eax,%eax <== NOT EXECUTED
if ( rc > 0 ) iop->offset += rc; return rc; }
11d9e2: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 11d9e5: c9 leave <== NOT EXECUTED 11d9e6: c3 ret <== NOT EXECUTED 11d9e7: 90 nop <== NOT EXECUTED
ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop );
11d9e8: e8 cb 4a ff ff call 1124b8 <__errno> 11d9ed: c7 00 09 00 00 00 movl $0x9,(%eax) 11d9f3: b8 ff ff ff ff mov $0xffffffff,%eax 11d9f8: eb e0 jmp 11d9da <read+0x5a>
11d9fa: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
11d9fc: e8 b7 4a ff ff call 1124b8 <__errno> <== NOT EXECUTED 11da01: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 11da07: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11da0c: eb cc jmp 11d9da <read+0x5a> <== NOT EXECUTED
/* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP );
11da0e: e8 a5 4a ff ff call 1124b8 <__errno> <== NOT EXECUTED 11da13: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11da19: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11da1e: eb ba jmp 11d9da <read+0x5a> <== NOT EXECUTED
0012c344 <readlink>: ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) {
12c344: 55 push %ebp 12c345: 89 e5 mov %esp,%ebp 12c347: 57 push %edi 12c348: 56 push %esi 12c349: 53 push %ebx 12c34a: 83 ec 2c sub $0x2c,%esp 12c34d: 8b 55 08 mov 0x8(%ebp),%edx 12c350: 8b 5d 0c mov 0xc(%ebp),%ebx
rtems_filesystem_location_info_t loc; int result; if (!buf)
12c353: 85 db test %ebx,%ebx
12c355: 0f 84 ad 00 00 00 je 12c408 <readlink+0xc4> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
12c35b: 31 c0 xor %eax,%eax 12c35d: b9 ff ff ff ff mov $0xffffffff,%ecx 12c362: 89 d7 mov %edx,%edi 12c364: f2 ae repnz scas %es:(%edi),%al 12c366: f7 d1 not %ecx 12c368: 49 dec %ecx 12c369: 83 ec 0c sub $0xc,%esp 12c36c: 6a 00 push $0x0 12c36e: 8d 75 d4 lea -0x2c(%ebp),%esi 12c371: 56 push %esi 12c372: 6a 00 push $0x0 12c374: 51 push %ecx 12c375: 52 push %edx 12c376: e8 cd f9 fd ff call 10bd48 <rtems_filesystem_evaluate_path>
0, &loc, false ); if ( result != 0 )
12c37b: 83 c4 20 add $0x20,%esp 12c37e: 85 c0 test %eax,%eax
12c380: 75 76 jne 12c3f8 <readlink+0xb4> <== ALWAYS TAKEN
return -1; if ( !loc.ops->node_type_h ){
12c382: 8b 55 e0 mov -0x20(%ebp),%edx 12c385: 8b 42 10 mov 0x10(%edx),%eax 12c388: 85 c0 test %eax,%eax
12c38a: 74 4e je 12c3da <readlink+0x96> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
12c38c: 83 ec 0c sub $0xc,%esp 12c38f: 56 push %esi 12c390: ff d0 call *%eax 12c392: 83 c4 10 add $0x10,%esp 12c395: 83 f8 04 cmp $0x4,%eax
12c398: 0f 85 86 00 00 00 jne 12c424 <readlink+0xe0> rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){
12c39e: 8b 55 e0 mov -0x20(%ebp),%edx 12c3a1: 8b 42 3c mov 0x3c(%edx),%eax 12c3a4: 85 c0 test %eax,%eax
12c3a6: 0f 84 a1 00 00 00 je 12c44d <readlink+0x109> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
12c3ac: 52 push %edx 12c3ad: ff 75 10 pushl 0x10(%ebp) 12c3b0: 53 push %ebx 12c3b1: 56 push %esi 12c3b2: ff d0 call *%eax 12c3b4: 89 c3 mov %eax,%ebx
rtems_filesystem_freenode( &loc );
12c3b6: 8b 45 e0 mov -0x20(%ebp),%eax 12c3b9: 83 c4 10 add $0x10,%esp 12c3bc: 85 c0 test %eax,%eax
12c3be: 74 10 je 12c3d0 <readlink+0x8c> <== ALWAYS TAKEN
12c3c0: 8b 40 1c mov 0x1c(%eax),%eax 12c3c3: 85 c0 test %eax,%eax
12c3c5: 74 09 je 12c3d0 <readlink+0x8c> <== ALWAYS TAKEN
12c3c7: 83 ec 0c sub $0xc,%esp 12c3ca: 56 push %esi 12c3cb: ff d0 call *%eax 12c3cd: 83 c4 10 add $0x10,%esp
return result; }
12c3d0: 89 d8 mov %ebx,%eax 12c3d2: 8d 65 f4 lea -0xc(%ebp),%esp 12c3d5: 5b pop %ebx 12c3d6: 5e pop %esi 12c3d7: 5f pop %edi 12c3d8: c9 leave 12c3d9: c3 ret
0, &loc, false ); if ( result != 0 ) return -1; if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc );
12c3da: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12c3dd: 85 c0 test %eax,%eax <== NOT EXECUTED 12c3df: 74 09 je 12c3ea <readlink+0xa6> <== NOT EXECUTED 12c3e1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c3e4: 56 push %esi <== NOT EXECUTED 12c3e5: ff d0 call *%eax <== NOT EXECUTED 12c3e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12c3ea: e8 0d 52 01 00 call 1415fc <__errno> <== NOT EXECUTED 12c3ef: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c3f5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 12c3f8: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; }
12c3fd: 89 d8 mov %ebx,%eax <== NOT EXECUTED 12c3ff: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c402: 5b pop %ebx <== NOT EXECUTED 12c403: 5e pop %esi <== NOT EXECUTED 12c404: 5f pop %edi <== NOT EXECUTED 12c405: c9 leave <== NOT EXECUTED 12c406: c3 ret <== NOT EXECUTED 12c407: 90 nop <== NOT EXECUTED
{ rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT );
12c408: e8 ef 51 01 00 call 1415fc <__errno> <== NOT EXECUTED 12c40d: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 12c413: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED
result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; }
12c418: 89 d8 mov %ebx,%eax <== NOT EXECUTED 12c41a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c41d: 5b pop %ebx <== NOT EXECUTED 12c41e: 5e pop %esi <== NOT EXECUTED 12c41f: 5f pop %edi <== NOT EXECUTED 12c420: c9 leave <== NOT EXECUTED 12c421: c3 ret <== NOT EXECUTED 12c422: 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 );
12c424: 8b 45 e0 mov -0x20(%ebp),%eax 12c427: 85 c0 test %eax,%eax
12c429: 74 10 je 12c43b <readlink+0xf7> <== ALWAYS TAKEN
12c42b: 8b 40 1c mov 0x1c(%eax),%eax 12c42e: 85 c0 test %eax,%eax
12c430: 74 09 je 12c43b <readlink+0xf7> <== ALWAYS TAKEN
12c432: 83 ec 0c sub $0xc,%esp 12c435: 56 push %esi 12c436: ff d0 call *%eax 12c438: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EINVAL );
12c43b: e8 bc 51 01 00 call 1415fc <__errno> 12c440: c7 00 16 00 00 00 movl $0x16,(%eax) 12c446: bb ff ff ff ff mov $0xffffffff,%ebx 12c44b: eb 83 jmp 12c3d0 <readlink+0x8c>
} if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc );
12c44d: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12c450: 85 c0 test %eax,%eax <== NOT EXECUTED 12c452: 74 09 je 12c45d <readlink+0x119> <== NOT EXECUTED 12c454: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c457: 56 push %esi <== NOT EXECUTED 12c458: ff d0 call *%eax <== NOT EXECUTED 12c45a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12c45d: e8 9a 51 01 00 call 1415fc <__errno> <== NOT EXECUTED 12c462: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c468: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 12c46d: e9 5e ff ff ff jmp 12c3d0 <readlink+0x8c> <== NOT EXECUTED
00109e4c <readv>: ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) {
109e4c: 55 push %ebp 109e4d: 89 e5 mov %esp,%ebp 109e4f: 57 push %edi 109e50: 56 push %esi 109e51: 53 push %ebx 109e52: 83 ec 1c sub $0x1c,%esp 109e55: 8b 75 08 mov 0x8(%ebp),%esi 109e58: 8b 5d 0c mov 0xc(%ebp),%ebx
int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd );
109e5b: 3b 35 ac 5d 12 00 cmp 0x125dac,%esi
109e61: 0f 83 03 01 00 00 jae 109f6a <readv+0x11e> <== ALWAYS TAKEN
iop = rtems_libio_iop( fd );
109e67: c1 e6 06 shl $0x6,%esi 109e6a: 03 35 20 a6 12 00 add 0x12a620,%esi
rtems_libio_check_is_open( iop );
109e70: 8b 46 14 mov 0x14(%esi),%eax 109e73: f6 c4 01 test $0x1,%ah
109e76: 0f 84 ee 00 00 00 je 109f6a <readv+0x11e> <== ALWAYS TAKEN
rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
109e7c: a8 02 test $0x2,%al
109e7e: 0f 84 b4 00 00 00 je 109f38 <readv+0xec> <== ALWAYS TAKEN
/* * Argument validation on IO vector */ if ( !iov )
109e84: 85 db test %ebx,%ebx
109e86: 0f 84 ac 00 00 00 je 109f38 <readv+0xec> rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 )
109e8c: 8b 7d 10 mov 0x10(%ebp),%edi 109e8f: 85 ff test %edi,%edi
109e91: 0f 8e a1 00 00 00 jle 109f38 <readv+0xec> rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX )
109e97: 81 7d 10 00 04 00 00 cmpl $0x400,0x10(%ebp)
109e9e: 0f 8f 94 00 00 00 jg 109f38 <readv+0xec> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h )
109ea4: 8b 46 3c mov 0x3c(%esi),%eax 109ea7: 8b 40 08 mov 0x8(%eax),%eax 109eaa: 89 45 e0 mov %eax,-0x20(%ebp) 109ead: 85 c0 test %eax,%eax
109eaf: 0f 84 c9 00 00 00 je 109f7e <readv+0x132> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
109eb5: c6 45 e4 01 movb $0x1,-0x1c(%ebp) 109eb9: 31 c0 xor %eax,%eax 109ebb: 31 d2 xor %edx,%edx 109ebd: eb 03 jmp 109ec2 <readv+0x76>
109ebf: 90 nop <== NOT EXECUTED
* 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++ ) {
109ec0: 89 fa mov %edi,%edx
ssize_t old; if ( !iov[v].iov_base )
109ec2: 8b 0c c3 mov (%ebx,%eax,8),%ecx 109ec5: 85 c9 test %ecx,%ecx
109ec7: 74 6f je 109f38 <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;
109ec9: 8b 4c c3 04 mov 0x4(%ebx,%eax,8),%ecx 109ecd: 8d 3c 0a lea (%edx,%ecx,1),%edi
if ( total < old )
109ed0: 39 d7 cmp %edx,%edi
109ed2: 7c 64 jl 109f38 <readv+0xec> rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len )
109ed4: 85 c9 test %ecx,%ecx
109ed6: 74 04 je 109edc <readv+0x90>
109ed8: 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++ ) {
109edc: 40 inc %eax 109edd: 39 45 10 cmp %eax,0x10(%ebp)
109ee0: 7f de jg 109ec0 <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 ) {
109ee2: 80 7d e4 00 cmpb $0x0,-0x1c(%ebp)
109ee6: 75 70 jne 109f58 <readv+0x10c>
109ee8: 31 ff xor %edi,%edi 109eea: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 109ef1: 8b 45 e0 mov -0x20(%ebp),%eax 109ef4: eb 24 jmp 109f1a <readv+0xce>
109ef6: 66 90 xchg %ax,%ax <== NOT EXECUTED
bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) return -1; if ( bytes > 0 ) {
109ef8: 74 0e je 109f08 <readv+0xbc> <== ALWAYS TAKEN
iop->offset += bytes;
109efa: 89 c1 mov %eax,%ecx 109efc: c1 f9 1f sar $0x1f,%ecx 109eff: 01 46 0c add %eax,0xc(%esi) 109f02: 11 4e 10 adc %ecx,0x10(%esi)
total += bytes;
109f05: 01 45 e4 add %eax,-0x1c(%ebp)
} if (bytes != iov[ v ].iov_len)
109f08: 3b 44 fb 04 cmp 0x4(%ebx,%edi,8),%eax
109f0c: 75 3c jne 109f4a <readv+0xfe> <== ALWAYS TAKEN
} /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) {
109f0e: 47 inc %edi 109f0f: 39 7d 10 cmp %edi,0x10(%ebp)
109f12: 7e 36 jle 109f4a <readv+0xfe>
109f14: 8b 46 3c mov 0x3c(%esi),%eax 109f17: 8b 40 08 mov 0x8(%eax),%eax
bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
109f1a: 52 push %edx 109f1b: ff 74 fb 04 pushl 0x4(%ebx,%edi,8) 109f1f: ff 34 fb pushl (%ebx,%edi,8) 109f22: 56 push %esi 109f23: ff d0 call *%eax
if ( bytes < 0 )
109f25: 83 c4 10 add $0x10,%esp 109f28: 83 f8 00 cmp $0x0,%eax
109f2b: 7d cb jge 109ef8 <readv+0xac> <== NEVER TAKEN
} /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) {
109f2d: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp) <== NOT EXECUTED 109f34: eb 14 jmp 109f4a <readv+0xfe> <== NOT EXECUTED 109f36: 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 );
109f38: e8 9b a8 00 00 call 1147d8 <__errno> 109f3d: c7 00 16 00 00 00 movl $0x16,(%eax) 109f43: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp)
if (bytes != iov[ v ].iov_len) break; } return total; }
109f4a: 8b 45 e4 mov -0x1c(%ebp),%eax 109f4d: 8d 65 f4 lea -0xc(%ebp),%esp 109f50: 5b pop %ebx 109f51: 5e pop %esi 109f52: 5f pop %edi 109f53: c9 leave 109f54: c3 ret
109f55: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * 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 ) {
109f58: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
if (bytes != iov[ v ].iov_len) break; } return total; }
109f5f: 8b 45 e4 mov -0x1c(%ebp),%eax 109f62: 8d 65 f4 lea -0xc(%ebp),%esp 109f65: 5b pop %ebx 109f66: 5e pop %esi 109f67: 5f pop %edi 109f68: c9 leave 109f69: c3 ret
rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop );
109f6a: e8 69 a8 00 00 call 1147d8 <__errno> <== NOT EXECUTED 109f6f: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 109f75: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp) <== NOT EXECUTED 109f7c: eb cc jmp 109f4a <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 );
109f7e: e8 55 a8 00 00 call 1147d8 <__errno> <== NOT EXECUTED 109f83: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 109f89: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp) <== NOT EXECUTED 109f90: eb b8 jmp 109f4a <readv+0xfe> <== NOT EXECUTED
0011daa0 <realloc>: { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1);
11daa0: 55 push %ebp 11daa1: 89 e5 mov %esp,%ebp 11daa3: 57 push %edi 11daa4: 56 push %esi 11daa5: 53 push %ebx 11daa6: 83 ec 2c sub $0x2c,%esp 11daa9: 8b 5d 08 mov 0x8(%ebp),%ebx 11daac: 8b 75 0c mov 0xc(%ebp),%esi 11daaf: ff 05 f0 51 12 00 incl 0x1251f0
/* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) {
11dab5: 83 3d 20 55 12 00 03 cmpl $0x3,0x125520
11dabc: 74 72 je 11db30 <realloc+0x90> <== NEVER TAKEN
} /* * Continue with realloc(). */ if ( !ptr )
11dabe: 85 db test %ebx,%ebx
11dac0: 74 5e je 11db20 <realloc+0x80> return malloc( size ); if ( !size ) {
11dac2: 85 f6 test %esi,%esi
11dac4: 74 3a je 11db00 <realloc+0x60> <== ALWAYS TAKEN
free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
11dac6: 52 push %edx 11dac7: 8d 45 e4 lea -0x1c(%ebp),%eax 11daca: 50 push %eax 11dacb: 53 push %ebx 11dacc: ff 35 58 11 12 00 pushl 0x121158 11dad2: e8 59 01 00 00 call 11dc30 <_Protected_heap_Get_block_size> 11dad7: 83 c4 10 add $0x10,%esp 11dada: 84 c0 test %al,%al
11dadc: 74 32 je 11db10 <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 ) ) {
11dade: 50 push %eax 11dadf: 56 push %esi 11dae0: 53 push %ebx 11dae1: ff 35 58 11 12 00 pushl 0x121158 11dae7: e8 7c 01 00 00 call 11dc68 <_Protected_heap_Resize_block> 11daec: 83 c4 10 add $0x10,%esp 11daef: 84 c0 test %al,%al
11daf1: 74 5d je 11db50 <realloc+0xb0> memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; }
11daf3: 89 d8 mov %ebx,%eax 11daf5: 8d 65 f4 lea -0xc(%ebp),%esp 11daf8: 5b pop %ebx 11daf9: 5e pop %esi 11dafa: 5f pop %edi 11dafb: c9 leave 11dafc: c3 ret
11dafd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr );
11db00: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11db03: 53 push %ebx <== NOT EXECUTED 11db04: e8 73 a5 fe ff call 10807c <free> <== NOT EXECUTED 11db09: 31 db xor %ebx,%ebx <== NOT EXECUTED
return (void *) 0;
11db0b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11db0e: eb e3 jmp 11daf3 <realloc+0x53> <== NOT EXECUTED
} if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL;
11db10: e8 a3 49 ff ff call 1124b8 <__errno> 11db15: c7 00 16 00 00 00 movl $0x16,(%eax) 11db1b: 31 db xor %ebx,%ebx
return (void *) 0;
11db1d: eb d4 jmp 11daf3 <realloc+0x53>
11db1f: 90 nop <== NOT EXECUTED
/* * Continue with realloc(). */ if ( !ptr ) return malloc( size );
11db20: 83 ec 0c sub $0xc,%esp 11db23: 56 push %esi 11db24: e8 a3 a7 fe ff call 1082cc <malloc> 11db29: 89 c3 mov %eax,%ebx 11db2b: 83 c4 10 add $0x10,%esp 11db2e: eb c3 jmp 11daf3 <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)
11db30: a1 58 53 12 00 mov 0x125358,%eax 11db35: 85 c0 test %eax,%eax
11db37: 74 04 je 11db3d <realloc+0x9d> <== NEVER TAKEN
} memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area;
11db39: 31 db xor %ebx,%ebx 11db3b: eb b6 jmp 11daf3 <realloc+0x53>
if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) return (void *) 0; if (_ISR_Nest_level > 0)
11db3d: a1 f4 53 12 00 mov 0x1253f4,%eax 11db42: 85 c0 test %eax,%eax
11db44: 0f 84 74 ff ff ff je 11dabe <realloc+0x1e> <== NEVER TAKEN
} memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area;
11db4a: 31 db xor %ebx,%ebx <== NOT EXECUTED 11db4c: eb a5 jmp 11daf3 <realloc+0x53> <== NOT EXECUTED 11db4e: 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 );
11db50: 83 ec 0c sub $0xc,%esp 11db53: 56 push %esi 11db54: e8 73 a7 fe ff call 1082cc <malloc>
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
11db59: ff 0d e4 51 12 00 decl 0x1251e4
if ( !new_area ) {
11db5f: 83 c4 10 add $0x10,%esp 11db62: 85 c0 test %eax,%eax
11db64: 74 d3 je 11db39 <realloc+0x99> return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size );
11db66: 8b 55 e4 mov -0x1c(%ebp),%edx 11db69: 89 f1 mov %esi,%ecx 11db6b: 39 d6 cmp %edx,%esi
11db6d: 76 02 jbe 11db71 <realloc+0xd1> <== ALWAYS TAKEN
11db6f: 89 d1 mov %edx,%ecx 11db71: 89 c7 mov %eax,%edi 11db73: 89 de mov %ebx,%esi 11db75: f3 a4 rep movsb %ds:(%esi),%es:(%edi)
free( ptr );
11db77: 83 ec 0c sub $0xc,%esp 11db7a: 53 push %ebx 11db7b: 89 45 d4 mov %eax,-0x2c(%ebp) 11db7e: e8 f9 a4 fe ff call 10807c <free> 11db83: 8b 45 d4 mov -0x2c(%ebp),%eax 11db86: 89 c3 mov %eax,%ebx
return new_area;
11db88: 83 c4 10 add $0x10,%esp 11db8b: e9 63 ff ff ff jmp 11daf3 <realloc+0x53>
0012c474 <rmdir>: #include <rtems/seterr.h> int rmdir( const char *pathname ) {
12c474: 55 push %ebp 12c475: 89 e5 mov %esp,%ebp 12c477: 57 push %edi 12c478: 56 push %esi 12c479: 53 push %ebx 12c47a: 83 ec 58 sub $0x58,%esp 12c47d: 8b 55 08 mov 0x8(%ebp),%edx
/* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname );
12c480: 52 push %edx 12c481: 89 55 ac mov %edx,-0x54(%ebp) 12c484: e8 9b f7 fd ff call 10bc24 <rtems_filesystem_dirname> 12c489: 89 c3 mov %eax,%ebx
if ( parentpathlen == 0 )
12c48b: 83 c4 10 add $0x10,%esp 12c48e: 85 c0 test %eax,%eax 12c490: 8b 55 ac mov -0x54(%ebp),%edx
12c493: 0f 85 7f 01 00 00 jne 12c618 <rmdir+0x1a4> rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
12c499: 8a 02 mov (%edx),%al 12c49b: 3c 2f cmp $0x2f,%al
12c49d: 74 0c je 12c4ab <rmdir+0x37> <== NEVER TAKEN
12c49f: 3c 5c cmp $0x5c,%al <== NOT EXECUTED 12c4a1: 74 08 je 12c4ab <rmdir+0x37> <== NOT EXECUTED 12c4a3: 84 c0 test %al,%al <== NOT EXECUTED 12c4a5: 0f 85 ed 00 00 00 jne 12c598 <rmdir+0x124> <== NOT EXECUTED
12c4ab: 8d 45 d4 lea -0x2c(%ebp),%eax 12c4ae: 89 45 b4 mov %eax,-0x4c(%ebp) 12c4b1: 8b 35 a4 84 16 00 mov 0x1684a4,%esi 12c4b7: 83 c6 18 add $0x18,%esi 12c4ba: b9 05 00 00 00 mov $0x5,%ecx 12c4bf: 89 c7 mov %eax,%edi 12c4c1: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12c4c3: c6 45 b3 00 movb $0x0,-0x4d(%ebp)
/* * Start from the parent to find the node that should be under it. */ loc = parentloc;
12c4c7: 8d 7d c0 lea -0x40(%ebp),%edi 12c4ca: b9 05 00 00 00 mov $0x5,%ecx 12c4cf: 8b 75 b4 mov -0x4c(%ebp),%esi 12c4d2: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
name = pathname + parentpathlen;
12c4d4: 8d 1c 1a lea (%edx,%ebx,1),%ebx
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
12c4d7: be ff ff ff ff mov $0xffffffff,%esi 12c4dc: 89 f1 mov %esi,%ecx 12c4de: 89 df mov %ebx,%edi 12c4e0: 31 c0 xor %eax,%eax 12c4e2: f2 ae repnz scas %es:(%edi),%al 12c4e4: f7 d1 not %ecx 12c4e6: 49 dec %ecx 12c4e7: 83 ec 08 sub $0x8,%esp 12c4ea: 51 push %ecx 12c4eb: 53 push %ebx 12c4ec: e8 f7 f6 fd ff call 10bbe8 <rtems_filesystem_prefix_separators> 12c4f1: 01 c3 add %eax,%ebx
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
12c4f3: 89 f1 mov %esi,%ecx 12c4f5: 89 df mov %ebx,%edi 12c4f7: 31 c0 xor %eax,%eax 12c4f9: f2 ae repnz scas %es:(%edi),%al 12c4fb: f7 d1 not %ecx 12c4fd: 49 dec %ecx 12c4fe: c7 04 24 00 00 00 00 movl $0x0,(%esp) 12c505: 8d 75 c0 lea -0x40(%ebp),%esi 12c508: 56 push %esi 12c509: 6a 00 push $0x0 12c50b: 51 push %ecx 12c50c: 53 push %ebx 12c50d: e8 62 f7 fd ff call 10bc74 <rtems_filesystem_evaluate_relative_path>
0, &loc, false ); if ( result != 0 ) {
12c512: 83 c4 20 add $0x20,%esp 12c515: 85 c0 test %eax,%eax
12c517: 0f 85 e7 00 00 00 jne 12c604 <rmdir+0x190> /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){
12c51d: 8b 55 cc mov -0x34(%ebp),%edx 12c520: 8b 42 10 mov 0x10(%edx),%eax 12c523: 85 c0 test %eax,%eax
12c525: 0f 84 65 01 00 00 je 12c690 <rmdir+0x21c> <== ALWAYS 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 ){
12c52b: 83 ec 0c sub $0xc,%esp 12c52e: 56 push %esi 12c52f: ff d0 call *%eax 12c531: 83 c4 10 add $0x10,%esp 12c534: 48 dec %eax
12c535: 0f 85 81 00 00 00 jne 12c5bc <rmdir+0x148> /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){
12c53b: 8b 45 c8 mov -0x38(%ebp),%eax 12c53e: 8b 40 34 mov 0x34(%eax),%eax 12c541: 85 c0 test %eax,%eax
12c543: 0f 84 fb 00 00 00 je 12c644 <rmdir+0x1d0> <== ALWAYS TAKEN
if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &parentloc, &loc );
12c549: 83 ec 08 sub $0x8,%esp 12c54c: 56 push %esi 12c54d: ff 75 b4 pushl -0x4c(%ebp) 12c550: ff d0 call *%eax 12c552: 89 c3 mov %eax,%ebx
rtems_filesystem_freenode( &loc );
12c554: 8b 45 cc mov -0x34(%ebp),%eax 12c557: 83 c4 10 add $0x10,%esp 12c55a: 85 c0 test %eax,%eax
12c55c: 74 10 je 12c56e <rmdir+0xfa> <== ALWAYS TAKEN
12c55e: 8b 40 1c mov 0x1c(%eax),%eax 12c561: 85 c0 test %eax,%eax
12c563: 74 09 je 12c56e <rmdir+0xfa> <== ALWAYS TAKEN
12c565: 83 ec 0c sub $0xc,%esp 12c568: 56 push %esi 12c569: ff d0 call *%eax 12c56b: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
12c56e: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp)
12c572: 74 19 je 12c58d <rmdir+0x119> rtems_filesystem_freenode( &parentloc );
12c574: 8b 45 e0 mov -0x20(%ebp),%eax 12c577: 85 c0 test %eax,%eax
12c579: 74 12 je 12c58d <rmdir+0x119> <== ALWAYS TAKEN
12c57b: 8b 40 1c mov 0x1c(%eax),%eax 12c57e: 85 c0 test %eax,%eax
12c580: 74 0b je 12c58d <rmdir+0x119> <== ALWAYS TAKEN
12c582: 83 ec 0c sub $0xc,%esp 12c585: ff 75 b4 pushl -0x4c(%ebp) 12c588: ff d0 call *%eax 12c58a: 83 c4 10 add $0x10,%esp
return result; }
12c58d: 89 d8 mov %ebx,%eax 12c58f: 8d 65 f4 lea -0xc(%ebp),%esp 12c592: 5b pop %ebx 12c593: 5e pop %esi 12c594: 5f pop %edi 12c595: c9 leave 12c596: c3 ret
12c597: 90 nop <== NOT EXECUTED
*/ parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
12c598: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED 12c59b: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED 12c59e: 8b 35 a4 84 16 00 mov 0x1684a4,%esi <== NOT EXECUTED 12c5a4: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 12c5a7: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 12c5ac: 89 c7 mov %eax,%edi <== NOT EXECUTED 12c5ae: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 12c5b0: c6 45 b3 00 movb $0x0,-0x4d(%ebp) <== NOT EXECUTED 12c5b4: e9 0e ff ff ff jmp 12c4c7 <rmdir+0x53> <== NOT EXECUTED 12c5b9: 8d 76 00 lea 0x0(%esi),%esi <== 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 );
12c5bc: 8b 45 cc mov -0x34(%ebp),%eax 12c5bf: 85 c0 test %eax,%eax
12c5c1: 74 10 je 12c5d3 <rmdir+0x15f> <== ALWAYS TAKEN
12c5c3: 8b 40 1c mov 0x1c(%eax),%eax 12c5c6: 85 c0 test %eax,%eax
12c5c8: 74 09 je 12c5d3 <rmdir+0x15f> <== ALWAYS TAKEN
12c5ca: 83 ec 0c sub $0xc,%esp 12c5cd: 56 push %esi 12c5ce: ff d0 call *%eax 12c5d0: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
12c5d3: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp)
12c5d7: 74 19 je 12c5f2 <rmdir+0x17e> <== ALWAYS TAKEN
rtems_filesystem_freenode( &parentloc );
12c5d9: 8b 45 e0 mov -0x20(%ebp),%eax 12c5dc: 85 c0 test %eax,%eax
12c5de: 74 12 je 12c5f2 <rmdir+0x17e> <== ALWAYS TAKEN
12c5e0: 8b 40 1c mov 0x1c(%eax),%eax 12c5e3: 85 c0 test %eax,%eax
12c5e5: 74 0b je 12c5f2 <rmdir+0x17e> <== ALWAYS TAKEN
12c5e7: 83 ec 0c sub $0xc,%esp 12c5ea: ff 75 b4 pushl -0x4c(%ebp) 12c5ed: ff d0 call *%eax 12c5ef: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( ENOTDIR );
12c5f2: e8 05 50 01 00 call 1415fc <__errno> 12c5f7: c7 00 14 00 00 00 movl $0x14,(%eax) 12c5fd: bb ff ff ff ff mov $0xffffffff,%ebx 12c602: eb 89 jmp 12c58d <rmdir+0x119>
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 )
12c604: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp)
12c608: 0f 85 8b 00 00 00 jne 12c699 <rmdir+0x225> <== ALWAYS TAKEN
result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc );
12c60e: bb ff ff ff ff mov $0xffffffff,%ebx 12c613: e9 75 ff ff ff jmp 12c58d <rmdir+0x119>
parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen,
12c618: 83 ec 0c sub $0xc,%esp 12c61b: 6a 00 push $0x0 12c61d: 8d 45 d4 lea -0x2c(%ebp),%eax 12c620: 89 45 b4 mov %eax,-0x4c(%ebp) 12c623: 50 push %eax 12c624: 6a 02 push $0x2 12c626: 53 push %ebx 12c627: 52 push %edx 12c628: 89 55 ac mov %edx,-0x54(%ebp) 12c62b: e8 18 f7 fd ff call 10bd48 <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 )
12c630: 83 c4 20 add $0x20,%esp 12c633: 85 c0 test %eax,%eax 12c635: 8b 55 ac mov -0x54(%ebp),%edx
12c638: 75 d4 jne 12c60e <rmdir+0x19a> <== ALWAYS TAKEN
12c63a: c6 45 b3 01 movb $0x1,-0x4d(%ebp) 12c63e: e9 84 fe ff ff jmp 12c4c7 <rmdir+0x53>
12c643: 90 nop <== NOT EXECUTED
/* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc );
12c644: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 12c647: 85 c0 test %eax,%eax <== NOT EXECUTED 12c649: 74 10 je 12c65b <rmdir+0x1e7> <== NOT EXECUTED 12c64b: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c64e: 85 c0 test %eax,%eax <== NOT EXECUTED 12c650: 74 09 je 12c65b <rmdir+0x1e7> <== NOT EXECUTED 12c652: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c655: 56 push %esi <== NOT EXECUTED 12c656: ff d0 call *%eax <== NOT EXECUTED 12c658: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( free_parentloc )
12c65b: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) <== NOT EXECUTED 12c65f: 74 19 je 12c67a <rmdir+0x206> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
12c661: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 12c664: 85 c0 test %eax,%eax <== NOT EXECUTED 12c666: 74 12 je 12c67a <rmdir+0x206> <== NOT EXECUTED 12c668: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c66b: 85 c0 test %eax,%eax <== NOT EXECUTED 12c66d: 74 0b je 12c67a <rmdir+0x206> <== NOT EXECUTED 12c66f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c672: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED 12c675: ff d0 call *%eax <== NOT EXECUTED 12c677: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12c67a: e8 7d 4f 01 00 call 1415fc <__errno> <== NOT EXECUTED 12c67f: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c685: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 12c68a: e9 fe fe ff ff jmp 12c58d <rmdir+0x119> <== NOT EXECUTED 12c68f: 90 nop <== NOT EXECUTED
/* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc );
12c690: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12c693: 85 c0 test %eax,%eax <== NOT EXECUTED 12c695: 75 bb jne 12c652 <rmdir+0x1de> <== NOT EXECUTED 12c697: eb c2 jmp 12c65b <rmdir+0x1e7> <== NOT EXECUTED
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc );
12c699: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 12c69c: 85 c0 test %eax,%eax <== NOT EXECUTED 12c69e: 0f 84 6a ff ff ff je 12c60e <rmdir+0x19a> <== NOT EXECUTED 12c6a4: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c6a7: 85 c0 test %eax,%eax <== NOT EXECUTED 12c6a9: 0f 84 5f ff ff ff je 12c60e <rmdir+0x19a> <== NOT EXECUTED 12c6af: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c6b2: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED 12c6b5: ff d0 call *%eax <== NOT EXECUTED 12c6b7: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED 12c6ba: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c6bd: e9 cb fe ff ff jmp 12c58d <rmdir+0x119> <== NOT EXECUTED
0011182c <rtems_assoc_local_by_remote_bitfield>: uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) {
11182c: 55 push %ebp 11182d: 89 e5 mov %esp,%ebp 11182f: 57 push %edi 111830: 56 push %esi 111831: 53 push %ebx 111832: 83 ec 1c sub $0x1c,%esp 111835: 8b 7d 0c mov 0xc(%ebp),%edi 111838: 31 f6 xor %esi,%esi 11183a: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 111841: bb 01 00 00 00 mov $0x1,%ebx 111846: eb 08 jmp 111850 <rtems_assoc_local_by_remote_bitfield+0x24>
uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) {
111848: d1 e3 shl %ebx 11184a: 46 inc %esi 11184b: 83 fe 20 cmp $0x20,%esi
11184e: 74 1e je 11186e <rtems_assoc_local_by_remote_bitfield+0x42> if (b & remote_value)
111850: 85 fb test %edi,%ebx
111852: 74 f4 je 111848 <rtems_assoc_local_by_remote_bitfield+0x1c> local_value |= rtems_assoc_local_by_remote(ap, b);
111854: 83 ec 08 sub $0x8,%esp 111857: 53 push %ebx 111858: ff 75 08 pushl 0x8(%ebp) 11185b: e8 1c 00 00 00 call 11187c <rtems_assoc_local_by_remote> 111860: 09 45 e4 or %eax,-0x1c(%ebp) 111863: 83 c4 10 add $0x10,%esp
) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) {
111866: d1 e3 shl %ebx 111868: 46 inc %esi 111869: 83 fe 20 cmp $0x20,%esi
11186c: 75 e2 jne 111850 <rtems_assoc_local_by_remote_bitfield+0x24><== NEVER TAKEN
if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); } return local_value; }
11186e: 8b 45 e4 mov -0x1c(%ebp),%eax 111871: 8d 65 f4 lea -0xc(%ebp),%esp 111874: 5b pop %ebx 111875: 5e pop %esi 111876: 5f pop %edi 111877: c9 leave 111878: c3 ret
00118700 <rtems_assoc_name_bad>: uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) {
118700: 55 push %ebp <== NOT EXECUTED 118701: 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; }
118703: b8 20 b1 12 00 mov $0x12b120,%eax <== NOT EXECUTED 118708: c9 leave <== NOT EXECUTED 118709: c3 ret <== NOT EXECUTED
00115a68 <rtems_assoc_name_by_local>: const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) {
115a68: 55 push %ebp 115a69: 89 e5 mov %esp,%ebp 115a6b: 53 push %ebx 115a6c: 83 ec 0c sub $0xc,%esp 115a6f: 8b 5d 0c mov 0xc(%ebp),%ebx
const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value);
115a72: 53 push %ebx 115a73: ff 75 08 pushl 0x8(%ebp) 115a76: e8 1d 00 00 00 call 115a98 <rtems_assoc_ptr_by_local>
if (nap)
115a7b: 83 c4 10 add $0x10,%esp 115a7e: 85 c0 test %eax,%eax
115a80: 74 0a je 115a8c <rtems_assoc_name_by_local+0x24><== ALWAYS TAKEN
return nap->name;
115a82: 8b 00 mov (%eax),%eax
return rtems_assoc_name_bad(local_value); }
115a84: 8b 5d fc mov -0x4(%ebp),%ebx 115a87: c9 leave 115a88: c3 ret
115a89: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value);
115a8c: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED
}
115a8f: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 115a92: 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);
115a93: e9 68 2c 00 00 jmp 118700 <rtems_assoc_name_bad> <== NOT EXECUTED
00112448 <rtems_assoc_ptr_by_local>: const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) {
112448: 55 push %ebp 112449: 89 e5 mov %esp,%ebp 11244b: 57 push %edi 11244c: 56 push %esi 11244d: 53 push %ebx 11244e: 8b 45 08 mov 0x8(%ebp),%eax 112451: 8b 55 0c mov 0xc(%ebp),%edx
const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap))
112454: 8b 30 mov (%eax),%esi 112456: 85 f6 test %esi,%esi
112458: 74 3e je 112498 <rtems_assoc_ptr_by_local+0x50><== ALWAYS TAKEN
11245a: bf ed 00 12 00 mov $0x1200ed,%edi 11245f: b9 0a 00 00 00 mov $0xa,%ecx 112464: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi)
112466: 74 18 je 112480 <rtems_assoc_ptr_by_local+0x38><== ALWAYS TAKEN
112468: 31 c9 xor %ecx,%ecx 11246a: eb 09 jmp 112475 <rtems_assoc_ptr_by_local+0x2d>
default_ap = ap++; for ( ; ap->name; ap++)
11246c: 83 c0 0c add $0xc,%eax 11246f: 8b 18 mov (%eax),%ebx 112471: 85 db test %ebx,%ebx
112473: 74 1b je 112490 <rtems_assoc_ptr_by_local+0x48> if (ap->local_value == local_value)
112475: 39 50 04 cmp %edx,0x4(%eax)
112478: 75 f2 jne 11246c <rtems_assoc_ptr_by_local+0x24> return ap; return default_ap; }
11247a: 5b pop %ebx 11247b: 5e pop %esi 11247c: 5f pop %edi 11247d: c9 leave 11247e: c3 ret
11247f: 90 nop <== NOT EXECUTED
) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++;
112480: 8d 58 0c lea 0xc(%eax),%ebx <== NOT EXECUTED
for ( ; ap->name; ap++)
112483: 8b 70 0c mov 0xc(%eax),%esi <== NOT EXECUTED 112486: 85 f6 test %esi,%esi <== NOT EXECUTED 112488: 74 f0 je 11247a <rtems_assoc_ptr_by_local+0x32><== NOT EXECUTED 11248a: 89 c1 mov %eax,%ecx <== NOT EXECUTED 11248c: 89 d8 mov %ebx,%eax <== NOT EXECUTED 11248e: eb e5 jmp 112475 <rtems_assoc_ptr_by_local+0x2d><== NOT EXECUTED
112490: 89 c8 mov %ecx,%eax
if (ap->local_value == local_value) return ap; return default_ap; }
112492: 5b pop %ebx 112493: 5e pop %esi 112494: 5f pop %edi 112495: c9 leave 112496: c3 ret
112497: 90 nop <== NOT EXECUTED
uint32_t local_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap))
112498: 31 c0 xor %eax,%eax <== NOT EXECUTED
for ( ; ap->name; ap++) if (ap->local_value == local_value) return ap; return default_ap; }
11249a: 5b pop %ebx <== NOT EXECUTED 11249b: 5e pop %esi <== NOT EXECUTED 11249c: 5f pop %edi <== NOT EXECUTED 11249d: c9 leave <== NOT EXECUTED 11249e: c3 ret <== NOT EXECUTED
0011189c <rtems_assoc_ptr_by_remote>: const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) {
11189c: 55 push %ebp 11189d: 89 e5 mov %esp,%ebp 11189f: 57 push %edi 1118a0: 56 push %esi 1118a1: 53 push %ebx 1118a2: 8b 45 08 mov 0x8(%ebp),%eax 1118a5: 8b 55 0c mov 0xc(%ebp),%edx
const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap))
1118a8: 8b 30 mov (%eax),%esi 1118aa: 85 f6 test %esi,%esi
1118ac: 74 3e je 1118ec <rtems_assoc_ptr_by_remote+0x50><== ALWAYS TAKEN
1118ae: bf ed 00 12 00 mov $0x1200ed,%edi 1118b3: b9 0a 00 00 00 mov $0xa,%ecx 1118b8: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi)
1118ba: 74 18 je 1118d4 <rtems_assoc_ptr_by_remote+0x38><== ALWAYS TAKEN
1118bc: 31 c9 xor %ecx,%ecx 1118be: eb 09 jmp 1118c9 <rtems_assoc_ptr_by_remote+0x2d>
default_ap = ap++; for ( ; ap->name; ap++)
1118c0: 83 c0 0c add $0xc,%eax 1118c3: 8b 18 mov (%eax),%ebx 1118c5: 85 db test %ebx,%ebx
1118c7: 74 1b je 1118e4 <rtems_assoc_ptr_by_remote+0x48> if (ap->remote_value == remote_value)
1118c9: 39 50 08 cmp %edx,0x8(%eax)
1118cc: 75 f2 jne 1118c0 <rtems_assoc_ptr_by_remote+0x24> return ap; return default_ap; }
1118ce: 5b pop %ebx 1118cf: 5e pop %esi 1118d0: 5f pop %edi 1118d1: c9 leave 1118d2: c3 ret
1118d3: 90 nop <== NOT EXECUTED
) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++;
1118d4: 8d 58 0c lea 0xc(%eax),%ebx <== NOT EXECUTED
for ( ; ap->name; ap++)
1118d7: 8b 70 0c mov 0xc(%eax),%esi <== NOT EXECUTED 1118da: 85 f6 test %esi,%esi <== NOT EXECUTED 1118dc: 74 f0 je 1118ce <rtems_assoc_ptr_by_remote+0x32><== NOT EXECUTED 1118de: 89 c1 mov %eax,%ecx <== NOT EXECUTED 1118e0: 89 d8 mov %ebx,%eax <== NOT EXECUTED 1118e2: eb e5 jmp 1118c9 <rtems_assoc_ptr_by_remote+0x2d><== NOT EXECUTED
1118e4: 89 c8 mov %ecx,%eax
if (ap->remote_value == remote_value) return ap; return default_ap; }
1118e6: 5b pop %ebx 1118e7: 5e pop %esi 1118e8: 5f pop %edi 1118e9: c9 leave 1118ea: c3 ret
1118eb: 90 nop <== NOT EXECUTED
uint32_t remote_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap))
1118ec: 31 c0 xor %eax,%eax <== NOT EXECUTED
for ( ; ap->name; ap++) if (ap->remote_value == remote_value) return ap; return default_ap; }
1118ee: 5b pop %ebx <== NOT EXECUTED 1118ef: 5e pop %esi <== NOT EXECUTED 1118f0: 5f pop %edi <== NOT EXECUTED 1118f1: c9 leave <== NOT EXECUTED 1118f2: c3 ret <== NOT EXECUTED
001121a8 <rtems_assoc_remote_by_local>: uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) {
1121a8: 55 push %ebp <== NOT EXECUTED 1121a9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 1121ab: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value);
1121ae: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 1121b1: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 1121b4: e8 8f 02 00 00 call 112448 <rtems_assoc_ptr_by_local><== NOT EXECUTED
if (nap)
1121b9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1121bc: 85 c0 test %eax,%eax <== NOT EXECUTED 1121be: 74 03 je 1121c3 <rtems_assoc_remote_by_local+0x1b><== NOT EXECUTED
return nap->remote_value;
1121c0: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED
return 0; }
1121c3: c9 leave <== NOT EXECUTED 1121c4: c3 ret <== NOT EXECUTED
001118f4 <rtems_barrier_create>: rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) {
1118f4: 55 push %ebp 1118f5: 89 e5 mov %esp,%ebp 1118f7: 57 push %edi 1118f8: 56 push %esi 1118f9: 53 push %ebx 1118fa: 83 ec 2c sub $0x2c,%esp 1118fd: 8b 5d 08 mov 0x8(%ebp),%ebx 111900: 8b 7d 0c mov 0xc(%ebp),%edi 111903: 8b 45 10 mov 0x10(%ebp),%eax 111906: 8b 75 14 mov 0x14(%ebp),%esi
Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) )
111909: 85 db test %ebx,%ebx
11190b: 0f 84 87 00 00 00 je 111998 <rtems_barrier_create+0xa4> return RTEMS_INVALID_NAME; if ( !id )
111911: 85 f6 test %esi,%esi
111913: 0f 84 bb 00 00 00 je 1119d4 <rtems_barrier_create+0xe0><== ALWAYS TAKEN
return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
111919: f7 c7 10 00 00 00 test $0x10,%edi
11191f: 0f 84 83 00 00 00 je 1119a8 <rtems_barrier_create+0xb4> the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 )
111925: 85 c0 test %eax,%eax
111927: 0f 84 87 00 00 00 je 1119b4 <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;
11192d: 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;
111934: 89 45 e4 mov %eax,-0x1c(%ebp) 111937: a1 58 53 12 00 mov 0x125358,%eax 11193c: 40 inc %eax 11193d: a3 58 53 12 00 mov %eax,0x125358
* 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 );
111942: 83 ec 0c sub $0xc,%esp 111945: 68 c0 56 12 00 push $0x1256c0 11194a: e8 11 ae ff ff call 10c760 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) {
11194f: 83 c4 10 add $0x10,%esp 111952: 85 c0 test %eax,%eax
111954: 74 6a je 1119c0 <rtems_barrier_create+0xcc> _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_barrier->attribute_set = attribute_set;
111956: 89 78 10 mov %edi,0x10(%eax)
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
111959: 83 ec 08 sub $0x8,%esp 11195c: 8d 55 e0 lea -0x20(%ebp),%edx 11195f: 52 push %edx 111960: 8d 50 14 lea 0x14(%eax),%edx 111963: 52 push %edx 111964: 89 45 d4 mov %eax,-0x2c(%ebp) 111967: e8 5c 04 00 00 call 111dc8 <_CORE_barrier_Initialize>
#if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object;
11196c: 8b 45 d4 mov -0x2c(%ebp),%eax 11196f: 8b 50 08 mov 0x8(%eax),%edx 111972: 0f b7 fa movzwl %dx,%edi 111975: 8b 0d dc 56 12 00 mov 0x1256dc,%ecx 11197b: 89 04 b9 mov %eax,(%ecx,%edi,4)
information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name;
11197e: 89 58 0c mov %ebx,0xc(%eax)
&_Barrier_Information, &the_barrier->Object, (Objects_Name) name ); *id = the_barrier->Object.id;
111981: 89 16 mov %edx,(%esi)
_Thread_Enable_dispatch();
111983: e8 d0 ba ff ff call 10d458 <_Thread_Enable_dispatch> 111988: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
11198a: 83 c4 10 add $0x10,%esp
}
11198d: 8d 65 f4 lea -0xc(%ebp),%esp 111990: 5b pop %ebx 111991: 5e pop %esi 111992: 5f pop %edi 111993: c9 leave 111994: c3 ret
111995: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
) { Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) )
111998: b8 03 00 00 00 mov $0x3,%eax
*id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
11199d: 8d 65 f4 lea -0xc(%ebp),%esp 1119a0: 5b pop %ebx 1119a1: 5e pop %esi 1119a2: 5f pop %edi 1119a3: c9 leave 1119a4: c3 ret
1119a5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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;
1119a8: c7 45 e0 01 00 00 00 movl $0x1,-0x20(%ebp) 1119af: eb 83 jmp 111934 <rtems_barrier_create+0x40>
1119b1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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 )
1119b4: b0 0a mov $0xa,%al
*id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
1119b6: 8d 65 f4 lea -0xc(%ebp),%esp 1119b9: 5b pop %ebx 1119ba: 5e pop %esi 1119bb: 5f pop %edi 1119bc: c9 leave 1119bd: c3 ret
1119be: 66 90 xchg %ax,%ax <== NOT EXECUTED
_Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { _Thread_Enable_dispatch();
1119c0: e8 93 ba ff ff call 10d458 <_Thread_Enable_dispatch> 1119c5: b8 05 00 00 00 mov $0x5,%eax
*id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
1119ca: 8d 65 f4 lea -0xc(%ebp),%esp 1119cd: 5b pop %ebx 1119ce: 5e pop %esi 1119cf: 5f pop %edi 1119d0: c9 leave 1119d1: c3 ret
1119d2: 66 90 xchg %ax,%ax <== NOT EXECUTED
CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id )
1119d4: b8 09 00 00 00 mov $0x9,%eax 1119d9: eb b2 jmp 11198d <rtems_barrier_create+0x99>
001119dc <rtems_barrier_delete>: */ rtems_status_code rtems_barrier_delete( rtems_id id ) {
1119dc: 55 push %ebp 1119dd: 89 e5 mov %esp,%ebp 1119df: 53 push %ebx 1119e0: 83 ec 18 sub $0x18,%esp
RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *)
1119e3: 8d 45 f4 lea -0xc(%ebp),%eax 1119e6: 50 push %eax 1119e7: ff 75 08 pushl 0x8(%ebp) 1119ea: 68 c0 56 12 00 push $0x1256c0 1119ef: e8 1c b2 ff ff call 10cc10 <_Objects_Get> 1119f4: 89 c3 mov %eax,%ebx
Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) {
1119f6: 83 c4 10 add $0x10,%esp 1119f9: 8b 4d f4 mov -0xc(%ebp),%ecx 1119fc: 85 c9 test %ecx,%ecx
1119fe: 75 38 jne 111a38 <rtems_barrier_delete+0x5c> case OBJECTS_LOCAL: _CORE_barrier_Flush(
111a00: 52 push %edx 111a01: 6a 02 push $0x2 111a03: 6a 00 push $0x0 111a05: 8d 40 14 lea 0x14(%eax),%eax 111a08: 50 push %eax 111a09: e8 7a c1 ff ff call 10db88 <_Thread_queue_Flush>
&the_barrier->Barrier, NULL, CORE_BARRIER_WAS_DELETED ); _Objects_Close( &_Barrier_Information, &the_barrier->Object );
111a0e: 59 pop %ecx 111a0f: 58 pop %eax 111a10: 53 push %ebx 111a11: 68 c0 56 12 00 push $0x1256c0 111a16: e8 c1 ad ff ff call 10c7dc <_Objects_Close>
*/ RTEMS_INLINE_ROUTINE void _Barrier_Free ( Barrier_Control *the_barrier ) { _Objects_Free( &_Barrier_Information, &the_barrier->Object );
111a1b: 58 pop %eax 111a1c: 5a pop %edx 111a1d: 53 push %ebx 111a1e: 68 c0 56 12 00 push $0x1256c0 111a23: e8 b8 b0 ff ff call 10cae0 <_Objects_Free>
_Barrier_Free( the_barrier ); _Thread_Enable_dispatch();
111a28: e8 2b ba ff ff call 10d458 <_Thread_Enable_dispatch> 111a2d: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
111a2f: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
111a32: 8b 5d fc mov -0x4(%ebp),%ebx 111a35: c9 leave 111a36: c3 ret
111a37: 90 nop <== NOT EXECUTED
{ Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) {
111a38: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
111a3d: 8b 5d fc mov -0x4(%ebp),%ebx 111a40: c9 leave 111a41: c3 ret
00111aa8 <rtems_barrier_wait>: rtems_status_code rtems_barrier_wait( rtems_id id, rtems_interval timeout ) {
111aa8: 55 push %ebp 111aa9: 89 e5 mov %esp,%ebp 111aab: 53 push %ebx 111aac: 83 ec 18 sub $0x18,%esp 111aaf: 8b 5d 08 mov 0x8(%ebp),%ebx 111ab2: 8d 45 f4 lea -0xc(%ebp),%eax 111ab5: 50 push %eax 111ab6: 53 push %ebx 111ab7: 68 c0 56 12 00 push $0x1256c0 111abc: e8 4f b1 ff ff call 10cc10 <_Objects_Get>
Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) {
111ac1: 83 c4 10 add $0x10,%esp 111ac4: 8b 55 f4 mov -0xc(%ebp),%edx 111ac7: 85 d2 test %edx,%edx
111ac9: 75 35 jne 111b00 <rtems_barrier_wait+0x58> case OBJECTS_LOCAL: _CORE_barrier_Wait(
111acb: 83 ec 0c sub $0xc,%esp 111ace: 6a 00 push $0x0 111ad0: ff 75 0c pushl 0xc(%ebp) 111ad3: 6a 01 push $0x1 111ad5: 53 push %ebx 111ad6: 83 c0 14 add $0x14,%eax 111ad9: 50 push %eax 111ada: e8 4d 03 00 00 call 111e2c <_CORE_barrier_Wait>
id, true, timeout, NULL ); _Thread_Enable_dispatch();
111adf: 83 c4 20 add $0x20,%esp 111ae2: e8 71 b9 ff ff call 10d458 <_Thread_Enable_dispatch>
return _Barrier_Translate_core_barrier_return_code(
111ae7: 83 ec 0c sub $0xc,%esp 111aea: a1 18 54 12 00 mov 0x125418,%eax 111aef: ff 70 34 pushl 0x34(%eax) 111af2: e8 41 09 00 00 call 112438 <_Barrier_Translate_core_barrier_return_code> 111af7: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
111afa: 8b 5d fc mov -0x4(%ebp),%ebx 111afd: c9 leave 111afe: c3 ret
111aff: 90 nop <== NOT EXECUTED
{ Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) {
111b00: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
111b05: 8b 5d fc mov -0x4(%ebp),%ebx 111b08: c9 leave 111b09: c3 ret
00108098 <rtems_bsp_cmdline_get_param>: const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) {
108098: 55 push %ebp 108099: 89 e5 mov %esp,%ebp 10809b: 57 push %edi 10809c: 56 push %esi 10809d: 53 push %ebx 10809e: 83 ec 1c sub $0x1c,%esp 1080a1: 8b 45 08 mov 0x8(%ebp),%eax 1080a4: 8b 5d 0c mov 0xc(%ebp),%ebx 1080a7: 8b 75 10 mov 0x10(%ebp),%esi
const char *p; if ( !name )
1080aa: 85 c0 test %eax,%eax
1080ac: 75 0e jne 1080bc <rtems_bsp_cmdline_get_param+0x24> int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i<length-1; ) {
1080ae: 31 db xor %ebx,%ebx
return NULL; copy_string( p, value, length ); return value; }
1080b0: 89 d8 mov %ebx,%eax 1080b2: 8d 65 f4 lea -0xc(%ebp),%esp 1080b5: 5b pop %ebx 1080b6: 5e pop %esi 1080b7: 5f pop %edi 1080b8: c9 leave 1080b9: c3 ret
1080ba: 66 90 xchg %ax,%ax <== NOT EXECUTED
const char *p; if ( !name ) return NULL; if ( !value )
1080bc: 85 db test %ebx,%ebx
1080be: 74 f0 je 1080b0 <rtems_bsp_cmdline_get_param+0x18> return NULL; if ( !length )
1080c0: 85 f6 test %esi,%esi
1080c2: 74 ea je 1080ae <rtems_bsp_cmdline_get_param+0x16> return NULL; value[0] = '\0';
1080c4: c6 03 00 movb $0x0,(%ebx)
p = rtems_bsp_cmdline_get_param_raw( name );
1080c7: 83 ec 0c sub $0xc,%esp 1080ca: 50 push %eax 1080cb: e8 48 00 00 00 call 108118 <rtems_bsp_cmdline_get_param_raw>
if ( !p )
1080d0: 83 c4 10 add $0x10,%esp 1080d3: 85 c0 test %eax,%eax
1080d5: 74 d7 je 1080ae <rtems_bsp_cmdline_get_param+0x16> int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i<length-1; ) {
1080d7: 8a 08 mov (%eax),%cl 1080d9: 84 c9 test %cl,%cl
1080db: 74 d3 je 1080b0 <rtems_bsp_cmdline_get_param+0x18><== ALWAYS TAKEN
1080dd: 4e dec %esi 1080de: 89 75 e4 mov %esi,-0x1c(%ebp)
1080e1: 74 cd je 1080b0 <rtems_bsp_cmdline_get_param+0x18><== ALWAYS TAKEN
1080e3: 31 f6 xor %esi,%esi 1080e5: 31 d2 xor %edx,%edx 1080e7: 31 ff xor %edi,%edi 1080e9: eb 24 jmp 10810f <rtems_bsp_cmdline_get_param+0x77>
1080eb: 90 nop <== NOT EXECUTED
if ( *p == '\"' ) { quotes++; } else if ( ((quotes % 2) == 0) && *p == ' ' )
1080ec: f7 c7 01 00 00 00 test $0x1,%edi
1080f2: 75 05 jne 1080f9 <rtems_bsp_cmdline_get_param+0x61>
1080f4: 80 f9 20 cmp $0x20,%cl
1080f7: 74 b7 je 1080b0 <rtems_bsp_cmdline_get_param+0x18> break; value[i++] = *p++;
1080f9: 88 0c 33 mov %cl,(%ebx,%esi,1) 1080fc: 42 inc %edx 1080fd: 89 d6 mov %edx,%esi
value[i] = '\0';
1080ff: 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; ) {
108103: 8a 0c 10 mov (%eax,%edx,1),%cl 108106: 84 c9 test %cl,%cl
108108: 74 a6 je 1080b0 <rtems_bsp_cmdline_get_param+0x18>
10810a: 3b 55 e4 cmp -0x1c(%ebp),%edx
10810d: 73 a1 jae 1080b0 <rtems_bsp_cmdline_get_param+0x18><== ALWAYS TAKEN
if ( *p == '\"' ) {
10810f: 80 f9 22 cmp $0x22,%cl
108112: 75 d8 jne 1080ec <rtems_bsp_cmdline_get_param+0x54> quotes++;
108114: 47 inc %edi 108115: eb e2 jmp 1080f9 <rtems_bsp_cmdline_get_param+0x61>
00108118 <rtems_bsp_cmdline_get_param_raw>: extern const char *bsp_boot_cmdline; const char *rtems_bsp_cmdline_get_param_raw( const char *name ) {
108118: 55 push %ebp 108119: 89 e5 mov %esp,%ebp 10811b: 83 ec 08 sub $0x8,%esp 10811e: 8b 45 08 mov 0x8(%ebp),%eax
const char *p; if ( !name )
108121: 85 c0 test %eax,%eax
108123: 75 07 jne 10812c <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;
108125: 31 c0 xor %eax,%eax
}
108127: c9 leave 108128: c3 ret
108129: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
const char *p; if ( !name ) return NULL; if ( !bsp_boot_cmdline )
10812c: 8b 15 18 67 12 00 mov 0x126718,%edx 108132: 85 d2 test %edx,%edx
108134: 74 ef je 108125 <rtems_bsp_cmdline_get_param_raw+0xd> return NULL; p = strstr(bsp_boot_cmdline, name);
108136: 83 ec 08 sub $0x8,%esp 108139: 50 push %eax 10813a: 52 push %edx 10813b: e8 c8 b9 00 00 call 113b08 <strstr> 108140: 83 c4 10 add $0x10,%esp
/* printf( "raw: %p (%s)\n", p, p ); */ return p; }
108143: c9 leave 108144: c3 ret
00108148 <rtems_bsp_cmdline_get_param_rhs>: const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) {
108148: 55 push %ebp 108149: 89 e5 mov %esp,%ebp 10814b: 57 push %edi 10814c: 53 push %ebx 10814d: 8b 7d 08 mov 0x8(%ebp),%edi 108150: 8b 5d 0c mov 0xc(%ebp),%ebx
const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length );
108153: 50 push %eax 108154: ff 75 10 pushl 0x10(%ebp) 108157: 53 push %ebx 108158: 57 push %edi 108159: e8 3a ff ff ff call 108098 <rtems_bsp_cmdline_get_param> 10815e: 89 c2 mov %eax,%edx
if ( !p )
108160: 83 c4 10 add $0x10,%esp 108163: 85 c0 test %eax,%eax
108165: 75 0d jne 108174 <rtems_bsp_cmdline_get_param_rhs+0x2c> *d++ = *rhs++; if ( *(d-1) == '\"' ) d--; *d = '\0'; return value;
108167: 31 db xor %ebx,%ebx
}
108169: 89 d8 mov %ebx,%eax 10816b: 8d 65 f8 lea -0x8(%ebp),%esp 10816e: 5b pop %ebx 10816f: 5f pop %edi 108170: c9 leave 108171: c3 ret
108172: 66 90 xchg %ax,%ax <== NOT EXECUTED
p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)];
108174: 31 c0 xor %eax,%eax 108176: b9 ff ff ff ff mov $0xffffffff,%ecx 10817b: f2 ae repnz scas %es:(%edi),%al 10817d: f7 d1 not %ecx 10817f: 8d 44 0a ff lea -0x1(%edx,%ecx,1),%eax
if ( *rhs != '=' )
108183: 80 38 3d cmpb $0x3d,(%eax)
108186: 75 df jne 108167 <rtems_bsp_cmdline_get_param_rhs+0x1f><== ALWAYS TAKEN
return NULL; rhs++;
108188: 8d 48 01 lea 0x1(%eax),%ecx
if ( *rhs == '\"' )
10818b: 8a 50 01 mov 0x1(%eax),%dl 10818e: 80 fa 22 cmp $0x22,%dl
108191: 74 2d je 1081c0 <rtems_bsp_cmdline_get_param_rhs+0x78> rhs++; for ( d=value ; *rhs ; )
108193: 84 d2 test %dl,%dl
108195: 74 31 je 1081c8 <rtems_bsp_cmdline_get_param_rhs+0x80>
108197: 89 d8 mov %ebx,%eax 108199: 8d 76 00 lea 0x0(%esi),%esi
*d++ = *rhs++;
10819c: 88 10 mov %dl,(%eax) 10819e: 40 inc %eax 10819f: 41 inc %ecx
return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; )
1081a0: 8a 11 mov (%ecx),%dl 1081a2: 84 d2 test %dl,%dl
1081a4: 75 f6 jne 10819c <rtems_bsp_cmdline_get_param_rhs+0x54> *d++ = *rhs++; if ( *(d-1) == '\"' )
1081a6: 8d 50 ff lea -0x1(%eax),%edx 1081a9: 80 78 ff 22 cmpb $0x22,-0x1(%eax)
1081ad: 74 02 je 1081b1 <rtems_bsp_cmdline_get_param_rhs+0x69>
1081af: 89 c2 mov %eax,%edx
d--; *d = '\0';
1081b1: c6 02 00 movb $0x0,(%edx)
return value; }
1081b4: 89 d8 mov %ebx,%eax 1081b6: 8d 65 f8 lea -0x8(%ebp),%esp 1081b9: 5b pop %ebx 1081ba: 5f pop %edi 1081bb: c9 leave 1081bc: c3 ret
1081bd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if ( *rhs != '=' ) return NULL; rhs++; if ( *rhs == '\"' ) rhs++;
1081c0: 8d 48 02 lea 0x2(%eax),%ecx 1081c3: 8a 50 02 mov 0x2(%eax),%dl 1081c6: eb cb jmp 108193 <rtems_bsp_cmdline_get_param_rhs+0x4b>
for ( d=value ; *rhs ; )
1081c8: 89 d8 mov %ebx,%eax 1081ca: eb da jmp 1081a6 <rtems_bsp_cmdline_get_param_rhs+0x5e>
0010f5a8 <rtems_clock_get>: rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) {
10f5a8: 55 push %ebp 10f5a9: 89 e5 mov %esp,%ebp 10f5ab: 53 push %ebx 10f5ac: 83 ec 04 sub $0x4,%esp 10f5af: 8b 45 08 mov 0x8(%ebp),%eax 10f5b2: 8b 5d 0c mov 0xc(%ebp),%ebx
if ( !time_buffer )
10f5b5: 85 db test %ebx,%ebx
10f5b7: 74 3b je 10f5f4 <rtems_clock_get+0x4c> return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD )
10f5b9: 85 c0 test %eax,%eax
10f5bb: 74 2b je 10f5e8 <rtems_clock_get+0x40> return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH )
10f5bd: 83 f8 01 cmp $0x1,%eax
10f5c0: 74 3e je 10f600 <rtems_clock_get+0x58> return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) {
10f5c2: 83 f8 02 cmp $0x2,%eax
10f5c5: 74 45 je 10f60c <rtems_clock_get+0x64> *interval = rtems_clock_get_ticks_since_boot(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) {
10f5c7: 83 f8 03 cmp $0x3,%eax
10f5ca: 74 4c je 10f618 <rtems_clock_get+0x70> *interval = rtems_clock_get_ticks_per_second(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
10f5cc: 83 f8 04 cmp $0x4,%eax
10f5cf: 74 0b je 10f5dc <rtems_clock_get+0x34>
10f5d1: b8 0a 00 00 00 mov $0xa,%eax
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; }
10f5d6: 5a pop %edx 10f5d7: 5b pop %ebx 10f5d8: c9 leave 10f5d9: c3 ret
10f5da: 66 90 xchg %ax,%ax <== NOT EXECUTED
*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 );
10f5dc: 89 5d 08 mov %ebx,0x8(%ebp)
return RTEMS_INVALID_NUMBER; }
10f5df: 59 pop %ecx 10f5e0: 5b pop %ebx 10f5e1: 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 );
10f5e2: e9 49 01 00 00 jmp 10f730 <rtems_clock_get_tod_timeval>
10f5e7: 90 nop <== NOT EXECUTED
{ if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
10f5e8: 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; }
10f5eb: 58 pop %eax 10f5ec: 5b pop %ebx 10f5ed: 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 );
10f5ee: e9 7d 00 00 00 jmp 10f670 <rtems_clock_get_tod>
10f5f3: 90 nop <== NOT EXECUTED
rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { if ( !time_buffer )
10f5f4: 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; }
10f5f9: 5a pop %edx 10f5fa: 5b pop %ebx 10f5fb: c9 leave 10f5fc: c3 ret
10f5fd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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);
10f600: 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; }
10f603: 5b pop %ebx 10f604: 5b pop %ebx 10f605: 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);
10f606: e9 19 00 00 00 jmp 10f624 <rtems_clock_get_seconds_since_epoch>
10f60b: 90 nop <== NOT EXECUTED
if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_since_boot();
10f60c: e8 53 00 00 00 call 10f664 <rtems_clock_get_ticks_since_boot> 10f611: 89 03 mov %eax,(%ebx) 10f613: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10f615: eb bf jmp 10f5d6 <rtems_clock_get+0x2e>
10f617: 90 nop <== NOT EXECUTED
} if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { rtems_interval *interval = (rtems_interval *)time_buffer; *interval = rtems_clock_get_ticks_per_second();
10f618: e8 33 00 00 00 call 10f650 <rtems_clock_get_ticks_per_second> 10f61d: 89 03 mov %eax,(%ebx) 10f61f: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10f621: eb b3 jmp 10f5d6 <rtems_clock_get+0x2e>
0010bf34 <rtems_clock_get_seconds_since_epoch>: #include <rtems/score/watchdog.h> rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) {
10bf34: 55 push %ebp 10bf35: 89 e5 mov %esp,%ebp 10bf37: 8b 45 08 mov 0x8(%ebp),%eax
if ( !the_interval )
10bf3a: 85 c0 test %eax,%eax
10bf3c: 74 1e je 10bf5c <rtems_clock_get_seconds_since_epoch+0x28> return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set )
10bf3e: 80 3d ac 12 13 00 00 cmpb $0x0,0x1312ac
10bf45: 74 0d je 10bf54 <rtems_clock_get_seconds_since_epoch+0x20> return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch();
10bf47: 8b 15 2c 13 13 00 mov 0x13132c,%edx 10bf4d: 89 10 mov %edx,(%eax) 10bf4f: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL; }
10bf51: c9 leave 10bf52: c3 ret
10bf53: 90 nop <== NOT EXECUTED
) { if ( !the_interval ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set )
10bf54: b8 0b 00 00 00 mov $0xb,%eax
return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); return RTEMS_SUCCESSFUL; }
10bf59: c9 leave 10bf5a: c3 ret
10bf5b: 90 nop <== NOT EXECUTED
rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { if ( !the_interval )
10bf5c: b0 09 mov $0x9,%al
if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); return RTEMS_SUCCESSFUL; }
10bf5e: c9 leave 10bf5f: c3 ret
0010bf80 <rtems_clock_get_tod>: #include <rtems/score/watchdog.h> rtems_status_code rtems_clock_get_tod( rtems_time_of_day *time_buffer ) {
10bf80: 55 push %ebp 10bf81: 89 e5 mov %esp,%ebp 10bf83: 56 push %esi 10bf84: 53 push %ebx 10bf85: 83 ec 50 sub $0x50,%esp 10bf88: 8b 5d 08 mov 0x8(%ebp),%ebx
rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer )
10bf8b: 85 db test %ebx,%ebx
10bf8d: 0f 84 a1 00 00 00 je 10c034 <rtems_clock_get_tod+0xb4> return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set )
10bf93: 80 3d ac 12 13 00 00 cmpb $0x0,0x1312ac
10bf9a: 75 0c jne 10bfa8 <rtems_clock_get_tod+0x28>
10bf9c: 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; }
10bfa1: 8d 65 f8 lea -0x8(%ebp),%esp 10bfa4: 5b pop %ebx 10bfa5: 5e pop %esi 10bfa6: c9 leave 10bfa7: c3 ret
{ ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level);
10bfa8: 9c pushf 10bfa9: fa cli 10bfaa: 5e pop %esi
_TOD_Get( &now );
10bfab: 83 ec 0c sub $0xc,%esp 10bfae: 8d 45 e8 lea -0x18(%ebp),%eax 10bfb1: 50 push %eax 10bfb2: e8 61 18 00 00 call 10d818 <_TOD_Get>
_ISR_Enable(level);
10bfb7: 56 push %esi 10bfb8: 9d popf
useconds = (suseconds_t)now.tv_nsec;
10bfb9: 8b 4d ec mov -0x14(%ebp),%ecx
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec;
10bfbc: 8b 45 e8 mov -0x18(%ebp),%eax 10bfbf: 89 45 f0 mov %eax,-0x10(%ebp)
time->tv_usec = useconds;
10bfc2: be d3 4d 62 10 mov $0x10624dd3,%esi 10bfc7: 89 c8 mov %ecx,%eax 10bfc9: f7 ee imul %esi 10bfcb: 89 45 b0 mov %eax,-0x50(%ebp) 10bfce: 89 55 b4 mov %edx,-0x4c(%ebp) 10bfd1: 8b 75 b4 mov -0x4c(%ebp),%esi 10bfd4: c1 fe 06 sar $0x6,%esi 10bfd7: 89 c8 mov %ecx,%eax 10bfd9: 99 cltd 10bfda: 29 d6 sub %edx,%esi 10bfdc: 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 );
10bfdf: 58 pop %eax 10bfe0: 5a pop %edx 10bfe1: 8d 45 c4 lea -0x3c(%ebp),%eax 10bfe4: 50 push %eax 10bfe5: 8d 45 f0 lea -0x10(%ebp),%eax 10bfe8: 50 push %eax 10bfe9: e8 4a 84 00 00 call 114438 <gmtime_r>
/* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900;
10bfee: 8b 45 d8 mov -0x28(%ebp),%eax 10bff1: 05 6c 07 00 00 add $0x76c,%eax 10bff6: 89 03 mov %eax,(%ebx)
tmbuf->month = time.tm_mon + 1;
10bff8: 8b 45 d4 mov -0x2c(%ebp),%eax 10bffb: 40 inc %eax 10bffc: 89 43 04 mov %eax,0x4(%ebx)
tmbuf->day = time.tm_mday;
10bfff: 8b 45 d0 mov -0x30(%ebp),%eax 10c002: 89 43 08 mov %eax,0x8(%ebx)
tmbuf->hour = time.tm_hour;
10c005: 8b 45 cc mov -0x34(%ebp),%eax 10c008: 89 43 0c mov %eax,0xc(%ebx)
tmbuf->minute = time.tm_min;
10c00b: 8b 45 c8 mov -0x38(%ebp),%eax 10c00e: 89 43 10 mov %eax,0x10(%ebx)
tmbuf->second = time.tm_sec;
10c011: 8b 45 c4 mov -0x3c(%ebp),%eax 10c014: 89 43 14 mov %eax,0x14(%ebx)
tmbuf->ticks = now.tv_usec /
10c017: 8b 45 f4 mov -0xc(%ebp),%eax 10c01a: 31 d2 xor %edx,%edx 10c01c: f7 35 2c 53 12 00 divl 0x12532c 10c022: 89 43 18 mov %eax,0x18(%ebx) 10c025: 31 c0 xor %eax,%eax
rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL;
10c027: 83 c4 10 add $0x10,%esp
}
10c02a: 8d 65 f8 lea -0x8(%ebp),%esp 10c02d: 5b pop %ebx 10c02e: 5e pop %esi 10c02f: c9 leave 10c030: c3 ret
10c031: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{ rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer )
10c034: b8 09 00 00 00 mov $0x9,%eax 10c039: e9 63 ff ff ff jmp 10bfa1 <rtems_clock_get_tod+0x21>
0010f730 <rtems_clock_get_tod_timeval>: #include <rtems/score/watchdog.h> rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) {
10f730: 55 push %ebp 10f731: 89 e5 mov %esp,%ebp 10f733: 56 push %esi 10f734: 53 push %ebx 10f735: 83 ec 20 sub $0x20,%esp 10f738: 8b 5d 08 mov 0x8(%ebp),%ebx
if ( !time )
10f73b: 85 db test %ebx,%ebx
10f73d: 74 59 je 10f798 <rtems_clock_get_tod_timeval+0x68> return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set )
10f73f: 80 3d 8c e0 16 00 00 cmpb $0x0,0x16e08c
10f746: 75 0c jne 10f754 <rtems_clock_get_tod_timeval+0x24>
10f748: b8 0b 00 00 00 mov $0xb,%eax
return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; }
10f74d: 8d 65 f8 lea -0x8(%ebp),%esp 10f750: 5b pop %ebx 10f751: 5e pop %esi 10f752: c9 leave 10f753: c3 ret
{ ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level);
10f754: 9c pushf 10f755: fa cli 10f756: 5e pop %esi
_TOD_Get( &now );
10f757: 83 ec 0c sub $0xc,%esp 10f75a: 8d 45 f0 lea -0x10(%ebp),%eax 10f75d: 50 push %eax 10f75e: e8 05 18 00 00 call 110f68 <_TOD_Get>
_ISR_Enable(level);
10f763: 56 push %esi 10f764: 9d popf
useconds = (suseconds_t)now.tv_nsec;
10f765: 8b 4d f4 mov -0xc(%ebp),%ecx
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec;
10f768: 8b 45 f0 mov -0x10(%ebp),%eax 10f76b: 89 03 mov %eax,(%ebx)
time->tv_usec = useconds;
10f76d: be d3 4d 62 10 mov $0x10624dd3,%esi 10f772: 89 c8 mov %ecx,%eax 10f774: f7 ee imul %esi 10f776: 89 45 e0 mov %eax,-0x20(%ebp) 10f779: 89 55 e4 mov %edx,-0x1c(%ebp) 10f77c: 8b 75 e4 mov -0x1c(%ebp),%esi 10f77f: c1 fe 06 sar $0x6,%esi 10f782: 89 c8 mov %ecx,%eax 10f784: 99 cltd 10f785: 29 d6 sub %edx,%esi 10f787: 89 73 04 mov %esi,0x4(%ebx) 10f78a: 31 c0 xor %eax,%eax
if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL;
10f78c: 83 c4 10 add $0x10,%esp
}
10f78f: 8d 65 f8 lea -0x8(%ebp),%esp 10f792: 5b pop %ebx 10f793: 5e pop %esi 10f794: c9 leave 10f795: c3 ret
10f796: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { if ( !time )
10f798: b8 09 00 00 00 mov $0x9,%eax 10f79d: eb ae jmp 10f74d <rtems_clock_get_tod_timeval+0x1d>
0012cf90 <rtems_clock_get_uptime>: * error code - if unsuccessful */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) {
12cf90: 55 push %ebp 12cf91: 89 e5 mov %esp,%ebp 12cf93: 83 ec 08 sub $0x8,%esp 12cf96: 8b 45 08 mov 0x8(%ebp),%eax
if ( !uptime )
12cf99: 85 c0 test %eax,%eax
12cf9b: 74 13 je 12cfb0 <rtems_clock_get_uptime+0x20> return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime );
12cf9d: 83 ec 0c sub $0xc,%esp 12cfa0: 50 push %eax 12cfa1: e8 7a 0f 00 00 call 12df20 <_TOD_Get_uptime_as_timespec> 12cfa6: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
12cfa8: 83 c4 10 add $0x10,%esp
}
12cfab: c9 leave 12cfac: c3 ret
12cfad: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { if ( !uptime )
12cfb0: b0 09 mov $0x9,%al
return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime ); return RTEMS_SUCCESSFUL; }
12cfb2: c9 leave 12cfb3: c3 ret
0010c058 <rtems_clock_set>: */ rtems_status_code rtems_clock_set( rtems_time_of_day *time_buffer ) {
10c058: 55 push %ebp 10c059: 89 e5 mov %esp,%ebp 10c05b: 53 push %ebx 10c05c: 83 ec 14 sub $0x14,%esp 10c05f: 8b 5d 08 mov 0x8(%ebp),%ebx
struct timespec newtime; if ( !time_buffer )
10c062: 85 db test %ebx,%ebx
10c064: 74 66 je 10c0cc <rtems_clock_set+0x74> return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) {
10c066: 83 ec 0c sub $0xc,%esp 10c069: 53 push %ebx 10c06a: e8 39 01 00 00 call 10c1a8 <_TOD_Validate> 10c06f: 83 c4 10 add $0x10,%esp 10c072: 84 c0 test %al,%al
10c074: 75 0a jne 10c080 <rtems_clock_set+0x28>
10c076: b8 14 00 00 00 mov $0x14,%eax
_TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; }
10c07b: 8b 5d fc mov -0x4(%ebp),%ebx 10c07e: c9 leave 10c07f: c3 ret
if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { newtime.tv_sec = _TOD_To_seconds( time_buffer );
10c080: 83 ec 0c sub $0xc,%esp 10c083: 53 push %ebx 10c084: e8 93 00 00 00 call 10c11c <_TOD_To_seconds> 10c089: 89 45 f0 mov %eax,-0x10(%ebp)
newtime.tv_nsec = time_buffer->ticks *
10c08c: 8b 43 18 mov 0x18(%ebx),%eax 10c08f: 0f af 05 2c 53 12 00 imul 0x12532c,%eax 10c096: 8d 04 80 lea (%eax,%eax,4),%eax 10c099: 8d 04 80 lea (%eax,%eax,4),%eax 10c09c: 8d 04 80 lea (%eax,%eax,4),%eax 10c09f: c1 e0 03 shl $0x3,%eax 10c0a2: 89 45 f4 mov %eax,-0xc(%ebp)
rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1;
10c0a5: a1 98 12 13 00 mov 0x131298,%eax 10c0aa: 40 inc %eax 10c0ab: a3 98 12 13 00 mov %eax,0x131298
rtems_configuration_get_nanoseconds_per_tick(); _Thread_Disable_dispatch(); _TOD_Set( &newtime );
10c0b0: 8d 45 f0 lea -0x10(%ebp),%eax 10c0b3: 89 04 24 mov %eax,(%esp) 10c0b6: e8 41 18 00 00 call 10d8fc <_TOD_Set>
_Thread_Enable_dispatch();
10c0bb: e8 04 2b 00 00 call 10ebc4 <_Thread_Enable_dispatch> 10c0c0: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10c0c2: 83 c4 10 add $0x10,%esp
} return RTEMS_INVALID_CLOCK; }
10c0c5: 8b 5d fc mov -0x4(%ebp),%ebx 10c0c8: c9 leave 10c0c9: c3 ret
10c0ca: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_time_of_day *time_buffer ) { struct timespec newtime; if ( !time_buffer )
10c0cc: b8 09 00 00 00 mov $0x9,%eax
_TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; }
10c0d1: 8b 5d fc mov -0x4(%ebp),%ebx 10c0d4: c9 leave 10c0d5: c3 ret
0010af10 <rtems_clock_set_nanoseconds_extension>: * error code - if unsuccessful */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) {
10af10: 55 push %ebp 10af11: 89 e5 mov %esp,%ebp 10af13: 8b 45 08 mov 0x8(%ebp),%eax
if ( !routine )
10af16: 85 c0 test %eax,%eax
10af18: 74 0a je 10af24 <rtems_clock_set_nanoseconds_extension+0x14> return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine;
10af1a: a3 24 55 12 00 mov %eax,0x125524 10af1f: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL; }
10af21: c9 leave 10af22: c3 ret
10af23: 90 nop <== NOT EXECUTED
*/ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { if ( !routine )
10af24: b0 09 mov $0x9,%al
return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine; return RTEMS_SUCCESSFUL; }
10af26: c9 leave 10af27: c3 ret
0010af28 <rtems_clock_tick>: * * NOTE: This routine only works for leap-years through 2099. */ rtems_status_code rtems_clock_tick( void ) {
10af28: 55 push %ebp 10af29: 89 e5 mov %esp,%ebp 10af2b: 83 ec 08 sub $0x8,%esp
_TOD_Tickle_ticks();
10af2e: e8 f5 13 00 00 call 10c328 <_TOD_Tickle_ticks>
*/ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void ) { _Watchdog_Tickle( &_Watchdog_Ticks_chain );
10af33: 83 ec 0c sub $0xc,%esp 10af36: 68 38 54 12 00 push $0x125438 10af3b: e8 bc 35 00 00 call 10e4fc <_Watchdog_Tickle>
_Watchdog_Tickle_ticks(); _Thread_Tickle_timeslice();
10af40: e8 63 30 00 00 call 10dfa8 <_Thread_Tickle_timeslice>
* otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) { return ( _Context_Switch_necessary );
10af45: a0 28 54 12 00 mov 0x125428,%al
if ( _Thread_Is_context_switch_necessary() &&
10af4a: 83 c4 10 add $0x10,%esp 10af4d: 84 c0 test %al,%al
10af4f: 74 09 je 10af5a <rtems_clock_tick+0x32> * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void ) { return ( _Thread_Dispatch_disable_level == 0 );
10af51: a1 58 53 12 00 mov 0x125358,%eax 10af56: 85 c0 test %eax,%eax
10af58: 74 06 je 10af60 <rtems_clock_tick+0x38> _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); return RTEMS_SUCCESSFUL; }
10af5a: 31 c0 xor %eax,%eax 10af5c: c9 leave 10af5d: c3 ret
10af5e: 66 90 xchg %ax,%ax <== NOT EXECUTED
_Thread_Tickle_timeslice(); if ( _Thread_Is_context_switch_necessary() && _Thread_Is_dispatching_enabled() ) _Thread_Dispatch();
10af60: e8 97 23 00 00 call 10d2fc <_Thread_Dispatch>
return RTEMS_SUCCESSFUL; }
10af65: 31 c0 xor %eax,%eax 10af67: c9 leave 10af68: c3 ret
001087cc <rtems_cpu_usage_report_with_plugin>: void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) {
1087cc: 55 push %ebp 1087cd: 89 e5 mov %esp,%ebp 1087cf: 57 push %edi 1087d0: 56 push %esi 1087d1: 53 push %ebx 1087d2: 83 ec 6c sub $0x6c,%esp 1087d5: 8b 7d 08 mov 0x8(%ebp),%edi
Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print )
1087d8: 8b 45 0c mov 0xc(%ebp),%eax 1087db: 85 c0 test %eax,%eax
1087dd: 0f 84 5f 01 00 00 je 108942 <rtems_cpu_usage_report_with_plugin+0x176><== ALWAYS 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 );
1087e3: 83 ec 0c sub $0xc,%esp 1087e6: 8d 45 d8 lea -0x28(%ebp),%eax 1087e9: 50 push %eax 1087ea: e8 81 50 00 00 call 10d870 <_TOD_Get_uptime>
_Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total );
1087ef: 83 c4 0c add $0xc,%esp 1087f2: 8d 55 d0 lea -0x30(%ebp),%edx 1087f5: 52 push %edx 1087f6: 8d 4d d8 lea -0x28(%ebp),%ecx 1087f9: 51 push %ecx 1087fa: 68 8c 15 13 00 push $0x13158c 1087ff: e8 60 72 00 00 call 10fa64 <_Timespec_Subtract>
} } } #endif (*print)(
108804: 5b pop %ebx 108805: 5e pop %esi 108806: 68 14 1d 12 00 push $0x121d14 10880b: 57 push %edi 10880c: ff 55 0c call *0xc(%ebp) 10880f: c7 45 a4 01 00 00 00 movl $0x1,-0x5c(%ebp) 108816: 83 c4 10 add $0x10,%esp
); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] )
108819: 8b 5d a4 mov -0x5c(%ebp),%ebx 10881c: 8b 04 9d 6c 12 13 00 mov 0x13126c(,%ebx,4),%eax 108823: 85 c0 test %eax,%eax
108825: 0f 84 ed 00 00 00 je 108918 <rtems_cpu_usage_report_with_plugin+0x14c> continue; information = _Objects_Information_table[ api_index ][ 1 ];
10882b: 8b 70 04 mov 0x4(%eax),%esi
if ( information ) {
10882e: 85 f6 test %esi,%esi
108830: 0f 84 e2 00 00 00 je 108918 <rtems_cpu_usage_report_with_plugin+0x14c><== ALWAYS TAKEN
for ( i=1 ; i <= information->maximum ; i++ ) {
108836: 66 83 7e 10 00 cmpw $0x0,0x10(%esi)
10883b: 0f 84 d7 00 00 00 je 108918 <rtems_cpu_usage_report_with_plugin+0x14c><== ALWAYS TAKEN
108841: 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 );
108846: 89 5d 94 mov %ebx,-0x6c(%ebp) 108849: eb 4b jmp 108896 <rtems_cpu_usage_report_with_plugin+0xca>
10884b: 90 nop <== NOT EXECUTED
}; _Timestamp_Divide( &ran, &total, &ival, &fval );
10884c: 8d 5d e0 lea -0x20(%ebp),%ebx 10884f: 53 push %ebx 108850: 8d 45 e4 lea -0x1c(%ebp),%eax 108853: 50 push %eax 108854: 8d 55 d0 lea -0x30(%ebp),%edx 108857: 52 push %edx 108858: 8d 4d c8 lea -0x38(%ebp),%ecx 10885b: 51 push %ecx 10885c: e8 2f 71 00 00 call 10f990 <_Timespec_Divide>
/* * Print the information */ (*print)( context,
108861: 58 pop %eax 108862: 5a pop %edx 108863: ff 75 e0 pushl -0x20(%ebp) 108866: ff 75 e4 pushl -0x1c(%ebp) 108869: ba d3 4d 62 10 mov $0x10624dd3,%edx 10886e: 8b 45 cc mov -0x34(%ebp),%eax 108871: f7 e2 mul %edx 108873: c1 ea 06 shr $0x6,%edx 108876: 52 push %edx 108877: ff 75 c8 pushl -0x38(%ebp) 10887a: 68 87 1f 12 00 push $0x121f87 10887f: 57 push %edi 108880: ff 55 0c call *0xc(%ebp) 108883: 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++ ) {
108886: ff 45 94 incl -0x6c(%ebp) 108889: 0f b7 46 10 movzwl 0x10(%esi),%eax 10888d: 3b 45 94 cmp -0x6c(%ebp),%eax
108890: 0f 82 82 00 00 00 jb 108918 <rtems_cpu_usage_report_with_plugin+0x14c> the_thread = (Thread_Control *)information->local_table[ i ];
108896: 8b 46 1c mov 0x1c(%esi),%eax 108899: 8b 4d 94 mov -0x6c(%ebp),%ecx 10889c: 8b 14 88 mov (%eax,%ecx,4),%edx
if ( !the_thread )
10889f: 85 d2 test %edx,%edx
1088a1: 74 e3 je 108886 <rtems_cpu_usage_report_with_plugin+0xba><== ALWAYS TAKEN
continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
1088a3: 51 push %ecx 1088a4: 8d 5d b3 lea -0x4d(%ebp),%ebx 1088a7: 53 push %ebx 1088a8: 6a 0d push $0xd 1088aa: ff 72 08 pushl 0x8(%edx) 1088ad: 89 55 a0 mov %edx,-0x60(%ebp) 1088b0: e8 83 3d 00 00 call 10c638 <rtems_object_get_name>
(*print)(
1088b5: 53 push %ebx 1088b6: 8b 55 a0 mov -0x60(%ebp),%edx 1088b9: ff 72 08 pushl 0x8(%edx) 1088bc: 68 74 1f 12 00 push $0x121f74 1088c1: 57 push %edi 1088c2: 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;
1088c5: 8b 55 a0 mov -0x60(%ebp),%edx 1088c8: 8b 8a 84 00 00 00 mov 0x84(%edx),%ecx 1088ce: 8b 9a 88 00 00 00 mov 0x88(%edx),%ebx 1088d4: 89 4d c8 mov %ecx,-0x38(%ebp) 1088d7: 89 5d cc mov %ebx,-0x34(%ebp)
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
1088da: 83 c4 20 add $0x20,%esp 1088dd: a1 58 13 13 00 mov 0x131358,%eax 1088e2: 8b 40 08 mov 0x8(%eax),%eax 1088e5: 3b 42 08 cmp 0x8(%edx),%eax
1088e8: 0f 85 5e ff ff ff jne 10884c <rtems_cpu_usage_report_with_plugin+0x80> Timestamp_Control used; _Timestamp_Subtract(
1088ee: 52 push %edx 1088ef: 8d 5d c0 lea -0x40(%ebp),%ebx 1088f2: 53 push %ebx 1088f3: 8d 45 d8 lea -0x28(%ebp),%eax 1088f6: 50 push %eax 1088f7: 68 60 13 13 00 push $0x131360 1088fc: e8 63 71 00 00 call 10fa64 <_Timespec_Subtract>
&_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used );
108901: 59 pop %ecx 108902: 58 pop %eax 108903: 53 push %ebx 108904: 8d 4d c8 lea -0x38(%ebp),%ecx 108907: 51 push %ecx 108908: e8 47 70 00 00 call 10f954 <_Timespec_Add_to> 10890d: 83 c4 10 add $0x10,%esp 108910: e9 37 ff ff ff jmp 10884c <rtems_cpu_usage_report_with_plugin+0x80>
108915: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
"------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
108918: ff 45 a4 incl -0x5c(%ebp)
" ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ;
10891b: 83 7d a4 05 cmpl $0x5,-0x5c(%ebp)
10891f: 0f 85 f4 fe ff ff jne 108819 <rtems_cpu_usage_report_with_plugin+0x4d> } } } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)(
108925: ba d3 4d 62 10 mov $0x10624dd3,%edx 10892a: 8b 45 d4 mov -0x2c(%ebp),%eax 10892d: f7 e2 mul %edx 10892f: c1 ea 06 shr $0x6,%edx 108932: 52 push %edx 108933: ff 75 d0 pushl -0x30(%ebp) 108936: 68 88 1e 12 00 push $0x121e88 10893b: 57 push %edi 10893c: ff 55 0c call *0xc(%ebp) 10893f: 83 c4 10 add $0x10,%esp
"-------------------------------------------------------------------------------\n", _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset, total_units ); #endif }
108942: 8d 65 f4 lea -0xc(%ebp),%esp 108945: 5b pop %ebx 108946: 5e pop %esi 108947: 5f pop %edi 108948: c9 leave 108949: c3 ret
00112178 <rtems_deviceio_errno>: { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) {
112178: 55 push %ebp <== NOT EXECUTED 112179: 89 e5 mov %esp,%ebp <== NOT EXECUTED 11217b: 53 push %ebx <== NOT EXECUTED 11217c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED
int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code)))
11217f: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 112182: 68 80 01 12 00 push $0x120180 <== NOT EXECUTED 112187: e8 1c 00 00 00 call 1121a8 <rtems_assoc_remote_by_local><== NOT EXECUTED 11218c: 89 c3 mov %eax,%ebx <== NOT EXECUTED 11218e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 112191: 85 c0 test %eax,%eax <== NOT EXECUTED 112193: 74 07 je 11219c <rtems_deviceio_errno+0x24><== NOT EXECUTED
{ errno = rc;
112195: e8 1e 03 00 00 call 1124b8 <__errno> <== NOT EXECUTED 11219a: 89 18 mov %ebx,(%eax) <== NOT EXECUTED
return -1; } return -1; }
11219c: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 1121a1: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 1121a4: c9 leave <== NOT EXECUTED 1121a5: c3 ret <== NOT EXECUTED
0010cd08 <rtems_error>: int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) {
10cd08: 55 push %ebp <== NOT EXECUTED 10cd09: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10cd0b: 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(
10cd0e: 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);
10cd11: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 10cd14: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 10cd17: e8 34 fe ff ff call 10cb50 <rtems_verror> <== NOT EXECUTED
va_end(arglist); return chars_written; }
10cd1c: c9 leave <== NOT EXECUTED 10cd1d: c3 ret <== NOT EXECUTED
0010b0f0 <rtems_event_send>: rtems_status_code rtems_event_send( rtems_id id, rtems_event_set event_in ) {
10b0f0: 55 push %ebp 10b0f1: 89 e5 mov %esp,%ebp 10b0f3: 53 push %ebx 10b0f4: 83 ec 1c sub $0x1c,%esp
register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location );
10b0f7: 8d 45 f4 lea -0xc(%ebp),%eax 10b0fa: 50 push %eax 10b0fb: ff 75 08 pushl 0x8(%ebp) 10b0fe: e8 79 23 00 00 call 10d47c <_Thread_Get>
switch ( location ) {
10b103: 83 c4 10 add $0x10,%esp 10b106: 8b 55 f4 mov -0xc(%ebp),%edx 10b109: 85 d2 test %edx,%edx
10b10b: 75 2b jne 10b138 <rtems_event_send+0x48> case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
10b10d: 8b 90 f0 00 00 00 mov 0xf0(%eax),%edx
rtems_event_set *the_event_set ) { ISR_Level level; _ISR_Disable( level );
10b113: 9c pushf 10b114: fa cli 10b115: 59 pop %ecx
*the_event_set |= the_new_events;
10b116: 8b 5d 0c mov 0xc(%ebp),%ebx 10b119: 09 1a or %ebx,(%edx)
_ISR_Enable( level );
10b11b: 51 push %ecx 10b11c: 9d popf
_Event_sets_Post( event_in, &api->pending_events ); _Event_Surrender( the_thread );
10b11d: 83 ec 0c sub $0xc,%esp 10b120: 50 push %eax 10b121: e8 1e 00 00 00 call 10b144 <_Event_Surrender>
_Thread_Enable_dispatch();
10b126: e8 2d 23 00 00 call 10d458 <_Thread_Enable_dispatch> 10b12b: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10b12d: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10b130: 8b 5d fc mov -0x4(%ebp),%ebx 10b133: c9 leave 10b134: c3 ret
10b135: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location ); switch ( location ) {
10b138: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10b13d: 8b 5d fc mov -0x4(%ebp),%ebx 10b140: c9 leave 10b141: c3 ret
001107d4 <rtems_extension_create>: rtems_status_code rtems_extension_create( rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id ) {
1107d4: 55 push %ebp 1107d5: 89 e5 mov %esp,%ebp 1107d7: 57 push %edi 1107d8: 56 push %esi 1107d9: 53 push %ebx 1107da: 83 ec 1c sub $0x1c,%esp 1107dd: 8b 75 0c mov 0xc(%ebp),%esi 1107e0: 8b 5d 10 mov 0x10(%ebp),%ebx
Extension_Control *the_extension; if ( !id )
1107e3: 85 db test %ebx,%ebx
1107e5: 0f 84 85 00 00 00 je 110870 <rtems_extension_create+0x9c> return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) )
1107eb: 8b 45 08 mov 0x8(%ebp),%eax 1107ee: 85 c0 test %eax,%eax
1107f0: 75 0e jne 110800 <rtems_extension_create+0x2c>
1107f2: b8 03 00 00 00 mov $0x3,%eax
); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
1107f7: 8d 65 f4 lea -0xc(%ebp),%esp 1107fa: 5b pop %ebx 1107fb: 5e pop %esi 1107fc: 5f pop %edi 1107fd: c9 leave 1107fe: c3 ret
1107ff: 90 nop <== NOT EXECUTED
rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1;
110800: a1 d8 3a 13 00 mov 0x133ad8,%eax 110805: 40 inc %eax 110806: a3 d8 3a 13 00 mov %eax,0x133ad8
#ifndef __EXTENSION_MANAGER_inl #define __EXTENSION_MANAGER_inl RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void ) { return (Extension_Control *) _Objects_Allocate( &_Extension_Information );
11080b: 83 ec 0c sub $0xc,%esp 11080e: 68 60 3d 13 00 push $0x133d60 110813: e8 18 0c 00 00 call 111430 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) {
110818: 83 c4 10 add $0x10,%esp 11081b: 85 c0 test %eax,%eax
11081d: 74 45 je 110864 <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;
11081f: 8d 78 24 lea 0x24(%eax),%edi 110822: b9 08 00 00 00 mov $0x8,%ecx 110827: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
_User_extensions_Add_set( extension );
110829: 83 ec 0c sub $0xc,%esp 11082c: 8d 50 10 lea 0x10(%eax),%edx 11082f: 52 push %edx 110830: 89 45 e4 mov %eax,-0x1c(%ebp) 110833: e8 f0 25 00 00 call 112e28 <_User_extensions_Add_set>
#if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object;
110838: 8b 45 e4 mov -0x1c(%ebp),%eax 11083b: 8b 50 08 mov 0x8(%eax),%edx 11083e: 0f b7 f2 movzwl %dx,%esi 110841: 8b 0d 7c 3d 13 00 mov 0x133d7c,%ecx 110847: 89 04 b1 mov %eax,(%ecx,%esi,4)
information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name;
11084a: 8b 4d 08 mov 0x8(%ebp),%ecx 11084d: 89 48 0c mov %ecx,0xc(%eax)
&_Extension_Information, &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id;
110850: 89 13 mov %edx,(%ebx)
_Thread_Enable_dispatch();
110852: e8 39 19 00 00 call 112190 <_Thread_Enable_dispatch> 110857: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
110859: 83 c4 10 add $0x10,%esp
}
11085c: 8d 65 f4 lea -0xc(%ebp),%esp 11085f: 5b pop %ebx 110860: 5e pop %esi 110861: 5f pop %edi 110862: c9 leave 110863: c3 ret
_Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { _Thread_Enable_dispatch();
110864: e8 27 19 00 00 call 112190 <_Thread_Enable_dispatch> 110869: b8 05 00 00 00 mov $0x5,%eax
return RTEMS_TOO_MANY;
11086e: eb 87 jmp 1107f7 <rtems_extension_create+0x23>
rtems_id *id ) { Extension_Control *the_extension; if ( !id )
110870: b8 09 00 00 00 mov $0x9,%eax 110875: eb 80 jmp 1107f7 <rtems_extension_create+0x23>
00110878 <rtems_extension_delete>: #include <rtems/extension.h> rtems_status_code rtems_extension_delete( rtems_id id ) {
110878: 55 push %ebp 110879: 89 e5 mov %esp,%ebp 11087b: 53 push %ebx 11087c: 83 ec 18 sub $0x18,%esp
RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get ( Objects_Id id, Objects_Locations *location ) { return (Extension_Control *)
11087f: 8d 45 f4 lea -0xc(%ebp),%eax 110882: 50 push %eax 110883: ff 75 08 pushl 0x8(%ebp) 110886: 68 60 3d 13 00 push $0x133d60 11088b: e8 50 10 00 00 call 1118e0 <_Objects_Get> 110890: 89 c3 mov %eax,%ebx
Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) {
110892: 83 c4 10 add $0x10,%esp 110895: 8b 55 f4 mov -0xc(%ebp),%edx 110898: 85 d2 test %edx,%edx
11089a: 75 38 jne 1108d4 <rtems_extension_delete+0x5c> case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension );
11089c: 83 ec 0c sub $0xc,%esp 11089f: 8d 40 10 lea 0x10(%eax),%eax 1108a2: 50 push %eax 1108a3: e8 80 26 00 00 call 112f28 <_User_extensions_Remove_set>
_Objects_Close( &_Extension_Information, &the_extension->Object );
1108a8: 59 pop %ecx 1108a9: 58 pop %eax 1108aa: 53 push %ebx 1108ab: 68 60 3d 13 00 push $0x133d60 1108b0: e8 f7 0b 00 00 call 1114ac <_Objects_Close>
RTEMS_INLINE_ROUTINE void _Extension_Free ( Extension_Control *the_extension ) { _Objects_Free( &_Extension_Information, &the_extension->Object );
1108b5: 58 pop %eax 1108b6: 5a pop %edx 1108b7: 53 push %ebx 1108b8: 68 60 3d 13 00 push $0x133d60 1108bd: e8 ee 0e 00 00 call 1117b0 <_Objects_Free>
_Extension_Free( the_extension ); _Thread_Enable_dispatch();
1108c2: e8 c9 18 00 00 call 112190 <_Thread_Enable_dispatch> 1108c7: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
1108c9: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
1108cc: 8b 5d fc mov -0x4(%ebp),%ebx 1108cf: c9 leave 1108d0: c3 ret
1108d1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{ Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) {
1108d4: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
1108d9: 8b 5d fc mov -0x4(%ebp),%ebx 1108dc: c9 leave 1108dd: c3 ret
00107ea4 <rtems_filesystem_dirname>: } int rtems_filesystem_dirname( const char *pathname ) {
107ea4: 55 push %ebp 107ea5: 89 e5 mov %esp,%ebp 107ea7: 57 push %edi 107ea8: 8b 55 08 mov 0x8(%ebp),%edx
int len = strlen( pathname );
107eab: 31 c0 xor %eax,%eax 107ead: b9 ff ff ff ff mov $0xffffffff,%ecx 107eb2: 89 d7 mov %edx,%edi 107eb4: f2 ae repnz scas %es:(%edi),%al 107eb6: f7 d1 not %ecx 107eb8: 8d 79 ff lea -0x1(%ecx),%edi 107ebb: 89 f8 mov %edi,%eax
while ( len ) {
107ebd: 85 ff test %edi,%edi
107ebf: 74 2e je 107eef <rtems_filesystem_dirname+0x4b><== ALWAYS TAKEN
len--;
107ec1: 8d 41 fe lea -0x2(%ecx),%eax
if ( rtems_filesystem_is_separator( pathname[len] ) )
107ec4: 8a 0c 02 mov (%edx,%eax,1),%cl 107ec7: 80 f9 2f cmp $0x2f,%cl
107eca: 74 23 je 107eef <rtems_filesystem_dirname+0x4b><== ALWAYS TAKEN
107ecc: 80 f9 5c cmp $0x5c,%cl
107ecf: 74 1e je 107eef <rtems_filesystem_dirname+0x4b><== ALWAYS TAKEN
107ed1: 84 c9 test %cl,%cl
107ed3: 74 1a je 107eef <rtems_filesystem_dirname+0x4b><== ALWAYS TAKEN
107ed5: 01 fa add %edi,%edx 107ed7: 90 nop
const char *pathname ) { int len = strlen( pathname ); while ( len ) {
107ed8: 85 c0 test %eax,%eax
107eda: 74 13 je 107eef <rtems_filesystem_dirname+0x4b> len--;
107edc: 48 dec %eax
if ( rtems_filesystem_is_separator( pathname[len] ) )
107edd: 8a 4a fe mov -0x2(%edx),%cl 107ee0: 80 f9 2f cmp $0x2f,%cl
107ee3: 74 0a je 107eef <rtems_filesystem_dirname+0x4b>
107ee5: 80 f9 5c cmp $0x5c,%cl
107ee8: 74 05 je 107eef <rtems_filesystem_dirname+0x4b><== ALWAYS TAKEN
107eea: 4a dec %edx 107eeb: 84 c9 test %cl,%cl
107eed: 75 e9 jne 107ed8 <rtems_filesystem_dirname+0x34><== NEVER TAKEN
break; } return len; }
107eef: 5f pop %edi 107ef0: c9 leave 107ef1: c3 ret
00107fc8 <rtems_filesystem_evaluate_path>: int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) {
107fc8: 55 push %ebp 107fc9: 89 e5 mov %esp,%ebp 107fcb: 57 push %edi 107fcc: 56 push %esi 107fcd: 53 push %ebx 107fce: 83 ec 1c sub $0x1c,%esp 107fd1: 8b 55 08 mov 0x8(%ebp),%edx 107fd4: 8b 45 0c mov 0xc(%ebp),%eax 107fd7: 89 45 e4 mov %eax,-0x1c(%ebp) 107fda: 8b 45 10 mov 0x10(%ebp),%eax 107fdd: 89 45 e0 mov %eax,-0x20(%ebp) 107fe0: 8b 45 14 mov 0x14(%ebp),%eax 107fe3: 8b 5d 18 mov 0x18(%ebp),%ebx
/* * Verify Input parameters. */ if ( !pathname )
107fe6: 85 d2 test %edx,%edx
107fe8: 0f 84 80 00 00 00 je 10806e <rtems_filesystem_evaluate_path+0xa6><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc )
107fee: 85 c0 test %eax,%eax
107ff0: 74 64 je 108056 <rtems_filesystem_evaluate_path+0x8e><== ALWAYS TAKEN
/* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc );
107ff2: 8a 0a mov (%edx),%cl 107ff4: 80 f9 2f cmp $0x2f,%cl
107ff7: 74 09 je 108002 <rtems_filesystem_evaluate_path+0x3a>
107ff9: 80 f9 5c cmp $0x5c,%cl
107ffc: 74 04 je 108002 <rtems_filesystem_evaluate_path+0x3a><== ALWAYS TAKEN
107ffe: 84 c9 test %cl,%cl
108000: 75 3e jne 108040 <rtems_filesystem_evaluate_path+0x78><== NEVER TAKEN
108002: 8b 35 18 30 12 00 mov 0x123018,%esi 108008: 83 c6 18 add $0x18,%esi 10800b: b9 05 00 00 00 mov $0x5,%ecx 108010: 89 c7 mov %eax,%edi 108012: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 108014: b1 01 mov $0x1,%cl 108016: be 01 00 00 00 mov $0x1,%esi
/* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i],
10801b: 89 5d 18 mov %ebx,0x18(%ebp) 10801e: 89 45 14 mov %eax,0x14(%ebp) 108021: 8b 45 e0 mov -0x20(%ebp),%eax 108024: 89 45 10 mov %eax,0x10(%ebp) 108027: 8b 45 e4 mov -0x1c(%ebp),%eax 10802a: 29 f0 sub %esi,%eax 10802c: 89 45 0c mov %eax,0xc(%ebp) 10802f: 01 ca add %ecx,%edx 108031: 89 55 08 mov %edx,0x8(%ebp)
pathnamelen - i, flags, pathloc, follow_link ); }
108034: 83 c4 1c add $0x1c,%esp 108037: 5b pop %ebx 108038: 5e pop %esi 108039: 5f pop %edi 10803a: c9 leave
rtems_filesystem_get_start_loc( pathname, &i, pathloc ); /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i],
10803b: e9 b4 fe ff ff jmp 107ef4 <rtems_filesystem_evaluate_relative_path>
/* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc );
108040: 8b 35 18 30 12 00 mov 0x123018,%esi 108046: 83 c6 04 add $0x4,%esi 108049: b9 05 00 00 00 mov $0x5,%ecx 10804e: 89 c7 mov %eax,%edi 108050: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 108052: 31 f6 xor %esi,%esi 108054: eb c5 jmp 10801b <rtems_filesystem_evaluate_path+0x53>
if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
108056: e8 5d a4 00 00 call 1124b8 <__errno> <== NOT EXECUTED 10805b: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED
return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); }
108061: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108066: 83 c4 1c add $0x1c,%esp <== NOT EXECUTED 108069: 5b pop %ebx <== NOT EXECUTED 10806a: 5e pop %esi <== NOT EXECUTED 10806b: 5f pop %edi <== NOT EXECUTED 10806c: c9 leave <== NOT EXECUTED 10806d: c3 ret <== NOT EXECUTED
/* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT );
10806e: e8 45 a4 00 00 call 1124b8 <__errno> <== NOT EXECUTED 108073: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 108079: eb e6 jmp 108061 <rtems_filesystem_evaluate_path+0x99><== NOT EXECUTED
00107ef4 <rtems_filesystem_evaluate_relative_path>: int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) {
107ef4: 55 push %ebp 107ef5: 89 e5 mov %esp,%ebp 107ef7: 57 push %edi 107ef8: 56 push %esi 107ef9: 53 push %ebx 107efa: 83 ec 1c sub $0x1c,%esp 107efd: 8b 45 08 mov 0x8(%ebp),%eax 107f00: 8b 4d 0c mov 0xc(%ebp),%ecx 107f03: 8b 7d 10 mov 0x10(%ebp),%edi 107f06: 8b 5d 14 mov 0x14(%ebp),%ebx 107f09: 8b 55 18 mov 0x18(%ebp),%edx 107f0c: 89 55 e4 mov %edx,-0x1c(%ebp)
/* * Verify Input parameters. */ if ( !pathname )
107f0f: 85 c0 test %eax,%eax
107f11: 0f 84 8c 00 00 00 je 107fa3 <rtems_filesystem_evaluate_relative_path+0xaf><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc )
107f17: 85 db test %ebx,%ebx
107f19: 0f 84 96 00 00 00 je 107fb5 <rtems_filesystem_evaluate_relative_path+0xc1><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h )
107f1f: 8b 53 0c mov 0xc(%ebx),%edx 107f22: 8b 12 mov (%edx),%edx 107f24: 85 d2 test %edx,%edx
107f26: 74 69 je 107f91 <rtems_filesystem_evaluate_relative_path+0x9d><== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc );
107f28: 53 push %ebx 107f29: 57 push %edi 107f2a: 51 push %ecx 107f2b: 50 push %eax 107f2c: ff d2 call *%edx 107f2e: 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 ) {
107f30: 83 c4 10 add $0x10,%esp 107f33: 85 c0 test %eax,%eax
107f35: 75 25 jne 107f5c <rtems_filesystem_evaluate_relative_path+0x68>
107f37: 8b 45 e4 mov -0x1c(%ebp),%eax 107f3a: 85 c0 test %eax,%eax
107f3c: 74 1e je 107f5c <rtems_filesystem_evaluate_relative_path+0x68> if ( !pathloc->ops->node_type_h ){
107f3e: 8b 53 0c mov 0xc(%ebx),%edx 107f41: 8b 42 10 mov 0x10(%edx),%eax 107f44: 85 c0 test %eax,%eax
107f46: 74 39 je 107f81 <rtems_filesystem_evaluate_relative_path+0x8d><== ALWAYS TAKEN
rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc );
107f48: 83 ec 0c sub $0xc,%esp 107f4b: 53 push %ebx 107f4c: ff d0 call *%eax
if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||
107f4e: 83 e8 03 sub $0x3,%eax 107f51: 83 c4 10 add $0x10,%esp 107f54: 83 f8 01 cmp $0x1,%eax
107f57: 76 0f jbe 107f68 <rtems_filesystem_evaluate_relative_path+0x74>
107f59: 8d 76 00 lea 0x0(%esi),%esi
result = (*pathloc->ops->eval_link_h)( pathloc, flags ); } } return result; }
107f5c: 89 f0 mov %esi,%eax 107f5e: 8d 65 f4 lea -0xc(%ebp),%esp 107f61: 5b pop %ebx 107f62: 5e pop %esi 107f63: 5f pop %edi 107f64: c9 leave 107f65: c3 ret
107f66: 66 90 xchg %ax,%ax <== NOT EXECUTED
type = (*pathloc->ops->node_type_h)( pathloc ); if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){
107f68: 8b 53 0c mov 0xc(%ebx),%edx 107f6b: 8b 42 34 mov 0x34(%edx),%eax 107f6e: 85 c0 test %eax,%eax
107f70: 74 0f je 107f81 <rtems_filesystem_evaluate_relative_path+0x8d><== ALWAYS 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 );
107f72: 89 7d 0c mov %edi,0xc(%ebp) 107f75: 89 5d 08 mov %ebx,0x8(%ebp)
} } return result; }
107f78: 8d 65 f4 lea -0xc(%ebp),%esp 107f7b: 5b pop %ebx 107f7c: 5e pop %esi 107f7d: 5f pop %edi 107f7e: 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 );
107f7f: 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 );
107f81: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 107f84: 85 c0 test %eax,%eax <== NOT EXECUTED 107f86: 74 09 je 107f91 <rtems_filesystem_evaluate_relative_path+0x9d><== NOT EXECUTED 107f88: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107f8b: 53 push %ebx <== NOT EXECUTED 107f8c: ff d0 call *%eax <== NOT EXECUTED 107f8e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
107f91: e8 22 a5 00 00 call 1124b8 <__errno> <== NOT EXECUTED 107f96: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 107f9c: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 107fa1: eb b9 jmp 107f5c <rtems_filesystem_evaluate_relative_path+0x68><== NOT EXECUTED
/* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT );
107fa3: e8 10 a5 00 00 call 1124b8 <__errno> <== NOT EXECUTED 107fa8: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 107fae: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 107fb3: eb a7 jmp 107f5c <rtems_filesystem_evaluate_relative_path+0x68><== NOT EXECUTED
if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
107fb5: e8 fe a4 00 00 call 1124b8 <__errno> <== NOT EXECUTED 107fba: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED 107fc0: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 107fc5: eb 95 jmp 107f5c <rtems_filesystem_evaluate_relative_path+0x68><== NOT EXECUTED
00107d68 <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 ) {
107d68: 55 push %ebp 107d69: 89 e5 mov %esp,%ebp 107d6b: 57 push %edi 107d6c: 56 push %esi 107d6d: 53 push %ebx 107d6e: 83 ec 2c sub $0x2c,%esp
/* * Set the default umask to "022". */ rtems_filesystem_umask = 022;
107d71: a1 18 30 12 00 mov 0x123018,%eax 107d76: c7 40 2c 12 00 00 00 movl $0x12,0x2c(%eax)
init_fs_mount_table();
107d7d: e8 36 07 00 00 call 1084b8 <init_fs_mount_table>
/* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 )
107d82: a1 ac e0 11 00 mov 0x11e0ac,%eax 107d87: 85 c0 test %eax,%eax
107d89: 0f 84 b2 00 00 00 je 107e41 <rtems_filesystem_initialize+0xd9><== ALWAYS TAKEN
rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0];
107d8f: a1 54 11 12 00 mov 0x121154,%eax
status = mount(
107d94: 83 ec 0c sub $0xc,%esp 107d97: ff 70 0c pushl 0xc(%eax) 107d9a: ff 70 08 pushl 0x8(%eax) 107d9d: ff 70 04 pushl 0x4(%eax) 107da0: ff 30 pushl (%eax) 107da2: 8d 45 e4 lea -0x1c(%ebp),%eax 107da5: 50 push %eax 107da6: e8 35 07 00 00 call 1084e0 <mount>
&entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 )
107dab: 83 c4 20 add $0x20,%esp 107dae: 40 inc %eax
107daf: 0f 84 a6 00 00 00 je 107e5b <rtems_filesystem_initialize+0xf3><== ALWAYS TAKEN
rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0;
107db5: 8b 3d 18 30 12 00 mov 0x123018,%edi 107dbb: 66 c7 47 30 00 00 movw $0x0,0x30(%edi)
* set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root;
107dc1: 83 c7 18 add $0x18,%edi 107dc4: 8b 75 e4 mov -0x1c(%ebp),%esi 107dc7: 83 c6 1c add $0x1c,%esi 107dca: b9 05 00 00 00 mov $0x5,%ecx 107dcf: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
107dd1: 83 ec 0c sub $0xc,%esp 107dd4: 6a 00 push $0x0 107dd6: 8d 5d d0 lea -0x30(%ebp),%ebx 107dd9: 53 push %ebx 107dda: 6a 00 push $0x0 107ddc: 6a 01 push $0x1 107dde: 68 f3 f9 11 00 push $0x11f9f3 107de3: e8 e0 01 00 00 call 107fc8 <rtems_filesystem_evaluate_path>
rtems_filesystem_root = loc;
107de8: 8b 3d 18 30 12 00 mov 0x123018,%edi 107dee: 83 c7 18 add $0x18,%edi 107df1: b9 05 00 00 00 mov $0x5,%ecx 107df6: 89 de mov %ebx,%esi 107df8: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
107dfa: 83 c4 14 add $0x14,%esp 107dfd: 6a 00 push $0x0 107dff: 53 push %ebx 107e00: 6a 00 push $0x0 107e02: 6a 01 push $0x1 107e04: 68 f3 f9 11 00 push $0x11f9f3 107e09: e8 ba 01 00 00 call 107fc8 <rtems_filesystem_evaluate_path>
rtems_filesystem_current = loc;
107e0e: 8b 3d 18 30 12 00 mov 0x123018,%edi 107e14: 83 c7 04 add $0x4,%edi 107e17: b9 05 00 00 00 mov $0x5,%ecx 107e1c: 89 de mov %ebx,%esi 107e1e: 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);
107e20: 83 c4 18 add $0x18,%esp 107e23: 68 ff 01 00 00 push $0x1ff 107e28: 68 f5 f9 11 00 push $0x11f9f5 107e2d: e8 5a 05 00 00 call 10838c <mkdir>
if ( status != 0 )
107e32: 83 c4 10 add $0x10,%esp 107e35: 85 c0 test %eax,%eax
107e37: 75 15 jne 107e4e <rtems_filesystem_initialize+0xe6><== ALWAYS 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. */ }
107e39: 8d 65 f4 lea -0xc(%ebp),%esp 107e3c: 5b pop %ebx 107e3d: 5e pop %esi 107e3e: 5f pop %edi 107e3f: c9 leave 107e40: c3 ret
/* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 );
107e41: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107e44: 68 01 00 cd ab push $0xabcd0001 <== NOT EXECUTED 107e49: e8 ea 3d 00 00 call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
* created that way by the IMFS. */ status = mkdir( "/dev", 0777); if ( status != 0 ) rtems_fatal_error_occurred( 0xABCD0003 );
107e4e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107e51: 68 03 00 cd ab push $0xabcd0003 <== NOT EXECUTED 107e56: e8 dd 3d 00 00 call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
status = mount( &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 );
107e5b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107e5e: 68 02 00 cd ab push $0xabcd0002 <== NOT EXECUTED 107e63: e8 d0 3d 00 00 call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
0012c948 <rtems_filesystem_nodes_equal>: ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){
12c948: 55 push %ebp <== NOT EXECUTED 12c949: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c94b: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 12c94e: 8b 10 mov (%eax),%edx <== NOT EXECUTED 12c950: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 12c953: 3b 10 cmp (%eax),%edx <== NOT EXECUTED 12c955: 0f 94 c0 sete %al <== NOT EXECUTED
return ( loc1->node_access == loc2->node_access ); }
12c958: c9 leave <== NOT EXECUTED 12c959: c3 ret <== NOT EXECUTED
00107e68 <rtems_filesystem_prefix_separators>: int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) {
107e68: 55 push %ebp 107e69: 89 e5 mov %esp,%ebp 107e6b: 53 push %ebx 107e6c: 8b 4d 08 mov 0x8(%ebp),%ecx 107e6f: 8b 5d 0c mov 0xc(%ebp),%ebx
/* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
107e72: 8a 11 mov (%ecx),%dl 107e74: 84 d2 test %dl,%dl
107e76: 74 27 je 107e9f <rtems_filesystem_prefix_separators+0x37><== ALWAYS TAKEN
107e78: 85 db test %ebx,%ebx
107e7a: 74 23 je 107e9f <rtems_filesystem_prefix_separators+0x37><== ALWAYS TAKEN
107e7c: 31 c0 xor %eax,%eax 107e7e: 66 90 xchg %ax,%ax 107e80: 80 fa 2f cmp $0x2f,%dl
107e83: 74 0b je 107e90 <rtems_filesystem_prefix_separators+0x28>
107e85: 80 fa 5c cmp $0x5c,%dl
107e88: 74 06 je 107e90 <rtems_filesystem_prefix_separators+0x28><== ALWAYS TAKEN
pathname++; pathnamelen--; stripped++; } return stripped; }
107e8a: 5b pop %ebx 107e8b: c9 leave 107e8c: c3 ret
107e8d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) { pathname++; pathnamelen--; stripped++;
107e90: 40 inc %eax
{ /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
107e91: 8a 14 01 mov (%ecx,%eax,1),%dl 107e94: 84 d2 test %dl,%dl
107e96: 74 f2 je 107e8a <rtems_filesystem_prefix_separators+0x22><== ALWAYS TAKEN
107e98: 39 c3 cmp %eax,%ebx
107e9a: 75 e4 jne 107e80 <rtems_filesystem_prefix_separators+0x18><== NEVER TAKEN
pathname++; pathnamelen--; stripped++; } return stripped; }
107e9c: 5b pop %ebx <== NOT EXECUTED 107e9d: c9 leave <== NOT EXECUTED 107e9e: c3 ret <== NOT EXECUTED
{ /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
107e9f: 31 c0 xor %eax,%eax <== NOT EXECUTED 107ea1: eb e7 jmp 107e8a <rtems_filesystem_prefix_separators+0x22><== NOT EXECUTED
00111c4c <rtems_io_close>: rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) {
111c4c: 55 push %ebp 111c4d: 89 e5 mov %esp,%ebp 111c4f: 56 push %esi 111c50: 53 push %ebx 111c51: 8b 45 08 mov 0x8(%ebp),%eax 111c54: 8b 4d 0c mov 0xc(%ebp),%ecx 111c57: 8b 5d 10 mov 0x10(%ebp),%ebx
rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers )
111c5a: 39 05 a0 56 12 00 cmp %eax,0x1256a0
111c60: 76 22 jbe 111c84 <rtems_io_close+0x38> return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry;
111c62: 8d 34 40 lea (%eax,%eax,2),%esi 111c65: 8b 15 a4 56 12 00 mov 0x1256a4,%edx 111c6b: 8b 54 f2 08 mov 0x8(%edx,%esi,8),%edx
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
111c6f: 85 d2 test %edx,%edx
111c71: 74 1d je 111c90 <rtems_io_close+0x44>
111c73: 89 5d 10 mov %ebx,0x10(%ebp) 111c76: 89 4d 0c mov %ecx,0xc(%ebp) 111c79: 89 45 08 mov %eax,0x8(%ebp)
}
111c7c: 5b pop %ebx 111c7d: 5e pop %esi 111c7e: 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;
111c7f: ff e2 jmp *%edx
111c81: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers )
111c84: 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; }
111c89: 5b pop %ebx 111c8a: 5e pop %esi 111c8b: c9 leave 111c8c: c3 ret
111c8d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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;
111c90: 31 c0 xor %eax,%eax
}
111c92: 5b pop %ebx 111c93: 5e pop %esi 111c94: c9 leave 111c95: c3 ret
00111c98 <rtems_io_control>: rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) {
111c98: 55 push %ebp 111c99: 89 e5 mov %esp,%ebp 111c9b: 56 push %esi 111c9c: 53 push %ebx 111c9d: 8b 45 08 mov 0x8(%ebp),%eax 111ca0: 8b 4d 0c mov 0xc(%ebp),%ecx 111ca3: 8b 5d 10 mov 0x10(%ebp),%ebx
rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers )
111ca6: 39 05 a0 56 12 00 cmp %eax,0x1256a0
111cac: 76 22 jbe 111cd0 <rtems_io_control+0x38> return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry;
111cae: 8d 34 40 lea (%eax,%eax,2),%esi 111cb1: 8b 15 a4 56 12 00 mov 0x1256a4,%edx 111cb7: 8b 54 f2 14 mov 0x14(%edx,%esi,8),%edx
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
111cbb: 85 d2 test %edx,%edx
111cbd: 74 1d je 111cdc <rtems_io_control+0x44>
111cbf: 89 5d 10 mov %ebx,0x10(%ebp) 111cc2: 89 4d 0c mov %ecx,0xc(%ebp) 111cc5: 89 45 08 mov %eax,0x8(%ebp)
}
111cc8: 5b pop %ebx 111cc9: 5e pop %esi 111cca: 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;
111ccb: ff e2 jmp *%edx
111ccd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers )
111cd0: 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; }
111cd5: 5b pop %ebx 111cd6: 5e pop %esi 111cd7: c9 leave 111cd8: c3 ret
111cd9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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;
111cdc: 31 c0 xor %eax,%eax
}
111cde: 5b pop %ebx 111cdf: 5e pop %esi 111ce0: c9 leave 111ce1: c3 ret
00110088 <rtems_io_initialize>: rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) {
110088: 55 push %ebp 110089: 89 e5 mov %esp,%ebp 11008b: 56 push %esi 11008c: 53 push %ebx 11008d: 8b 45 08 mov 0x8(%ebp),%eax 110090: 8b 4d 0c mov 0xc(%ebp),%ecx 110093: 8b 5d 10 mov 0x10(%ebp),%ebx
rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers )
110096: 39 05 a0 56 12 00 cmp %eax,0x1256a0
11009c: 76 1e jbe 1100bc <rtems_io_initialize+0x34> return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].initialization_entry;
11009e: 8d 34 40 lea (%eax,%eax,2),%esi 1100a1: 8b 15 a4 56 12 00 mov 0x1256a4,%edx 1100a7: 8b 14 f2 mov (%edx,%esi,8),%edx
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
1100aa: 85 d2 test %edx,%edx
1100ac: 74 1a je 1100c8 <rtems_io_initialize+0x40>
1100ae: 89 5d 10 mov %ebx,0x10(%ebp) 1100b1: 89 4d 0c mov %ecx,0xc(%ebp) 1100b4: 89 45 08 mov %eax,0x8(%ebp)
}
1100b7: 5b pop %ebx 1100b8: 5e pop %esi 1100b9: 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;
1100ba: ff e2 jmp *%edx
void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers )
1100bc: 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; }
1100c1: 5b pop %ebx 1100c2: 5e pop %esi 1100c3: c9 leave 1100c4: c3 ret
1100c5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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;
1100c8: 31 c0 xor %eax,%eax
}
1100ca: 5b pop %ebx 1100cb: 5e pop %esi 1100cc: c9 leave 1100cd: c3 ret
00107bfc <rtems_io_lookup_name>: rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) {
107bfc: 55 push %ebp <== NOT EXECUTED 107bfd: 89 e5 mov %esp,%ebp <== NOT EXECUTED 107bff: 57 push %edi <== NOT EXECUTED 107c00: 56 push %esi <== NOT EXECUTED 107c01: 53 push %ebx <== NOT EXECUTED 107c02: 83 ec 48 sub $0x48,%esp <== NOT EXECUTED 107c05: 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 );
107c08: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 107c0d: 89 f7 mov %esi,%edi <== NOT EXECUTED 107c0f: 31 c0 xor %eax,%eax <== NOT EXECUTED 107c11: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 107c13: f7 d1 not %ecx <== NOT EXECUTED 107c15: 49 dec %ecx <== NOT EXECUTED 107c16: 6a 01 push $0x1 <== NOT EXECUTED 107c18: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED 107c1b: 53 push %ebx <== NOT EXECUTED 107c1c: 6a 00 push $0x0 <== NOT EXECUTED 107c1e: 51 push %ecx <== NOT EXECUTED 107c1f: 56 push %esi <== NOT EXECUTED 107c20: e8 a3 03 00 00 call 107fc8 <rtems_filesystem_evaluate_path><== NOT EXECUTED 107c25: 89 c7 mov %eax,%edi <== NOT EXECUTED
the_jnode = loc.node_access;
107c27: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED
if ( !loc.ops->node_type_h ) {
107c2a: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 107c2d: 8b 41 10 mov 0x10(%ecx),%eax <== NOT EXECUTED 107c30: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 107c33: 85 c0 test %eax,%eax <== NOT EXECUTED 107c35: 74 41 je 107c78 <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 );
107c37: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107c3a: 53 push %ebx <== NOT EXECUTED 107c3b: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED 107c3e: ff d0 call *%eax <== NOT EXECUTED
if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {
107c40: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 107c43: 85 ff test %edi,%edi <== NOT EXECUTED 107c45: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED 107c48: 74 56 je 107ca0 <rtems_io_lookup_name+0xa4><== NOT EXECUTED
rtems_filesystem_freenode( &loc );
107c4a: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 107c4d: 85 c0 test %eax,%eax <== NOT EXECUTED 107c4f: 0f 84 93 00 00 00 je 107ce8 <rtems_io_lookup_name+0xec><== NOT EXECUTED 107c55: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 107c58: 85 c0 test %eax,%eax <== NOT EXECUTED 107c5a: 0f 84 88 00 00 00 je 107ce8 <rtems_io_lookup_name+0xec><== NOT EXECUTED 107c60: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107c63: 53 push %ebx <== NOT EXECUTED 107c64: ff d0 call *%eax <== NOT EXECUTED 107c66: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED 107c6b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); return RTEMS_SUCCESSFUL; }
107c6e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 107c71: 5b pop %ebx <== NOT EXECUTED 107c72: 5e pop %esi <== NOT EXECUTED 107c73: 5f pop %edi <== NOT EXECUTED 107c74: c9 leave <== NOT EXECUTED 107c75: c3 ret <== NOT EXECUTED 107c76: 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 );
107c78: 8b 41 1c mov 0x1c(%ecx),%eax <== NOT EXECUTED 107c7b: 85 c0 test %eax,%eax <== NOT EXECUTED 107c7d: 74 09 je 107c88 <rtems_io_lookup_name+0x8c><== NOT EXECUTED 107c7f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107c82: 53 push %ebx <== NOT EXECUTED 107c83: ff d0 call *%eax <== NOT EXECUTED 107c85: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
107c88: e8 2b a8 00 00 call 1124b8 <__errno> <== NOT EXECUTED 107c8d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 107c93: 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; }
107c98: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 107c9b: 5b pop %ebx <== NOT EXECUTED 107c9c: 5e pop %esi <== NOT EXECUTED 107c9d: 5f pop %edi <== NOT EXECUTED 107c9e: c9 leave <== NOT EXECUTED 107c9f: 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 ) {
107ca0: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED 107ca3: 75 a5 jne 107c4a <rtems_io_lookup_name+0x4e><== NOT EXECUTED
rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name;
107ca5: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 107ca8: 89 31 mov %esi,(%ecx) <== NOT EXECUTED
device_info->device_name_length = strlen( name );
107caa: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 107caf: 89 f7 mov %esi,%edi <== NOT EXECUTED 107cb1: 31 c0 xor %eax,%eax <== NOT EXECUTED 107cb3: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 107cb5: f7 d1 not %ecx <== NOT EXECUTED 107cb7: 49 dec %ecx <== NOT EXECUTED 107cb8: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 107cbb: 89 48 04 mov %ecx,0x4(%eax) <== NOT EXECUTED
device_info->major = the_jnode->info.device.major;
107cbe: 8b 42 50 mov 0x50(%edx),%eax <== NOT EXECUTED 107cc1: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 107cc4: 89 41 08 mov %eax,0x8(%ecx) <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
107cc7: 8b 42 54 mov 0x54(%edx),%eax <== NOT EXECUTED 107cca: 89 41 0c mov %eax,0xc(%ecx) <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
107ccd: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 107cd0: 85 c0 test %eax,%eax <== NOT EXECUTED 107cd2: 74 21 je 107cf5 <rtems_io_lookup_name+0xf9><== NOT EXECUTED 107cd4: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 107cd7: 85 c0 test %eax,%eax <== NOT EXECUTED 107cd9: 74 1a je 107cf5 <rtems_io_lookup_name+0xf9><== NOT EXECUTED 107cdb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107cde: 53 push %ebx <== NOT EXECUTED 107cdf: ff d0 call *%eax <== NOT EXECUTED 107ce1: 31 c0 xor %eax,%eax <== NOT EXECUTED 107ce3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 107ce6: eb 86 jmp 107c6e <rtems_io_lookup_name+0x72><== NOT EXECUTED 107ce8: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
return RTEMS_SUCCESSFUL; }
107ced: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 107cf0: 5b pop %ebx <== NOT EXECUTED 107cf1: 5e pop %esi <== NOT EXECUTED 107cf2: 5f pop %edi <== NOT EXECUTED 107cf3: c9 leave <== NOT EXECUTED 107cf4: 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 );
107cf5: 31 c0 xor %eax,%eax <== NOT EXECUTED 107cf7: e9 72 ff ff ff jmp 107c6e <rtems_io_lookup_name+0x72><== NOT EXECUTED
00111ce4 <rtems_io_open>: rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) {
111ce4: 55 push %ebp 111ce5: 89 e5 mov %esp,%ebp 111ce7: 56 push %esi 111ce8: 53 push %ebx 111ce9: 8b 45 08 mov 0x8(%ebp),%eax 111cec: 8b 4d 0c mov 0xc(%ebp),%ecx 111cef: 8b 5d 10 mov 0x10(%ebp),%ebx
rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers )
111cf2: 39 05 a0 56 12 00 cmp %eax,0x1256a0
111cf8: 76 22 jbe 111d1c <rtems_io_open+0x38> return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry;
111cfa: 8d 34 40 lea (%eax,%eax,2),%esi 111cfd: 8b 15 a4 56 12 00 mov 0x1256a4,%edx 111d03: 8b 54 f2 04 mov 0x4(%edx,%esi,8),%edx
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
111d07: 85 d2 test %edx,%edx
111d09: 74 1d je 111d28 <rtems_io_open+0x44>
111d0b: 89 5d 10 mov %ebx,0x10(%ebp) 111d0e: 89 4d 0c mov %ecx,0xc(%ebp) 111d11: 89 45 08 mov %eax,0x8(%ebp)
}
111d14: 5b pop %ebx 111d15: 5e pop %esi 111d16: 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;
111d17: ff e2 jmp *%edx
111d19: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers )
111d1c: 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; }
111d21: 5b pop %ebx 111d22: 5e pop %esi 111d23: c9 leave 111d24: c3 ret
111d25: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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;
111d28: 31 c0 xor %eax,%eax
}
111d2a: 5b pop %ebx 111d2b: 5e pop %esi 111d2c: c9 leave 111d2d: c3 ret
00111d30 <rtems_io_read>: rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) {
111d30: 55 push %ebp 111d31: 89 e5 mov %esp,%ebp 111d33: 56 push %esi 111d34: 53 push %ebx 111d35: 8b 45 08 mov 0x8(%ebp),%eax 111d38: 8b 4d 0c mov 0xc(%ebp),%ecx 111d3b: 8b 5d 10 mov 0x10(%ebp),%ebx
rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers )
111d3e: 39 05 a0 56 12 00 cmp %eax,0x1256a0
111d44: 76 22 jbe 111d68 <rtems_io_read+0x38> return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry;
111d46: 8d 34 40 lea (%eax,%eax,2),%esi 111d49: 8b 15 a4 56 12 00 mov 0x1256a4,%edx 111d4f: 8b 54 f2 0c mov 0xc(%edx,%esi,8),%edx
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
111d53: 85 d2 test %edx,%edx
111d55: 74 1d je 111d74 <rtems_io_read+0x44>
111d57: 89 5d 10 mov %ebx,0x10(%ebp) 111d5a: 89 4d 0c mov %ecx,0xc(%ebp) 111d5d: 89 45 08 mov %eax,0x8(%ebp)
}
111d60: 5b pop %ebx 111d61: 5e pop %esi 111d62: 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;
111d63: ff e2 jmp *%edx
111d65: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers )
111d68: 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; }
111d6d: 5b pop %ebx 111d6e: 5e pop %esi 111d6f: c9 leave 111d70: c3 ret
111d71: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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;
111d74: 31 c0 xor %eax,%eax
}
111d76: 5b pop %ebx 111d77: 5e pop %esi 111d78: c9 leave 111d79: c3 ret
0010d430 <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 ) {
10d430: 55 push %ebp 10d431: 89 e5 mov %esp,%ebp 10d433: 57 push %edi 10d434: 56 push %esi 10d435: 53 push %ebx 10d436: 83 ec 0c sub $0xc,%esp 10d439: 8b 5d 08 mov 0x8(%ebp),%ebx 10d43c: 8b 75 0c mov 0xc(%ebp),%esi 10d43f: 8b 55 10 mov 0x10(%ebp),%edx
rtems_device_major_number major_limit = _IO_Number_of_drivers;
10d442: a1 40 ba 12 00 mov 0x12ba40,%eax
if ( rtems_interrupt_is_in_progress() )
10d447: 8b 0d 34 b7 12 00 mov 0x12b734,%ecx 10d44d: 85 c9 test %ecx,%ecx
10d44f: 0f 85 ab 00 00 00 jne 10d500 <rtems_io_register_driver+0xd0> return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL )
10d455: 85 d2 test %edx,%edx
10d457: 0f 84 e3 00 00 00 je 10d540 <rtems_io_register_driver+0x110> return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit;
10d45d: 89 02 mov %eax,(%edx)
if ( driver_table == NULL )
10d45f: 85 f6 test %esi,%esi
10d461: 0f 84 d9 00 00 00 je 10d540 <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;
10d467: 8b 3e mov (%esi),%edi 10d469: 85 ff test %edi,%edi
10d46b: 0f 84 c3 00 00 00 je 10d534 <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 )
10d471: 39 d8 cmp %ebx,%eax
10d473: 76 7b jbe 10d4f0 <rtems_io_register_driver+0xc0> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1;
10d475: a1 98 b6 12 00 mov 0x12b698,%eax 10d47a: 40 inc %eax 10d47b: a3 98 b6 12 00 mov %eax,0x12b698
return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) {
10d480: 85 db test %ebx,%ebx
10d482: 0f 85 88 00 00 00 jne 10d510 <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;
10d488: 8b 0d 40 ba 12 00 mov 0x12ba40,%ecx
rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) {
10d48e: 85 c9 test %ecx,%ecx
10d490: 0f 84 b7 00 00 00 je 10d54d <rtems_io_register_driver+0x11d><== ALWAYS TAKEN
10d496: 8b 3d 44 ba 12 00 mov 0x12ba44,%edi 10d49c: 89 f8 mov %edi,%eax 10d49e: eb 08 jmp 10d4a8 <rtems_io_register_driver+0x78> 10d4a0: 43 inc %ebx 10d4a1: 83 c0 18 add $0x18,%eax 10d4a4: 39 d9 cmp %ebx,%ecx
10d4a6: 76 0b jbe 10d4b3 <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;
10d4a8: 83 38 00 cmpl $0x0,(%eax)
10d4ab: 75 f3 jne 10d4a0 <rtems_io_register_driver+0x70>
10d4ad: 83 78 04 00 cmpl $0x0,0x4(%eax)
10d4b1: 75 ed jne 10d4a0 <rtems_io_register_driver+0x70> if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m;
10d4b3: 89 1a mov %ebx,(%edx)
if ( m != n )
10d4b5: 39 d9 cmp %ebx,%ecx
10d4b7: 0f 84 97 00 00 00 je 10d554 <rtems_io_register_driver+0x124>
10d4bd: 8d 04 5b lea (%ebx,%ebx,2),%eax 10d4c0: 8d 04 c7 lea (%edi,%eax,8),%eax
} *registered_major = major; } _IO_Driver_address_table [major] = *driver_table;
10d4c3: b9 06 00 00 00 mov $0x6,%ecx 10d4c8: 89 c7 mov %eax,%edi 10d4ca: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
_Thread_Enable_dispatch();
10d4cc: e8 37 19 00 00 call 10ee08 <_Thread_Enable_dispatch>
return rtems_io_initialize( major, 0, NULL );
10d4d1: c7 45 10 00 00 00 00 movl $0x0,0x10(%ebp) 10d4d8: c7 45 0c 00 00 00 00 movl $0x0,0xc(%ebp) 10d4df: 89 5d 08 mov %ebx,0x8(%ebp)
}
10d4e2: 83 c4 0c add $0xc,%esp 10d4e5: 5b pop %ebx 10d4e6: 5e pop %esi 10d4e7: 5f pop %edi 10d4e8: c9 leave
_IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL );
10d4e9: e9 8e 7a 00 00 jmp 114f7c <rtems_io_initialize>
10d4ee: 66 90 xchg %ax,%ax <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit )
10d4f0: 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 ); }
10d4f5: 83 c4 0c add $0xc,%esp 10d4f8: 5b pop %ebx 10d4f9: 5e pop %esi 10d4fa: 5f pop %edi 10d4fb: c9 leave 10d4fc: c3 ret
10d4fd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_device_major_number *registered_major ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() )
10d500: 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 ); }
10d505: 83 c4 0c add $0xc,%esp 10d508: 5b pop %ebx 10d509: 5e pop %esi 10d50a: 5f pop %edi 10d50b: c9 leave 10d50c: c3 ret
10d50d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major;
10d510: 8d 04 5b lea (%ebx,%ebx,2),%eax 10d513: c1 e0 03 shl $0x3,%eax 10d516: 03 05 44 ba 12 00 add 0x12ba44,%eax
static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL;
10d51c: 8b 38 mov (%eax),%edi 10d51e: 85 ff test %edi,%edi
10d520: 74 3e je 10d560 <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();
10d522: e8 e1 18 00 00 call 10ee08 <_Thread_Enable_dispatch> 10d527: 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 ); }
10d52c: 83 c4 0c add $0xc,%esp 10d52f: 5b pop %ebx 10d530: 5e pop %esi 10d531: 5f pop %edi 10d532: c9 leave 10d533: 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;
10d534: 8b 4e 04 mov 0x4(%esi),%ecx 10d537: 85 c9 test %ecx,%ecx
10d539: 0f 85 32 ff ff ff jne 10d471 <rtems_io_register_driver+0x41>
10d53f: 90 nop
_IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL );
10d540: b8 09 00 00 00 mov $0x9,%eax
}
10d545: 83 c4 0c add $0xc,%esp 10d548: 5b pop %ebx 10d549: 5e pop %esi 10d54a: 5f pop %edi 10d54b: c9 leave 10d54c: c3 ret
if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m;
10d54d: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED 10d553: 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();
10d554: e8 af 18 00 00 call 10ee08 <_Thread_Enable_dispatch> 10d559: b8 05 00 00 00 mov $0x5,%eax
return sc;
10d55e: eb 95 jmp 10d4f5 <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;
10d560: 8b 48 04 mov 0x4(%eax),%ecx 10d563: 85 c9 test %ecx,%ecx
10d565: 75 bb jne 10d522 <rtems_io_register_driver+0xf2> if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major;
10d567: 89 1a mov %ebx,(%edx) 10d569: e9 55 ff ff ff jmp 10d4c3 <rtems_io_register_driver+0x93>
0010d570 <rtems_io_unregister_driver>: */ rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) {
10d570: 55 push %ebp 10d571: 89 e5 mov %esp,%ebp 10d573: 57 push %edi 10d574: 83 ec 04 sub $0x4,%esp 10d577: 8b 45 08 mov 0x8(%ebp),%eax
if ( rtems_interrupt_is_in_progress() )
10d57a: 8b 15 34 b7 12 00 mov 0x12b734,%edx 10d580: 85 d2 test %edx,%edx
10d582: 75 44 jne 10d5c8 <rtems_io_unregister_driver+0x58> return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) {
10d584: 39 05 40 ba 12 00 cmp %eax,0x12ba40
10d58a: 77 0c ja 10d598 <rtems_io_unregister_driver+0x28>
10d58c: b8 0d 00 00 00 mov $0xd,%eax
return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; }
10d591: 5a pop %edx 10d592: 5f pop %edi 10d593: c9 leave 10d594: c3 ret
10d595: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
10d598: 8b 15 98 b6 12 00 mov 0x12b698,%edx 10d59e: 42 inc %edx 10d59f: 89 15 98 b6 12 00 mov %edx,0x12b698
if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { _Thread_Disable_dispatch(); memset(
10d5a5: 8d 14 40 lea (%eax,%eax,2),%edx 10d5a8: c1 e2 03 shl $0x3,%edx 10d5ab: 03 15 44 ba 12 00 add 0x12ba44,%edx 10d5b1: b9 18 00 00 00 mov $0x18,%ecx 10d5b6: 31 c0 xor %eax,%eax 10d5b8: 89 d7 mov %edx,%edi 10d5ba: f3 aa rep stos %al,%es:(%edi)
&_IO_Driver_address_table[major], 0, sizeof( rtems_driver_address_table ) ); _Thread_Enable_dispatch();
10d5bc: e8 47 18 00 00 call 10ee08 <_Thread_Enable_dispatch> 10d5c1: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; }
10d5c3: 5a pop %edx 10d5c4: 5f pop %edi 10d5c5: c9 leave 10d5c6: c3 ret
10d5c7: 90 nop <== NOT EXECUTED
rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { if ( rtems_interrupt_is_in_progress() )
10d5c8: b8 12 00 00 00 mov $0x12,%eax
return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; }
10d5cd: 5a pop %edx 10d5ce: 5f pop %edi 10d5cf: c9 leave 10d5d0: c3 ret
00111d7c <rtems_io_write>: rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) {
111d7c: 55 push %ebp 111d7d: 89 e5 mov %esp,%ebp 111d7f: 56 push %esi 111d80: 53 push %ebx 111d81: 8b 45 08 mov 0x8(%ebp),%eax 111d84: 8b 4d 0c mov 0xc(%ebp),%ecx 111d87: 8b 5d 10 mov 0x10(%ebp),%ebx
rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers )
111d8a: 39 05 a0 56 12 00 cmp %eax,0x1256a0
111d90: 76 22 jbe 111db4 <rtems_io_write+0x38> return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry;
111d92: 8d 34 40 lea (%eax,%eax,2),%esi 111d95: 8b 15 a4 56 12 00 mov 0x1256a4,%edx 111d9b: 8b 54 f2 10 mov 0x10(%edx,%esi,8),%edx
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
111d9f: 85 d2 test %edx,%edx
111da1: 74 1d je 111dc0 <rtems_io_write+0x44>
111da3: 89 5d 10 mov %ebx,0x10(%ebp) 111da6: 89 4d 0c mov %ecx,0xc(%ebp) 111da9: 89 45 08 mov %eax,0x8(%ebp)
}
111dac: 5b pop %ebx 111dad: 5e pop %esi 111dae: 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;
111daf: ff e2 jmp *%edx
111db1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers )
111db4: 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; }
111db9: 5b pop %ebx 111dba: 5e pop %esi 111dbb: c9 leave 111dbc: c3 ret
111dbd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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;
111dc0: 31 c0 xor %eax,%eax
}
111dc2: 5b pop %ebx 111dc3: 5e pop %esi 111dc4: c9 leave 111dc5: c3 ret
0010dda0 <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) {
10dda0: 55 push %ebp 10dda1: 89 e5 mov %esp,%ebp 10dda3: 57 push %edi 10dda4: 56 push %esi 10dda5: 53 push %ebx 10dda6: 83 ec 1c sub $0x1c,%esp 10dda9: 8b 7d 08 mov 0x8(%ebp),%edi
uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine )
10ddac: 85 ff test %edi,%edi
10ddae: 74 4d je 10ddfd <rtems_iterate_over_all_threads+0x5d><== ALWAYS TAKEN
10ddb0: 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 ] )
10ddb7: 8b 55 e4 mov -0x1c(%ebp),%edx 10ddba: 8b 04 95 6c 12 13 00 mov 0x13126c(,%edx,4),%eax 10ddc1: 85 c0 test %eax,%eax
10ddc3: 74 2f je 10ddf4 <rtems_iterate_over_all_threads+0x54> continue; information = _Objects_Information_table[ api_index ][ 1 ];
10ddc5: 8b 70 04 mov 0x4(%eax),%esi
if ( !information )
10ddc8: 85 f6 test %esi,%esi
10ddca: 74 28 je 10ddf4 <rtems_iterate_over_all_threads+0x54> continue; for ( i=1 ; i <= information->maximum ; i++ ) {
10ddcc: 66 83 7e 10 00 cmpw $0x0,0x10(%esi)
10ddd1: 74 21 je 10ddf4 <rtems_iterate_over_all_threads+0x54><== ALWAYS TAKEN
10ddd3: bb 01 00 00 00 mov $0x1,%ebx
the_thread = (Thread_Control *)information->local_table[ i ];
10ddd8: 8b 46 1c mov 0x1c(%esi),%eax 10dddb: 8b 04 98 mov (%eax,%ebx,4),%eax
if ( !the_thread )
10ddde: 85 c0 test %eax,%eax
10dde0: 74 09 je 10ddeb <rtems_iterate_over_all_threads+0x4b><== ALWAYS TAKEN
continue; (*routine)(the_thread);
10dde2: 83 ec 0c sub $0xc,%esp 10dde5: 50 push %eax 10dde6: ff d7 call *%edi 10dde8: 83 c4 10 add $0x10,%esp
information = _Objects_Information_table[ api_index ][ 1 ]; if ( !information ) continue; for ( i=1 ; i <= information->maximum ; i++ ) {
10ddeb: 43 inc %ebx 10ddec: 0f b7 46 10 movzwl 0x10(%esi),%eax 10ddf0: 39 d8 cmp %ebx,%eax
10ddf2: 73 e4 jae 10ddd8 <rtems_iterate_over_all_threads+0x38> Objects_Information *information; if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
10ddf4: ff 45 e4 incl -0x1c(%ebp) 10ddf7: 83 7d e4 05 cmpl $0x5,-0x1c(%ebp)
10ddfb: 75 ba jne 10ddb7 <rtems_iterate_over_all_threads+0x17> (*routine)(the_thread); } } }
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
0010fb90 <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 ) {
10fb90: 55 push %ebp 10fb91: 89 e5 mov %esp,%ebp 10fb93: 57 push %edi 10fb94: 53 push %ebx 10fb95: 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 );
10fb98: 6a 00 push $0x0 10fb9a: 6a 00 push $0x0 10fb9c: ff 35 c8 51 12 00 pushl 0x1251c8 10fba2: e8 59 ba ff ff call 10b600 <rtems_semaphore_obtain>
rtems_status_code rc; rtems_id sema; rtems_libio_lock(); if (rtems_libio_iop_freelist) {
10fba7: a1 c4 51 12 00 mov 0x1251c4,%eax 10fbac: 83 c4 10 add $0x10,%esp 10fbaf: 85 c0 test %eax,%eax
10fbb1: 75 19 jne 10fbcc <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;
10fbb3: 31 db xor %ebx,%ebx
} static inline void rtems_libio_unlock( void ) { rtems_semaphore_release( rtems_libio_semaphore );
10fbb5: 83 ec 0c sub $0xc,%esp 10fbb8: ff 35 c8 51 12 00 pushl 0x1251c8 10fbbe: e8 39 bb ff ff call 10b6fc <rtems_semaphore_release>
iop = 0; done: rtems_libio_unlock(); return iop; }
10fbc3: 89 d8 mov %ebx,%eax 10fbc5: 8d 65 f8 lea -0x8(%ebp),%esp 10fbc8: 5b pop %ebx 10fbc9: 5f pop %edi 10fbca: c9 leave 10fbcb: c3 ret
rtems_id sema; rtems_libio_lock(); if (rtems_libio_iop_freelist) { rc = rtems_semaphore_create(
10fbcc: 83 ec 0c sub $0xc,%esp 10fbcf: 8d 55 f4 lea -0xc(%ebp),%edx 10fbd2: 52 push %edx 10fbd3: 6a 00 push $0x0 10fbd5: 6a 54 push $0x54 10fbd7: 6a 01 push $0x1 10fbd9: 2b 05 c0 51 12 00 sub 0x1251c0,%eax 10fbdf: c1 f8 06 sar $0x6,%eax 10fbe2: 0d 00 49 42 4c or $0x4c424900,%eax 10fbe7: 50 push %eax 10fbe8: e8 9b b7 ff ff call 10b388 <rtems_semaphore_create>
1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 0, &sema ); if (rc != RTEMS_SUCCESSFUL)
10fbed: 83 c4 20 add $0x20,%esp 10fbf0: 85 c0 test %eax,%eax
10fbf2: 75 bf jne 10fbb3 <rtems_libio_allocate+0x23><== ALWAYS TAKEN
goto failed; iop = rtems_libio_iop_freelist;
10fbf4: 8b 1d c4 51 12 00 mov 0x1251c4,%ebx
next = iop->data1;
10fbfa: 8b 53 34 mov 0x34(%ebx),%edx
(void) memset( iop, 0, sizeof(rtems_libio_t) );
10fbfd: b9 40 00 00 00 mov $0x40,%ecx 10fc02: 89 df mov %ebx,%edi 10fc04: f3 aa rep stos %al,%es:(%edi)
iop->flags = LIBIO_FLAGS_OPEN;
10fc06: c7 43 14 00 01 00 00 movl $0x100,0x14(%ebx)
iop->sem = sema;
10fc0d: 8b 45 f4 mov -0xc(%ebp),%eax 10fc10: 89 43 2c mov %eax,0x2c(%ebx)
rtems_libio_iop_freelist = next;
10fc13: 89 15 c4 51 12 00 mov %edx,0x1251c4
goto done;
10fc19: eb 9a jmp 10fbb5 <rtems_libio_allocate+0x25>
0010fb38 <rtems_libio_free>: */ void rtems_libio_free( rtems_libio_t *iop ) {
10fb38: 55 push %ebp 10fb39: 89 e5 mov %esp,%ebp 10fb3b: 53 push %ebx 10fb3c: 83 ec 08 sub $0x8,%esp 10fb3f: 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 );
10fb42: 6a 00 push $0x0 10fb44: 6a 00 push $0x0 10fb46: ff 35 c8 51 12 00 pushl 0x1251c8 10fb4c: e8 af ba ff ff call 10b600 <rtems_semaphore_obtain>
rtems_libio_lock(); if (iop->sem)
10fb51: 8b 43 2c mov 0x2c(%ebx),%eax 10fb54: 83 c4 10 add $0x10,%esp 10fb57: 85 c0 test %eax,%eax
10fb59: 74 0c je 10fb67 <rtems_libio_free+0x2f> <== ALWAYS TAKEN
rtems_semaphore_delete(iop->sem);
10fb5b: 83 ec 0c sub $0xc,%esp 10fb5e: 50 push %eax 10fb5f: e8 f8 b9 ff ff call 10b55c <rtems_semaphore_delete> 10fb64: 83 c4 10 add $0x10,%esp
iop->flags &= ~LIBIO_FLAGS_OPEN;
10fb67: 81 63 14 ff fe ff ff andl $0xfffffeff,0x14(%ebx)
iop->data1 = rtems_libio_iop_freelist;
10fb6e: a1 c4 51 12 00 mov 0x1251c4,%eax 10fb73: 89 43 34 mov %eax,0x34(%ebx)
rtems_libio_iop_freelist = iop;
10fb76: 89 1d c4 51 12 00 mov %ebx,0x1251c4
} static inline void rtems_libio_unlock( void ) { rtems_semaphore_release( rtems_libio_semaphore );
10fb7c: a1 c8 51 12 00 mov 0x1251c8,%eax 10fb81: 89 45 08 mov %eax,0x8(%ebp)
rtems_libio_unlock(); }
10fb84: 8b 5d fc mov -0x4(%ebp),%ebx 10fb87: c9 leave 10fb88: e9 6f bb ff ff jmp 10b6fc <rtems_semaphore_release>
001080f8 <rtems_libio_init>: * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) {
1080f8: 55 push %ebp 1080f9: 89 e5 mov %esp,%ebp 1080fb: 53 push %ebx 1080fc: 83 ec 04 sub $0x4,%esp
rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0)
1080ff: a1 4c 11 12 00 mov 0x12114c,%eax 108104: 85 c0 test %eax,%eax
108106: 74 4d je 108155 <rtems_libio_init+0x5d> <== ALWAYS TAKEN
{ rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
108108: 83 ec 08 sub $0x8,%esp 10810b: 6a 40 push $0x40 10810d: 50 push %eax 10810e: e8 01 77 00 00 call 10f814 <calloc> 108113: 89 c2 mov %eax,%edx 108115: a3 c0 51 12 00 mov %eax,0x1251c0
sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL)
10811a: 83 c4 10 add $0x10,%esp 10811d: 85 c0 test %eax,%eax
10811f: 74 71 je 108192 <rtems_libio_init+0x9a> <== ALWAYS TAKEN
rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops;
108121: a3 c4 51 12 00 mov %eax,0x1251c4
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
108126: 8b 1d 4c 11 12 00 mov 0x12114c,%ebx 10812c: 83 fb 01 cmp $0x1,%ebx
10812f: 76 1d jbe 10814e <rtems_libio_init+0x56> <== ALWAYS TAKEN
108131: 8d 50 40 lea 0x40(%eax),%edx 108134: b9 01 00 00 00 mov $0x1,%ecx 108139: 8d 76 00 lea 0x0(%esi),%esi
iop->data1 = iop + 1;
10813c: 89 52 f4 mov %edx,-0xc(%edx) 10813f: 83 c2 40 add $0x40,%edx 108142: 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++)
108143: 39 d9 cmp %ebx,%ecx
108145: 75 f5 jne 10813c <rtems_libio_init+0x44>
108147: c1 e1 06 shl $0x6,%ecx 10814a: 8d 54 01 c0 lea -0x40(%ecx,%eax,1),%edx
iop->data1 = iop + 1; iop->data1 = NULL;
10814e: 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(
108155: 83 ec 0c sub $0xc,%esp 108158: 68 c8 51 12 00 push $0x1251c8 10815d: 6a 00 push $0x0 10815f: 6a 54 push $0x54 108161: 6a 01 push $0x1 108163: 68 4f 49 42 4c push $0x4c42494f 108168: e8 1b 32 00 00 call 10b388 <rtems_semaphore_create>
1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL )
10816d: 83 c4 20 add $0x20,%esp 108170: 85 c0 test %eax,%eax
108172: 75 15 jne 108189 <rtems_libio_init+0x91> <== ALWAYS TAKEN
/* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper)
108174: a1 48 11 12 00 mov 0x121148,%eax 108179: 85 c0 test %eax,%eax
10817b: 74 07 je 108184 <rtems_libio_init+0x8c> <== ALWAYS TAKEN
(* rtems_fs_init_helper)(); }
10817d: 8b 5d fc mov -0x4(%ebp),%ebx 108180: c9 leave
/* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) (* rtems_fs_init_helper)();
108181: ff e0 jmp *%eax
108183: 90 nop <== NOT EXECUTED
}
108184: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 108187: c9 leave <== NOT EXECUTED 108188: 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 );
108189: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10818c: 50 push %eax <== NOT EXECUTED 10818d: e8 a6 3a 00 00 call 10bc38 <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);
108192: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108195: 6a 1a push $0x1a <== NOT EXECUTED 108197: e8 9c 3a 00 00 call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
0010fa70 <rtems_libio_is_file_open>: */ int rtems_libio_is_file_open( void *node_access ) {
10fa70: 55 push %ebp 10fa71: 89 e5 mov %esp,%ebp 10fa73: 53 push %ebx 10fa74: 83 ec 08 sub $0x8,%esp 10fa77: 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 );
10fa7a: 6a 00 push $0x0 10fa7c: 6a 00 push $0x0 10fa7e: ff 35 c8 51 12 00 pushl 0x1251c8 10fa84: e8 77 bb ff ff call 10b600 <rtems_semaphore_obtain>
/* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
10fa89: a1 c0 51 12 00 mov 0x1251c0,%eax 10fa8e: 8b 0d 4c 11 12 00 mov 0x12114c,%ecx 10fa94: 83 c4 10 add $0x10,%esp 10fa97: 85 c9 test %ecx,%ecx
10fa99: 74 18 je 10fab3 <rtems_libio_is_file_open+0x43><== ALWAYS TAKEN
10fa9b: 31 d2 xor %edx,%edx 10fa9d: eb 04 jmp 10faa3 <rtems_libio_is_file_open+0x33>
10fa9f: 90 nop <== NOT EXECUTED
10faa0: 83 c0 40 add $0x40,%eax
if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {
10faa3: f6 40 15 01 testb $0x1,0x15(%eax)
10faa7: 74 05 je 10faae <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 ) {
10faa9: 39 58 18 cmp %ebx,0x18(%eax)
10faac: 74 1e je 10facc <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++){
10faae: 42 inc %edx 10faaf: 39 ca cmp %ecx,%edx
10fab1: 72 ed jb 10faa0 <rtems_libio_is_file_open+0x30>
10fab3: 31 db xor %ebx,%ebx
} static inline void rtems_libio_unlock( void ) { rtems_semaphore_release( rtems_libio_semaphore );
10fab5: 83 ec 0c sub $0xc,%esp 10fab8: ff 35 c8 51 12 00 pushl 0x1251c8 10fabe: e8 39 bc ff ff call 10b6fc <rtems_semaphore_release>
} rtems_libio_unlock(); return result; }
10fac3: 89 d8 mov %ebx,%eax 10fac5: 8b 5d fc mov -0x4(%ebp),%ebx 10fac8: c9 leave 10fac9: c3 ret
10faca: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
10facc: bb 01 00 00 00 mov $0x1,%ebx 10fad1: eb e2 jmp 10fab5 <rtems_libio_is_file_open+0x45>
0010fad4 <rtems_libio_is_open_files_in_fs>: */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) {
10fad4: 55 push %ebp 10fad5: 89 e5 mov %esp,%ebp 10fad7: 53 push %ebx 10fad8: 83 ec 08 sub $0x8,%esp 10fadb: 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 );
10fade: 6a 00 push $0x0 10fae0: 6a 00 push $0x0 10fae2: ff 35 c8 51 12 00 pushl 0x1251c8 10fae8: e8 13 bb ff ff call 10b600 <rtems_semaphore_obtain>
/* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
10faed: a1 c0 51 12 00 mov 0x1251c0,%eax 10faf2: 8b 0d 4c 11 12 00 mov 0x12114c,%ecx 10faf8: 83 c4 10 add $0x10,%esp 10fafb: 85 c9 test %ecx,%ecx
10fafd: 74 18 je 10fb17 <rtems_libio_is_open_files_in_fs+0x43><== ALWAYS TAKEN
10faff: 31 d2 xor %edx,%edx 10fb01: eb 04 jmp 10fb07 <rtems_libio_is_open_files_in_fs+0x33>
10fb03: 90 nop <== NOT EXECUTED
10fb04: 83 c0 40 add $0x40,%eax
if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {
10fb07: f6 40 15 01 testb $0x1,0x15(%eax)
10fb0b: 74 05 je 10fb12 <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 ) {
10fb0d: 39 58 28 cmp %ebx,0x28(%eax)
10fb10: 74 1e je 10fb30 <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++){
10fb12: 42 inc %edx 10fb13: 39 ca cmp %ecx,%edx
10fb15: 72 ed jb 10fb04 <rtems_libio_is_open_files_in_fs+0x30>
10fb17: 31 db xor %ebx,%ebx
} static inline void rtems_libio_unlock( void ) { rtems_semaphore_release( rtems_libio_semaphore );
10fb19: 83 ec 0c sub $0xc,%esp 10fb1c: ff 35 c8 51 12 00 pushl 0x1251c8 10fb22: e8 d5 bb ff ff call 10b6fc <rtems_semaphore_release>
} rtems_libio_unlock(); return result; }
10fb27: 89 d8 mov %ebx,%eax 10fb29: 8b 5d fc mov -0x4(%ebp),%ebx 10fb2c: c9 leave 10fb2d: c3 ret
10fb2e: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
10fb30: bb 01 00 00 00 mov $0x1,%ebx 10fb35: eb e2 jmp 10fb19 <rtems_libio_is_open_files_in_fs+0x45>
0012c23c <rtems_libio_set_private_env>: rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) {
12c23c: 55 push %ebp 12c23d: 89 e5 mov %esp,%ebp 12c23f: 57 push %edi 12c240: 56 push %esi 12c241: 53 push %ebx 12c242: 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);
12c245: 8d 45 e4 lea -0x1c(%ebp),%eax 12c248: 50 push %eax 12c249: 6a 00 push $0x0 12c24b: 6a 00 push $0x0 12c24d: e8 32 13 00 00 call 12d584 <rtems_task_ident>
if (sc != RTEMS_SUCCESSFUL) return sc;
12c252: 83 c4 10 add $0x10,%esp 12c255: 85 c0 test %eax,%eax
12c257: 0f 85 89 00 00 00 jne 12c2e6 <rtems_libio_set_private_env+0xaa><== ALWAYS TAKEN
/* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) {
12c25d: 8b 1d a4 84 16 00 mov 0x1684a4,%ebx 12c263: 81 fb 60 df 16 00 cmp $0x16df60,%ebx
12c269: 0f 84 81 00 00 00 je 12c2f0 <rtems_libio_set_private_env+0xb4> return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/
12c26f: be 60 df 16 00 mov $0x16df60,%esi 12c274: b9 12 00 00 00 mov $0x12,%ecx 12c279: 89 df mov %ebx,%edi 12c27b: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
rtems_current_user_env->task_id=task_id; /* mark the local values*/
12c27d: 8b 45 e4 mov -0x1c(%ebp),%eax 12c280: 89 03 mov %eax,(%ebx)
/* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC;
12c282: 8d 7b 18 lea 0x18(%ebx),%edi 12c285: 8b 35 2c df 16 00 mov 0x16df2c,%esi 12c28b: 83 c6 1c add $0x1c,%esi 12c28e: b1 05 mov $0x5,%cl 12c290: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
* code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
12c292: 83 ec 0c sub $0xc,%esp 12c295: 6a 00 push $0x0 12c297: 8d 5d d0 lea -0x30(%ebp),%ebx 12c29a: 53 push %ebx 12c29b: 6a 00 push $0x0 12c29d: 6a 01 push $0x1 12c29f: 68 c6 45 16 00 push $0x1645c6 12c2a4: e8 9f fa fd ff call 10bd48 <rtems_filesystem_evaluate_path>
rtems_filesystem_root = loc;
12c2a9: 8b 3d a4 84 16 00 mov 0x1684a4,%edi 12c2af: 83 c7 18 add $0x18,%edi 12c2b2: b9 05 00 00 00 mov $0x5,%ecx 12c2b7: 89 de mov %ebx,%esi 12c2b9: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
12c2bb: 83 c4 14 add $0x14,%esp 12c2be: 6a 00 push $0x0 12c2c0: 53 push %ebx 12c2c1: 6a 00 push $0x0 12c2c3: 6a 01 push $0x1 12c2c5: 68 c6 45 16 00 push $0x1645c6 12c2ca: e8 79 fa fd ff call 10bd48 <rtems_filesystem_evaluate_path>
rtems_filesystem_current = loc;
12c2cf: 8b 3d a4 84 16 00 mov 0x1684a4,%edi 12c2d5: 83 c7 04 add $0x4,%edi 12c2d8: b9 05 00 00 00 mov $0x5,%ecx 12c2dd: 89 de mov %ebx,%esi 12c2df: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12c2e1: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
12c2e3: 83 c4 20 add $0x20,%esp
}
12c2e6: 8d 65 f4 lea -0xc(%ebp),%esp 12c2e9: 5b pop %ebx 12c2ea: 5e pop %esi 12c2eb: 5f pop %edi 12c2ec: c9 leave 12c2ed: c3 ret
12c2ee: 66 90 xchg %ax,%ax <== NOT EXECUTED
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));
12c2f0: 83 ec 0c sub $0xc,%esp 12c2f3: 6a 48 push $0x48 12c2f5: e8 3e 00 fe ff call 10c338 <malloc> 12c2fa: 89 c3 mov %eax,%ebx
if (!tmp)
12c2fc: 83 c4 10 add $0x10,%esp 12c2ff: 85 c0 test %eax,%eax
12c301: 74 25 je 12c328 <rtems_libio_set_private_env+0xec><== ALWAYS 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);
12c303: 51 push %ecx 12c304: 68 48 c1 12 00 push $0x12c148 12c309: 68 a4 84 16 00 push $0x1684a4 12c30e: 6a 00 push $0x0 12c310: e8 53 16 00 00 call 12d968 <rtems_task_variable_add>
if (sc != RTEMS_SUCCESSFUL) {
12c315: 83 c4 10 add $0x10,%esp 12c318: 85 c0 test %eax,%eax
12c31a: 75 14 jne 12c330 <rtems_libio_set_private_env+0xf4><== ALWAYS TAKEN
* not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp;
12c31c: 89 1d a4 84 16 00 mov %ebx,0x1684a4 12c322: e9 48 ff ff ff jmp 12c26f <rtems_libio_set_private_env+0x33>
12c327: 90 nop <== NOT EXECUTED
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)
12c328: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED 12c32d: eb b7 jmp 12c2e6 <rtems_libio_set_private_env+0xaa><== NOT EXECUTED 12c32f: 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);
12c330: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c333: 53 push %ebx <== NOT EXECUTED 12c334: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED 12c337: e8 c0 fa fd ff call 10bdfc <free> <== NOT EXECUTED
return sc;
12c33c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c33f: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED 12c342: eb a2 jmp 12c2e6 <rtems_libio_set_private_env+0xaa><== NOT EXECUTED
0012c1a4 <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) {
12c1a4: 55 push %ebp <== NOT EXECUTED 12c1a5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c1a7: 53 push %ebx <== NOT EXECUTED 12c1a8: 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);
12c1ab: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 12c1ae: 50 push %eax <== NOT EXECUTED 12c1af: 6a 00 push $0x0 <== NOT EXECUTED 12c1b1: 6a 00 push $0x0 <== NOT EXECUTED 12c1b3: e8 cc 13 00 00 call 12d584 <rtems_task_ident> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
12c1b8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c1bb: 85 c0 test %eax,%eax <== NOT EXECUTED 12c1bd: 75 30 jne 12c1ef <rtems_libio_share_private_env+0x4b><== NOT EXECUTED
if (rtems_current_user_env->task_id==current_task_id) {
12c1bf: 8b 1d a4 84 16 00 mov 0x1684a4,%ebx <== NOT EXECUTED 12c1c5: 8b 03 mov (%ebx),%eax <== NOT EXECUTED 12c1c7: 3b 45 f0 cmp -0x10(%ebp),%eax <== NOT EXECUTED 12c1ca: 74 28 je 12c1f4 <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,
12c1cc: 52 push %edx <== NOT EXECUTED 12c1cd: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 12c1d0: 50 push %eax <== NOT EXECUTED 12c1d1: 68 a4 84 16 00 push $0x1684a4 <== NOT EXECUTED 12c1d6: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 12c1d9: e8 da 18 00 00 call 12dab8 <rtems_task_variable_get><== NOT EXECUTED
(void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL)
12c1de: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c1e1: 85 c0 test %eax,%eax <== NOT EXECUTED 12c1e3: 74 33 je 12c218 <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;
12c1e5: c7 05 a4 84 16 00 60 movl $0x16df60,0x1684a4 <== NOT EXECUTED
12c1ec: df 16 00 return sc; }
12c1ef: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12c1f2: c9 leave <== NOT EXECUTED 12c1f3: 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);
12c1f4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c1f7: 68 a4 84 16 00 push $0x1684a4 <== NOT EXECUTED 12c1fc: 6a 00 push $0x0 <== NOT EXECUTED 12c1fe: e8 29 18 00 00 call 12da2c <rtems_task_variable_delete><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
12c203: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c206: 85 c0 test %eax,%eax <== NOT EXECUTED 12c208: 75 e5 jne 12c1ef <rtems_libio_share_private_env+0x4b><== NOT EXECUTED
free_user_env(tmp);
12c20a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c20d: 53 push %ebx <== NOT EXECUTED 12c20e: e8 35 ff ff ff call 12c148 <free_user_env> <== NOT EXECUTED 12c213: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c216: eb b4 jmp 12c1cc <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);
12c218: 50 push %eax <== NOT EXECUTED 12c219: 68 48 c1 12 00 push $0x12c148 <== NOT EXECUTED 12c21e: 68 a4 84 16 00 push $0x1684a4 <== NOT EXECUTED 12c223: 6a 00 push $0x0 <== NOT EXECUTED 12c225: e8 3e 17 00 00 call 12d968 <rtems_task_variable_add><== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
12c22a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c22d: 85 c0 test %eax,%eax <== NOT EXECUTED 12c22f: 75 b4 jne 12c1e5 <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;
12c231: 8b 55 f4 mov -0xc(%ebp),%edx <== NOT EXECUTED 12c234: 89 15 a4 84 16 00 mov %edx,0x1684a4 <== NOT EXECUTED
/* increase the reference count */ #ifdef HAVE_USERENV_REFCNT rtems_current_user_env->refcnt++; #endif return RTEMS_SUCCESSFUL;
12c23a: eb b3 jmp 12c1ef <rtems_libio_share_private_env+0x4b><== NOT EXECUTED
0010fa30 <rtems_libio_to_fcntl_flags>: */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) {
10fa30: 55 push %ebp 10fa31: 89 e5 mov %esp,%ebp 10fa33: 8b 55 08 mov 0x8(%ebp),%edx
uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
10fa36: 89 d0 mov %edx,%eax 10fa38: 83 e0 06 and $0x6,%eax 10fa3b: 83 f8 06 cmp $0x6,%eax
10fa3e: 74 2c je 10fa6c <rtems_libio_to_fcntl_flags+0x3c><== ALWAYS TAKEN
fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {
10fa40: f6 c2 02 test $0x2,%dl
10fa43: 75 23 jne 10fa68 <rtems_libio_to_fcntl_flags+0x38><== NEVER TAKEN
10fa45: 89 d0 mov %edx,%eax <== NOT EXECUTED 10fa47: c1 e8 02 shr $0x2,%eax <== NOT EXECUTED 10fa4a: 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 ) {
10fa4d: f6 c2 01 test $0x1,%dl
10fa50: 74 03 je 10fa55 <rtems_libio_to_fcntl_flags+0x25> fcntl_flags |= O_NONBLOCK;
10fa52: 80 cc 40 or $0x40,%ah
} if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {
10fa55: f6 c6 02 test $0x2,%dh
10fa58: 74 03 je 10fa5d <rtems_libio_to_fcntl_flags+0x2d> fcntl_flags |= O_APPEND;
10fa5a: 83 c8 08 or $0x8,%eax
} if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {
10fa5d: 80 e6 04 and $0x4,%dh
10fa60: 74 03 je 10fa65 <rtems_libio_to_fcntl_flags+0x35> fcntl_flags |= O_CREAT;
10fa62: 80 cc 02 or $0x2,%ah
} return fcntl_flags; }
10fa65: c9 leave 10fa66: c3 ret
10fa67: 90 nop <== NOT EXECUTED
{ 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) {
10fa68: 31 c0 xor %eax,%eax 10fa6a: eb e1 jmp 10fa4d <rtems_libio_to_fcntl_flags+0x1d>
uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
10fa6c: b0 02 mov $0x2,%al <== NOT EXECUTED 10fa6e: eb dd jmp 10fa4d <rtems_libio_to_fcntl_flags+0x1d><== NOT EXECUTED
0010c3f8 <rtems_malloc_statistics_at_free>: * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) {
10c3f8: 55 push %ebp <== NOT EXECUTED 10c3f9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10c3fb: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED
uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
10c3fe: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 10c401: 50 push %eax <== NOT EXECUTED 10c402: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 10c405: ff 35 78 63 16 00 pushl 0x166378 <== NOT EXECUTED 10c40b: e8 00 59 00 00 call 111d10 <_Protected_heap_Get_block_size><== NOT EXECUTED 10c410: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10c413: 84 c0 test %al,%al <== NOT EXECUTED 10c415: 74 11 je 10c428 <rtems_malloc_statistics_at_free+0x30><== NOT EXECUTED
MSBUMP(lifetime_freed, size);
10c417: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED 10c41a: 31 d2 xor %edx,%edx <== NOT EXECUTED 10c41c: 01 05 24 df 16 00 add %eax,0x16df24 <== NOT EXECUTED 10c422: 11 15 28 df 16 00 adc %edx,0x16df28 <== NOT EXECUTED
} }
10c428: c9 leave <== NOT EXECUTED 10c429: c3 ret <== NOT EXECUTED
0010c42c <rtems_malloc_statistics_at_malloc>: } static void rtems_malloc_statistics_at_malloc( void *pointer ) {
10c42c: 55 push %ebp <== NOT EXECUTED 10c42d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10c42f: 83 ec 18 sub $0x18,%esp <== NOT EXECUTED 10c432: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED
uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer )
10c435: 85 c0 test %eax,%eax <== NOT EXECUTED 10c437: 74 4a je 10c483 <rtems_malloc_statistics_at_malloc+0x57><== NOT EXECUTED
static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0;
10c439: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED
rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
10c440: 52 push %edx <== NOT EXECUTED 10c441: 8d 55 f4 lea -0xc(%ebp),%edx <== NOT EXECUTED 10c444: 52 push %edx <== NOT EXECUTED 10c445: 50 push %eax <== NOT EXECUTED 10c446: ff 35 78 63 16 00 pushl 0x166378 <== NOT EXECUTED 10c44c: e8 bf 58 00 00 call 111d10 <_Protected_heap_Get_block_size><== NOT EXECUTED
MSBUMP(lifetime_allocated, actual_size);
10c451: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED 10c454: 31 d2 xor %edx,%edx <== NOT EXECUTED 10c456: 03 05 1c df 16 00 add 0x16df1c,%eax <== NOT EXECUTED 10c45c: 13 15 20 df 16 00 adc 0x16df20,%edx <== NOT EXECUTED 10c462: a3 1c df 16 00 mov %eax,0x16df1c <== NOT EXECUTED 10c467: 89 15 20 df 16 00 mov %edx,0x16df20 <== NOT EXECUTED
current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
10c46d: 2b 05 24 df 16 00 sub 0x16df24,%eax <== NOT EXECUTED
if (current_depth > s->max_depth)
10c473: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10c476: 3b 05 18 df 16 00 cmp 0x16df18,%eax <== NOT EXECUTED 10c47c: 76 05 jbe 10c483 <rtems_malloc_statistics_at_malloc+0x57><== NOT EXECUTED
s->max_depth = current_depth;
10c47e: a3 18 df 16 00 mov %eax,0x16df18 <== NOT EXECUTED
}
10c483: c9 leave <== NOT EXECUTED 10c484: c3 ret <== NOT EXECUTED
0010c488 <rtems_malloc_statistics_initialize>: #include <sys/reent.h> #include <stdlib.h> static void rtems_malloc_statistics_initialize( void ) {
10c488: 55 push %ebp <== NOT EXECUTED 10c489: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10c48b: 57 push %edi <== NOT EXECUTED
/* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics));
10c48c: ba 00 df 16 00 mov $0x16df00,%edx <== NOT EXECUTED 10c491: b9 2c 00 00 00 mov $0x2c,%ecx <== NOT EXECUTED 10c496: 31 c0 xor %eax,%eax <== NOT EXECUTED 10c498: 89 d7 mov %edx,%edi <== NOT EXECUTED 10c49a: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
}
10c49c: 5f pop %edi <== NOT EXECUTED 10c49d: c9 leave <== NOT EXECUTED 10c49e: c3 ret <== NOT EXECUTED
0011470c <rtems_memalign>: int rtems_memalign( void **pointer, size_t alignment, size_t size ) {
11470c: 55 push %ebp 11470d: 89 e5 mov %esp,%ebp 11470f: 53 push %ebx 114710: 83 ec 14 sub $0x14,%esp 114713: 8b 5d 08 mov 0x8(%ebp),%ebx
void *return_this; /* * Parameter error checks */ if ( !pointer )
114716: 85 db test %ebx,%ebx
114718: 74 5b je 114775 <rtems_memalign+0x69> return EINVAL; *pointer = NULL;
11471a: 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()) &&
114720: 83 3d 60 b8 12 00 03 cmpl $0x3,0x12b860
114727: 74 43 je 11476c <rtems_memalign+0x60> <== NEVER TAKEN
/* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process();
114729: e8 e2 4e ff ff call 109610 <malloc_deferred_frees_process>
uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 );
11472e: 6a 00 push $0x0 114730: ff 75 0c pushl 0xc(%ebp) 114733: ff 75 10 pushl 0x10(%ebp) 114736: ff 35 98 73 12 00 pushl 0x127398 11473c: e8 9b a0 ff ff call 10e7dc <_Protected_heap_Allocate_aligned_with_boundary>
return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this )
114741: 83 c4 10 add $0x10,%esp 114744: 85 c0 test %eax,%eax
114746: 74 38 je 114780 <rtems_memalign+0x74> return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers )
114748: 8b 15 48 98 12 00 mov 0x129848,%edx 11474e: 85 d2 test %edx,%edx
114750: 74 10 je 114762 <rtems_memalign+0x56> <== NEVER TAKEN
(*rtems_malloc_statistics_helpers->at_malloc)(pointer);
114752: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 114755: 53 push %ebx <== NOT EXECUTED 114756: 89 45 f4 mov %eax,-0xc(%ebp) <== NOT EXECUTED 114759: ff 52 04 call *0x4(%edx) <== NOT EXECUTED 11475c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11475f: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED
*/ if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this;
114762: 89 03 mov %eax,(%ebx) 114764: 31 c0 xor %eax,%eax
return 0; }
114766: 8b 5d fc mov -0x4(%ebp),%ebx 114769: c9 leave 11476a: c3 ret
11476b: 90 nop <== NOT EXECUTED
*pointer = NULL; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) &&
11476c: e8 47 4e ff ff call 1095b8 <malloc_is_system_state_OK> 114771: 84 c0 test %al,%al
114773: 75 b4 jne 114729 <rtems_memalign+0x1d> <== NEVER TAKEN
if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0;
114775: b8 16 00 00 00 mov $0x16,%eax
}
11477a: 8b 5d fc mov -0x4(%ebp),%ebx 11477d: c9 leave 11477e: c3 ret
11477f: 90 nop <== NOT EXECUTED
return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this )
114780: b0 0c mov $0xc,%al 114782: eb e2 jmp 114766 <rtems_memalign+0x5a>
001165d0 <rtems_message_queue_broadcast>: rtems_id id, const void *buffer, size_t size, uint32_t *count ) {
1165d0: 55 push %ebp 1165d1: 89 e5 mov %esp,%ebp 1165d3: 57 push %edi 1165d4: 56 push %esi 1165d5: 53 push %ebx 1165d6: 83 ec 1c sub $0x1c,%esp 1165d9: 8b 7d 08 mov 0x8(%ebp),%edi 1165dc: 8b 5d 0c mov 0xc(%ebp),%ebx 1165df: 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 )
1165e2: 85 db test %ebx,%ebx
1165e4: 74 62 je 116648 <rtems_message_queue_broadcast+0x78> return RTEMS_INVALID_ADDRESS; if ( !count )
1165e6: 85 f6 test %esi,%esi
1165e8: 74 5e je 116648 <rtems_message_queue_broadcast+0x78> RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *)
1165ea: 51 push %ecx 1165eb: 8d 45 e4 lea -0x1c(%ebp),%eax 1165ee: 50 push %eax 1165ef: 57 push %edi 1165f0: 68 40 0a 14 00 push $0x140a40 1165f5: e8 ea 4b 00 00 call 11b1e4 <_Objects_Get>
return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) {
1165fa: 83 c4 10 add $0x10,%esp 1165fd: 8b 55 e4 mov -0x1c(%ebp),%edx 116600: 85 d2 test %edx,%edx
116602: 74 10 je 116614 <rtems_message_queue_broadcast+0x44>
116604: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116609: 8d 65 f4 lea -0xc(%ebp),%esp 11660c: 5b pop %ebx 11660d: 5e pop %esi 11660e: 5f pop %edi 11660f: c9 leave 116610: c3 ret
116611: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: core_status = _CORE_message_queue_Broadcast(
116614: 83 ec 08 sub $0x8,%esp 116617: 56 push %esi 116618: 6a 00 push $0x0 11661a: 57 push %edi 11661b: ff 75 10 pushl 0x10(%ebp) 11661e: 53 push %ebx 11661f: 83 c0 14 add $0x14,%eax 116622: 50 push %eax 116623: e8 88 34 00 00 call 119ab0 <_CORE_message_queue_Broadcast> 116628: 89 c3 mov %eax,%ebx
NULL, #endif count ); _Thread_Enable_dispatch();
11662a: 83 c4 20 add $0x20,%esp 11662d: e8 62 54 00 00 call 11ba94 <_Thread_Enable_dispatch>
return _Message_queue_Translate_core_message_queue_return_code( core_status );
116632: 83 ec 0c sub $0xc,%esp 116635: 53 push %ebx 116636: e8 69 03 00 00 call 1169a4 <_Message_queue_Translate_core_message_queue_return_code>
#endif count ); _Thread_Enable_dispatch(); return
11663b: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
11663e: 8d 65 f4 lea -0xc(%ebp),%esp 116641: 5b pop %ebx 116642: 5e pop %esi 116643: 5f pop %edi 116644: c9 leave 116645: c3 ret
116646: 66 90 xchg %ax,%ax <== NOT EXECUTED
#endif count ); _Thread_Enable_dispatch(); return
116648: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
11664d: 8d 65 f4 lea -0xc(%ebp),%esp 116650: 5b pop %ebx 116651: 5e pop %esi 116652: 5f pop %edi 116653: c9 leave 116654: c3 ret
00113a88 <rtems_message_queue_create>: uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) {
113a88: 55 push %ebp 113a89: 89 e5 mov %esp,%ebp 113a8b: 57 push %edi 113a8c: 56 push %esi 113a8d: 53 push %ebx 113a8e: 83 ec 2c sub $0x2c,%esp 113a91: 8b 5d 08 mov 0x8(%ebp),%ebx 113a94: 8b 75 0c mov 0xc(%ebp),%esi 113a97: 8b 4d 10 mov 0x10(%ebp),%ecx 113a9a: 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 ) )
113a9d: 85 db test %ebx,%ebx
113a9f: 74 2f je 113ad0 <rtems_message_queue_create+0x48> return RTEMS_INVALID_NAME; if ( !id )
113aa1: 85 ff test %edi,%edi
113aa3: 0f 84 a3 00 00 00 je 113b4c <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 )
113aa9: 85 f6 test %esi,%esi
113aab: 74 13 je 113ac0 <rtems_message_queue_create+0x38> return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 )
113aad: 85 c9 test %ecx,%ecx
113aaf: 75 2f jne 113ae0 <rtems_message_queue_create+0x58>
113ab1: b8 08 00 00 00 mov $0x8,%eax
); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
113ab6: 8d 65 f4 lea -0xc(%ebp),%esp 113ab9: 5b pop %ebx 113aba: 5e pop %esi 113abb: 5f pop %edi 113abc: c9 leave 113abd: c3 ret
113abe: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 )
113ac0: b8 0a 00 00 00 mov $0xa,%eax
); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
113ac5: 8d 65 f4 lea -0xc(%ebp),%esp 113ac8: 5b pop %ebx 113ac9: 5e pop %esi 113aca: 5f pop %edi 113acb: c9 leave 113acc: c3 ret
113acd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
CORE_message_queue_Attributes the_msgq_attributes; #if defined(RTEMS_MULTIPROCESSING) bool is_global; #endif if ( !rtems_is_name_valid( name ) )
113ad0: b8 03 00 00 00 mov $0x3,%eax
); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
113ad5: 8d 65 f4 lea -0xc(%ebp),%esp 113ad8: 5b pop %ebx 113ad9: 5e pop %esi 113ada: 5f pop %edi 113adb: c9 leave 113adc: c3 ret
113add: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1;
113ae0: a1 98 fa 12 00 mov 0x12fa98,%eax 113ae5: 40 inc %eax 113ae6: a3 98 fa 12 00 mov %eax,0x12fa98
#endif #endif _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate();
113aeb: 89 4d d4 mov %ecx,-0x2c(%ebp) 113aee: e8 8d 50 00 00 call 118b80 <_Message_queue_Allocate> 113af3: 89 c2 mov %eax,%edx
if ( !the_message_queue ) {
113af5: 85 c0 test %eax,%eax 113af7: 8b 4d d4 mov -0x2c(%ebp),%ecx
113afa: 74 7c je 113b78 <rtems_message_queue_create+0xf0> _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_message_queue->attribute_set = attribute_set;
113afc: 8b 45 14 mov 0x14(%ebp),%eax 113aff: 89 42 10 mov %eax,0x10(%edx)
if (_Attributes_Is_priority( attribute_set ) ) the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY;
113b02: a8 04 test $0x4,%al 113b04: 0f 95 c0 setne %al 113b07: 0f b6 c0 movzbl %al,%eax 113b0a: 89 45 e4 mov %eax,-0x1c(%ebp)
else the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; if ( ! _CORE_message_queue_Initialize(
113b0d: 51 push %ecx 113b0e: 56 push %esi 113b0f: 8d 45 e4 lea -0x1c(%ebp),%eax 113b12: 50 push %eax 113b13: 8d 42 14 lea 0x14(%edx),%eax 113b16: 50 push %eax 113b17: 89 55 d4 mov %edx,-0x2c(%ebp) 113b1a: e8 a5 10 00 00 call 114bc4 <_CORE_message_queue_Initialize> 113b1f: 83 c4 10 add $0x10,%esp 113b22: 84 c0 test %al,%al 113b24: 8b 55 d4 mov -0x2c(%ebp),%edx
113b27: 75 2f jne 113b58 <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 );
113b29: 83 ec 08 sub $0x8,%esp 113b2c: 52 push %edx 113b2d: 68 60 fd 12 00 push $0x12fd60 113b32: e8 e1 1d 00 00 call 115918 <_Objects_Free>
_Objects_MP_Close( &_Message_queue_Information, the_message_queue->Object.id); #endif _Message_queue_Free( the_message_queue ); _Thread_Enable_dispatch();
113b37: e8 d4 27 00 00 call 116310 <_Thread_Enable_dispatch> 113b3c: b8 0d 00 00 00 mov $0xd,%eax
return RTEMS_UNSATISFIED;
113b41: 83 c4 10 add $0x10,%esp 113b44: e9 6d ff ff ff jmp 113ab6 <rtems_message_queue_create+0x2e>
113b49: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
#endif if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id )
113b4c: b8 09 00 00 00 mov $0x9,%eax 113b51: e9 60 ff ff ff jmp 113ab6 <rtems_message_queue_create+0x2e>
113b56: 66 90 xchg %ax,%ax <== NOT EXECUTED
#if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object;
113b58: 8b 42 08 mov 0x8(%edx),%eax 113b5b: 0f b7 f0 movzwl %ax,%esi 113b5e: 8b 0d 7c fd 12 00 mov 0x12fd7c,%ecx 113b64: 89 14 b1 mov %edx,(%ecx,%esi,4)
information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name;
113b67: 89 5a 0c mov %ebx,0xc(%edx)
&_Message_queue_Information, &the_message_queue->Object, (Objects_Name) name ); *id = the_message_queue->Object.id;
113b6a: 89 07 mov %eax,(%edi)
name, 0 ); #endif _Thread_Enable_dispatch();
113b6c: e8 9f 27 00 00 call 116310 <_Thread_Enable_dispatch> 113b71: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
113b73: e9 3e ff ff ff jmp 113ab6 <rtems_message_queue_create+0x2e>
_Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); if ( !the_message_queue ) { _Thread_Enable_dispatch();
113b78: e8 93 27 00 00 call 116310 <_Thread_Enable_dispatch> 113b7d: b8 05 00 00 00 mov $0x5,%eax
return RTEMS_TOO_MANY;
113b82: e9 2f ff ff ff jmp 113ab6 <rtems_message_queue_create+0x2e>
0011722c <rtems_message_queue_delete>: */ rtems_status_code rtems_message_queue_delete( rtems_id id ) {
11722c: 55 push %ebp 11722d: 89 e5 mov %esp,%ebp 11722f: 53 push %ebx 117230: 83 ec 18 sub $0x18,%esp 117233: 8d 45 f4 lea -0xc(%ebp),%eax 117236: 50 push %eax 117237: ff 75 08 pushl 0x8(%ebp) 11723a: 68 00 3e 13 00 push $0x133e00 11723f: e8 9c a6 ff ff call 1118e0 <_Objects_Get> 117244: 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 ) {
117246: 83 c4 10 add $0x10,%esp 117249: 8b 4d f4 mov -0xc(%ebp),%ecx 11724c: 85 c9 test %ecx,%ecx
11724e: 75 3c jne 11728c <rtems_message_queue_delete+0x60> case OBJECTS_LOCAL: _Objects_Close( &_Message_queue_Information,
117250: 83 ec 08 sub $0x8,%esp 117253: 50 push %eax 117254: 68 00 3e 13 00 push $0x133e00 117259: e8 4e a2 ff ff call 1114ac <_Objects_Close>
&the_message_queue->Object ); _CORE_message_queue_Close(
11725e: 83 c4 0c add $0xc,%esp 117261: 6a 05 push $0x5 117263: 6a 00 push $0x0 117265: 8d 43 14 lea 0x14(%ebx),%eax 117268: 50 push %eax 117269: e8 0e 05 00 00 call 11777c <_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 );
11726e: 58 pop %eax 11726f: 5a pop %edx 117270: 53 push %ebx 117271: 68 00 3e 13 00 push $0x133e00 117276: e8 35 a5 ff ff call 1117b0 <_Objects_Free>
0, /* Not used */ 0 ); } #endif _Thread_Enable_dispatch();
11727b: e8 10 af ff ff call 112190 <_Thread_Enable_dispatch> 117280: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
117282: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
117285: 8b 5d fc mov -0x4(%ebp),%ebx 117288: c9 leave 117289: c3 ret
11728a: 66 90 xchg %ax,%ax <== NOT EXECUTED
{ register Message_queue_Control *the_message_queue; Objects_Locations location; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) {
11728c: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
117291: 8b 5d fc mov -0x4(%ebp),%ebx 117294: c9 leave 117295: c3 ret
001167c4 <rtems_message_queue_flush>: rtems_status_code rtems_message_queue_flush( rtems_id id, uint32_t *count ) {
1167c4: 55 push %ebp 1167c5: 89 e5 mov %esp,%ebp 1167c7: 53 push %ebx 1167c8: 83 ec 14 sub $0x14,%esp 1167cb: 8b 5d 0c mov 0xc(%ebp),%ebx
register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count )
1167ce: 85 db test %ebx,%ebx
1167d0: 74 46 je 116818 <rtems_message_queue_flush+0x54> RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *)
1167d2: 51 push %ecx 1167d3: 8d 45 f4 lea -0xc(%ebp),%eax 1167d6: 50 push %eax 1167d7: ff 75 08 pushl 0x8(%ebp) 1167da: 68 40 0a 14 00 push $0x140a40 1167df: e8 00 4a 00 00 call 11b1e4 <_Objects_Get>
return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) {
1167e4: 83 c4 10 add $0x10,%esp 1167e7: 8b 55 f4 mov -0xc(%ebp),%edx 1167ea: 85 d2 test %edx,%edx
1167ec: 74 0a je 1167f8 <rtems_message_queue_flush+0x34>
1167ee: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
1167f3: 8b 5d fc mov -0x4(%ebp),%ebx 1167f6: c9 leave 1167f7: 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 );
1167f8: 83 ec 0c sub $0xc,%esp 1167fb: 83 c0 14 add $0x14,%eax 1167fe: 50 push %eax 1167ff: e8 6c 33 00 00 call 119b70 <_CORE_message_queue_Flush> 116804: 89 03 mov %eax,(%ebx)
_Thread_Enable_dispatch();
116806: e8 89 52 00 00 call 11ba94 <_Thread_Enable_dispatch> 11680b: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
11680d: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116810: 8b 5d fc mov -0x4(%ebp),%ebx 116813: c9 leave 116814: c3 ret
116815: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
) { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count )
116818: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
11681d: 8b 5d fc mov -0x4(%ebp),%ebx 116820: c9 leave 116821: c3 ret
00116824 <rtems_message_queue_get_number_pending>: rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) {
116824: 55 push %ebp 116825: 89 e5 mov %esp,%ebp 116827: 53 push %ebx 116828: 83 ec 14 sub $0x14,%esp 11682b: 8b 5d 0c mov 0xc(%ebp),%ebx
register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count )
11682e: 85 db test %ebx,%ebx
116830: 74 3a je 11686c <rtems_message_queue_get_number_pending+0x48>
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 40 0a 14 00 push $0x140a40 11683f: e8 a0 49 00 00 call 11b1e4 <_Objects_Get>
return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_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 0a je 116858 <rtems_message_queue_get_number_pending+0x34>
11684e: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116853: 8b 5d fc mov -0x4(%ebp),%ebx 116856: c9 leave 116857: 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;
116858: 8b 40 5c mov 0x5c(%eax),%eax 11685b: 89 03 mov %eax,(%ebx)
_Thread_Enable_dispatch();
11685d: e8 32 52 00 00 call 11ba94 <_Thread_Enable_dispatch> 116862: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116864: 8b 5d fc mov -0x4(%ebp),%ebx 116867: c9 leave 116868: c3 ret
116869: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
) { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count )
11686c: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116871: 8b 5d fc mov -0x4(%ebp),%ebx 116874: c9 leave 116875: c3 ret
00113bac <rtems_message_queue_receive>: void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) {
113bac: 55 push %ebp 113bad: 89 e5 mov %esp,%ebp 113baf: 56 push %esi 113bb0: 53 push %ebx 113bb1: 83 ec 10 sub $0x10,%esp 113bb4: 8b 5d 0c mov 0xc(%ebp),%ebx 113bb7: 8b 75 10 mov 0x10(%ebp),%esi
register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer )
113bba: 85 db test %ebx,%ebx
113bbc: 74 6e je 113c2c <rtems_message_queue_receive+0x80> return RTEMS_INVALID_ADDRESS; if ( !size )
113bbe: 85 f6 test %esi,%esi
113bc0: 74 6a je 113c2c <rtems_message_queue_receive+0x80> RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *)
113bc2: 51 push %ecx 113bc3: 8d 45 f4 lea -0xc(%ebp),%eax 113bc6: 50 push %eax 113bc7: ff 75 08 pushl 0x8(%ebp) 113bca: 68 60 fd 12 00 push $0x12fd60 113bcf: e8 74 1e 00 00 call 115a48 <_Objects_Get>
return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) {
113bd4: 83 c4 10 add $0x10,%esp 113bd7: 8b 55 f4 mov -0xc(%ebp),%edx 113bda: 85 d2 test %edx,%edx
113bdc: 75 42 jne 113c20 <rtems_message_queue_receive+0x74> if ( _Options_Is_no_wait( option_set ) ) wait = false; else wait = true; _CORE_message_queue_Seize(
113bde: 83 ec 08 sub $0x8,%esp 113be1: ff 75 18 pushl 0x18(%ebp) 113be4: 8b 55 14 mov 0x14(%ebp),%edx 113be7: 83 e2 01 and $0x1,%edx 113bea: 83 f2 01 xor $0x1,%edx 113bed: 52 push %edx 113bee: 56 push %esi 113bef: 53 push %ebx 113bf0: ff 70 08 pushl 0x8(%eax) 113bf3: 83 c0 14 add $0x14,%eax 113bf6: 50 push %eax 113bf7: e8 78 10 00 00 call 114c74 <_CORE_message_queue_Seize>
buffer, size, wait, timeout ); _Thread_Enable_dispatch();
113bfc: 83 c4 20 add $0x20,%esp 113bff: e8 0c 27 00 00 call 116310 <_Thread_Enable_dispatch>
return _Message_queue_Translate_core_message_queue_return_code(
113c04: 83 ec 0c sub $0xc,%esp 113c07: a1 58 fb 12 00 mov 0x12fb58,%eax 113c0c: ff 70 34 pushl 0x34(%eax) 113c0f: e8 a0 00 00 00 call 113cb4 <_Message_queue_Translate_core_message_queue_return_code> 113c14: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
113c17: 8d 65 f8 lea -0x8(%ebp),%esp 113c1a: 5b pop %ebx 113c1b: 5e pop %esi 113c1c: c9 leave 113c1d: c3 ret
113c1e: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( !size ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) {
113c20: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
113c25: 8d 65 f8 lea -0x8(%ebp),%esp 113c28: 5b pop %ebx 113c29: 5e pop %esi 113c2a: c9 leave 113c2b: c3 ret
size, wait, timeout ); _Thread_Enable_dispatch(); return _Message_queue_Translate_core_message_queue_return_code(
113c2c: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
113c31: 8d 65 f8 lea -0x8(%ebp),%esp 113c34: 5b pop %ebx 113c35: 5e pop %esi 113c36: c9 leave 113c37: c3 ret
0010b2fc <rtems_message_queue_send>: rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) {
10b2fc: 55 push %ebp 10b2fd: 89 e5 mov %esp,%ebp 10b2ff: 56 push %esi 10b300: 53 push %ebx 10b301: 83 ec 10 sub $0x10,%esp 10b304: 8b 75 08 mov 0x8(%ebp),%esi 10b307: 8b 5d 0c mov 0xc(%ebp),%ebx
register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer )
10b30a: 85 db test %ebx,%ebx
10b30c: 74 5e je 10b36c <rtems_message_queue_send+0x70> RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *)
10b30e: 51 push %ecx 10b30f: 8d 45 f4 lea -0xc(%ebp),%eax 10b312: 50 push %eax 10b313: 56 push %esi 10b314: 68 20 56 12 00 push $0x125620 10b319: e8 f2 18 00 00 call 10cc10 <_Objects_Get>
return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) {
10b31e: 83 c4 10 add $0x10,%esp 10b321: 8b 55 f4 mov -0xc(%ebp),%edx 10b324: 85 d2 test %edx,%edx
10b326: 74 0c je 10b334 <rtems_message_queue_send+0x38>
10b328: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10b32d: 8d 65 f8 lea -0x8(%ebp),%esp 10b330: 5b pop %ebx 10b331: 5e pop %esi 10b332: c9 leave 10b333: c3 ret
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit(
10b334: 6a 00 push $0x0 10b336: 6a 00 push $0x0 10b338: 68 ff ff ff 7f push $0x7fffffff 10b33d: 6a 00 push $0x0 10b33f: 56 push %esi 10b340: ff 75 10 pushl 0x10(%ebp) 10b343: 53 push %ebx 10b344: 83 c0 14 add $0x14,%eax 10b347: 50 push %eax 10b348: e8 c7 0b 00 00 call 10bf14 <_CORE_message_queue_Submit> 10b34d: 89 c3 mov %eax,%ebx
MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch();
10b34f: 83 c4 20 add $0x20,%esp 10b352: e8 01 21 00 00 call 10d458 <_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);
10b357: 83 ec 0c sub $0xc,%esp 10b35a: 53 push %ebx 10b35b: e8 18 00 00 00 call 10b378 <_Message_queue_Translate_core_message_queue_return_code> 10b360: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10b363: 8d 65 f8 lea -0x8(%ebp),%esp 10b366: 5b pop %ebx 10b367: 5e pop %esi 10b368: c9 leave 10b369: c3 ret
10b36a: 66 90 xchg %ax,%ax <== NOT EXECUTED
{ register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer )
10b36c: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10b371: 8d 65 f8 lea -0x8(%ebp),%esp 10b374: 5b pop %ebx 10b375: 5e pop %esi 10b376: c9 leave 10b377: c3 ret
001169b4 <rtems_message_queue_urgent>: rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) {
1169b4: 55 push %ebp 1169b5: 89 e5 mov %esp,%ebp 1169b7: 56 push %esi 1169b8: 53 push %ebx 1169b9: 83 ec 10 sub $0x10,%esp 1169bc: 8b 75 08 mov 0x8(%ebp),%esi 1169bf: 8b 5d 0c mov 0xc(%ebp),%ebx
register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer )
1169c2: 85 db test %ebx,%ebx
1169c4: 74 5e je 116a24 <rtems_message_queue_urgent+0x70>
1169c6: 51 push %ecx 1169c7: 8d 45 f4 lea -0xc(%ebp),%eax 1169ca: 50 push %eax 1169cb: 56 push %esi 1169cc: 68 40 0a 14 00 push $0x140a40 1169d1: e8 0e 48 00 00 call 11b1e4 <_Objects_Get>
return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) {
1169d6: 83 c4 10 add $0x10,%esp 1169d9: 8b 55 f4 mov -0xc(%ebp),%edx 1169dc: 85 d2 test %edx,%edx
1169de: 74 0c je 1169ec <rtems_message_queue_urgent+0x38>
1169e0: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
1169e5: 8d 65 f8 lea -0x8(%ebp),%esp 1169e8: 5b pop %ebx 1169e9: 5e pop %esi 1169ea: c9 leave 1169eb: c3 ret
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit(
1169ec: 6a 00 push $0x0 1169ee: 6a 00 push $0x0 1169f0: 68 00 00 00 80 push $0x80000000 1169f5: 6a 00 push $0x0 1169f7: 56 push %esi 1169f8: ff 75 10 pushl 0x10(%ebp) 1169fb: 53 push %ebx 1169fc: 83 c0 14 add $0x14,%eax 1169ff: 50 push %eax 116a00: e8 5b 33 00 00 call 119d60 <_CORE_message_queue_Submit> 116a05: 89 c3 mov %eax,%ebx
id, MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch();
116a07: 83 c4 20 add $0x20,%esp 116a0a: e8 85 50 00 00 call 11ba94 <_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);
116a0f: 83 ec 0c sub $0xc,%esp 116a12: 53 push %ebx 116a13: e8 8c ff ff ff call 1169a4 <_Message_queue_Translate_core_message_queue_return_code> 116a18: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116a1b: 8d 65 f8 lea -0x8(%ebp),%esp 116a1e: 5b pop %ebx 116a1f: 5e pop %esi 116a20: c9 leave 116a21: c3 ret
116a22: 66 90 xchg %ax,%ax <== NOT EXECUTED
{ register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer )
116a24: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116a29: 8d 65 f8 lea -0x8(%ebp),%esp 116a2c: 5b pop %ebx 116a2d: 5e pop %esi 116a2e: c9 leave 116a2f: c3 ret
0010cd8c <rtems_object_get_api_class_name>: const char *rtems_object_get_api_class_name( int the_api, int the_class ) {
10cd8c: 55 push %ebp 10cd8d: 89 e5 mov %esp,%ebp 10cd8f: 83 ec 08 sub $0x8,%esp 10cd92: 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 )
10cd95: 83 f8 01 cmp $0x1,%eax
10cd98: 74 2a je 10cdc4 <rtems_object_get_api_class_name+0x38> api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API )
10cd9a: 83 f8 02 cmp $0x2,%eax
10cd9d: 74 09 je 10cda8 <rtems_object_get_api_class_name+0x1c>
10cd9f: b8 17 2e 12 00 mov $0x122e17,%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"; }
10cda4: c9 leave 10cda5: c3 ret
10cda6: 66 90 xchg %ax,%ax <== NOT EXECUTED
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 )
10cda8: b8 60 70 12 00 mov $0x127060,%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 );
10cdad: 83 ec 08 sub $0x8,%esp 10cdb0: ff 75 0c pushl 0xc(%ebp) 10cdb3: 50 push %eax 10cdb4: e8 eb 48 00 00 call 1116a4 <rtems_assoc_ptr_by_local>
if ( class_assoc )
10cdb9: 83 c4 10 add $0x10,%esp 10cdbc: 85 c0 test %eax,%eax
10cdbe: 74 0c je 10cdcc <rtems_object_get_api_class_name+0x40> return class_assoc->name;
10cdc0: 8b 00 mov (%eax),%eax
return "BAD CLASS"; }
10cdc2: c9 leave 10cdc3: c3 ret
) { const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API )
10cdc4: b8 40 70 12 00 mov $0x127040,%eax 10cdc9: eb e2 jmp 10cdad <rtems_object_get_api_class_name+0x21>
10cdcb: 90 nop <== NOT EXECUTED
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 )
10cdcc: b8 1f 2e 12 00 mov $0x122e1f,%eax
return class_assoc->name; return "BAD CLASS"; }
10cdd1: c9 leave 10cdd2: c3 ret
0010cdd4 <rtems_object_get_api_name>: }; const char *rtems_object_get_api_name( int api ) {
10cdd4: 55 push %ebp 10cdd5: 89 e5 mov %esp,%ebp 10cdd7: 83 ec 10 sub $0x10,%esp
const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api );
10cdda: ff 75 08 pushl 0x8(%ebp) 10cddd: 68 e0 70 12 00 push $0x1270e0 10cde2: e8 bd 48 00 00 call 1116a4 <rtems_assoc_ptr_by_local>
if ( api_assoc )
10cde7: 83 c4 10 add $0x10,%esp 10cdea: 85 c0 test %eax,%eax
10cdec: 74 06 je 10cdf4 <rtems_object_get_api_name+0x20> return api_assoc->name;
10cdee: 8b 00 mov (%eax),%eax
return "BAD CLASS"; }
10cdf0: c9 leave 10cdf1: c3 ret
10cdf2: 66 90 xchg %ax,%ax <== NOT EXECUTED
) { const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); if ( api_assoc )
10cdf4: b8 1f 2e 12 00 mov $0x122e1f,%eax
return api_assoc->name; return "BAD CLASS"; }
10cdf9: c9 leave 10cdfa: c3 ret
0010ce3c <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 ) {
10ce3c: 55 push %ebp 10ce3d: 89 e5 mov %esp,%ebp 10ce3f: 57 push %edi 10ce40: 56 push %esi 10ce41: 53 push %ebx 10ce42: 83 ec 0c sub $0xc,%esp 10ce45: 8b 5d 10 mov 0x10(%ebp),%ebx
int i; /* * Validate parameters and look up information structure. */ if ( !info )
10ce48: 85 db test %ebx,%ebx
10ce4a: 74 5c je 10cea8 <rtems_object_get_class_information+0x6c> return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class );
10ce4c: 83 ec 08 sub $0x8,%esp 10ce4f: ff 75 0c pushl 0xc(%ebp) 10ce52: ff 75 08 pushl 0x8(%ebp) 10ce55: e8 d2 19 00 00 call 10e82c <_Objects_Get_information>
if ( !obj_info )
10ce5a: 83 c4 10 add $0x10,%esp 10ce5d: 85 c0 test %eax,%eax
10ce5f: 74 57 je 10ceb8 <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;
10ce61: 8b 50 08 mov 0x8(%eax),%edx 10ce64: 89 13 mov %edx,(%ebx)
info->maximum_id = obj_info->maximum_id;
10ce66: 8b 50 0c mov 0xc(%eax),%edx 10ce69: 89 53 04 mov %edx,0x4(%ebx)
info->auto_extend = obj_info->auto_extend;
10ce6c: 8a 50 12 mov 0x12(%eax),%dl 10ce6f: 88 53 0c mov %dl,0xc(%ebx)
info->maximum = obj_info->maximum;
10ce72: 0f b7 70 10 movzwl 0x10(%eax),%esi 10ce76: 89 73 08 mov %esi,0x8(%ebx)
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
10ce79: 85 f6 test %esi,%esi
10ce7b: 74 3f je 10cebc <rtems_object_get_class_information+0x80><== ALWAYS TAKEN
10ce7d: 8b 78 1c mov 0x1c(%eax),%edi 10ce80: b9 01 00 00 00 mov $0x1,%ecx 10ce85: 31 d2 xor %edx,%edx 10ce87: b8 01 00 00 00 mov $0x1,%eax
if ( !obj_info->local_table[i] ) unallocated++;
10ce8c: 83 3c 8f 01 cmpl $0x1,(%edi,%ecx,4) 10ce90: 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++ )
10ce93: 40 inc %eax 10ce94: 89 c1 mov %eax,%ecx 10ce96: 39 c6 cmp %eax,%esi
10ce98: 73 f2 jae 10ce8c <rtems_object_get_class_information+0x50> if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated;
10ce9a: 89 53 10 mov %edx,0x10(%ebx) 10ce9d: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL; }
10ce9f: 8d 65 f4 lea -0xc(%ebp),%esp 10cea2: 5b pop %ebx 10cea3: 5e pop %esi 10cea4: 5f pop %edi 10cea5: c9 leave 10cea6: c3 ret
10cea7: 90 nop <== NOT EXECUTED
int i; /* * Validate parameters and look up information structure. */ if ( !info )
10cea8: b8 09 00 00 00 mov $0x9,%eax
unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; }
10cead: 8d 65 f4 lea -0xc(%ebp),%esp 10ceb0: 5b pop %ebx 10ceb1: 5e pop %esi 10ceb2: 5f pop %edi 10ceb3: c9 leave 10ceb4: c3 ret
10ceb5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/ if ( !info ) return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); if ( !obj_info )
10ceb8: b0 0a mov $0xa,%al 10ceba: eb e3 jmp 10ce9f <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++ )
10cebc: 31 d2 xor %edx,%edx <== NOT EXECUTED 10cebe: eb da jmp 10ce9a <rtems_object_get_class_information+0x5e><== NOT EXECUTED
0010fd10 <rtems_object_get_classic_name>: rtems_status_code rtems_object_get_classic_name( rtems_id id, rtems_name *name ) {
10fd10: 55 push %ebp 10fd11: 89 e5 mov %esp,%ebp 10fd13: 53 push %ebx 10fd14: 83 ec 14 sub $0x14,%esp 10fd17: 8b 5d 0c mov 0xc(%ebp),%ebx
Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name )
10fd1a: 85 db test %ebx,%ebx
10fd1c: 74 26 je 10fd44 <rtems_object_get_classic_name+0x34> return RTEMS_INVALID_ADDRESS; status = _Objects_Id_to_name( id, &name_u );
10fd1e: 83 ec 08 sub $0x8,%esp 10fd21: 8d 45 f4 lea -0xc(%ebp),%eax 10fd24: 50 push %eax 10fd25: ff 75 08 pushl 0x8(%ebp) 10fd28: e8 1b 1c 00 00 call 111948 <_Objects_Id_to_name>
*name = name_u.name_u32;
10fd2d: 8b 55 f4 mov -0xc(%ebp),%edx 10fd30: 89 13 mov %edx,(%ebx)
return _Status_Object_name_errors_to_status[ status ];
10fd32: 8b 04 85 cc ac 12 00 mov 0x12accc(,%eax,4),%eax 10fd39: 83 c4 10 add $0x10,%esp
}
10fd3c: 8b 5d fc mov -0x4(%ebp),%ebx 10fd3f: c9 leave 10fd40: c3 ret
10fd41: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
) { Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name )
10fd44: 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 ]; }
10fd49: 8b 5d fc mov -0x4(%ebp),%ebx 10fd4c: c9 leave 10fd4d: c3 ret
0010cf18 <rtems_object_set_name>: */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) {
10cf18: 55 push %ebp 10cf19: 89 e5 mov %esp,%ebp 10cf1b: 57 push %edi 10cf1c: 56 push %esi 10cf1d: 53 push %ebx 10cf1e: 83 ec 1c sub $0x1c,%esp 10cf21: 8b 75 08 mov 0x8(%ebp),%esi 10cf24: 8b 7d 0c mov 0xc(%ebp),%edi
Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name )
10cf27: 85 ff test %edi,%edi
10cf29: 74 61 je 10cf8c <rtems_object_set_name+0x74> return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
10cf2b: 85 f6 test %esi,%esi
10cf2d: 74 35 je 10cf64 <rtems_object_set_name+0x4c> information = _Objects_Get_information_id( tmpId );
10cf2f: 83 ec 0c sub $0xc,%esp 10cf32: 56 push %esi 10cf33: e8 d4 18 00 00 call 10e80c <_Objects_Get_information_id> 10cf38: 89 c3 mov %eax,%ebx
if ( !information )
10cf3a: 83 c4 10 add $0x10,%esp 10cf3d: 85 c0 test %eax,%eax
10cf3f: 74 16 je 10cf57 <rtems_object_set_name+0x3f> return RTEMS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &location );
10cf41: 50 push %eax 10cf42: 8d 45 e4 lea -0x1c(%ebp),%eax 10cf45: 50 push %eax 10cf46: 56 push %esi 10cf47: 53 push %ebx 10cf48: e8 43 1a 00 00 call 10e990 <_Objects_Get>
switch ( location ) {
10cf4d: 83 c4 10 add $0x10,%esp 10cf50: 8b 4d e4 mov -0x1c(%ebp),%ecx 10cf53: 85 c9 test %ecx,%ecx
10cf55: 74 19 je 10cf70 <rtems_object_set_name+0x58> case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL;
10cf57: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10cf5c: 8d 65 f4 lea -0xc(%ebp),%esp 10cf5f: 5b pop %ebx 10cf60: 5e pop %esi 10cf61: 5f pop %edi 10cf62: c9 leave 10cf63: c3 ret
Objects_Id tmpId; if ( !name ) return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
10cf64: a1 38 95 12 00 mov 0x129538,%eax 10cf69: 8b 70 08 mov 0x8(%eax),%esi 10cf6c: eb c1 jmp 10cf2f <rtems_object_set_name+0x17>
10cf6e: 66 90 xchg %ax,%ax <== NOT EXECUTED
the_object = _Objects_Get( information, tmpId, &location ); switch ( location ) { case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name );
10cf70: 52 push %edx 10cf71: 57 push %edi 10cf72: 50 push %eax 10cf73: 53 push %ebx 10cf74: e8 4f 1c 00 00 call 10ebc8 <_Objects_Set_name>
_Thread_Enable_dispatch();
10cf79: e8 42 23 00 00 call 10f2c0 <_Thread_Enable_dispatch> 10cf7e: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10cf80: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10cf83: 8d 65 f4 lea -0xc(%ebp),%esp 10cf86: 5b pop %ebx 10cf87: 5e pop %esi 10cf88: 5f pop %edi 10cf89: c9 leave 10cf8a: c3 ret
10cf8b: 90 nop <== NOT EXECUTED
Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name )
10cf8c: b8 09 00 00 00 mov $0x9,%eax 10cf91: eb c9 jmp 10cf5c <rtems_object_set_name+0x44>
0010ccf0 <rtems_panic>: void rtems_panic( const char *printf_format, ... ) {
10ccf0: 55 push %ebp <== NOT EXECUTED 10ccf1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10ccf3: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
/* * rtems_panic is shorthand for rtems_error(RTEMS_ERROR_PANIC, ...) */ void rtems_panic(
10ccf6: 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);
10ccf9: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 10ccfc: b8 00 00 00 20 mov $0x20000000,%eax <== NOT EXECUTED 10cd01: e8 4a fe ff ff call 10cb50 <rtems_verror> <== NOT EXECUTED
va_end(arglist); }
10cd06: c9 leave <== NOT EXECUTED 10cd07: c3 ret <== NOT EXECUTED
00116a30 <rtems_partition_create>: uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) {
116a30: 55 push %ebp 116a31: 89 e5 mov %esp,%ebp 116a33: 57 push %edi 116a34: 56 push %esi 116a35: 53 push %ebx 116a36: 83 ec 1c sub $0x1c,%esp 116a39: 8b 5d 08 mov 0x8(%ebp),%ebx 116a3c: 8b 75 0c mov 0xc(%ebp),%esi 116a3f: 8b 55 10 mov 0x10(%ebp),%edx 116a42: 8b 7d 14 mov 0x14(%ebp),%edi
register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) )
116a45: 85 db test %ebx,%ebx
116a47: 74 47 je 116a90 <rtems_partition_create+0x60> return RTEMS_INVALID_NAME; if ( !starting_address )
116a49: 85 f6 test %esi,%esi
116a4b: 74 23 je 116a70 <rtems_partition_create+0x40> return RTEMS_INVALID_ADDRESS; if ( !id )
116a4d: 8b 45 1c mov 0x1c(%ebp),%eax 116a50: 85 c0 test %eax,%eax
116a52: 74 1c je 116a70 <rtems_partition_create+0x40><== ALWAYS TAKEN
return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size ||
116a54: 85 d2 test %edx,%edx
116a56: 74 28 je 116a80 <rtems_partition_create+0x50>
116a58: 85 ff test %edi,%edi
116a5a: 74 24 je 116a80 <rtems_partition_create+0x50>
116a5c: 39 fa cmp %edi,%edx
116a5e: 72 20 jb 116a80 <rtems_partition_create+0x50>
116a60: f7 c7 03 00 00 00 test $0x3,%edi
116a66: 75 18 jne 116a80 <rtems_partition_create+0x50> !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; if ( !_Addresses_Is_aligned( starting_address ) )
116a68: f7 c6 03 00 00 00 test $0x3,%esi
116a6e: 74 30 je 116aa0 <rtems_partition_create+0x70> 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL;
116a70: b8 09 00 00 00 mov $0x9,%eax
}
116a75: 8d 65 f4 lea -0xc(%ebp),%esp 116a78: 5b pop %ebx 116a79: 5e pop %esi 116a7a: 5f pop %edi 116a7b: c9 leave 116a7c: c3 ret
116a7d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL;
116a80: b8 08 00 00 00 mov $0x8,%eax
}
116a85: 8d 65 f4 lea -0xc(%ebp),%esp 116a88: 5b pop %ebx 116a89: 5e pop %esi 116a8a: 5f pop %edi 116a8b: c9 leave 116a8c: c3 ret
116a8d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_id *id ) { register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) )
116a90: b8 03 00 00 00 mov $0x3,%eax
); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
116a95: 8d 65 f4 lea -0xc(%ebp),%esp 116a98: 5b pop %ebx 116a99: 5e pop %esi 116a9a: 5f pop %edi 116a9b: c9 leave 116a9c: c3 ret
116a9d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
116aa0: a1 78 07 14 00 mov 0x140778,%eax 116aa5: 40 inc %eax 116aa6: a3 78 07 14 00 mov %eax,0x140778
* 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 );
116aab: 83 ec 0c sub $0xc,%esp 116aae: 68 00 06 14 00 push $0x140600 116ab3: 89 55 e0 mov %edx,-0x20(%ebp) 116ab6: e8 3d 42 00 00 call 11acf8 <_Objects_Allocate> 116abb: 89 45 e4 mov %eax,-0x1c(%ebp)
_Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) {
116abe: 83 c4 10 add $0x10,%esp 116ac1: 85 c0 test %eax,%eax 116ac3: 8b 55 e0 mov -0x20(%ebp),%edx
116ac6: 74 58 je 116b20 <rtems_partition_create+0xf0> _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address;
116ac8: 8b 45 e4 mov -0x1c(%ebp),%eax 116acb: 89 70 10 mov %esi,0x10(%eax)
the_partition->length = length;
116ace: 89 50 14 mov %edx,0x14(%eax)
the_partition->buffer_size = buffer_size;
116ad1: 89 78 18 mov %edi,0x18(%eax)
the_partition->attribute_set = attribute_set;
116ad4: 8b 4d 18 mov 0x18(%ebp),%ecx 116ad7: 89 48 1c mov %ecx,0x1c(%eax)
the_partition->number_of_used_blocks = 0;
116ada: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax)
_Chain_Initialize( &the_partition->Memory, starting_address,
116ae1: 57 push %edi 116ae2: 89 d0 mov %edx,%eax 116ae4: 31 d2 xor %edx,%edx 116ae6: f7 f7 div %edi 116ae8: 50 push %eax 116ae9: 56 push %esi 116aea: 8b 45 e4 mov -0x1c(%ebp),%eax 116aed: 83 c0 24 add $0x24,%eax 116af0: 50 push %eax 116af1: e8 7a 2f 00 00 call 119a70 <_Chain_Initialize>
#if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object;
116af6: 8b 7d e4 mov -0x1c(%ebp),%edi 116af9: 8b 47 08 mov 0x8(%edi),%eax 116afc: 0f b7 f0 movzwl %ax,%esi 116aff: 8b 15 1c 06 14 00 mov 0x14061c,%edx 116b05: 89 3c b2 mov %edi,(%edx,%esi,4)
information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name;
116b08: 89 5f 0c mov %ebx,0xc(%edi)
&_Partition_Information, &the_partition->Object, (Objects_Name) name ); *id = the_partition->Object.id;
116b0b: 8b 55 1c mov 0x1c(%ebp),%edx 116b0e: 89 02 mov %eax,(%edx)
name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch();
116b10: e8 7f 4f 00 00 call 11ba94 <_Thread_Enable_dispatch> 116b15: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
116b17: 83 c4 10 add $0x10,%esp 116b1a: e9 66 ff ff ff jmp 116a85 <rtems_partition_create+0x55>
116b1f: 90 nop <== NOT EXECUTED
_Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { _Thread_Enable_dispatch();
116b20: e8 6f 4f 00 00 call 11ba94 <_Thread_Enable_dispatch> 116b25: b8 05 00 00 00 mov $0x5,%eax
return RTEMS_TOO_MANY;
116b2a: e9 56 ff ff ff jmp 116a85 <rtems_partition_create+0x55>
00116b30 <rtems_partition_delete>: */ rtems_status_code rtems_partition_delete( rtems_id id ) {
116b30: 55 push %ebp 116b31: 89 e5 mov %esp,%ebp 116b33: 83 ec 2c sub $0x2c,%esp
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *)
116b36: 8d 45 f4 lea -0xc(%ebp),%eax 116b39: 50 push %eax 116b3a: ff 75 08 pushl 0x8(%ebp) 116b3d: 68 00 06 14 00 push $0x140600 116b42: e8 9d 46 00 00 call 11b1e4 <_Objects_Get>
register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) {
116b47: 83 c4 10 add $0x10,%esp 116b4a: 8b 55 f4 mov -0xc(%ebp),%edx 116b4d: 85 d2 test %edx,%edx
116b4f: 74 07 je 116b58 <rtems_partition_delete+0x28>
116b51: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116b56: c9 leave 116b57: c3 ret
the_partition = _Partition_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) {
116b58: 8b 48 20 mov 0x20(%eax),%ecx 116b5b: 85 c9 test %ecx,%ecx
116b5d: 74 0d je 116b6c <rtems_partition_delete+0x3c> #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch();
116b5f: e8 30 4f 00 00 call 11ba94 <_Thread_Enable_dispatch> 116b64: b8 0c 00 00 00 mov $0xc,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116b69: c9 leave 116b6a: c3 ret
116b6b: 90 nop <== NOT EXECUTED
the_partition = _Partition_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { _Objects_Close( &_Partition_Information, &the_partition->Object );
116b6c: 83 ec 08 sub $0x8,%esp 116b6f: 50 push %eax 116b70: 68 00 06 14 00 push $0x140600 116b75: 89 45 e4 mov %eax,-0x1c(%ebp) 116b78: e8 f7 41 00 00 call 11ad74 <_Objects_Close>
*/ RTEMS_INLINE_ROUTINE void _Partition_Free ( Partition_Control *the_partition ) { _Objects_Free( &_Partition_Information, &the_partition->Object );
116b7d: 58 pop %eax 116b7e: 5a pop %edx 116b7f: 8b 45 e4 mov -0x1c(%ebp),%eax 116b82: 50 push %eax 116b83: 68 00 06 14 00 push $0x140600 116b88: e8 eb 44 00 00 call 11b078 <_Objects_Free>
0 /* Not used */ ); } #endif _Thread_Enable_dispatch();
116b8d: e8 02 4f 00 00 call 11ba94 <_Thread_Enable_dispatch> 116b92: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
116b94: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116b97: c9 leave 116b98: c3 ret
00116b9c <rtems_partition_get_buffer>: rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) {
116b9c: 55 push %ebp 116b9d: 89 e5 mov %esp,%ebp 116b9f: 56 push %esi 116ba0: 53 push %ebx 116ba1: 83 ec 20 sub $0x20,%esp 116ba4: 8b 5d 0c mov 0xc(%ebp),%ebx
register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer )
116ba7: 85 db test %ebx,%ebx
116ba9: 74 59 je 116c04 <rtems_partition_get_buffer+0x68> RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *)
116bab: 52 push %edx 116bac: 8d 45 f4 lea -0xc(%ebp),%eax 116baf: 50 push %eax 116bb0: ff 75 08 pushl 0x8(%ebp) 116bb3: 68 00 06 14 00 push $0x140600 116bb8: e8 27 46 00 00 call 11b1e4 <_Objects_Get> 116bbd: 89 c6 mov %eax,%esi
return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) {
116bbf: 83 c4 10 add $0x10,%esp 116bc2: 8b 45 f4 mov -0xc(%ebp),%eax 116bc5: 85 c0 test %eax,%eax
116bc7: 75 2f jne 116bf8 <rtems_partition_get_buffer+0x5c> */ RTEMS_INLINE_ROUTINE void *_Partition_Allocate_buffer ( Partition_Control *the_partition ) { return _Chain_Get( &the_partition->Memory );
116bc9: 83 ec 0c sub $0xc,%esp 116bcc: 8d 46 24 lea 0x24(%esi),%eax 116bcf: 50 push %eax 116bd0: e8 77 2e 00 00 call 119a4c <_Chain_Get>
case OBJECTS_LOCAL: the_buffer = _Partition_Allocate_buffer( the_partition ); if ( the_buffer ) {
116bd5: 83 c4 10 add $0x10,%esp 116bd8: 85 c0 test %eax,%eax
116bda: 74 34 je 116c10 <rtems_partition_get_buffer+0x74> the_partition->number_of_used_blocks += 1;
116bdc: ff 46 20 incl 0x20(%esi)
_Thread_Enable_dispatch();
116bdf: 89 45 e4 mov %eax,-0x1c(%ebp) 116be2: e8 ad 4e 00 00 call 11ba94 <_Thread_Enable_dispatch>
*buffer = the_buffer;
116be7: 8b 45 e4 mov -0x1c(%ebp),%eax 116bea: 89 03 mov %eax,(%ebx) 116bec: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116bee: 8d 65 f8 lea -0x8(%ebp),%esp 116bf1: 5b pop %ebx 116bf2: 5e pop %esi 116bf3: c9 leave 116bf4: c3 ret
116bf5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if ( !buffer ) return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) {
116bf8: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116bfd: 8d 65 f8 lea -0x8(%ebp),%esp 116c00: 5b pop %ebx 116c01: 5e pop %esi 116c02: c9 leave 116c03: c3 ret
{ register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer )
116c04: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116c09: 8d 65 f8 lea -0x8(%ebp),%esp 116c0c: 5b pop %ebx 116c0d: 5e pop %esi 116c0e: c9 leave 116c0f: c3 ret
the_partition->number_of_used_blocks += 1; _Thread_Enable_dispatch(); *buffer = the_buffer; return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch();
116c10: e8 7f 4e 00 00 call 11ba94 <_Thread_Enable_dispatch> 116c15: b8 0d 00 00 00 mov $0xd,%eax
return RTEMS_UNSATISFIED;
116c1a: eb e1 jmp 116bfd <rtems_partition_get_buffer+0x61>
00116c40 <rtems_partition_return_buffer>: rtems_status_code rtems_partition_return_buffer( rtems_id id, void *buffer ) {
116c40: 55 push %ebp 116c41: 89 e5 mov %esp,%ebp 116c43: 56 push %esi 116c44: 53 push %ebx 116c45: 83 ec 14 sub $0x14,%esp 116c48: 8b 75 0c mov 0xc(%ebp),%esi
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *)
116c4b: 8d 45 f4 lea -0xc(%ebp),%eax 116c4e: 50 push %eax 116c4f: ff 75 08 pushl 0x8(%ebp) 116c52: 68 00 06 14 00 push $0x140600 116c57: e8 88 45 00 00 call 11b1e4 <_Objects_Get> 116c5c: 89 c3 mov %eax,%ebx
register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) {
116c5e: 83 c4 10 add $0x10,%esp 116c61: 8b 45 f4 mov -0xc(%ebp),%eax 116c64: 85 c0 test %eax,%eax
116c66: 74 0c je 116c74 <rtems_partition_return_buffer+0x34>
116c68: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116c6d: 8d 65 f8 lea -0x8(%ebp),%esp 116c70: 5b pop %ebx 116c71: 5e pop %esi 116c72: c9 leave 116c73: c3 ret
) { void *starting; void *ending; starting = the_partition->starting_address;
116c74: 8b 43 10 mov 0x10(%ebx),%eax
ending = _Addresses_Add_offset( starting, the_partition->length );
116c77: 8b 53 14 mov 0x14(%ebx),%edx
const void *address, const void *base, const void *limit ) { return (address >= base && address <= limit);
116c7a: 39 c6 cmp %eax,%esi
116c7c: 72 3a jb 116cb8 <rtems_partition_return_buffer+0x78>
116c7e: 8d 14 10 lea (%eax,%edx,1),%edx 116c81: 39 d6 cmp %edx,%esi
116c83: 77 33 ja 116cb8 <rtems_partition_return_buffer+0x78><== ALWAYS TAKEN
return (
116c85: 89 f2 mov %esi,%edx 116c87: 29 c2 sub %eax,%edx 116c89: 89 d0 mov %edx,%eax 116c8b: 31 d2 xor %edx,%edx 116c8d: f7 73 18 divl 0x18(%ebx) 116c90: 85 d2 test %edx,%edx
116c92: 75 24 jne 116cb8 <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 );
116c94: 83 ec 08 sub $0x8,%esp 116c97: 56 push %esi 116c98: 8d 43 24 lea 0x24(%ebx),%eax 116c9b: 50 push %eax 116c9c: e8 87 2d 00 00 call 119a28 <_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;
116ca1: ff 4b 20 decl 0x20(%ebx)
_Thread_Enable_dispatch();
116ca4: e8 eb 4d 00 00 call 11ba94 <_Thread_Enable_dispatch> 116ca9: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
116cab: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116cae: 8d 65 f8 lea -0x8(%ebp),%esp 116cb1: 5b pop %ebx 116cb2: 5e pop %esi 116cb3: c9 leave 116cb4: c3 ret
116cb5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch();
116cb8: e8 d7 4d 00 00 call 11ba94 <_Thread_Enable_dispatch> 116cbd: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116cc2: 8d 65 f8 lea -0x8(%ebp),%esp 116cc5: 5b pop %ebx 116cc6: 5e pop %esi 116cc7: c9 leave 116cc8: c3 ret
00110cc8 <rtems_pipe_initialize>: /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) {
110cc8: 55 push %ebp 110cc9: 89 e5 mov %esp,%ebp 110ccb: 83 ec 08 sub $0x8,%esp
if (!rtems_pipe_configured)
110cce: 80 3d c4 35 12 00 00 cmpb $0x0,0x1235c4
110cd5: 74 09 je 110ce0 <rtems_pipe_initialize+0x18><== NEVER TAKEN
return; if (rtems_pipe_semaphore)
110cd7: a1 90 4f 12 00 mov 0x124f90,%eax <== NOT EXECUTED 110cdc: 85 c0 test %eax,%eax <== NOT EXECUTED 110cde: 74 04 je 110ce4 <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; }
110ce0: c9 leave 110ce1: c3 ret
110ce2: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (rtems_pipe_semaphore) return; rtems_status_code sc; sc = rtems_semaphore_create(
110ce4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110ce7: 68 90 4f 12 00 push $0x124f90 <== NOT EXECUTED 110cec: 6a 00 push $0x0 <== NOT EXECUTED 110cee: 6a 54 push $0x54 <== NOT EXECUTED 110cf0: 6a 01 push $0x1 <== NOT EXECUTED 110cf2: 68 45 50 49 50 push $0x50495045 <== NOT EXECUTED 110cf7: e8 8c a6 ff ff call 10b388 <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)
110cfc: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 110cff: 85 c0 test %eax,%eax <== NOT EXECUTED 110d01: 75 0d jne 110d10 <rtems_pipe_initialize+0x48><== NOT EXECUTED
rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot();
110d03: e8 fc a1 ff ff call 10af04 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
rtems_pipe_no = now;
110d08: 66 a3 98 4f 12 00 mov %ax,0x124f98 <== NOT EXECUTED
}
110d0e: c9 leave <== NOT EXECUTED 110d0f: 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);
110d10: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110d13: 50 push %eax <== NOT EXECUTED 110d14: e8 1f af ff ff call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
00116068 <rtems_port_create>: void *internal_start, void *external_start, uint32_t length, rtems_id *id ) {
116068: 55 push %ebp 116069: 89 e5 mov %esp,%ebp 11606b: 57 push %edi 11606c: 56 push %esi 11606d: 53 push %ebx 11606e: 83 ec 1c sub $0x1c,%esp 116071: 8b 5d 08 mov 0x8(%ebp),%ebx 116074: 8b 55 0c mov 0xc(%ebp),%edx 116077: 8b 7d 10 mov 0x10(%ebp),%edi 11607a: 8b 75 18 mov 0x18(%ebp),%esi
register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) )
11607d: 85 db test %ebx,%ebx
11607f: 74 1b je 11609c <rtems_port_create+0x34> return RTEMS_INVALID_NAME; if ( !id )
116081: 85 f6 test %esi,%esi
116083: 74 08 je 11608d <rtems_port_create+0x25> return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( internal_start ) ||
116085: 89 f8 mov %edi,%eax 116087: 09 d0 or %edx,%eax 116089: a8 03 test $0x3,%al
11608b: 74 1f je 1160ac <rtems_port_create+0x44> (Objects_Name) name ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL;
11608d: b8 09 00 00 00 mov $0x9,%eax
}
116092: 8d 65 f4 lea -0xc(%ebp),%esp 116095: 5b pop %ebx 116096: 5e pop %esi 116097: 5f pop %edi 116098: c9 leave 116099: c3 ret
11609a: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_id *id ) { register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) )
11609c: b8 03 00 00 00 mov $0x3,%eax
); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
1160a1: 8d 65 f4 lea -0xc(%ebp),%esp 1160a4: 5b pop %ebx 1160a5: 5e pop %esi 1160a6: 5f pop %edi 1160a7: c9 leave 1160a8: c3 ret
1160a9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1;
1160ac: a1 78 07 14 00 mov 0x140778,%eax 1160b1: 40 inc %eax 1160b2: a3 78 07 14 00 mov %eax,0x140778
* of free port control blocks. */ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Allocate ( void ) { return (Dual_ported_memory_Control *)
1160b7: 83 ec 0c sub $0xc,%esp 1160ba: 68 c0 05 14 00 push $0x1405c0 1160bf: 89 55 e4 mov %edx,-0x1c(%ebp) 1160c2: e8 31 4c 00 00 call 11acf8 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) {
1160c7: 83 c4 10 add $0x10,%esp 1160ca: 85 c0 test %eax,%eax 1160cc: 8b 55 e4 mov -0x1c(%ebp),%edx
1160cf: 74 33 je 116104 <rtems_port_create+0x9c> _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_port->internal_base = internal_start;
1160d1: 89 50 10 mov %edx,0x10(%eax)
the_port->external_base = external_start;
1160d4: 89 78 14 mov %edi,0x14(%eax)
the_port->length = length - 1;
1160d7: 8b 55 14 mov 0x14(%ebp),%edx 1160da: 4a dec %edx 1160db: 89 50 18 mov %edx,0x18(%eax)
#if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object;
1160de: 8b 50 08 mov 0x8(%eax),%edx 1160e1: 0f b7 fa movzwl %dx,%edi 1160e4: 8b 0d dc 05 14 00 mov 0x1405dc,%ecx 1160ea: 89 04 b9 mov %eax,(%ecx,%edi,4)
information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name;
1160ed: 89 58 0c mov %ebx,0xc(%eax)
&_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id;
1160f0: 89 16 mov %edx,(%esi)
_Thread_Enable_dispatch();
1160f2: e8 9d 59 00 00 call 11ba94 <_Thread_Enable_dispatch> 1160f7: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL; }
1160f9: 8d 65 f4 lea -0xc(%ebp),%esp 1160fc: 5b pop %ebx 1160fd: 5e pop %esi 1160fe: 5f pop %edi 1160ff: c9 leave 116100: c3 ret
116101: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { _Thread_Enable_dispatch();
116104: e8 8b 59 00 00 call 11ba94 <_Thread_Enable_dispatch> 116109: b8 05 00 00 00 mov $0x5,%eax
return RTEMS_TOO_MANY;
11610e: eb 82 jmp 116092 <rtems_port_create+0x2a>
00116110 <rtems_port_delete>: */ rtems_status_code rtems_port_delete( rtems_id id ) {
116110: 55 push %ebp 116111: 89 e5 mov %esp,%ebp 116113: 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 *)
116116: 8d 45 f4 lea -0xc(%ebp),%eax 116119: 50 push %eax 11611a: ff 75 08 pushl 0x8(%ebp) 11611d: 68 c0 05 14 00 push $0x1405c0 116122: e8 bd 50 00 00 call 11b1e4 <_Objects_Get>
register Dual_ported_memory_Control *the_port; Objects_Locations location; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) {
116127: 83 c4 10 add $0x10,%esp 11612a: 8b 4d f4 mov -0xc(%ebp),%ecx 11612d: 85 c9 test %ecx,%ecx
11612f: 75 2f jne 116160 <rtems_port_delete+0x50> case OBJECTS_LOCAL: _Objects_Close( &_Dual_ported_memory_Information, &the_port->Object );
116131: 83 ec 08 sub $0x8,%esp 116134: 50 push %eax 116135: 68 c0 05 14 00 push $0x1405c0 11613a: 89 45 e4 mov %eax,-0x1c(%ebp) 11613d: e8 32 4c 00 00 call 11ad74 <_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 );
116142: 58 pop %eax 116143: 5a pop %edx 116144: 8b 45 e4 mov -0x1c(%ebp),%eax 116147: 50 push %eax 116148: 68 c0 05 14 00 push $0x1405c0 11614d: e8 26 4f 00 00 call 11b078 <_Objects_Free>
_Dual_ported_memory_Free( the_port ); _Thread_Enable_dispatch();
116152: e8 3d 59 00 00 call 11ba94 <_Thread_Enable_dispatch> 116157: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
116159: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
11615c: c9 leave 11615d: c3 ret
11615e: 66 90 xchg %ax,%ax <== NOT EXECUTED
{ register Dual_ported_memory_Control *the_port; Objects_Locations location; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) {
116160: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116165: c9 leave 116166: c3 ret
00116168 <rtems_port_external_to_internal>: rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) {
116168: 55 push %ebp 116169: 89 e5 mov %esp,%ebp 11616b: 56 push %esi 11616c: 53 push %ebx 11616d: 83 ec 10 sub $0x10,%esp 116170: 8b 75 0c mov 0xc(%ebp),%esi 116173: 8b 5d 10 mov 0x10(%ebp),%ebx
register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal )
116176: 85 db test %ebx,%ebx
116178: 74 4e je 1161c8 <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 *)
11617a: 51 push %ecx 11617b: 8d 45 f4 lea -0xc(%ebp),%eax 11617e: 50 push %eax 11617f: ff 75 08 pushl 0x8(%ebp) 116182: 68 c0 05 14 00 push $0x1405c0 116187: e8 58 50 00 00 call 11b1e4 <_Objects_Get>
return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) {
11618c: 83 c4 10 add $0x10,%esp 11618f: 8b 55 f4 mov -0xc(%ebp),%edx 116192: 85 d2 test %edx,%edx
116194: 74 0e je 1161a4 <rtems_port_external_to_internal+0x3c>
116196: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
11619b: 8d 65 f8 lea -0x8(%ebp),%esp 11619e: 5b pop %ebx 11619f: 5e pop %esi 1161a0: c9 leave 1161a1: c3 ret
1161a2: 66 90 xchg %ax,%ax <== NOT EXECUTED
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 );
1161a4: 89 f2 mov %esi,%edx 1161a6: 2b 50 14 sub 0x14(%eax),%edx
if ( ending > the_port->length )
1161a9: 3b 50 18 cmp 0x18(%eax),%edx
1161ac: 77 16 ja 1161c4 <rtems_port_external_to_internal+0x5c> *internal = external; else *internal = _Addresses_Add_offset( the_port->internal_base,
1161ae: 03 50 10 add 0x10(%eax),%edx 1161b1: 89 13 mov %edx,(%ebx)
ending ); _Thread_Enable_dispatch();
1161b3: e8 dc 58 00 00 call 11ba94 <_Thread_Enable_dispatch> 1161b8: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
1161ba: 8d 65 f8 lea -0x8(%ebp),%esp 1161bd: 5b pop %ebx 1161be: 5e pop %esi 1161bf: c9 leave 1161c0: c3 ret
1161c1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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;
1161c4: 89 33 mov %esi,(%ebx) 1161c6: eb eb jmp 1161b3 <rtems_port_external_to_internal+0x4b>
{ register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal )
1161c8: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
1161cd: 8d 65 f8 lea -0x8(%ebp),%esp 1161d0: 5b pop %ebx 1161d1: 5e pop %esi 1161d2: c9 leave 1161d3: c3 ret
001161f8 <rtems_port_internal_to_external>: rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) {
1161f8: 55 push %ebp 1161f9: 89 e5 mov %esp,%ebp 1161fb: 56 push %esi 1161fc: 53 push %ebx 1161fd: 83 ec 10 sub $0x10,%esp 116200: 8b 75 0c mov 0xc(%ebp),%esi 116203: 8b 5d 10 mov 0x10(%ebp),%ebx
register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external )
116206: 85 db test %ebx,%ebx
116208: 74 4e je 116258 <rtems_port_internal_to_external+0x60>
11620a: 51 push %ecx 11620b: 8d 45 f4 lea -0xc(%ebp),%eax 11620e: 50 push %eax 11620f: ff 75 08 pushl 0x8(%ebp) 116212: 68 c0 05 14 00 push $0x1405c0 116217: e8 c8 4f 00 00 call 11b1e4 <_Objects_Get>
return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) {
11621c: 83 c4 10 add $0x10,%esp 11621f: 8b 55 f4 mov -0xc(%ebp),%edx 116222: 85 d2 test %edx,%edx
116224: 74 0e je 116234 <rtems_port_internal_to_external+0x3c>
116226: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
11622b: 8d 65 f8 lea -0x8(%ebp),%esp 11622e: 5b pop %ebx 11622f: 5e pop %esi 116230: c9 leave 116231: c3 ret
116232: 66 90 xchg %ax,%ax <== NOT EXECUTED
the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: ending = _Addresses_Subtract( internal, the_port->internal_base );
116234: 89 f2 mov %esi,%edx 116236: 2b 50 10 sub 0x10(%eax),%edx
if ( ending > the_port->length )
116239: 3b 50 18 cmp 0x18(%eax),%edx
11623c: 77 16 ja 116254 <rtems_port_internal_to_external+0x5c> *external = internal; else *external = _Addresses_Add_offset( the_port->external_base,
11623e: 03 50 14 add 0x14(%eax),%edx 116241: 89 13 mov %edx,(%ebx)
ending ); _Thread_Enable_dispatch();
116243: e8 4c 58 00 00 call 11ba94 <_Thread_Enable_dispatch> 116248: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
11624a: 8d 65 f8 lea -0x8(%ebp),%esp 11624d: 5b pop %ebx 11624e: 5e pop %esi 11624f: c9 leave 116250: c3 ret
116251: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
switch ( location ) { case OBJECTS_LOCAL: ending = _Addresses_Subtract( internal, the_port->internal_base ); if ( ending > the_port->length ) *external = internal;
116254: 89 33 mov %esi,(%ebx) 116256: eb eb jmp 116243 <rtems_port_internal_to_external+0x4b>
{ register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external )
116258: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
11625d: 8d 65 f8 lea -0x8(%ebp),%esp 116260: 5b pop %ebx 116261: 5e pop %esi 116262: c9 leave 116263: c3 ret
00116ccc <rtems_rate_monotonic_cancel>: */ rtems_status_code rtems_rate_monotonic_cancel( rtems_id id ) {
116ccc: 55 push %ebp 116ccd: 89 e5 mov %esp,%ebp 116ccf: 53 push %ebx 116cd0: 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 *)
116cd3: 8d 45 f4 lea -0xc(%ebp),%eax 116cd6: 50 push %eax 116cd7: ff 75 08 pushl 0x8(%ebp) 116cda: 68 40 06 14 00 push $0x140640 116cdf: e8 00 45 00 00 call 11b1e4 <_Objects_Get> 116ce4: 89 c3 mov %eax,%ebx
Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) {
116ce6: 83 c4 10 add $0x10,%esp 116ce9: 8b 45 f4 mov -0xc(%ebp),%eax 116cec: 85 c0 test %eax,%eax
116cee: 74 0c je 116cfc <rtems_rate_monotonic_cancel+0x30>
116cf0: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116cf5: 8b 5d fc mov -0x4(%ebp),%ebx 116cf8: c9 leave 116cf9: c3 ret
116cfa: 66 90 xchg %ax,%ax <== NOT EXECUTED
the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) {
116cfc: 8b 43 40 mov 0x40(%ebx),%eax 116cff: 3b 05 38 08 14 00 cmp 0x140838,%eax
116d05: 74 11 je 116d18 <rtems_rate_monotonic_cancel+0x4c> _Thread_Enable_dispatch();
116d07: e8 88 4d 00 00 call 11ba94 <_Thread_Enable_dispatch> 116d0c: b8 17 00 00 00 mov $0x17,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
116d11: 8b 5d fc mov -0x4(%ebp),%ebx 116d14: c9 leave 116d15: c3 ret
116d16: 66 90 xchg %ax,%ax <== NOT EXECUTED
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 );
116d18: 83 ec 0c sub $0xc,%esp 116d1b: 8d 43 10 lea 0x10(%ebx),%eax 116d1e: 50 push %eax 116d1f: e8 68 61 00 00 call 11ce8c <_Watchdog_Remove>
the_period->state = RATE_MONOTONIC_INACTIVE;
116d24: c7 43 38 00 00 00 00 movl $0x0,0x38(%ebx)
_Thread_Enable_dispatch();
116d2b: e8 64 4d 00 00 call 11ba94 <_Thread_Enable_dispatch> 116d30: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
116d32: 83 c4 10 add $0x10,%esp 116d35: eb be jmp 116cf5 <rtems_rate_monotonic_cancel+0x29>
0010c288 <rtems_rate_monotonic_create>: rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) {
10c288: 55 push %ebp 10c289: 89 e5 mov %esp,%ebp 10c28b: 57 push %edi 10c28c: 56 push %esi 10c28d: 53 push %ebx 10c28e: 83 ec 1c sub $0x1c,%esp 10c291: 8b 5d 08 mov 0x8(%ebp),%ebx 10c294: 8b 75 0c mov 0xc(%ebp),%esi
Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) )
10c297: 85 db test %ebx,%ebx
10c299: 0f 84 a9 00 00 00 je 10c348 <rtems_rate_monotonic_create+0xc0> return RTEMS_INVALID_NAME; if ( !id )
10c29f: 85 f6 test %esi,%esi
10c2a1: 0f 84 c5 00 00 00 je 10c36c <rtems_rate_monotonic_create+0xe4> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1;
10c2a7: a1 78 84 12 00 mov 0x128478,%eax 10c2ac: 40 inc %eax 10c2ad: a3 78 84 12 00 mov %eax,0x128478
* 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 *)
10c2b2: 83 ec 0c sub $0xc,%esp 10c2b5: 68 80 83 12 00 push $0x128380 10c2ba: e8 81 1d 00 00 call 10e040 <_Objects_Allocate> 10c2bf: 89 c2 mov %eax,%edx
_Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) {
10c2c1: 83 c4 10 add $0x10,%esp 10c2c4: 85 c0 test %eax,%eax
10c2c6: 0f 84 8c 00 00 00 je 10c358 <rtems_rate_monotonic_create+0xd0> _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing;
10c2cc: a1 38 85 12 00 mov 0x128538,%eax 10c2d1: 89 42 40 mov %eax,0x40(%edx)
the_period->state = RATE_MONOTONIC_INACTIVE;
10c2d4: 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;
10c2db: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx)
the_watchdog->routine = routine;
10c2e2: c7 42 2c 00 00 00 00 movl $0x0,0x2c(%edx)
the_watchdog->id = id;
10c2e9: c7 42 30 00 00 00 00 movl $0x0,0x30(%edx)
the_watchdog->user_data = user_data;
10c2f0: 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 );
10c2f7: 8d 42 54 lea 0x54(%edx),%eax 10c2fa: 89 45 e4 mov %eax,-0x1c(%ebp) 10c2fd: b9 38 00 00 00 mov $0x38,%ecx 10c302: 31 c0 xor %eax,%eax 10c304: 8b 7d e4 mov -0x1c(%ebp),%edi 10c307: f3 aa rep stos %al,%es:(%edi) 10c309: c7 42 5c ff ff ff 7f movl $0x7fffffff,0x5c(%edx) 10c310: c7 42 60 ff ff ff 7f movl $0x7fffffff,0x60(%edx) 10c317: c7 42 74 ff ff ff 7f movl $0x7fffffff,0x74(%edx) 10c31e: 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;
10c325: 8b 42 08 mov 0x8(%edx),%eax 10c328: 0f b7 f8 movzwl %ax,%edi 10c32b: 8b 0d 9c 83 12 00 mov 0x12839c,%ecx 10c331: 89 14 b9 mov %edx,(%ecx,%edi,4)
information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name;
10c334: 89 5a 0c mov %ebx,0xc(%edx)
&_Rate_monotonic_Information, &the_period->Object, (Objects_Name) name ); *id = the_period->Object.id;
10c337: 89 06 mov %eax,(%esi)
_Thread_Enable_dispatch();
10c339: e8 be 2a 00 00 call 10edfc <_Thread_Enable_dispatch> 10c33e: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL; }
10c340: 8d 65 f4 lea -0xc(%ebp),%esp 10c343: 5b pop %ebx 10c344: 5e pop %esi 10c345: 5f pop %edi 10c346: c9 leave 10c347: c3 ret
rtems_id *id ) { Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) )
10c348: b8 03 00 00 00 mov $0x3,%eax
); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
10c34d: 8d 65 f4 lea -0xc(%ebp),%esp 10c350: 5b pop %ebx 10c351: 5e pop %esi 10c352: 5f pop %edi 10c353: c9 leave 10c354: c3 ret
10c355: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { _Thread_Enable_dispatch();
10c358: e8 9f 2a 00 00 call 10edfc <_Thread_Enable_dispatch> 10c35d: b8 05 00 00 00 mov $0x5,%eax
); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
10c362: 8d 65 f4 lea -0xc(%ebp),%esp 10c365: 5b pop %ebx 10c366: 5e pop %esi 10c367: 5f pop %edi 10c368: c9 leave 10c369: c3 ret
10c36a: 66 90 xchg %ax,%ax <== NOT EXECUTED
Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id )
10c36c: b8 09 00 00 00 mov $0x9,%eax
); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
10c371: 8d 65 f4 lea -0xc(%ebp),%esp 10c374: 5b pop %ebx 10c375: 5e pop %esi 10c376: 5f pop %edi 10c377: c9 leave 10c378: c3 ret
0013c554 <rtems_rate_monotonic_get_status>: rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) {
13c554: 55 push %ebp 13c555: 89 e5 mov %esp,%ebp 13c557: 53 push %ebx 13c558: 83 ec 24 sub $0x24,%esp 13c55b: 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 )
13c55e: 85 db test %ebx,%ebx
13c560: 0f 84 92 00 00 00 je 13c5f8 <rtems_rate_monotonic_get_status+0xa4>
13c566: 50 push %eax 13c567: 8d 45 f4 lea -0xc(%ebp),%eax 13c56a: 50 push %eax 13c56b: ff 75 08 pushl 0x8(%ebp) 13c56e: 68 00 e6 16 00 push $0x16e600 13c573: e8 90 54 fd ff call 111a08 <_Objects_Get>
return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) {
13c578: 83 c4 10 add $0x10,%esp 13c57b: 8b 4d f4 mov -0xc(%ebp),%ecx 13c57e: 85 c9 test %ecx,%ecx
13c580: 74 0a je 13c58c <rtems_rate_monotonic_get_status+0x38>
13c582: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
13c587: 8b 5d fc mov -0x4(%ebp),%ebx 13c58a: c9 leave 13c58b: c3 ret
the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id;
13c58c: 8b 50 40 mov 0x40(%eax),%edx 13c58f: 8b 52 08 mov 0x8(%edx),%edx 13c592: 89 13 mov %edx,(%ebx)
status->state = the_period->state;
13c594: 8b 50 38 mov 0x38(%eax),%edx 13c597: 89 53 04 mov %edx,0x4(%ebx)
/* * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) {
13c59a: 85 d2 test %edx,%edx
13c59c: 75 2a jne 13c5c8 <rtems_rate_monotonic_get_status+0x74> #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timespec_Set_to_zero( &status->since_last_period );
13c59e: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 13c5a5: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
_Timespec_Set_to_zero( &status->executed_since_last_period );
13c5ac: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) 13c5b3: 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();
13c5ba: e8 41 5d fd ff call 112300 <_Thread_Enable_dispatch> 13c5bf: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
13c5c1: 8b 5d fc mov -0x4(%ebp),%ebx 13c5c4: c9 leave 13c5c5: c3 ret
13c5c6: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * Grab the current status. */ valid_status = _Rate_monotonic_Get_status(
13c5c8: 52 push %edx 13c5c9: 8d 55 ec lea -0x14(%ebp),%edx 13c5cc: 52 push %edx 13c5cd: 8d 55 e4 lea -0x1c(%ebp),%edx 13c5d0: 52 push %edx 13c5d1: 50 push %eax 13c5d2: e8 b1 00 00 00 call 13c688 <_Rate_monotonic_Get_status>
the_period, &since_last_period, &executed ); if (!valid_status) {
13c5d7: 83 c4 10 add $0x10,%esp 13c5da: 84 c0 test %al,%al
13c5dc: 74 26 je 13c604 <rtems_rate_monotonic_get_status+0xb0> _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec(
13c5de: 8b 45 e4 mov -0x1c(%ebp),%eax 13c5e1: 8b 55 e8 mov -0x18(%ebp),%edx 13c5e4: 89 43 08 mov %eax,0x8(%ebx) 13c5e7: 89 53 0c mov %edx,0xc(%ebx)
&since_last_period, &status->since_last_period ); _Timestamp_To_timespec(
13c5ea: 8b 45 ec mov -0x14(%ebp),%eax 13c5ed: 8b 55 f0 mov -0x10(%ebp),%edx 13c5f0: 89 43 10 mov %eax,0x10(%ebx) 13c5f3: 89 53 14 mov %edx,0x14(%ebx) 13c5f6: eb c2 jmp 13c5ba <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 )
13c5f8: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
13c5fd: 8b 5d fc mov -0x4(%ebp),%ebx 13c600: c9 leave 13c601: c3 ret
13c602: 66 90 xchg %ax,%ax <== NOT EXECUTED
valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); if (!valid_status) { _Thread_Enable_dispatch();
13c604: e8 f7 5c fd ff call 112300 <_Thread_Enable_dispatch> 13c609: b8 0b 00 00 00 mov $0xb,%eax
return RTEMS_NOT_DEFINED;
13c60e: e9 74 ff ff ff jmp 13c587 <rtems_rate_monotonic_get_status+0x33>
0013c810 <rtems_rate_monotonic_period>: rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) {
13c810: 55 push %ebp 13c811: 89 e5 mov %esp,%ebp 13c813: 57 push %edi 13c814: 56 push %esi 13c815: 53 push %ebx 13c816: 83 ec 30 sub $0x30,%esp 13c819: 8b 5d 08 mov 0x8(%ebp),%ebx 13c81c: 8b 75 0c mov 0xc(%ebp),%esi 13c81f: 8d 45 e4 lea -0x1c(%ebp),%eax 13c822: 50 push %eax 13c823: 53 push %ebx 13c824: 68 00 e6 16 00 push $0x16e600 13c829: e8 da 51 fd ff call 111a08 <_Objects_Get>
rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) {
13c82e: 83 c4 10 add $0x10,%esp 13c831: 8b 7d e4 mov -0x1c(%ebp),%edi 13c834: 85 ff test %edi,%edi
13c836: 74 10 je 13c848 <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;
13c838: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
13c83d: 8d 65 f4 lea -0xc(%ebp),%esp 13c840: 5b pop %ebx 13c841: 5e pop %esi 13c842: 5f pop %edi 13c843: c9 leave 13c844: c3 ret
13c845: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Thread_Is_executing( the_period->owner ) ) {
13c848: 8b 50 40 mov 0x40(%eax),%edx 13c84b: 3b 15 38 e1 16 00 cmp 0x16e138,%edx
13c851: 74 15 je 13c868 <rtems_rate_monotonic_period+0x58> _Thread_Enable_dispatch();
13c853: e8 a8 5a fd ff call 112300 <_Thread_Enable_dispatch> 13c858: b8 17 00 00 00 mov $0x17,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
13c85d: 8d 65 f4 lea -0xc(%ebp),%esp 13c860: 5b pop %ebx 13c861: 5e pop %esi 13c862: 5f pop %edi 13c863: c9 leave 13c864: c3 ret
13c865: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if ( !_Thread_Is_executing( the_period->owner ) ) { _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) {
13c868: 85 f6 test %esi,%esi
13c86a: 0f 84 b0 00 00 00 je 13c920 <rtems_rate_monotonic_period+0x110> } _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level );
13c870: 9c pushf 13c871: fa cli 13c872: 5f pop %edi
switch ( the_period->state ) {
13c873: 8b 50 38 mov 0x38(%eax),%edx 13c876: 83 fa 02 cmp $0x2,%edx
13c879: 0f 84 bd 00 00 00 je 13c93c <rtems_rate_monotonic_period+0x12c>
13c87f: 83 fa 04 cmp $0x4,%edx
13c882: 74 5c je 13c8e0 <rtems_rate_monotonic_period+0xd0>
13c884: 85 d2 test %edx,%edx
13c886: 75 b0 jne 13c838 <rtems_rate_monotonic_period+0x28><== ALWAYS TAKEN
case RATE_MONOTONIC_INACTIVE: { _ISR_Enable( level );
13c888: 57 push %edi 13c889: 9d popf
/* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period );
13c88a: 83 ec 0c sub $0xc,%esp 13c88d: 50 push %eax 13c88e: 89 45 d4 mov %eax,-0x2c(%ebp) 13c891: e8 7e fd ff ff call 13c614 <_Rate_monotonic_Initiate_statistics>
the_period->state = RATE_MONOTONIC_ACTIVE;
13c896: 8b 45 d4 mov -0x2c(%ebp),%eax 13c899: 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;
13c8a0: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax)
the_watchdog->routine = routine;
13c8a7: c7 40 2c c0 c9 13 00 movl $0x13c9c0,0x2c(%eax)
the_watchdog->id = id;
13c8ae: 89 58 30 mov %ebx,0x30(%eax)
the_watchdog->user_data = user_data;
13c8b1: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax)
_Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length;
13c8b8: 89 70 3c mov %esi,0x3c(%eax)
Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units;
13c8bb: 89 70 1c mov %esi,0x1c(%eax)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
13c8be: 5a pop %edx 13c8bf: 59 pop %ecx 13c8c0: 83 c0 10 add $0x10,%eax 13c8c3: 50 push %eax 13c8c4: 68 58 e1 16 00 push $0x16e158 13c8c9: e8 32 69 fd ff call 113200 <_Watchdog_Insert>
_Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch();
13c8ce: e8 2d 5a fd ff call 112300 <_Thread_Enable_dispatch> 13c8d3: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
13c8d5: 83 c4 10 add $0x10,%esp 13c8d8: e9 60 ff ff ff jmp 13c83d <rtems_rate_monotonic_period+0x2d>
13c8dd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
case RATE_MONOTONIC_EXPIRED: /* * Update statistics from the concluding period */ _Rate_monotonic_Update_statistics( the_period );
13c8e0: 83 ec 0c sub $0xc,%esp 13c8e3: 50 push %eax 13c8e4: 89 45 d4 mov %eax,-0x2c(%ebp) 13c8e7: e8 34 fe ff ff call 13c720 <_Rate_monotonic_Update_statistics>
_ISR_Enable( level );
13c8ec: 57 push %edi 13c8ed: 9d popf
the_period->state = RATE_MONOTONIC_ACTIVE;
13c8ee: 8b 45 d4 mov -0x2c(%ebp),%eax 13c8f1: c7 40 38 02 00 00 00 movl $0x2,0x38(%eax)
the_period->next_length = length;
13c8f8: 89 70 3c mov %esi,0x3c(%eax)
Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units;
13c8fb: 89 70 1c mov %esi,0x1c(%eax)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
13c8fe: 59 pop %ecx 13c8ff: 5b pop %ebx 13c900: 83 c0 10 add $0x10,%eax 13c903: 50 push %eax 13c904: 68 58 e1 16 00 push $0x16e158 13c909: e8 f2 68 fd ff call 113200 <_Watchdog_Insert>
_Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch();
13c90e: e8 ed 59 fd ff call 112300 <_Thread_Enable_dispatch> 13c913: b8 06 00 00 00 mov $0x6,%eax
return RTEMS_TIMEOUT;
13c918: 83 c4 10 add $0x10,%esp 13c91b: e9 1d ff ff ff jmp 13c83d <rtems_rate_monotonic_period+0x2d>
_Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { switch ( the_period->state ) {
13c920: 8b 40 38 mov 0x38(%eax),%eax 13c923: 83 f8 04 cmp $0x4,%eax
13c926: 76 74 jbe 13c99c <rtems_rate_monotonic_period+0x18c><== NEVER TAKEN
13c928: 31 c0 xor %eax,%eax <== NOT EXECUTED
case RATE_MONOTONIC_ACTIVE: default: /* unreached -- only to remove warnings */ return_value = RTEMS_SUCCESSFUL; break; } _Thread_Enable_dispatch();
13c92a: 89 45 d4 mov %eax,-0x2c(%ebp) 13c92d: e8 ce 59 fd ff call 112300 <_Thread_Enable_dispatch>
return( return_value );
13c932: 8b 45 d4 mov -0x2c(%ebp),%eax 13c935: e9 03 ff ff ff jmp 13c83d <rtems_rate_monotonic_period+0x2d>
13c93a: 66 90 xchg %ax,%ax <== NOT EXECUTED
case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period );
13c93c: 83 ec 0c sub $0xc,%esp 13c93f: 50 push %eax 13c940: 89 45 d4 mov %eax,-0x2c(%ebp) 13c943: e8 d8 fd ff ff call 13c720 <_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;
13c948: 8b 45 d4 mov -0x2c(%ebp),%eax 13c94b: c7 40 38 01 00 00 00 movl $0x1,0x38(%eax)
the_period->next_length = length;
13c952: 89 70 3c mov %esi,0x3c(%eax)
_ISR_Enable( level );
13c955: 57 push %edi 13c956: 9d popf
_Thread_Executing->Wait.id = the_period->Object.id;
13c957: 8b 15 38 e1 16 00 mov 0x16e138,%edx 13c95d: 8b 48 08 mov 0x8(%eax),%ecx 13c960: 89 4a 20 mov %ecx,0x20(%edx)
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
13c963: 5e pop %esi 13c964: 5f pop %edi 13c965: 68 00 40 00 00 push $0x4000 13c96a: 52 push %edx 13c96b: 89 45 d4 mov %eax,-0x2c(%ebp) 13c96e: e8 3d 62 fd ff call 112bb0 <_Thread_Set_state>
/* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level );
13c973: 9c pushf 13c974: fa cli 13c975: 59 pop %ecx
local_state = the_period->state;
13c976: 8b 45 d4 mov -0x2c(%ebp),%eax 13c979: 8b 50 38 mov 0x38(%eax),%edx
the_period->state = RATE_MONOTONIC_ACTIVE;
13c97c: c7 40 38 02 00 00 00 movl $0x2,0x38(%eax)
_ISR_Enable( level );
13c983: 51 push %ecx 13c984: 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 )
13c985: 83 c4 10 add $0x10,%esp 13c988: 83 fa 03 cmp $0x3,%edx
13c98b: 74 18 je 13c9a5 <rtems_rate_monotonic_period+0x195> _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); _Thread_Enable_dispatch();
13c98d: e8 6e 59 fd ff call 112300 <_Thread_Enable_dispatch> 13c992: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
13c994: e9 a4 fe ff ff jmp 13c83d <rtems_rate_monotonic_period+0x2d>
13c999: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { switch ( the_period->state ) {
13c99c: 8b 04 85 e4 29 16 00 mov 0x1629e4(,%eax,4),%eax 13c9a3: eb 85 jmp 13c92a <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 );
13c9a5: 83 ec 08 sub $0x8,%esp 13c9a8: 68 00 40 00 00 push $0x4000 13c9ad: ff 35 38 e1 16 00 pushl 0x16e138 13c9b3: e8 a0 55 fd ff call 111f58 <_Thread_Clear_state> 13c9b8: 83 c4 10 add $0x10,%esp 13c9bb: eb d0 jmp 13c98d <rtems_rate_monotonic_period+0x17d>
0012d1f8 <rtems_rate_monotonic_report_statistics_with_plugin>: */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) {
12d1f8: 55 push %ebp 12d1f9: 89 e5 mov %esp,%ebp 12d1fb: 57 push %edi 12d1fc: 56 push %esi 12d1fd: 53 push %ebx 12d1fe: 83 ec 7c sub $0x7c,%esp 12d201: 8b 7d 08 mov 0x8(%ebp),%edi 12d204: 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 )
12d207: 85 f6 test %esi,%esi
12d209: 0f 84 bd 00 00 00 je 12d2cc <rtems_rate_monotonic_report_statistics_with_plugin+0xd4><== ALWAYS TAKEN
return; (*print)( context, "Period information by period\n" );
12d20f: 83 ec 08 sub $0x8,%esp 12d212: 68 68 f0 15 00 push $0x15f068 12d217: 57 push %edi 12d218: ff d6 call *%esi
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" );
12d21a: 59 pop %ecx 12d21b: 5b pop %ebx 12d21c: 68 a0 f0 15 00 push $0x15f0a0 12d221: 57 push %edi 12d222: ff d6 call *%esi
(*print)( context, "--- Wall times are in seconds ---\n" );
12d224: 58 pop %eax 12d225: 5a pop %edx 12d226: 68 c4 f0 15 00 push $0x15f0c4 12d22b: 57 push %edi 12d22c: ff d6 call *%esi
Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED "
12d22e: 59 pop %ecx 12d22f: 5b pop %ebx 12d230: 68 e8 f0 15 00 push $0x15f0e8 12d235: 57 push %edi 12d236: ff d6 call *%esi
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " "
12d238: 58 pop %eax 12d239: 5a pop %edx 12d23a: 68 34 f1 15 00 push $0x15f134 12d23f: 57 push %edi 12d240: 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 ;
12d242: 8b 1d 08 e6 16 00 mov 0x16e608,%ebx 12d248: 83 c4 10 add $0x10,%esp 12d24b: 3b 1d 0c e6 16 00 cmp 0x16e60c,%ebx
12d251: 77 79 ja 12d2cc <rtems_rate_monotonic_report_statistics_with_plugin+0xd4><== ALWAYS 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);
12d253: 89 75 84 mov %esi,-0x7c(%ebp) 12d256: eb 09 jmp 12d261 <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++ ) {
12d258: 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 ;
12d259: 39 1d 0c e6 16 00 cmp %ebx,0x16e60c
12d25f: 72 6b jb 12d2cc <rtems_rate_monotonic_report_statistics_with_plugin+0xd4> id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats );
12d261: 83 ec 08 sub $0x8,%esp 12d264: 8d 45 88 lea -0x78(%ebp),%eax 12d267: 50 push %eax 12d268: 53 push %ebx 12d269: e8 3a f2 00 00 call 13c4a8 <rtems_rate_monotonic_get_statistics>
if ( status != RTEMS_SUCCESSFUL )
12d26e: 83 c4 10 add $0x10,%esp 12d271: 85 c0 test %eax,%eax
12d273: 75 e3 jne 12d258 <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 );
12d275: 83 ec 08 sub $0x8,%esp 12d278: 8d 55 c0 lea -0x40(%ebp),%edx 12d27b: 52 push %edx 12d27c: 53 push %ebx 12d27d: e8 d2 f2 00 00 call 13c554 <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 );
12d282: 83 c4 0c add $0xc,%esp 12d285: 8d 45 e3 lea -0x1d(%ebp),%eax 12d288: 50 push %eax 12d289: 6a 05 push $0x5 12d28b: ff 75 c0 pushl -0x40(%ebp) 12d28e: e8 7d 2b fe ff call 10fe10 <rtems_object_get_name>
/* * Print part of report line that is not dependent on granularity */ (*print)( context,
12d293: 59 pop %ecx 12d294: 5e pop %esi 12d295: ff 75 8c pushl -0x74(%ebp) 12d298: ff 75 88 pushl -0x78(%ebp) 12d29b: 8d 55 e3 lea -0x1d(%ebp),%edx 12d29e: 52 push %edx 12d29f: 53 push %ebx 12d2a0: 68 86 f0 15 00 push $0x15f086 12d2a5: 57 push %edi 12d2a6: ff 55 84 call *-0x7c(%ebp)
); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) {
12d2a9: 8b 45 88 mov -0x78(%ebp),%eax 12d2ac: 83 c4 20 add $0x20,%esp 12d2af: 85 c0 test %eax,%eax
12d2b1: 75 21 jne 12d2d4 <rtems_rate_monotonic_report_statistics_with_plugin+0xdc> (*print)( context, "\n" );
12d2b3: 83 ec 08 sub $0x8,%esp 12d2b6: 68 61 0e 16 00 push $0x160e61 12d2bb: 57 push %edi 12d2bc: ff 55 84 call *-0x7c(%ebp)
continue;
12d2bf: 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++ ) {
12d2c2: 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 ;
12d2c3: 39 1d 0c e6 16 00 cmp %ebx,0x16e60c
12d2c9: 73 96 jae 12d261 <rtems_rate_monotonic_report_statistics_with_plugin+0x69><== NEVER TAKEN
12d2cb: 90 nop <== NOT EXECUTED
the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } }
12d2cc: 8d 65 f4 lea -0xc(%ebp),%esp 12d2cf: 5b pop %ebx 12d2d0: 5e pop %esi 12d2d1: 5f pop %edi 12d2d2: c9 leave 12d2d3: 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 );
12d2d4: 52 push %edx 12d2d5: 8d 55 d8 lea -0x28(%ebp),%edx 12d2d8: 52 push %edx 12d2d9: 50 push %eax 12d2da: 8d 45 a0 lea -0x60(%ebp),%eax 12d2dd: 50 push %eax 12d2de: e8 a5 16 00 00 call 12e988 <_Timespec_Divide_by_integer>
(*print)( context,
12d2e3: 8b 4d dc mov -0x24(%ebp),%ecx 12d2e6: be d3 4d 62 10 mov $0x10624dd3,%esi 12d2eb: 89 c8 mov %ecx,%eax 12d2ed: f7 ee imul %esi 12d2ef: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d2f5: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d2fb: c1 f8 06 sar $0x6,%eax 12d2fe: c1 f9 1f sar $0x1f,%ecx 12d301: 29 c8 sub %ecx,%eax 12d303: 50 push %eax 12d304: ff 75 d8 pushl -0x28(%ebp) 12d307: 8b 4d 9c mov -0x64(%ebp),%ecx 12d30a: 89 c8 mov %ecx,%eax 12d30c: f7 ee imul %esi 12d30e: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d314: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d31a: c1 f8 06 sar $0x6,%eax 12d31d: c1 f9 1f sar $0x1f,%ecx 12d320: 29 c8 sub %ecx,%eax 12d322: 50 push %eax 12d323: ff 75 98 pushl -0x68(%ebp) 12d326: 8b 4d 94 mov -0x6c(%ebp),%ecx 12d329: 89 c8 mov %ecx,%eax 12d32b: f7 ee imul %esi 12d32d: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) 12d333: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d339: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d33f: c1 f8 06 sar $0x6,%eax 12d342: c1 f9 1f sar $0x1f,%ecx 12d345: 29 c8 sub %ecx,%eax 12d347: 50 push %eax 12d348: ff 75 90 pushl -0x70(%ebp) 12d34b: 68 80 f1 15 00 push $0x15f180 12d350: 57 push %edi 12d351: 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);
12d354: 83 c4 2c add $0x2c,%esp 12d357: 8d 55 d8 lea -0x28(%ebp),%edx 12d35a: 52 push %edx 12d35b: ff 75 88 pushl -0x78(%ebp) 12d35e: 8d 45 b8 lea -0x48(%ebp),%eax 12d361: 50 push %eax 12d362: e8 21 16 00 00 call 12e988 <_Timespec_Divide_by_integer>
(*print)( context,
12d367: 8b 4d dc mov -0x24(%ebp),%ecx 12d36a: 89 c8 mov %ecx,%eax 12d36c: f7 ee imul %esi 12d36e: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d374: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d37a: c1 f8 06 sar $0x6,%eax 12d37d: c1 f9 1f sar $0x1f,%ecx 12d380: 29 c8 sub %ecx,%eax 12d382: 50 push %eax 12d383: ff 75 d8 pushl -0x28(%ebp) 12d386: 8b 4d b4 mov -0x4c(%ebp),%ecx 12d389: 89 c8 mov %ecx,%eax 12d38b: f7 ee imul %esi 12d38d: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d393: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d399: c1 f8 06 sar $0x6,%eax 12d39c: c1 f9 1f sar $0x1f,%ecx 12d39f: 29 c8 sub %ecx,%eax 12d3a1: 50 push %eax 12d3a2: ff 75 b0 pushl -0x50(%ebp) 12d3a5: 8b 4d ac mov -0x54(%ebp),%ecx 12d3a8: 89 c8 mov %ecx,%eax 12d3aa: f7 ee imul %esi 12d3ac: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) 12d3b2: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d3b8: 8b b5 7c ff ff ff mov -0x84(%ebp),%esi 12d3be: c1 fe 06 sar $0x6,%esi 12d3c1: 89 c8 mov %ecx,%eax 12d3c3: 99 cltd 12d3c4: 29 d6 sub %edx,%esi 12d3c6: 56 push %esi 12d3c7: ff 75 a8 pushl -0x58(%ebp) 12d3ca: 68 a0 f1 15 00 push $0x15f1a0 12d3cf: 57 push %edi 12d3d0: ff 55 84 call *-0x7c(%ebp) 12d3d3: 83 c4 30 add $0x30,%esp 12d3d6: e9 7d fe ff ff jmp 12d258 <rtems_rate_monotonic_report_statistics_with_plugin+0x60>
0012d3f4 <rtems_rate_monotonic_reset_all_statistics>: /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) {
12d3f4: 55 push %ebp 12d3f5: 89 e5 mov %esp,%ebp 12d3f7: 53 push %ebx 12d3f8: 83 ec 04 sub $0x4,%esp 12d3fb: a1 78 e0 16 00 mov 0x16e078,%eax 12d400: 40 inc %eax 12d401: a3 78 e0 16 00 mov %eax,0x16e078
/* * 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 ;
12d406: 8b 1d 08 e6 16 00 mov 0x16e608,%ebx 12d40c: 3b 1d 0c e6 16 00 cmp 0x16e60c,%ebx
12d412: 77 15 ja 12d429 <rtems_rate_monotonic_reset_all_statistics+0x35><== ALWAYS TAKEN
id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_reset_statistics( id );
12d414: 83 ec 0c sub $0xc,%esp 12d417: 53 push %ebx 12d418: e8 17 00 00 00 call 12d434 <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++ ) {
12d41d: 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 ;
12d41e: 83 c4 10 add $0x10,%esp 12d421: 39 1d 0c e6 16 00 cmp %ebx,0x16e60c
12d427: 73 eb jae 12d414 <rtems_rate_monotonic_reset_all_statistics+0x20> /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); }
12d429: 8b 5d fc mov -0x4(%ebp),%ebx 12d42c: c9 leave
} /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch();
12d42d: e9 ce 4e fe ff jmp 112300 <_Thread_Enable_dispatch>
0012d434 <rtems_rate_monotonic_reset_statistics>: */ rtems_status_code rtems_rate_monotonic_reset_statistics( rtems_id id ) {
12d434: 55 push %ebp 12d435: 89 e5 mov %esp,%ebp 12d437: 57 push %edi 12d438: 53 push %ebx 12d439: 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 *)
12d43c: 8d 45 f4 lea -0xc(%ebp),%eax 12d43f: 50 push %eax 12d440: ff 75 08 pushl 0x8(%ebp) 12d443: 68 00 e6 16 00 push $0x16e600 12d448: e8 bb 45 fe ff call 111a08 <_Objects_Get> 12d44d: 89 c2 mov %eax,%edx
Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) {
12d44f: 83 c4 10 add $0x10,%esp 12d452: 8b 45 f4 mov -0xc(%ebp),%eax 12d455: 85 c0 test %eax,%eax
12d457: 75 3b jne 12d494 <rtems_rate_monotonic_reset_statistics+0x60> case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period );
12d459: 8d 5a 54 lea 0x54(%edx),%ebx 12d45c: b9 38 00 00 00 mov $0x38,%ecx 12d461: 31 c0 xor %eax,%eax 12d463: 89 df mov %ebx,%edi 12d465: f3 aa rep stos %al,%es:(%edi) 12d467: c7 42 5c ff ff ff 7f movl $0x7fffffff,0x5c(%edx) 12d46e: c7 42 60 ff ff ff 7f movl $0x7fffffff,0x60(%edx) 12d475: c7 42 74 ff ff ff 7f movl $0x7fffffff,0x74(%edx) 12d47c: c7 42 78 ff ff ff 7f movl $0x7fffffff,0x78(%edx)
_Thread_Enable_dispatch();
12d483: e8 78 4e fe ff call 112300 <_Thread_Enable_dispatch> 12d488: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
12d48a: 8d 65 f8 lea -0x8(%ebp),%esp 12d48d: 5b pop %ebx 12d48e: 5f pop %edi 12d48f: c9 leave 12d490: c3 ret
12d491: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{ Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) {
12d494: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
12d499: 8d 65 f8 lea -0x8(%ebp),%esp 12d49c: 5b pop %ebx 12d49d: 5f pop %edi 12d49e: c9 leave 12d49f: c3 ret
00117470 <rtems_region_create>: uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) {
117470: 55 push %ebp 117471: 89 e5 mov %esp,%ebp 117473: 57 push %edi 117474: 56 push %esi 117475: 53 push %ebx 117476: 83 ec 1c sub $0x1c,%esp 117479: 8b 75 08 mov 0x8(%ebp),%esi 11747c: 8b 5d 0c mov 0xc(%ebp),%ebx 11747f: 8b 7d 1c mov 0x1c(%ebp),%edi
rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) )
117482: 85 f6 test %esi,%esi
117484: 0f 84 92 00 00 00 je 11751c <rtems_region_create+0xac> return RTEMS_INVALID_NAME; if ( !starting_address )
11748a: 85 db test %ebx,%ebx
11748c: 74 09 je 117497 <rtems_region_create+0x27> return RTEMS_INVALID_ADDRESS; if ( !id )
11748e: 85 ff test %edi,%edi
117490: 74 05 je 117497 <rtems_region_create+0x27> return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( starting_address ) )
117492: f6 c3 03 test $0x3,%bl
117495: 74 0d je 1174a4 <rtems_region_create+0x34> return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); return return_status;
117497: b8 09 00 00 00 mov $0x9,%eax
}
11749c: 8d 65 f4 lea -0xc(%ebp),%esp 11749f: 5b pop %ebx 1174a0: 5e pop %esi 1174a1: 5f pop %edi 1174a2: c9 leave 1174a3: c3 ret
return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( starting_address ) ) return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */
1174a4: 83 ec 0c sub $0xc,%esp 1174a7: ff 35 30 08 14 00 pushl 0x140830 1174ad: e8 fe 24 00 00 call 1199b0 <_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 );
1174b2: c7 04 24 80 06 14 00 movl $0x140680,(%esp) 1174b9: e8 3a 38 00 00 call 11acf8 <_Objects_Allocate> 1174be: 89 c2 mov %eax,%edx
the_region = _Region_Allocate(); if ( !the_region )
1174c0: 83 c4 10 add $0x10,%esp 1174c3: 85 c0 test %eax,%eax
1174c5: 74 65 je 11752c <rtems_region_create+0xbc> return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize(
1174c7: ff 75 14 pushl 0x14(%ebp) 1174ca: ff 75 10 pushl 0x10(%ebp) 1174cd: 53 push %ebx 1174ce: 8d 40 68 lea 0x68(%eax),%eax 1174d1: 50 push %eax 1174d2: 89 55 e4 mov %edx,-0x1c(%ebp) 1174d5: e8 02 33 00 00 call 11a7dc <_Heap_Initialize> 1174da: 8b 55 e4 mov -0x1c(%ebp),%edx 1174dd: 89 42 5c mov %eax,0x5c(%edx)
&the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) {
1174e0: 83 c4 10 add $0x10,%esp 1174e3: 85 c0 test %eax,%eax
1174e5: 75 4d jne 117534 <rtems_region_create+0xc4> */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object );
1174e7: 83 ec 08 sub $0x8,%esp 1174ea: 52 push %edx 1174eb: 68 80 06 14 00 push $0x140680 1174f0: e8 83 3b 00 00 call 11b078 <_Objects_Free> 1174f5: b8 08 00 00 00 mov $0x8,%eax 1174fa: 83 c4 10 add $0x10,%esp
*id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator();
1174fd: 83 ec 0c sub $0xc,%esp 117500: ff 35 30 08 14 00 pushl 0x140830 117506: 89 45 e4 mov %eax,-0x1c(%ebp) 117509: e8 ea 24 00 00 call 1199f8 <_API_Mutex_Unlock>
return return_status;
11750e: 83 c4 10 add $0x10,%esp 117511: 8b 45 e4 mov -0x1c(%ebp),%eax
}
117514: 8d 65 f4 lea -0xc(%ebp),%esp 117517: 5b pop %ebx 117518: 5e pop %esi 117519: 5f pop %edi 11751a: c9 leave 11751b: c3 ret
) { rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) )
11751c: b8 03 00 00 00 mov $0x3,%eax
} } _RTEMS_Unlock_allocator(); return return_status; }
117521: 8d 65 f4 lea -0xc(%ebp),%esp 117524: 5b pop %ebx 117525: 5e pop %esi 117526: 5f pop %edi 117527: c9 leave 117528: c3 ret
117529: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Allocate(); if ( !the_region )
11752c: b8 05 00 00 00 mov $0x5,%eax 117531: eb ca jmp 1174fd <rtems_region_create+0x8d>
117533: 90 nop <== NOT EXECUTED
return_status = RTEMS_INVALID_SIZE; } else { the_region->starting_address = starting_address;
117534: 89 5a 50 mov %ebx,0x50(%edx)
the_region->length = length;
117537: 8b 45 10 mov 0x10(%ebp),%eax 11753a: 89 42 54 mov %eax,0x54(%edx)
the_region->page_size = page_size;
11753d: 8b 45 14 mov 0x14(%ebp),%eax 117540: 89 42 58 mov %eax,0x58(%edx)
the_region->attribute_set = attribute_set;
117543: 8b 45 18 mov 0x18(%ebp),%eax 117546: 89 42 60 mov %eax,0x60(%edx)
the_region->number_of_used_blocks = 0;
117549: c7 42 64 00 00 00 00 movl $0x0,0x64(%edx)
_Thread_queue_Initialize(
117550: 6a 06 push $0x6 117552: 6a 40 push $0x40 117554: 8b 45 18 mov 0x18(%ebp),%eax 117557: c1 e8 02 shr $0x2,%eax 11755a: 83 e0 01 and $0x1,%eax 11755d: 50 push %eax 11755e: 8d 42 10 lea 0x10(%edx),%eax 117561: 50 push %eax 117562: 89 55 e4 mov %edx,-0x1c(%ebp) 117565: e8 b2 4c 00 00 call 11c21c <_Thread_queue_Initialize>
#if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object;
11756a: 8b 55 e4 mov -0x1c(%ebp),%edx 11756d: 8b 42 08 mov 0x8(%edx),%eax 117570: 0f b7 d8 movzwl %ax,%ebx 117573: 8b 0d 9c 06 14 00 mov 0x14069c,%ecx 117579: 89 14 99 mov %edx,(%ecx,%ebx,4)
information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name;
11757c: 89 72 0c mov %esi,0xc(%edx)
&_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id;
11757f: 89 07 mov %eax,(%edi) 117581: 31 c0 xor %eax,%eax 117583: 83 c4 10 add $0x10,%esp 117586: e9 72 ff ff ff jmp 1174fd <rtems_region_create+0x8d>
0011758c <rtems_region_delete>: */ rtems_status_code rtems_region_delete( rtems_id id ) {
11758c: 55 push %ebp 11758d: 89 e5 mov %esp,%ebp 11758f: 53 push %ebx 117590: 83 ec 30 sub $0x30,%esp
Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator();
117593: ff 35 30 08 14 00 pushl 0x140830 117599: e8 12 24 00 00 call 1199b0 <_API_Mutex_Lock>
RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *)
11759e: 83 c4 0c add $0xc,%esp 1175a1: 8d 45 f4 lea -0xc(%ebp),%eax 1175a4: 50 push %eax 1175a5: ff 75 08 pushl 0x8(%ebp) 1175a8: 68 80 06 14 00 push $0x140680 1175ad: e8 f6 3b 00 00 call 11b1a8 <_Objects_Get_no_protection>
the_region = _Region_Get( id, &location ); switch ( location ) {
1175b2: 83 c4 10 add $0x10,%esp 1175b5: 8b 5d f4 mov -0xc(%ebp),%ebx 1175b8: 85 db test %ebx,%ebx
1175ba: 74 1c je 1175d8 <rtems_region_delete+0x4c>
1175bc: bb 04 00 00 00 mov $0x4,%ebx
default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator();
1175c1: 83 ec 0c sub $0xc,%esp 1175c4: ff 35 30 08 14 00 pushl 0x140830 1175ca: e8 29 24 00 00 call 1199f8 <_API_Mutex_Unlock>
return return_status; }
1175cf: 89 d8 mov %ebx,%eax 1175d1: 8b 5d fc mov -0x4(%ebp),%ebx 1175d4: c9 leave 1175d5: c3 ret
1175d6: 66 90 xchg %ax,%ax <== NOT EXECUTED
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 )
1175d8: 8b 48 64 mov 0x64(%eax),%ecx 1175db: 85 c9 test %ecx,%ecx
1175dd: 74 09 je 1175e8 <rtems_region_delete+0x5c>
1175df: bb 0c 00 00 00 mov $0xc,%ebx 1175e4: eb db jmp 1175c1 <rtems_region_delete+0x35>
1175e6: 66 90 xchg %ax,%ax <== NOT EXECUTED
return_status = RTEMS_RESOURCE_IN_USE; else { _Objects_Close( &_Region_Information, &the_region->Object );
1175e8: 83 ec 08 sub $0x8,%esp 1175eb: 50 push %eax 1175ec: 68 80 06 14 00 push $0x140680 1175f1: 89 45 e4 mov %eax,-0x1c(%ebp) 1175f4: e8 7b 37 00 00 call 11ad74 <_Objects_Close>
*/ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object );
1175f9: 58 pop %eax 1175fa: 5a pop %edx 1175fb: 8b 45 e4 mov -0x1c(%ebp),%eax 1175fe: 50 push %eax 1175ff: 68 80 06 14 00 push $0x140680 117604: e8 6f 3a 00 00 call 11b078 <_Objects_Free> 117609: 31 db xor %ebx,%ebx 11760b: 83 c4 10 add $0x10,%esp 11760e: eb b1 jmp 1175c1 <rtems_region_delete+0x35>
00117610 <rtems_region_extend>: rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) {
117610: 55 push %ebp 117611: 89 e5 mov %esp,%ebp 117613: 56 push %esi 117614: 53 push %ebx 117615: 83 ec 10 sub $0x10,%esp 117618: 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 )
11761b: 85 db test %ebx,%ebx
11761d: 74 71 je 117690 <rtems_region_extend+0x80> return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */
11761f: 83 ec 0c sub $0xc,%esp 117622: ff 35 30 08 14 00 pushl 0x140830 117628: e8 83 23 00 00 call 1199b0 <_API_Mutex_Lock>
RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *)
11762d: 83 c4 0c add $0xc,%esp 117630: 8d 45 f0 lea -0x10(%ebp),%eax 117633: 50 push %eax 117634: ff 75 08 pushl 0x8(%ebp) 117637: 68 80 06 14 00 push $0x140680 11763c: e8 67 3b 00 00 call 11b1a8 <_Objects_Get_no_protection> 117641: 89 c6 mov %eax,%esi
the_region = _Region_Get( id, &location ); switch ( location ) {
117643: 83 c4 10 add $0x10,%esp 117646: 8b 45 f0 mov -0x10(%ebp),%eax 117649: 85 c0 test %eax,%eax
11764b: 74 1f je 11766c <rtems_region_extend+0x5c>
11764d: bb 04 00 00 00 mov $0x4,%ebx
default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator();
117652: 83 ec 0c sub $0xc,%esp 117655: ff 35 30 08 14 00 pushl 0x140830 11765b: e8 98 23 00 00 call 1199f8 <_API_Mutex_Unlock>
return return_status;
117660: 83 c4 10 add $0x10,%esp
}
117663: 89 d8 mov %ebx,%eax 117665: 8d 65 f8 lea -0x8(%ebp),%esp 117668: 5b pop %ebx 117669: 5e pop %esi 11766a: c9 leave 11766b: c3 ret
the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: heap_status = _Heap_Extend(
11766c: 8d 45 f4 lea -0xc(%ebp),%eax 11766f: 50 push %eax 117670: ff 75 10 pushl 0x10(%ebp) 117673: 53 push %ebx 117674: 8d 46 68 lea 0x68(%esi),%eax 117677: 50 push %eax 117678: e8 67 2e 00 00 call 11a4e4 <_Heap_Extend>
starting_address, length, &amount_extended ); if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) {
11767d: 83 c4 10 add $0x10,%esp 117680: 85 c0 test %eax,%eax
117682: 74 18 je 11769c <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 ) {
117684: 48 dec %eax
117685: 74 25 je 1176ac <rtems_region_extend+0x9c>
117687: bb 18 00 00 00 mov $0x18,%ebx 11768c: eb c4 jmp 117652 <rtems_region_extend+0x42>
11768e: 66 90 xchg %ax,%ax <== NOT EXECUTED
Heap_Extend_status heap_status; Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; if ( !starting_address )
117690: b3 09 mov $0x9,%bl
break; } _RTEMS_Unlock_allocator(); return return_status; }
117692: 89 d8 mov %ebx,%eax 117694: 8d 65 f8 lea -0x8(%ebp),%esp 117697: 5b pop %ebx 117698: 5e pop %esi 117699: c9 leave 11769a: c3 ret
11769b: 90 nop <== NOT EXECUTED
length, &amount_extended ); if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) { the_region->length += amount_extended;
11769c: 8b 45 f4 mov -0xc(%ebp),%eax 11769f: 01 46 54 add %eax,0x54(%esi)
the_region->maximum_segment_size += amount_extended;
1176a2: 01 46 5c add %eax,0x5c(%esi) 1176a5: 31 db xor %ebx,%ebx 1176a7: eb a9 jmp 117652 <rtems_region_extend+0x42>
1176a9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return_status = RTEMS_SUCCESSFUL; } else if ( heap_status == HEAP_EXTEND_ERROR ) {
1176ac: bb 09 00 00 00 mov $0x9,%ebx 1176b1: eb 9f jmp 117652 <rtems_region_extend+0x42>
001176b4 <rtems_region_get_free_information>: rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) {
1176b4: 55 push %ebp 1176b5: 89 e5 mov %esp,%ebp 1176b7: 53 push %ebx 1176b8: 83 ec 14 sub $0x14,%esp 1176bb: 8b 5d 0c mov 0xc(%ebp),%ebx
Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info )
1176be: 85 db test %ebx,%ebx
1176c0: 74 76 je 117738 <rtems_region_get_free_information+0x84> return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator();
1176c2: 83 ec 0c sub $0xc,%esp 1176c5: ff 35 30 08 14 00 pushl 0x140830 1176cb: e8 e0 22 00 00 call 1199b0 <_API_Mutex_Lock> 1176d0: 83 c4 0c add $0xc,%esp 1176d3: 8d 45 f4 lea -0xc(%ebp),%eax 1176d6: 50 push %eax 1176d7: ff 75 08 pushl 0x8(%ebp) 1176da: 68 80 06 14 00 push $0x140680 1176df: e8 c4 3a 00 00 call 11b1a8 <_Objects_Get_no_protection>
the_region = _Region_Get( id, &location ); switch ( location ) {
1176e4: 83 c4 10 add $0x10,%esp 1176e7: 8b 55 f4 mov -0xc(%ebp),%edx 1176ea: 85 d2 test %edx,%edx
1176ec: 74 1e je 11770c <rtems_region_get_free_information+0x58>
1176ee: bb 04 00 00 00 mov $0x4,%ebx
default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator();
1176f3: 83 ec 0c sub $0xc,%esp 1176f6: ff 35 30 08 14 00 pushl 0x140830 1176fc: e8 f7 22 00 00 call 1199f8 <_API_Mutex_Unlock>
return return_status;
117701: 83 c4 10 add $0x10,%esp
}
117704: 89 d8 mov %ebx,%eax 117706: 8b 5d fc mov -0x4(%ebp),%ebx 117709: c9 leave 11770a: c3 ret
11770b: 90 nop <== NOT EXECUTED
the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->Used.number = 0;
11770c: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
the_info->Used.total = 0;
117713: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx)
the_info->Used.largest = 0;
11771a: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx)
_Heap_Get_free_information( &the_region->Memory, &the_info->Free );
117721: 83 ec 08 sub $0x8,%esp 117724: 53 push %ebx 117725: 83 c0 68 add $0x68,%eax 117728: 50 push %eax 117729: e8 c6 2f 00 00 call 11a6f4 <_Heap_Get_free_information> 11772e: 31 db xor %ebx,%ebx
return_status = RTEMS_SUCCESSFUL; break;
117730: 83 c4 10 add $0x10,%esp 117733: eb be jmp 1176f3 <rtems_region_get_free_information+0x3f>
117735: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{ Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info )
117738: b3 09 mov $0x9,%bl
break; } _RTEMS_Unlock_allocator(); return return_status; }
11773a: 89 d8 mov %ebx,%eax 11773c: 8b 5d fc mov -0x4(%ebp),%ebx 11773f: c9 leave 117740: c3 ret
00117744 <rtems_region_get_information>: rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) {
117744: 55 push %ebp 117745: 89 e5 mov %esp,%ebp 117747: 53 push %ebx 117748: 83 ec 14 sub $0x14,%esp 11774b: 8b 5d 0c mov 0xc(%ebp),%ebx
Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info )
11774e: 85 db test %ebx,%ebx
117750: 74 5e je 1177b0 <rtems_region_get_information+0x6c> return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator();
117752: 83 ec 0c sub $0xc,%esp 117755: ff 35 30 08 14 00 pushl 0x140830 11775b: e8 50 22 00 00 call 1199b0 <_API_Mutex_Lock> 117760: 83 c4 0c add $0xc,%esp 117763: 8d 45 f4 lea -0xc(%ebp),%eax 117766: 50 push %eax 117767: ff 75 08 pushl 0x8(%ebp) 11776a: 68 80 06 14 00 push $0x140680 11776f: e8 34 3a 00 00 call 11b1a8 <_Objects_Get_no_protection>
the_region = _Region_Get( id, &location ); switch ( location ) {
117774: 83 c4 10 add $0x10,%esp 117777: 8b 55 f4 mov -0xc(%ebp),%edx 11777a: 85 d2 test %edx,%edx
11777c: 74 1e je 11779c <rtems_region_get_information+0x58>
11777e: bb 04 00 00 00 mov $0x4,%ebx
default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator();
117783: 83 ec 0c sub $0xc,%esp 117786: ff 35 30 08 14 00 pushl 0x140830 11778c: e8 67 22 00 00 call 1199f8 <_API_Mutex_Unlock>
return return_status;
117791: 83 c4 10 add $0x10,%esp
}
117794: 89 d8 mov %ebx,%eax 117796: 8b 5d fc mov -0x4(%ebp),%ebx 117799: c9 leave 11779a: c3 ret
11779b: 90 nop <== NOT EXECUTED
the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: _Heap_Get_information( &the_region->Memory, the_info );
11779c: 83 ec 08 sub $0x8,%esp 11779f: 53 push %ebx 1177a0: 83 c0 68 add $0x68,%eax 1177a3: 50 push %eax 1177a4: e8 a3 2f 00 00 call 11a74c <_Heap_Get_information> 1177a9: 31 db xor %ebx,%ebx
return_status = RTEMS_SUCCESSFUL; break;
1177ab: 83 c4 10 add $0x10,%esp 1177ae: eb d3 jmp 117783 <rtems_region_get_information+0x3f>
{ Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info )
1177b0: b3 09 mov $0x9,%bl
break; } _RTEMS_Unlock_allocator(); return return_status; }
1177b2: 89 d8 mov %ebx,%eax 1177b4: 8b 5d fc mov -0x4(%ebp),%ebx 1177b7: c9 leave 1177b8: c3 ret
001177bc <rtems_region_get_segment>: uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) {
1177bc: 55 push %ebp 1177bd: 89 e5 mov %esp,%ebp 1177bf: 57 push %edi 1177c0: 56 push %esi 1177c1: 53 push %ebx 1177c2: 83 ec 2c sub $0x2c,%esp 1177c5: 8b 75 0c mov 0xc(%ebp),%esi 1177c8: 8b 5d 18 mov 0x18(%ebp),%ebx
Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment )
1177cb: 85 db test %ebx,%ebx
1177cd: 0f 84 a1 00 00 00 je 117874 <rtems_region_get_segment+0xb8> return RTEMS_INVALID_ADDRESS; *segment = NULL;
1177d3: c7 03 00 00 00 00 movl $0x0,(%ebx)
if ( size == 0 )
1177d9: 85 f6 test %esi,%esi
1177db: 75 0f jne 1177ec <rtems_region_get_segment+0x30>
1177dd: b8 08 00 00 00 mov $0x8,%eax
break; } _RTEMS_Unlock_allocator(); return return_status; }
1177e2: 8d 65 f4 lea -0xc(%ebp),%esp 1177e5: 5b pop %ebx 1177e6: 5e pop %esi 1177e7: 5f pop %edi 1177e8: c9 leave 1177e9: c3 ret
1177ea: 66 90 xchg %ax,%ax <== NOT EXECUTED
*segment = NULL; if ( size == 0 ) return RTEMS_INVALID_SIZE; _RTEMS_Lock_allocator();
1177ec: 83 ec 0c sub $0xc,%esp 1177ef: ff 35 30 08 14 00 pushl 0x140830 1177f5: e8 b6 21 00 00 call 1199b0 <_API_Mutex_Lock>
executing = _Thread_Executing;
1177fa: a1 38 08 14 00 mov 0x140838,%eax 1177ff: 89 45 d4 mov %eax,-0x2c(%ebp) 117802: 83 c4 0c add $0xc,%esp 117805: 8d 45 e4 lea -0x1c(%ebp),%eax 117808: 50 push %eax 117809: ff 75 08 pushl 0x8(%ebp) 11780c: 68 80 06 14 00 push $0x140680 117811: e8 92 39 00 00 call 11b1a8 <_Objects_Get_no_protection> 117816: 89 c7 mov %eax,%edi
the_region = _Region_Get( id, &location ); switch ( location ) {
117818: 83 c4 10 add $0x10,%esp 11781b: 8b 45 e4 mov -0x1c(%ebp),%eax 11781e: 85 c0 test %eax,%eax
117820: 75 2a jne 11784c <rtems_region_get_segment+0x90> case OBJECTS_LOCAL: if ( size > the_region->maximum_segment_size )
117822: 3b 77 5c cmp 0x5c(%edi),%esi
117825: 76 2d jbe 117854 <rtems_region_get_segment+0x98>
117827: b8 08 00 00 00 mov $0x8,%eax
default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator();
11782c: 83 ec 0c sub $0xc,%esp 11782f: ff 35 30 08 14 00 pushl 0x140830 117835: 89 45 d0 mov %eax,-0x30(%ebp) 117838: e8 bb 21 00 00 call 1199f8 <_API_Mutex_Unlock>
return return_status;
11783d: 83 c4 10 add $0x10,%esp 117840: 8b 45 d0 mov -0x30(%ebp),%eax
}
117843: 8d 65 f4 lea -0xc(%ebp),%esp 117846: 5b pop %ebx 117847: 5e pop %esi 117848: 5f pop %edi 117849: c9 leave 11784a: c3 ret
11784b: 90 nop <== NOT EXECUTED
_Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); _Thread_Enable_dispatch(); return (rtems_status_code) executing->Wait.return_code;
11784c: b8 04 00 00 00 mov $0x4,%eax 117851: eb d9 jmp 11782c <rtems_region_get_segment+0x70>
117853: 90 nop <== NOT EXECUTED
* @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 );
117854: 6a 00 push $0x0 117856: 6a 00 push $0x0 117858: 56 push %esi 117859: 8d 47 68 lea 0x68(%edi),%eax 11785c: 50 push %eax 11785d: e8 ce 2a 00 00 call 11a330 <_Heap_Allocate_aligned_with_boundary>
the_segment = _Region_Allocate_segment( the_region, size ); _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) {
117862: 83 c4 10 add $0x10,%esp 117865: 85 c0 test %eax,%eax
117867: 74 17 je 117880 <rtems_region_get_segment+0xc4> the_region->number_of_used_blocks += 1;
117869: ff 47 64 incl 0x64(%edi)
*segment = the_segment;
11786c: 89 03 mov %eax,(%ebx) 11786e: 31 c0 xor %eax,%eax 117870: eb ba jmp 11782c <rtems_region_get_segment+0x70>
117872: 66 90 xchg %ax,%ax <== NOT EXECUTED
Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment )
117874: b8 09 00 00 00 mov $0x9,%eax 117879: e9 64 ff ff ff jmp 1177e2 <rtems_region_get_segment+0x26>
11787e: 66 90 xchg %ax,%ax <== NOT EXECUTED
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 ) ) {
117880: f6 45 10 01 testb $0x1,0x10(%ebp)
117884: 74 07 je 11788d <rtems_region_get_segment+0xd1>
117886: b8 0d 00 00 00 mov $0xd,%eax 11788b: eb 9f jmp 11782c <rtems_region_get_segment+0x70>
rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1;
11788d: a1 78 07 14 00 mov 0x140778,%eax 117892: 40 inc %eax 117893: a3 78 07 14 00 mov %eax,0x140778
* 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();
117898: 83 ec 0c sub $0xc,%esp 11789b: ff 35 30 08 14 00 pushl 0x140830 1178a1: e8 52 21 00 00 call 1199f8 <_API_Mutex_Unlock>
executing->Wait.queue = &the_region->Wait_queue;
1178a6: 8d 47 10 lea 0x10(%edi),%eax 1178a9: 8b 55 d4 mov -0x2c(%ebp),%edx 1178ac: 89 42 44 mov %eax,0x44(%edx)
executing->Wait.id = id;
1178af: 8b 4d 08 mov 0x8(%ebp),%ecx 1178b2: 89 4a 20 mov %ecx,0x20(%edx)
executing->Wait.count = size;
1178b5: 89 72 24 mov %esi,0x24(%edx)
executing->Wait.return_argument = segment;
1178b8: 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;
1178bb: 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 );
1178c2: 83 c4 0c add $0xc,%esp 1178c5: 68 cc c2 11 00 push $0x11c2cc 1178ca: ff 75 14 pushl 0x14(%ebp) 1178cd: 50 push %eax 1178ce: e8 e9 46 00 00 call 11bfbc <_Thread_queue_Enqueue_with_handler>
_Thread_Enable_dispatch();
1178d3: e8 bc 41 00 00 call 11ba94 <_Thread_Enable_dispatch>
return (rtems_status_code) executing->Wait.return_code;
1178d8: 8b 55 d4 mov -0x2c(%ebp),%edx 1178db: 8b 42 34 mov 0x34(%edx),%eax 1178de: 83 c4 10 add $0x10,%esp 1178e1: e9 fc fe ff ff jmp 1177e2 <rtems_region_get_segment+0x26>
001178e8 <rtems_region_get_segment_size>: rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) {
1178e8: 55 push %ebp 1178e9: 89 e5 mov %esp,%ebp 1178eb: 56 push %esi 1178ec: 53 push %ebx 1178ed: 83 ec 20 sub $0x20,%esp 1178f0: 8b 5d 0c mov 0xc(%ebp),%ebx 1178f3: 8b 75 10 mov 0x10(%ebp),%esi
Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment )
1178f6: 85 db test %ebx,%ebx
1178f8: 74 72 je 11796c <rtems_region_get_segment_size+0x84> return RTEMS_INVALID_ADDRESS; if ( !size )
1178fa: 85 f6 test %esi,%esi
1178fc: 74 6e je 11796c <rtems_region_get_segment_size+0x84> return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator();
1178fe: 83 ec 0c sub $0xc,%esp 117901: ff 35 30 08 14 00 pushl 0x140830 117907: e8 a4 20 00 00 call 1199b0 <_API_Mutex_Lock> 11790c: 83 c4 0c add $0xc,%esp 11790f: 8d 45 f4 lea -0xc(%ebp),%eax 117912: 50 push %eax 117913: ff 75 08 pushl 0x8(%ebp) 117916: 68 80 06 14 00 push $0x140680 11791b: e8 88 38 00 00 call 11b1a8 <_Objects_Get_no_protection>
the_region = _Region_Get( id, &location ); switch ( location ) {
117920: 83 c4 10 add $0x10,%esp 117923: 8b 55 f4 mov -0xc(%ebp),%edx 117926: 85 d2 test %edx,%edx
117928: 75 36 jne 117960 <rtems_region_get_segment_size+0x78> case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) )
11792a: 52 push %edx 11792b: 56 push %esi 11792c: 53 push %ebx 11792d: 83 c0 68 add $0x68,%eax 117930: 50 push %eax 117931: e8 d6 32 00 00 call 11ac0c <_Heap_Size_of_alloc_area> 117936: 83 c4 10 add $0x10,%esp 117939: 84 c0 test %al,%al
11793b: 74 3b je 117978 <rtems_region_get_segment_size+0x90><== ALWAYS TAKEN
11793d: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator();
11793f: 83 ec 0c sub $0xc,%esp 117942: ff 35 30 08 14 00 pushl 0x140830 117948: 89 45 e4 mov %eax,-0x1c(%ebp) 11794b: e8 a8 20 00 00 call 1199f8 <_API_Mutex_Unlock>
return return_status;
117950: 83 c4 10 add $0x10,%esp 117953: 8b 45 e4 mov -0x1c(%ebp),%eax
}
117956: 8d 65 f8 lea -0x8(%ebp),%esp 117959: 5b pop %ebx 11795a: 5e pop %esi 11795b: c9 leave 11795c: c3 ret
11795d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) {
117960: 4a dec %edx
117961: 75 da jne 11793d <rtems_region_get_segment_size+0x55><== ALWAYS TAKEN
117963: b8 04 00 00 00 mov $0x4,%eax 117968: eb d5 jmp 11793f <rtems_region_get_segment_size+0x57>
11796a: 66 90 xchg %ax,%ax <== NOT EXECUTED
return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status;
11796c: b8 09 00 00 00 mov $0x9,%eax
}
117971: 8d 65 f8 lea -0x8(%ebp),%esp 117974: 5b pop %ebx 117975: 5e pop %esi 117976: c9 leave 117977: c3 ret
the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) )
117978: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED 11797d: eb c0 jmp 11793f <rtems_region_get_segment_size+0x57><== NOT EXECUTED
001179a4 <rtems_region_resize_segment>: rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) {
1179a4: 55 push %ebp 1179a5: 89 e5 mov %esp,%ebp 1179a7: 56 push %esi 1179a8: 53 push %ebx 1179a9: 83 ec 20 sub $0x20,%esp 1179ac: 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 )
1179af: 85 db test %ebx,%ebx
1179b1: 0f 84 a5 00 00 00 je 117a5c <rtems_region_resize_segment+0xb8> return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator();
1179b7: 83 ec 0c sub $0xc,%esp 1179ba: ff 35 30 08 14 00 pushl 0x140830 1179c0: e8 eb 1f 00 00 call 1199b0 <_API_Mutex_Lock> 1179c5: 83 c4 0c add $0xc,%esp 1179c8: 8d 45 f0 lea -0x10(%ebp),%eax 1179cb: 50 push %eax 1179cc: ff 75 08 pushl 0x8(%ebp) 1179cf: 68 80 06 14 00 push $0x140680 1179d4: e8 cf 37 00 00 call 11b1a8 <_Objects_Get_no_protection> 1179d9: 89 c6 mov %eax,%esi
the_region = _Region_Get( id, &location ); switch ( location ) {
1179db: 83 c4 10 add $0x10,%esp 1179de: 8b 45 f0 mov -0x10(%ebp),%eax 1179e1: 85 c0 test %eax,%eax
1179e3: 74 1f je 117a04 <rtems_region_resize_segment+0x60> default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator();
1179e5: 83 ec 0c sub $0xc,%esp 1179e8: ff 35 30 08 14 00 pushl 0x140830 1179ee: e8 05 20 00 00 call 1199f8 <_API_Mutex_Unlock> 1179f3: b8 04 00 00 00 mov $0x4,%eax
return return_status;
1179f8: 83 c4 10 add $0x10,%esp
}
1179fb: 8d 65 f8 lea -0x8(%ebp),%esp 1179fe: 5b pop %ebx 1179ff: 5e pop %esi 117a00: c9 leave 117a01: c3 ret
117a02: 66 90 xchg %ax,%ax <== NOT EXECUTED
case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block(
117a04: 83 ec 0c sub $0xc,%esp 117a07: 8d 45 f4 lea -0xc(%ebp),%eax 117a0a: 50 push %eax 117a0b: 8d 45 ec lea -0x14(%ebp),%eax 117a0e: 50 push %eax 117a0f: ff 75 10 pushl 0x10(%ebp) 117a12: ff 75 0c pushl 0xc(%ebp) 117a15: 8d 46 68 lea 0x68(%esi),%eax 117a18: 50 push %eax 117a19: e8 e2 30 00 00 call 11ab00 <_Heap_Resize_block>
segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize;
117a1e: 8b 55 ec mov -0x14(%ebp),%edx 117a21: 89 13 mov %edx,(%ebx)
_Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL )
117a23: 83 c4 20 add $0x20,%esp 117a26: 85 c0 test %eax,%eax
117a28: 75 16 jne 117a40 <rtems_region_resize_segment+0x9c> _Region_Process_queue( the_region ); /* unlocks allocator */
117a2a: 83 ec 0c sub $0xc,%esp 117a2d: 56 push %esi 117a2e: e8 bd 6d 00 00 call 11e7f0 <_Region_Process_queue> 117a33: 31 c0 xor %eax,%eax 117a35: 83 c4 10 add $0x10,%esp
break; } _RTEMS_Unlock_allocator(); return return_status; }
117a38: 8d 65 f8 lea -0x8(%ebp),%esp 117a3b: 5b pop %ebx 117a3c: 5e pop %esi 117a3d: c9 leave 117a3e: c3 ret
117a3f: 90 nop <== NOT EXECUTED
_Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) _Region_Process_queue( the_region ); /* unlocks allocator */ else _RTEMS_Unlock_allocator();
117a40: 83 ec 0c sub $0xc,%esp 117a43: ff 35 30 08 14 00 pushl 0x140830 117a49: 89 45 e4 mov %eax,-0x1c(%ebp) 117a4c: e8 a7 1f 00 00 call 1199f8 <_API_Mutex_Unlock>
if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED)
117a51: 83 c4 10 add $0x10,%esp 117a54: 8b 45 e4 mov -0x1c(%ebp),%eax 117a57: 83 f8 01 cmp $0x1,%eax
117a5a: 74 0c je 117a68 <rtems_region_resize_segment+0xc4> return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status;
117a5c: b8 09 00 00 00 mov $0x9,%eax
}
117a61: 8d 65 f8 lea -0x8(%ebp),%esp 117a64: 5b pop %ebx 117a65: 5e pop %esi 117a66: c9 leave 117a67: c3 ret
_RTEMS_Unlock_allocator(); if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED)
117a68: b0 0d mov $0xd,%al 117a6a: eb 8f jmp 1179fb <rtems_region_resize_segment+0x57>
00117a6c <rtems_region_return_segment>: rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) {
117a6c: 55 push %ebp 117a6d: 89 e5 mov %esp,%ebp 117a6f: 53 push %ebx 117a70: 83 ec 20 sub $0x20,%esp
uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator();
117a73: ff 35 30 08 14 00 pushl 0x140830 117a79: e8 32 1f 00 00 call 1199b0 <_API_Mutex_Lock> 117a7e: 83 c4 0c add $0xc,%esp 117a81: 8d 45 f4 lea -0xc(%ebp),%eax 117a84: 50 push %eax 117a85: ff 75 08 pushl 0x8(%ebp) 117a88: 68 80 06 14 00 push $0x140680 117a8d: e8 16 37 00 00 call 11b1a8 <_Objects_Get_no_protection> 117a92: 89 c3 mov %eax,%ebx
the_region = _Region_Get( id, &location ); switch ( location ) {
117a94: 83 c4 10 add $0x10,%esp 117a97: 8b 45 f4 mov -0xc(%ebp),%eax 117a9a: 85 c0 test %eax,%eax
117a9c: 74 1e je 117abc <rtems_region_return_segment+0x50>
117a9e: bb 04 00 00 00 mov $0x4,%ebx
default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator();
117aa3: 83 ec 0c sub $0xc,%esp 117aa6: ff 35 30 08 14 00 pushl 0x140830 117aac: e8 47 1f 00 00 call 1199f8 <_API_Mutex_Unlock>
return return_status;
117ab1: 83 c4 10 add $0x10,%esp
}
117ab4: 89 d8 mov %ebx,%eax 117ab6: 8b 5d fc mov -0x4(%ebp),%ebx 117ab9: c9 leave 117aba: c3 ret
117abb: 90 nop <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Region_Free_segment ( Region_Control *the_region, void *the_segment ) { return _Heap_Free( &the_region->Memory, the_segment );
117abc: 83 ec 08 sub $0x8,%esp 117abf: ff 75 0c pushl 0xc(%ebp) 117ac2: 8d 43 68 lea 0x68(%ebx),%eax 117ac5: 50 push %eax 117ac6: e8 b9 2a 00 00 call 11a584 <_Heap_Free>
#endif status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status )
117acb: 83 c4 10 add $0x10,%esp 117ace: 84 c0 test %al,%al
117ad0: 75 0a jne 117adc <rtems_region_return_segment+0x70> else { the_region->number_of_used_blocks -= 1; _Region_Process_queue(the_region); /* unlocks allocator */ return RTEMS_SUCCESSFUL;
117ad2: bb 09 00 00 00 mov $0x9,%ebx 117ad7: eb ca jmp 117aa3 <rtems_region_return_segment+0x37>
117ad9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_Region_Debug_Walk( the_region, 4 ); if ( !status ) return_status = RTEMS_INVALID_ADDRESS; else { the_region->number_of_used_blocks -= 1;
117adc: ff 4b 64 decl 0x64(%ebx)
_Region_Process_queue(the_region); /* unlocks allocator */
117adf: 83 ec 0c sub $0xc,%esp 117ae2: 53 push %ebx 117ae3: e8 08 6d 00 00 call 11e7f0 <_Region_Process_queue> 117ae8: 31 db xor %ebx,%ebx
return RTEMS_SUCCESSFUL;
117aea: 83 c4 10 add $0x10,%esp
break; } _RTEMS_Unlock_allocator(); return return_status; }
117aed: 89 d8 mov %ebx,%eax 117aef: 8b 5d fc mov -0x4(%ebp),%ebx 117af2: c9 leave 117af3: c3 ret
0010b388 <rtems_semaphore_create>: uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) {
10b388: 55 push %ebp 10b389: 89 e5 mov %esp,%ebp 10b38b: 57 push %edi 10b38c: 56 push %esi 10b38d: 53 push %ebx 10b38e: 83 ec 3c sub $0x3c,%esp 10b391: 8b 75 08 mov 0x8(%ebp),%esi 10b394: 8b 5d 10 mov 0x10(%ebp),%ebx 10b397: 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 ) )
10b39a: 85 f6 test %esi,%esi
10b39c: 74 4a je 10b3e8 <rtems_semaphore_create+0x60> return RTEMS_INVALID_NAME; if ( !id )
10b39e: 85 ff test %edi,%edi
10b3a0: 0f 84 f6 00 00 00 je 10b49c <rtems_semaphore_create+0x114> return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) ||
10b3a6: 89 da mov %ebx,%edx 10b3a8: 81 e2 c0 00 00 00 and $0xc0,%edx
10b3ae: 74 48 je 10b3f8 <rtems_semaphore_create+0x70> _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) &&
10b3b0: 89 d8 mov %ebx,%eax 10b3b2: 83 e0 30 and $0x30,%eax 10b3b5: 83 f8 10 cmp $0x10,%eax
10b3b8: 74 0e je 10b3c8 <rtems_semaphore_create+0x40> name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL;
10b3ba: b8 0b 00 00 00 mov $0xb,%eax
}
10b3bf: 8d 65 f4 lea -0xc(%ebp),%esp 10b3c2: 5b pop %ebx 10b3c3: 5e pop %esi 10b3c4: 5f pop %edi 10b3c5: c9 leave 10b3c6: c3 ret
10b3c7: 90 nop <== NOT EXECUTED
#endif if ( _Attributes_Is_inherit_priority( attribute_set ) || _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) &&
10b3c8: f6 c3 04 test $0x4,%bl
10b3cb: 74 ed je 10b3ba <rtems_semaphore_create+0x32> _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) &&
10b3cd: 81 fa c0 00 00 00 cmp $0xc0,%edx
10b3d3: 74 e5 je 10b3ba <rtems_semaphore_create+0x32>
10b3d5: 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 ) )
10b3da: 83 7d 0c 01 cmpl $0x1,0xc(%ebp)
10b3de: 76 1f jbe 10b3ff <rtems_semaphore_create+0x77>
10b3e0: b8 0a 00 00 00 mov $0xa,%eax 10b3e5: eb d8 jmp 10b3bf <rtems_semaphore_create+0x37>
10b3e7: 90 nop <== NOT EXECUTED
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 ) )
10b3e8: b8 03 00 00 00 mov $0x3,%eax
0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
10b3ed: 8d 65 f4 lea -0xc(%ebp),%esp 10b3f0: 5b pop %ebx 10b3f1: 5e pop %esi 10b3f2: 5f pop %edi 10b3f3: c9 leave 10b3f4: c3 ret
10b3f5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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 ) )
10b3f8: 89 d9 mov %ebx,%ecx 10b3fa: 83 e1 30 and $0x30,%ecx
10b3fd: 75 db jne 10b3da <rtems_semaphore_create+0x52> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1;
10b3ff: a1 58 53 12 00 mov 0x125358,%eax 10b404: 40 inc %eax 10b405: a3 58 53 12 00 mov %eax,0x125358
* 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 );
10b40a: 83 ec 0c sub $0xc,%esp 10b40d: 68 a0 52 12 00 push $0x1252a0 10b412: 89 4d c4 mov %ecx,-0x3c(%ebp) 10b415: e8 46 13 00 00 call 10c760 <_Objects_Allocate> 10b41a: 89 c2 mov %eax,%edx
_Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) {
10b41c: 83 c4 10 add $0x10,%esp 10b41f: 85 c0 test %eax,%eax 10b421: 8b 4d c4 mov -0x3c(%ebp),%ecx
10b424: 0f 84 ba 00 00 00 je 10b4e4 <rtems_semaphore_create+0x15c> _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set;
10b42a: 89 58 10 mov %ebx,0x10(%eax)
/* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {
10b42d: 85 c9 test %ecx,%ecx
10b42f: 74 77 je 10b4a8 <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;
10b431: 31 c0 xor %eax,%eax 10b433: f6 c3 04 test $0x4,%bl 10b436: 0f 95 c0 setne %al 10b439: 89 45 d8 mov %eax,-0x28(%ebp)
else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {
10b43c: 83 f9 10 cmp $0x10,%ecx
10b43f: 0f 84 ae 00 00 00 je 10b4f3 <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;
10b445: c7 45 d0 02 00 00 00 movl $0x2,-0x30(%ebp)
the_mutex_attr.only_owner_release = false;
10b44c: c6 45 d4 00 movb $0x0,-0x2c(%ebp)
} mutex_status = _CORE_mutex_Initialize(
10b450: 50 push %eax 10b451: 31 c0 xor %eax,%eax 10b453: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) 10b457: 0f 94 c0 sete %al 10b45a: 50 push %eax 10b45b: 8d 45 d0 lea -0x30(%ebp),%eax 10b45e: 50 push %eax 10b45f: 8d 42 14 lea 0x14(%edx),%eax 10b462: 50 push %eax 10b463: 89 55 c4 mov %edx,-0x3c(%ebp) 10b466: e8 65 0b 00 00 call 10bfd0 <_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 ) {
10b46b: 83 c4 10 add $0x10,%esp 10b46e: 83 f8 06 cmp $0x6,%eax 10b471: 8b 55 c4 mov -0x3c(%ebp),%edx
10b474: 0f 84 a9 00 00 00 je 10b523 <rtems_semaphore_create+0x19b> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object;
10b47a: 8b 42 08 mov 0x8(%edx),%eax 10b47d: 0f b7 d8 movzwl %ax,%ebx 10b480: 8b 0d bc 52 12 00 mov 0x1252bc,%ecx 10b486: 89 14 99 mov %edx,(%ecx,%ebx,4)
information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name;
10b489: 89 72 0c mov %esi,0xc(%edx)
&_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id;
10b48c: 89 07 mov %eax,(%edi)
the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch();
10b48e: e8 c5 1f 00 00 call 10d458 <_Thread_Enable_dispatch> 10b493: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10b495: e9 25 ff ff ff jmp 10b3bf <rtems_semaphore_create+0x37>
10b49a: 66 90 xchg %ax,%ax <== NOT EXECUTED
CORE_mutex_Status mutex_status; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id )
10b49c: b8 09 00 00 00 mov $0x9,%eax 10b4a1: e9 19 ff ff ff jmp 10b3bf <rtems_semaphore_create+0x37>
10b4a6: 66 90 xchg %ax,%ax <== NOT EXECUTED
*/ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { /* * This effectively disables limit checking. */ the_semaphore_attr.maximum_count = 0xFFFFFFFF;
10b4a8: 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;
10b4af: 31 c0 xor %eax,%eax 10b4b1: f6 c3 04 test $0x4,%bl 10b4b4: 0f 95 c0 setne %al 10b4b7: 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;
10b4ba: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp)
the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM;
10b4c1: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp)
_CORE_semaphore_Initialize(
10b4c8: 51 push %ecx 10b4c9: ff 75 0c pushl 0xc(%ebp) 10b4cc: 8d 45 e0 lea -0x20(%ebp),%eax 10b4cf: 50 push %eax 10b4d0: 8d 42 14 lea 0x14(%edx),%eax 10b4d3: 50 push %eax 10b4d4: 89 55 c4 mov %edx,-0x3c(%ebp) 10b4d7: e8 98 0d 00 00 call 10c274 <_CORE_semaphore_Initialize> 10b4dc: 83 c4 10 add $0x10,%esp 10b4df: 8b 55 c4 mov -0x3c(%ebp),%edx 10b4e2: eb 96 jmp 10b47a <rtems_semaphore_create+0xf2>
_Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { _Thread_Enable_dispatch();
10b4e4: e8 6f 1f 00 00 call 10d458 <_Thread_Enable_dispatch> 10b4e9: b8 05 00 00 00 mov $0x5,%eax
return RTEMS_TOO_MANY;
10b4ee: e9 cc fe ff ff jmp 10b3bf <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;
10b4f3: 8b 45 14 mov 0x14(%ebp),%eax 10b4f6: 89 45 dc mov %eax,-0x24(%ebp)
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
10b4f9: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp)
the_mutex_attr.only_owner_release = false;
10b500: c6 45 d4 00 movb $0x0,-0x2c(%ebp)
if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
10b504: 83 7d d8 01 cmpl $0x1,-0x28(%ebp)
10b508: 0f 85 42 ff ff ff jne 10b450 <rtems_semaphore_create+0xc8> if ( _Attributes_Is_inherit_priority( attribute_set ) ) {
10b50e: f6 c3 40 test $0x40,%bl
10b511: 74 30 je 10b543 <rtems_semaphore_create+0x1bb> the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
10b513: c7 45 d8 02 00 00 00 movl $0x2,-0x28(%ebp)
the_mutex_attr.only_owner_release = true;
10b51a: c6 45 d4 01 movb $0x1,-0x2c(%ebp) 10b51e: e9 2d ff ff ff jmp 10b450 <rtems_semaphore_create+0xc8>
*/ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object );
10b523: 83 ec 08 sub $0x8,%esp 10b526: 52 push %edx 10b527: 68 a0 52 12 00 push $0x1252a0 10b52c: e8 af 15 00 00 call 10cae0 <_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();
10b531: e8 22 1f 00 00 call 10d458 <_Thread_Enable_dispatch> 10b536: b8 13 00 00 00 mov $0x13,%eax
return RTEMS_INVALID_PRIORITY;
10b53b: 83 c4 10 add $0x10,%esp 10b53e: e9 7c fe ff ff jmp 10b3bf <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 ) ) {
10b543: 84 db test %bl,%bl
10b545: 0f 89 05 ff ff ff jns 10b450 <rtems_semaphore_create+0xc8> the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
10b54b: c7 45 d8 03 00 00 00 movl $0x3,-0x28(%ebp)
the_mutex_attr.only_owner_release = true;
10b552: c6 45 d4 01 movb $0x1,-0x2c(%ebp) 10b556: e9 f5 fe ff ff jmp 10b450 <rtems_semaphore_create+0xc8>
0010b55c <rtems_semaphore_delete>: #endif rtems_status_code rtems_semaphore_delete( rtems_id id ) {
10b55c: 55 push %ebp 10b55d: 89 e5 mov %esp,%ebp 10b55f: 53 push %ebx 10b560: 83 ec 18 sub $0x18,%esp
RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *)
10b563: 8d 45 f4 lea -0xc(%ebp),%eax 10b566: 50 push %eax 10b567: ff 75 08 pushl 0x8(%ebp) 10b56a: 68 a0 52 12 00 push $0x1252a0 10b56f: e8 9c 16 00 00 call 10cc10 <_Objects_Get> 10b574: 89 c3 mov %eax,%ebx
register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) {
10b576: 83 c4 10 add $0x10,%esp 10b579: 8b 4d f4 mov -0xc(%ebp),%ecx 10b57c: 85 c9 test %ecx,%ecx
10b57e: 74 0c je 10b58c <rtems_semaphore_delete+0x30>
10b580: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10b585: 8b 5d fc mov -0x4(%ebp),%ebx 10b588: c9 leave 10b589: c3 ret
10b58a: 66 90 xchg %ax,%ax <== NOT EXECUTED
*/ RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore( rtems_attribute attribute_set ) { return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE);
10b58c: 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) ) {
10b58f: 83 e0 30 and $0x30,%eax
10b592: 74 58 je 10b5ec <rtems_semaphore_delete+0x90> if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) &&
10b594: 8b 53 64 mov 0x64(%ebx),%edx 10b597: 85 d2 test %edx,%edx
10b599: 75 15 jne 10b5b0 <rtems_semaphore_delete+0x54>
10b59b: 83 f8 20 cmp $0x20,%eax
10b59e: 74 10 je 10b5b0 <rtems_semaphore_delete+0x54> !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch();
10b5a0: e8 b3 1e 00 00 call 10d458 <_Thread_Enable_dispatch> 10b5a5: b8 0c 00 00 00 mov $0xc,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10b5aa: 8b 5d fc mov -0x4(%ebp),%ebx 10b5ad: c9 leave 10b5ae: c3 ret
10b5af: 90 nop <== NOT EXECUTED
!_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } _CORE_mutex_Flush(
10b5b0: 50 push %eax 10b5b1: 6a 04 push $0x4 10b5b3: 6a 00 push $0x0 10b5b5: 8d 43 14 lea 0x14(%ebx),%eax 10b5b8: 50 push %eax 10b5b9: e8 06 0a 00 00 call 10bfc4 <_CORE_mutex_Flush> 10b5be: 83 c4 10 add $0x10,%esp
SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); } _Objects_Close( &_Semaphore_Information, &the_semaphore->Object );
10b5c1: 83 ec 08 sub $0x8,%esp 10b5c4: 53 push %ebx 10b5c5: 68 a0 52 12 00 push $0x1252a0 10b5ca: e8 0d 12 00 00 call 10c7dc <_Objects_Close>
*/ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object );
10b5cf: 58 pop %eax 10b5d0: 5a pop %edx 10b5d1: 53 push %ebx 10b5d2: 68 a0 52 12 00 push $0x1252a0 10b5d7: e8 04 15 00 00 call 10cae0 <_Objects_Free>
0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch();
10b5dc: e8 77 1e 00 00 call 10d458 <_Thread_Enable_dispatch> 10b5e1: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10b5e3: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10b5e6: 8b 5d fc mov -0x4(%ebp),%ebx 10b5e9: c9 leave 10b5ea: c3 ret
10b5eb: 90 nop <== NOT EXECUTED
&the_semaphore->Core_control.mutex, SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_MUTEX_WAS_DELETED ); } else { _CORE_semaphore_Flush(
10b5ec: 51 push %ecx 10b5ed: 6a 02 push $0x2 10b5ef: 6a 00 push $0x0 10b5f1: 8d 43 14 lea 0x14(%ebx),%eax 10b5f4: 50 push %eax 10b5f5: e8 6e 0c 00 00 call 10c268 <_CORE_semaphore_Flush> 10b5fa: 83 c4 10 add $0x10,%esp 10b5fd: eb c2 jmp 10b5c1 <rtems_semaphore_delete+0x65>
0010b600 <rtems_semaphore_obtain>: rtems_status_code rtems_semaphore_obtain( rtems_id id, rtems_option option_set, rtems_interval timeout ) {
10b600: 55 push %ebp 10b601: 89 e5 mov %esp,%ebp 10b603: 57 push %edi 10b604: 56 push %esi 10b605: 53 push %ebx 10b606: 83 ec 1c sub $0x1c,%esp 10b609: 8b 5d 08 mov 0x8(%ebp),%ebx 10b60c: 8b 75 0c mov 0xc(%ebp),%esi 10b60f: 8b 7d 10 mov 0x10(%ebp),%edi
Objects_Id id, Objects_Locations *location, ISR_Level *level ) { return (Semaphore_Control *)
10b612: 8d 45 e0 lea -0x20(%ebp),%eax 10b615: 50 push %eax 10b616: 8d 45 e4 lea -0x1c(%ebp),%eax 10b619: 50 push %eax 10b61a: 53 push %ebx 10b61b: 68 a0 52 12 00 push $0x1252a0 10b620: e8 93 15 00 00 call 10cbb8 <_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 ) {
10b625: 83 c4 10 add $0x10,%esp 10b628: 8b 4d e4 mov -0x1c(%ebp),%ecx 10b62b: 85 c9 test %ecx,%ecx
10b62d: 74 0d je 10b63c <rtems_semaphore_obtain+0x3c>
10b62f: b8 04 00 00 00 mov $0x4,%eax
break; } return RTEMS_INVALID_ID; }
10b634: 8d 65 f4 lea -0xc(%ebp),%esp 10b637: 5b pop %ebx 10b638: 5e pop %esi 10b639: 5f pop %edi 10b63a: c9 leave 10b63b: 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) ) {
10b63c: f6 40 10 30 testb $0x30,0x10(%eax)
10b640: 74 36 je 10b678 <rtems_semaphore_obtain+0x78> _CORE_mutex_Seize(
10b642: 83 ec 0c sub $0xc,%esp 10b645: ff 75 e0 pushl -0x20(%ebp) 10b648: 57 push %edi 10b649: 83 e6 01 and $0x1,%esi 10b64c: 83 f6 01 xor $0x1,%esi 10b64f: 56 push %esi 10b650: 53 push %ebx 10b651: 83 c0 14 add $0x14,%eax 10b654: 50 push %eax 10b655: e8 6e 0a 00 00 call 10c0c8 <_CORE_mutex_Seize>
id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, level ); return _Semaphore_Translate_core_mutex_return_code(
10b65a: 83 c4 14 add $0x14,%esp 10b65d: a1 18 54 12 00 mov 0x125418,%eax 10b662: ff 70 34 pushl 0x34(%eax) 10b665: e8 12 01 00 00 call 10b77c <_Semaphore_Translate_core_mutex_return_code> 10b66a: 83 c4 10 add $0x10,%esp
break; } return RTEMS_INVALID_ID; }
10b66d: 8d 65 f4 lea -0xc(%ebp),%esp 10b670: 5b pop %ebx 10b671: 5e pop %esi 10b672: 5f pop %edi 10b673: c9 leave 10b674: c3 ret
10b675: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{ Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing;
10b678: 8b 15 18 54 12 00 mov 0x125418,%edx
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
10b67e: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx)
if ( the_semaphore->count != 0 ) {
10b685: 8b 48 5c mov 0x5c(%eax),%ecx 10b688: 85 c9 test %ecx,%ecx
10b68a: 75 2c jne 10b6b8 <rtems_semaphore_obtain+0xb8> the_semaphore->count -= 1; _ISR_Enable( *level_p ); return; } if ( !wait ) {
10b68c: 83 e6 01 and $0x1,%esi
10b68f: 74 33 je 10b6c4 <rtems_semaphore_obtain+0xc4> _ISR_Enable( *level_p );
10b691: ff 75 e0 pushl -0x20(%ebp) 10b694: 9d popf
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT;
10b695: 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(
10b69c: 83 ec 0c sub $0xc,%esp 10b69f: a1 18 54 12 00 mov 0x125418,%eax 10b6a4: ff 70 34 pushl 0x34(%eax) 10b6a7: e8 e0 00 00 00 call 10b78c <_Semaphore_Translate_core_semaphore_return_code> 10b6ac: 83 c4 10 add $0x10,%esp
break; } return RTEMS_INVALID_ID; }
10b6af: 8d 65 f4 lea -0xc(%ebp),%esp 10b6b2: 5b pop %ebx 10b6b3: 5e pop %esi 10b6b4: 5f pop %edi 10b6b5: c9 leave 10b6b6: c3 ret
10b6b7: 90 nop <== NOT EXECUTED
/* 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;
10b6b8: 49 dec %ecx 10b6b9: 89 48 5c mov %ecx,0x5c(%eax)
_ISR_Enable( *level_p );
10b6bc: ff 75 e0 pushl -0x20(%ebp) 10b6bf: 9d popf 10b6c0: eb da jmp 10b69c <rtems_semaphore_obtain+0x9c>
10b6c2: 66 90 xchg %ax,%ax <== NOT EXECUTED
10b6c4: 8b 0d 58 53 12 00 mov 0x125358,%ecx 10b6ca: 41 inc %ecx 10b6cb: 89 0d 58 53 12 00 mov %ecx,0x125358
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;
10b6d1: 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;
10b6d8: 83 c0 14 add $0x14,%eax 10b6db: 89 42 44 mov %eax,0x44(%edx)
executing->Wait.id = id;
10b6de: 89 5a 20 mov %ebx,0x20(%edx)
_ISR_Enable( *level_p );
10b6e1: ff 75 e0 pushl -0x20(%ebp) 10b6e4: 9d popf
_Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout );
10b6e5: 52 push %edx 10b6e6: 68 64 dc 10 00 push $0x10dc64 10b6eb: 57 push %edi 10b6ec: 50 push %eax 10b6ed: e8 62 22 00 00 call 10d954 <_Thread_queue_Enqueue_with_handler>
_Thread_Enable_dispatch();
10b6f2: e8 61 1d 00 00 call 10d458 <_Thread_Enable_dispatch> 10b6f7: 83 c4 10 add $0x10,%esp 10b6fa: eb a0 jmp 10b69c <rtems_semaphore_obtain+0x9c>
0010b6fc <rtems_semaphore_release>: #endif rtems_status_code rtems_semaphore_release( rtems_id id ) {
10b6fc: 55 push %ebp 10b6fd: 89 e5 mov %esp,%ebp 10b6ff: 53 push %ebx 10b700: 83 ec 18 sub $0x18,%esp 10b703: 8b 5d 08 mov 0x8(%ebp),%ebx
RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *)
10b706: 8d 45 f4 lea -0xc(%ebp),%eax 10b709: 50 push %eax 10b70a: 53 push %ebx 10b70b: 68 a0 52 12 00 push $0x1252a0 10b710: e8 fb 14 00 00 call 10cc10 <_Objects_Get>
Objects_Locations location; CORE_mutex_Status mutex_status; CORE_semaphore_Status semaphore_status; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) {
10b715: 83 c4 10 add $0x10,%esp 10b718: 8b 55 f4 mov -0xc(%ebp),%edx 10b71b: 85 d2 test %edx,%edx
10b71d: 74 0d je 10b72c <rtems_semaphore_release+0x30>
10b71f: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10b724: 8b 5d fc mov -0x4(%ebp),%ebx 10b727: c9 leave 10b728: c3 ret
10b729: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
10b72c: f6 40 10 30 testb $0x30,0x10(%eax)
10b730: 75 26 jne 10b758 <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(
10b732: 52 push %edx 10b733: 6a 00 push $0x0 10b735: 53 push %ebx 10b736: 83 c0 14 add $0x14,%eax 10b739: 50 push %eax 10b73a: e8 75 0b 00 00 call 10c2b4 <_CORE_semaphore_Surrender> 10b73f: 89 c3 mov %eax,%ebx
&the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch();
10b741: e8 12 1d 00 00 call 10d458 <_Thread_Enable_dispatch>
return _Semaphore_Translate_core_semaphore_return_code( semaphore_status );
10b746: 89 1c 24 mov %ebx,(%esp) 10b749: e8 3e 00 00 00 call 10b78c <_Semaphore_Translate_core_semaphore_return_code>
&the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return
10b74e: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10b751: 8b 5d fc mov -0x4(%ebp),%ebx 10b754: c9 leave 10b755: c3 ret
10b756: 66 90 xchg %ax,%ax <== NOT EXECUTED
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(
10b758: 51 push %ecx 10b759: 6a 00 push $0x0 10b75b: 53 push %ebx 10b75c: 83 c0 14 add $0x14,%eax 10b75f: 50 push %eax 10b760: e8 03 0a 00 00 call 10c168 <_CORE_mutex_Surrender> 10b765: 89 c3 mov %eax,%ebx
&the_semaphore->Core_control.mutex, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch();
10b767: e8 ec 1c 00 00 call 10d458 <_Thread_Enable_dispatch>
return _Semaphore_Translate_core_mutex_return_code( mutex_status );
10b76c: 89 1c 24 mov %ebx,(%esp) 10b76f: e8 08 00 00 00 call 10b77c <_Semaphore_Translate_core_mutex_return_code> 10b774: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10b777: 8b 5d fc mov -0x4(%ebp),%ebx 10b77a: c9 leave 10b77b: c3 ret
0010c70c <rtems_signal_catch>: rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) {
10c70c: 55 push %ebp 10c70d: 89 e5 mov %esp,%ebp 10c70f: 83 ec 08 sub $0x8,%esp 10c712: 8b 55 08 mov 0x8(%ebp),%edx
RTEMS_API_Control *api; ASR_Information *asr; /* XXX normalize mode */ executing = _Thread_Executing; api = (RTEMS_API_Control*)executing->API_Extensions[ THREAD_API_RTEMS ];
10c715: a1 f8 87 12 00 mov 0x1287f8,%eax 10c71a: 8b 80 f0 00 00 00 mov 0xf0(%eax),%eax 10c720: 8b 0d 38 87 12 00 mov 0x128738,%ecx 10c726: 41 inc %ecx 10c727: 89 0d 38 87 12 00 mov %ecx,0x128738
asr = &api->Signal; _Thread_Disable_dispatch(); /* cannot reschedule while */ /* the thread is inconsistent */ if ( !_ASR_Is_null_handler( asr_handler ) ) {
10c72d: 85 d2 test %edx,%edx
10c72f: 74 13 je 10c744 <rtems_signal_catch+0x38> asr->mode_set = mode_set;
10c731: 8b 4d 0c mov 0xc(%ebp),%ecx 10c734: 89 48 10 mov %ecx,0x10(%eax)
asr->handler = asr_handler;
10c737: 89 50 0c mov %edx,0xc(%eax)
} else _ASR_Initialize( asr ); _Thread_Enable_dispatch();
10c73a: e8 45 20 00 00 call 10e784 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL; }
10c73f: 31 c0 xor %eax,%eax 10c741: c9 leave 10c742: c3 ret
10c743: 90 nop <== NOT EXECUTED
*/ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false;
10c744: c6 40 08 00 movb $0x0,0x8(%eax)
information->handler = NULL;
10c748: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax)
information->mode_set = RTEMS_DEFAULT_MODES;
10c74f: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax)
information->signals_posted = 0;
10c756: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax)
information->signals_pending = 0;
10c75d: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax)
information->nest_level = 0;
10c764: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax)
asr->mode_set = mode_set; asr->handler = asr_handler; } else _ASR_Initialize( asr ); _Thread_Enable_dispatch();
10c76b: e8 14 20 00 00 call 10e784 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL; }
10c770: 31 c0 xor %eax,%eax 10c772: c9 leave 10c773: c3 ret
00117fc8 <rtems_signal_send>: rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) {
117fc8: 55 push %ebp 117fc9: 89 e5 mov %esp,%ebp 117fcb: 53 push %ebx 117fcc: 83 ec 14 sub $0x14,%esp 117fcf: 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 )
117fd2: 85 db test %ebx,%ebx
117fd4: 75 0a jne 117fe0 <rtems_signal_send+0x18>
117fd6: b8 0a 00 00 00 mov $0xa,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
117fdb: 8b 5d fc mov -0x4(%ebp),%ebx 117fde: c9 leave 117fdf: c3 ret
ASR_Information *asr; if ( !signal_set ) return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location );
117fe0: 83 ec 08 sub $0x8,%esp 117fe3: 8d 45 f4 lea -0xc(%ebp),%eax 117fe6: 50 push %eax 117fe7: ff 75 08 pushl 0x8(%ebp) 117fea: e8 f5 3a 00 00 call 11bae4 <_Thread_Get>
switch ( location ) {
117fef: 83 c4 10 add $0x10,%esp 117ff2: 8b 55 f4 mov -0xc(%ebp),%edx 117ff5: 85 d2 test %edx,%edx
117ff7: 74 0b je 118004 <rtems_signal_send+0x3c>
117ff9: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
117ffe: 8b 5d fc mov -0x4(%ebp),%ebx 118001: c9 leave 118002: c3 ret
118003: 90 nop <== NOT EXECUTED
the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
118004: 8b 90 f0 00 00 00 mov 0xf0(%eax),%edx
asr = &api->Signal;
11800a: 8b 4a 0c mov 0xc(%edx),%ecx 11800d: 85 c9 test %ecx,%ecx
11800f: 74 43 je 118054 <rtems_signal_send+0x8c> if ( ! _ASR_Is_null_handler( asr->handler ) ) { if ( asr->is_enabled ) {
118011: 80 7a 08 00 cmpb $0x0,0x8(%edx)
118015: 74 29 je 118040 <rtems_signal_send+0x78> rtems_signal_set *signal_set ) { ISR_Level _level; _ISR_Disable( _level );
118017: 9c pushf 118018: fa cli 118019: 59 pop %ecx
*signal_set |= signals;
11801a: 09 5a 14 or %ebx,0x14(%edx)
_ISR_Enable( _level );
11801d: 51 push %ecx 11801e: 9d popf
_ASR_Post_signals( signal_set, &asr->signals_posted ); the_thread->do_post_task_switch_extension = true;
11801f: c6 40 74 01 movb $0x1,0x74(%eax)
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
118023: 8b 15 14 08 14 00 mov 0x140814,%edx 118029: 85 d2 test %edx,%edx
11802b: 74 1b je 118048 <rtems_signal_send+0x80>
11802d: 3b 05 38 08 14 00 cmp 0x140838,%eax
118033: 75 13 jne 118048 <rtems_signal_send+0x80><== ALWAYS TAKEN
_ISR_Signals_to_thread_executing = true;
118035: c6 05 e8 08 14 00 01 movb $0x1,0x1408e8 11803c: eb 0a jmp 118048 <rtems_signal_send+0x80>
11803e: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_signal_set *signal_set ) { ISR_Level _level; _ISR_Disable( _level );
118040: 9c pushf 118041: fa cli 118042: 58 pop %eax
*signal_set |= signals;
118043: 09 5a 18 or %ebx,0x18(%edx)
_ISR_Enable( _level );
118046: 50 push %eax 118047: 9d popf
} else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch();
118048: e8 47 3a 00 00 call 11ba94 <_Thread_Enable_dispatch> 11804d: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
11804f: 8b 5d fc mov -0x4(%ebp),%ebx 118052: c9 leave 118053: c3 ret
_ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch();
118054: e8 3b 3a 00 00 call 11ba94 <_Thread_Enable_dispatch> 118059: b8 0b 00 00 00 mov $0xb,%eax
return RTEMS_NOT_DEFINED;
11805e: e9 78 ff ff ff jmp 117fdb <rtems_signal_send+0x13>
0010a340 <rtems_stack_checker_begin_extension>: * rtems_stack_checker_Begin_extension */ void rtems_stack_checker_begin_extension( Thread_Control *the_thread ) {
10a340: 55 push %ebp 10a341: 89 e5 mov %esp,%ebp 10a343: 57 push %edi 10a344: 56 push %esi 10a345: 8b 45 08 mov 0x8(%ebp),%eax
Stack_check_Control *the_pattern; if ( the_thread->Object.id == 0 ) /* skip system tasks */
10a348: 8b 50 08 mov 0x8(%eax),%edx 10a34b: 85 d2 test %edx,%edx
10a34d: 74 15 je 10a364 <rtems_stack_checker_begin_extension+0x24><== ALWAYS TAKEN
return; the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack); *the_pattern = Stack_check_Pattern;
10a34f: 8b b8 c4 00 00 00 mov 0xc4(%eax),%edi 10a355: 83 c7 08 add $0x8,%edi 10a358: be c0 de 16 00 mov $0x16dec0,%esi 10a35d: b9 04 00 00 00 mov $0x4,%ecx 10a362: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
}
10a364: 5e pop %esi 10a365: 5f pop %edi 10a366: c9 leave 10a367: c3 ret
0010a758 <rtems_stack_checker_create_extension>: */ bool rtems_stack_checker_create_extension( Thread_Control *running __attribute__((unused)), Thread_Control *the_thread ) {
10a758: 55 push %ebp 10a759: 89 e5 mov %esp,%ebp 10a75b: 57 push %edi 10a75c: 8b 7d 0c mov 0xc(%ebp),%edi
Stack_check_Initialize();
10a75f: e8 94 ff ff ff call 10a6f8 <Stack_check_Initialize>
if (the_thread)
10a764: 85 ff test %edi,%edi
10a766: 74 12 je 10a77a <rtems_stack_checker_create_extension+0x22><== ALWAYS TAKEN
Stack_check_Dope_stack(&the_thread->Start.Initial_stack);
10a768: 8b 8f c0 00 00 00 mov 0xc0(%edi),%ecx 10a76e: 8b 97 c4 00 00 00 mov 0xc4(%edi),%edx 10a774: b0 a5 mov $0xa5,%al 10a776: 89 d7 mov %edx,%edi 10a778: f3 aa rep stos %al,%es:(%edi)
return true; }
10a77a: b0 01 mov $0x1,%al 10a77c: 5f pop %edi 10a77d: c9 leave 10a77e: c3 ret
0010a628 <rtems_stack_checker_is_blown>: /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) {
10a628: 55 push %ebp 10a629: 89 e5 mov %esp,%ebp 10a62b: 57 push %edi 10a62c: 56 push %esi
Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
10a62d: a1 38 e1 16 00 mov 0x16e138,%eax
) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) {
10a632: 8b b0 c4 00 00 00 mov 0xc4(%eax),%esi 10a638: 39 f5 cmp %esi,%ebp
10a63a: 73 48 jae 10a684 <rtems_stack_checker_is_blown+0x5c><== NEVER TAKEN
10a63c: 31 c0 xor %eax,%eax <== NOT EXECUTED
/* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) {
10a63e: 8b 0d 58 b1 16 00 mov 0x16b158,%ecx 10a644: 85 c9 test %ecx,%ecx
10a646: 75 28 jne 10a670 <rtems_stack_checker_is_blown+0x48><== NEVER TAKEN
10a648: b2 01 mov $0x1,%dl <== NOT EXECUTED
} /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok )
10a64a: 84 c0 test %al,%al
10a64c: 74 04 je 10a652 <rtems_stack_checker_is_blown+0x2a><== ALWAYS TAKEN
10a64e: 84 d2 test %dl,%dl
10a650: 75 42 jne 10a694 <rtems_stack_checker_is_blown+0x6c><== NEVER TAKEN
return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok );
10a652: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10a655: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED 10a658: 52 push %edx <== NOT EXECUTED 10a659: ff 35 38 e1 16 00 pushl 0x16e138 <== NOT EXECUTED 10a65f: e8 08 ff ff ff call 10a56c <Stack_check_report_blown_task><== NOT EXECUTED 10a664: b0 01 mov $0x1,%al <== NOT EXECUTED
return true;
10a666: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10a669: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10a66c: 5e pop %esi <== NOT EXECUTED 10a66d: 5f pop %edi <== NOT EXECUTED 10a66e: c9 leave <== NOT EXECUTED 10a66f: c3 ret <== NOT EXECUTED
/* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { pattern_ok = (!memcmp(
10a670: 83 c6 08 add $0x8,%esi 10a673: bf c0 de 16 00 mov $0x16dec0,%edi 10a678: b9 10 00 00 00 mov $0x10,%ecx 10a67d: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10a67f: 0f 94 c2 sete %dl 10a682: eb c6 jmp 10a64a <rtems_stack_checker_is_blown+0x22>
} /* * Check if blown */ bool rtems_stack_checker_is_blown( void )
10a684: 8b 90 c0 00 00 00 mov 0xc0(%eax),%edx 10a68a: 8d 04 16 lea (%esi,%edx,1),%eax 10a68d: 39 c5 cmp %eax,%ebp 10a68f: 0f 96 c0 setbe %al 10a692: eb aa jmp 10a63e <rtems_stack_checker_is_blown+0x16>
} /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok )
10a694: 31 c0 xor %eax,%eax
/* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); return true; }
10a696: 8d 65 f8 lea -0x8(%ebp),%esp 10a699: 5e pop %esi 10a69a: 5f pop %edi 10a69b: c9 leave 10a69c: c3 ret
0010a554 <rtems_stack_checker_report_usage>: void rtems_stack_checker_report_usage( void ) {
10a554: 55 push %ebp <== NOT EXECUTED 10a555: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10a557: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin );
10a55a: 68 d0 ce 10 00 push $0x10ced0 <== NOT EXECUTED 10a55f: 6a 00 push $0x0 <== NOT EXECUTED 10a561: e8 8a ff ff ff call 10a4f0 <rtems_stack_checker_report_usage_with_plugin><== NOT EXECUTED 10a566: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10a569: c9 leave <== NOT EXECUTED 10a56a: c3 ret <== NOT EXECUTED
0010a4f0 <rtems_stack_checker_report_usage_with_plugin>: void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) {
10a4f0: 55 push %ebp <== NOT EXECUTED 10a4f1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10a4f3: 56 push %esi <== NOT EXECUTED 10a4f4: 53 push %ebx <== NOT EXECUTED 10a4f5: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED 10a4f8: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED
print_context = context;
10a4fb: 89 35 5c b1 16 00 mov %esi,0x16b15c <== NOT EXECUTED
print_handler = print;
10a501: 89 1d 60 b1 16 00 mov %ebx,0x16b160 <== NOT EXECUTED
(*print)( context, "Stack usage by thread\n");
10a507: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10a50a: 68 33 9e 15 00 push $0x159e33 <== NOT EXECUTED 10a50f: 56 push %esi <== NOT EXECUTED 10a510: ff d3 call *%ebx <== NOT EXECUTED
(*print)( context,
10a512: 58 pop %eax <== NOT EXECUTED 10a513: 5a pop %edx <== NOT EXECUTED 10a514: 68 b4 9e 15 00 push $0x159eb4 <== NOT EXECUTED 10a519: 56 push %esi <== NOT EXECUTED 10a51a: 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 );
10a51c: c7 04 24 a0 a3 10 00 movl $0x10a3a0,(%esp) <== NOT EXECUTED 10a523: e8 04 6f 00 00 call 11142c <rtems_iterate_over_all_threads><== NOT EXECUTED
/* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1);
10a528: c7 04 24 ff ff ff ff movl $0xffffffff,(%esp) <== NOT EXECUTED 10a52f: e8 6c fe ff ff call 10a3a0 <Stack_check_Dump_threads_usage><== NOT EXECUTED
print_context = NULL;
10a534: c7 05 5c b1 16 00 00 movl $0x0,0x16b15c <== NOT EXECUTED
10a53b: 00 00 00 print_handler = NULL;
10a53e: c7 05 60 b1 16 00 00 movl $0x0,0x16b160 <== NOT EXECUTED
10a545: 00 00 00
10a548: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
10a54b: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10a54e: 5b pop %ebx <== NOT EXECUTED 10a54f: 5e pop %esi <== NOT EXECUTED 10a550: c9 leave <== NOT EXECUTED 10a551: c3 ret <== NOT EXECUTED
0010a6a0 <rtems_stack_checker_switch_extension>: */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) {
10a6a0: 55 push %ebp 10a6a1: 89 e5 mov %esp,%ebp 10a6a3: 57 push %edi 10a6a4: 56 push %esi 10a6a5: 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;
10a6a8: 8b 90 c4 00 00 00 mov 0xc4(%eax),%edx 10a6ae: 8d 72 08 lea 0x8(%edx),%esi
) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) {
10a6b1: 39 d5 cmp %edx,%ebp
10a6b3: 72 0a jb 10a6bf <rtems_stack_checker_switch_extension+0x1f><== ALWAYS 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;
10a6b5: 03 90 c0 00 00 00 add 0xc0(%eax),%edx 10a6bb: 39 d5 cmp %edx,%ebp
10a6bd: 76 21 jbe 10a6e0 <rtems_stack_checker_switch_extension+0x40><== NEVER 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,
10a6bf: bf c0 de 16 00 mov $0x16dec0,%edi <== NOT EXECUTED 10a6c4: b9 10 00 00 00 mov $0x10,%ecx <== NOT EXECUTED 10a6c9: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) <== NOT EXECUTED 10a6cb: 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 );
10a6ce: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED 10a6d1: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 10a6d4: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED
} }
10a6d7: 5e pop %esi <== NOT EXECUTED 10a6d8: 5f pop %edi <== NOT EXECUTED 10a6d9: 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 );
10a6da: e9 8d fe ff ff jmp 10a56c <Stack_check_report_blown_task><== NOT EXECUTED 10a6df: 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,
10a6e0: bf c0 de 16 00 mov $0x16dec0,%edi 10a6e5: b9 10 00 00 00 mov $0x10,%ecx
(void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) {
10a6ea: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi)
10a6ec: 74 06 je 10a6f4 <rtems_stack_checker_switch_extension+0x54><== NEVER TAKEN
10a6ee: 31 d2 xor %edx,%edx <== NOT EXECUTED 10a6f0: eb dc jmp 10a6ce <rtems_stack_checker_switch_extension+0x2e><== NOT EXECUTED 10a6f2: 66 90 xchg %ax,%ax <== NOT EXECUTED
Stack_check_report_blown_task( running, pattern_ok ); } }
10a6f4: 5e pop %esi 10a6f5: 5f pop %edi 10a6f6: c9 leave 10a6f7: c3 ret
00110c50 <rtems_string_to_double>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
110c50: 55 push %ebp 110c51: 89 e5 mov %esp,%ebp 110c53: 57 push %edi 110c54: 56 push %esi 110c55: 53 push %ebx 110c56: 83 ec 2c sub $0x2c,%esp 110c59: 8b 75 08 mov 0x8(%ebp),%esi 110c5c: 8b 5d 0c mov 0xc(%ebp),%ebx 110c5f: 8b 7d 10 mov 0x10(%ebp),%edi
STRING_TO_INPUT_TYPE result; char *end; if ( !n )
110c62: 85 db test %ebx,%ebx
110c64: 74 72 je 110cd8 <rtems_string_to_double+0x88> return RTEMS_INVALID_ADDRESS; errno = 0;
110c66: e8 69 1d 00 00 call 1129d4 <__errno> 110c6b: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
110c71: c7 03 00 00 00 00 movl $0x0,(%ebx) 110c77: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
#ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end );
110c7e: 83 ec 08 sub $0x8,%esp 110c81: 8d 45 e4 lea -0x1c(%ebp),%eax 110c84: 50 push %eax 110c85: 56 push %esi 110c86: e8 e5 47 00 00 call 115470 <strtod>
#elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr )
110c8b: 83 c4 10 add $0x10,%esp 110c8e: 85 ff test %edi,%edi
110c90: 74 05 je 110c97 <rtems_string_to_double+0x47> *endptr = end;
110c92: 8b 45 e4 mov -0x1c(%ebp),%eax 110c95: 89 07 mov %eax,(%edi)
/* nothing was converted */ if ( end == s )
110c97: 39 75 e4 cmp %esi,-0x1c(%ebp)
110c9a: 74 4c je 110ce8 <rtems_string_to_double+0x98> return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
110c9c: dd 05 90 43 12 00 fldl 0x124390 110ca2: d9 c9 fxch %st(1) 110ca4: dd e1 fucom %st(1) 110ca6: df e0 fnstsw %ax 110ca8: dd d9 fstp %st(1) 110caa: f6 c4 45 test $0x45,%ah
110cad: 74 0d je 110cbc <rtems_string_to_double+0x6c> #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result;
110caf: dd 1b fstpl (%ebx) 110cb1: 31 c0 xor %eax,%eax
#endif return RTEMS_SUCCESSFUL; }
110cb3: 8d 65 f4 lea -0xc(%ebp),%esp 110cb6: 5b pop %ebx 110cb7: 5e pop %esi 110cb8: 5f pop %edi 110cb9: c9 leave 110cba: c3 ret
110cbb: 90 nop <== NOT EXECUTED
return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
110cbc: dd 5d c8 fstpl -0x38(%ebp) 110cbf: e8 10 1d 00 00 call 1129d4 <__errno> 110cc4: 83 38 22 cmpl $0x22,(%eax) 110cc7: dd 45 c8 fldl -0x38(%ebp)
110cca: 75 e3 jne 110caf <rtems_string_to_double+0x5f><== ALWAYS TAKEN
110ccc: dd d8 fstp %st(0) 110cce: b8 0a 00 00 00 mov $0xa,%eax 110cd3: eb de jmp 110cb3 <rtems_string_to_double+0x63>
110cd5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
) { STRING_TO_INPUT_TYPE result; char *end; if ( !n )
110cd8: b8 09 00 00 00 mov $0x9,%eax
*n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; }
110cdd: 8d 65 f4 lea -0xc(%ebp),%esp 110ce0: 5b pop %ebx 110ce1: 5e pop %esi 110ce2: 5f pop %edi 110ce3: c9 leave 110ce4: c3 ret
110ce5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
110ce8: dd d8 fstp %st(0)
/* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s )
110cea: b8 0b 00 00 00 mov $0xb,%eax 110cef: eb c2 jmp 110cb3 <rtems_string_to_double+0x63>
00110cf4 <rtems_string_to_float>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
110cf4: 55 push %ebp 110cf5: 89 e5 mov %esp,%ebp 110cf7: 57 push %edi 110cf8: 56 push %esi 110cf9: 53 push %ebx 110cfa: 83 ec 2c sub $0x2c,%esp 110cfd: 8b 75 08 mov 0x8(%ebp),%esi 110d00: 8b 5d 0c mov 0xc(%ebp),%ebx 110d03: 8b 7d 10 mov 0x10(%ebp),%edi
STRING_TO_INPUT_TYPE result; char *end; if ( !n )
110d06: 85 db test %ebx,%ebx
110d08: 74 6a je 110d74 <rtems_string_to_float+0x80> return RTEMS_INVALID_ADDRESS; errno = 0;
110d0a: e8 c5 1c 00 00 call 1129d4 <__errno> 110d0f: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
110d15: c7 03 00 00 00 00 movl $0x0,(%ebx)
#ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end );
110d1b: 83 ec 08 sub $0x8,%esp 110d1e: 8d 45 e4 lea -0x1c(%ebp),%eax 110d21: 50 push %eax 110d22: 56 push %esi 110d23: e8 04 47 00 00 call 11542c <strtof>
#elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr )
110d28: 83 c4 10 add $0x10,%esp 110d2b: 85 ff test %edi,%edi
110d2d: 74 05 je 110d34 <rtems_string_to_float+0x40> *endptr = end;
110d2f: 8b 45 e4 mov -0x1c(%ebp),%eax 110d32: 89 07 mov %eax,(%edi)
/* nothing was converted */ if ( end == s )
110d34: 39 75 e4 cmp %esi,-0x1c(%ebp)
110d37: 74 4b je 110d84 <rtems_string_to_float+0x90> return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
110d39: d9 05 98 43 12 00 flds 0x124398 110d3f: d9 c9 fxch %st(1) 110d41: dd e1 fucom %st(1) 110d43: df e0 fnstsw %ax 110d45: dd d9 fstp %st(1) 110d47: f6 c4 45 test $0x45,%ah
110d4a: 74 0c je 110d58 <rtems_string_to_float+0x64> #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result;
110d4c: d9 1b fstps (%ebx) 110d4e: 31 c0 xor %eax,%eax
#endif return RTEMS_SUCCESSFUL; }
110d50: 8d 65 f4 lea -0xc(%ebp),%esp 110d53: 5b pop %ebx 110d54: 5e pop %esi 110d55: 5f pop %edi 110d56: c9 leave 110d57: c3 ret
return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
110d58: d9 5d c8 fstps -0x38(%ebp) 110d5b: e8 74 1c 00 00 call 1129d4 <__errno> 110d60: 83 38 22 cmpl $0x22,(%eax) 110d63: d9 45 c8 flds -0x38(%ebp)
110d66: 75 e4 jne 110d4c <rtems_string_to_float+0x58><== ALWAYS TAKEN
110d68: dd d8 fstp %st(0) 110d6a: b8 0a 00 00 00 mov $0xa,%eax 110d6f: eb df jmp 110d50 <rtems_string_to_float+0x5c>
110d71: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
) { STRING_TO_INPUT_TYPE result; char *end; if ( !n )
110d74: b8 09 00 00 00 mov $0x9,%eax
*n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; }
110d79: 8d 65 f4 lea -0xc(%ebp),%esp 110d7c: 5b pop %ebx 110d7d: 5e pop %esi 110d7e: 5f pop %edi 110d7f: c9 leave 110d80: c3 ret
110d81: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
110d84: dd d8 fstp %st(0)
/* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s )
110d86: b8 0b 00 00 00 mov $0xb,%eax 110d8b: eb c3 jmp 110d50 <rtems_string_to_float+0x5c>
0012179c <rtems_string_to_int>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
12179c: 55 push %ebp 12179d: 89 e5 mov %esp,%ebp 12179f: 57 push %edi 1217a0: 56 push %esi 1217a1: 53 push %ebx 1217a2: 83 ec 2c sub $0x2c,%esp 1217a5: 8b 75 08 mov 0x8(%ebp),%esi 1217a8: 8b 5d 0c mov 0xc(%ebp),%ebx 1217ab: 8b 7d 10 mov 0x10(%ebp),%edi
STRING_TO_INPUT_TYPE result; char *end; if ( !n )
1217ae: 85 db test %ebx,%ebx
1217b0: 74 5e je 121810 <rtems_string_to_int+0x74> return RTEMS_INVALID_ADDRESS; errno = 0;
1217b2: e8 45 fe 01 00 call 1415fc <__errno> 1217b7: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
1217bd: c7 03 00 00 00 00 movl $0x0,(%ebx)
#ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base );
1217c3: 50 push %eax 1217c4: ff 75 14 pushl 0x14(%ebp) 1217c7: 8d 45 e4 lea -0x1c(%ebp),%eax 1217ca: 50 push %eax 1217cb: 56 push %esi 1217cc: e8 b7 6b 02 00 call 148388 <strtol> 1217d1: 89 c2 mov %eax,%edx
#endif /* If the user wants the end pointer back, then return it. */ if ( endptr )
1217d3: 83 c4 10 add $0x10,%esp 1217d6: 85 ff test %edi,%edi
1217d8: 74 05 je 1217df <rtems_string_to_int+0x43> *endptr = end;
1217da: 8b 45 e4 mov -0x1c(%ebp),%eax 1217dd: 89 07 mov %eax,(%edi)
/* nothing was converted */ if ( end == s )
1217df: 39 75 e4 cmp %esi,-0x1c(%ebp)
1217e2: 74 3c je 121820 <rtems_string_to_int+0x84> return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
1217e4: 81 fa ff ff ff 7f cmp $0x7fffffff,%edx
1217ea: 74 0c je 1217f8 <rtems_string_to_int+0x5c> #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result;
1217ec: 89 13 mov %edx,(%ebx) 1217ee: 31 c0 xor %eax,%eax
#endif return RTEMS_SUCCESSFUL; }
1217f0: 8d 65 f4 lea -0xc(%ebp),%esp 1217f3: 5b pop %ebx 1217f4: 5e pop %esi 1217f5: 5f pop %edi 1217f6: c9 leave 1217f7: c3 ret
return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
1217f8: 89 55 d4 mov %edx,-0x2c(%ebp) 1217fb: e8 fc fd 01 00 call 1415fc <__errno> 121800: 83 38 22 cmpl $0x22,(%eax) 121803: 8b 55 d4 mov -0x2c(%ebp),%edx
121806: 75 e4 jne 1217ec <rtems_string_to_int+0x50><== ALWAYS TAKEN
121808: b8 0a 00 00 00 mov $0xa,%eax 12180d: eb e1 jmp 1217f0 <rtems_string_to_int+0x54>
12180f: 90 nop <== NOT EXECUTED
) { STRING_TO_INPUT_TYPE result; char *end; if ( !n )
121810: b8 09 00 00 00 mov $0x9,%eax
*n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; }
121815: 8d 65 f4 lea -0xc(%ebp),%esp 121818: 5b pop %ebx 121819: 5e pop %esi 12181a: 5f pop %edi 12181b: c9 leave 12181c: c3 ret
12181d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s )
121820: b8 0b 00 00 00 mov $0xb,%eax 121825: eb c9 jmp 1217f0 <rtems_string_to_int+0x54>
00110ecc <rtems_string_to_long>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
110ecc: 55 push %ebp 110ecd: 89 e5 mov %esp,%ebp 110ecf: 57 push %edi 110ed0: 56 push %esi 110ed1: 53 push %ebx 110ed2: 83 ec 1c sub $0x1c,%esp 110ed5: 8b 7d 08 mov 0x8(%ebp),%edi 110ed8: 8b 5d 0c mov 0xc(%ebp),%ebx
STRING_TO_INPUT_TYPE result; char *end; if ( !n )
110edb: 85 db test %ebx,%ebx
110edd: 74 69 je 110f48 <rtems_string_to_long+0x7c> return RTEMS_INVALID_ADDRESS; errno = 0;
110edf: e8 f0 1a 00 00 call 1129d4 <__errno> 110ee4: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
110eea: c7 03 00 00 00 00 movl $0x0,(%ebx)
#ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base );
110ef0: 52 push %edx 110ef1: ff 75 14 pushl 0x14(%ebp) 110ef4: 8d 45 e4 lea -0x1c(%ebp),%eax 110ef7: 50 push %eax 110ef8: 57 push %edi 110ef9: e8 0e 47 00 00 call 11560c <strtol> 110efe: 89 c6 mov %eax,%esi
#endif /* If the user wants the end pointer back, then return it. */ if ( endptr )
110f00: 83 c4 10 add $0x10,%esp 110f03: 8b 45 10 mov 0x10(%ebp),%eax 110f06: 85 c0 test %eax,%eax
110f08: 74 08 je 110f12 <rtems_string_to_long+0x46> *endptr = end;
110f0a: 8b 45 e4 mov -0x1c(%ebp),%eax 110f0d: 8b 55 10 mov 0x10(%ebp),%edx 110f10: 89 02 mov %eax,(%edx)
/* nothing was converted */ if ( end == s )
110f12: 39 7d e4 cmp %edi,-0x1c(%ebp)
110f15: 74 41 je 110f58 <rtems_string_to_long+0x8c> return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
110f17: 81 fe ff ff ff 7f cmp $0x7fffffff,%esi
110f1d: 74 15 je 110f34 <rtems_string_to_long+0x68> return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE))
110f1f: 81 fe 00 00 00 80 cmp $0x80000000,%esi
110f25: 74 0d je 110f34 <rtems_string_to_long+0x68> #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result;
110f27: 89 33 mov %esi,(%ebx) 110f29: 31 c0 xor %eax,%eax
#endif return RTEMS_SUCCESSFUL; }
110f2b: 8d 65 f4 lea -0xc(%ebp),%esp 110f2e: 5b pop %ebx 110f2f: 5e pop %esi 110f30: 5f pop %edi 110f31: c9 leave 110f32: c3 ret
110f33: 90 nop <== NOT EXECUTED
return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE))
110f34: e8 9b 1a 00 00 call 1129d4 <__errno> 110f39: 83 38 22 cmpl $0x22,(%eax)
110f3c: 75 e9 jne 110f27 <rtems_string_to_long+0x5b><== ALWAYS TAKEN
#if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL;
110f3e: b8 0a 00 00 00 mov $0xa,%eax 110f43: eb e6 jmp 110f2b <rtems_string_to_long+0x5f>
110f45: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
) { STRING_TO_INPUT_TYPE result; char *end; if ( !n )
110f48: b8 09 00 00 00 mov $0x9,%eax
*n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; }
110f4d: 8d 65 f4 lea -0xc(%ebp),%esp 110f50: 5b pop %ebx 110f51: 5e pop %esi 110f52: 5f pop %edi 110f53: c9 leave 110f54: c3 ret
110f55: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s )
110f58: b8 0b 00 00 00 mov $0xb,%eax 110f5d: eb cc jmp 110f2b <rtems_string_to_long+0x5f>
00110e1c <rtems_string_to_long_long>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
110e1c: 55 push %ebp 110e1d: 89 e5 mov %esp,%ebp 110e1f: 57 push %edi 110e20: 56 push %esi 110e21: 53 push %ebx 110e22: 83 ec 2c sub $0x2c,%esp 110e25: 8b 7d 08 mov 0x8(%ebp),%edi 110e28: 8b 5d 0c mov 0xc(%ebp),%ebx
STRING_TO_INPUT_TYPE result; char *end; if ( !n )
110e2b: 85 db test %ebx,%ebx
110e2d: 0f 84 81 00 00 00 je 110eb4 <rtems_string_to_long_long+0x98> return RTEMS_INVALID_ADDRESS; errno = 0;
110e33: e8 9c 1b 00 00 call 1129d4 <__errno> 110e38: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
110e3e: c7 03 00 00 00 00 movl $0x0,(%ebx) 110e44: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
#ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base );
110e4b: 52 push %edx 110e4c: ff 75 14 pushl 0x14(%ebp) 110e4f: 8d 45 e4 lea -0x1c(%ebp),%eax 110e52: 50 push %eax 110e53: 57 push %edi 110e54: e8 cf 47 00 00 call 115628 <strtoll> 110e59: 89 c6 mov %eax,%esi
#endif /* If the user wants the end pointer back, then return it. */ if ( endptr )
110e5b: 83 c4 10 add $0x10,%esp 110e5e: 8b 45 10 mov 0x10(%ebp),%eax 110e61: 85 c0 test %eax,%eax
110e63: 74 08 je 110e6d <rtems_string_to_long_long+0x51> *endptr = end;
110e65: 8b 45 e4 mov -0x1c(%ebp),%eax 110e68: 8b 4d 10 mov 0x10(%ebp),%ecx 110e6b: 89 01 mov %eax,(%ecx)
/* nothing was converted */ if ( end == s )
110e6d: 39 7d e4 cmp %edi,-0x1c(%ebp)
110e70: 74 52 je 110ec4 <rtems_string_to_long_long+0xa8> return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
110e72: 89 d1 mov %edx,%ecx 110e74: 81 f1 ff ff ff 7f xor $0x7fffffff,%ecx 110e7a: 89 f0 mov %esi,%eax 110e7c: f7 d0 not %eax 110e7e: 09 c1 or %eax,%ecx
110e80: 74 1a je 110e9c <rtems_string_to_long_long+0x80> return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE))
110e82: 8d 82 00 00 00 80 lea -0x80000000(%edx),%eax 110e88: 09 f0 or %esi,%eax
110e8a: 74 10 je 110e9c <rtems_string_to_long_long+0x80> #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result;
110e8c: 89 33 mov %esi,(%ebx) 110e8e: 89 53 04 mov %edx,0x4(%ebx) 110e91: 31 c0 xor %eax,%eax
#endif return RTEMS_SUCCESSFUL; }
110e93: 8d 65 f4 lea -0xc(%ebp),%esp 110e96: 5b pop %ebx 110e97: 5e pop %esi 110e98: 5f pop %edi 110e99: c9 leave 110e9a: c3 ret
110e9b: 90 nop <== NOT EXECUTED
return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE))
110e9c: 89 55 d4 mov %edx,-0x2c(%ebp) 110e9f: e8 30 1b 00 00 call 1129d4 <__errno> 110ea4: 83 38 22 cmpl $0x22,(%eax) 110ea7: 8b 55 d4 mov -0x2c(%ebp),%edx
110eaa: 75 e0 jne 110e8c <rtems_string_to_long_long+0x70><== ALWAYS TAKEN
#if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL;
110eac: b8 0a 00 00 00 mov $0xa,%eax 110eb1: eb e0 jmp 110e93 <rtems_string_to_long_long+0x77>
110eb3: 90 nop <== NOT EXECUTED
) { STRING_TO_INPUT_TYPE result; char *end; if ( !n )
110eb4: b8 09 00 00 00 mov $0x9,%eax
*n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; }
110eb9: 8d 65 f4 lea -0xc(%ebp),%esp 110ebc: 5b pop %ebx 110ebd: 5e pop %esi 110ebe: 5f pop %edi 110ebf: c9 leave 110ec0: c3 ret
110ec1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s )
110ec4: b8 0b 00 00 00 mov $0xb,%eax 110ec9: eb c8 jmp 110e93 <rtems_string_to_long_long+0x77>
00121828 <rtems_string_to_pointer>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
121828: 55 push %ebp 121829: 89 e5 mov %esp,%ebp 12182b: 57 push %edi 12182c: 56 push %esi 12182d: 53 push %ebx 12182e: 83 ec 2c sub $0x2c,%esp 121831: 8b 75 08 mov 0x8(%ebp),%esi 121834: 8b 5d 0c mov 0xc(%ebp),%ebx 121837: 8b 7d 10 mov 0x10(%ebp),%edi
STRING_TO_INPUT_TYPE result; char *end; if ( !n )
12183a: 85 db test %ebx,%ebx
12183c: 74 5a je 121898 <rtems_string_to_pointer+0x70> return RTEMS_INVALID_ADDRESS; errno = 0;
12183e: e8 b9 fd 01 00 call 1415fc <__errno> 121843: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
121849: c7 03 00 00 00 00 movl $0x0,(%ebx)
#ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 );
12184f: 50 push %eax 121850: 6a 10 push $0x10 121852: 8d 45 e4 lea -0x1c(%ebp),%eax 121855: 50 push %eax 121856: 56 push %esi 121857: e8 a8 6f 02 00 call 148804 <strtoul> 12185c: 89 c2 mov %eax,%edx
#elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr )
12185e: 83 c4 10 add $0x10,%esp 121861: 85 ff test %edi,%edi
121863: 74 05 je 12186a <rtems_string_to_pointer+0x42> *endptr = end;
121865: 8b 45 e4 mov -0x1c(%ebp),%eax 121868: 89 07 mov %eax,(%edi)
/* nothing was converted */ if ( end == s )
12186a: 39 75 e4 cmp %esi,-0x1c(%ebp)
12186d: 74 39 je 1218a8 <rtems_string_to_pointer+0x80> return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
12186f: 83 fa ff cmp $0xffffffff,%edx
121872: 74 0c je 121880 <rtems_string_to_pointer+0x58><== ALWAYS TAKEN
if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result;
121874: 89 13 mov %edx,(%ebx) 121876: 31 c0 xor %eax,%eax
#else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; }
121878: 8d 65 f4 lea -0xc(%ebp),%esp 12187b: 5b pop %ebx 12187c: 5e pop %esi 12187d: 5f pop %edi 12187e: c9 leave 12187f: c3 ret
return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
121880: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 121883: e8 74 fd 01 00 call 1415fc <__errno> <== NOT EXECUTED 121888: 83 38 22 cmpl $0x22,(%eax) <== NOT EXECUTED 12188b: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 12188e: 75 e4 jne 121874 <rtems_string_to_pointer+0x4c><== NOT EXECUTED 121890: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED 121895: eb e1 jmp 121878 <rtems_string_to_pointer+0x50><== NOT EXECUTED 121897: 90 nop <== NOT EXECUTED
) { STRING_TO_INPUT_TYPE result; char *end; if ( !n )
121898: b8 09 00 00 00 mov $0x9,%eax
*n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; }
12189d: 8d 65 f4 lea -0xc(%ebp),%esp 1218a0: 5b pop %ebx 1218a1: 5e pop %esi 1218a2: 5f pop %edi 1218a3: c9 leave 1218a4: c3 ret
1218a5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s )
1218a8: b8 0b 00 00 00 mov $0xb,%eax 1218ad: eb c9 jmp 121878 <rtems_string_to_pointer+0x50>
001218b0 <rtems_string_to_unsigned_char>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
1218b0: 55 push %ebp 1218b1: 89 e5 mov %esp,%ebp 1218b3: 57 push %edi 1218b4: 56 push %esi 1218b5: 53 push %ebx 1218b6: 83 ec 1c sub $0x1c,%esp 1218b9: 8b 75 08 mov 0x8(%ebp),%esi 1218bc: 8b 5d 0c mov 0xc(%ebp),%ebx 1218bf: 8b 7d 10 mov 0x10(%ebp),%edi
STRING_TO_INPUT_TYPE result; char *end; if ( !n )
1218c2: 85 db test %ebx,%ebx
1218c4: 74 3a je 121900 <rtems_string_to_unsigned_char+0x50><== ALWAYS TAKEN
return RTEMS_INVALID_ADDRESS; errno = 0;
1218c6: e8 31 fd 01 00 call 1415fc <__errno> 1218cb: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
1218d1: c6 03 00 movb $0x0,(%ebx)
#ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base );
1218d4: 50 push %eax 1218d5: ff 75 14 pushl 0x14(%ebp) 1218d8: 8d 45 e4 lea -0x1c(%ebp),%eax 1218db: 50 push %eax 1218dc: 56 push %esi 1218dd: e8 22 6f 02 00 call 148804 <strtoul>
#endif /* If the user wants the end pointer back, then return it. */ if ( endptr )
1218e2: 83 c4 10 add $0x10,%esp 1218e5: 85 ff test %edi,%edi
1218e7: 74 05 je 1218ee <rtems_string_to_unsigned_char+0x3e> *endptr = end;
1218e9: 8b 55 e4 mov -0x1c(%ebp),%edx 1218ec: 89 17 mov %edx,(%edi)
/* nothing was converted */ if ( end == s )
1218ee: 39 75 e4 cmp %esi,-0x1c(%ebp)
1218f1: 74 1d je 121910 <rtems_string_to_unsigned_char+0x60> #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result;
1218f3: 88 03 mov %al,(%ebx) 1218f5: 31 c0 xor %eax,%eax
#endif return RTEMS_SUCCESSFUL; }
1218f7: 8d 65 f4 lea -0xc(%ebp),%esp 1218fa: 5b pop %ebx 1218fb: 5e pop %esi 1218fc: 5f pop %edi 1218fd: c9 leave 1218fe: c3 ret
1218ff: 90 nop <== NOT EXECUTED
) { STRING_TO_INPUT_TYPE result; char *end; if ( !n )
121900: b8 09 00 00 00 mov $0x9,%eax
*n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; }
121905: 8d 65 f4 lea -0xc(%ebp),%esp 121908: 5b pop %ebx 121909: 5e pop %esi 12190a: 5f pop %edi 12190b: c9 leave 12190c: c3 ret
12190d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s )
121910: b8 0b 00 00 00 mov $0xb,%eax 121915: eb e0 jmp 1218f7 <rtems_string_to_unsigned_char+0x47>
00111050 <rtems_string_to_unsigned_int>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
111050: 55 push %ebp 111051: 89 e5 mov %esp,%ebp 111053: 57 push %edi 111054: 56 push %esi 111055: 53 push %ebx 111056: 83 ec 2c sub $0x2c,%esp 111059: 8b 75 08 mov 0x8(%ebp),%esi 11105c: 8b 5d 0c mov 0xc(%ebp),%ebx 11105f: 8b 7d 10 mov 0x10(%ebp),%edi
STRING_TO_INPUT_TYPE result; char *end; if ( !n )
111062: 85 db test %ebx,%ebx
111064: 74 5e je 1110c4 <rtems_string_to_unsigned_int+0x74> return RTEMS_INVALID_ADDRESS; errno = 0;
111066: e8 69 19 00 00 call 1129d4 <__errno> 11106b: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
111071: c7 03 00 00 00 00 movl $0x0,(%ebx)
#ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base );
111077: 50 push %eax 111078: ff 75 14 pushl 0x14(%ebp) 11107b: 8d 45 e4 lea -0x1c(%ebp),%eax 11107e: 50 push %eax 11107f: 56 push %esi 111080: e8 03 4a 00 00 call 115a88 <strtoul> 111085: 89 c2 mov %eax,%edx
#endif /* If the user wants the end pointer back, then return it. */ if ( endptr )
111087: 83 c4 10 add $0x10,%esp 11108a: 85 ff test %edi,%edi
11108c: 74 05 je 111093 <rtems_string_to_unsigned_int+0x43> *endptr = end;
11108e: 8b 45 e4 mov -0x1c(%ebp),%eax 111091: 89 07 mov %eax,(%edi)
/* nothing was converted */ if ( end == s )
111093: 39 75 e4 cmp %esi,-0x1c(%ebp)
111096: 74 3c je 1110d4 <rtems_string_to_unsigned_int+0x84> return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
111098: 83 fa ff cmp $0xffffffff,%edx
11109b: 74 0f je 1110ac <rtems_string_to_unsigned_int+0x5c> #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result;
11109d: 89 13 mov %edx,(%ebx) 11109f: 31 c0 xor %eax,%eax
#endif 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 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
1110ac: 89 55 d4 mov %edx,-0x2c(%ebp) 1110af: e8 20 19 00 00 call 1129d4 <__errno> 1110b4: 83 38 22 cmpl $0x22,(%eax) 1110b7: 8b 55 d4 mov -0x2c(%ebp),%edx
1110ba: 75 e1 jne 11109d <rtems_string_to_unsigned_int+0x4d><== ALWAYS TAKEN
1110bc: b8 0a 00 00 00 mov $0xa,%eax 1110c1: eb de jmp 1110a1 <rtems_string_to_unsigned_int+0x51>
1110c3: 90 nop <== NOT EXECUTED
) { STRING_TO_INPUT_TYPE result; char *end; if ( !n )
1110c4: b8 09 00 00 00 mov $0x9,%eax
*n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; }
1110c9: 8d 65 f4 lea -0xc(%ebp),%esp 1110cc: 5b pop %ebx 1110cd: 5e pop %esi 1110ce: 5f pop %edi 1110cf: c9 leave 1110d0: c3 ret
1110d1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s )
1110d4: b8 0b 00 00 00 mov $0xb,%eax 1110d9: eb c6 jmp 1110a1 <rtems_string_to_unsigned_int+0x51>
00121918 <rtems_string_to_unsigned_long>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
121918: 55 push %ebp 121919: 89 e5 mov %esp,%ebp 12191b: 57 push %edi 12191c: 56 push %esi 12191d: 53 push %ebx 12191e: 83 ec 2c sub $0x2c,%esp 121921: 8b 75 08 mov 0x8(%ebp),%esi 121924: 8b 5d 0c mov 0xc(%ebp),%ebx 121927: 8b 7d 10 mov 0x10(%ebp),%edi
STRING_TO_INPUT_TYPE result; char *end; if ( !n )
12192a: 85 db test %ebx,%ebx
12192c: 74 5e je 12198c <rtems_string_to_unsigned_long+0x74> return RTEMS_INVALID_ADDRESS; errno = 0;
12192e: e8 c9 fc 01 00 call 1415fc <__errno> 121933: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
121939: c7 03 00 00 00 00 movl $0x0,(%ebx)
#ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base );
12193f: 50 push %eax 121940: ff 75 14 pushl 0x14(%ebp) 121943: 8d 45 e4 lea -0x1c(%ebp),%eax 121946: 50 push %eax 121947: 56 push %esi 121948: e8 b7 6e 02 00 call 148804 <strtoul> 12194d: 89 c2 mov %eax,%edx
#endif /* If the user wants the end pointer back, then return it. */ if ( endptr )
12194f: 83 c4 10 add $0x10,%esp 121952: 85 ff test %edi,%edi
121954: 74 05 je 12195b <rtems_string_to_unsigned_long+0x43> *endptr = end;
121956: 8b 45 e4 mov -0x1c(%ebp),%eax 121959: 89 07 mov %eax,(%edi)
/* nothing was converted */ if ( end == s )
12195b: 39 75 e4 cmp %esi,-0x1c(%ebp)
12195e: 74 3c je 12199c <rtems_string_to_unsigned_long+0x84> return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
121960: 83 fa ff cmp $0xffffffff,%edx
121963: 74 0f je 121974 <rtems_string_to_unsigned_long+0x5c> #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result;
121965: 89 13 mov %edx,(%ebx) 121967: 31 c0 xor %eax,%eax
#endif return RTEMS_SUCCESSFUL; }
121969: 8d 65 f4 lea -0xc(%ebp),%esp 12196c: 5b pop %ebx 12196d: 5e pop %esi 12196e: 5f pop %edi 12196f: c9 leave 121970: c3 ret
121971: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
121974: 89 55 d4 mov %edx,-0x2c(%ebp) 121977: e8 80 fc 01 00 call 1415fc <__errno> 12197c: 83 38 22 cmpl $0x22,(%eax) 12197f: 8b 55 d4 mov -0x2c(%ebp),%edx
121982: 75 e1 jne 121965 <rtems_string_to_unsigned_long+0x4d><== ALWAYS TAKEN
121984: b8 0a 00 00 00 mov $0xa,%eax 121989: eb de jmp 121969 <rtems_string_to_unsigned_long+0x51>
12198b: 90 nop <== NOT EXECUTED
) { STRING_TO_INPUT_TYPE result; char *end; if ( !n )
12198c: b8 09 00 00 00 mov $0x9,%eax
*n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; }
121991: 8d 65 f4 lea -0xc(%ebp),%esp 121994: 5b pop %ebx 121995: 5e pop %esi 121996: 5f pop %edi 121997: c9 leave 121998: c3 ret
121999: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s )
12199c: b8 0b 00 00 00 mov $0xb,%eax 1219a1: eb c6 jmp 121969 <rtems_string_to_unsigned_long+0x51>
001110dc <rtems_string_to_unsigned_long_long>: #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) {
1110dc: 55 push %ebp 1110dd: 89 e5 mov %esp,%ebp 1110df: 57 push %edi 1110e0: 56 push %esi 1110e1: 53 push %ebx 1110e2: 83 ec 2c sub $0x2c,%esp 1110e5: 8b 7d 08 mov 0x8(%ebp),%edi 1110e8: 8b 5d 0c mov 0xc(%ebp),%ebx
STRING_TO_INPUT_TYPE result; char *end; if ( !n )
1110eb: 85 db test %ebx,%ebx
1110ed: 74 6d je 11115c <rtems_string_to_unsigned_long_long+0x80> return RTEMS_INVALID_ADDRESS; errno = 0;
1110ef: e8 e0 18 00 00 call 1129d4 <__errno> 1110f4: c7 00 00 00 00 00 movl $0x0,(%eax)
*n = 0;
1110fa: c7 03 00 00 00 00 movl $0x0,(%ebx) 111100: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
#ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base );
111107: 52 push %edx 111108: ff 75 14 pushl 0x14(%ebp) 11110b: 8d 45 e4 lea -0x1c(%ebp),%eax 11110e: 50 push %eax 11110f: 57 push %edi 111110: e8 8f 49 00 00 call 115aa4 <strtoull> 111115: 89 c6 mov %eax,%esi
#endif /* If the user wants the end pointer back, then return it. */ if ( endptr )
111117: 83 c4 10 add $0x10,%esp 11111a: 8b 45 10 mov 0x10(%ebp),%eax 11111d: 85 c0 test %eax,%eax
11111f: 74 08 je 111129 <rtems_string_to_unsigned_long_long+0x4d> *endptr = end;
111121: 8b 45 e4 mov -0x1c(%ebp),%eax 111124: 8b 4d 10 mov 0x10(%ebp),%ecx 111127: 89 01 mov %eax,(%ecx)
/* nothing was converted */ if ( end == s )
111129: 39 7d e4 cmp %edi,-0x1c(%ebp)
11112c: 74 3e je 11116c <rtems_string_to_unsigned_long_long+0x90> return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
11112e: 89 f0 mov %esi,%eax 111130: 21 d0 and %edx,%eax 111132: 40 inc %eax
111133: 74 0f je 111144 <rtems_string_to_unsigned_long_long+0x68> #endif #if defined(STRING_TO_POINTER) *n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result;
111135: 89 33 mov %esi,(%ebx) 111137: 89 53 04 mov %edx,0x4(%ebx) 11113a: 31 c0 xor %eax,%eax
#endif return RTEMS_SUCCESSFUL; }
11113c: 8d 65 f4 lea -0xc(%ebp),%esp 11113f: 5b pop %ebx 111140: 5e pop %esi 111141: 5f pop %edi 111142: c9 leave 111143: c3 ret
return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE))
111144: 89 55 d4 mov %edx,-0x2c(%ebp) 111147: e8 88 18 00 00 call 1129d4 <__errno> 11114c: 83 38 22 cmpl $0x22,(%eax) 11114f: 8b 55 d4 mov -0x2c(%ebp),%edx
111152: 75 e1 jne 111135 <rtems_string_to_unsigned_long_long+0x59><== ALWAYS TAKEN
111154: b8 0a 00 00 00 mov $0xa,%eax 111159: eb e1 jmp 11113c <rtems_string_to_unsigned_long_long+0x60>
11115b: 90 nop <== NOT EXECUTED
) { STRING_TO_INPUT_TYPE result; char *end; if ( !n )
11115c: b8 09 00 00 00 mov $0x9,%eax
*n = (STRING_TO_TYPE) (uintptr_t)result; #else *n = (STRING_TO_TYPE) result; #endif return RTEMS_SUCCESSFUL; }
111161: 8d 65 f4 lea -0xc(%ebp),%esp 111164: 5b pop %ebx 111165: 5e pop %esi 111166: 5f pop %edi 111167: c9 leave 111168: c3 ret
111169: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s )
11116c: b8 0b 00 00 00 mov $0xb,%eax 111171: eb c9 jmp 11113c <rtems_string_to_unsigned_long_long+0x60>
0010b79c <rtems_task_create>: size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) {
10b79c: 55 push %ebp 10b79d: 89 e5 mov %esp,%ebp 10b79f: 57 push %edi 10b7a0: 56 push %esi 10b7a1: 53 push %ebx 10b7a2: 83 ec 1c sub $0x1c,%esp 10b7a5: 8b 5d 08 mov 0x8(%ebp),%ebx 10b7a8: 8b 4d 0c mov 0xc(%ebp),%ecx 10b7ab: 8b 7d 18 mov 0x18(%ebp),%edi 10b7ae: 8b 75 1c mov 0x1c(%ebp),%esi
Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id )
10b7b1: 85 f6 test %esi,%esi
10b7b3: 0f 84 37 01 00 00 je 10b8f0 <rtems_task_create+0x154> return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) )
10b7b9: 85 db test %ebx,%ebx
10b7bb: 0f 84 cb 00 00 00 je 10b88c <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 ) ) {
10b7c1: 66 85 ff test %di,%di
10b7c4: 78 1d js 10b7e3 <rtems_task_create+0x47> */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
10b7c6: 85 c9 test %ecx,%ecx
10b7c8: 75 0e jne 10b7d8 <rtems_task_create+0x3c> } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL;
10b7ca: b8 13 00 00 00 mov $0x13,%eax
}
10b7cf: 8d 65 f4 lea -0xc(%ebp),%esp 10b7d2: 5b pop %ebx 10b7d3: 5e pop %esi 10b7d4: 5f pop %edi 10b7d5: c9 leave 10b7d6: c3 ret
10b7d7: 90 nop <== NOT EXECUTED
10b7d8: 0f b6 05 14 12 12 00 movzbl 0x121214,%eax 10b7df: 39 c1 cmp %eax,%ecx
10b7e1: 77 e7 ja 10b7ca <rtems_task_create+0x2e> */ /* * Lock the allocator mutex for protection */ _RTEMS_Lock_allocator();
10b7e3: 83 ec 0c sub $0xc,%esp 10b7e6: ff 35 10 54 12 00 pushl 0x125410 10b7ec: 89 4d e4 mov %ecx,-0x1c(%ebp) 10b7ef: e8 60 06 00 00 call 10be54 <_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 );
10b7f4: c7 04 24 e0 52 12 00 movl $0x1252e0,(%esp) 10b7fb: e8 60 0f 00 00 call 10c760 <_Objects_Allocate> 10b800: 89 c2 mov %eax,%edx
* the event of an error. */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) {
10b802: 83 c4 10 add $0x10,%esp 10b805: 85 c0 test %eax,%eax 10b807: 8b 4d e4 mov -0x1c(%ebp),%ecx
10b80a: 0f 84 c0 00 00 00 je 10b8d0 <rtems_task_create+0x134> /* * Initialize the core thread for this task. */ status = _Thread_Initialize(
10b810: 50 push %eax 10b811: 53 push %ebx 10b812: 8b 45 14 mov 0x14(%ebp),%eax 10b815: 83 e0 01 and $0x1,%eax 10b818: 50 push %eax 10b819: 6a 00 push $0x0 10b81b: 8b 45 14 mov 0x14(%ebp),%eax 10b81e: c1 e8 09 shr $0x9,%eax 10b821: 83 e0 01 and $0x1,%eax 10b824: 50 push %eax 10b825: 8b 45 14 mov 0x14(%ebp),%eax 10b828: c1 e8 08 shr $0x8,%eax 10b82b: 83 f0 01 xor $0x1,%eax 10b82e: 83 e0 01 and $0x1,%eax 10b831: 50 push %eax 10b832: 51 push %ecx 10b833: 83 e7 01 and $0x1,%edi 10b836: 57 push %edi 10b837: ff 75 10 pushl 0x10(%ebp) 10b83a: 6a 00 push $0x0 10b83c: 52 push %edx 10b83d: 68 e0 52 12 00 push $0x1252e0 10b842: 89 55 e4 mov %edx,-0x1c(%ebp) 10b845: e8 aa 1c 00 00 call 10d4f4 <_Thread_Initialize>
NULL, /* no budget algorithm callout */ _Modes_Get_interrupt_level(initial_modes), (Objects_Name) name ); if ( !status ) {
10b84a: 83 c4 30 add $0x30,%esp 10b84d: 84 c0 test %al,%al 10b84f: 8b 55 e4 mov -0x1c(%ebp),%edx
10b852: 74 48 je 10b89c <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;
10b854: 8b 8a f0 00 00 00 mov 0xf0(%edx),%ecx 10b85a: 8b 45 14 mov 0x14(%ebp),%eax 10b85d: c1 e8 0a shr $0xa,%eax 10b860: 83 f0 01 xor $0x1,%eax 10b863: 83 e0 01 and $0x1,%eax 10b866: 88 41 08 mov %al,0x8(%ecx)
*id = the_thread->Object.id;
10b869: 8b 42 08 mov 0x8(%edx),%eax 10b86c: 89 06 mov %eax,(%esi)
); } #endif _RTEMS_Unlock_allocator();
10b86e: 83 ec 0c sub $0xc,%esp 10b871: ff 35 10 54 12 00 pushl 0x125410 10b877: e8 20 06 00 00 call 10be9c <_API_Mutex_Unlock> 10b87c: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10b87e: 83 c4 10 add $0x10,%esp
}
10b881: 8d 65 f4 lea -0xc(%ebp),%esp 10b884: 5b pop %ebx 10b885: 5e pop %esi 10b886: 5f pop %edi 10b887: c9 leave 10b888: c3 ret
10b889: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if ( !id ) return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) )
10b88c: b8 03 00 00 00 mov $0x3,%eax
} #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; }
10b891: 8d 65 f4 lea -0xc(%ebp),%esp 10b894: 5b pop %ebx 10b895: 5e pop %esi 10b896: 5f pop %edi 10b897: c9 leave 10b898: c3 ret
10b899: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
*/ RTEMS_INLINE_ROUTINE void _RTEMS_tasks_Free ( Thread_Control *the_task ) { _Objects_Free(
10b89c: 83 ec 0c sub $0xc,%esp 10b89f: ff 72 08 pushl 0x8(%edx) 10b8a2: e8 a9 12 00 00 call 10cb50 <_Objects_Get_information_id> 10b8a7: 5a pop %edx 10b8a8: 59 pop %ecx 10b8a9: 8b 55 e4 mov -0x1c(%ebp),%edx 10b8ac: 52 push %edx 10b8ad: 50 push %eax 10b8ae: e8 2d 12 00 00 call 10cae0 <_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();
10b8b3: 58 pop %eax 10b8b4: ff 35 10 54 12 00 pushl 0x125410 10b8ba: e8 dd 05 00 00 call 10be9c <_API_Mutex_Unlock> 10b8bf: b8 0d 00 00 00 mov $0xd,%eax
return RTEMS_UNSATISFIED;
10b8c4: 83 c4 10 add $0x10,%esp
} #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; }
10b8c7: 8d 65 f4 lea -0xc(%ebp),%esp 10b8ca: 5b pop %ebx 10b8cb: 5e pop %esi 10b8cc: 5f pop %edi 10b8cd: c9 leave 10b8ce: c3 ret
10b8cf: 90 nop <== NOT EXECUTED
*/ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { _RTEMS_Unlock_allocator();
10b8d0: 83 ec 0c sub $0xc,%esp 10b8d3: ff 35 10 54 12 00 pushl 0x125410 10b8d9: e8 be 05 00 00 call 10be9c <_API_Mutex_Unlock> 10b8de: b8 05 00 00 00 mov $0x5,%eax
return RTEMS_TOO_MANY;
10b8e3: 83 c4 10 add $0x10,%esp
} #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; }
10b8e6: 8d 65 f4 lea -0xc(%ebp),%esp 10b8e9: 5b pop %ebx 10b8ea: 5e pop %esi 10b8eb: 5f pop %edi 10b8ec: c9 leave 10b8ed: c3 ret
10b8ee: 66 90 xchg %ax,%ax <== NOT EXECUTED
Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id )
10b8f0: b8 09 00 00 00 mov $0x9,%eax 10b8f5: e9 d5 fe ff ff jmp 10b7cf <rtems_task_create+0x33>
0010b8fc <rtems_task_delete>: */ rtems_status_code rtems_task_delete( rtems_id id ) {
10b8fc: 55 push %ebp 10b8fd: 89 e5 mov %esp,%ebp 10b8ff: 53 push %ebx 10b900: 83 ec 20 sub $0x20,%esp
register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator();
10b903: ff 35 10 54 12 00 pushl 0x125410 10b909: e8 46 05 00 00 call 10be54 <_API_Mutex_Lock>
the_thread = _Thread_Get( id, &location );
10b90e: 5a pop %edx 10b90f: 59 pop %ecx 10b910: 8d 45 f4 lea -0xc(%ebp),%eax 10b913: 50 push %eax 10b914: ff 75 08 pushl 0x8(%ebp) 10b917: e8 60 1b 00 00 call 10d47c <_Thread_Get> 10b91c: 89 c3 mov %eax,%ebx
switch ( location ) {
10b91e: 83 c4 10 add $0x10,%esp 10b921: 8b 45 f4 mov -0xc(%ebp),%eax 10b924: 85 c0 test %eax,%eax
10b926: 75 44 jne 10b96c <rtems_task_delete+0x70> case OBJECTS_LOCAL: the_information = _Objects_Get_information_id( the_thread->Object.id );
10b928: 83 ec 0c sub $0xc,%esp 10b92b: ff 73 08 pushl 0x8(%ebx) 10b92e: e8 1d 12 00 00 call 10cb50 <_Objects_Get_information_id>
0 /* Not used */ ); } #endif _Thread_Close( the_information, the_thread );
10b933: 5a pop %edx 10b934: 59 pop %ecx 10b935: 53 push %ebx 10b936: 50 push %eax 10b937: e8 08 18 00 00 call 10d144 <_Thread_Close> 10b93c: 58 pop %eax 10b93d: ff 73 08 pushl 0x8(%ebx) 10b940: e8 0b 12 00 00 call 10cb50 <_Objects_Get_information_id> 10b945: 5a pop %edx 10b946: 59 pop %ecx 10b947: 53 push %ebx 10b948: 50 push %eax 10b949: e8 92 11 00 00 call 10cae0 <_Objects_Free>
_RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator();
10b94e: 58 pop %eax 10b94f: ff 35 10 54 12 00 pushl 0x125410 10b955: e8 42 05 00 00 call 10be9c <_API_Mutex_Unlock>
_Thread_Enable_dispatch();
10b95a: e8 f9 1a 00 00 call 10d458 <_Thread_Enable_dispatch> 10b95f: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10b961: 83 c4 10 add $0x10,%esp
break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; }
10b964: 8b 5d fc mov -0x4(%ebp),%ebx 10b967: c9 leave 10b968: c3 ret
10b969: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator();
10b96c: 83 ec 0c sub $0xc,%esp 10b96f: ff 35 10 54 12 00 pushl 0x125410 10b975: e8 22 05 00 00 call 10be9c <_API_Mutex_Unlock> 10b97a: b8 04 00 00 00 mov $0x4,%eax
return RTEMS_INVALID_ID;
10b97f: 83 c4 10 add $0x10,%esp
}
10b982: 8b 5d fc mov -0x4(%ebp),%ebx 10b985: c9 leave 10b986: c3 ret
0010d418 <rtems_task_get_note>: rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) {
10d418: 55 push %ebp 10d419: 89 e5 mov %esp,%ebp 10d41b: 56 push %esi 10d41c: 53 push %ebx 10d41d: 83 ec 10 sub $0x10,%esp 10d420: 8b 45 08 mov 0x8(%ebp),%eax 10d423: 8b 75 0c mov 0xc(%ebp),%esi 10d426: 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() )
10d429: 80 3d e4 51 12 00 00 cmpb $0x0,0x1251e4
10d430: 74 6e je 10d4a0 <rtems_task_get_note+0x88> return RTEMS_NOT_CONFIGURED; if ( !note )
10d432: 85 db test %ebx,%ebx
10d434: 74 7e je 10d4b4 <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 )
10d436: 83 fe 0f cmp $0xf,%esi
10d439: 77 3d ja 10d478 <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 ) ||
10d43b: 85 c0 test %eax,%eax
10d43d: 74 45 je 10d484 <rtems_task_get_note+0x6c> _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
10d43f: 8b 15 f8 96 12 00 mov 0x1296f8,%edx
/* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
10d445: 3b 42 08 cmp 0x8(%edx),%eax
10d448: 74 40 je 10d48a <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 );
10d44a: 83 ec 08 sub $0x8,%esp 10d44d: 8d 55 f4 lea -0xc(%ebp),%edx 10d450: 52 push %edx 10d451: 50 push %eax 10d452: e8 49 1e 00 00 call 10f2a0 <_Thread_Get>
switch ( location ) {
10d457: 83 c4 10 add $0x10,%esp 10d45a: 8b 55 f4 mov -0xc(%ebp),%edx 10d45d: 85 d2 test %edx,%edx
10d45f: 75 4b jne 10d4ac <rtems_task_get_note+0x94> case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ];
10d461: 8b 80 f0 00 00 00 mov 0xf0(%eax),%eax 10d467: 8b 44 b0 20 mov 0x20(%eax,%esi,4),%eax 10d46b: 89 03 mov %eax,(%ebx)
_Thread_Enable_dispatch();
10d46d: e8 0a 1e 00 00 call 10f27c <_Thread_Enable_dispatch> 10d472: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10d474: eb 07 jmp 10d47d <rtems_task_get_note+0x65>
10d476: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* * 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 )
10d478: b8 0a 00 00 00 mov $0xa,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10d47d: 8d 65 f8 lea -0x8(%ebp),%esp 10d480: 5b pop %ebx 10d481: 5e pop %esi 10d482: c9 leave 10d483: c3 ret
/* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
10d484: 8b 15 f8 96 12 00 mov 0x1296f8,%edx
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ];
10d48a: 8b 82 f0 00 00 00 mov 0xf0(%edx),%eax 10d490: 8b 44 b0 20 mov 0x20(%eax,%esi,4),%eax 10d494: 89 03 mov %eax,(%ebx) 10d496: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10d498: 8d 65 f8 lea -0x8(%ebp),%esp 10d49b: 5b pop %ebx 10d49c: 5e pop %esi 10d49d: c9 leave 10d49e: c3 ret
10d49f: 90 nop <== NOT EXECUTED
{ register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() )
10d4a0: b8 16 00 00 00 mov $0x16,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10d4a5: 8d 65 f8 lea -0x8(%ebp),%esp 10d4a8: 5b pop %ebx 10d4a9: 5e pop %esi 10d4aa: c9 leave 10d4ab: c3 ret
*note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) {
10d4ac: b8 04 00 00 00 mov $0x4,%eax 10d4b1: eb ca jmp 10d47d <rtems_task_get_note+0x65>
10d4b3: 90 nop <== NOT EXECUTED
RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) return RTEMS_NOT_CONFIGURED; if ( !note )
10d4b4: b8 09 00 00 00 mov $0x9,%eax 10d4b9: eb c2 jmp 10d47d <rtems_task_get_note+0x65>
0010b988 <rtems_task_ident>: rtems_status_code rtems_task_ident( rtems_name name, uint32_t node, rtems_id *id ) {
10b988: 55 push %ebp 10b989: 89 e5 mov %esp,%ebp 10b98b: 83 ec 08 sub $0x8,%esp 10b98e: 8b 55 08 mov 0x8(%ebp),%edx 10b991: 8b 45 10 mov 0x10(%ebp),%eax
Objects_Name_or_id_lookup_errors status; if ( !id )
10b994: 85 c0 test %eax,%eax
10b996: 74 30 je 10b9c8 <rtems_task_ident+0x40> return RTEMS_INVALID_ADDRESS; if ( name == OBJECTS_ID_OF_SELF ) {
10b998: 85 d2 test %edx,%edx
10b99a: 75 10 jne 10b9ac <rtems_task_ident+0x24> *id = _Thread_Executing->Object.id;
10b99c: 8b 15 18 54 12 00 mov 0x125418,%edx 10b9a2: 8b 52 08 mov 0x8(%edx),%edx 10b9a5: 89 10 mov %edx,(%eax) 10b9a7: 31 c0 xor %eax,%eax
} status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); return _Status_Object_name_errors_to_status[ status ]; }
10b9a9: c9 leave 10b9aa: c3 ret
10b9ab: 90 nop <== NOT EXECUTED
if ( name == OBJECTS_ID_OF_SELF ) { *id = _Thread_Executing->Object.id; return RTEMS_SUCCESSFUL; } status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id );
10b9ac: 50 push %eax 10b9ad: ff 75 0c pushl 0xc(%ebp) 10b9b0: 52 push %edx 10b9b1: 68 e0 52 12 00 push $0x1252e0 10b9b6: e8 ad 13 00 00 call 10cd68 <_Objects_Name_to_id_u32>
return _Status_Object_name_errors_to_status[ status ];
10b9bb: 8b 04 85 cc fa 11 00 mov 0x11facc(,%eax,4),%eax 10b9c2: 83 c4 10 add $0x10,%esp
}
10b9c5: c9 leave 10b9c6: c3 ret
10b9c7: 90 nop <== NOT EXECUTED
rtems_id *id ) { Objects_Name_or_id_lookup_errors status; if ( !id )
10b9c8: b0 09 mov $0x9,%al
} status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id ); return _Status_Object_name_errors_to_status[ status ]; }
10b9ca: c9 leave 10b9cb: c3 ret
001183ac <rtems_task_is_suspended>: */ rtems_status_code rtems_task_is_suspended( rtems_id id ) {
1183ac: 55 push %ebp 1183ad: 89 e5 mov %esp,%ebp 1183af: 83 ec 20 sub $0x20,%esp
register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location );
1183b2: 8d 45 f4 lea -0xc(%ebp),%eax 1183b5: 50 push %eax 1183b6: ff 75 08 pushl 0x8(%ebp) 1183b9: e8 26 37 00 00 call 11bae4 <_Thread_Get>
switch ( location ) {
1183be: 83 c4 10 add $0x10,%esp 1183c1: 8b 55 f4 mov -0xc(%ebp),%edx 1183c4: 85 d2 test %edx,%edx
1183c6: 74 08 je 1183d0 <rtems_task_is_suspended+0x24>
1183c8: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
1183cd: c9 leave 1183ce: c3 ret
1183cf: 90 nop <== NOT EXECUTED
the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) {
1183d0: f6 40 10 02 testb $0x2,0x10(%eax)
1183d4: 74 0e je 1183e4 <rtems_task_is_suspended+0x38> _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch();
1183d6: e8 b9 36 00 00 call 11ba94 <_Thread_Enable_dispatch> 1183db: b8 0f 00 00 00 mov $0xf,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
1183e0: c9 leave 1183e1: c3 ret
1183e2: 66 90 xchg %ax,%ax <== NOT EXECUTED
the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { _Thread_Enable_dispatch();
1183e4: e8 ab 36 00 00 call 11ba94 <_Thread_Enable_dispatch> 1183e9: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
1183eb: c9 leave 1183ec: c3 ret
00111b0c <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
111b0c: 55 push %ebp 111b0d: 89 e5 mov %esp,%ebp 111b0f: 57 push %edi 111b10: 56 push %esi 111b11: 53 push %ebx 111b12: 83 ec 1c sub $0x1c,%esp 111b15: 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 )
111b18: 85 c9 test %ecx,%ecx
111b1a: 0f 84 1c 01 00 00 je 111c3c <rtems_task_mode+0x130> return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing;
111b20: 8b 1d 18 54 12 00 mov 0x125418,%ebx
api = executing->API_Extensions[ THREAD_API_RTEMS ];
111b26: 8b bb f0 00 00 00 mov 0xf0(%ebx),%edi
asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
111b2c: 80 7b 75 01 cmpb $0x1,0x75(%ebx) 111b30: 19 f6 sbb %esi,%esi 111b32: 81 e6 00 01 00 00 and $0x100,%esi
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
111b38: 8b 53 7c mov 0x7c(%ebx),%edx 111b3b: 85 d2 test %edx,%edx
111b3d: 0f 85 b5 00 00 00 jne 111bf8 <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;
111b43: 80 7f 08 01 cmpb $0x1,0x8(%edi) 111b47: 19 d2 sbb %edx,%edx 111b49: 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();
111b4f: 89 55 e4 mov %edx,-0x1c(%ebp) 111b52: 89 4d e0 mov %ecx,-0x20(%ebp) 111b55: e8 b2 cc ff ff call 10e80c <_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;
111b5a: 8b 55 e4 mov -0x1c(%ebp),%edx 111b5d: 09 d0 or %edx,%eax
old_mode |= _ISR_Get_level(); *previous_mode_set = old_mode;
111b5f: 09 f0 or %esi,%eax 111b61: 8b 4d e0 mov -0x20(%ebp),%ecx 111b64: 89 01 mov %eax,(%ecx)
/* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK )
111b66: f7 45 0c 00 01 00 00 testl $0x100,0xc(%ebp)
111b6d: 74 0f je 111b7e <rtems_task_mode+0x72> executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
111b6f: 8b 45 08 mov 0x8(%ebp),%eax 111b72: c1 e8 08 shr $0x8,%eax 111b75: 83 f0 01 xor $0x1,%eax 111b78: 83 e0 01 and $0x1,%eax 111b7b: 88 43 75 mov %al,0x75(%ebx)
if ( mask & RTEMS_TIMESLICE_MASK ) {
111b7e: f7 45 0c 00 02 00 00 testl $0x200,0xc(%ebp)
111b85: 74 18 je 111b9f <rtems_task_mode+0x93> if ( _Modes_Is_timeslice(mode_set) ) {
111b87: f7 45 08 00 02 00 00 testl $0x200,0x8(%ebp)
111b8e: 74 74 je 111c04 <rtems_task_mode+0xf8> executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
111b90: c7 43 7c 01 00 00 00 movl $0x1,0x7c(%ebx)
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
111b97: a1 24 53 12 00 mov 0x125324,%eax 111b9c: 89 43 78 mov %eax,0x78(%ebx)
/* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK )
111b9f: f6 45 0c 01 testb $0x1,0xc(%ebp)
111ba3: 74 07 je 111bac <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 ) );
111ba5: f6 45 08 01 testb $0x1,0x8(%ebp)
111ba9: 74 69 je 111c14 <rtems_task_mode+0x108>
111bab: fa cli
*/ is_asr_enabled = false; needs_asr_dispatching = false; if ( mask & RTEMS_ASR_MASK ) {
111bac: f7 45 0c 00 04 00 00 testl $0x400,0xc(%ebp)
111bb3: 74 2c je 111be1 <rtems_task_mode+0xd5> * Output: * *previous_mode_set - previous mode set * always return RTEMS_SUCCESSFUL; */ rtems_status_code rtems_task_mode(
111bb5: 8b 45 08 mov 0x8(%ebp),%eax 111bb8: c1 e8 0a shr $0xa,%eax 111bbb: 83 f0 01 xor $0x1,%eax 111bbe: 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;
111bc1: 38 47 08 cmp %al,0x8(%edi)
111bc4: 74 1b je 111be1 <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;
111bc6: 88 47 08 mov %al,0x8(%edi)
) { rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level );
111bc9: 9c pushf 111bca: fa cli 111bcb: 58 pop %eax
_signals = information->signals_pending;
111bcc: 8b 57 18 mov 0x18(%edi),%edx
information->signals_pending = information->signals_posted;
111bcf: 8b 4f 14 mov 0x14(%edi),%ecx 111bd2: 89 4f 18 mov %ecx,0x18(%edi)
information->signals_posted = _signals;
111bd5: 89 57 14 mov %edx,0x14(%edi)
_ISR_Enable( _level );
111bd8: 50 push %eax 111bd9: 9d popf
if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal;
111bda: 8b 47 14 mov 0x14(%edi),%eax 111bdd: 85 c0 test %eax,%eax
111bdf: 75 53 jne 111c34 <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;
111be1: 31 db xor %ebx,%ebx
} } } if ( _System_state_Is_up( _System_state_Get() ) )
111be3: 83 3d 20 55 12 00 03 cmpl $0x3,0x125520
111bea: 74 2c je 111c18 <rtems_task_mode+0x10c> <== NEVER TAKEN
if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) _Thread_Dispatch();
111bec: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL; }
111bee: 83 c4 1c add $0x1c,%esp 111bf1: 5b pop %ebx 111bf2: 5e pop %esi 111bf3: 5f pop %edi 111bf4: c9 leave 111bf5: c3 ret
111bf6: 66 90 xchg %ax,%ax <== NOT EXECUTED
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;
111bf8: 81 ce 00 02 00 00 or $0x200,%esi 111bfe: e9 40 ff ff ff jmp 111b43 <rtems_task_mode+0x37>
111c03: 90 nop <== NOT EXECUTED
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;
111c04: c7 43 7c 00 00 00 00 movl $0x0,0x7c(%ebx)
/* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK )
111c0b: f6 45 0c 01 testb $0x1,0xc(%ebp)
111c0f: 74 9b je 111bac <rtems_task_mode+0xa0>
111c11: eb 92 jmp 111ba5 <rtems_task_mode+0x99>
111c13: 90 nop <== NOT EXECUTED
111c14: fb sti 111c15: eb 95 jmp 111bac <rtems_task_mode+0xa0>
111c17: 90 nop <== NOT EXECUTED
} } } if ( _System_state_Is_up( _System_state_Get() ) ) if ( _Thread_Evaluate_mode() || needs_asr_dispatching )
111c18: e8 93 02 00 00 call 111eb0 <_Thread_Evaluate_mode> 111c1d: 84 c0 test %al,%al
111c1f: 75 04 jne 111c25 <rtems_task_mode+0x119>
111c21: 84 db test %bl,%bl
111c23: 74 c7 je 111bec <rtems_task_mode+0xe0> _Thread_Dispatch();
111c25: e8 d2 b6 ff ff call 10d2fc <_Thread_Dispatch> 111c2a: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL; }
111c2c: 83 c4 1c add $0x1c,%esp 111c2f: 5b pop %ebx 111c30: 5e pop %esi 111c31: 5f pop %edi 111c32: c9 leave 111c33: 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;
111c34: c6 43 74 01 movb $0x1,0x74(%ebx) 111c38: b3 01 mov $0x1,%bl 111c3a: eb a7 jmp 111be3 <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 )
111c3c: 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; }
111c41: 83 c4 1c add $0x1c,%esp 111c44: 5b pop %ebx 111c45: 5e pop %esi 111c46: 5f pop %edi 111c47: c9 leave 111c48: c3 ret
0010c45c <rtems_task_restart>: rtems_status_code rtems_task_restart( rtems_id id, uint32_t argument ) {
10c45c: 55 push %ebp 10c45d: 89 e5 mov %esp,%ebp 10c45f: 83 ec 20 sub $0x20,%esp
register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location );
10c462: 8d 45 f4 lea -0xc(%ebp),%eax 10c465: 50 push %eax 10c466: ff 75 08 pushl 0x8(%ebp) 10c469: e8 36 1b 00 00 call 10dfa4 <_Thread_Get>
switch ( location ) {
10c46e: 83 c4 10 add $0x10,%esp 10c471: 8b 4d f4 mov -0xc(%ebp),%ecx 10c474: 85 c9 test %ecx,%ecx
10c476: 75 20 jne 10c498 <rtems_task_restart+0x3c> case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) {
10c478: 52 push %edx 10c479: ff 75 0c pushl 0xc(%ebp) 10c47c: 6a 00 push $0x0 10c47e: 50 push %eax 10c47f: e8 40 23 00 00 call 10e7c4 <_Thread_Restart> 10c484: 83 c4 10 add $0x10,%esp 10c487: 84 c0 test %al,%al
10c489: 75 15 jne 10c4a0 <rtems_task_restart+0x44> _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch();
10c48b: e8 f0 1a 00 00 call 10df80 <_Thread_Enable_dispatch> 10c490: b8 0e 00 00 00 mov $0xe,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10c495: c9 leave 10c496: c3 ret
10c497: 90 nop <== NOT EXECUTED
{ register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) {
10c498: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10c49d: c9 leave 10c49e: c3 ret
10c49f: 90 nop <== NOT EXECUTED
the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { _Thread_Enable_dispatch();
10c4a0: e8 db 1a 00 00 call 10df80 <_Thread_Enable_dispatch> 10c4a5: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10c4a7: c9 leave 10c4a8: c3 ret
0010f190 <rtems_task_resume>: */ rtems_status_code rtems_task_resume( rtems_id id ) {
10f190: 55 push %ebp 10f191: 89 e5 mov %esp,%ebp 10f193: 83 ec 20 sub $0x20,%esp
register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location );
10f196: 8d 45 f4 lea -0xc(%ebp),%eax 10f199: 50 push %eax 10f19a: ff 75 08 pushl 0x8(%ebp) 10f19d: e8 16 1c 00 00 call 110db8 <_Thread_Get>
switch ( location ) {
10f1a2: 83 c4 10 add $0x10,%esp 10f1a5: 8b 55 f4 mov -0xc(%ebp),%edx 10f1a8: 85 d2 test %edx,%edx
10f1aa: 74 08 je 10f1b4 <rtems_task_resume+0x24>
10f1ac: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10f1b1: c9 leave 10f1b2: c3 ret
10f1b3: 90 nop <== NOT EXECUTED
the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) {
10f1b4: f6 40 10 02 testb $0x2,0x10(%eax)
10f1b8: 75 0e jne 10f1c8 <rtems_task_resume+0x38> _Thread_Resume( the_thread, true ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch();
10f1ba: e8 a9 1b 00 00 call 110d68 <_Thread_Enable_dispatch> 10f1bf: b8 0e 00 00 00 mov $0xe,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10f1c4: c9 leave 10f1c5: c3 ret
10f1c6: 66 90 xchg %ax,%ax <== NOT EXECUTED
the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { _Thread_Resume( the_thread, true );
10f1c8: 83 ec 08 sub $0x8,%esp 10f1cb: 6a 01 push $0x1 10f1cd: 50 push %eax 10f1ce: e8 05 24 00 00 call 1115d8 <_Thread_Resume>
_Thread_Enable_dispatch();
10f1d3: e8 90 1b 00 00 call 110d68 <_Thread_Enable_dispatch> 10f1d8: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10f1da: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10f1dd: c9 leave 10f1de: c3 ret
0010d590 <rtems_task_set_note>: rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) {
10d590: 55 push %ebp 10d591: 89 e5 mov %esp,%ebp 10d593: 56 push %esi 10d594: 53 push %ebx 10d595: 83 ec 10 sub $0x10,%esp 10d598: 8b 45 08 mov 0x8(%ebp),%eax 10d59b: 8b 5d 0c mov 0xc(%ebp),%ebx 10d59e: 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() )
10d5a1: 80 3d e4 51 12 00 00 cmpb $0x0,0x1251e4
10d5a8: 74 66 je 10d610 <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 )
10d5aa: 83 fb 0f cmp $0xf,%ebx
10d5ad: 77 39 ja 10d5e8 <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 ) ||
10d5af: 85 c0 test %eax,%eax
10d5b1: 74 41 je 10d5f4 <rtems_task_set_note+0x64> _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
10d5b3: 8b 15 f8 96 12 00 mov 0x1296f8,%edx
/* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
10d5b9: 3b 42 08 cmp 0x8(%edx),%eax
10d5bc: 74 3c je 10d5fa <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 );
10d5be: 83 ec 08 sub $0x8,%esp 10d5c1: 8d 55 f4 lea -0xc(%ebp),%edx 10d5c4: 52 push %edx 10d5c5: 50 push %eax 10d5c6: e8 d5 1c 00 00 call 10f2a0 <_Thread_Get>
switch ( location ) {
10d5cb: 83 c4 10 add $0x10,%esp 10d5ce: 8b 55 f4 mov -0xc(%ebp),%edx 10d5d1: 85 d2 test %edx,%edx
10d5d3: 75 47 jne 10d61c <rtems_task_set_note+0x8c> case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note;
10d5d5: 8b 80 f0 00 00 00 mov 0xf0(%eax),%eax 10d5db: 89 74 98 20 mov %esi,0x20(%eax,%ebx,4)
_Thread_Enable_dispatch();
10d5df: e8 98 1c 00 00 call 10f27c <_Thread_Enable_dispatch> 10d5e4: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10d5e6: eb 05 jmp 10d5ed <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 )
10d5e8: b8 0a 00 00 00 mov $0xa,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10d5ed: 8d 65 f8 lea -0x8(%ebp),%esp 10d5f0: 5b pop %ebx 10d5f1: 5e pop %esi 10d5f2: c9 leave 10d5f3: c3 ret
/* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
10d5f4: 8b 15 f8 96 12 00 mov 0x1296f8,%edx
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note;
10d5fa: 8b 82 f0 00 00 00 mov 0xf0(%edx),%eax 10d600: 89 74 98 20 mov %esi,0x20(%eax,%ebx,4) 10d604: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10d606: 8d 65 f8 lea -0x8(%ebp),%esp 10d609: 5b pop %ebx 10d60a: 5e pop %esi 10d60b: c9 leave 10d60c: c3 ret
10d60d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{ register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() )
10d610: b8 16 00 00 00 mov $0x16,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10d615: 8d 65 f8 lea -0x8(%ebp),%esp 10d618: 5b pop %ebx 10d619: 5e pop %esi 10d61a: c9 leave 10d61b: c3 ret
api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) {
10d61c: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10d621: 8d 65 f8 lea -0x8(%ebp),%esp 10d624: 5b pop %ebx 10d625: 5e pop %esi 10d626: c9 leave 10d627: c3 ret
0010fe4c <rtems_task_set_priority>: rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) {
10fe4c: 55 push %ebp 10fe4d: 89 e5 mov %esp,%ebp 10fe4f: 56 push %esi 10fe50: 53 push %ebx 10fe51: 83 ec 10 sub $0x10,%esp 10fe54: 8b 5d 0c mov 0xc(%ebp),%ebx 10fe57: 8b 75 10 mov 0x10(%ebp),%esi
register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY &&
10fe5a: 85 db test %ebx,%ebx
10fe5c: 74 0b je 10fe69 <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 ) &&
10fe5e: 0f b6 05 14 72 12 00 movzbl 0x127214,%eax 10fe65: 39 c3 cmp %eax,%ebx
10fe67: 77 5f ja 10fec8 <rtems_task_set_priority+0x7c> !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority )
10fe69: 85 f6 test %esi,%esi
10fe6b: 74 67 je 10fed4 <rtems_task_set_priority+0x88> return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location );
10fe6d: 83 ec 08 sub $0x8,%esp 10fe70: 8d 45 f4 lea -0xc(%ebp),%eax 10fe73: 50 push %eax 10fe74: ff 75 08 pushl 0x8(%ebp) 10fe77: e8 6c 1d 00 00 call 111be8 <_Thread_Get>
switch ( location ) {
10fe7c: 83 c4 10 add $0x10,%esp 10fe7f: 8b 55 f4 mov -0xc(%ebp),%edx 10fe82: 85 d2 test %edx,%edx
10fe84: 75 36 jne 10febc <rtems_task_set_priority+0x70> case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority;
10fe86: 8b 50 14 mov 0x14(%eax),%edx 10fe89: 89 16 mov %edx,(%esi)
if ( new_priority != RTEMS_CURRENT_PRIORITY ) {
10fe8b: 85 db test %ebx,%ebx
10fe8d: 74 1c je 10feab <rtems_task_set_priority+0x5f> the_thread->real_priority = new_priority;
10fe8f: 89 58 18 mov %ebx,0x18(%eax)
if ( the_thread->resource_count == 0 ||
10fe92: 8b 48 1c mov 0x1c(%eax),%ecx 10fe95: 85 c9 test %ecx,%ecx
10fe97: 74 05 je 10fe9e <rtems_task_set_priority+0x52> the_thread->current_priority > new_priority )
10fe99: 3b 58 14 cmp 0x14(%eax),%ebx
10fe9c: 73 0d jae 10feab <rtems_task_set_priority+0x5f><== NEVER TAKEN
_Thread_Change_priority( the_thread, new_priority, false );
10fe9e: 52 push %edx 10fe9f: 6a 00 push $0x0 10fea1: 53 push %ebx 10fea2: 50 push %eax 10fea3: e8 08 18 00 00 call 1116b0 <_Thread_Change_priority> 10fea8: 83 c4 10 add $0x10,%esp
} _Thread_Enable_dispatch();
10feab: e8 e8 1c 00 00 call 111b98 <_Thread_Enable_dispatch> 10feb0: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10feb2: 8d 65 f8 lea -0x8(%ebp),%esp 10feb5: 5b pop %ebx 10feb6: 5e pop %esi 10feb7: c9 leave 10feb8: c3 ret
10feb9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if ( !old_priority ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) {
10febc: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10fec1: 8d 65 f8 lea -0x8(%ebp),%esp 10fec4: 5b pop %ebx 10fec5: 5e pop %esi 10fec6: c9 leave 10fec7: c3 ret 10fec8: b8 13 00 00 00 mov $0x13,%eax 10fecd: 8d 65 f8 lea -0x8(%ebp),%esp 10fed0: 5b pop %ebx 10fed1: 5e pop %esi 10fed2: c9 leave 10fed3: c3 ret
if ( new_priority != RTEMS_CURRENT_PRIORITY && !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority )
10fed4: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10fed9: 8d 65 f8 lea -0x8(%ebp),%esp 10fedc: 5b pop %ebx 10fedd: 5e pop %esi 10fede: c9 leave 10fedf: c3 ret
0010ba40 <rtems_task_start>: rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) {
10ba40: 55 push %ebp 10ba41: 89 e5 mov %esp,%ebp 10ba43: 53 push %ebx 10ba44: 83 ec 14 sub $0x14,%esp 10ba47: 8b 5d 0c mov 0xc(%ebp),%ebx
register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL )
10ba4a: 85 db test %ebx,%ebx
10ba4c: 74 4e je 10ba9c <rtems_task_start+0x5c> return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location );
10ba4e: 83 ec 08 sub $0x8,%esp 10ba51: 8d 45 f4 lea -0xc(%ebp),%eax 10ba54: 50 push %eax 10ba55: ff 75 08 pushl 0x8(%ebp) 10ba58: e8 1f 1a 00 00 call 10d47c <_Thread_Get>
switch ( location ) {
10ba5d: 83 c4 10 add $0x10,%esp 10ba60: 8b 55 f4 mov -0xc(%ebp),%edx 10ba63: 85 d2 test %edx,%edx
10ba65: 75 29 jne 10ba90 <rtems_task_start+0x50> case OBJECTS_LOCAL: if ( _Thread_Start(
10ba67: 83 ec 0c sub $0xc,%esp 10ba6a: ff 75 10 pushl 0x10(%ebp) 10ba6d: 6a 00 push $0x0 10ba6f: 53 push %ebx 10ba70: 6a 00 push $0x0 10ba72: 50 push %eax 10ba73: e8 d0 24 00 00 call 10df48 <_Thread_Start> 10ba78: 83 c4 20 add $0x20,%esp 10ba7b: 84 c0 test %al,%al
10ba7d: 75 29 jne 10baa8 <rtems_task_start+0x68> the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch();
10ba7f: e8 d4 19 00 00 call 10d458 <_Thread_Enable_dispatch> 10ba84: b8 0e 00 00 00 mov $0xe,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10ba89: 8b 5d fc mov -0x4(%ebp),%ebx 10ba8c: c9 leave 10ba8d: c3 ret
10ba8e: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( entry_point == NULL ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) {
10ba90: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10ba95: 8b 5d fc mov -0x4(%ebp),%ebx 10ba98: c9 leave 10ba99: c3 ret
10ba9a: 66 90 xchg %ax,%ax <== NOT EXECUTED
) { register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL )
10ba9c: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10baa1: 8b 5d fc mov -0x4(%ebp),%ebx 10baa4: c9 leave 10baa5: c3 ret
10baa6: 66 90 xchg %ax,%ax <== NOT EXECUTED
switch ( location ) { case OBJECTS_LOCAL: if ( _Thread_Start( the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch();
10baa8: e8 ab 19 00 00 call 10d458 <_Thread_Enable_dispatch> 10baad: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10baaf: 8b 5d fc mov -0x4(%ebp),%ebx 10bab2: c9 leave 10bab3: c3 ret
0010ffb4 <rtems_task_suspend>: */ rtems_status_code rtems_task_suspend( rtems_id id ) {
10ffb4: 55 push %ebp 10ffb5: 89 e5 mov %esp,%ebp 10ffb7: 83 ec 20 sub $0x20,%esp
register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location );
10ffba: 8d 45 f4 lea -0xc(%ebp),%eax 10ffbd: 50 push %eax 10ffbe: ff 75 08 pushl 0x8(%ebp) 10ffc1: e8 b6 d4 ff ff call 10d47c <_Thread_Get>
switch ( location ) {
10ffc6: 83 c4 10 add $0x10,%esp 10ffc9: 8b 55 f4 mov -0xc(%ebp),%edx 10ffcc: 85 d2 test %edx,%edx
10ffce: 74 08 je 10ffd8 <rtems_task_suspend+0x24>
10ffd0: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10ffd5: c9 leave 10ffd6: c3 ret
10ffd7: 90 nop <== NOT EXECUTED
the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) {
10ffd8: f6 40 10 02 testb $0x2,0x10(%eax)
10ffdc: 74 0e je 10ffec <rtems_task_suspend+0x38> _Thread_Suspend( the_thread ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch();
10ffde: e8 75 d4 ff ff call 10d458 <_Thread_Enable_dispatch> 10ffe3: b8 0f 00 00 00 mov $0xf,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10ffe8: c9 leave 10ffe9: c3 ret
10ffea: 66 90 xchg %ax,%ax <== NOT EXECUTED
the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { _Thread_Suspend( the_thread );
10ffec: 83 ec 0c sub $0xc,%esp 10ffef: 50 push %eax 10fff0: e8 f3 09 00 00 call 1109e8 <_Thread_Suspend>
_Thread_Enable_dispatch();
10fff5: e8 5e d4 ff ff call 10d458 <_Thread_Enable_dispatch> 10fffa: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10fffc: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
10ffff: c9 leave 110000: c3 ret
0012d968 <rtems_task_variable_add>: rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) {
12d968: 55 push %ebp 12d969: 89 e5 mov %esp,%ebp 12d96b: 57 push %edi 12d96c: 56 push %esi 12d96d: 53 push %ebx 12d96e: 83 ec 1c sub $0x1c,%esp 12d971: 8b 5d 0c mov 0xc(%ebp),%ebx 12d974: 8b 7d 10 mov 0x10(%ebp),%edi
Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr )
12d977: 85 db test %ebx,%ebx
12d979: 0f 84 9d 00 00 00 je 12da1c <rtems_task_variable_add+0xb4> return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location);
12d97f: 83 ec 08 sub $0x8,%esp 12d982: 8d 45 e4 lea -0x1c(%ebp),%eax 12d985: 50 push %eax 12d986: ff 75 08 pushl 0x8(%ebp) 12d989: e8 96 49 fe ff call 112324 <_Thread_Get> 12d98e: 89 c6 mov %eax,%esi
switch (location) {
12d990: 83 c4 10 add $0x10,%esp 12d993: 8b 45 e4 mov -0x1c(%ebp),%eax 12d996: 85 c0 test %eax,%eax
12d998: 74 0e je 12d9a8 <rtems_task_variable_add+0x40>
12d99a: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
12d99f: 8d 65 f4 lea -0xc(%ebp),%esp 12d9a2: 5b pop %ebx 12d9a3: 5e pop %esi 12d9a4: 5f pop %edi 12d9a5: c9 leave 12d9a6: c3 ret
12d9a7: 90 nop <== NOT EXECUTED
case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables;
12d9a8: 8b 86 00 01 00 00 mov 0x100(%esi),%eax
while (tvp) {
12d9ae: 85 c0 test %eax,%eax
12d9b0: 75 44 jne 12d9f6 <rtems_task_variable_add+0x8e>
12d9b2: 66 90 xchg %ax,%ax
} /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *)
12d9b4: 83 ec 0c sub $0xc,%esp 12d9b7: 6a 14 push $0x14 12d9b9: e8 7e 5a fe ff call 11343c <_Workspace_Allocate>
_Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) {
12d9be: 83 c4 10 add $0x10,%esp 12d9c1: 85 c0 test %eax,%eax
12d9c3: 74 4b je 12da10 <rtems_task_variable_add+0xa8> _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr;
12d9c5: 8b 13 mov (%ebx),%edx 12d9c7: 89 50 08 mov %edx,0x8(%eax)
new->ptr = ptr;
12d9ca: 89 58 04 mov %ebx,0x4(%eax)
new->dtor = dtor;
12d9cd: 89 78 10 mov %edi,0x10(%eax)
new->next = (struct rtems_task_variable_tt *)the_thread->task_variables;
12d9d0: 8b 96 00 01 00 00 mov 0x100(%esi),%edx 12d9d6: 89 10 mov %edx,(%eax)
the_thread->task_variables = new;
12d9d8: 89 86 00 01 00 00 mov %eax,0x100(%esi)
_Thread_Enable_dispatch();
12d9de: e8 1d 49 fe ff call 112300 <_Thread_Enable_dispatch> 12d9e3: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
12d9e5: 8d 65 f4 lea -0xc(%ebp),%esp 12d9e8: 5b pop %ebx 12d9e9: 5e pop %esi 12d9ea: 5f pop %edi 12d9eb: c9 leave 12d9ec: c3 ret
12d9ed: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (tvp->ptr == ptr) { tvp->dtor = dtor; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next;
12d9f0: 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) {
12d9f2: 85 c0 test %eax,%eax
12d9f4: 74 be je 12d9b4 <rtems_task_variable_add+0x4c> if (tvp->ptr == ptr) {
12d9f6: 39 58 04 cmp %ebx,0x4(%eax)
12d9f9: 75 f5 jne 12d9f0 <rtems_task_variable_add+0x88> tvp->dtor = dtor;
12d9fb: 89 78 10 mov %edi,0x10(%eax)
_Thread_Enable_dispatch();
12d9fe: e8 fd 48 fe ff call 112300 <_Thread_Enable_dispatch> 12da03: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
12da05: 8d 65 f4 lea -0xc(%ebp),%esp 12da08: 5b pop %ebx 12da09: 5e pop %esi 12da0a: 5f pop %edi 12da0b: c9 leave 12da0c: c3 ret
12da0d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* 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();
12da10: e8 eb 48 fe ff call 112300 <_Thread_Enable_dispatch> 12da15: b8 1a 00 00 00 mov $0x1a,%eax
return RTEMS_NO_MEMORY;
12da1a: eb 83 jmp 12d99f <rtems_task_variable_add+0x37>
{ Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr )
12da1c: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
12da21: 8d 65 f4 lea -0xc(%ebp),%esp 12da24: 5b pop %ebx 12da25: 5e pop %esi 12da26: 5f pop %edi 12da27: c9 leave 12da28: c3 ret
0012da2c <rtems_task_variable_delete>: rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) {
12da2c: 55 push %ebp 12da2d: 89 e5 mov %esp,%ebp 12da2f: 53 push %ebx 12da30: 83 ec 14 sub $0x14,%esp 12da33: 8b 5d 0c mov 0xc(%ebp),%ebx
Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr )
12da36: 85 db test %ebx,%ebx
12da38: 74 4c je 12da86 <rtems_task_variable_delete+0x5a> return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location);
12da3a: 83 ec 08 sub $0x8,%esp 12da3d: 8d 45 f4 lea -0xc(%ebp),%eax 12da40: 50 push %eax 12da41: ff 75 08 pushl 0x8(%ebp) 12da44: e8 db 48 fe ff call 112324 <_Thread_Get>
switch (location) {
12da49: 83 c4 10 add $0x10,%esp 12da4c: 8b 55 f4 mov -0xc(%ebp),%edx 12da4f: 85 d2 test %edx,%edx
12da51: 74 0d je 12da60 <rtems_task_variable_delete+0x34>
12da53: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
12da58: 8b 5d fc mov -0x4(%ebp),%ebx 12da5b: c9 leave 12da5c: c3 ret
12da5d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables;
12da60: 8b 90 00 01 00 00 mov 0x100(%eax),%edx
while (tvp) {
12da66: 85 d2 test %edx,%edx
12da68: 74 17 je 12da81 <rtems_task_variable_delete+0x55> if (tvp->ptr == ptr) {
12da6a: 39 5a 04 cmp %ebx,0x4(%edx)
12da6d: 75 0a jne 12da79 <rtems_task_variable_delete+0x4d>
12da6f: eb 3c jmp 12daad <rtems_task_variable_delete+0x81>
12da71: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
12da74: 39 5a 04 cmp %ebx,0x4(%edx)
12da77: 74 17 je 12da90 <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;
12da79: 89 d1 mov %edx,%ecx
} prev = tvp; tvp = (rtems_task_variable_t *)tvp->next;
12da7b: 8b 12 mov (%edx),%edx
the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) {
12da7d: 85 d2 test %edx,%edx
12da7f: 75 f3 jne 12da74 <rtems_task_variable_delete+0x48><== NEVER TAKEN
return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch();
12da81: e8 7a 48 fe ff call 112300 <_Thread_Enable_dispatch> 12da86: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
12da8b: 8b 5d fc mov -0x4(%ebp),%ebx 12da8e: c9 leave 12da8f: c3 ret
case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { if (prev) prev->next = tvp->next;
12da90: 8b 1a mov (%edx),%ebx 12da92: 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 );
12da94: 83 ec 08 sub $0x8,%esp 12da97: 52 push %edx 12da98: 50 push %eax 12da99: e8 a2 00 00 00 call 12db40 <_RTEMS_Tasks_Invoke_task_variable_dtor>
_Thread_Enable_dispatch();
12da9e: e8 5d 48 fe ff call 112300 <_Thread_Enable_dispatch> 12daa3: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
12daa5: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
12daa8: 8b 5d fc mov -0x4(%ebp),%ebx 12daab: c9 leave 12daac: 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;
12daad: 8b 0a mov (%edx),%ecx 12daaf: 89 88 00 01 00 00 mov %ecx,0x100(%eax) 12dab5: eb dd jmp 12da94 <rtems_task_variable_delete+0x68>
0012dab8 <rtems_task_variable_get>: rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) {
12dab8: 55 push %ebp 12dab9: 89 e5 mov %esp,%ebp 12dabb: 56 push %esi 12dabc: 53 push %ebx 12dabd: 83 ec 10 sub $0x10,%esp 12dac0: 8b 5d 0c mov 0xc(%ebp),%ebx 12dac3: 8b 75 10 mov 0x10(%ebp),%esi
Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr )
12dac6: 85 db test %ebx,%ebx
12dac8: 74 56 je 12db20 <rtems_task_variable_get+0x68> return RTEMS_INVALID_ADDRESS; if ( !result )
12daca: 85 f6 test %esi,%esi
12dacc: 74 52 je 12db20 <rtems_task_variable_get+0x68> return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location);
12dace: 83 ec 08 sub $0x8,%esp 12dad1: 8d 45 f4 lea -0xc(%ebp),%eax 12dad4: 50 push %eax 12dad5: ff 75 08 pushl 0x8(%ebp) 12dad8: e8 47 48 fe ff call 112324 <_Thread_Get>
switch (location) {
12dadd: 83 c4 10 add $0x10,%esp 12dae0: 8b 55 f4 mov -0xc(%ebp),%edx 12dae3: 85 d2 test %edx,%edx
12dae5: 75 2d jne 12db14 <rtems_task_variable_get+0x5c> case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables;
12dae7: 8b 80 00 01 00 00 mov 0x100(%eax),%eax
while (tvp) {
12daed: 85 c0 test %eax,%eax
12daef: 75 09 jne 12dafa <rtems_task_variable_get+0x42>
12daf1: eb 39 jmp 12db2c <rtems_task_variable_get+0x74>
12daf3: 90 nop <== NOT EXECUTED
*/ *result = tvp->tval; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next;
12daf4: 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) {
12daf6: 85 c0 test %eax,%eax
12daf8: 74 32 je 12db2c <rtems_task_variable_get+0x74><== ALWAYS TAKEN
if (tvp->ptr == ptr) {
12dafa: 39 58 04 cmp %ebx,0x4(%eax)
12dafd: 75 f5 jne 12daf4 <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;
12daff: 8b 40 0c mov 0xc(%eax),%eax 12db02: 89 06 mov %eax,(%esi)
_Thread_Enable_dispatch();
12db04: e8 f7 47 fe ff call 112300 <_Thread_Enable_dispatch> 12db09: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
12db0b: 8d 65 f8 lea -0x8(%ebp),%esp 12db0e: 5b pop %ebx 12db0f: 5e pop %esi 12db10: c9 leave 12db11: c3 ret
12db12: 66 90 xchg %ax,%ax <== NOT EXECUTED
if ( !result ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) {
12db14: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
12db19: 8d 65 f8 lea -0x8(%ebp),%esp 12db1c: 5b pop %ebx 12db1d: 5e pop %esi 12db1e: c9 leave 12db1f: c3 ret
return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); return RTEMS_INVALID_ADDRESS;
12db20: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
12db25: 8d 65 f8 lea -0x8(%ebp),%esp 12db28: 5b pop %ebx 12db29: 5e pop %esi 12db2a: c9 leave 12db2b: c3 ret
_Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch();
12db2c: e8 cf 47 fe ff call 112300 <_Thread_Enable_dispatch> 12db31: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
12db36: 8d 65 f8 lea -0x8(%ebp),%esp 12db39: 5b pop %ebx 12db3a: 5e pop %esi 12db3b: c9 leave 12db3c: c3 ret
0010bab4 <rtems_task_wake_after>: */ rtems_status_code rtems_task_wake_after( rtems_interval ticks ) {
10bab4: 55 push %ebp 10bab5: 89 e5 mov %esp,%ebp 10bab7: 53 push %ebx 10bab8: 83 ec 04 sub $0x4,%esp 10babb: 8b 5d 08 mov 0x8(%ebp),%ebx 10babe: a1 58 53 12 00 mov 0x125358,%eax 10bac3: 40 inc %eax 10bac4: a3 58 53 12 00 mov %eax,0x125358
_Thread_Disable_dispatch(); if ( ticks == 0 ) {
10bac9: 85 db test %ebx,%ebx
10bacb: 74 53 je 10bb20 <rtems_task_wake_after+0x6c> _Thread_Yield_processor(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING );
10bacd: 83 ec 08 sub $0x8,%esp 10bad0: 6a 08 push $0x8 10bad2: ff 35 18 54 12 00 pushl 0x125418 10bad8: e8 2b 22 00 00 call 10dd08 <_Thread_Set_state>
_Watchdog_Initialize( &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id,
10badd: a1 18 54 12 00 mov 0x125418,%eax
_Thread_Disable_dispatch(); if ( ticks == 0 ) { _Thread_Yield_processor(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); _Watchdog_Initialize(
10bae2: 8b 50 08 mov 0x8(%eax),%edx
Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE;
10bae5: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax)
the_watchdog->routine = routine;
10baec: c7 40 64 c0 d2 10 00 movl $0x10d2c0,0x64(%eax)
the_watchdog->id = id;
10baf3: 89 50 68 mov %edx,0x68(%eax)
the_watchdog->user_data = user_data;
10baf6: c7 40 6c 00 00 00 00 movl $0x0,0x6c(%eax)
Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units;
10bafd: 89 58 54 mov %ebx,0x54(%eax)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
10bb00: 5a pop %edx 10bb01: 59 pop %ecx 10bb02: 83 c0 48 add $0x48,%eax 10bb05: 50 push %eax 10bb06: 68 38 54 12 00 push $0x125438 10bb0b: e8 48 28 00 00 call 10e358 <_Watchdog_Insert> 10bb10: 83 c4 10 add $0x10,%esp
_Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch();
10bb13: e8 40 19 00 00 call 10d458 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL; }
10bb18: 31 c0 xor %eax,%eax 10bb1a: 8b 5d fc mov -0x4(%ebp),%ebx 10bb1d: c9 leave 10bb1e: c3 ret
10bb1f: 90 nop <== NOT EXECUTED
rtems_interval ticks ) { _Thread_Disable_dispatch(); if ( ticks == 0 ) { _Thread_Yield_processor();
10bb20: e8 c3 24 00 00 call 10dfe8 <_Thread_Yield_processor>
_Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch();
10bb25: e8 2e 19 00 00 call 10d458 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL; }
10bb2a: 31 c0 xor %eax,%eax 10bb2c: 8b 5d fc mov -0x4(%ebp),%ebx 10bb2f: c9 leave 10bb30: c3 ret
0010c8e0 <rtems_task_wake_when>: */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) {
10c8e0: 55 push %ebp 10c8e1: 89 e5 mov %esp,%ebp 10c8e3: 53 push %ebx 10c8e4: 83 ec 14 sub $0x14,%esp 10c8e7: 8b 5d 08 mov 0x8(%ebp),%ebx
Watchdog_Interval seconds; if ( !_TOD_Is_set )
10c8ea: 80 3d 2c 89 12 00 00 cmpb $0x0,0x12892c
10c8f1: 0f 84 a9 00 00 00 je 10c9a0 <rtems_task_wake_when+0xc0> return RTEMS_NOT_DEFINED; if ( !time_buffer )
10c8f7: 85 db test %ebx,%ebx
10c8f9: 0f 84 ad 00 00 00 je 10c9ac <rtems_task_wake_when+0xcc> return RTEMS_INVALID_ADDRESS; time_buffer->ticks = 0;
10c8ff: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx)
if ( !_TOD_Validate( time_buffer ) )
10c906: 83 ec 0c sub $0xc,%esp 10c909: 53 push %ebx 10c90a: e8 d9 f3 ff ff call 10bce8 <_TOD_Validate> 10c90f: 83 c4 10 add $0x10,%esp 10c912: 84 c0 test %al,%al
10c914: 75 0a jne 10c920 <rtems_task_wake_when+0x40> _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL;
10c916: b8 14 00 00 00 mov $0x14,%eax
}
10c91b: 8b 5d fc mov -0x4(%ebp),%ebx 10c91e: c9 leave 10c91f: c3 ret
time_buffer->ticks = 0; if ( !_TOD_Validate( time_buffer ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer );
10c920: 83 ec 0c sub $0xc,%esp 10c923: 53 push %ebx 10c924: e8 33 f3 ff ff call 10bc5c <_TOD_To_seconds>
if ( seconds <= _TOD_Seconds_since_epoch() )
10c929: 83 c4 10 add $0x10,%esp 10c92c: 3b 05 ac 89 12 00 cmp 0x1289ac,%eax
10c932: 76 e2 jbe 10c916 <rtems_task_wake_when+0x36>
10c934: 8b 15 18 89 12 00 mov 0x128918,%edx 10c93a: 42 inc %edx 10c93b: 89 15 18 89 12 00 mov %edx,0x128918
return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME );
10c941: 83 ec 08 sub $0x8,%esp 10c944: 6a 10 push $0x10 10c946: ff 35 d8 89 12 00 pushl 0x1289d8 10c94c: 89 45 f4 mov %eax,-0xc(%ebp) 10c94f: e8 24 23 00 00 call 10ec78 <_Thread_Set_state>
_Watchdog_Initialize( &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id,
10c954: 8b 15 d8 89 12 00 mov 0x1289d8,%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(
10c95a: 8b 4a 08 mov 0x8(%edx),%ecx
Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE;
10c95d: c7 42 50 00 00 00 00 movl $0x0,0x50(%edx)
the_watchdog->routine = routine;
10c964: c7 42 64 30 e2 10 00 movl $0x10e230,0x64(%edx)
the_watchdog->id = id;
10c96b: 89 4a 68 mov %ecx,0x68(%edx)
the_watchdog->user_data = user_data;
10c96e: c7 42 6c 00 00 00 00 movl $0x0,0x6c(%edx)
Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units;
10c975: 8b 45 f4 mov -0xc(%ebp),%eax 10c978: 2b 05 ac 89 12 00 sub 0x1289ac,%eax 10c97e: 89 42 54 mov %eax,0x54(%edx)
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
10c981: 58 pop %eax 10c982: 59 pop %ecx 10c983: 83 c2 48 add $0x48,%edx 10c986: 52 push %edx 10c987: 68 ec 89 12 00 push $0x1289ec 10c98c: e8 af 29 00 00 call 10f340 <_Watchdog_Insert>
); _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch();
10c991: e8 32 1a 00 00 call 10e3c8 <_Thread_Enable_dispatch> 10c996: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
10c998: 83 c4 10 add $0x10,%esp 10c99b: e9 7b ff ff ff jmp 10c91b <rtems_task_wake_when+0x3b>
rtems_time_of_day *time_buffer ) { Watchdog_Interval seconds; if ( !_TOD_Is_set )
10c9a0: b8 0b 00 00 00 mov $0xb,%eax
&_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
10c9a5: 8b 5d fc mov -0x4(%ebp),%ebx 10c9a8: c9 leave 10c9a9: c3 ret
10c9aa: 66 90 xchg %ax,%ax <== NOT EXECUTED
Watchdog_Interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !time_buffer )
10c9ac: b8 09 00 00 00 mov $0x9,%eax
&_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
10c9b1: 8b 5d fc mov -0x4(%ebp),%ebx 10c9b4: c9 leave 10c9b5: c3 ret
0010a0a0 <rtems_termios_baud_to_index>: #include <rtems/termiostypes.h> int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) {
10a0a0: 55 push %ebp 10a0a1: 89 e5 mov %esp,%ebp 10a0a3: 8b 45 08 mov 0x8(%ebp),%eax
int baud_index; switch (termios_baud) {
10a0a6: 83 f8 09 cmp $0x9,%eax
10a0a9: 0f 84 f1 00 00 00 je 10a1a0 <rtems_termios_baud_to_index+0x100><== ALWAYS TAKEN
10a0af: 7e 37 jle 10a0e8 <rtems_termios_baud_to_index+0x48><== NEVER TAKEN
10a0b1: 83 f8 0e cmp $0xe,%eax <== NOT EXECUTED 10a0b4: 0f 84 f6 00 00 00 je 10a1b0 <rtems_termios_baud_to_index+0x110><== NOT EXECUTED 10a0ba: 7e 5c jle 10a118 <rtems_termios_baud_to_index+0x78><== NOT EXECUTED 10a0bc: 3d 02 10 00 00 cmp $0x1002,%eax <== NOT EXECUTED 10a0c1: 0f 84 01 01 00 00 je 10a1c8 <rtems_termios_baud_to_index+0x128><== NOT EXECUTED 10a0c7: 0f 8e 97 00 00 00 jle 10a164 <rtems_termios_baud_to_index+0xc4><== NOT EXECUTED 10a0cd: 3d 03 10 00 00 cmp $0x1003,%eax <== NOT EXECUTED 10a0d2: 0f 84 e0 00 00 00 je 10a1b8 <rtems_termios_baud_to_index+0x118><== NOT EXECUTED 10a0d8: 3d 04 10 00 00 cmp $0x1004,%eax <== NOT EXECUTED 10a0dd: 75 51 jne 10a130 <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;
10a0df: b8 13 00 00 00 mov $0x13,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a0e4: c9 leave <== NOT EXECUTED 10a0e5: c3 ret <== NOT EXECUTED 10a0e6: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) {
10a0e8: 83 f8 04 cmp $0x4,%eax
10a0eb: 0f 84 b7 00 00 00 je 10a1a8 <rtems_termios_baud_to_index+0x108><== ALWAYS TAKEN 10a0f1: 7f 45 jg 10a138 <rtems_termios_baud_to_index+0x98><== ALWAYS TAKEN
10a0f3: 83 f8 01 cmp $0x1,%eax
10a0f6: 0f 84 8c 00 00 00 je 10a188 <rtems_termios_baud_to_index+0xe8><== ALWAYS TAKEN
10a0fc: 0f 8e de 00 00 00 jle 10a1e0 <rtems_termios_baud_to_index+0x140><== NEVER TAKEN
10a102: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED 10a105: 0f 84 c5 00 00 00 je 10a1d0 <rtems_termios_baud_to_index+0x130><== NOT EXECUTED 10a10b: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED 10a10e: 75 20 jne 10a130 <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;
10a110: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a115: c9 leave <== NOT EXECUTED 10a116: c3 ret <== NOT EXECUTED 10a117: 90 nop <== NOT EXECUTED
rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) {
10a118: 83 f8 0b cmp $0xb,%eax <== NOT EXECUTED 10a11b: 0f 84 9f 00 00 00 je 10a1c0 <rtems_termios_baud_to_index+0x120><== NOT EXECUTED 10a121: 7c 39 jl 10a15c <rtems_termios_baud_to_index+0xbc><== NOT EXECUTED 10a123: 83 f8 0c cmp $0xc,%eax <== NOT EXECUTED 10a126: 74 50 je 10a178 <rtems_termios_baud_to_index+0xd8><== NOT EXECUTED 10a128: 83 f8 0d cmp $0xd,%eax <== NOT EXECUTED 10a12b: 74 62 je 10a18f <rtems_termios_baud_to_index+0xef><== NOT EXECUTED 10a12d: 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;
10a130: b8 ff ff ff ff mov $0xffffffff,%eax
default: baud_index = -1; break; } return baud_index; }
10a135: c9 leave 10a136: c3 ret
10a137: 90 nop <== NOT EXECUTED
rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) {
10a138: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED 10a13b: 74 43 je 10a180 <rtems_termios_baud_to_index+0xe0><== NOT EXECUTED 10a13d: 7c 15 jl 10a154 <rtems_termios_baud_to_index+0xb4><== NOT EXECUTED 10a13f: 83 f8 07 cmp $0x7,%eax <== NOT EXECUTED 10a142: 0f 84 90 00 00 00 je 10a1d8 <rtems_termios_baud_to_index+0x138><== NOT EXECUTED 10a148: 83 f8 08 cmp $0x8,%eax <== NOT EXECUTED 10a14b: 75 e3 jne 10a130 <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;
10a14d: b8 08 00 00 00 mov $0x8,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a152: c9 leave <== NOT EXECUTED 10a153: 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;
10a154: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a159: c9 leave <== NOT EXECUTED 10a15a: c3 ret <== NOT EXECUTED 10a15b: 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;
10a15c: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a161: c9 leave <== NOT EXECUTED 10a162: c3 ret <== NOT EXECUTED 10a163: 90 nop <== NOT EXECUTED
rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) {
10a164: 83 f8 0f cmp $0xf,%eax <== NOT EXECUTED 10a167: 74 2f je 10a198 <rtems_termios_baud_to_index+0xf8><== NOT EXECUTED 10a169: 3d 01 10 00 00 cmp $0x1001,%eax <== NOT EXECUTED 10a16e: 75 c0 jne 10a130 <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;
10a170: b8 10 00 00 00 mov $0x10,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a175: c9 leave <== NOT EXECUTED 10a176: c3 ret <== NOT EXECUTED 10a177: 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;
10a178: b8 0c 00 00 00 mov $0xc,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a17d: c9 leave <== NOT EXECUTED 10a17e: c3 ret <== NOT EXECUTED 10a17f: 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;
10a180: b8 06 00 00 00 mov $0x6,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a185: c9 leave <== NOT EXECUTED 10a186: c3 ret <== NOT EXECUTED 10a187: 90 nop <== NOT EXECUTED
rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) {
10a188: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a18d: c9 leave <== NOT EXECUTED 10a18e: 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;
10a18f: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a194: c9 leave <== NOT EXECUTED 10a195: c3 ret <== NOT EXECUTED 10a196: 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;
10a198: b8 0f 00 00 00 mov $0xf,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a19d: c9 leave <== NOT EXECUTED 10a19e: c3 ret <== NOT EXECUTED 10a19f: 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;
10a1a0: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a1a5: c9 leave <== NOT EXECUTED 10a1a6: c3 ret <== NOT EXECUTED 10a1a7: 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;
10a1a8: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a1ad: c9 leave <== NOT EXECUTED 10a1ae: c3 ret <== NOT EXECUTED 10a1af: 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;
10a1b0: b8 0e 00 00 00 mov $0xe,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a1b5: c9 leave <== NOT EXECUTED 10a1b6: c3 ret <== NOT EXECUTED 10a1b7: 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;
10a1b8: b8 12 00 00 00 mov $0x12,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a1bd: c9 leave <== NOT EXECUTED 10a1be: c3 ret <== NOT EXECUTED 10a1bf: 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;
10a1c0: b8 0b 00 00 00 mov $0xb,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a1c5: c9 leave <== NOT EXECUTED 10a1c6: c3 ret <== NOT EXECUTED 10a1c7: 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;
10a1c8: b8 11 00 00 00 mov $0x11,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a1cd: c9 leave <== NOT EXECUTED 10a1ce: c3 ret <== NOT EXECUTED 10a1cf: 90 nop <== NOT EXECUTED
rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) {
10a1d0: b8 02 00 00 00 mov $0x2,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a1d5: c9 leave <== NOT EXECUTED 10a1d6: c3 ret <== NOT EXECUTED 10a1d7: 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;
10a1d8: b8 07 00 00 00 mov $0x7,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a1dd: c9 leave <== NOT EXECUTED 10a1de: c3 ret <== NOT EXECUTED 10a1df: 90 nop <== NOT EXECUTED
rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) {
10a1e0: 85 c0 test %eax,%eax
10a1e2: 0f 85 48 ff ff ff jne 10a130 <rtems_termios_baud_to_index+0x90><== NEVER TAKEN
10a1e8: 31 c0 xor %eax,%eax <== NOT EXECUTED
case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; }
10a1ea: c9 leave <== NOT EXECUTED 10a1eb: c3 ret <== NOT EXECUTED
00108dbc <rtems_termios_baud_to_number>: #include <rtems/termiostypes.h> int32_t rtems_termios_baud_to_number( int termios_baud ) {
108dbc: 55 push %ebp 108dbd: 89 e5 mov %esp,%ebp 108dbf: 8b 45 08 mov 0x8(%ebp),%eax
int32_t baud; switch (termios_baud) {
108dc2: 83 f8 09 cmp $0x9,%eax
108dc5: 0f 84 f1 00 00 00 je 108ebc <rtems_termios_baud_to_number+0x100> 108dcb: 7e 37 jle 108e04 <rtems_termios_baud_to_number+0x48>
108dcd: 83 f8 0e cmp $0xe,%eax
108dd0: 0f 84 f6 00 00 00 je 108ecc <rtems_termios_baud_to_number+0x110> 108dd6: 7e 5c jle 108e34 <rtems_termios_baud_to_number+0x78>
108dd8: 3d 02 10 00 00 cmp $0x1002,%eax
108ddd: 0f 84 01 01 00 00 je 108ee4 <rtems_termios_baud_to_number+0x128> 108de3: 0f 8e 97 00 00 00 jle 108e80 <rtems_termios_baud_to_number+0xc4>
108de9: 3d 03 10 00 00 cmp $0x1003,%eax
108dee: 0f 84 e0 00 00 00 je 108ed4 <rtems_termios_baud_to_number+0x118>
108df4: 3d 04 10 00 00 cmp $0x1004,%eax
108df9: 75 51 jne 108e4c <rtems_termios_baud_to_number+0x90><== ALWAYS 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;
108dfb: b8 00 08 07 00 mov $0x70800,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108e00: c9 leave 108e01: c3 ret
108e02: 66 90 xchg %ax,%ax <== NOT EXECUTED
int termios_baud ) { int32_t baud; switch (termios_baud) {
108e04: 83 f8 04 cmp $0x4,%eax
108e07: 0f 84 b7 00 00 00 je 108ec4 <rtems_termios_baud_to_number+0x108> 108e0d: 7f 45 jg 108e54 <rtems_termios_baud_to_number+0x98>
108e0f: 83 f8 01 cmp $0x1,%eax
108e12: 0f 84 8c 00 00 00 je 108ea4 <rtems_termios_baud_to_number+0xe8> 108e18: 0f 8e de 00 00 00 jle 108efc <rtems_termios_baud_to_number+0x140>
108e1e: 83 f8 02 cmp $0x2,%eax
108e21: 0f 84 c5 00 00 00 je 108eec <rtems_termios_baud_to_number+0x130>
108e27: 83 f8 03 cmp $0x3,%eax
108e2a: 75 20 jne 108e4c <rtems_termios_baud_to_number+0x90><== ALWAYS TAKEN
case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break;
108e2c: b8 6e 00 00 00 mov $0x6e,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108e31: c9 leave 108e32: c3 ret
108e33: 90 nop <== NOT EXECUTED
int termios_baud ) { int32_t baud; switch (termios_baud) {
108e34: 83 f8 0b cmp $0xb,%eax
108e37: 0f 84 9f 00 00 00 je 108edc <rtems_termios_baud_to_number+0x120> 108e3d: 7c 39 jl 108e78 <rtems_termios_baud_to_number+0xbc>
108e3f: 83 f8 0c cmp $0xc,%eax
108e42: 74 50 je 108e94 <rtems_termios_baud_to_number+0xd8>
108e44: 83 f8 0d cmp $0xd,%eax
108e47: 74 62 je 108eab <rtems_termios_baud_to_number+0xef><== NEVER TAKEN
108e49: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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;
108e4c: b8 ff ff ff ff mov $0xffffffff,%eax
default: baud = -1; break; } return baud; }
108e51: c9 leave 108e52: c3 ret
108e53: 90 nop <== NOT EXECUTED
int termios_baud ) { int32_t baud; switch (termios_baud) {
108e54: 83 f8 06 cmp $0x6,%eax
108e57: 74 43 je 108e9c <rtems_termios_baud_to_number+0xe0> 108e59: 7c 15 jl 108e70 <rtems_termios_baud_to_number+0xb4>
108e5b: 83 f8 07 cmp $0x7,%eax
108e5e: 0f 84 90 00 00 00 je 108ef4 <rtems_termios_baud_to_number+0x138>
108e64: 83 f8 08 cmp $0x8,%eax
108e67: 75 e3 jne 108e4c <rtems_termios_baud_to_number+0x90><== ALWAYS 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;
108e69: b8 58 02 00 00 mov $0x258,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108e6e: c9 leave 108e6f: 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;
108e70: b8 96 00 00 00 mov $0x96,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108e75: c9 leave 108e76: c3 ret
108e77: 90 nop <== NOT EXECUTED
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;
108e78: b8 08 07 00 00 mov $0x708,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108e7d: c9 leave 108e7e: c3 ret
108e7f: 90 nop <== NOT EXECUTED
int termios_baud ) { int32_t baud; switch (termios_baud) {
108e80: 83 f8 0f cmp $0xf,%eax
108e83: 74 2f je 108eb4 <rtems_termios_baud_to_number+0xf8>
108e85: 3d 01 10 00 00 cmp $0x1001,%eax
108e8a: 75 c0 jne 108e4c <rtems_termios_baud_to_number+0x90><== ALWAYS 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;
108e8c: b8 00 e1 00 00 mov $0xe100,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108e91: c9 leave 108e92: c3 ret
108e93: 90 nop <== NOT EXECUTED
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;
108e94: b8 c0 12 00 00 mov $0x12c0,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108e99: c9 leave 108e9a: c3 ret
108e9b: 90 nop <== NOT EXECUTED
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;
108e9c: b8 c8 00 00 00 mov $0xc8,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108ea1: c9 leave 108ea2: c3 ret
108ea3: 90 nop <== NOT EXECUTED
int termios_baud ) { int32_t baud; switch (termios_baud) {
108ea4: b8 32 00 00 00 mov $0x32,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108ea9: c9 leave 108eaa: 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;
108eab: b8 80 25 00 00 mov $0x2580,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108eb0: c9 leave 108eb1: c3 ret
108eb2: 66 90 xchg %ax,%ax <== NOT EXECUTED
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;
108eb4: b8 00 96 00 00 mov $0x9600,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108eb9: c9 leave 108eba: c3 ret
108ebb: 90 nop <== NOT EXECUTED
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;
108ebc: b8 b0 04 00 00 mov $0x4b0,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108ec1: c9 leave 108ec2: c3 ret
108ec3: 90 nop <== NOT EXECUTED
switch (termios_baud) { case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; case B110: baud = 110; break;
108ec4: b8 86 00 00 00 mov $0x86,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108ec9: c9 leave 108eca: c3 ret
108ecb: 90 nop <== NOT EXECUTED
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;
108ecc: b8 00 4b 00 00 mov $0x4b00,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108ed1: c9 leave 108ed2: c3 ret
108ed3: 90 nop <== NOT EXECUTED
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;
108ed4: b8 00 84 03 00 mov $0x38400,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108ed9: c9 leave 108eda: c3 ret
108edb: 90 nop <== NOT EXECUTED
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;
108edc: b8 60 09 00 00 mov $0x960,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108ee1: c9 leave 108ee2: c3 ret
108ee3: 90 nop <== NOT EXECUTED
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;
108ee4: b8 00 c2 01 00 mov $0x1c200,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108ee9: c9 leave 108eea: c3 ret
108eeb: 90 nop <== NOT EXECUTED
int termios_baud ) { int32_t baud; switch (termios_baud) {
108eec: b8 4b 00 00 00 mov $0x4b,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108ef1: c9 leave 108ef2: c3 ret
108ef3: 90 nop <== NOT EXECUTED
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;
108ef4: b8 2c 01 00 00 mov $0x12c,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108ef9: c9 leave 108efa: c3 ret
108efb: 90 nop <== NOT EXECUTED
int termios_baud ) { int32_t baud; switch (termios_baud) {
108efc: 85 c0 test %eax,%eax
108efe: 0f 85 48 ff ff ff jne 108e4c <rtems_termios_baud_to_number+0x90>
108f04: 31 c0 xor %eax,%eax
case B460800: baud = 460800; break; default: baud = -1; break; } return baud; }
108f06: c9 leave 108f07: c3 ret
00108f44 <rtems_termios_bufsize>: rtems_status_code rtems_termios_bufsize ( int cbufsize, int raw_input, int raw_output ) {
108f44: 55 push %ebp <== NOT EXECUTED 108f45: 89 e5 mov %esp,%ebp <== NOT EXECUTED
rtems_termios_cbufsize = cbufsize;
108f47: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 108f4a: a3 08 30 12 00 mov %eax,0x123008 <== NOT EXECUTED
rtems_termios_raw_input_size = raw_input;
108f4f: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 108f52: a3 0c 30 12 00 mov %eax,0x12300c <== NOT EXECUTED
rtems_termios_raw_output_size = raw_output;
108f57: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 108f5a: a3 10 30 12 00 mov %eax,0x123010 <== NOT EXECUTED
return RTEMS_SUCCESSFUL; }
108f5f: 31 c0 xor %eax,%eax <== NOT EXECUTED 108f61: c9 leave <== NOT EXECUTED 108f62: c3 ret <== NOT EXECUTED
0010a3f0 <rtems_termios_close>: } } rtems_status_code rtems_termios_close (void *arg) {
10a3f0: 55 push %ebp 10a3f1: 89 e5 mov %esp,%ebp 10a3f3: 56 push %esi 10a3f4: 53 push %ebx 10a3f5: 8b 75 08 mov 0x8(%ebp),%esi
rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1;
10a3f8: 8b 06 mov (%esi),%eax 10a3fa: 8b 58 34 mov 0x34(%eax),%ebx
rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
10a3fd: 50 push %eax 10a3fe: 6a 00 push $0x0 10a400: 6a 00 push $0x0 10a402: ff 35 18 52 12 00 pushl 0x125218 10a408: e8 f3 11 00 00 call 10b600 <rtems_semaphore_obtain>
if (sc != RTEMS_SUCCESSFUL)
10a40d: 83 c4 10 add $0x10,%esp 10a410: 85 c0 test %eax,%eax
10a412: 0f 85 92 01 00 00 jne 10a5aa <rtems_termios_close+0x1ba><== ALWAYS TAKEN
rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) {
10a418: 8b 43 08 mov 0x8(%ebx),%eax 10a41b: 48 dec %eax 10a41c: 89 43 08 mov %eax,0x8(%ebx) 10a41f: 85 c0 test %eax,%eax
10a421: 0f 85 bf 00 00 00 jne 10a4e6 <rtems_termios_close+0xf6> if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
10a427: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax 10a42d: c1 e0 05 shl $0x5,%eax 10a430: 8b 80 84 4e 12 00 mov 0x124e84(%eax),%eax 10a436: 85 c0 test %eax,%eax
10a438: 0f 84 12 01 00 00 je 10a550 <rtems_termios_close+0x160><== NEVER TAKEN
/* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty);
10a43e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a441: 53 push %ebx <== NOT EXECUTED 10a442: ff d0 call *%eax <== NOT EXECUTED 10a444: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_fatal_error_occurred (sc); } drainOutput (tty); } if (tty->device.outputUsesInterrupts
10a447: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx) <== NOT EXECUTED 10a44e: 0f 84 24 01 00 00 je 10a578 <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)
10a454: 8b 83 9c 00 00 00 mov 0x9c(%ebx),%eax 10a45a: 85 c0 test %eax,%eax
10a45c: 74 0d je 10a46b <rtems_termios_close+0x7b> (*tty->device.lastClose)(tty->major, tty->minor, arg);
10a45e: 52 push %edx 10a45f: 56 push %esi 10a460: ff 73 10 pushl 0x10(%ebx) 10a463: ff 73 0c pushl 0xc(%ebx) 10a466: ff d0 call *%eax 10a468: 83 c4 10 add $0x10,%esp
if (tty->forw == NULL) {
10a46b: 8b 03 mov (%ebx),%eax 10a46d: 85 c0 test %eax,%eax
10a46f: 0f 84 9b 00 00 00 je 10a510 <rtems_termios_close+0x120> if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back;
10a475: 8b 53 04 mov 0x4(%ebx),%edx 10a478: 89 50 04 mov %edx,0x4(%eax)
} if (tty->back == NULL) {
10a47b: 8b 53 04 mov 0x4(%ebx),%edx 10a47e: 85 d2 test %edx,%edx
10a480: 0f 84 ae 00 00 00 je 10a534 <rtems_termios_close+0x144><== NEVER TAKEN
if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw;
10a486: 89 02 mov %eax,(%edx) <== NOT EXECUTED
} rtems_semaphore_delete (tty->isem);
10a488: 83 ec 0c sub $0xc,%esp 10a48b: ff 73 14 pushl 0x14(%ebx) 10a48e: e8 c9 10 00 00 call 10b55c <rtems_semaphore_delete>
rtems_semaphore_delete (tty->osem);
10a493: 58 pop %eax 10a494: ff 73 18 pushl 0x18(%ebx) 10a497: e8 c0 10 00 00 call 10b55c <rtems_semaphore_delete>
rtems_semaphore_delete (tty->rawOutBuf.Semaphore);
10a49c: 5e pop %esi 10a49d: ff b3 8c 00 00 00 pushl 0x8c(%ebx) 10a4a3: e8 b4 10 00 00 call 10b55c <rtems_semaphore_delete>
if ((tty->device.pollRead == NULL) ||
10a4a8: 83 c4 10 add $0x10,%esp 10a4ab: 8b 8b a0 00 00 00 mov 0xa0(%ebx),%ecx 10a4b1: 85 c9 test %ecx,%ecx
10a4b3: 74 4b je 10a500 <rtems_termios_close+0x110> (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))
10a4b5: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx)
10a4bc: 74 42 je 10a500 <rtems_termios_close+0x110><== ALWAYS TAKEN
rtems_semaphore_delete (tty->rawInBuf.Semaphore); free (tty->rawInBuf.theBuf);
10a4be: 83 ec 0c sub $0xc,%esp 10a4c1: ff 73 58 pushl 0x58(%ebx) 10a4c4: e8 b3 db ff ff call 10807c <free>
free (tty->rawOutBuf.theBuf);
10a4c9: 5a pop %edx 10a4ca: ff 73 7c pushl 0x7c(%ebx) 10a4cd: e8 aa db ff ff call 10807c <free>
free (tty->cbuf);
10a4d2: 58 pop %eax 10a4d3: ff 73 1c pushl 0x1c(%ebx) 10a4d6: e8 a1 db ff ff call 10807c <free>
free (tty);
10a4db: 89 1c 24 mov %ebx,(%esp) 10a4de: e8 99 db ff ff call 10807c <free> 10a4e3: 83 c4 10 add $0x10,%esp
} rtems_semaphore_release (rtems_termios_ttyMutex);
10a4e6: 83 ec 0c sub $0xc,%esp 10a4e9: ff 35 18 52 12 00 pushl 0x125218 10a4ef: e8 08 12 00 00 call 10b6fc <rtems_semaphore_release>
return RTEMS_SUCCESSFUL; }
10a4f4: 31 c0 xor %eax,%eax 10a4f6: 8d 65 f8 lea -0x8(%ebp),%esp 10a4f9: 5b pop %ebx 10a4fa: 5e pop %esi 10a4fb: c9 leave 10a4fc: c3 ret
10a4fd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
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);
10a500: 83 ec 0c sub $0xc,%esp 10a503: ff 73 68 pushl 0x68(%ebx) 10a506: e8 51 10 00 00 call 10b55c <rtems_semaphore_delete> 10a50b: 83 c4 10 add $0x10,%esp 10a50e: eb ae jmp 10a4be <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;
10a510: 8b 43 04 mov 0x4(%ebx),%eax 10a513: a3 1c 52 12 00 mov %eax,0x12521c
if ( rtems_termios_ttyTail != NULL ) {
10a518: 85 c0 test %eax,%eax
10a51a: 0f 84 94 00 00 00 je 10a5b4 <rtems_termios_close+0x1c4><== NEVER TAKEN
rtems_termios_ttyTail->forw = NULL;
10a520: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED 10a526: 8b 03 mov (%ebx),%eax <== NOT EXECUTED
} } else { tty->forw->back = tty->back; } if (tty->back == NULL) {
10a528: 8b 53 04 mov 0x4(%ebx),%edx <== NOT EXECUTED 10a52b: 85 d2 test %edx,%edx <== NOT EXECUTED 10a52d: 0f 85 53 ff ff ff jne 10a486 <rtems_termios_close+0x96><== NOT EXECUTED 10a533: 90 nop <== NOT EXECUTED
rtems_termios_ttyHead = tty->forw;
10a534: a3 20 52 12 00 mov %eax,0x125220
if ( rtems_termios_ttyHead != NULL ) {
10a539: 85 c0 test %eax,%eax
10a53b: 0f 84 47 ff ff ff je 10a488 <rtems_termios_close+0x98><== ALWAYS TAKEN
rtems_termios_ttyHead->back = NULL;
10a541: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) 10a548: e9 3b ff ff ff jmp 10a488 <rtems_termios_close+0x98>
10a54d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
} else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
10a550: 51 push %ecx 10a551: 6a 00 push $0x0 10a553: 6a 00 push $0x0 10a555: ff 73 18 pushl 0x18(%ebx) 10a558: e8 a3 10 00 00 call 10b600 <rtems_semaphore_obtain>
if (sc != RTEMS_SUCCESSFUL) {
10a55d: 83 c4 10 add $0x10,%esp 10a560: 85 c0 test %eax,%eax
10a562: 75 46 jne 10a5aa <rtems_termios_close+0x1ba><== ALWAYS TAKEN
rtems_fatal_error_occurred (sc); } drainOutput (tty);
10a564: 89 d8 mov %ebx,%eax 10a566: e8 c1 f6 ff ff call 109c2c <drainOutput>
} if (tty->device.outputUsesInterrupts
10a56b: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx)
10a572: 0f 85 dc fe ff ff jne 10a454 <rtems_termios_close+0x64><== NEVER TAKEN
== TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send(
10a578: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10a57b: 6a 01 push $0x1 <== NOT EXECUTED 10a57d: ff b3 c4 00 00 00 pushl 0xc4(%ebx) <== NOT EXECUTED 10a583: e8 68 0b 00 00 call 10b0f0 <rtems_event_send> <== NOT EXECUTED
tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL)
10a588: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a58b: 85 c0 test %eax,%eax <== NOT EXECUTED 10a58d: 75 1b jne 10a5aa <rtems_termios_close+0x1ba><== NOT EXECUTED
rtems_fatal_error_occurred (sc); sc = rtems_event_send(
10a58f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10a592: 6a 01 push $0x1 <== NOT EXECUTED 10a594: ff b3 c8 00 00 00 pushl 0xc8(%ebx) <== NOT EXECUTED 10a59a: e8 51 0b 00 00 call 10b0f0 <rtems_event_send> <== NOT EXECUTED
tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL)
10a59f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a5a2: 85 c0 test %eax,%eax <== NOT EXECUTED 10a5a4: 0f 84 aa fe ff ff je 10a454 <rtems_termios_close+0x64><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
10a5aa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a5ad: 50 push %eax <== NOT EXECUTED 10a5ae: e8 85 16 00 00 call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED 10a5b3: 90 nop <== NOT EXECUTED
} else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw;
10a5b4: c7 05 20 52 12 00 00 movl $0x0,0x125220
10a5bb: 00 00 00
10a5be: e9 c5 fe ff ff jmp 10a488 <rtems_termios_close+0x98>
001091b8 <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) {
1091b8: 55 push %ebp 1091b9: 89 e5 mov %esp,%ebp 1091bb: 83 ec 08 sub $0x8,%esp 1091be: 8b 45 08 mov 0x8(%ebp),%eax
rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len;
1091c1: 8b 55 0c mov 0xc(%ebp),%edx 1091c4: 01 90 90 00 00 00 add %edx,0x90(%eax)
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
1091ca: 83 b8 b4 00 00 00 02 cmpl $0x2,0xb4(%eax)
1091d1: 74 2d je 109200 <rtems_termios_dequeue_characters+0x48><== ALWAYS 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 ) {
1091d3: 83 b8 cc 00 00 00 05 cmpl $0x5,0xcc(%eax)
1091da: 74 0c je 1091e8 <rtems_termios_dequeue_characters+0x30><== ALWAYS TAKEN
rtems_termios_linesw[tty->t_line].l_start(tty); } return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty);
1091dc: 89 45 08 mov %eax,0x8(%ebp)
} }
1091df: 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);
1091e0: e9 9b fd ff ff jmp 108f80 <rtems_termios_refill_transmitter>
1091e5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
} else if (tty->t_line == PPPDISC ) { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
1091e8: 8b 15 34 4f 12 00 mov 0x124f34,%edx <== NOT EXECUTED 1091ee: 85 d2 test %edx,%edx <== NOT EXECUTED 1091f0: 74 09 je 1091fb <rtems_termios_dequeue_characters+0x43><== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
1091f2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1091f5: 50 push %eax <== NOT EXECUTED 1091f6: ff d2 call *%edx <== NOT EXECUTED 1091f8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } }
1091fb: 31 c0 xor %eax,%eax <== NOT EXECUTED 1091fd: c9 leave <== NOT EXECUTED 1091fe: c3 ret <== NOT EXECUTED 1091ff: 90 nop <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId,
109200: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 109203: 6a 02 push $0x2 <== NOT EXECUTED 109205: ff b0 c8 00 00 00 pushl 0xc8(%eax) <== NOT EXECUTED 10920b: e8 e0 1e 00 00 call 10b0f0 <rtems_event_send> <== NOT EXECUTED
TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL)
109210: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109213: 85 c0 test %eax,%eax <== NOT EXECUTED 109215: 74 e4 je 1091fb <rtems_termios_dequeue_characters+0x43><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
109217: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10921a: 50 push %eax <== NOT EXECUTED 10921b: e8 18 2a 00 00 call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
00109220 <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) {
109220: 55 push %ebp <== NOT EXECUTED 109221: 89 e5 mov %esp,%ebp <== NOT EXECUTED 109223: 57 push %edi <== NOT EXECUTED 109224: 56 push %esi <== NOT EXECUTED 109225: 53 push %ebx <== NOT EXECUTED 109226: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED 109229: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 10922c: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 10922f: 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) {
109232: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED 109238: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 10923b: 8b 80 90 4e 12 00 mov 0x124e90(%eax),%eax <== NOT EXECUTED 109241: 85 c0 test %eax,%eax <== NOT EXECUTED 109243: 0f 84 8b 00 00 00 je 1092d4 <rtems_termios_enqueue_raw_characters+0xb4><== NOT EXECUTED
while (len--) {
109249: 85 ff test %edi,%edi <== NOT EXECUTED 10924b: 74 2e je 10927b <rtems_termios_enqueue_raw_characters+0x5b><== NOT EXECUTED 10924d: 31 d2 xor %edx,%edx <== NOT EXECUTED 10924f: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED 109252: 89 f7 mov %esi,%edi <== NOT EXECUTED 109254: 89 d6 mov %edx,%esi <== NOT EXECUTED 109256: eb 0f jmp 109267 <rtems_termios_enqueue_raw_characters+0x47><== NOT EXECUTED 109258: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED 10925e: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 109261: 8b 80 90 4e 12 00 mov 0x124e90(%eax),%eax <== NOT EXECUTED
c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty);
109267: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10926a: 53 push %ebx <== NOT EXECUTED 10926b: 0f be 14 37 movsbl (%edi,%esi,1),%edx <== NOT EXECUTED 10926f: 52 push %edx <== NOT EXECUTED 109270: ff d0 call *%eax <== NOT EXECUTED 109272: 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--) {
109273: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109276: 39 75 e4 cmp %esi,-0x1c(%ebp) <== NOT EXECUTED 109279: 75 dd jne 109258 <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 )) {
10927b: 8b 93 e4 00 00 00 mov 0xe4(%ebx),%edx <== NOT EXECUTED 109281: 85 d2 test %edx,%edx <== NOT EXECUTED 109283: 75 3b jne 1092c0 <rtems_termios_enqueue_raw_characters+0xa0><== NOT EXECUTED 109285: 8b 83 dc 00 00 00 mov 0xdc(%ebx),%eax <== NOT EXECUTED 10928b: 85 c0 test %eax,%eax <== NOT EXECUTED 10928d: 74 31 je 1092c0 <rtems_termios_enqueue_raw_characters+0xa0><== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
10928f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 109292: ff b3 e0 00 00 00 pushl 0xe0(%ebx) <== NOT EXECUTED 109298: 8d 53 30 lea 0x30(%ebx),%edx <== NOT EXECUTED 10929b: 52 push %edx <== NOT EXECUTED 10929c: ff d0 call *%eax <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
10929e: c7 83 e4 00 00 00 01 movl $0x1,0xe4(%ebx) <== NOT EXECUTED
1092a5: 00 00 00
1092a8: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED 1092af: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; }
1092b2: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 1092b5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1092b8: 5b pop %ebx <== NOT EXECUTED 1092b9: 5e pop %esi <== NOT EXECUTED 1092ba: 5f pop %edi <== NOT EXECUTED 1092bb: c9 leave <== NOT EXECUTED 1092bc: c3 ret <== NOT EXECUTED 1092bd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
} } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped;
1092c0: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
}
1092c7: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 1092ca: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1092cd: 5b pop %ebx <== NOT EXECUTED 1092ce: 5e pop %esi <== NOT EXECUTED 1092cf: 5f pop %edi <== NOT EXECUTED 1092d0: c9 leave <== NOT EXECUTED 1092d1: c3 ret <== NOT EXECUTED 1092d2: 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,
1092d4: 8d 43 4a lea 0x4a(%ebx),%eax <== NOT EXECUTED 1092d7: 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);
1092da: 8d 53 30 lea 0x30(%ebx),%edx <== NOT EXECUTED 1092dd: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED 1092e0: c6 45 db 00 movb $0x0,-0x25(%ebp) <== NOT EXECUTED 1092e4: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED
tty->tty_rcvwakeup = 1; } return 0; } while (len--) {
1092eb: 85 ff test %edi,%edi <== NOT EXECUTED 1092ed: 0f 84 0b 01 00 00 je 1093fe <rtems_termios_enqueue_raw_characters+0x1de><== NOT EXECUTED 1092f3: 90 nop <== NOT EXECUTED
c = *buf++;
1092f4: 8a 06 mov (%esi),%al <== NOT EXECUTED 1092f6: 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) {
1092f9: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1092ff: f6 c4 02 test $0x2,%ah <== NOT EXECUTED 109302: 74 1c je 109320 <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]) {
109304: 0f be 45 e4 movsbl -0x1c(%ebp),%eax <== NOT EXECUTED 109308: 0f b6 53 4a movzbl 0x4a(%ebx),%edx <== NOT EXECUTED 10930c: 39 d0 cmp %edx,%eax <== NOT EXECUTED 10930e: 0f 84 0c 01 00 00 je 109420 <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]) {
109314: 0f b6 53 49 movzbl 0x49(%ebx),%edx <== NOT EXECUTED 109318: 39 d0 cmp %edx,%eax <== NOT EXECUTED 10931a: 0f 84 54 01 00 00 je 109474 <rtems_termios_enqueue_raw_characters+0x254><== NOT EXECUTED
/* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) {
109320: 80 7d db 00 cmpb $0x0,-0x25(%ebp) <== NOT EXECUTED 109324: 0f 85 11 01 00 00 jne 10943b <rtems_termios_enqueue_raw_characters+0x21b><== NOT EXECUTED
/* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;
10932a: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 10932d: 8b 53 64 mov 0x64(%ebx),%edx <== NOT EXECUTED 109330: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED 109333: 40 inc %eax <== NOT EXECUTED 109334: 31 d2 xor %edx,%edx <== NOT EXECUTED 109336: f7 75 dc divl -0x24(%ebp) <== NOT EXECUTED 109339: 89 d1 mov %edx,%ecx <== NOT EXECUTED
/* if chars_in_buffer > highwater */ rtems_interrupt_disable(level);
10933b: 9c pushf <== NOT EXECUTED 10933c: fa cli <== NOT EXECUTED 10933d: 8f 45 d4 popl -0x2c(%ebp) <== NOT EXECUTED
if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)
109340: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED 109343: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED 109346: 8b 43 64 mov 0x64(%ebx),%eax <== NOT EXECUTED 109349: 8b 53 64 mov 0x64(%ebx),%edx <== NOT EXECUTED 10934c: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED 10934f: 2b 45 c4 sub -0x3c(%ebp),%eax <== NOT EXECUTED 109352: 01 c8 add %ecx,%eax <== NOT EXECUTED 109354: 31 d2 xor %edx,%edx <== NOT EXECUTED 109356: f7 75 dc divl -0x24(%ebp) <== NOT EXECUTED
% tty->rawInBuf.Size) > tty->highwater) &&
109359: 3b 93 c0 00 00 00 cmp 0xc0(%ebx),%edx <== NOT EXECUTED 10935f: 76 47 jbe 1093a8 <rtems_termios_enqueue_raw_characters+0x188><== NOT EXECUTED
!(tty->flow_ctrl & FL_IREQXOF)) {
109361: 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)
109367: a8 01 test $0x1,%al <== NOT EXECUTED 109369: 75 3d jne 1093a8 <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;
10936b: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109371: 83 c8 01 or $0x1,%eax <== NOT EXECUTED 109374: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))
10937a: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109380: 25 02 04 00 00 and $0x402,%eax <== NOT EXECUTED 109385: 3d 00 04 00 00 cmp $0x400,%eax <== NOT EXECUTED 10938a: 0f 84 27 01 00 00 je 1094b7 <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))
109390: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109396: 25 04 01 00 00 and $0x104,%eax <== NOT EXECUTED 10939b: 3d 00 01 00 00 cmp $0x100,%eax <== NOT EXECUTED 1093a0: 0f 84 55 01 00 00 je 1094fb <rtems_termios_enqueue_raw_characters+0x2db><== NOT EXECUTED 1093a6: 66 90 xchg %ax,%ax <== NOT EXECUTED
tty->device.stopRemoteTx(tty->minor); } } } /* reenable interrupts */ rtems_interrupt_enable(level);
1093a8: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED 1093ab: 9d popf <== NOT EXECUTED
if (newTail == tty->rawInBuf.Head) {
1093ac: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED 1093af: 39 c8 cmp %ecx,%eax <== NOT EXECUTED 1093b1: 0f 84 b5 00 00 00 je 10946c <rtems_termios_enqueue_raw_characters+0x24c><== NOT EXECUTED
dropped++; } else { tty->rawInBuf.theBuf[newTail] = c;
1093b7: 8b 43 58 mov 0x58(%ebx),%eax <== NOT EXECUTED 1093ba: 8a 55 e4 mov -0x1c(%ebp),%dl <== NOT EXECUTED 1093bd: 88 14 08 mov %dl,(%eax,%ecx,1) <== NOT EXECUTED
tty->rawInBuf.Tail = newTail;
1093c0: 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 )) {
1093c3: 8b 83 e4 00 00 00 mov 0xe4(%ebx),%eax <== NOT EXECUTED 1093c9: 85 c0 test %eax,%eax <== NOT EXECUTED 1093cb: 75 27 jne 1093f4 <rtems_termios_enqueue_raw_characters+0x1d4><== NOT EXECUTED 1093cd: 8b 83 dc 00 00 00 mov 0xdc(%ebx),%eax <== NOT EXECUTED 1093d3: 85 c0 test %eax,%eax <== NOT EXECUTED 1093d5: 74 1d je 1093f4 <rtems_termios_enqueue_raw_characters+0x1d4><== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
1093d7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1093da: ff b3 e0 00 00 00 pushl 0xe0(%ebx) <== NOT EXECUTED 1093e0: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED 1093e3: ff d0 call *%eax <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
1093e5: c7 83 e4 00 00 00 01 movl $0x1,0xe4(%ebx) <== NOT EXECUTED
1093ec: 00 00 00
1093ef: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1093f2: 66 90 xchg %ax,%ax <== NOT EXECUTED
} return 0; } while (len--) { c = *buf++;
1093f4: 46 inc %esi <== NOT EXECUTED 1093f5: 4f dec %edi <== NOT EXECUTED
tty->tty_rcvwakeup = 1; } return 0; } while (len--) {
1093f6: 85 ff test %edi,%edi <== NOT EXECUTED 1093f8: 0f 85 f6 fe ff ff jne 1092f4 <rtems_termios_enqueue_raw_characters+0xd4><== NOT EXECUTED
tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped;
1093fe: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 109401: 01 43 78 add %eax,0x78(%ebx) <== NOT EXECUTED
rtems_semaphore_release (tty->rawInBuf.Semaphore);
109404: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109407: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED 10940a: e8 ed 22 00 00 call 10b6fc <rtems_semaphore_release><== NOT EXECUTED
return dropped;
10940f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
109412: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 109415: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109418: 5b pop %ebx <== NOT EXECUTED 109419: 5e pop %esi <== NOT EXECUTED 10941a: 5f pop %edi <== NOT EXECUTED 10941b: c9 leave <== NOT EXECUTED 10941c: c3 ret <== NOT EXECUTED 10941d: 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]) {
109420: 0f b6 53 49 movzbl 0x49(%ebx),%edx <== NOT EXECUTED 109424: 39 d0 cmp %edx,%eax <== NOT EXECUTED 109426: 74 7e je 1094a6 <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;
109428: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 10942e: 83 c8 10 or $0x10,%eax <== NOT EXECUTED 109431: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
} } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped;
109437: 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) {
10943b: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109441: 83 e0 30 and $0x30,%eax <== NOT EXECUTED 109444: 83 f8 20 cmp $0x20,%eax <== NOT EXECUTED 109447: 75 ab jne 1093f4 <rtems_termios_enqueue_raw_characters+0x1d4><== NOT EXECUTED
/* disable interrupts */ rtems_interrupt_disable(level);
109449: 9c pushf <== NOT EXECUTED 10944a: fa cli <== NOT EXECUTED 10944b: 5a pop %edx <== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
10944c: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109452: 83 e0 df and $0xffffffdf,%eax <== NOT EXECUTED 109455: 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) {
10945b: 8b 83 94 00 00 00 mov 0x94(%ebx),%eax <== NOT EXECUTED 109461: 85 c0 test %eax,%eax <== NOT EXECUTED 109463: 75 20 jne 109485 <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);
109465: 52 push %edx <== NOT EXECUTED 109466: 9d popf <== NOT EXECUTED
} return 0; } while (len--) { c = *buf++;
109467: 46 inc %esi <== NOT EXECUTED 109468: 4f dec %edi <== NOT EXECUTED 109469: eb 8b jmp 1093f6 <rtems_termios_enqueue_raw_characters+0x1d6><== NOT EXECUTED 10946b: 90 nop <== NOT EXECUTED
} /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { dropped++;
10946c: ff 45 e0 incl -0x20(%ebp) <== NOT EXECUTED
} return 0; } while (len--) { c = *buf++;
10946f: 46 inc %esi <== NOT EXECUTED 109470: 4f dec %edi <== NOT EXECUTED 109471: eb 83 jmp 1093f6 <rtems_termios_enqueue_raw_characters+0x1d6><== NOT EXECUTED 109473: 90 nop <== NOT EXECUTED
flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF;
109474: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 10947a: 83 e0 ef and $0xffffffef,%eax <== NOT EXECUTED 10947d: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED 109483: eb b2 jmp 109437 <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);
109485: 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,
10948b: 51 push %ecx <== NOT EXECUTED 10948c: 6a 01 push $0x1 <== NOT EXECUTED 10948e: 03 43 7c add 0x7c(%ebx),%eax <== NOT EXECUTED 109491: 50 push %eax <== NOT EXECUTED 109492: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109495: 89 55 c8 mov %edx,-0x38(%ebp) <== NOT EXECUTED 109498: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED 10949e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1094a1: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED 1094a4: eb bf jmp 109465 <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;
1094a6: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1094ac: 83 f0 10 xor $0x10,%eax <== NOT EXECUTED 1094af: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED 1094b5: eb 80 jmp 109437 <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) ||
1094b7: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1094bd: a8 20 test $0x20,%al <== NOT EXECUTED 1094bf: 75 0e jne 1094cf <rtems_termios_enqueue_raw_characters+0x2af><== NOT EXECUTED
(tty->rawOutBufState == rob_idle)) {
1094c1: 8b 83 94 00 00 00 mov 0x94(%ebx),%eax <== NOT EXECUTED 1094c7: 85 c0 test %eax,%eax <== NOT EXECUTED 1094c9: 0f 85 d9 fe ff ff jne 1093a8 <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;
1094cf: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1094d5: 83 c8 02 or $0x2,%eax <== NOT EXECUTED 1094d8: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
(*tty->device.write)(tty->minor,
1094de: 52 push %edx <== NOT EXECUTED 1094df: 6a 01 push $0x1 <== NOT EXECUTED 1094e1: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED 1094e4: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 1094e7: 89 4d c8 mov %ecx,-0x38(%ebp) <== NOT EXECUTED 1094ea: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED 1094f0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1094f3: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED 1094f6: e9 ad fe ff ff jmp 1093a8 <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;
1094fb: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109501: 83 c8 04 or $0x4,%eax <== NOT EXECUTED 109504: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
/* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) {
10950a: 8b 83 ac 00 00 00 mov 0xac(%ebx),%eax <== NOT EXECUTED 109510: 85 c0 test %eax,%eax <== NOT EXECUTED 109512: 0f 84 90 fe ff ff je 1093a8 <rtems_termios_enqueue_raw_characters+0x188><== NOT EXECUTED
tty->device.stopRemoteTx(tty->minor);
109518: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10951b: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 10951e: 89 4d c8 mov %ecx,-0x38(%ebp) <== NOT EXECUTED 109521: ff d0 call *%eax <== NOT EXECUTED 109523: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109526: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED 109529: e9 7a fe ff ff jmp 1093a8 <rtems_termios_enqueue_raw_characters+0x188><== NOT EXECUTED
00108f08 <rtems_termios_initialize>: struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) {
108f08: 55 push %ebp 108f09: 89 e5 mov %esp,%ebp 108f0b: 83 ec 08 sub $0x8,%esp
rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) {
108f0e: a1 18 52 12 00 mov 0x125218,%eax 108f13: 85 c0 test %eax,%eax
108f15: 74 05 je 108f1c <rtems_termios_initialize+0x14> RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } }
108f17: c9 leave 108f18: c3 ret
108f19: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
/* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { sc = rtems_semaphore_create (
108f1c: 83 ec 0c sub $0xc,%esp 108f1f: 68 18 52 12 00 push $0x125218 108f24: 6a 00 push $0x0 108f26: 6a 54 push $0x54 108f28: 6a 01 push $0x1 108f2a: 68 69 6d 52 54 push $0x54526d69 108f2f: e8 54 24 00 00 call 10b388 <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)
108f34: 83 c4 20 add $0x20,%esp 108f37: 85 c0 test %eax,%eax
108f39: 74 dc je 108f17 <rtems_termios_initialize+0xf><== NEVER TAKEN
rtems_fatal_error_occurred (sc);
108f3b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108f3e: 50 push %eax <== NOT EXECUTED 108f3f: e8 f4 2c 00 00 call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
00109fd8 <rtems_termios_ioctl>: } } rtems_status_code rtems_termios_ioctl (void *arg) {
109fd8: 55 push %ebp 109fd9: 89 e5 mov %esp,%ebp 109fdb: 57 push %edi 109fdc: 56 push %esi 109fdd: 53 push %ebx 109fde: 83 ec 20 sub $0x20,%esp 109fe1: 8b 5d 08 mov 0x8(%ebp),%ebx
rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1;
109fe4: 8b 03 mov (%ebx),%eax 109fe6: 8b 40 34 mov 0x34(%eax),%eax 109fe9: 89 45 e4 mov %eax,-0x1c(%ebp)
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
109fec: 8b 73 08 mov 0x8(%ebx),%esi
rtems_status_code sc; args->ioctl_return = 0;
109fef: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
109ff6: 6a 00 push $0x0 109ff8: 6a 00 push $0x0 109ffa: ff 70 18 pushl 0x18(%eax) 109ffd: e8 fe 15 00 00 call 10b600 <rtems_semaphore_obtain> 10a002: 89 45 e0 mov %eax,-0x20(%ebp)
if (sc != RTEMS_SUCCESSFUL) {
10a005: 83 c4 10 add $0x10,%esp 10a008: 85 c0 test %eax,%eax
10a00a: 75 24 jne 10a030 <rtems_termios_ioctl+0x58><== ALWAYS TAKEN
args->ioctl_return = sc; return sc; } switch (args->command) {
10a00c: 8b 43 04 mov 0x4(%ebx),%eax 10a00f: 83 f8 04 cmp $0x4,%eax
10a012: 74 74 je 10a088 <rtems_termios_ioctl+0xb0><== ALWAYS TAKEN 10a014: 77 2a ja 10a040 <rtems_termios_ioctl+0x68><== ALWAYS TAKEN
10a016: 83 f8 02 cmp $0x2,%eax
10a019: 0f 84 a1 00 00 00 je 10a0c0 <rtems_termios_ioctl+0xe8> 10a01f: 0f 86 3b 02 00 00 jbe 10a260 <rtems_termios_ioctl+0x288> if (tty->device.setAttributes) (*tty->device.setAttributes)(tty->minor, &tty->termios); break; case RTEMS_IO_TCDRAIN: drainOutput (tty);
10a025: 8b 45 e4 mov -0x1c(%ebp),%eax 10a028: e8 ff fb ff ff call 109c2c <drainOutput>
break;
10a02d: eb 6d jmp 10a09c <rtems_termios_ioctl+0xc4>
10a02f: 90 nop <== NOT EXECUTED
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;
10a030: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED
break; } rtems_semaphore_release (tty->osem); args->ioctl_return = sc; return sc; }
10a033: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10a036: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10a039: 5b pop %ebx <== NOT EXECUTED 10a03a: 5e pop %esi <== NOT EXECUTED 10a03b: 5f pop %edi <== NOT EXECUTED 10a03c: c9 leave <== NOT EXECUTED 10a03d: c3 ret <== NOT EXECUTED 10a03e: 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) {
10a040: 3d 7f 66 04 40 cmp $0x4004667f,%eax <== NOT EXECUTED 10a045: 0f 84 ed 01 00 00 je 10a238 <rtems_termios_ioctl+0x260><== NOT EXECUTED 10a04b: 0f 87 2f 02 00 00 ja 10a280 <rtems_termios_ioctl+0x2a8><== NOT EXECUTED 10a051: 83 f8 05 cmp $0x5,%eax <== NOT EXECUTED 10a054: 0f 84 aa 02 00 00 je 10a304 <rtems_termios_ioctl+0x32c><== NOT EXECUTED
default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {
10a05a: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10a05d: 8b 82 cc 00 00 00 mov 0xcc(%edx),%eax <== NOT EXECUTED 10a063: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 10a066: 8b 80 98 4e 12 00 mov 0x124e98(%eax),%eax <== NOT EXECUTED 10a06c: 85 c0 test %eax,%eax <== NOT EXECUTED 10a06e: 0f 84 ac 02 00 00 je 10a320 <rtems_termios_ioctl+0x348><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);
10a074: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10a077: 53 push %ebx <== NOT EXECUTED 10a078: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 10a07b: ff d0 call *%eax <== NOT EXECUTED 10a07d: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED 10a080: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a083: eb 17 jmp 10a09c <rtems_termios_ioctl+0xc4><== NOT EXECUTED 10a085: 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;
10a088: 8b 06 mov (%esi),%eax <== NOT EXECUTED 10a08a: 8b 56 04 mov 0x4(%esi),%edx <== NOT EXECUTED 10a08d: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a090: 89 81 dc 00 00 00 mov %eax,0xdc(%ecx) <== NOT EXECUTED 10a096: 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);
10a09c: 83 ec 0c sub $0xc,%esp 10a09f: 8b 45 e4 mov -0x1c(%ebp),%eax 10a0a2: ff 70 18 pushl 0x18(%eax) 10a0a5: e8 52 16 00 00 call 10b6fc <rtems_semaphore_release>
args->ioctl_return = sc;
10a0aa: 8b 55 e0 mov -0x20(%ebp),%edx 10a0ad: 89 53 0c mov %edx,0xc(%ebx)
return sc;
10a0b0: 83 c4 10 add $0x10,%esp
}
10a0b3: 8b 45 e0 mov -0x20(%ebp),%eax 10a0b6: 8d 65 f4 lea -0xc(%ebp),%esp 10a0b9: 5b pop %ebx 10a0ba: 5e pop %esi 10a0bb: 5f pop %edi 10a0bc: c9 leave 10a0bd: c3 ret
10a0be: 66 90 xchg %ax,%ax <== NOT EXECUTED
case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; break; case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer;
10a0c0: 8b 73 08 mov 0x8(%ebx),%esi 10a0c3: 8b 4d e4 mov -0x1c(%ebp),%ecx 10a0c6: 83 c1 30 add $0x30,%ecx 10a0c9: 89 4d dc mov %ecx,-0x24(%ebp) 10a0cc: b9 09 00 00 00 mov $0x9,%ecx 10a0d1: 8b 7d dc mov -0x24(%ebp),%edi 10a0d4: 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) &&
10a0d6: 8b 55 e4 mov -0x1c(%ebp),%edx 10a0d9: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax 10a0df: f6 c4 02 test $0x2,%ah
10a0e2: 74 44 je 10a128 <rtems_termios_ioctl+0x150>
10a0e4: f6 42 31 04 testb $0x4,0x31(%edx)
10a0e8: 75 3e jne 10a128 <rtems_termios_ioctl+0x150><== NEVER TAKEN
!(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);
10a0ea: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a0f0: 25 ef fd ff ff and $0xfffffdef,%eax <== NOT EXECUTED 10a0f5: 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) {
10a0fb: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a101: a8 20 test $0x20,%al <== NOT EXECUTED 10a103: 74 23 je 10a128 <rtems_termios_ioctl+0x150><== NOT EXECUTED
/* disable interrupts */ rtems_interrupt_disable(level);
10a105: 9c pushf <== NOT EXECUTED 10a106: fa cli <== NOT EXECUTED 10a107: 5e pop %esi <== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
10a108: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a10e: 83 e0 df and $0xffffffdf,%eax <== NOT EXECUTED 10a111: 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) {
10a117: 8b ba 94 00 00 00 mov 0x94(%edx),%edi <== NOT EXECUTED 10a11d: 85 ff test %edi,%edi <== NOT EXECUTED 10a11f: 0f 85 ab 02 00 00 jne 10a3d0 <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);
10a125: 56 push %esi <== NOT EXECUTED 10a126: 9d popf <== NOT EXECUTED 10a127: 90 nop <== NOT EXECUTED
} } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) &&
10a128: 8b 4d e4 mov -0x1c(%ebp),%ecx 10a12b: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax 10a131: f6 c4 04 test $0x4,%ah
10a134: 74 24 je 10a15a <rtems_termios_ioctl+0x182><== NEVER TAKEN
10a136: f6 41 31 10 testb $0x10,0x31(%ecx) <== NOT EXECUTED 10a13a: 75 1e jne 10a15a <rtems_termios_ioctl+0x182><== NOT EXECUTED
!(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF);
10a13c: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax <== NOT EXECUTED 10a142: 80 e4 fb and $0xfb,%ah <== NOT EXECUTED 10a145: 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);
10a14b: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax <== NOT EXECUTED 10a151: 83 e0 fd and $0xfffffffd,%eax <== NOT EXECUTED 10a154: 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) &&
10a15a: 8b 55 e4 mov -0x1c(%ebp),%edx 10a15d: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax 10a163: f6 c4 01 test $0x1,%ah
10a166: 74 4b je 10a1b3 <rtems_termios_ioctl+0x1db><== NEVER TAKEN
10a168: 8b 7a 38 mov 0x38(%edx),%edi <== NOT EXECUTED 10a16b: 85 ff test %edi,%edi <== NOT EXECUTED 10a16d: 0f 88 09 02 00 00 js 10a37c <rtems_termios_ioctl+0x3a4><== NOT EXECUTED
!(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS);
10a173: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a179: 80 e4 fe and $0xfe,%ah <== NOT EXECUTED 10a17c: 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) &&
10a182: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a188: a8 04 test $0x4,%al <== NOT EXECUTED 10a18a: 74 15 je 10a1a1 <rtems_termios_ioctl+0x1c9><== NOT EXECUTED
(tty->device.startRemoteTx != NULL)) {
10a18c: 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) &&
10a192: 85 c0 test %eax,%eax <== NOT EXECUTED 10a194: 74 0b je 10a1a1 <rtems_termios_ioctl+0x1c9><== NOT EXECUTED
(tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor);
10a196: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a199: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED 10a19c: ff d0 call *%eax <== NOT EXECUTED 10a19e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} tty->flow_ctrl &= ~(FL_IRTSOFF);
10a1a1: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a1a4: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax <== NOT EXECUTED 10a1aa: 83 e0 fb and $0xfffffffb,%eax <== NOT EXECUTED 10a1ad: 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) {
10a1b3: 8b 45 e4 mov -0x1c(%ebp),%eax 10a1b6: 8b 70 38 mov 0x38(%eax),%esi 10a1b9: 85 f6 test %esi,%esi
10a1bb: 0f 88 bb 01 00 00 js 10a37c <rtems_termios_ioctl+0x3a4><== ALWAYS TAKEN
tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) {
10a1c1: 8b 4d e4 mov -0x1c(%ebp),%ecx 10a1c4: 8b 41 30 mov 0x30(%ecx),%eax 10a1c7: f6 c4 10 test $0x10,%ah
10a1ca: 74 0f je 10a1db <rtems_termios_ioctl+0x203><== NEVER TAKEN
tty->flow_ctrl |= FL_MDXOF;
10a1cc: 8b 91 b8 00 00 00 mov 0xb8(%ecx),%edx <== NOT EXECUTED 10a1d2: 80 ce 04 or $0x4,%dh <== NOT EXECUTED 10a1d5: 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) {
10a1db: f6 c4 04 test $0x4,%ah
10a1de: 74 12 je 10a1f2 <rtems_termios_ioctl+0x21a><== ALWAYS TAKEN
tty->flow_ctrl |= FL_MDXON;
10a1e0: 8b 55 e4 mov -0x1c(%ebp),%edx 10a1e3: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax 10a1e9: 80 cc 02 or $0x2,%ah 10a1ec: 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) {
10a1f2: 8b 4d e4 mov -0x1c(%ebp),%ecx 10a1f5: f6 41 3c 02 testb $0x2,0x3c(%ecx)
10a1f9: 0f 84 2d 01 00 00 je 10a32c <rtems_termios_ioctl+0x354><== ALWAYS TAKEN
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
10a1ff: c7 41 6c 00 00 00 00 movl $0x0,0x6c(%ecx)
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
10a206: c7 41 70 00 00 00 00 movl $0x0,0x70(%ecx)
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
10a20d: c7 41 74 00 00 00 00 movl $0x0,0x74(%ecx)
else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes)
10a214: 8b 55 e4 mov -0x1c(%ebp),%edx 10a217: 8b 82 a8 00 00 00 mov 0xa8(%edx),%eax 10a21d: 85 c0 test %eax,%eax
10a21f: 0f 84 77 fe ff ff je 10a09c <rtems_termios_ioctl+0xc4><== ALWAYS TAKEN
(*tty->device.setAttributes)(tty->minor, &tty->termios);
10a225: 83 ec 08 sub $0x8,%esp 10a228: ff 75 dc pushl -0x24(%ebp) 10a22b: ff 72 10 pushl 0x10(%edx) 10a22e: ff d0 call *%eax 10a230: 83 c4 10 add $0x10,%esp 10a233: e9 64 fe ff ff jmp 10a09c <rtems_termios_ioctl+0xc4>
*(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;
10a238: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10a23b: 8b 42 60 mov 0x60(%edx),%eax <== NOT EXECUTED 10a23e: 89 d1 mov %edx,%ecx <== NOT EXECUTED 10a240: 8b 52 5c mov 0x5c(%edx),%edx <== NOT EXECUTED
if ( rawnc < 0 )
10a243: 29 d0 sub %edx,%eax <== NOT EXECUTED 10a245: 0f 88 25 01 00 00 js 10a370 <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;
10a24b: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED 10a24e: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a251: 03 41 20 add 0x20(%ecx),%eax <== NOT EXECUTED 10a254: 2b 41 24 sub 0x24(%ecx),%eax <== NOT EXECUTED 10a257: 89 02 mov %eax,(%edx) <== NOT EXECUTED 10a259: e9 3e fe ff ff jmp 10a09c <rtems_termios_ioctl+0xc4><== NOT EXECUTED 10a25e: 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) {
10a260: 48 dec %eax
10a261: 0f 85 f3 fd ff ff jne 10a05a <rtems_termios_ioctl+0x82><== ALWAYS TAKEN
sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios;
10a267: 8b 43 08 mov 0x8(%ebx),%eax 10a26a: 8b 75 e4 mov -0x1c(%ebp),%esi 10a26d: 83 c6 30 add $0x30,%esi 10a270: b9 09 00 00 00 mov $0x9,%ecx 10a275: 89 c7 mov %eax,%edi 10a277: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
break;
10a279: e9 1e fe ff ff jmp 10a09c <rtems_termios_ioctl+0xc4>
10a27e: 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) {
10a280: 3d 1a 74 04 40 cmp $0x4004741a,%eax <== NOT EXECUTED 10a285: 74 69 je 10a2f0 <rtems_termios_ioctl+0x318><== NOT EXECUTED 10a287: 3d 1b 74 04 80 cmp $0x8004741b,%eax <== NOT EXECUTED 10a28c: 0f 85 c8 fd ff ff jne 10a05a <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) {
10a292: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10a295: 8b 82 cc 00 00 00 mov 0xcc(%edx),%eax <== NOT EXECUTED 10a29b: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 10a29e: 8b 80 84 4e 12 00 mov 0x124e84(%eax),%eax <== NOT EXECUTED 10a2a4: 85 c0 test %eax,%eax <== NOT EXECUTED 10a2a6: 74 0c je 10a2b4 <rtems_termios_ioctl+0x2dc><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
10a2a8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a2ab: 52 push %edx <== NOT EXECUTED 10a2ac: ff d0 call *%eax <== NOT EXECUTED 10a2ae: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED 10a2b1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} tty->t_line=*(int*)(args->buffer);
10a2b4: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED 10a2b7: 8b 00 mov (%eax),%eax <== NOT EXECUTED 10a2b9: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a2bc: 89 81 cc 00 00 00 mov %eax,0xcc(%ecx) <== NOT EXECUTED
tty->t_sc = NULL; /* ensure that no more valid data */
10a2c2: c7 81 d0 00 00 00 00 movl $0x0,0xd0(%ecx) <== NOT EXECUTED
10a2c9: 00 00 00 /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) {
10a2cc: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 10a2cf: 8b 80 80 4e 12 00 mov 0x124e80(%eax),%eax <== NOT EXECUTED 10a2d5: 85 c0 test %eax,%eax <== NOT EXECUTED 10a2d7: 0f 84 bf fd ff ff je 10a09c <rtems_termios_ioctl+0xc4><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_open(tty);
10a2dd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a2e0: 51 push %ecx <== NOT EXECUTED 10a2e1: ff d0 call *%eax <== NOT EXECUTED 10a2e3: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED 10a2e6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a2e9: e9 ae fd ff ff jmp 10a09c <rtems_termios_ioctl+0xc4><== NOT EXECUTED 10a2ee: 66 90 xchg %ax,%ax <== NOT EXECUTED
} break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line;
10a2f0: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED 10a2f3: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a2f6: 8b 91 cc 00 00 00 mov 0xcc(%ecx),%edx <== NOT EXECUTED 10a2fc: 89 10 mov %edx,(%eax) <== NOT EXECUTED
break;
10a2fe: e9 99 fd ff ff jmp 10a09c <rtems_termios_ioctl+0xc4><== NOT EXECUTED 10a303: 90 nop <== NOT EXECUTED
case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup;
10a304: 8b 06 mov (%esi),%eax <== NOT EXECUTED 10a306: 8b 56 04 mov 0x4(%esi),%edx <== NOT EXECUTED 10a309: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a30c: 89 81 d4 00 00 00 mov %eax,0xd4(%ecx) <== NOT EXECUTED 10a312: 89 91 d8 00 00 00 mov %edx,0xd8(%ecx) <== NOT EXECUTED
break;
10a318: e9 7f fd ff ff jmp 10a09c <rtems_termios_ioctl+0xc4><== NOT EXECUTED 10a31d: 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) {
10a320: c7 45 e0 0a 00 00 00 movl $0xa,-0x20(%ebp) <== NOT EXECUTED 10a327: e9 70 fd ff ff jmp 10a09c <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;
10a32c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 10a32f: 0f b6 70 46 movzbl 0x46(%eax),%esi <== NOT EXECUTED 10a333: e8 b8 0b 00 00 call 10aef0 <rtems_clock_get_ticks_per_second><== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] *
10a338: 0f af c6 imul %esi,%eax <== NOT EXECUTED 10a33b: ba cd cc cc cc mov $0xcccccccd,%edx <== NOT EXECUTED 10a340: f7 e2 mul %edx <== NOT EXECUTED 10a342: c1 ea 03 shr $0x3,%edx <== NOT EXECUTED 10a345: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a348: 89 51 54 mov %edx,0x54(%ecx) <== NOT EXECUTED
rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) {
10a34b: 80 79 46 00 cmpb $0x0,0x46(%ecx) <== NOT EXECUTED 10a34f: 74 42 je 10a393 <rtems_termios_ioctl+0x3bb><== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
10a351: c7 41 6c 00 00 00 00 movl $0x0,0x6c(%ecx) <== NOT EXECUTED
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
10a358: 89 51 70 mov %edx,0x70(%ecx) <== NOT EXECUTED
if (tty->termios.c_cc[VMIN])
10a35b: 80 79 47 00 cmpb $0x0,0x47(%ecx) <== NOT EXECUTED 10a35f: 74 55 je 10a3b6 <rtems_termios_ioctl+0x3de><== NOT EXECUTED
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
10a361: c7 41 74 00 00 00 00 movl $0x0,0x74(%ecx) <== NOT EXECUTED 10a368: e9 a7 fe ff ff jmp 10a214 <rtems_termios_ioctl+0x23c><== NOT EXECUTED 10a36d: 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;
10a370: 8b 51 64 mov 0x64(%ecx),%edx <== NOT EXECUTED 10a373: 01 d0 add %edx,%eax <== NOT EXECUTED 10a375: e9 d1 fe ff ff jmp 10a24b <rtems_termios_ioctl+0x273><== NOT EXECUTED 10a37a: 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;
10a37c: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10a37f: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a385: 80 cc 01 or $0x1,%ah <== NOT EXECUTED 10a388: 89 82 b8 00 00 00 mov %eax,0xb8(%edx) <== NOT EXECUTED 10a38e: e9 2e fe ff ff jmp 10a1c1 <rtems_termios_ioctl+0x1e9><== NOT EXECUTED
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) {
10a393: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10a396: 80 7a 47 00 cmpb $0x0,0x47(%edx) <== NOT EXECUTED 10a39a: 74 25 je 10a3c1 <rtems_termios_ioctl+0x3e9><== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
10a39c: c7 42 6c 00 00 00 00 movl $0x0,0x6c(%edx) <== NOT EXECUTED
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
10a3a3: c7 42 70 00 00 00 00 movl $0x0,0x70(%edx) <== NOT EXECUTED
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
10a3aa: c7 42 74 00 00 00 00 movl $0x0,0x74(%edx) <== NOT EXECUTED 10a3b1: e9 5e fe ff ff jmp 10a214 <rtems_termios_ioctl+0x23c><== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
10a3b6: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 10a3b9: 89 50 74 mov %edx,0x74(%eax) <== NOT EXECUTED 10a3bc: e9 53 fe ff ff jmp 10a214 <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;
10a3c1: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a3c4: c7 41 6c 01 00 00 00 movl $0x1,0x6c(%ecx) <== NOT EXECUTED 10a3cb: e9 44 fe ff ff jmp 10a214 <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);
10a3d0: 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,
10a3d6: 51 push %ecx <== NOT EXECUTED 10a3d7: 6a 01 push $0x1 <== NOT EXECUTED 10a3d9: 03 42 7c add 0x7c(%edx),%eax <== NOT EXECUTED 10a3dc: 50 push %eax <== NOT EXECUTED 10a3dd: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED 10a3e0: ff 92 a4 00 00 00 call *0xa4(%edx) <== NOT EXECUTED 10a3e6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a3e9: e9 37 fd ff ff jmp 10a125 <rtems_termios_ioctl+0x14d><== NOT EXECUTED
0010a374 <rtems_termios_number_to_baud>: #include <rtems/termiostypes.h> int rtems_termios_number_to_baud( int32_t baud ) {
10a374: 55 push %ebp 10a375: 89 e5 mov %esp,%ebp 10a377: 8b 45 08 mov 0x8(%ebp),%eax
int termios_baud; switch (baud) {
10a37a: 3d b0 04 00 00 cmp $0x4b0,%eax
10a37f: 0f 84 47 01 00 00 je 10a4cc <rtems_termios_number_to_baud+0x158> 10a385: 7e 3d jle 10a3c4 <rtems_termios_number_to_baud+0x50>
10a387: 3d 00 4b 00 00 cmp $0x4b00,%eax
10a38c: 0f 84 4a 01 00 00 je 10a4dc <rtems_termios_number_to_baud+0x168> 10a392: 7e 64 jle 10a3f8 <rtems_termios_number_to_baud+0x84>
10a394: 3d 00 c2 01 00 cmp $0x1c200,%eax
10a399: 0f 84 15 01 00 00 je 10a4b4 <rtems_termios_number_to_baud+0x140> 10a39f: 0f 8e af 00 00 00 jle 10a454 <rtems_termios_number_to_baud+0xe0>
10a3a5: 3d 00 84 03 00 cmp $0x38400,%eax
10a3aa: 0f 84 fc 00 00 00 je 10a4ac <rtems_termios_number_to_baud+0x138>
10a3b0: 3d 00 08 07 00 cmp $0x70800,%eax
10a3b5: 0f 85 89 00 00 00 jne 10a444 <rtems_termios_number_to_baud+0xd0><== ALWAYS 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;
10a3bb: b8 04 10 00 00 mov $0x1004,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a3c0: c9 leave 10a3c1: c3 ret
10a3c2: 66 90 xchg %ax,%ax <== NOT EXECUTED
int32_t baud ) { int termios_baud; switch (baud) {
10a3c4: 3d 86 00 00 00 cmp $0x86,%eax
10a3c9: 0f 84 05 01 00 00 je 10a4d4 <rtems_termios_number_to_baud+0x160> 10a3cf: 7e 4f jle 10a420 <rtems_termios_number_to_baud+0xac>
10a3d1: 3d c8 00 00 00 cmp $0xc8,%eax
10a3d6: 0f 84 b8 00 00 00 je 10a494 <rtems_termios_number_to_baud+0x120> 10a3dc: 7e 5e jle 10a43c <rtems_termios_number_to_baud+0xc8>
10a3de: 3d 2c 01 00 00 cmp $0x12c,%eax
10a3e3: 0f 84 9b 00 00 00 je 10a484 <rtems_termios_number_to_baud+0x110>
10a3e9: 3d 58 02 00 00 cmp $0x258,%eax
10a3ee: 75 54 jne 10a444 <rtems_termios_number_to_baud+0xd0><== ALWAYS 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;
10a3f0: b8 08 00 00 00 mov $0x8,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a3f5: c9 leave 10a3f6: c3 ret
10a3f7: 90 nop <== NOT EXECUTED
int32_t baud ) { int termios_baud; switch (baud) {
10a3f8: 3d 60 09 00 00 cmp $0x960,%eax
10a3fd: 0f 84 c1 00 00 00 je 10a4c4 <rtems_termios_number_to_baud+0x150> 10a403: 7e 67 jle 10a46c <rtems_termios_number_to_baud+0xf8>
10a405: 3d c0 12 00 00 cmp $0x12c0,%eax
10a40a: 0f 84 8c 00 00 00 je 10a49c <rtems_termios_number_to_baud+0x128>
10a410: 3d 80 25 00 00 cmp $0x2580,%eax
10a415: 75 2d jne 10a444 <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;
10a417: b8 0d 00 00 00 mov $0xd,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a41c: c9 leave 10a41d: c3 ret
10a41e: 66 90 xchg %ax,%ax <== NOT EXECUTED
int32_t baud ) { int termios_baud; switch (baud) {
10a420: 83 f8 32 cmp $0x32,%eax
10a423: 74 7f je 10a4a4 <rtems_termios_number_to_baud+0x130> 10a425: 7e 25 jle 10a44c <rtems_termios_number_to_baud+0xd8>
10a427: 83 f8 4b cmp $0x4b,%eax
10a42a: 0f 84 8c 00 00 00 je 10a4bc <rtems_termios_number_to_baud+0x148>
10a430: 83 f8 6e cmp $0x6e,%eax
10a433: 75 0f jne 10a444 <rtems_termios_number_to_baud+0xd0><== ALWAYS TAKEN
case 0: termios_baud = B0; break; case 50: termios_baud = B50; break; case 75: termios_baud = B75; break;
10a435: b8 03 00 00 00 mov $0x3,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a43a: c9 leave 10a43b: c3 ret
int32_t baud ) { int termios_baud; switch (baud) {
10a43c: 3d 96 00 00 00 cmp $0x96,%eax
10a441: 74 39 je 10a47c <rtems_termios_number_to_baud+0x108><== NEVER TAKEN
10a443: 90 nop <== NOT EXECUTED
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;
10a444: b8 ff ff ff ff mov $0xffffffff,%eax
default: termios_baud = -1; break; } return termios_baud; }
10a449: c9 leave 10a44a: c3 ret
10a44b: 90 nop <== NOT EXECUTED
int32_t baud ) { int termios_baud; switch (baud) {
10a44c: 85 c0 test %eax,%eax
10a44e: 75 f4 jne 10a444 <rtems_termios_number_to_baud+0xd0>
10a450: 31 c0 xor %eax,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a452: c9 leave 10a453: c3 ret
int32_t baud ) { int termios_baud; switch (baud) {
10a454: 3d 00 96 00 00 cmp $0x9600,%eax
10a459: 74 31 je 10a48c <rtems_termios_number_to_baud+0x118>
10a45b: 3d 00 e1 00 00 cmp $0xe100,%eax
10a460: 75 e2 jne 10a444 <rtems_termios_number_to_baud+0xd0><== ALWAYS 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;
10a462: b8 01 10 00 00 mov $0x1001,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a467: c9 leave 10a468: c3 ret
10a469: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
int32_t baud ) { int termios_baud; switch (baud) {
10a46c: 3d 08 07 00 00 cmp $0x708,%eax
10a471: 75 d1 jne 10a444 <rtems_termios_number_to_baud+0xd0><== ALWAYS 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;
10a473: b8 0a 00 00 00 mov $0xa,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a478: c9 leave 10a479: c3 ret
10a47a: 66 90 xchg %ax,%ax <== NOT EXECUTED
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;
10a47c: b8 05 00 00 00 mov $0x5,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a481: c9 leave 10a482: c3 ret
10a483: 90 nop <== NOT EXECUTED
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;
10a484: b8 07 00 00 00 mov $0x7,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a489: c9 leave 10a48a: c3 ret
10a48b: 90 nop <== NOT EXECUTED
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;
10a48c: b8 0f 00 00 00 mov $0xf,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a491: c9 leave 10a492: c3 ret
10a493: 90 nop <== NOT EXECUTED
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;
10a494: b8 06 00 00 00 mov $0x6,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a499: c9 leave 10a49a: c3 ret
10a49b: 90 nop <== NOT EXECUTED
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;
10a49c: b8 0c 00 00 00 mov $0xc,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a4a1: c9 leave 10a4a2: c3 ret
10a4a3: 90 nop <== NOT EXECUTED
int32_t baud ) { int termios_baud; switch (baud) {
10a4a4: b8 01 00 00 00 mov $0x1,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a4a9: c9 leave 10a4aa: c3 ret
10a4ab: 90 nop <== NOT EXECUTED
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;
10a4ac: b8 03 10 00 00 mov $0x1003,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a4b1: c9 leave 10a4b2: c3 ret
10a4b3: 90 nop <== NOT EXECUTED
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;
10a4b4: b8 02 10 00 00 mov $0x1002,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a4b9: c9 leave 10a4ba: c3 ret
10a4bb: 90 nop <== NOT EXECUTED
int32_t baud ) { int termios_baud; switch (baud) {
10a4bc: b8 02 00 00 00 mov $0x2,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a4c1: c9 leave 10a4c2: c3 ret
10a4c3: 90 nop <== NOT EXECUTED
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;
10a4c4: b8 0b 00 00 00 mov $0xb,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a4c9: c9 leave 10a4ca: c3 ret
10a4cb: 90 nop <== NOT EXECUTED
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;
10a4cc: b8 09 00 00 00 mov $0x9,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a4d1: c9 leave 10a4d2: c3 ret
10a4d3: 90 nop <== NOT EXECUTED
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;
10a4d4: b8 04 00 00 00 mov $0x4,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a4d9: c9 leave 10a4da: c3 ret
10a4db: 90 nop <== NOT EXECUTED
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;
10a4dc: b8 0e 00 00 00 mov $0xe,%eax
case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; }
10a4e1: c9 leave 10a4e2: c3 ret
0010a5c4 <rtems_termios_open>: rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) {
10a5c4: 55 push %ebp 10a5c5: 89 e5 mov %esp,%ebp 10a5c7: 57 push %edi 10a5c8: 56 push %esi 10a5c9: 53 push %ebx 10a5ca: 83 ec 20 sub $0x20,%esp 10a5cd: 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,
10a5d0: 6a 00 push $0x0 10a5d2: 6a 00 push $0x0 10a5d4: ff 35 18 52 12 00 pushl 0x125218 10a5da: 89 55 dc mov %edx,-0x24(%ebp) 10a5dd: e8 1e 10 00 00 call 10b600 <rtems_semaphore_obtain> 10a5e2: 89 45 e4 mov %eax,-0x1c(%ebp)
RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL)
10a5e5: 83 c4 10 add $0x10,%esp 10a5e8: 85 c0 test %eax,%eax 10a5ea: 8b 55 dc mov -0x24(%ebp),%edx
10a5ed: 75 6f jne 10a65e <rtems_termios_open+0x9a><== ALWAYS TAKEN
return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) {
10a5ef: 8b 1d 20 52 12 00 mov 0x125220,%ebx 10a5f5: 85 db test %ebx,%ebx
10a5f7: 0f 84 a7 00 00 00 je 10a6a4 <rtems_termios_open+0xe0>
10a5fd: 8b 45 0c mov 0xc(%ebp),%eax 10a600: eb 0c jmp 10a60e <rtems_termios_open+0x4a>
10a602: 66 90 xchg %ax,%ax <== NOT EXECUTED
10a604: 8b 1b mov (%ebx),%ebx 10a606: 85 db test %ebx,%ebx
10a608: 0f 84 96 00 00 00 je 10a6a4 <rtems_termios_open+0xe0><== NEVER TAKEN
if ((tty->major == major) && (tty->minor == minor))
10a60e: 39 53 0c cmp %edx,0xc(%ebx)
10a611: 75 f1 jne 10a604 <rtems_termios_open+0x40>
10a613: 39 43 10 cmp %eax,0x10(%ebx)
10a616: 75 ec jne 10a604 <rtems_termios_open+0x40><== ALWAYS TAKEN
*/ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty;
10a618: 8b 4d 10 mov 0x10(%ebp),%ecx 10a61b: 8b 01 mov (%ecx),%eax 10a61d: 89 58 34 mov %ebx,0x34(%eax)
if (!tty->refcount++) {
10a620: 8b 43 08 mov 0x8(%ebx),%eax 10a623: 8d 48 01 lea 0x1(%eax),%ecx 10a626: 89 4b 08 mov %ecx,0x8(%ebx) 10a629: 85 c0 test %eax,%eax
10a62b: 75 20 jne 10a64d <rtems_termios_open+0x89> if (tty->device.firstOpen)
10a62d: 8b 83 98 00 00 00 mov 0x98(%ebx),%eax 10a633: 85 c0 test %eax,%eax
10a635: 74 0d je 10a644 <rtems_termios_open+0x80> (*tty->device.firstOpen)(major, minor, arg);
10a637: 56 push %esi 10a638: ff 75 10 pushl 0x10(%ebp) 10a63b: ff 75 0c pushl 0xc(%ebp) 10a63e: 52 push %edx 10a63f: ff d0 call *%eax 10a641: 83 c4 10 add $0x10,%esp
/* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
10a644: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx)
10a64b: 74 1c je 10a669 <rtems_termios_open+0xa5><== ALWAYS TAKEN
(rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex);
10a64d: 83 ec 0c sub $0xc,%esp 10a650: ff 35 18 52 12 00 pushl 0x125218 10a656: e8 a1 10 00 00 call 10b6fc <rtems_semaphore_release>
return RTEMS_SUCCESSFUL;
10a65b: 83 c4 10 add $0x10,%esp
}
10a65e: 8b 45 e4 mov -0x1c(%ebp),%eax 10a661: 8d 65 f4 lea -0xc(%ebp),%esp 10a664: 5b pop %ebx 10a665: 5e pop %esi 10a666: 5f pop %edi 10a667: c9 leave 10a668: 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,
10a669: 51 push %ecx <== NOT EXECUTED 10a66a: 53 push %ebx <== NOT EXECUTED 10a66b: 68 d8 aa 10 00 push $0x10aad8 <== NOT EXECUTED 10a670: ff b3 c4 00 00 00 pushl 0xc4(%ebx) <== NOT EXECUTED 10a676: e8 c5 13 00 00 call 10ba40 <rtems_task_start> <== NOT EXECUTED
rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL)
10a67b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a67e: 85 c0 test %eax,%eax <== NOT EXECUTED 10a680: 0f 85 3e 03 00 00 jne 10a9c4 <rtems_termios_open+0x400><== NOT EXECUTED
rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId,
10a686: 52 push %edx <== NOT EXECUTED 10a687: 53 push %ebx <== NOT EXECUTED 10a688: 68 6c aa 10 00 push $0x10aa6c <== NOT EXECUTED 10a68d: ff b3 c8 00 00 00 pushl 0xc8(%ebx) <== NOT EXECUTED 10a693: e8 a8 13 00 00 call 10ba40 <rtems_task_start> <== NOT EXECUTED
rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL)
10a698: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a69b: 85 c0 test %eax,%eax <== NOT EXECUTED 10a69d: 74 ae je 10a64d <rtems_termios_open+0x89><== NOT EXECUTED 10a69f: e9 20 03 00 00 jmp 10a9c4 <rtems_termios_open+0x400><== NOT EXECUTED
static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty));
10a6a4: 83 ec 08 sub $0x8,%esp 10a6a7: 68 e8 00 00 00 push $0xe8 10a6ac: 6a 01 push $0x1 10a6ae: 89 55 dc mov %edx,-0x24(%ebp) 10a6b1: e8 5e 51 00 00 call 10f814 <calloc> 10a6b6: 89 45 e0 mov %eax,-0x20(%ebp) 10a6b9: 89 c3 mov %eax,%ebx
if (tty == NULL) {
10a6bb: 83 c4 10 add $0x10,%esp 10a6be: 85 c0 test %eax,%eax 10a6c0: 8b 55 dc mov -0x24(%ebp),%edx
10a6c3: 0f 84 79 02 00 00 je 10a942 <rtems_termios_open+0x37e><== ALWAYS TAKEN
return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
10a6c9: a1 0c 30 12 00 mov 0x12300c,%eax 10a6ce: 8b 4d e0 mov -0x20(%ebp),%ecx 10a6d1: 89 41 64 mov %eax,0x64(%ecx)
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
10a6d4: 8b 41 64 mov 0x64(%ecx),%eax 10a6d7: 83 ec 0c sub $0xc,%esp 10a6da: 50 push %eax 10a6db: 89 55 dc mov %edx,-0x24(%ebp) 10a6de: e8 e9 db ff ff call 1082cc <malloc> 10a6e3: 8b 75 e0 mov -0x20(%ebp),%esi 10a6e6: 89 46 58 mov %eax,0x58(%esi)
if (tty->rawInBuf.theBuf == NULL) {
10a6e9: 83 c4 10 add $0x10,%esp 10a6ec: 85 c0 test %eax,%eax 10a6ee: 8b 55 dc mov -0x24(%ebp),%edx
10a6f1: 0f 84 68 02 00 00 je 10a95f <rtems_termios_open+0x39b><== ALWAYS TAKEN
return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
10a6f7: a1 10 30 12 00 mov 0x123010,%eax 10a6fc: 8b 4d e0 mov -0x20(%ebp),%ecx 10a6ff: 89 81 88 00 00 00 mov %eax,0x88(%ecx)
tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);
10a705: 8b 81 88 00 00 00 mov 0x88(%ecx),%eax 10a70b: 83 ec 0c sub $0xc,%esp 10a70e: 50 push %eax 10a70f: 89 55 dc mov %edx,-0x24(%ebp) 10a712: e8 b5 db ff ff call 1082cc <malloc> 10a717: 8b 75 e0 mov -0x20(%ebp),%esi 10a71a: 89 46 7c mov %eax,0x7c(%esi)
if (tty->rawOutBuf.theBuf == NULL) {
10a71d: 83 c4 10 add $0x10,%esp 10a720: 85 c0 test %eax,%eax 10a722: 8b 55 dc mov -0x24(%ebp),%edx
10a725: 0f 84 58 02 00 00 je 10a983 <rtems_termios_open+0x3bf><== ALWAYS TAKEN
return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE);
10a72b: 83 ec 0c sub $0xc,%esp 10a72e: ff 35 08 30 12 00 pushl 0x123008 10a734: 89 55 dc mov %edx,-0x24(%ebp) 10a737: e8 90 db ff ff call 1082cc <malloc> 10a73c: 8b 4d e0 mov -0x20(%ebp),%ecx 10a73f: 89 41 1c mov %eax,0x1c(%ecx)
if (tty->cbuf == NULL) {
10a742: 83 c4 10 add $0x10,%esp 10a745: 85 c0 test %eax,%eax 10a747: 8b 55 dc mov -0x24(%ebp),%edx
10a74a: 0f 84 7d 02 00 00 je 10a9cd <rtems_termios_open+0x409><== ALWAYS TAKEN
return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL;
10a750: 8b 45 e0 mov -0x20(%ebp),%eax 10a753: c7 80 d4 00 00 00 00 movl $0x0,0xd4(%eax)
10a75a: 00 00 00 tty->tty_snd.sw_arg = NULL;
10a75d: c7 80 d8 00 00 00 00 movl $0x0,0xd8(%eax)
10a764: 00 00 00 tty->tty_rcv.sw_pfn = NULL;
10a767: c7 80 dc 00 00 00 00 movl $0x0,0xdc(%eax)
10a76e: 00 00 00 tty->tty_rcv.sw_arg = NULL;
10a771: c7 80 e0 00 00 00 00 movl $0x0,0xe0(%eax)
10a778: 00 00 00 tty->tty_rcvwakeup = 0;
10a77b: c7 80 e4 00 00 00 00 movl $0x0,0xe4(%eax)
10a782: 00 00 00 /* * link tty */ tty->forw = rtems_termios_ttyHead;
10a785: a1 20 52 12 00 mov 0x125220,%eax 10a78a: 8b 4d e0 mov -0x20(%ebp),%ecx 10a78d: 89 01 mov %eax,(%ecx)
tty->back = NULL;
10a78f: c7 41 04 00 00 00 00 movl $0x0,0x4(%ecx)
if (rtems_termios_ttyHead != NULL)
10a796: 85 c0 test %eax,%eax
10a798: 74 03 je 10a79d <rtems_termios_open+0x1d9> rtems_termios_ttyHead->back = tty;
10a79a: 89 48 04 mov %ecx,0x4(%eax)
rtems_termios_ttyHead = tty;
10a79d: 8b 75 e0 mov -0x20(%ebp),%esi 10a7a0: 89 35 20 52 12 00 mov %esi,0x125220
if (rtems_termios_ttyTail == NULL)
10a7a6: 8b 3d 1c 52 12 00 mov 0x12521c,%edi 10a7ac: 85 ff test %edi,%edi
10a7ae: 0f 84 ac 02 00 00 je 10aa60 <rtems_termios_open+0x49c> rtems_termios_ttyTail = tty; tty->minor = minor;
10a7b4: 8b 4d 0c mov 0xc(%ebp),%ecx 10a7b7: 8b 45 e0 mov -0x20(%ebp),%eax 10a7ba: 89 48 10 mov %ecx,0x10(%eax)
tty->major = major;
10a7bd: 89 50 0c mov %edx,0xc(%eax)
/* * Set up mutex semaphores */ sc = rtems_semaphore_create (
10a7c0: 83 ec 0c sub $0xc,%esp 10a7c3: 83 c0 14 add $0x14,%eax 10a7c6: 50 push %eax 10a7c7: 6a 00 push $0x0 10a7c9: 6a 54 push $0x54 10a7cb: 6a 01 push $0x1 10a7cd: 0f be 05 14 30 12 00 movsbl 0x123014,%eax 10a7d4: 0d 00 69 52 54 or $0x54526900,%eax 10a7d9: 50 push %eax 10a7da: 89 55 dc mov %edx,-0x24(%ebp) 10a7dd: e8 a6 0b 00 00 call 10b388 <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)
10a7e2: 83 c4 20 add $0x20,%esp 10a7e5: 85 c0 test %eax,%eax 10a7e7: 8b 55 dc mov -0x24(%ebp),%edx
10a7ea: 0f 85 d4 01 00 00 jne 10a9c4 <rtems_termios_open+0x400><== ALWAYS TAKEN
rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create (
10a7f0: 83 ec 0c sub $0xc,%esp 10a7f3: 8b 45 e0 mov -0x20(%ebp),%eax 10a7f6: 83 c0 18 add $0x18,%eax 10a7f9: 50 push %eax 10a7fa: 6a 00 push $0x0 10a7fc: 6a 54 push $0x54 10a7fe: 6a 01 push $0x1 10a800: 0f be 05 14 30 12 00 movsbl 0x123014,%eax 10a807: 0d 00 6f 52 54 or $0x54526f00,%eax 10a80c: 50 push %eax 10a80d: 89 55 dc mov %edx,-0x24(%ebp) 10a810: e8 73 0b 00 00 call 10b388 <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)
10a815: 83 c4 20 add $0x20,%esp 10a818: 85 c0 test %eax,%eax 10a81a: 8b 55 dc mov -0x24(%ebp),%edx
10a81d: 0f 85 a1 01 00 00 jne 10a9c4 <rtems_termios_open+0x400><== ALWAYS TAKEN
rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create (
10a823: 83 ec 0c sub $0xc,%esp 10a826: 8b 45 e0 mov -0x20(%ebp),%eax 10a829: 05 8c 00 00 00 add $0x8c,%eax 10a82e: 50 push %eax 10a82f: 6a 00 push $0x0 10a831: 6a 20 push $0x20 10a833: 6a 00 push $0x0 10a835: 0f be 05 14 30 12 00 movsbl 0x123014,%eax 10a83c: 0d 00 78 52 54 or $0x54527800,%eax 10a841: 50 push %eax 10a842: 89 55 dc mov %edx,-0x24(%ebp) 10a845: e8 3e 0b 00 00 call 10b388 <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)
10a84a: 83 c4 20 add $0x20,%esp 10a84d: 85 c0 test %eax,%eax 10a84f: 8b 55 dc mov -0x24(%ebp),%edx
10a852: 0f 85 6c 01 00 00 jne 10a9c4 <rtems_termios_open+0x400><== ALWAYS TAKEN
rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle;
10a858: 8b 75 e0 mov -0x20(%ebp),%esi 10a85b: c7 86 94 00 00 00 00 movl $0x0,0x94(%esi)
10a862: 00 00 00 /* * Set callbacks */ tty->device = *callbacks;
10a865: 89 f7 mov %esi,%edi 10a867: 81 c7 98 00 00 00 add $0x98,%edi 10a86d: b9 08 00 00 00 mov $0x8,%ecx 10a872: 8b 75 14 mov 0x14(%ebp),%esi 10a875: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
/* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
10a877: 8b 45 e0 mov -0x20(%ebp),%eax 10a87a: 83 b8 b4 00 00 00 02 cmpl $0x2,0xb4(%eax)
10a881: 0f 84 63 01 00 00 je 10a9ea <rtems_termios_open+0x426><== ALWAYS TAKEN
&tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) ||
10a887: 8b 4d e0 mov -0x20(%ebp),%ecx 10a88a: 8b b9 a0 00 00 00 mov 0xa0(%ecx),%edi 10a890: 85 ff test %edi,%edi
10a892: 0f 84 f9 00 00 00 je 10a991 <rtems_termios_open+0x3cd> (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){
10a898: 83 b9 b4 00 00 00 02 cmpl $0x2,0xb4(%ecx)
10a89f: 0f 84 ec 00 00 00 je 10a991 <rtems_termios_open+0x3cd><== ALWAYS TAKEN
} /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
10a8a5: 8b 75 e0 mov -0x20(%ebp),%esi 10a8a8: c7 46 30 02 25 00 00 movl $0x2502,0x30(%esi)
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
10a8af: c7 46 34 05 18 00 00 movl $0x1805,0x34(%esi)
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
10a8b6: c7 46 38 bd 08 00 00 movl $0x8bd,0x38(%esi)
tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
10a8bd: c7 46 3c 3b 82 00 00 movl $0x823b,0x3c(%esi)
tty->termios.c_cc[VINTR] = '\003';
10a8c4: c6 46 41 03 movb $0x3,0x41(%esi)
tty->termios.c_cc[VQUIT] = '\034';
10a8c8: c6 46 42 1c movb $0x1c,0x42(%esi)
tty->termios.c_cc[VERASE] = '\177';
10a8cc: c6 46 43 7f movb $0x7f,0x43(%esi)
tty->termios.c_cc[VKILL] = '\025';
10a8d0: c6 46 44 15 movb $0x15,0x44(%esi)
tty->termios.c_cc[VEOF] = '\004';
10a8d4: c6 46 45 04 movb $0x4,0x45(%esi)
tty->termios.c_cc[VEOL] = '\000';
10a8d8: c6 46 4c 00 movb $0x0,0x4c(%esi)
tty->termios.c_cc[VEOL2] = '\000';
10a8dc: c6 46 51 00 movb $0x0,0x51(%esi)
tty->termios.c_cc[VSTART] = '\021';
10a8e0: c6 46 49 11 movb $0x11,0x49(%esi)
tty->termios.c_cc[VSTOP] = '\023';
10a8e4: c6 46 4a 13 movb $0x13,0x4a(%esi)
tty->termios.c_cc[VSUSP] = '\032';
10a8e8: c6 46 4b 1a movb $0x1a,0x4b(%esi)
tty->termios.c_cc[VREPRINT] = '\022';
10a8ec: c6 46 4d 12 movb $0x12,0x4d(%esi)
tty->termios.c_cc[VDISCARD] = '\017';
10a8f0: c6 46 4e 0f movb $0xf,0x4e(%esi)
tty->termios.c_cc[VWERASE] = '\027';
10a8f4: c6 46 4f 17 movb $0x17,0x4f(%esi)
tty->termios.c_cc[VLNEXT] = '\026';
10a8f8: c6 46 50 16 movb $0x16,0x50(%esi)
/* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0;
10a8fc: c7 86 b8 00 00 00 00 movl $0x0,0xb8(%esi)
10a903: 00 00 00 /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2;
10a906: 8b 46 64 mov 0x64(%esi),%eax 10a909: d1 e8 shr %eax 10a90b: 89 86 bc 00 00 00 mov %eax,0xbc(%esi)
tty->highwater = tty->rawInBuf.Size * 3/4;
10a911: 8b 46 64 mov 0x64(%esi),%eax 10a914: 8d 04 40 lea (%eax,%eax,2),%eax 10a917: c1 e8 02 shr $0x2,%eax 10a91a: 89 86 c0 00 00 00 mov %eax,0xc0(%esi)
/* * Bump name characer */ if (c++ == 'z')
10a920: a0 14 30 12 00 mov 0x123014,%al 10a925: 8d 48 01 lea 0x1(%eax),%ecx 10a928: 88 0d 14 30 12 00 mov %cl,0x123014 10a92e: 3c 7a cmp $0x7a,%al
10a930: 0f 85 e2 fc ff ff jne 10a618 <rtems_termios_open+0x54><== NEVER TAKEN
c = 'a';
10a936: c6 05 14 30 12 00 61 movb $0x61,0x123014 <== NOT EXECUTED 10a93d: e9 d6 fc ff ff jmp 10a618 <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);
10a942: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a945: ff 35 18 52 12 00 pushl 0x125218 <== NOT EXECUTED 10a94b: e8 ac 0d 00 00 call 10b6fc <rtems_semaphore_release><== NOT EXECUTED 10a950: c7 45 e4 1a 00 00 00 movl $0x1a,-0x1c(%ebp) <== NOT EXECUTED
return RTEMS_NO_MEMORY;
10a957: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a95a: e9 ff fc ff ff jmp 10a65e <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);
10a95f: 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);
10a962: 56 push %esi <== NOT EXECUTED 10a963: e8 14 d7 ff ff call 10807c <free> <== NOT EXECUTED
rtems_semaphore_release (rtems_termios_ttyMutex);
10a968: 59 pop %ecx <== NOT EXECUTED 10a969: ff 35 18 52 12 00 pushl 0x125218 <== NOT EXECUTED 10a96f: e8 88 0d 00 00 call 10b6fc <rtems_semaphore_release><== NOT EXECUTED 10a974: c7 45 e4 1a 00 00 00 movl $0x1a,-0x1c(%ebp) <== NOT EXECUTED
return RTEMS_NO_MEMORY;
10a97b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a97e: e9 db fc ff ff jmp 10a65e <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));
10a983: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a986: ff 76 58 pushl 0x58(%esi) <== NOT EXECUTED 10a989: e8 ee d6 ff ff call 10807c <free> <== NOT EXECUTED
free(tty);
10a98e: 5b pop %ebx <== NOT EXECUTED 10a98f: eb d1 jmp 10a962 <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 (
10a991: 83 ec 0c sub $0xc,%esp 10a994: 8b 45 e0 mov -0x20(%ebp),%eax 10a997: 83 c0 68 add $0x68,%eax 10a99a: 50 push %eax 10a99b: 6a 00 push $0x0 10a99d: 6a 24 push $0x24 10a99f: 6a 00 push $0x0 10a9a1: 0f be 05 14 30 12 00 movsbl 0x123014,%eax 10a9a8: 0d 00 72 52 54 or $0x54527200,%eax 10a9ad: 50 push %eax 10a9ae: 89 55 dc mov %edx,-0x24(%ebp) 10a9b1: e8 d2 09 00 00 call 10b388 <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)
10a9b6: 83 c4 20 add $0x20,%esp 10a9b9: 85 c0 test %eax,%eax 10a9bb: 8b 55 dc mov -0x24(%ebp),%edx
10a9be: 0f 84 e1 fe ff ff je 10a8a5 <rtems_termios_open+0x2e1><== NEVER TAKEN
sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc);
10a9c4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a9c7: 50 push %eax <== NOT EXECUTED 10a9c8: e8 6b 12 00 00 call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
/* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf));
10a9cd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a9d0: ff 71 7c pushl 0x7c(%ecx) <== NOT EXECUTED 10a9d3: e8 a4 d6 ff ff call 10807c <free> <== NOT EXECUTED
free((void *)(tty->rawInBuf.theBuf));
10a9d8: 5a pop %edx <== NOT EXECUTED 10a9d9: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED 10a9dc: ff 76 58 pushl 0x58(%esi) <== NOT EXECUTED 10a9df: e8 98 d6 ff ff call 10807c <free> <== NOT EXECUTED
free(tty);
10a9e4: 58 pop %eax <== NOT EXECUTED 10a9e5: e9 78 ff ff ff jmp 10a962 <rtems_termios_open+0x39e><== NOT EXECUTED
/* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_create (
10a9ea: 51 push %ecx <== NOT EXECUTED 10a9eb: 51 push %ecx <== NOT EXECUTED 10a9ec: 05 c8 00 00 00 add $0xc8,%eax <== NOT EXECUTED 10a9f1: 50 push %eax <== NOT EXECUTED 10a9f2: 6a 00 push $0x0 <== NOT EXECUTED 10a9f4: 68 00 05 00 00 push $0x500 <== NOT EXECUTED 10a9f9: 68 00 04 00 00 push $0x400 <== NOT EXECUTED 10a9fe: 6a 0a push $0xa <== NOT EXECUTED 10aa00: 0f be 05 14 30 12 00 movsbl 0x123014,%eax <== NOT EXECUTED 10aa07: 0d 00 54 78 54 or $0x54785400,%eax <== NOT EXECUTED 10aa0c: 50 push %eax <== NOT EXECUTED 10aa0d: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED 10aa10: e8 87 0d 00 00 call 10b79c <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)
10aa15: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10aa18: 85 c0 test %eax,%eax <== NOT EXECUTED 10aa1a: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED 10aa1d: 75 a5 jne 10a9c4 <rtems_termios_open+0x400><== NOT EXECUTED
rtems_fatal_error_occurred (sc); sc = rtems_task_create (
10aa1f: 50 push %eax <== NOT EXECUTED 10aa20: 50 push %eax <== NOT EXECUTED 10aa21: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10aa24: 05 c4 00 00 00 add $0xc4,%eax <== NOT EXECUTED 10aa29: 50 push %eax <== NOT EXECUTED 10aa2a: 6a 00 push $0x0 <== NOT EXECUTED 10aa2c: 68 00 05 00 00 push $0x500 <== NOT EXECUTED 10aa31: 68 00 04 00 00 push $0x400 <== NOT EXECUTED 10aa36: 6a 09 push $0x9 <== NOT EXECUTED 10aa38: 0f be 05 14 30 12 00 movsbl 0x123014,%eax <== NOT EXECUTED 10aa3f: 0d 00 54 78 52 or $0x52785400,%eax <== NOT EXECUTED 10aa44: 50 push %eax <== NOT EXECUTED 10aa45: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED 10aa48: e8 4f 0d 00 00 call 10b79c <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)
10aa4d: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10aa50: 85 c0 test %eax,%eax <== NOT EXECUTED 10aa52: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED 10aa55: 0f 84 2c fe ff ff je 10a887 <rtems_termios_open+0x2c3><== NOT EXECUTED 10aa5b: e9 64 ff ff ff jmp 10a9c4 <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;
10aa60: 89 35 1c 52 12 00 mov %esi,0x12521c 10aa66: e9 49 fd ff ff jmp 10a7b4 <rtems_termios_open+0x1f0>
00109530 <rtems_termios_puts>: * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) {
109530: 55 push %ebp 109531: 89 e5 mov %esp,%ebp 109533: 57 push %edi 109534: 56 push %esi 109535: 53 push %ebx 109536: 83 ec 1c sub $0x1c,%esp 109539: 8b 45 08 mov 0x8(%ebp),%eax 10953c: 8b 55 0c mov 0xc(%ebp),%edx 10953f: 89 55 e4 mov %edx,-0x1c(%ebp) 109542: 8b 5d 10 mov 0x10(%ebp),%ebx
const unsigned char *buf = _buf;
109545: 89 c6 mov %eax,%esi
unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
109547: 8b bb b4 00 00 00 mov 0xb4(%ebx),%edi 10954d: 85 ff test %edi,%edi
10954f: 0f 84 eb 00 00 00 je 109640 <rtems_termios_puts+0x110><== ALWAYS TAKEN
(*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head;
109555: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax 10955b: 89 45 e0 mov %eax,-0x20(%ebp)
while (len) {
10955e: 8b 4d e4 mov -0x1c(%ebp),%ecx 109561: 85 c9 test %ecx,%ecx
109563: 0f 84 cf 00 00 00 je 109638 <rtems_termios_puts+0x108><== ALWAYS TAKEN
109569: 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;
10956c: 8b 45 e0 mov -0x20(%ebp),%eax 10956f: 40 inc %eax 109570: 8b 8b 88 00 00 00 mov 0x88(%ebx),%ecx 109576: 31 d2 xor %edx,%edx 109578: f7 f1 div %ecx 10957a: 89 55 dc mov %edx,-0x24(%ebp) 10957d: 89 55 e0 mov %edx,-0x20(%ebp)
rtems_interrupt_disable (level);
109580: 9c pushf 109581: fa cli 109582: 5f pop %edi
while (newHead == tty->rawOutBuf.Tail) {
109583: 8b 93 84 00 00 00 mov 0x84(%ebx),%edx 109589: 3b 55 e0 cmp -0x20(%ebp),%edx
10958c: 75 3e jne 1095cc <rtems_termios_puts+0x9c>
10958e: 89 f8 mov %edi,%eax 109590: 89 f7 mov %esi,%edi 109592: 89 d6 mov %edx,%esi
tty->rawOutBufState = rob_wait;
109594: c7 83 94 00 00 00 02 movl $0x2,0x94(%ebx)
10959b: 00 00 00 rtems_interrupt_enable (level);
10959e: 50 push %eax 10959f: 9d popf
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
1095a0: 52 push %edx 1095a1: 6a 00 push $0x0 1095a3: 6a 00 push $0x0 1095a5: ff b3 8c 00 00 00 pushl 0x8c(%ebx) 1095ab: e8 50 20 00 00 call 10b600 <rtems_semaphore_obtain>
RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL)
1095b0: 83 c4 10 add $0x10,%esp 1095b3: 85 c0 test %eax,%eax
1095b5: 0f 85 a0 00 00 00 jne 10965b <rtems_termios_puts+0x12b><== ALWAYS TAKEN
rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level);
1095bb: 9c pushf 1095bc: fa cli 1095bd: 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) {
1095be: 8b 93 84 00 00 00 mov 0x84(%ebx),%edx 1095c4: 39 f2 cmp %esi,%edx
1095c6: 74 cc je 109594 <rtems_termios_puts+0x64><== ALWAYS TAKEN
1095c8: 89 fe mov %edi,%esi 1095ca: 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++;
1095cc: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax 1095d2: 8b 4b 7c mov 0x7c(%ebx),%ecx 1095d5: 8a 16 mov (%esi),%dl 1095d7: 88 14 01 mov %dl,(%ecx,%eax,1)
tty->rawOutBuf.Head = newHead;
1095da: 8b 45 dc mov -0x24(%ebp),%eax 1095dd: 89 83 80 00 00 00 mov %eax,0x80(%ebx)
if (tty->rawOutBufState == rob_idle) {
1095e3: 8b 83 94 00 00 00 mov 0x94(%ebx),%eax 1095e9: 85 c0 test %eax,%eax
1095eb: 75 23 jne 109610 <rtems_termios_puts+0xe0> /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) {
1095ed: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 1095f3: a8 10 test $0x10,%al
1095f5: 74 26 je 10961d <rtems_termios_puts+0xed><== NEVER 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;
1095f7: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1095fd: 83 c8 20 or $0x20,%eax <== NOT EXECUTED 109600: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
} tty->rawOutBufState = rob_busy;
109606: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx)
10960d: 00 00 00 } rtems_interrupt_enable (level);
109610: 57 push %edi 109611: 9d popf
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) {
109612: ff 4d e4 decl -0x1c(%ebp)
109615: 74 21 je 109638 <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++;
109617: 46 inc %esi 109618: e9 4f ff ff ff jmp 10956c <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);
10961d: 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,
109623: 51 push %ecx 109624: 6a 01 push $0x1 109626: 03 43 7c add 0x7c(%ebx),%eax 109629: 50 push %eax 10962a: ff 73 10 pushl 0x10(%ebx) 10962d: ff 93 a4 00 00 00 call *0xa4(%ebx) 109633: 83 c4 10 add $0x10,%esp 109636: eb ce jmp 109606 <rtems_termios_puts+0xd6>
tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } }
109638: 8d 65 f4 lea -0xc(%ebp),%esp 10963b: 5b pop %ebx 10963c: 5e pop %esi 10963d: 5f pop %edi 10963e: c9 leave 10963f: 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);
109640: 89 55 10 mov %edx,0x10(%ebp) <== NOT EXECUTED 109643: 89 45 0c mov %eax,0xc(%ebp) <== NOT EXECUTED 109646: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 109649: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 10964c: 8b 83 a4 00 00 00 mov 0xa4(%ebx),%eax <== NOT EXECUTED
tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } }
109652: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109655: 5b pop %ebx <== NOT EXECUTED 109656: 5e pop %esi <== NOT EXECUTED 109657: 5f pop %edi <== NOT EXECUTED 109658: 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);
109659: 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);
10965b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10965e: 50 push %eax <== NOT EXECUTED 10965f: e8 d4 25 00 00 call 10bc38 <rtems_fatal_error_occurred><== NOT EXECUTED
00109c9c <rtems_termios_read>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) {
109c9c: 55 push %ebp <== NOT EXECUTED 109c9d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 109c9f: 57 push %edi <== NOT EXECUTED 109ca0: 56 push %esi <== NOT EXECUTED 109ca1: 53 push %ebx <== NOT EXECUTED 109ca2: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED
rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1;
109ca5: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 109ca8: 8b 02 mov (%edx),%eax <== NOT EXECUTED 109caa: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED
uint32_t count = args->count;
109cad: 8b 4a 10 mov 0x10(%edx),%ecx <== NOT EXECUTED 109cb0: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED
char *buffer = args->buffer;
109cb3: 8b 42 0c mov 0xc(%edx),%eax <== NOT EXECUTED 109cb6: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED
rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
109cb9: 6a 00 push $0x0 <== NOT EXECUTED 109cbb: 6a 00 push $0x0 <== NOT EXECUTED 109cbd: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED 109cc0: e8 3b 19 00 00 call 10b600 <rtems_semaphore_obtain><== NOT EXECUTED 109cc5: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
109cc8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109ccb: 85 c0 test %eax,%eax <== NOT EXECUTED 109ccd: 75 35 jne 109d04 <rtems_termios_read+0x68><== NOT EXECUTED
return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) {
109ccf: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED 109cd5: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 109cd8: 8b 80 88 4e 12 00 mov 0x124e88(%eax),%eax <== NOT EXECUTED 109cde: 85 c0 test %eax,%eax <== NOT EXECUTED 109ce0: 74 2e je 109d10 <rtems_termios_read+0x74><== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);
109ce2: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 109ce5: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 109ce8: 53 push %ebx <== NOT EXECUTED 109ce9: ff d0 call *%eax <== NOT EXECUTED 109ceb: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
109cee: c7 83 e4 00 00 00 00 movl $0x0,0xe4(%ebx) <== NOT EXECUTED
109cf5: 00 00 00 rtems_semaphore_release (tty->isem);
109cf8: 59 pop %ecx <== NOT EXECUTED 109cf9: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED 109cfc: e8 fb 19 00 00 call 10b6fc <rtems_semaphore_release><== NOT EXECUTED
return sc;
109d01: 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; }
109d04: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 109d07: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109d0a: 5b pop %ebx <== NOT EXECUTED 109d0b: 5e pop %esi <== NOT EXECUTED 109d0c: 5f pop %edi <== NOT EXECUTED 109d0d: c9 leave <== NOT EXECUTED 109d0e: c3 ret <== NOT EXECUTED 109d0f: 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) {
109d10: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED 109d13: 3b 43 20 cmp 0x20(%ebx),%eax <== NOT EXECUTED 109d16: 74 5f je 109d77 <rtems_termios_read+0xdb><== NOT EXECUTED
else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) {
109d18: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED 109d1b: 85 c9 test %ecx,%ecx <== NOT EXECUTED 109d1d: 74 29 je 109d48 <rtems_termios_read+0xac><== NOT EXECUTED 109d1f: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED 109d22: 3b 43 20 cmp 0x20(%ebx),%eax <== NOT EXECUTED 109d25: 7d 21 jge 109d48 <rtems_termios_read+0xac><== NOT EXECUTED 109d27: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED 109d2a: 8b 7d dc mov -0x24(%ebp),%edi <== NOT EXECUTED 109d2d: eb 06 jmp 109d35 <rtems_termios_read+0x99><== NOT EXECUTED 109d2f: 90 nop <== NOT EXECUTED 109d30: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED 109d33: 7e 10 jle 109d45 <rtems_termios_read+0xa9><== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++];
109d35: 8b 73 1c mov 0x1c(%ebx),%esi <== NOT EXECUTED 109d38: 8a 0c 06 mov (%esi,%eax,1),%cl <== NOT EXECUTED 109d3b: 88 0a mov %cl,(%edx) <== NOT EXECUTED 109d3d: 42 inc %edx <== NOT EXECUTED 109d3e: 40 inc %eax <== NOT EXECUTED 109d3f: 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)) {
109d42: 4f dec %edi <== NOT EXECUTED 109d43: 75 eb jne 109d30 <rtems_termios_read+0x94><== NOT EXECUTED 109d45: 89 7d dc mov %edi,-0x24(%ebp) <== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count;
109d48: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 109d4b: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED 109d4e: 2b 45 dc sub -0x24(%ebp),%eax <== NOT EXECUTED 109d51: 89 42 18 mov %eax,0x18(%edx) <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
109d54: c7 83 e4 00 00 00 00 movl $0x0,0xe4(%ebx) <== NOT EXECUTED
109d5b: 00 00 00 rtems_semaphore_release (tty->isem);
109d5e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109d61: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED 109d64: e8 93 19 00 00 call 10b6fc <rtems_semaphore_release><== NOT EXECUTED
return sc;
109d69: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
109d6c: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 109d6f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109d72: 5b pop %ebx <== NOT EXECUTED 109d73: 5e pop %esi <== NOT EXECUTED 109d74: 5f pop %edi <== NOT EXECUTED 109d75: c9 leave <== NOT EXECUTED 109d76: 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;
109d77: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx) <== NOT EXECUTED 109d7e: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED
tty->read_start_column = tty->column;
109d85: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED 109d88: 89 43 2c mov %eax,0x2c(%ebx) <== NOT EXECUTED
if (tty->device.pollRead != NULL && tty->device.outputUsesInterrupts == TERMIOS_POLLED)
109d8b: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax <== NOT EXECUTED
return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL
109d91: 85 c0 test %eax,%eax <== NOT EXECUTED 109d93: 74 0e je 109da3 <rtems_termios_read+0x107><== NOT EXECUTED
&& tty->device.outputUsesInterrupts == TERMIOS_POLLED)
109d95: 8b 93 b4 00 00 00 mov 0xb4(%ebx),%edx <== NOT EXECUTED 109d9b: 85 d2 test %edx,%edx <== NOT EXECUTED 109d9d: 0f 84 72 01 00 00 je 109f15 <rtems_termios_read+0x279><== 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;
109da3: 8b 73 74 mov 0x74(%ebx),%esi <== NOT EXECUTED
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,
109da6: 8d 53 49 lea 0x49(%ebx),%edx <== NOT EXECUTED 109da9: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 109dac: c7 45 e4 01 00 00 00 movl $0x1,-0x1c(%ebp) <== NOT EXECUTED 109db3: 90 nop <== NOT EXECUTED
while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
109db4: 8b 53 5c mov 0x5c(%ebx),%edx <== NOT EXECUTED 109db7: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 109dba: 39 c2 cmp %eax,%edx <== NOT EXECUTED 109dbc: 75 2c jne 109dea <rtems_termios_read+0x14e><== NOT EXECUTED 109dbe: e9 f5 00 00 00 jmp 109eb8 <rtems_termios_read+0x21c><== NOT EXECUTED 109dc3: 90 nop <== NOT EXECUTED
} } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty))
109dc4: 0f b6 c1 movzbl %cl,%eax <== NOT EXECUTED 109dc7: 89 da mov %ebx,%edx <== NOT EXECUTED 109dc9: e8 3e fd ff ff call 109b0c <siproc> <== NOT EXECUTED 109dce: 85 c0 test %eax,%eax <== NOT EXECUTED 109dd0: 74 07 je 109dd9 <rtems_termios_read+0x13d><== NOT EXECUTED
wait = 0; } else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN])
109dd2: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED
wait = 0; } timeout = tty->rawInBufSemaphoreTimeout;
109dd9: 8b 73 70 mov 0x70(%ebx),%esi <== NOT EXECUTED
while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
109ddc: 8b 53 5c mov 0x5c(%ebx),%edx <== NOT EXECUTED 109ddf: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 109de2: 39 c2 cmp %eax,%edx <== NOT EXECUTED 109de4: 0f 84 ce 00 00 00 je 109eb8 <rtems_termios_read+0x21c><== NOT EXECUTED 109dea: a1 08 30 12 00 mov 0x123008,%eax <== NOT EXECUTED 109def: 48 dec %eax <== NOT EXECUTED 109df0: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED 109df3: 0f 8d bf 00 00 00 jge 109eb8 <rtems_termios_read+0x21c><== NOT EXECUTED
(tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;
109df9: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED 109dfc: 8b 4b 64 mov 0x64(%ebx),%ecx <== NOT EXECUTED 109dff: 40 inc %eax <== NOT EXECUTED 109e00: 31 d2 xor %edx,%edx <== NOT EXECUTED 109e02: f7 f1 div %ecx <== NOT EXECUTED
c = tty->rawInBuf.theBuf[newHead];
109e04: 8b 43 58 mov 0x58(%ebx),%eax <== NOT EXECUTED 109e07: 8a 0c 10 mov (%eax,%edx,1),%cl <== NOT EXECUTED
tty->rawInBuf.Head = newHead;
109e0a: 89 53 5c mov %edx,0x5c(%ebx) <== NOT EXECUTED
if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)
109e0d: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 109e10: 8b 7b 64 mov 0x64(%ebx),%edi <== NOT EXECUTED 109e13: 8b 73 64 mov 0x64(%ebx),%esi <== NOT EXECUTED 109e16: 8d 04 07 lea (%edi,%eax,1),%eax <== NOT EXECUTED 109e19: 29 d0 sub %edx,%eax <== NOT EXECUTED 109e1b: 31 d2 xor %edx,%edx <== NOT EXECUTED 109e1d: f7 f6 div %esi <== NOT EXECUTED 109e1f: 3b 93 bc 00 00 00 cmp 0xbc(%ebx),%edx <== NOT EXECUTED 109e25: 73 5d jae 109e84 <rtems_termios_read+0x1e8><== NOT EXECUTED
% tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF;
109e27: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109e2d: 83 e0 fe and $0xfffffffe,%eax <== NOT EXECUTED 109e30: 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))
109e36: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109e3c: 25 02 02 00 00 and $0x202,%eax <== NOT EXECUTED 109e41: 3d 02 02 00 00 cmp $0x202,%eax <== NOT EXECUTED 109e46: 0f 84 94 00 00 00 je 109ee0 <rtems_termios_read+0x244><== 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) {
109e4c: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109e52: f6 c4 01 test $0x1,%ah <== NOT EXECUTED 109e55: 74 2d je 109e84 <rtems_termios_read+0x1e8><== NOT EXECUTED
tty->flow_ctrl &= ~FL_IRTSOFF;
109e57: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109e5d: 83 e0 fb and $0xfffffffb,%eax <== NOT EXECUTED 109e60: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
/* activate RTS line */ if (tty->device.startRemoteTx != NULL) {
109e66: 8b 83 b0 00 00 00 mov 0xb0(%ebx),%eax <== NOT EXECUTED 109e6c: 85 c0 test %eax,%eax <== NOT EXECUTED 109e6e: 74 14 je 109e84 <rtems_termios_read+0x1e8><== NOT EXECUTED
tty->device.startRemoteTx(tty->minor);
109e70: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109e73: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109e76: 88 4d d0 mov %cl,-0x30(%ebp) <== NOT EXECUTED 109e79: ff d0 call *%eax <== NOT EXECUTED 109e7b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109e7e: 8a 4d d0 mov -0x30(%ebp),%cl <== NOT EXECUTED 109e81: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
} } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) {
109e84: f6 43 3c 02 testb $0x2,0x3c(%ebx) <== NOT EXECUTED 109e88: 0f 85 36 ff ff ff jne 109dc4 <rtems_termios_read+0x128><== NOT EXECUTED
if (siproc (c, tty)) wait = 0; } else { siproc (c, tty);
109e8e: 0f b6 c1 movzbl %cl,%eax <== NOT EXECUTED 109e91: 89 da mov %ebx,%edx <== NOT EXECUTED 109e93: e8 74 fc ff ff call 109b0c <siproc> <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
109e98: 0f b6 43 47 movzbl 0x47(%ebx),%eax <== NOT EXECUTED 109e9c: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED 109e9f: 0f 8d 2d ff ff ff jge 109dd2 <rtems_termios_read+0x136><== NOT EXECUTED
wait = 0; } timeout = tty->rawInBufSemaphoreTimeout;
109ea5: 8b 73 70 mov 0x70(%ebx),%esi <== NOT EXECUTED
while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
109ea8: 8b 53 5c mov 0x5c(%ebx),%edx <== NOT EXECUTED 109eab: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 109eae: 39 c2 cmp %eax,%edx <== NOT EXECUTED 109eb0: 0f 85 34 ff ff ff jne 109dea <rtems_termios_read+0x14e><== NOT EXECUTED 109eb6: 66 90 xchg %ax,%ax <== NOT EXECUTED
} /* * Wait for characters */ if ( wait ) {
109eb8: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 109ebb: 85 c0 test %eax,%eax <== NOT EXECUTED 109ebd: 0f 84 55 fe ff ff je 109d18 <rtems_termios_read+0x7c><== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore,
109ec3: 57 push %edi <== NOT EXECUTED 109ec4: 56 push %esi <== NOT EXECUTED 109ec5: ff 73 6c pushl 0x6c(%ebx) <== NOT EXECUTED 109ec8: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED 109ecb: e8 30 17 00 00 call 10b600 <rtems_semaphore_obtain><== NOT EXECUTED
tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL)
109ed0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109ed3: 85 c0 test %eax,%eax <== NOT EXECUTED 109ed5: 0f 84 d9 fe ff ff je 109db4 <rtems_termios_read+0x118><== NOT EXECUTED 109edb: e9 38 fe ff ff jmp 109d18 <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))
109ee0: 8b b3 94 00 00 00 mov 0x94(%ebx),%esi <== NOT EXECUTED 109ee6: 85 f6 test %esi,%esi <== NOT EXECUTED 109ee8: 74 0e je 109ef8 <rtems_termios_read+0x25c><== NOT EXECUTED
== (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) {
109eea: 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))
109ef0: a8 20 test $0x20,%al <== NOT EXECUTED 109ef2: 0f 84 54 ff ff ff je 109e4c <rtems_termios_read+0x1b0><== 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,
109ef8: 52 push %edx <== NOT EXECUTED 109ef9: 6a 01 push $0x1 <== NOT EXECUTED 109efb: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED 109efe: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109f01: 88 4d d0 mov %cl,-0x30(%ebp) <== NOT EXECUTED 109f04: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED 109f0a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109f0d: 8a 4d d0 mov -0x30(%ebp),%cl <== NOT EXECUTED 109f10: e9 6f ff ff ff jmp 109e84 <rtems_termios_read+0x1e8><== NOT EXECUTED
static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) {
109f15: f6 43 3c 02 testb $0x2,0x3c(%ebx) <== NOT EXECUTED 109f19: 75 1d jne 109f38 <rtems_termios_read+0x29c><== NOT EXECUTED 109f1b: eb 39 jmp 109f56 <rtems_termios_read+0x2ba><== NOT EXECUTED 109f1d: 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))
109f20: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 109f23: 89 da mov %ebx,%edx <== NOT EXECUTED 109f25: e8 e2 fb ff ff call 109b0c <siproc> <== NOT EXECUTED 109f2a: 85 c0 test %eax,%eax <== NOT EXECUTED 109f2c: 0f 85 e6 fd ff ff jne 109d18 <rtems_termios_read+0x7c><== NOT EXECUTED
static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) {
109f32: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax <== NOT EXECUTED
for (;;) { n = (*tty->device.pollRead)(tty->minor);
109f38: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109f3b: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109f3e: ff d0 call *%eax <== NOT EXECUTED
if (n < 0) {
109f40: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109f43: 85 c0 test %eax,%eax <== NOT EXECUTED 109f45: 79 d9 jns 109f20 <rtems_termios_read+0x284><== NOT EXECUTED
rtems_task_wake_after (1);
109f47: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109f4a: 6a 01 push $0x1 <== NOT EXECUTED 109f4c: e8 63 1b 00 00 call 10bab4 <rtems_task_wake_after> <== NOT EXECUTED 109f51: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109f54: eb dc jmp 109f32 <rtems_termios_read+0x296><== NOT EXECUTED
} } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot();
109f56: e8 a9 0f 00 00 call 10af04 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED 109f5b: 89 c6 mov %eax,%esi <== NOT EXECUTED 109f5d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
for (;;) { n = (*tty->device.pollRead)(tty->minor);
109f60: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109f63: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109f66: ff 93 a0 00 00 00 call *0xa0(%ebx) <== NOT EXECUTED
if (n < 0) {
109f6c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109f6f: 85 c0 test %eax,%eax <== NOT EXECUTED 109f71: 78 25 js 109f98 <rtems_termios_read+0x2fc><== NOT EXECUTED
} } rtems_task_wake_after (1); } else { siproc (n, tty);
109f73: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 109f76: 89 da mov %ebx,%edx <== NOT EXECUTED 109f78: e8 8f fb ff ff call 109b0c <siproc> <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
109f7d: 8a 43 47 mov 0x47(%ebx),%al <== NOT EXECUTED 109f80: 0f b6 d0 movzbl %al,%edx <== NOT EXECUTED 109f83: 39 53 20 cmp %edx,0x20(%ebx) <== NOT EXECUTED 109f86: 0f 8d 8c fd ff ff jge 109d18 <rtems_termios_read+0x7c><== NOT EXECUTED
break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])
109f8c: 84 c0 test %al,%al <== NOT EXECUTED 109f8e: 74 d0 je 109f60 <rtems_termios_read+0x2c4><== NOT EXECUTED 109f90: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED 109f94: 74 ca je 109f60 <rtems_termios_read+0x2c4><== NOT EXECUTED 109f96: eb be jmp 109f56 <rtems_termios_read+0x2ba><== 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]) {
109f98: 80 7b 47 00 cmpb $0x0,0x47(%ebx) <== NOT EXECUTED 109f9c: 74 1d je 109fbb <rtems_termios_read+0x31f><== NOT EXECUTED
if (tty->termios.c_cc[VTIME] && tty->ccount) {
109f9e: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED 109fa2: 74 08 je 109fac <rtems_termios_read+0x310><== NOT EXECUTED 109fa4: 8b 7b 20 mov 0x20(%ebx),%edi <== NOT EXECUTED 109fa7: 85 ff test %edi,%edi <== NOT EXECUTED 109fa9: 75 1a jne 109fc5 <rtems_termios_read+0x329><== NOT EXECUTED 109fab: 90 nop <== NOT EXECUTED
now = rtems_clock_get_ticks_since_boot(); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1);
109fac: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109faf: 6a 01 push $0x1 <== NOT EXECUTED 109fb1: e8 fe 1a 00 00 call 10bab4 <rtems_task_wake_after> <== NOT EXECUTED 109fb6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109fb9: eb a5 jmp 109f60 <rtems_termios_read+0x2c4><== NOT EXECUTED
break; } } } else { if (!tty->termios.c_cc[VTIME])
109fbb: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED 109fbf: 0f 84 53 fd ff ff je 109d18 <rtems_termios_read+0x7c><== NOT EXECUTED
break; now = rtems_clock_get_ticks_since_boot();
109fc5: e8 3a 0f 00 00 call 10af04 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
if ((now - then) > tty->vtimeTicks) {
109fca: 29 f0 sub %esi,%eax <== NOT EXECUTED 109fcc: 3b 43 54 cmp 0x54(%ebx),%eax <== NOT EXECUTED 109fcf: 76 db jbe 109fac <rtems_termios_read+0x310><== NOT EXECUTED 109fd1: e9 42 fd ff ff jmp 109d18 <rtems_termios_read+0x7c><== NOT EXECUTED
00108f80 <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) {
108f80: 55 push %ebp 108f81: 89 e5 mov %esp,%ebp 108f83: 57 push %edi 108f84: 56 push %esi 108f85: 53 push %ebx 108f86: 83 ec 0c sub $0xc,%esp 108f89: 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))
108f8c: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 108f92: 25 03 04 00 00 and $0x403,%eax 108f97: 3d 01 04 00 00 cmp $0x401,%eax
108f9c: 0f 84 86 01 00 00 je 109128 <rtems_termios_refill_transmitter+0x1a8><== ALWAYS TAKEN
tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF))
108fa2: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 108fa8: 83 e0 03 and $0x3,%eax 108fab: 83 f8 02 cmp $0x2,%eax
108fae: 0f 84 b0 01 00 00 je 109164 <rtems_termios_refill_transmitter+0x1e4><== ALWAYS TAKEN
rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {
108fb4: 8b 93 80 00 00 00 mov 0x80(%ebx),%edx 108fba: 8b 83 84 00 00 00 mov 0x84(%ebx),%eax 108fc0: 39 c2 cmp %eax,%edx
108fc2: 0f 84 b0 00 00 00 je 109078 <rtems_termios_refill_transmitter+0xf8><== ALWAYS TAKEN
rtems_semaphore_release (tty->rawOutBuf.Semaphore); } return 0; } rtems_interrupt_disable(level);
108fc8: 9c pushf 108fc9: fa cli 108fca: 58 pop %eax
len = tty->t_dqlen;
108fcb: 8b 8b 90 00 00 00 mov 0x90(%ebx),%ecx
tty->t_dqlen = 0;
108fd1: c7 83 90 00 00 00 00 movl $0x0,0x90(%ebx)
108fd8: 00 00 00 rtems_interrupt_enable(level);
108fdb: 50 push %eax 108fdc: 9d popf
newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;
108fdd: 8b 83 84 00 00 00 mov 0x84(%ebx),%eax 108fe3: 8b bb 88 00 00 00 mov 0x88(%ebx),%edi 108fe9: 8d 04 01 lea (%ecx,%eax,1),%eax 108fec: 31 d2 xor %edx,%edx 108fee: f7 f7 div %edi 108ff0: 89 d6 mov %edx,%esi
tty->rawOutBuf.Tail = newTail;
108ff2: 89 93 84 00 00 00 mov %edx,0x84(%ebx)
if (tty->rawOutBufState == rob_wait) {
108ff8: 83 bb 94 00 00 00 02 cmpl $0x2,0x94(%ebx)
108fff: 0f 84 e7 00 00 00 je 1090ec <rtems_termios_refill_transmitter+0x16c> /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); } if (newTail == tty->rawOutBuf.Head) {
109005: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax 10900b: 39 f0 cmp %esi,%eax
10900d: 0f 84 81 00 00 00 je 109094 <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))
109013: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 109019: 25 10 02 00 00 and $0x210,%eax 10901e: 3d 10 02 00 00 cmp $0x210,%eax
109023: 0f 84 db 00 00 00 je 109104 <rtems_termios_refill_transmitter+0x184><== ALWAYS TAKEN
} else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head)
109029: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax 10902f: 39 c6 cmp %eax,%esi
109031: 0f 87 95 00 00 00 ja 1090cc <rtems_termios_refill_transmitter+0x14c> nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail;
109037: 8b bb 80 00 00 00 mov 0x80(%ebx),%edi 10903d: 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)) {
10903f: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 109045: f6 c4 06 test $0x6,%ah
109048: 0f 84 95 00 00 00 je 1090e3 <rtems_termios_refill_transmitter+0x163><== NEVER TAKEN
10904e: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED 109053: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED
nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/
109058: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx)
10905f: 00 00 00 (*tty->device.write)(tty->minor,
109062: 52 push %edx 109063: 50 push %eax 109064: 8b 43 7c mov 0x7c(%ebx),%eax 109067: 01 f0 add %esi,%eax 109069: 50 push %eax 10906a: ff 73 10 pushl 0x10(%ebx) 10906d: ff 93 a4 00 00 00 call *0xa4(%ebx) 109073: 83 c4 10 add $0x10,%esp 109076: eb 44 jmp 1090bc <rtems_termios_refill_transmitter+0x13c>
else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) {
109078: 83 bb 94 00 00 00 02 cmpl $0x2,0x94(%ebx) <== NOT EXECUTED 10907f: 0f 84 1b 01 00 00 je 1091a0 <rtems_termios_refill_transmitter+0x220><== NOT EXECUTED 109085: 31 ff xor %edi,%edi <== NOT EXECUTED
nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; }
109087: 89 f8 mov %edi,%eax <== NOT EXECUTED 109089: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10908c: 5b pop %ebx <== NOT EXECUTED 10908d: 5e pop %esi <== NOT EXECUTED 10908e: 5f pop %edi <== NOT EXECUTED 10908f: c9 leave <== NOT EXECUTED 109090: c3 ret <== NOT EXECUTED 109091: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
} if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle;
109094: c7 83 94 00 00 00 00 movl $0x0,0x94(%ebx)
10909b: 00 00 00 nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) {
10909e: 8b 83 d4 00 00 00 mov 0xd4(%ebx),%eax 1090a4: 85 c0 test %eax,%eax
1090a6: 74 7a je 109122 <rtems_termios_refill_transmitter+0x1a2><== NEVER TAKEN
(*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);
1090a8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1090ab: ff b3 d8 00 00 00 pushl 0xd8(%ebx) <== NOT EXECUTED 1090b1: 8d 53 30 lea 0x30(%ebx),%edx <== NOT EXECUTED 1090b4: 52 push %edx <== NOT EXECUTED 1090b5: ff d0 call *%eax <== NOT EXECUTED 1090b7: 31 ff xor %edi,%edi <== NOT EXECUTED 1090b9: 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*/
1090bc: 89 b3 84 00 00 00 mov %esi,0x84(%ebx)
} return nToSend; }
1090c2: 89 f8 mov %edi,%eax 1090c4: 8d 65 f4 lea -0xc(%ebp),%esp 1090c7: 5b pop %ebx 1090c8: 5e pop %esi 1090c9: 5f pop %edi 1090ca: c9 leave 1090cb: c3 ret
else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail;
1090cc: 8b bb 88 00 00 00 mov 0x88(%ebx),%edi 1090d2: 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)) {
1090d4: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 1090da: f6 c4 06 test $0x6,%ah
1090dd: 0f 85 6b ff ff ff jne 10904e <rtems_termios_refill_transmitter+0xce><== ALWAYS TAKEN
1090e3: 89 f8 mov %edi,%eax 1090e5: e9 6e ff ff ff jmp 109058 <rtems_termios_refill_transmitter+0xd8>
1090ea: 66 90 xchg %ax,%ax <== NOT EXECUTED
tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore);
1090ec: 83 ec 0c sub $0xc,%esp 1090ef: ff b3 8c 00 00 00 pushl 0x8c(%ebx) 1090f5: e8 02 26 00 00 call 10b6fc <rtems_semaphore_release> 1090fa: 83 c4 10 add $0x10,%esp 1090fd: e9 03 ff ff ff jmp 109005 <rtems_termios_refill_transmitter+0x85>
109102: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* 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);
109104: 9c pushf <== NOT EXECUTED 109105: fa cli <== NOT EXECUTED 109106: 5a pop %edx <== NOT EXECUTED
tty->flow_ctrl |= FL_OSTOP;
109107: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 10910d: 83 c8 20 or $0x20,%eax <== NOT EXECUTED 109110: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
109116: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx) <== NOT EXECUTED
10911d: 00 00 00 rtems_interrupt_enable(level);
109120: 52 push %edx <== NOT EXECUTED 109121: 9d popf <== NOT EXECUTED
109122: 31 ff xor %edi,%edi 109124: eb 96 jmp 1090bc <rtems_termios_refill_transmitter+0x13c>
109126: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* 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,
109128: 56 push %esi <== NOT EXECUTED 109129: 6a 01 push $0x1 <== NOT EXECUTED 10912b: 8d 43 4a lea 0x4a(%ebx),%eax <== NOT EXECUTED 10912e: 50 push %eax <== NOT EXECUTED 10912f: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109132: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level);
109138: 9c pushf <== NOT EXECUTED 109139: fa cli <== NOT EXECUTED 10913a: 5a pop %edx <== NOT EXECUTED
tty->t_dqlen--;
10913b: ff 8b 90 00 00 00 decl 0x90(%ebx) <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
109141: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109147: 83 c8 02 or $0x2,%eax <== NOT EXECUTED 10914a: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
rtems_interrupt_enable(level);
109150: 52 push %edx <== NOT EXECUTED 109151: 9d popf <== NOT EXECUTED 109152: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED 109157: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; }
10915a: 89 f8 mov %edi,%eax <== NOT EXECUTED 10915c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10915f: 5b pop %ebx <== NOT EXECUTED 109160: 5e pop %esi <== NOT EXECUTED 109161: 5f pop %edi <== NOT EXECUTED 109162: c9 leave <== NOT EXECUTED 109163: 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,
109164: 51 push %ecx <== NOT EXECUTED 109165: 6a 01 push $0x1 <== NOT EXECUTED 109167: 8d 43 49 lea 0x49(%ebx),%eax <== NOT EXECUTED 10916a: 50 push %eax <== NOT EXECUTED 10916b: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 10916e: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level);
109174: 9c pushf <== NOT EXECUTED 109175: fa cli <== NOT EXECUTED 109176: 5a pop %edx <== NOT EXECUTED
tty->t_dqlen--;
109177: ff 8b 90 00 00 00 decl 0x90(%ebx) <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
10917d: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109183: 83 e0 fd and $0xfffffffd,%eax <== NOT EXECUTED 109186: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED
rtems_interrupt_enable(level);
10918c: 52 push %edx <== NOT EXECUTED 10918d: 9d popf <== NOT EXECUTED 10918e: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED 109193: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; }
109196: 89 f8 mov %edi,%eax <== NOT EXECUTED 109198: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10919b: 5b pop %ebx <== NOT EXECUTED 10919c: 5e pop %esi <== NOT EXECUTED 10919d: 5f pop %edi <== NOT EXECUTED 10919e: c9 leave <== NOT EXECUTED 10919f: c3 ret <== NOT EXECUTED
*/ if (tty->rawOutBufState == rob_wait) { /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore);
1091a0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1091a3: ff b3 8c 00 00 00 pushl 0x8c(%ebx) <== NOT EXECUTED 1091a9: e8 4e 25 00 00 call 10b6fc <rtems_semaphore_release><== NOT EXECUTED 1091ae: 31 ff xor %edi,%edi <== NOT EXECUTED 1091b0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1091b3: e9 cf fe ff ff jmp 109087 <rtems_termios_refill_transmitter+0x107><== NOT EXECUTED
0010aad8 <rtems_termios_rxdaemon>: /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) {
10aad8: 55 push %ebp <== NOT EXECUTED 10aad9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10aadb: 57 push %edi <== NOT EXECUTED 10aadc: 56 push %esi <== NOT EXECUTED 10aadd: 53 push %ebx <== NOT EXECUTED 10aade: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED 10aae1: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 10aae4: 8d 75 e0 lea -0x20(%ebp),%esi <== NOT EXECUTED 10aae7: 8d 7d e7 lea -0x19(%ebp),%edi <== NOT EXECUTED 10aaea: 66 90 xchg %ax,%ax <== NOT EXECUTED
char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT |
10aaec: 56 push %esi <== NOT EXECUTED 10aaed: 6a 00 push $0x0 <== NOT EXECUTED 10aaef: 6a 02 push $0x2 <== NOT EXECUTED 10aaf1: 6a 03 push $0x3 <== NOT EXECUTED 10aaf3: e8 74 04 00 00 call 10af6c <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) {
10aaf8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aafb: f6 45 e0 01 testb $0x1,-0x20(%ebp) <== NOT EXECUTED 10aaff: 75 27 jne 10ab28 <rtems_termios_rxdaemon+0x50><== NOT EXECUTED
} else { /* * do something */ c = tty->device.pollRead(tty->minor);
10ab01: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10ab04: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 10ab07: ff 93 a0 00 00 00 call *0xa0(%ebx) <== NOT EXECUTED
if (c != EOF) {
10ab0d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10ab10: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED 10ab13: 74 d7 je 10aaec <rtems_termios_rxdaemon+0x14><== NOT EXECUTED
/* * pollRead did call enqueue on its own */ c_buf = c;
10ab15: 88 45 e7 mov %al,-0x19(%ebp) <== NOT EXECUTED
rtems_termios_enqueue_raw_characters (
10ab18: 50 push %eax <== NOT EXECUTED 10ab19: 6a 01 push $0x1 <== NOT EXECUTED 10ab1b: 57 push %edi <== NOT EXECUTED 10ab1c: 53 push %ebx <== NOT EXECUTED 10ab1d: e8 fe e6 ff ff call 109220 <rtems_termios_enqueue_raw_characters><== NOT EXECUTED 10ab22: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10ab25: eb c5 jmp 10aaec <rtems_termios_rxdaemon+0x14><== NOT EXECUTED 10ab27: 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;
10ab28: c7 83 c4 00 00 00 00 movl $0x0,0xc4(%ebx) <== NOT EXECUTED
10ab2f: 00 00 00 rtems_task_delete(RTEMS_SELF);
10ab32: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10ab35: 6a 00 push $0x0 <== NOT EXECUTED 10ab37: e8 c0 0d 00 00 call 10b8fc <rtems_task_delete> <== NOT EXECUTED 10ab3c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10ab3f: eb ab jmp 10aaec <rtems_termios_rxdaemon+0x14><== NOT EXECUTED
00108f64 <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) {
108f64: 55 push %ebp <== NOT EXECUTED 108f65: 89 e5 mov %esp,%ebp <== NOT EXECUTED 108f67: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED
/* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT);
108f6a: 6a 02 push $0x2 <== NOT EXECUTED 108f6c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 108f6f: ff b0 c4 00 00 00 pushl 0xc4(%eax) <== NOT EXECUTED 108f75: e8 76 21 00 00 call 10b0f0 <rtems_event_send> <== NOT EXECUTED 108f7a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
108f7d: c9 leave <== NOT EXECUTED 108f7e: c3 ret <== NOT EXECUTED
0010aa6c <rtems_termios_txdaemon>: /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) {
10aa6c: 55 push %ebp <== NOT EXECUTED 10aa6d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10aa6f: 56 push %esi <== NOT EXECUTED 10aa70: 53 push %ebx <== NOT EXECUTED 10aa71: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED 10aa74: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 10aa77: 8d 75 f4 lea -0xc(%ebp),%esi <== NOT EXECUTED 10aa7a: 66 90 xchg %ax,%ax <== NOT EXECUTED
while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT |
10aa7c: 56 push %esi <== NOT EXECUTED 10aa7d: 6a 00 push $0x0 <== NOT EXECUTED 10aa7f: 6a 02 push $0x2 <== NOT EXECUTED 10aa81: 6a 03 push $0x3 <== NOT EXECUTED 10aa83: e8 e4 04 00 00 call 10af6c <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) {
10aa88: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aa8b: f6 45 f4 01 testb $0x1,-0xc(%ebp) <== NOT EXECUTED 10aa8f: 75 2b jne 10aabc <rtems_termios_txdaemon+0x50><== NOT EXECUTED
} else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
10aa91: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED 10aa97: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 10aa9a: 8b 80 94 4e 12 00 mov 0x124e94(%eax),%eax <== NOT EXECUTED 10aaa0: 85 c0 test %eax,%eax <== NOT EXECUTED 10aaa2: 74 09 je 10aaad <rtems_termios_txdaemon+0x41><== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
10aaa4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10aaa7: 53 push %ebx <== NOT EXECUTED 10aaa8: ff d0 call *%eax <== NOT EXECUTED 10aaaa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty);
10aaad: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10aab0: 53 push %ebx <== NOT EXECUTED 10aab1: e8 ca e4 ff ff call 108f80 <rtems_termios_refill_transmitter><== NOT EXECUTED 10aab6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aab9: eb c1 jmp 10aa7c <rtems_termios_txdaemon+0x10><== NOT EXECUTED 10aabb: 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;
10aabc: c7 83 c8 00 00 00 00 movl $0x0,0xc8(%ebx) <== NOT EXECUTED
10aac3: 00 00 00 rtems_task_delete(RTEMS_SELF);
10aac6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10aac9: 6a 00 push $0x0 <== NOT EXECUTED 10aacb: e8 2c 0e 00 00 call 10b8fc <rtems_task_delete> <== NOT EXECUTED 10aad0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aad3: eb a7 jmp 10aa7c <rtems_termios_txdaemon+0x10><== NOT EXECUTED
00109b60 <rtems_termios_write>: rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) {
109b60: 55 push %ebp 109b61: 89 e5 mov %esp,%ebp 109b63: 57 push %edi 109b64: 56 push %esi 109b65: 53 push %ebx 109b66: 83 ec 20 sub $0x20,%esp 109b69: 8b 7d 08 mov 0x8(%ebp),%edi
rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1;
109b6c: 8b 07 mov (%edi),%eax 109b6e: 8b 70 34 mov 0x34(%eax),%esi
rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
109b71: 6a 00 push $0x0 109b73: 6a 00 push $0x0 109b75: ff 76 18 pushl 0x18(%esi) 109b78: e8 83 1a 00 00 call 10b600 <rtems_semaphore_obtain> 109b7d: 89 45 e4 mov %eax,-0x1c(%ebp)
if (sc != RTEMS_SUCCESSFUL)
109b80: 83 c4 10 add $0x10,%esp 109b83: 85 c0 test %eax,%eax
109b85: 75 29 jne 109bb0 <rtems_termios_write+0x50><== ALWAYS TAKEN
return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) {
109b87: 8b 86 cc 00 00 00 mov 0xcc(%esi),%eax 109b8d: c1 e0 05 shl $0x5,%eax 109b90: 8b 80 8c 4e 12 00 mov 0x124e8c(%eax),%eax 109b96: 85 c0 test %eax,%eax
109b98: 74 22 je 109bbc <rtems_termios_write+0x5c><== NEVER TAKEN
sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);
109b9a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 109b9d: 57 push %edi <== NOT EXECUTED 109b9e: 56 push %esi <== NOT EXECUTED 109b9f: ff d0 call *%eax <== NOT EXECUTED 109ba1: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
109ba4: 5f pop %edi <== NOT EXECUTED 109ba5: ff 76 18 pushl 0x18(%esi) <== NOT EXECUTED 109ba8: e8 4f 1b 00 00 call 10b6fc <rtems_semaphore_release><== NOT EXECUTED
return sc;
109bad: 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; }
109bb0: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 109bb3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109bb6: 5b pop %ebx <== NOT EXECUTED 109bb7: 5e pop %esi <== NOT EXECUTED 109bb8: 5f pop %edi <== NOT EXECUTED 109bb9: c9 leave <== NOT EXECUTED 109bba: c3 ret <== NOT EXECUTED 109bbb: 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) {
109bbc: f6 46 34 01 testb $0x1,0x34(%esi)
109bc0: 74 4e je 109c10 <rtems_termios_write+0xb0><== ALWAYS TAKEN
uint32_t count = args->count;
109bc2: 8b 47 10 mov 0x10(%edi),%eax 109bc5: 89 45 e0 mov %eax,-0x20(%ebp)
char *buffer = args->buffer;
109bc8: 8b 47 0c mov 0xc(%edi),%eax
while (count--)
109bcb: 8b 5d e0 mov -0x20(%ebp),%ebx 109bce: 85 db test %ebx,%ebx
109bd0: 74 56 je 109c28 <rtems_termios_write+0xc8><== ALWAYS TAKEN
109bd2: 31 db xor %ebx,%ebx 109bd4: 89 7d dc mov %edi,-0x24(%ebp) 109bd7: 89 c7 mov %eax,%edi 109bd9: 8d 76 00 lea 0x0(%esi),%esi
oproc (*buffer++, tty);
109bdc: 0f b6 04 1f movzbl (%edi,%ebx,1),%eax 109be0: 89 f2 mov %esi,%edx 109be2: e8 7d fa ff ff call 109664 <oproc> 109be7: 43 inc %ebx
return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--)
109be8: 3b 5d e0 cmp -0x20(%ebp),%ebx
109beb: 75 ef jne 109bdc <rtems_termios_write+0x7c>
109bed: 8b 7d dc mov -0x24(%ebp),%edi 109bf0: 8b 47 10 mov 0x10(%edi),%eax
oproc (*buffer++, tty); args->bytes_moved = args->count;
109bf3: 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);
109bf6: 83 ec 0c sub $0xc,%esp 109bf9: ff 76 18 pushl 0x18(%esi) 109bfc: e8 fb 1a 00 00 call 10b6fc <rtems_semaphore_release>
return sc;
109c01: 83 c4 10 add $0x10,%esp
}
109c04: 8b 45 e4 mov -0x1c(%ebp),%eax 109c07: 8d 65 f4 lea -0xc(%ebp),%esp 109c0a: 5b pop %ebx 109c0b: 5e pop %esi 109c0c: 5f pop %edi 109c0d: c9 leave 109c0e: c3 ret
109c0f: 90 nop <== NOT EXECUTED
while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty);
109c10: 51 push %ecx <== NOT EXECUTED 109c11: 56 push %esi <== NOT EXECUTED 109c12: ff 77 10 pushl 0x10(%edi) <== NOT EXECUTED 109c15: ff 77 0c pushl 0xc(%edi) <== NOT EXECUTED 109c18: e8 13 f9 ff ff call 109530 <rtems_termios_puts> <== NOT EXECUTED
args->bytes_moved = args->count;
109c1d: 8b 47 10 mov 0x10(%edi),%eax <== NOT EXECUTED 109c20: 89 47 18 mov %eax,0x18(%edi) <== NOT EXECUTED 109c23: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109c26: eb ce jmp 109bf6 <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--)
109c28: 31 c0 xor %eax,%eax <== NOT EXECUTED 109c2a: eb c7 jmp 109bf3 <rtems_termios_write+0x93><== NOT EXECUTED
00118918 <rtems_timer_cancel>: */ rtems_status_code rtems_timer_cancel( rtems_id id ) {
118918: 55 push %ebp 118919: 89 e5 mov %esp,%ebp 11891b: 83 ec 1c sub $0x1c,%esp
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *)
11891e: 8d 45 f4 lea -0xc(%ebp),%eax 118921: 50 push %eax 118922: ff 75 08 pushl 0x8(%ebp) 118925: 68 80 0a 14 00 push $0x140a80 11892a: e8 b5 28 00 00 call 11b1e4 <_Objects_Get>
Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) {
11892f: 83 c4 10 add $0x10,%esp 118932: 8b 55 f4 mov -0xc(%ebp),%edx 118935: 85 d2 test %edx,%edx
118937: 74 07 je 118940 <rtems_timer_cancel+0x28>
118939: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
11893e: c9 leave 11893f: c3 ret
the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Timer_Is_dormant_class( the_timer->the_class ) )
118940: 83 78 38 04 cmpl $0x4,0x38(%eax)
118944: 74 0f je 118955 <rtems_timer_cancel+0x3d><== ALWAYS TAKEN
(void) _Watchdog_Remove( &the_timer->Ticker );
118946: 83 ec 0c sub $0xc,%esp 118949: 83 c0 10 add $0x10,%eax 11894c: 50 push %eax 11894d: e8 3a 45 00 00 call 11ce8c <_Watchdog_Remove> 118952: 83 c4 10 add $0x10,%esp
_Thread_Enable_dispatch();
118955: e8 3a 31 00 00 call 11ba94 <_Thread_Enable_dispatch> 11895a: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
11895c: c9 leave 11895d: c3 ret
00118960 <rtems_timer_create>: rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) {
118960: 55 push %ebp 118961: 89 e5 mov %esp,%ebp 118963: 57 push %edi 118964: 56 push %esi 118965: 53 push %ebx 118966: 83 ec 0c sub $0xc,%esp 118969: 8b 5d 08 mov 0x8(%ebp),%ebx 11896c: 8b 75 0c mov 0xc(%ebp),%esi
Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) )
11896f: 85 db test %ebx,%ebx
118971: 74 6d je 1189e0 <rtems_timer_create+0x80> return RTEMS_INVALID_NAME; if ( !id )
118973: 85 f6 test %esi,%esi
118975: 0f 84 89 00 00 00 je 118a04 <rtems_timer_create+0xa4>
11897b: a1 78 07 14 00 mov 0x140778,%eax 118980: 40 inc %eax 118981: a3 78 07 14 00 mov %eax,0x140778
* 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 );
118986: 83 ec 0c sub $0xc,%esp 118989: 68 80 0a 14 00 push $0x140a80 11898e: e8 65 23 00 00 call 11acf8 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) {
118993: 83 c4 10 add $0x10,%esp 118996: 85 c0 test %eax,%eax
118998: 74 56 je 1189f0 <rtems_timer_create+0x90> _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_timer->the_class = TIMER_DORMANT;
11899a: 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;
1189a1: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax)
the_watchdog->routine = routine;
1189a8: c7 40 2c 00 00 00 00 movl $0x0,0x2c(%eax)
the_watchdog->id = id;
1189af: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax)
the_watchdog->user_data = user_data;
1189b6: 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;
1189bd: 8b 50 08 mov 0x8(%eax),%edx 1189c0: 0f b7 fa movzwl %dx,%edi 1189c3: 8b 0d 9c 0a 14 00 mov 0x140a9c,%ecx 1189c9: 89 04 b9 mov %eax,(%ecx,%edi,4)
information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name;
1189cc: 89 58 0c mov %ebx,0xc(%eax)
&_Timer_Information, &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id;
1189cf: 89 16 mov %edx,(%esi)
_Thread_Enable_dispatch();
1189d1: e8 be 30 00 00 call 11ba94 <_Thread_Enable_dispatch> 1189d6: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL; }
1189d8: 8d 65 f4 lea -0xc(%ebp),%esp 1189db: 5b pop %ebx 1189dc: 5e pop %esi 1189dd: 5f pop %edi 1189de: c9 leave 1189df: c3 ret
rtems_id *id ) { Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) )
1189e0: b8 03 00 00 00 mov $0x3,%eax
); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
1189e5: 8d 65 f4 lea -0xc(%ebp),%esp 1189e8: 5b pop %ebx 1189e9: 5e pop %esi 1189ea: 5f pop %edi 1189eb: c9 leave 1189ec: c3 ret
1189ed: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { _Thread_Enable_dispatch();
1189f0: e8 9f 30 00 00 call 11ba94 <_Thread_Enable_dispatch> 1189f5: b8 05 00 00 00 mov $0x5,%eax
); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
1189fa: 8d 65 f4 lea -0xc(%ebp),%esp 1189fd: 5b pop %ebx 1189fe: 5e pop %esi 1189ff: 5f pop %edi 118a00: c9 leave 118a01: c3 ret
118a02: 66 90 xchg %ax,%ax <== NOT EXECUTED
Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id )
118a04: b8 09 00 00 00 mov $0x9,%eax
); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; }
118a09: 8d 65 f4 lea -0xc(%ebp),%esp 118a0c: 5b pop %ebx 118a0d: 5e pop %esi 118a0e: 5f pop %edi 118a0f: c9 leave 118a10: c3 ret
00118a14 <rtems_timer_delete>: */ rtems_status_code rtems_timer_delete( rtems_id id ) {
118a14: 55 push %ebp 118a15: 89 e5 mov %esp,%ebp 118a17: 53 push %ebx 118a18: 83 ec 18 sub $0x18,%esp
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *)
118a1b: 8d 45 f4 lea -0xc(%ebp),%eax 118a1e: 50 push %eax 118a1f: ff 75 08 pushl 0x8(%ebp) 118a22: 68 80 0a 14 00 push $0x140a80 118a27: e8 b8 27 00 00 call 11b1e4 <_Objects_Get> 118a2c: 89 c3 mov %eax,%ebx
Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) {
118a2e: 83 c4 10 add $0x10,%esp 118a31: 8b 4d f4 mov -0xc(%ebp),%ecx 118a34: 85 c9 test %ecx,%ecx
118a36: 75 38 jne 118a70 <rtems_timer_delete+0x5c> case OBJECTS_LOCAL: _Objects_Close( &_Timer_Information, &the_timer->Object );
118a38: 83 ec 08 sub $0x8,%esp 118a3b: 50 push %eax 118a3c: 68 80 0a 14 00 push $0x140a80 118a41: e8 2e 23 00 00 call 11ad74 <_Objects_Close>
(void) _Watchdog_Remove( &the_timer->Ticker );
118a46: 8d 43 10 lea 0x10(%ebx),%eax 118a49: 89 04 24 mov %eax,(%esp) 118a4c: e8 3b 44 00 00 call 11ce8c <_Watchdog_Remove>
*/ RTEMS_INLINE_ROUTINE void _Timer_Free ( Timer_Control *the_timer ) { _Objects_Free( &_Timer_Information, &the_timer->Object );
118a51: 58 pop %eax 118a52: 5a pop %edx 118a53: 53 push %ebx 118a54: 68 80 0a 14 00 push $0x140a80 118a59: e8 1a 26 00 00 call 11b078 <_Objects_Free>
_Timer_Free( the_timer ); _Thread_Enable_dispatch();
118a5e: e8 31 30 00 00 call 11ba94 <_Thread_Enable_dispatch> 118a63: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
118a65: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118a68: 8b 5d fc mov -0x4(%ebp),%ebx 118a6b: c9 leave 118a6c: c3 ret
118a6d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{ Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) {
118a70: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118a75: 8b 5d fc mov -0x4(%ebp),%ebx 118a78: c9 leave 118a79: c3 ret
00118a7c <rtems_timer_fire_after>: rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) {
118a7c: 55 push %ebp 118a7d: 89 e5 mov %esp,%ebp 118a7f: 57 push %edi 118a80: 56 push %esi 118a81: 53 push %ebx 118a82: 83 ec 2c sub $0x2c,%esp 118a85: 8b 5d 0c mov 0xc(%ebp),%ebx 118a88: 8b 75 10 mov 0x10(%ebp),%esi
Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 )
118a8b: 85 db test %ebx,%ebx
118a8d: 0f 84 99 00 00 00 je 118b2c <rtems_timer_fire_after+0xb0> return RTEMS_INVALID_NUMBER; if ( !routine )
118a93: 85 f6 test %esi,%esi
118a95: 0f 84 b1 00 00 00 je 118b4c <rtems_timer_fire_after+0xd0> RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *)
118a9b: 57 push %edi 118a9c: 8d 45 e4 lea -0x1c(%ebp),%eax 118a9f: 50 push %eax 118aa0: ff 75 08 pushl 0x8(%ebp) 118aa3: 68 80 0a 14 00 push $0x140a80 118aa8: e8 37 27 00 00 call 11b1e4 <_Objects_Get> 118aad: 89 c7 mov %eax,%edi
return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) {
118aaf: 83 c4 10 add $0x10,%esp 118ab2: 8b 4d e4 mov -0x1c(%ebp),%ecx 118ab5: 85 c9 test %ecx,%ecx
118ab7: 74 0f je 118ac8 <rtems_timer_fire_after+0x4c>
118ab9: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118abe: 8d 65 f4 lea -0xc(%ebp),%esp 118ac1: 5b pop %ebx 118ac2: 5e pop %esi 118ac3: 5f pop %edi 118ac4: c9 leave 118ac5: c3 ret
118ac6: 66 90 xchg %ax,%ax <== NOT EXECUTED
the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker );
118ac8: 8d 50 10 lea 0x10(%eax),%edx 118acb: 83 ec 0c sub $0xc,%esp 118ace: 52 push %edx 118acf: 89 55 d4 mov %edx,-0x2c(%ebp) 118ad2: e8 b5 43 00 00 call 11ce8c <_Watchdog_Remove>
_ISR_Disable( level );
118ad7: 9c pushf 118ad8: fa cli 118ad9: 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 ) {
118ada: 83 c4 10 add $0x10,%esp 118add: 8b 57 18 mov 0x18(%edi),%edx 118ae0: 85 d2 test %edx,%edx 118ae2: 8b 55 d4 mov -0x2c(%ebp),%edx
118ae5: 75 55 jne 118b3c <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;
118ae7: 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;
118aee: c7 47 18 00 00 00 00 movl $0x0,0x18(%edi)
the_watchdog->routine = routine;
118af5: 89 77 2c mov %esi,0x2c(%edi)
the_watchdog->id = id;
118af8: 8b 4d 08 mov 0x8(%ebp),%ecx 118afb: 89 4f 30 mov %ecx,0x30(%edi)
the_watchdog->user_data = user_data;
118afe: 8b 4d 14 mov 0x14(%ebp),%ecx 118b01: 89 4f 34 mov %ecx,0x34(%edi)
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level );
118b04: 50 push %eax 118b05: 9d popf
Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units;
118b06: 89 5f 1c mov %ebx,0x1c(%edi)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
118b09: 83 ec 08 sub $0x8,%esp 118b0c: 52 push %edx 118b0d: 68 58 08 14 00 push $0x140858 118b12: e8 3d 42 00 00 call 11cd54 <_Watchdog_Insert>
_Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch();
118b17: e8 78 2f 00 00 call 11ba94 <_Thread_Enable_dispatch> 118b1c: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
118b1e: 83 c4 10 add $0x10,%esp
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118b21: 8d 65 f4 lea -0xc(%ebp),%esp 118b24: 5b pop %ebx 118b25: 5e pop %esi 118b26: 5f pop %edi 118b27: c9 leave 118b28: c3 ret
118b29: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
{ Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 )
118b2c: b8 0a 00 00 00 mov $0xa,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118b31: 8d 65 f4 lea -0xc(%ebp),%esp 118b34: 5b pop %ebx 118b35: 5e pop %esi 118b36: 5f pop %edi 118b37: c9 leave 118b38: c3 ret
118b39: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
* 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 );
118b3c: 50 push %eax 118b3d: 9d popf
_Thread_Enable_dispatch();
118b3e: e8 51 2f 00 00 call 11ba94 <_Thread_Enable_dispatch> 118b43: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
118b45: e9 74 ff ff ff jmp 118abe <rtems_timer_fire_after+0x42>
118b4a: 66 90 xchg %ax,%ax <== NOT EXECUTED
ISR_Level level; if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; if ( !routine )
118b4c: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118b51: 8d 65 f4 lea -0xc(%ebp),%esp 118b54: 5b pop %ebx 118b55: 5e pop %esi 118b56: 5f pop %edi 118b57: c9 leave 118b58: c3 ret
00118b5c <rtems_timer_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
118b5c: 55 push %ebp 118b5d: 89 e5 mov %esp,%ebp 118b5f: 57 push %edi 118b60: 56 push %esi 118b61: 53 push %ebx 118b62: 83 ec 2c sub $0x2c,%esp 118b65: 8b 75 08 mov 0x8(%ebp),%esi 118b68: 8b 7d 0c mov 0xc(%ebp),%edi 118b6b: 8b 5d 10 mov 0x10(%ebp),%ebx
Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set )
118b6e: 80 3d 8c 07 14 00 00 cmpb $0x0,0x14078c
118b75: 75 0d jne 118b84 <rtems_timer_fire_when+0x28>
118b77: b8 0b 00 00 00 mov $0xb,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118b7c: 8d 65 f4 lea -0xc(%ebp),%esp 118b7f: 5b pop %ebx 118b80: 5e pop %esi 118b81: 5f pop %edi 118b82: c9 leave 118b83: c3 ret
rtems_interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) )
118b84: 83 ec 0c sub $0xc,%esp 118b87: 57 push %edi 118b88: e8 67 d4 ff ff call 115ff4 <_TOD_Validate> 118b8d: 83 c4 10 add $0x10,%esp 118b90: 84 c0 test %al,%al
118b92: 74 1e je 118bb2 <rtems_timer_fire_when+0x56> return RTEMS_INVALID_CLOCK; if ( !routine )
118b94: 85 db test %ebx,%ebx
118b96: 0f 84 a4 00 00 00 je 118c40 <rtems_timer_fire_when+0xe4> return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time );
118b9c: 83 ec 0c sub $0xc,%esp 118b9f: 57 push %edi 118ba0: e8 c3 d3 ff ff call 115f68 <_TOD_To_seconds> 118ba5: 89 c7 mov %eax,%edi
if ( seconds <= _TOD_Seconds_since_epoch() )
118ba7: 83 c4 10 add $0x10,%esp 118baa: 3b 05 0c 08 14 00 cmp 0x14080c,%eax
118bb0: 77 0e ja 118bc0 <rtems_timer_fire_when+0x64> _Watchdog_Insert_seconds( &the_timer->Ticker, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL;
118bb2: b8 14 00 00 00 mov $0x14,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118bb7: 8d 65 f4 lea -0xc(%ebp),%esp 118bba: 5b pop %ebx 118bbb: 5e pop %esi 118bbc: 5f pop %edi 118bbd: c9 leave 118bbe: c3 ret
118bbf: 90 nop <== NOT EXECUTED
118bc0: 50 push %eax 118bc1: 8d 45 e4 lea -0x1c(%ebp),%eax 118bc4: 50 push %eax 118bc5: 56 push %esi 118bc6: 68 80 0a 14 00 push $0x140a80 118bcb: e8 14 26 00 00 call 11b1e4 <_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 ) {
118bd0: 83 c4 10 add $0x10,%esp 118bd3: 8b 4d e4 mov -0x1c(%ebp),%ecx 118bd6: 85 c9 test %ecx,%ecx
118bd8: 75 5a jne 118c34 <rtems_timer_fire_when+0xd8> case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker );
118bda: 8d 48 10 lea 0x10(%eax),%ecx 118bdd: 83 ec 0c sub $0xc,%esp 118be0: 51 push %ecx 118be1: 89 45 d4 mov %eax,-0x2c(%ebp) 118be4: 89 4d d0 mov %ecx,-0x30(%ebp) 118be7: e8 a0 42 00 00 call 11ce8c <_Watchdog_Remove>
the_timer->the_class = TIMER_TIME_OF_DAY;
118bec: 8b 55 d4 mov -0x2c(%ebp),%edx 118bef: 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;
118bf6: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx)
the_watchdog->routine = routine;
118bfd: 89 5a 2c mov %ebx,0x2c(%edx)
the_watchdog->id = id;
118c00: 89 72 30 mov %esi,0x30(%edx)
the_watchdog->user_data = user_data;
118c03: 8b 45 14 mov 0x14(%ebp),%eax 118c06: 89 42 34 mov %eax,0x34(%edx)
Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units;
118c09: 2b 3d 0c 08 14 00 sub 0x14080c,%edi 118c0f: 89 7a 1c mov %edi,0x1c(%edx)
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
118c12: 58 pop %eax 118c13: 5a pop %edx 118c14: 8b 4d d0 mov -0x30(%ebp),%ecx 118c17: 51 push %ecx 118c18: 68 4c 08 14 00 push $0x14084c 118c1d: e8 32 41 00 00 call 11cd54 <_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();
118c22: e8 6d 2e 00 00 call 11ba94 <_Thread_Enable_dispatch> 118c27: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
118c29: 83 c4 10 add $0x10,%esp 118c2c: e9 4b ff ff ff jmp 118b7c <rtems_timer_fire_when+0x20>
118c31: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) {
118c34: b8 04 00 00 00 mov $0x4,%eax 118c39: e9 3e ff ff ff jmp 118b7c <rtems_timer_fire_when+0x20>
118c3e: 66 90 xchg %ax,%ax <== NOT EXECUTED
return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; if ( !routine )
118c40: b8 09 00 00 00 mov $0x9,%eax 118c45: e9 32 ff ff ff jmp 118b7c <rtems_timer_fire_when+0x20>
00118c4c <rtems_timer_get_information>: rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) {
118c4c: 55 push %ebp 118c4d: 89 e5 mov %esp,%ebp 118c4f: 53 push %ebx 118c50: 83 ec 14 sub $0x14,%esp 118c53: 8b 5d 0c mov 0xc(%ebp),%ebx
Timer_Control *the_timer; Objects_Locations location; if ( !the_info )
118c56: 85 db test %ebx,%ebx
118c58: 74 4a je 118ca4 <rtems_timer_get_information+0x58>
118c5a: 51 push %ecx 118c5b: 8d 45 f4 lea -0xc(%ebp),%eax 118c5e: 50 push %eax 118c5f: ff 75 08 pushl 0x8(%ebp) 118c62: 68 80 0a 14 00 push $0x140a80 118c67: e8 78 25 00 00 call 11b1e4 <_Objects_Get>
return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) {
118c6c: 83 c4 10 add $0x10,%esp 118c6f: 8b 55 f4 mov -0xc(%ebp),%edx 118c72: 85 d2 test %edx,%edx
118c74: 74 0a je 118c80 <rtems_timer_get_information+0x34>
118c76: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118c7b: 8b 5d fc mov -0x4(%ebp),%ebx 118c7e: c9 leave 118c7f: c3 ret
the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class;
118c80: 8b 50 38 mov 0x38(%eax),%edx 118c83: 89 13 mov %edx,(%ebx)
the_info->initial = the_timer->Ticker.initial;
118c85: 8b 50 1c mov 0x1c(%eax),%edx 118c88: 89 53 04 mov %edx,0x4(%ebx)
the_info->start_time = the_timer->Ticker.start_time;
118c8b: 8b 50 24 mov 0x24(%eax),%edx 118c8e: 89 53 08 mov %edx,0x8(%ebx)
the_info->stop_time = the_timer->Ticker.stop_time;
118c91: 8b 40 28 mov 0x28(%eax),%eax 118c94: 89 43 0c mov %eax,0xc(%ebx)
_Thread_Enable_dispatch();
118c97: e8 f8 2d 00 00 call 11ba94 <_Thread_Enable_dispatch> 118c9c: 31 c0 xor %eax,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118c9e: 8b 5d fc mov -0x4(%ebp),%ebx 118ca1: c9 leave 118ca2: c3 ret
118ca3: 90 nop <== NOT EXECUTED
) { Timer_Control *the_timer; Objects_Locations location; if ( !the_info )
118ca4: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118ca9: 8b 5d fc mov -0x4(%ebp),%ebx 118cac: c9 leave 118cad: c3 ret
00118f5c <rtems_timer_initiate_server>: rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) {
118f5c: 55 push %ebp 118f5d: 89 e5 mov %esp,%ebp 118f5f: 56 push %esi 118f60: 53 push %ebx 118f61: 83 ec 10 sub $0x10,%esp 118f64: 8b 45 08 mov 0x8(%ebp),%eax 118f67: 85 c0 test %eax,%eax
118f69: 75 0d jne 118f78 <rtems_timer_initiate_server+0x1c> if (status) { initialized = false; } #endif return status;
118f6b: b8 13 00 00 00 mov $0x13,%eax
}
118f70: 8d 65 f8 lea -0x8(%ebp),%esp 118f73: 5b pop %ebx 118f74: 5e pop %esi 118f75: c9 leave 118f76: c3 ret
118f77: 90 nop <== NOT EXECUTED
118f78: 0f b6 15 14 82 13 00 movzbl 0x138214,%edx 118f7f: 39 d0 cmp %edx,%eax
118f81: 76 35 jbe 118fb8 <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 )
118f83: 40 inc %eax
118f84: 75 e5 jne 118f6b <rtems_timer_initiate_server+0xf>
118f86: 31 f6 xor %esi,%esi 118f88: 8b 15 78 07 14 00 mov 0x140778,%edx 118f8e: 42 inc %edx 118f8f: 89 15 78 07 14 00 mov %edx,0x140778
/* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized;
118f95: 8a 1d e0 bf 13 00 mov 0x13bfe0,%bl
initialized = true;
118f9b: c6 05 e0 bf 13 00 01 movb $0x1,0x13bfe0
_Thread_Enable_dispatch();
118fa2: e8 ed 2a 00 00 call 11ba94 <_Thread_Enable_dispatch>
if ( tmpInitialized )
118fa7: 84 db test %bl,%bl
118fa9: 74 11 je 118fbc <rtems_timer_initiate_server+0x60>
118fab: b8 0e 00 00 00 mov $0xe,%eax
initialized = false; } #endif return status; }
118fb0: 8d 65 f8 lea -0x8(%ebp),%esp 118fb3: 5b pop %ebx 118fb4: 5e pop %esi 118fb5: c9 leave 118fb6: c3 ret
118fb7: 90 nop <== NOT EXECUTED
118fb8: 89 c6 mov %eax,%esi 118fba: eb cc jmp 118f88 <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(
118fbc: 83 ec 08 sub $0x8,%esp 118fbf: 8d 45 f4 lea -0xc(%ebp),%eax 118fc2: 50 push %eax 118fc3: 8b 45 10 mov 0x10(%ebp),%eax 118fc6: 80 cc 80 or $0x80,%ah 118fc9: 50 push %eax 118fca: 68 00 01 00 00 push $0x100 118fcf: ff 75 0c pushl 0xc(%ebp) 118fd2: 56 push %esi 118fd3: 68 45 4d 49 54 push $0x54494d45 118fd8: e8 87 f0 ff ff call 118064 <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) {
118fdd: 83 c4 20 add $0x20,%esp 118fe0: 85 c0 test %eax,%eax
118fe2: 74 10 je 118ff4 <rtems_timer_initiate_server+0x98> initialized = false;
118fe4: c6 05 e0 bf 13 00 00 movb $0x0,0x13bfe0
initialized = false; } #endif return status; }
118feb: 8d 65 f8 lea -0x8(%ebp),%esp 118fee: 5b pop %ebx 118fef: 5e pop %esi 118ff0: c9 leave 118ff1: c3 ret
118ff2: 66 90 xchg %ax,%ax <== NOT EXECUTED
* We work with the TCB pointer, not the ID, so we need to convert * to a TCB pointer from here out. */ ts->thread = (Thread_Control *)_Objects_Get_local_object( &_RTEMS_tasks_Information, _Objects_Get_index(id)
118ff4: 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(
118ff7: 0f b7 c8 movzwl %ax,%ecx 118ffa: 8b 15 1c 07 14 00 mov 0x14071c,%edx 119000: 8b 14 8a mov (%edx,%ecx,4),%edx 119003: 89 15 00 c0 13 00 mov %edx,0x13c000
*/ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain);
119009: c7 05 30 c0 13 00 34 movl $0x13c034,0x13c030
119010: c0 13 00 the_chain->permanent_null = NULL;
119013: c7 05 34 c0 13 00 00 movl $0x0,0x13c034
11901a: 00 00 00 the_chain->last = _Chain_Head(the_chain);
11901d: c7 05 38 c0 13 00 30 movl $0x13c030,0x13c038
119024: c0 13 00 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain);
119027: c7 05 68 c0 13 00 6c movl $0x13c06c,0x13c068
11902e: c0 13 00 the_chain->permanent_null = NULL;
119031: c7 05 6c c0 13 00 00 movl $0x0,0x13c06c
119038: 00 00 00 the_chain->last = _Chain_Head(the_chain);
11903b: c7 05 70 c0 13 00 68 movl $0x13c068,0x13c070
119042: c0 13 00 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE;
119045: c7 05 10 c0 13 00 00 movl $0x0,0x13c010
11904c: 00 00 00 the_watchdog->routine = routine;
11904f: c7 05 24 c0 13 00 fc movl $0x11b8fc,0x13c024
119056: b8 11 00 the_watchdog->id = id;
119059: a3 28 c0 13 00 mov %eax,0x13c028
the_watchdog->user_data = user_data;
11905e: c7 05 2c c0 13 00 00 movl $0x0,0x13c02c
119065: 00 00 00 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE;
119068: c7 05 48 c0 13 00 00 movl $0x0,0x13c048
11906f: 00 00 00 the_watchdog->routine = routine;
119072: c7 05 5c c0 13 00 fc movl $0x11b8fc,0x13c05c
119079: b8 11 00 the_watchdog->id = id;
11907c: a3 60 c0 13 00 mov %eax,0x13c060
the_watchdog->user_data = user_data;
119081: c7 05 64 c0 13 00 00 movl $0x0,0x13c064
119088: 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;
11908b: c7 05 04 c0 13 00 30 movl $0x119330,0x13c004
119092: 93 11 00 ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;
119095: 8b 15 e4 08 14 00 mov 0x1408e4,%edx 11909b: 89 15 3c c0 13 00 mov %edx,0x13c03c
ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
1190a1: 8b 15 0c 08 14 00 mov 0x14080c,%edx 1190a7: 89 15 74 c0 13 00 mov %edx,0x13c074
ts->insert_chain = NULL;
1190ad: c7 05 78 c0 13 00 00 movl $0x0,0x13c078
1190b4: 00 00 00 ts->active = false;
1190b7: c6 05 7c c0 13 00 00 movb $0x0,0x13c07c
/* * The default timer server is now available. */ _Timer_server = ts;
1190be: c7 05 c0 0a 14 00 00 movl $0x13c000,0x140ac0
1190c5: c0 13 00 /* * Start the timer server */ status = rtems_task_start(
1190c8: 52 push %edx 1190c9: 68 00 c0 13 00 push $0x13c000 1190ce: 68 84 91 11 00 push $0x119184 1190d3: 50 push %eax 1190d4: e8 23 f6 ff ff call 1186fc <rtems_task_start>
if (status) { initialized = false; } #endif return status;
1190d9: 83 c4 10 add $0x10,%esp 1190dc: e9 8f fe ff ff jmp 118f70 <rtems_timer_initiate_server+0x14>
00118cd4 <rtems_timer_reset>: */ rtems_status_code rtems_timer_reset( rtems_id id ) {
118cd4: 55 push %ebp 118cd5: 89 e5 mov %esp,%ebp 118cd7: 56 push %esi 118cd8: 53 push %ebx 118cd9: 83 ec 24 sub $0x24,%esp 118cdc: 8d 45 f4 lea -0xc(%ebp),%eax 118cdf: 50 push %eax 118ce0: ff 75 08 pushl 0x8(%ebp) 118ce3: 68 80 0a 14 00 push $0x140a80 118ce8: e8 f7 24 00 00 call 11b1e4 <_Objects_Get> 118ced: 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 ) {
118cef: 83 c4 10 add $0x10,%esp 118cf2: 8b 45 f4 mov -0xc(%ebp),%eax 118cf5: 85 c0 test %eax,%eax
118cf7: 74 0f je 118d08 <rtems_timer_reset+0x34>
118cf9: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118cfe: 8d 65 f8 lea -0x8(%ebp),%esp 118d01: 5b pop %ebx 118d02: 5e pop %esi 118d03: c9 leave 118d04: c3 ret
118d05: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) {
118d08: 8b 43 38 mov 0x38(%ebx),%eax 118d0b: 85 c0 test %eax,%eax
118d0d: 74 1d je 118d2c <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 ) {
118d0f: 48 dec %eax
118d10: 74 3a je 118d4c <rtems_timer_reset+0x78>
118d12: 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();
118d17: 89 45 e4 mov %eax,-0x1c(%ebp) 118d1a: e8 75 2d 00 00 call 11ba94 <_Thread_Enable_dispatch> 118d1f: 8b 45 e4 mov -0x1c(%ebp),%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118d22: 8d 65 f8 lea -0x8(%ebp),%esp 118d25: 5b pop %ebx 118d26: 5e pop %esi 118d27: c9 leave 118d28: c3 ret
118d29: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_timer->the_class == TIMER_INTERVAL ) { _Watchdog_Remove( &the_timer->Ticker );
118d2c: 83 c3 10 add $0x10,%ebx 118d2f: 83 ec 0c sub $0xc,%esp 118d32: 53 push %ebx 118d33: e8 54 41 00 00 call 11ce8c <_Watchdog_Remove>
_Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker );
118d38: 59 pop %ecx 118d39: 5e pop %esi 118d3a: 53 push %ebx 118d3b: 68 58 08 14 00 push $0x140858 118d40: e8 0f 40 00 00 call 11cd54 <_Watchdog_Insert> 118d45: 31 c0 xor %eax,%eax 118d47: 83 c4 10 add $0x10,%esp 118d4a: eb cb jmp 118d17 <rtems_timer_reset+0x43>
} else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { Timer_server_Control *timer_server = _Timer_server;
118d4c: 8b 35 c0 0a 14 00 mov 0x140ac0,%esi
if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker );
118d52: 83 ec 0c sub $0xc,%esp 118d55: 8d 43 10 lea 0x10(%ebx),%eax 118d58: 50 push %eax 118d59: e8 2e 41 00 00 call 11ce8c <_Watchdog_Remove>
(*timer_server->schedule_operation)( timer_server, the_timer );
118d5e: 58 pop %eax 118d5f: 5a pop %edx 118d60: 53 push %ebx 118d61: 56 push %esi 118d62: ff 56 04 call *0x4(%esi) 118d65: 31 c0 xor %eax,%eax 118d67: 83 c4 10 add $0x10,%esp 118d6a: eb ab jmp 118d17 <rtems_timer_reset+0x43>
00118d6c <rtems_timer_server_fire_after>: rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) {
118d6c: 55 push %ebp 118d6d: 89 e5 mov %esp,%ebp 118d6f: 57 push %edi 118d70: 56 push %esi 118d71: 53 push %ebx 118d72: 83 ec 2c sub $0x2c,%esp 118d75: 8b 7d 0c mov 0xc(%ebp),%edi 118d78: 8b 75 10 mov 0x10(%ebp),%esi
Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server;
118d7b: 8b 1d c0 0a 14 00 mov 0x140ac0,%ebx
if ( !timer_server )
118d81: 85 db test %ebx,%ebx
118d83: 0f 84 9f 00 00 00 je 118e28 <rtems_timer_server_fire_after+0xbc> return RTEMS_INCORRECT_STATE; if ( !routine )
118d89: 85 f6 test %esi,%esi
118d8b: 0f 84 a3 00 00 00 je 118e34 <rtems_timer_server_fire_after+0xc8> return RTEMS_INVALID_ADDRESS; if ( ticks == 0 )
118d91: 85 ff test %edi,%edi
118d93: 75 0f jne 118da4 <rtems_timer_server_fire_after+0x38>
118d95: b8 0a 00 00 00 mov $0xa,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118d9a: 8d 65 f4 lea -0xc(%ebp),%esp 118d9d: 5b pop %ebx 118d9e: 5e pop %esi 118d9f: 5f pop %edi 118da0: c9 leave 118da1: c3 ret
118da2: 66 90 xchg %ax,%ax <== NOT EXECUTED
118da4: 52 push %edx 118da5: 8d 45 e4 lea -0x1c(%ebp),%eax 118da8: 50 push %eax 118da9: ff 75 08 pushl 0x8(%ebp) 118dac: 68 80 0a 14 00 push $0x140a80 118db1: e8 2e 24 00 00 call 11b1e4 <_Objects_Get> 118db6: 89 c2 mov %eax,%edx
if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) {
118db8: 83 c4 10 add $0x10,%esp 118dbb: 8b 45 e4 mov -0x1c(%ebp),%eax 118dbe: 85 c0 test %eax,%eax
118dc0: 75 56 jne 118e18 <rtems_timer_server_fire_after+0xac> case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker );
118dc2: 83 ec 0c sub $0xc,%esp 118dc5: 8d 42 10 lea 0x10(%edx),%eax 118dc8: 50 push %eax 118dc9: 89 55 d4 mov %edx,-0x2c(%ebp) 118dcc: e8 bb 40 00 00 call 11ce8c <_Watchdog_Remove>
_ISR_Disable( level );
118dd1: 9c pushf 118dd2: fa cli 118dd3: 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 ) {
118dd4: 83 c4 10 add $0x10,%esp 118dd7: 8b 55 d4 mov -0x2c(%ebp),%edx 118dda: 8b 4a 18 mov 0x18(%edx),%ecx 118ddd: 85 c9 test %ecx,%ecx
118ddf: 75 5f jne 118e40 <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;
118de1: 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;
118de8: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx)
the_watchdog->routine = routine;
118def: 89 72 2c mov %esi,0x2c(%edx)
the_watchdog->id = id;
118df2: 8b 4d 08 mov 0x8(%ebp),%ecx 118df5: 89 4a 30 mov %ecx,0x30(%edx)
the_watchdog->user_data = user_data;
118df8: 8b 4d 14 mov 0x14(%ebp),%ecx 118dfb: 89 4a 34 mov %ecx,0x34(%edx)
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks;
118dfe: 89 7a 1c mov %edi,0x1c(%edx)
_ISR_Enable( level );
118e01: 50 push %eax 118e02: 9d popf
(*timer_server->schedule_operation)( timer_server, the_timer );
118e03: 83 ec 08 sub $0x8,%esp 118e06: 52 push %edx 118e07: 53 push %ebx 118e08: ff 53 04 call *0x4(%ebx)
_Thread_Enable_dispatch();
118e0b: e8 84 2c 00 00 call 11ba94 <_Thread_Enable_dispatch> 118e10: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
118e12: 83 c4 10 add $0x10,%esp 118e15: eb 83 jmp 118d9a <rtems_timer_server_fire_after+0x2e>
118e17: 90 nop <== NOT EXECUTED
if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) {
118e18: b8 04 00 00 00 mov $0x4,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118e1d: 8d 65 f4 lea -0xc(%ebp),%esp 118e20: 5b pop %ebx 118e21: 5e pop %esi 118e22: 5f pop %edi 118e23: c9 leave 118e24: c3 ret
118e25: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server )
118e28: b8 0e 00 00 00 mov $0xe,%eax 118e2d: e9 68 ff ff ff jmp 118d9a <rtems_timer_server_fire_after+0x2e>
118e32: 66 90 xchg %ax,%ax <== NOT EXECUTED
return RTEMS_INCORRECT_STATE; if ( !routine )
118e34: b8 09 00 00 00 mov $0x9,%eax 118e39: e9 5c ff ff ff jmp 118d9a <rtems_timer_server_fire_after+0x2e>
118e3e: 66 90 xchg %ax,%ax <== NOT EXECUTED
* 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 );
118e40: 50 push %eax 118e41: 9d popf
_Thread_Enable_dispatch();
118e42: e8 4d 2c 00 00 call 11ba94 <_Thread_Enable_dispatch> 118e47: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
118e49: e9 4c ff ff ff jmp 118d9a <rtems_timer_server_fire_after+0x2e>
00118e50 <rtems_timer_server_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
118e50: 55 push %ebp 118e51: 89 e5 mov %esp,%ebp 118e53: 57 push %edi 118e54: 56 push %esi 118e55: 53 push %ebx 118e56: 83 ec 2c sub $0x2c,%esp 118e59: 8b 7d 0c mov 0xc(%ebp),%edi 118e5c: 8b 75 10 mov 0x10(%ebp),%esi
Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server;
118e5f: 8b 1d c0 0a 14 00 mov 0x140ac0,%ebx
if ( !timer_server )
118e65: 85 db test %ebx,%ebx
118e67: 0f 84 d7 00 00 00 je 118f44 <rtems_timer_server_fire_when+0xf4> return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set )
118e6d: 80 3d 8c 07 14 00 00 cmpb $0x0,0x14078c
118e74: 0f 84 aa 00 00 00 je 118f24 <rtems_timer_server_fire_when+0xd4><== ALWAYS TAKEN
return RTEMS_NOT_DEFINED; if ( !routine )
118e7a: 85 f6 test %esi,%esi
118e7c: 0f 84 b2 00 00 00 je 118f34 <rtems_timer_server_fire_when+0xe4> return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) )
118e82: 83 ec 0c sub $0xc,%esp 118e85: 57 push %edi 118e86: e8 69 d1 ff ff call 115ff4 <_TOD_Validate> 118e8b: 83 c4 10 add $0x10,%esp 118e8e: 84 c0 test %al,%al
118e90: 75 0e jne 118ea0 <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;
118e92: b8 14 00 00 00 mov $0x14,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118e97: 8d 65 f4 lea -0xc(%ebp),%esp 118e9a: 5b pop %ebx 118e9b: 5e pop %esi 118e9c: 5f pop %edi 118e9d: c9 leave 118e9e: c3 ret
118e9f: 90 nop <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time );
118ea0: 83 ec 0c sub $0xc,%esp 118ea3: 57 push %edi 118ea4: e8 bf d0 ff ff call 115f68 <_TOD_To_seconds> 118ea9: 89 c7 mov %eax,%edi
if ( seconds <= _TOD_Seconds_since_epoch() )
118eab: 83 c4 10 add $0x10,%esp 118eae: 3b 05 0c 08 14 00 cmp 0x14080c,%eax
118eb4: 76 dc jbe 118e92 <rtems_timer_server_fire_when+0x42>
118eb6: 52 push %edx 118eb7: 8d 45 e4 lea -0x1c(%ebp),%eax 118eba: 50 push %eax 118ebb: ff 75 08 pushl 0x8(%ebp) 118ebe: 68 80 0a 14 00 push $0x140a80 118ec3: e8 1c 23 00 00 call 11b1e4 <_Objects_Get> 118ec8: 89 c2 mov %eax,%edx
return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) {
118eca: 83 c4 10 add $0x10,%esp 118ecd: 8b 45 e4 mov -0x1c(%ebp),%eax 118ed0: 85 c0 test %eax,%eax
118ed2: 75 7c jne 118f50 <rtems_timer_server_fire_when+0x100> case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker );
118ed4: 83 ec 0c sub $0xc,%esp 118ed7: 8d 42 10 lea 0x10(%edx),%eax 118eda: 50 push %eax 118edb: 89 55 d4 mov %edx,-0x2c(%ebp) 118ede: e8 a9 3f 00 00 call 11ce8c <_Watchdog_Remove>
the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;
118ee3: 8b 55 d4 mov -0x2c(%ebp),%edx 118ee6: 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;
118eed: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx)
the_watchdog->routine = routine;
118ef4: 89 72 2c mov %esi,0x2c(%edx)
the_watchdog->id = id;
118ef7: 8b 45 08 mov 0x8(%ebp),%eax 118efa: 89 42 30 mov %eax,0x30(%edx)
the_watchdog->user_data = user_data;
118efd: 8b 45 14 mov 0x14(%ebp),%eax 118f00: 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();
118f03: 2b 3d 0c 08 14 00 sub 0x14080c,%edi 118f09: 89 7a 1c mov %edi,0x1c(%edx)
(*timer_server->schedule_operation)( timer_server, the_timer );
118f0c: 58 pop %eax 118f0d: 59 pop %ecx 118f0e: 52 push %edx 118f0f: 53 push %ebx 118f10: ff 53 04 call *0x4(%ebx)
_Thread_Enable_dispatch();
118f13: e8 7c 2b 00 00 call 11ba94 <_Thread_Enable_dispatch> 118f18: 31 c0 xor %eax,%eax
return RTEMS_SUCCESSFUL;
118f1a: 83 c4 10 add $0x10,%esp 118f1d: e9 75 ff ff ff jmp 118e97 <rtems_timer_server_fire_when+0x47>
118f22: 66 90 xchg %ax,%ax <== NOT EXECUTED
Timer_server_Control *timer_server = _Timer_server; if ( !timer_server ) return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set )
118f24: b8 0b 00 00 00 mov $0xb,%eax <== NOT EXECUTED
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118f29: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 118f2c: 5b pop %ebx <== NOT EXECUTED 118f2d: 5e pop %esi <== NOT EXECUTED 118f2e: 5f pop %edi <== NOT EXECUTED 118f2f: c9 leave <== NOT EXECUTED 118f30: c3 ret <== NOT EXECUTED 118f31: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !routine )
118f34: b8 09 00 00 00 mov $0x9,%eax
case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; }
118f39: 8d 65 f4 lea -0xc(%ebp),%esp 118f3c: 5b pop %ebx 118f3d: 5e pop %esi 118f3e: 5f pop %edi 118f3f: c9 leave 118f40: c3 ret
118f41: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; if ( !timer_server )
118f44: b8 0e 00 00 00 mov $0xe,%eax 118f49: e9 49 ff ff ff jmp 118e97 <rtems_timer_server_fire_when+0x47>
118f4e: 66 90 xchg %ax,%ax <== NOT EXECUTED
seconds = _TOD_To_seconds( wall_time ); if ( seconds <= _TOD_Seconds_since_epoch() ) return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) {
118f50: b8 04 00 00 00 mov $0x4,%eax 118f55: e9 3d ff ff ff jmp 118e97 <rtems_timer_server_fire_when+0x47>
0010cb50 <rtems_verror>: static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) {
10cb50: 55 push %ebp <== NOT EXECUTED 10cb51: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10cb53: 57 push %edi <== NOT EXECUTED 10cb54: 56 push %esi <== NOT EXECUTED 10cb55: 53 push %ebx <== NOT EXECUTED 10cb56: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED 10cb59: 89 c3 mov %eax,%ebx <== NOT EXECUTED 10cb5b: 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)
10cb5d: 25 00 00 00 20 and $0x20000000,%eax <== NOT EXECUTED 10cb62: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED 10cb65: 74 2b je 10cb92 <rtems_verror+0x42> <== NOT EXECUTED
{ if (rtems_panic_in_progress++)
10cb67: 8b 15 80 d3 12 00 mov 0x12d380,%edx <== NOT EXECUTED 10cb6d: 8d 42 01 lea 0x1(%edx),%eax <== NOT EXECUTED 10cb70: a3 80 d3 12 00 mov %eax,0x12d380 <== NOT EXECUTED 10cb75: 85 d2 test %edx,%edx <== NOT EXECUTED 10cb77: 74 10 je 10cb89 <rtems_verror+0x39> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1;
10cb79: a1 18 d5 12 00 mov 0x12d518,%eax <== NOT EXECUTED 10cb7e: 40 inc %eax <== NOT EXECUTED 10cb7f: a3 18 d5 12 00 mov %eax,0x12d518 <== NOT EXECUTED
RTEMS_COMPILER_MEMORY_BARRIER();
10cb84: a1 80 d3 12 00 mov 0x12d380,%eax <== NOT EXECUTED
_Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2)
10cb89: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED 10cb8c: 0f 8f e6 00 00 00 jg 10cc78 <rtems_verror+0x128> <== NOT EXECUTED
return 0; } (void) fflush(stdout); /* in case stdout/stderr same */
10cb92: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10cb95: a1 60 b1 12 00 mov 0x12b160,%eax <== NOT EXECUTED 10cb9a: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 10cb9d: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED 10cba0: e8 8b c2 00 00 call 118e30 <fflush> <== NOT EXECUTED
status = error_flag & ~RTEMS_ERROR_MASK;
10cba5: 89 d8 mov %ebx,%eax <== NOT EXECUTED 10cba7: 25 ff ff ff 8f and $0x8fffffff,%eax <== NOT EXECUTED 10cbac: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */
10cbaf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10cbb2: f7 c3 00 00 00 40 test $0x40000000,%ebx <== NOT EXECUTED 10cbb8: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED 10cbbb: 0f 85 d7 00 00 00 jne 10cc98 <rtems_verror+0x148> <== NOT EXECUTED 10cbc1: 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);
10cbc3: 52 push %edx <== NOT EXECUTED 10cbc4: 51 push %ecx <== NOT EXECUTED 10cbc5: 56 push %esi <== NOT EXECUTED 10cbc6: a1 60 b1 12 00 mov 0x12b160,%eax <== NOT EXECUTED 10cbcb: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cbce: e8 69 1d 01 00 call 11e93c <vfprintf> <== NOT EXECUTED 10cbd3: 89 c6 mov %eax,%esi <== NOT EXECUTED
if (status)
10cbd5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10cbd8: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 10cbdb: 85 c0 test %eax,%eax <== NOT EXECUTED 10cbdd: 0f 85 c9 00 00 00 jne 10ccac <rtems_verror+0x15c> <== NOT EXECUTED
chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno)
10cbe3: 83 ff 00 cmp $0x0,%edi <== NOT EXECUTED 10cbe6: 74 30 je 10cc18 <rtems_verror+0xc8> <== NOT EXECUTED
{ if ((local_errno > 0) && *strerror(local_errno))
10cbe8: 7e 15 jle 10cbff <rtems_verror+0xaf> <== NOT EXECUTED 10cbea: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10cbed: 57 push %edi <== NOT EXECUTED 10cbee: e8 01 cd 00 00 call 1198f4 <strerror> <== NOT EXECUTED 10cbf3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10cbf6: 80 38 00 cmpb $0x0,(%eax) <== NOT EXECUTED 10cbf9: 0f 85 d9 00 00 00 jne 10ccd8 <rtems_verror+0x188> <== NOT EXECUTED
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
10cbff: 51 push %ecx <== NOT EXECUTED 10cc00: 57 push %edi <== NOT EXECUTED 10cc01: 68 49 6c 12 00 push $0x126c49 <== NOT EXECUTED 10cc06: a1 60 b1 12 00 mov 0x12b160,%eax <== NOT EXECUTED 10cc0b: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cc0e: e8 65 c5 00 00 call 119178 <fprintf> <== NOT EXECUTED 10cc13: 01 c6 add %eax,%esi <== NOT EXECUTED 10cc15: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} chars_written += fprintf(stderr, "\n");
10cc18: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10cc1b: 68 2b 5f 12 00 push $0x125f2b <== NOT EXECUTED 10cc20: a1 60 b1 12 00 mov 0x12b160,%eax <== NOT EXECUTED 10cc25: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cc28: e8 4b c5 00 00 call 119178 <fprintf> <== NOT EXECUTED 10cc2d: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED
(void) fflush(stderr);
10cc30: 5a pop %edx <== NOT EXECUTED 10cc31: a1 60 b1 12 00 mov 0x12b160,%eax <== NOT EXECUTED 10cc36: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cc39: e8 f2 c1 00 00 call 118e30 <fflush> <== NOT EXECUTED
if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT))
10cc3e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10cc41: 81 e3 00 00 00 30 and $0x30000000,%ebx <== NOT EXECUTED 10cc47: 74 1f je 10cc68 <rtems_verror+0x118> <== NOT EXECUTED
{ if (error_flag & RTEMS_ERROR_PANIC)
10cc49: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10cc4c: 85 c0 test %eax,%eax <== NOT EXECUTED 10cc4e: 74 34 je 10cc84 <rtems_verror+0x134> <== NOT EXECUTED
{ rtems_error(0, "fatal error, exiting");
10cc50: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10cc53: 68 5d 6c 12 00 push $0x126c5d <== NOT EXECUTED 10cc58: 6a 00 push $0x0 <== NOT EXECUTED 10cc5a: e8 a9 00 00 00 call 10cd08 <rtems_error> <== NOT EXECUTED
_exit(local_errno);
10cc5f: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED 10cc62: e8 d1 0a 00 00 call 10d738 <_exit> <== NOT EXECUTED 10cc67: 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");
10cc68: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 10cc6b: 01 f0 add %esi,%eax <== NOT EXECUTED
rtems_error(0, "fatal error, aborting"); abort(); } } return chars_written; }
10cc6d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10cc70: 5b pop %ebx <== NOT EXECUTED 10cc71: 5e pop %esi <== NOT EXECUTED 10cc72: 5f pop %edi <== NOT EXECUTED 10cc73: c9 leave <== NOT EXECUTED 10cc74: c3 ret <== NOT EXECUTED 10cc75: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
_exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); abort();
10cc78: 31 c0 xor %eax,%eax <== NOT EXECUTED
} } return chars_written; }
10cc7a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10cc7d: 5b pop %ebx <== NOT EXECUTED 10cc7e: 5e pop %esi <== NOT EXECUTED 10cc7f: 5f pop %edi <== NOT EXECUTED 10cc80: c9 leave <== NOT EXECUTED 10cc81: c3 ret <== NOT EXECUTED 10cc82: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_error(0, "fatal error, exiting"); _exit(local_errno); } else { rtems_error(0, "fatal error, aborting");
10cc84: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10cc87: 68 72 6c 12 00 push $0x126c72 <== NOT EXECUTED 10cc8c: 6a 00 push $0x0 <== NOT EXECUTED 10cc8e: e8 75 00 00 00 call 10cd08 <rtems_error> <== NOT EXECUTED
abort();
10cc93: e8 e8 bd 00 00 call 118a80 <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;
10cc98: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED 10cc9b: e8 14 be 00 00 call 118ab4 <__errno> <== NOT EXECUTED 10cca0: 8b 38 mov (%eax),%edi <== NOT EXECUTED 10cca2: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED 10cca5: e9 19 ff ff ff jmp 10cbc3 <rtems_verror+0x73> <== NOT EXECUTED 10ccaa: 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));
10ccac: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10ccaf: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 10ccb2: e8 81 fe ff ff call 10cb38 <rtems_status_text> <== NOT EXECUTED 10ccb7: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 10ccba: 50 push %eax <== NOT EXECUTED 10ccbb: 68 2e 6c 12 00 push $0x126c2e <== NOT EXECUTED 10ccc0: a1 60 b1 12 00 mov 0x12b160,%eax <== NOT EXECUTED 10ccc5: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10ccc8: e8 ab c4 00 00 call 119178 <fprintf> <== NOT EXECUTED 10cccd: 01 c6 add %eax,%esi <== NOT EXECUTED 10cccf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10ccd2: e9 0c ff ff ff jmp 10cbe3 <rtems_verror+0x93> <== NOT EXECUTED 10ccd7: 90 nop <== NOT EXECUTED
if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
10ccd8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10ccdb: 57 push %edi <== NOT EXECUTED 10ccdc: e8 13 cc 00 00 call 1198f4 <strerror> <== NOT EXECUTED 10cce1: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 10cce4: 50 push %eax <== NOT EXECUTED 10cce5: 68 3c 6c 12 00 push $0x126c3c <== NOT EXECUTED 10ccea: e9 17 ff ff ff jmp 10cc06 <rtems_verror+0xb6> <== NOT EXECUTED
0012b264 <scanInt>: /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) {
12b264: 55 push %ebp 12b265: 89 e5 mov %esp,%ebp 12b267: 57 push %edi 12b268: 56 push %esi 12b269: 53 push %ebx 12b26a: 83 ec 1c sub $0x1c,%esp 12b26d: 89 c6 mov %eax,%esi 12b26f: 89 55 e0 mov %edx,-0x20(%ebp) 12b272: 31 ff xor %edi,%edi 12b274: c7 45 e4 ff ff ff 7f movl $0x7fffffff,-0x1c(%ebp) 12b27b: 31 db xor %ebx,%ebx
unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp);
12b27d: 8b 46 04 mov 0x4(%esi),%eax 12b280: 48 dec %eax 12b281: 89 46 04 mov %eax,0x4(%esi) 12b284: 85 c0 test %eax,%eax
12b286: 78 52 js 12b2da <scanInt+0x76> <== ALWAYS TAKEN
12b288: 8b 06 mov (%esi),%eax 12b28a: 0f b6 08 movzbl (%eax),%ecx 12b28d: 40 inc %eax 12b28e: 89 06 mov %eax,(%esi)
if (c == ':')
12b290: 83 f9 3a cmp $0x3a,%ecx
12b293: 74 5f je 12b2f4 <scanInt+0x90> break; if (sign == 0) {
12b295: 85 ff test %edi,%edi
12b297: 75 0e jne 12b2a7 <scanInt+0x43> <== ALWAYS TAKEN
if (c == '-') {
12b299: 83 f9 2d cmp $0x2d,%ecx
12b29c: 0f 84 8a 00 00 00 je 12b32c <scanInt+0xc8> <== ALWAYS TAKEN
sign = -1; limit++; continue;
12b2a2: bf 01 00 00 00 mov $0x1,%edi
} sign = 1; } if (!isdigit(c))
12b2a7: a1 c8 8c 16 00 mov 0x168cc8,%eax 12b2ac: f6 44 08 01 04 testb $0x4,0x1(%eax,%ecx,1)
12b2b1: 74 6d je 12b320 <scanInt+0xbc> <== ALWAYS TAKEN
return 0; d = c - '0'; if ((i > (limit / 10))
12b2b3: b8 cd cc cc cc mov $0xcccccccd,%eax 12b2b8: f7 65 e4 mull -0x1c(%ebp) 12b2bb: c1 ea 03 shr $0x3,%edx 12b2be: 39 d3 cmp %edx,%ebx
12b2c0: 77 5e ja 12b320 <scanInt+0xbc> <== ALWAYS TAKEN
} sign = 1; } if (!isdigit(c)) return 0; d = c - '0';
12b2c2: 83 e9 30 sub $0x30,%ecx
if ((i > (limit / 10))
12b2c5: 39 d3 cmp %edx,%ebx
12b2c7: 74 47 je 12b310 <scanInt+0xac> <== ALWAYS TAKEN
|| ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d;
12b2c9: 8d 04 9b lea (%ebx,%ebx,4),%eax 12b2cc: 8d 1c 41 lea (%ecx,%eax,2),%ebx
unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp);
12b2cf: 8b 46 04 mov 0x4(%esi),%eax 12b2d2: 48 dec %eax 12b2d3: 89 46 04 mov %eax,0x4(%esi) 12b2d6: 85 c0 test %eax,%eax
12b2d8: 79 ae jns 12b288 <scanInt+0x24> <== NEVER TAKEN
12b2da: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12b2dd: 56 push %esi <== NOT EXECUTED 12b2de: ff 35 e0 8c 16 00 pushl 0x168ce0 <== NOT EXECUTED 12b2e4: e8 6f af 01 00 call 146258 <__srget_r> <== NOT EXECUTED 12b2e9: 89 c1 mov %eax,%ecx <== NOT EXECUTED 12b2eb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if (c == ':')
12b2ee: 83 f9 3a cmp $0x3a,%ecx <== NOT EXECUTED 12b2f1: 75 a2 jne 12b295 <scanInt+0x31> <== NOT EXECUTED 12b2f3: 90 nop <== NOT EXECUTED
if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0)
12b2f4: 85 ff test %edi,%edi
12b2f6: 74 28 je 12b320 <scanInt+0xbc> <== ALWAYS TAKEN
return 0; *val = i * sign;
12b2f8: 0f af df imul %edi,%ebx 12b2fb: 8b 45 e0 mov -0x20(%ebp),%eax 12b2fe: 89 18 mov %ebx,(%eax) 12b300: b8 01 00 00 00 mov $0x1,%eax
return 1; }
12b305: 8d 65 f4 lea -0xc(%ebp),%esp 12b308: 5b pop %ebx 12b309: 5e pop %esi 12b30a: 5f pop %edi 12b30b: c9 leave 12b30c: c3 ret
12b30d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10))
12b310: 8d 04 9b lea (%ebx,%ebx,4),%eax <== NOT EXECUTED 12b313: d1 e0 shl %eax <== NOT EXECUTED 12b315: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 12b318: 29 c2 sub %eax,%edx <== NOT EXECUTED 12b31a: 39 d1 cmp %edx,%ecx <== NOT EXECUTED 12b31c: 76 ab jbe 12b2c9 <scanInt+0x65> <== NOT EXECUTED 12b31e: 66 90 xchg %ax,%ax <== NOT EXECUTED
i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; return 1;
12b320: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
12b322: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12b325: 5b pop %ebx <== NOT EXECUTED 12b326: 5e pop %esi <== NOT EXECUTED 12b327: 5f pop %edi <== NOT EXECUTED 12b328: c9 leave <== NOT EXECUTED 12b329: c3 ret <== NOT EXECUTED 12b32a: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (c == ':') break; if (sign == 0) { if (c == '-') { sign = -1; limit++;
12b32c: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED 12b32f: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED
continue;
12b334: e9 44 ff ff ff jmp 12b27d <scanInt+0x19> <== NOT EXECUTED
0012b33c <scanString>: /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) {
12b33c: 55 push %ebp 12b33d: 89 e5 mov %esp,%ebp 12b33f: 57 push %edi 12b340: 56 push %esi 12b341: 53 push %ebx 12b342: 83 ec 0c sub $0xc,%esp 12b345: 89 c3 mov %eax,%ebx 12b347: 89 ce mov %ecx,%esi 12b349: 8b 7d 08 mov 0x8(%ebp),%edi
int c; *name = *bufp;
12b34c: 8b 01 mov (%ecx),%eax 12b34e: 89 02 mov %eax,(%edx) 12b350: eb 26 jmp 12b378 <scanString+0x3c>
12b352: 66 90 xchg %ax,%ax <== NOT EXECUTED
for (;;) { c = getc(fp);
12b354: 8b 13 mov (%ebx),%edx 12b356: 0f b6 02 movzbl (%edx),%eax 12b359: 42 inc %edx 12b35a: 89 13 mov %edx,(%ebx)
if (c == ':') {
12b35c: 83 f8 3a cmp $0x3a,%eax
12b35f: 74 3b je 12b39c <scanString+0x60> if (nlFlag) return 0; break; } if (c == '\n') {
12b361: 83 f8 0a cmp $0xa,%eax
12b364: 74 56 je 12b3bc <scanString+0x80> if (!nlFlag) return 0; break; } if (c == EOF)
12b366: 83 f8 ff cmp $0xffffffff,%eax
12b369: 74 59 je 12b3c4 <scanString+0x88> <== ALWAYS TAKEN
return 0; if (*nleft < 2)
12b36b: 83 3f 01 cmpl $0x1,(%edi)
12b36e: 76 54 jbe 12b3c4 <scanString+0x88> <== ALWAYS TAKEN
return 0; **bufp = c;
12b370: 8b 16 mov (%esi),%edx 12b372: 88 02 mov %al,(%edx)
++(*bufp);
12b374: ff 06 incl (%esi)
--(*nleft);
12b376: ff 0f decl (%edi)
{ int c; *name = *bufp; for (;;) { c = getc(fp);
12b378: 8b 43 04 mov 0x4(%ebx),%eax 12b37b: 48 dec %eax 12b37c: 89 43 04 mov %eax,0x4(%ebx) 12b37f: 85 c0 test %eax,%eax
12b381: 79 d1 jns 12b354 <scanString+0x18>
12b383: 83 ec 08 sub $0x8,%esp 12b386: 53 push %ebx 12b387: ff 35 e0 8c 16 00 pushl 0x168ce0 12b38d: e8 c6 ae 01 00 call 146258 <__srget_r> 12b392: 83 c4 10 add $0x10,%esp
if (c == ':') {
12b395: 83 f8 3a cmp $0x3a,%eax
12b398: 75 c7 jne 12b361 <scanString+0x25> <== NEVER TAKEN
12b39a: 66 90 xchg %ax,%ax <== NOT EXECUTED
if (nlFlag)
12b39c: 8b 55 0c mov 0xc(%ebp),%edx 12b39f: 85 d2 test %edx,%edx
12b3a1: 75 21 jne 12b3c4 <scanString+0x88> <== ALWAYS TAKEN
return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0';
12b3a3: 8b 06 mov (%esi),%eax 12b3a5: c6 00 00 movb $0x0,(%eax)
++(*bufp);
12b3a8: ff 06 incl (%esi)
--(*nleft);
12b3aa: ff 0f decl (%edi) 12b3ac: b8 01 00 00 00 mov $0x1,%eax
return 1; }
12b3b1: 8d 65 f4 lea -0xc(%ebp),%esp 12b3b4: 5b pop %ebx 12b3b5: 5e pop %esi 12b3b6: 5f pop %edi 12b3b7: c9 leave 12b3b8: c3 ret
12b3b9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag)
12b3bc: 8b 45 0c mov 0xc(%ebp),%eax 12b3bf: 85 c0 test %eax,%eax
12b3c1: 75 e0 jne 12b3a3 <scanString+0x67> <== NEVER TAKEN
12b3c3: 90 nop <== NOT EXECUTED
--(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1;
12b3c4: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
12b3c6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12b3c9: 5b pop %ebx <== NOT EXECUTED 12b3ca: 5e pop %esi <== NOT EXECUTED 12b3cb: 5f pop %edi <== NOT EXECUTED 12b3cc: c9 leave <== NOT EXECUTED 12b3cd: c3 ret <== NOT EXECUTED
0012b3d0 <scangr>: FILE *fp, struct group *grp, char *buffer, size_t bufsize ) {
12b3d0: 55 push %ebp 12b3d1: 89 e5 mov %esp,%ebp 12b3d3: 57 push %edi 12b3d4: 56 push %esi 12b3d5: 53 push %ebx 12b3d6: 83 ec 34 sub $0x34,%esp 12b3d9: 89 c6 mov %eax,%esi 12b3db: 89 d3 mov %edx,%ebx 12b3dd: 89 4d d4 mov %ecx,-0x2c(%ebp)
int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
12b3e0: 8d 7d d4 lea -0x2c(%ebp),%edi 12b3e3: 6a 00 push $0x0 12b3e5: 8d 45 08 lea 0x8(%ebp),%eax 12b3e8: 50 push %eax 12b3e9: 89 f9 mov %edi,%ecx 12b3eb: 89 f0 mov %esi,%eax 12b3ed: e8 4a ff ff ff call 12b33c <scanString> 12b3f2: 83 c4 10 add $0x10,%esp 12b3f5: 85 c0 test %eax,%eax
12b3f7: 75 0b jne 12b404 <scangr+0x34> <== NEVER TAKEN
*cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1;
12b3f9: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
12b3fb: 8d 65 f4 lea -0xc(%ebp),%esp 12b3fe: 5b pop %ebx 12b3ff: 5e pop %esi 12b400: 5f pop %edi 12b401: c9 leave 12b402: c3 ret
12b403: 90 nop <== NOT EXECUTED
int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
12b404: 83 ec 08 sub $0x8,%esp 12b407: 8d 53 04 lea 0x4(%ebx),%edx 12b40a: 6a 00 push $0x0 12b40c: 8d 45 08 lea 0x8(%ebp),%eax 12b40f: 50 push %eax 12b410: 89 f9 mov %edi,%ecx 12b412: 89 f0 mov %esi,%eax 12b414: e8 23 ff ff ff call 12b33c <scanString>
{ int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
12b419: 83 c4 10 add $0x10,%esp 12b41c: 85 c0 test %eax,%eax
12b41e: 74 d9 je 12b3f9 <scangr+0x29> <== ALWAYS TAKEN
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid)
12b420: 8d 55 e4 lea -0x1c(%ebp),%edx 12b423: 89 f0 mov %esi,%eax 12b425: e8 3a fe ff ff call 12b264 <scanInt>
{ int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
12b42a: 85 c0 test %eax,%eax
12b42c: 74 cb je 12b3f9 <scangr+0x29> <== ALWAYS TAKEN
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1))
12b42e: 83 ec 08 sub $0x8,%esp 12b431: 8d 55 e0 lea -0x20(%ebp),%edx 12b434: 6a 01 push $0x1 12b436: 8d 45 08 lea 0x8(%ebp),%eax 12b439: 50 push %eax 12b43a: 89 f9 mov %edi,%ecx 12b43c: 89 f0 mov %esi,%eax 12b43e: e8 f9 fe ff ff call 12b33c <scanString>
{ int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
12b443: 83 c4 10 add $0x10,%esp 12b446: 85 c0 test %eax,%eax
12b448: 74 af je 12b3f9 <scangr+0x29> <== ALWAYS TAKEN
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid;
12b44a: 8b 45 e4 mov -0x1c(%ebp),%eax 12b44d: 66 89 43 08 mov %ax,0x8(%ebx)
/* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
12b451: 8b 75 e0 mov -0x20(%ebp),%esi 12b454: 8a 06 mov (%esi),%al 12b456: 84 c0 test %al,%al
12b458: 74 7d je 12b4d7 <scangr+0x107> <== ALWAYS TAKEN
12b45a: 89 f2 mov %esi,%edx 12b45c: b9 01 00 00 00 mov $0x1,%ecx 12b461: eb 08 jmp 12b46b <scangr+0x9b>
12b463: 90 nop <== NOT EXECUTED
12b464: 42 inc %edx 12b465: 8a 02 mov (%edx),%al 12b467: 84 c0 test %al,%al
12b469: 74 09 je 12b474 <scangr+0xa4> if(*cp == ',')
12b46b: 3c 2c cmp $0x2c,%al
12b46d: 75 f5 jne 12b464 <scangr+0x94> <== NEVER TAKEN
memcount++;
12b46f: 41 inc %ecx <== NOT EXECUTED 12b470: eb f2 jmp 12b464 <scangr+0x94> <== NOT EXECUTED 12b472: 66 90 xchg %ax,%ax <== NOT EXECUTED
grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
12b474: 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))
12b47b: 39 45 08 cmp %eax,0x8(%ebp)
12b47e: 0f 82 75 ff ff ff jb 12b3f9 <scangr+0x29> <== ALWAYS TAKEN
return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);
12b484: 8b 45 d4 mov -0x2c(%ebp),%eax 12b487: 83 c0 0f add $0xf,%eax 12b48a: 83 e0 f0 and $0xfffffff0,%eax 12b48d: 89 43 0c mov %eax,0xc(%ebx)
/* * Fill in pointer array */ grp->gr_mem[0] = grmem;
12b490: 89 30 mov %esi,(%eax)
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
12b492: 8b 45 e0 mov -0x20(%ebp),%eax 12b495: 8a 10 mov (%eax),%dl 12b497: 84 d2 test %dl,%dl
12b499: 74 43 je 12b4de <scangr+0x10e> <== ALWAYS TAKEN
12b49b: 40 inc %eax 12b49c: b9 01 00 00 00 mov $0x1,%ecx 12b4a1: eb 08 jmp 12b4ab <scangr+0xdb>
12b4a3: 90 nop <== NOT EXECUTED
12b4a4: 8a 10 mov (%eax),%dl 12b4a6: 40 inc %eax 12b4a7: 84 d2 test %dl,%dl
12b4a9: 74 15 je 12b4c0 <scangr+0xf0> if(*cp == ',') {
12b4ab: 80 fa 2c cmp $0x2c,%dl
12b4ae: 75 f4 jne 12b4a4 <scangr+0xd4> <== NEVER TAKEN
*cp = '\0';
12b4b0: c6 40 ff 00 movb $0x0,-0x1(%eax) <== NOT EXECUTED
grp->gr_mem[memcount++] = cp + 1;
12b4b4: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED 12b4b7: 89 04 8a mov %eax,(%edx,%ecx,4) <== NOT EXECUTED 12b4ba: 41 inc %ecx <== NOT EXECUTED 12b4bb: eb e7 jmp 12b4a4 <scangr+0xd4> <== NOT EXECUTED 12b4bd: 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++) {
12b4c0: c1 e1 02 shl $0x2,%ecx
if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL;
12b4c3: 8b 43 0c mov 0xc(%ebx),%eax 12b4c6: c7 04 08 00 00 00 00 movl $0x0,(%eax,%ecx,1) 12b4cd: b8 01 00 00 00 mov $0x1,%eax
return 1;
12b4d2: e9 24 ff ff ff jmp 12b3fb <scangr+0x2b>
grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
12b4d7: b8 17 00 00 00 mov $0x17,%eax <== NOT EXECUTED 12b4dc: eb 9d jmp 12b47b <scangr+0xab> <== NOT EXECUTED
/* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
12b4de: b9 04 00 00 00 mov $0x4,%ecx <== NOT EXECUTED 12b4e3: eb de jmp 12b4c3 <scangr+0xf3> <== NOT EXECUTED
0012b524 <scanpw>: FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) {
12b524: 55 push %ebp 12b525: 89 e5 mov %esp,%ebp 12b527: 57 push %edi 12b528: 56 push %esi 12b529: 53 push %ebx 12b52a: 83 ec 34 sub $0x34,%esp 12b52d: 89 c6 mov %eax,%esi 12b52f: 89 d3 mov %edx,%ebx 12b531: 89 4d d4 mov %ecx,-0x2c(%ebp)
int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12b534: 8d 7d d4 lea -0x2c(%ebp),%edi 12b537: 6a 00 push $0x0 12b539: 8d 45 08 lea 0x8(%ebp),%eax 12b53c: 50 push %eax 12b53d: 89 f9 mov %edi,%ecx 12b53f: 89 f0 mov %esi,%eax 12b541: e8 f6 fd ff ff call 12b33c <scanString> 12b546: 83 c4 10 add $0x10,%esp 12b549: 85 c0 test %eax,%eax
12b54b: 75 0b jne 12b558 <scanpw+0x34> <== NEVER 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;
12b54d: 31 c0 xor %eax,%eax <== NOT EXECUTED
}
12b54f: 8d 65 f4 lea -0xc(%ebp),%esp 12b552: 5b pop %ebx 12b553: 5e pop %esi 12b554: 5f pop %edi 12b555: c9 leave 12b556: c3 ret
12b557: 90 nop <== NOT EXECUTED
) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
12b558: 83 ec 08 sub $0x8,%esp 12b55b: 8d 53 04 lea 0x4(%ebx),%edx 12b55e: 6a 00 push $0x0 12b560: 8d 45 08 lea 0x8(%ebp),%eax 12b563: 50 push %eax 12b564: 89 f9 mov %edi,%ecx 12b566: 89 f0 mov %esi,%eax 12b568: e8 cf fd ff ff call 12b33c <scanString>
size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12b56d: 83 c4 10 add $0x10,%esp 12b570: 85 c0 test %eax,%eax
12b572: 74 d9 je 12b54d <scanpw+0x29> <== ALWAYS TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid)
12b574: 8d 55 e4 lea -0x1c(%ebp),%edx 12b577: 89 f0 mov %esi,%eax 12b579: e8 e6 fc ff ff call 12b264 <scanInt>
size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12b57e: 85 c0 test %eax,%eax
12b580: 74 cb je 12b54d <scanpw+0x29> <== ALWAYS TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid)
12b582: 8d 55 e0 lea -0x20(%ebp),%edx 12b585: 89 f0 mov %esi,%eax 12b587: e8 d8 fc ff ff call 12b264 <scanInt>
size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12b58c: 85 c0 test %eax,%eax
12b58e: 74 bd je 12b54d <scanpw+0x29> <== ALWAYS TAKEN
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)
12b590: 83 ec 08 sub $0x8,%esp 12b593: 8d 53 0c lea 0xc(%ebx),%edx 12b596: 6a 00 push $0x0 12b598: 8d 45 08 lea 0x8(%ebp),%eax 12b59b: 50 push %eax 12b59c: 89 f9 mov %edi,%ecx 12b59e: 89 f0 mov %esi,%eax 12b5a0: e8 97 fd ff ff call 12b33c <scanString>
size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12b5a5: 83 c4 10 add $0x10,%esp 12b5a8: 85 c0 test %eax,%eax
12b5aa: 74 a1 je 12b54d <scanpw+0x29> <== ALWAYS 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)
12b5ac: 83 ec 08 sub $0x8,%esp 12b5af: 8d 53 10 lea 0x10(%ebx),%edx 12b5b2: 6a 00 push $0x0 12b5b4: 8d 45 08 lea 0x8(%ebp),%eax 12b5b7: 50 push %eax 12b5b8: 89 f9 mov %edi,%ecx 12b5ba: 89 f0 mov %esi,%eax 12b5bc: e8 7b fd ff ff call 12b33c <scanString>
size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12b5c1: 83 c4 10 add $0x10,%esp 12b5c4: 85 c0 test %eax,%eax
12b5c6: 74 85 je 12b54d <scanpw+0x29> <== ALWAYS 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)
12b5c8: 83 ec 08 sub $0x8,%esp 12b5cb: 8d 53 14 lea 0x14(%ebx),%edx 12b5ce: 6a 00 push $0x0 12b5d0: 8d 45 08 lea 0x8(%ebp),%eax 12b5d3: 50 push %eax 12b5d4: 89 f9 mov %edi,%ecx 12b5d6: 89 f0 mov %esi,%eax 12b5d8: e8 5f fd ff ff call 12b33c <scanString>
size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12b5dd: 83 c4 10 add $0x10,%esp 12b5e0: 85 c0 test %eax,%eax
12b5e2: 0f 84 65 ff ff ff je 12b54d <scanpw+0x29> <== ALWAYS 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))
12b5e8: 83 ec 08 sub $0x8,%esp 12b5eb: 8d 53 18 lea 0x18(%ebx),%edx 12b5ee: 6a 01 push $0x1 12b5f0: 8d 45 08 lea 0x8(%ebp),%eax 12b5f3: 50 push %eax 12b5f4: 89 f9 mov %edi,%ecx 12b5f6: 89 f0 mov %esi,%eax 12b5f8: e8 3f fd ff ff call 12b33c <scanString>
size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
12b5fd: 83 c4 10 add $0x10,%esp 12b600: 85 c0 test %eax,%eax
12b602: 0f 84 45 ff ff ff je 12b54d <scanpw+0x29> <== ALWAYS 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;
12b608: 8b 45 e4 mov -0x1c(%ebp),%eax 12b60b: 66 89 43 08 mov %ax,0x8(%ebx)
pwd->pw_gid = pwgid;
12b60f: 8b 45 e0 mov -0x20(%ebp),%eax 12b612: 66 89 43 0a mov %ax,0xa(%ebx) 12b616: b8 01 00 00 00 mov $0x1,%eax
return 1;
12b61b: e9 2f ff ff ff jmp 12b54f <scanpw+0x2b>
0012b210 <setgid>: */ int setgid( gid_t gid ) {
12b210: 55 push %ebp <== NOT EXECUTED 12b211: 89 e5 mov %esp,%ebp <== NOT EXECUTED
_POSIX_types_Gid = gid;
12b213: a1 a4 84 16 00 mov 0x1684a4,%eax <== NOT EXECUTED 12b218: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 12b21b: 66 89 50 34 mov %dx,0x34(%eax) <== NOT EXECUTED
return 0; }
12b21f: 31 c0 xor %eax,%eax <== NOT EXECUTED 12b221: c9 leave <== NOT EXECUTED 12b222: c3 ret <== NOT EXECUTED
0012b75c <setgrent>: return NULL; return &grent; } void setgrent(void) {
12b75c: 55 push %ebp <== NOT EXECUTED 12b75d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b75f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
init_etc_passwd_group();
12b762: e8 f5 fe ff ff call 12b65c <init_etc_passwd_group> <== NOT EXECUTED
if (group_fp != NULL)
12b767: a1 c4 da 16 00 mov 0x16dac4,%eax <== NOT EXECUTED 12b76c: 85 c0 test %eax,%eax <== NOT EXECUTED 12b76e: 74 0c je 12b77c <setgrent+0x20> <== NOT EXECUTED
fclose(group_fp);
12b770: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b773: 50 push %eax <== NOT EXECUTED 12b774: e8 cf 5f 01 00 call 141748 <fclose> <== NOT EXECUTED 12b779: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
group_fp = fopen("/etc/group", "r");
12b77c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12b77f: 68 ed ad 15 00 push $0x15aded <== NOT EXECUTED 12b784: 68 57 7c 15 00 push $0x157c57 <== NOT EXECUTED 12b789: e8 d2 67 01 00 call 141f60 <fopen> <== NOT EXECUTED 12b78e: a3 c4 da 16 00 mov %eax,0x16dac4 <== NOT EXECUTED 12b793: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12b796: c9 leave <== NOT EXECUTED 12b797: c3 ret <== NOT EXECUTED
0012b928 <setpwent>: return NULL; return &pwent; } void setpwent(void) {
12b928: 55 push %ebp <== NOT EXECUTED 12b929: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b92b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED
init_etc_passwd_group();
12b92e: e8 29 fd ff ff call 12b65c <init_etc_passwd_group> <== NOT EXECUTED
if (passwd_fp != NULL)
12b933: a1 c4 d9 16 00 mov 0x16d9c4,%eax <== NOT EXECUTED 12b938: 85 c0 test %eax,%eax <== NOT EXECUTED 12b93a: 74 0c je 12b948 <setpwent+0x20> <== NOT EXECUTED
fclose(passwd_fp);
12b93c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b93f: 50 push %eax <== NOT EXECUTED 12b940: e8 03 5e 01 00 call 141748 <fclose> <== NOT EXECUTED 12b945: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
passwd_fp = fopen("/etc/passwd", "r");
12b948: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12b94b: 68 ed ad 15 00 push $0x15aded <== NOT EXECUTED 12b950: 68 4b 7c 15 00 push $0x157c4b <== NOT EXECUTED 12b955: e8 06 66 01 00 call 141f60 <fopen> <== NOT EXECUTED 12b95a: a3 c4 d9 16 00 mov %eax,0x16d9c4 <== NOT EXECUTED 12b95f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
}
12b962: c9 leave <== NOT EXECUTED 12b963: c3 ret <== NOT EXECUTED
0010bf10 <setuid>: */ int setuid( uid_t uid ) {
10bf10: 55 push %ebp <== NOT EXECUTED 10bf11: 89 e5 mov %esp,%ebp <== NOT EXECUTED
_POSIX_types_Uid = uid;
10bf13: a1 a4 84 16 00 mov 0x1684a4,%eax <== NOT EXECUTED 10bf18: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 10bf1b: 66 89 50 32 mov %dx,0x32(%eax) <== NOT EXECUTED
return 0; }
10bf1f: 31 c0 xor %eax,%eax <== NOT EXECUTED 10bf21: c9 leave <== NOT EXECUTED 10bf22: c3 ret <== NOT EXECUTED
00109b0c <siproc>: /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) {
109b0c: 55 push %ebp <== NOT EXECUTED 109b0d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 109b0f: 56 push %esi <== NOT EXECUTED 109b10: 53 push %ebx <== NOT EXECUTED 109b11: 89 d3 mov %edx,%ebx <== NOT EXECUTED 109b13: 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)) {
109b15: f7 42 3c 78 0e 00 00 testl $0xe78,0x3c(%edx) <== NOT EXECUTED 109b1c: 75 12 jne 109b30 <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);
109b1e: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 109b21: 89 da mov %ebx,%edx <== NOT EXECUTED
} return i; }
109b23: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 109b26: 5b pop %ebx <== NOT EXECUTED 109b27: 5e pop %esi <== NOT EXECUTED 109b28: 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);
109b29: e9 a2 fe ff ff jmp 1099d0 <iproc> <== NOT EXECUTED 109b2e: 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);
109b30: 52 push %edx <== NOT EXECUTED 109b31: 6a 00 push $0x0 <== NOT EXECUTED 109b33: 6a 00 push $0x0 <== NOT EXECUTED 109b35: ff 73 18 pushl 0x18(%ebx) <== NOT EXECUTED 109b38: e8 c3 1a 00 00 call 10b600 <rtems_semaphore_obtain><== NOT EXECUTED
i = iproc (c, tty);
109b3d: 89 f2 mov %esi,%edx <== NOT EXECUTED 109b3f: 0f b6 c2 movzbl %dl,%eax <== NOT EXECUTED 109b42: 89 da mov %ebx,%edx <== NOT EXECUTED 109b44: e8 87 fe ff ff call 1099d0 <iproc> <== NOT EXECUTED 109b49: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
109b4b: 58 pop %eax <== NOT EXECUTED 109b4c: ff 73 18 pushl 0x18(%ebx) <== NOT EXECUTED 109b4f: e8 a8 1b 00 00 call 10b6fc <rtems_semaphore_release><== NOT EXECUTED 109b54: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
} else { i = iproc (c, tty); } return i; }
109b57: 89 f0 mov %esi,%eax <== NOT EXECUTED 109b59: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 109b5c: 5b pop %ebx <== NOT EXECUTED 109b5d: 5e pop %esi <== NOT EXECUTED 109b5e: c9 leave <== NOT EXECUTED 109b5f: c3 ret <== NOT EXECUTED
0010d098 <stat>: int _STAT_NAME( const char *path, struct stat *buf ) {
10d098: 55 push %ebp 10d099: 89 e5 mov %esp,%ebp 10d09b: 57 push %edi 10d09c: 56 push %esi 10d09d: 53 push %ebx 10d09e: 83 ec 2c sub $0x2c,%esp 10d0a1: 8b 55 08 mov 0x8(%ebp),%edx 10d0a4: 8b 75 0c mov 0xc(%ebp),%esi
/* * Check to see if we were passed a valid pointer. */ if ( !buf )
10d0a7: 85 f6 test %esi,%esi
10d0a9: 0f 84 9d 00 00 00 je 10d14c <stat+0xb4> rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ),
10d0af: b9 ff ff ff ff mov $0xffffffff,%ecx 10d0b4: 89 d7 mov %edx,%edi 10d0b6: 31 c0 xor %eax,%eax 10d0b8: f2 ae repnz scas %es:(%edi),%al 10d0ba: f7 d1 not %ecx 10d0bc: 49 dec %ecx 10d0bd: 83 ec 0c sub $0xc,%esp 10d0c0: 6a 01 push $0x1 10d0c2: 8d 5d d4 lea -0x2c(%ebp),%ebx 10d0c5: 53 push %ebx 10d0c6: 6a 00 push $0x0 10d0c8: 51 push %ecx 10d0c9: 52 push %edx 10d0ca: e8 79 ec ff ff call 10bd48 <rtems_filesystem_evaluate_path>
0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 )
10d0cf: 83 c4 20 add $0x20,%esp 10d0d2: 85 c0 test %eax,%eax
10d0d4: 75 66 jne 10d13c <stat+0xa4> return -1; if ( !loc.handlers->fstat_h ){
10d0d6: 8b 55 dc mov -0x24(%ebp),%edx 10d0d9: 8b 42 18 mov 0x18(%edx),%eax 10d0dc: 85 c0 test %eax,%eax
10d0de: 74 39 je 10d119 <stat+0x81> <== ALWAYS TAKEN
/* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) );
10d0e0: b9 48 00 00 00 mov $0x48,%ecx 10d0e5: 89 f7 mov %esi,%edi 10d0e7: 31 c0 xor %eax,%eax 10d0e9: f3 aa rep stos %al,%es:(%edi)
status = (*loc.handlers->fstat_h)( &loc, buf );
10d0eb: 83 ec 08 sub $0x8,%esp 10d0ee: 56 push %esi 10d0ef: 53 push %ebx 10d0f0: ff 52 18 call *0x18(%edx) 10d0f3: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &loc );
10d0f5: 8b 45 e0 mov -0x20(%ebp),%eax 10d0f8: 83 c4 10 add $0x10,%esp 10d0fb: 85 c0 test %eax,%eax
10d0fd: 74 10 je 10d10f <stat+0x77> <== ALWAYS TAKEN
10d0ff: 8b 40 1c mov 0x1c(%eax),%eax 10d102: 85 c0 test %eax,%eax
10d104: 74 09 je 10d10f <stat+0x77> <== ALWAYS TAKEN
10d106: 83 ec 0c sub $0xc,%esp 10d109: 53 push %ebx 10d10a: ff d0 call *%eax 10d10c: 83 c4 10 add $0x10,%esp
return status; }
10d10f: 89 f0 mov %esi,%eax 10d111: 8d 65 f4 lea -0xc(%ebp),%esp 10d114: 5b pop %ebx 10d115: 5e pop %esi 10d116: 5f pop %edi 10d117: c9 leave 10d118: c3 ret
0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc );
10d119: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10d11c: 85 c0 test %eax,%eax <== NOT EXECUTED 10d11e: 74 10 je 10d130 <stat+0x98> <== NOT EXECUTED 10d120: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10d123: 85 c0 test %eax,%eax <== NOT EXECUTED 10d125: 74 09 je 10d130 <stat+0x98> <== NOT EXECUTED 10d127: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10d12a: 53 push %ebx <== NOT EXECUTED 10d12b: ff d0 call *%eax <== NOT EXECUTED 10d12d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
10d130: e8 c7 44 03 00 call 1415fc <__errno> <== NOT EXECUTED 10d135: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10d13b: 90 nop <== NOT EXECUTED
10d13c: be ff ff ff ff mov $0xffffffff,%esi
status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; }
10d141: 89 f0 mov %esi,%eax 10d143: 8d 65 f4 lea -0xc(%ebp),%esp 10d146: 5b pop %ebx 10d147: 5e pop %esi 10d148: 5f pop %edi 10d149: c9 leave 10d14a: c3 ret
10d14b: 90 nop <== NOT EXECUTED
/* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT );
10d14c: e8 ab 44 03 00 call 1415fc <__errno> 10d151: c7 00 0e 00 00 00 movl $0xe,(%eax) 10d157: be ff ff ff ff mov $0xffffffff,%esi
status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; }
10d15c: 89 f0 mov %esi,%eax 10d15e: 8d 65 f4 lea -0xc(%ebp),%esp 10d161: 5b pop %ebx 10d162: 5e pop %esi 10d163: 5f pop %edi 10d164: c9 leave 10d165: c3 ret
0012c73c <statvfs>: */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) {
12c73c: 55 push %ebp <== NOT EXECUTED 12c73d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c73f: 57 push %edi <== NOT EXECUTED 12c740: 56 push %esi <== NOT EXECUTED 12c741: 53 push %ebx <== NOT EXECUTED 12c742: 83 ec 38 sub $0x38,%esp <== NOT EXECUTED 12c745: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 12c748: 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 ) )
12c74b: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 12c750: 89 d7 mov %edx,%edi <== NOT EXECUTED 12c752: 31 c0 xor %eax,%eax <== NOT EXECUTED 12c754: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 12c756: f7 d1 not %ecx <== NOT EXECUTED 12c758: 49 dec %ecx <== NOT EXECUTED 12c759: 6a 01 push $0x1 <== NOT EXECUTED 12c75b: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED 12c75e: 53 push %ebx <== NOT EXECUTED 12c75f: 6a 00 push $0x0 <== NOT EXECUTED 12c761: 51 push %ecx <== NOT EXECUTED 12c762: 52 push %edx <== NOT EXECUTED 12c763: e8 e0 f5 fd ff call 10bd48 <rtems_filesystem_evaluate_path><== NOT EXECUTED 12c768: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12c76b: 85 c0 test %eax,%eax <== NOT EXECUTED 12c76d: 75 59 jne 12c7c8 <statvfs+0x8c> <== NOT EXECUTED
return -1; mt_entry = loc.mt_entry;
12c76f: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED
fs_mount_root = &mt_entry->mt_fs_root;
12c772: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED 12c775: 8b 40 44 mov 0x44(%eax),%eax <== NOT EXECUTED 12c778: 85 c0 test %eax,%eax <== NOT EXECUTED 12c77a: 74 3f je 12c7bb <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));
12c77c: b9 38 00 00 00 mov $0x38,%ecx <== NOT EXECUTED 12c781: 89 f7 mov %esi,%edi <== NOT EXECUTED 12c783: 31 c0 xor %eax,%eax <== NOT EXECUTED 12c785: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED
result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );
12c787: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c78a: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED 12c78d: 56 push %esi <== NOT EXECUTED 12c78e: 83 c2 1c add $0x1c,%edx <== NOT EXECUTED 12c791: 52 push %edx <== NOT EXECUTED 12c792: ff 50 44 call *0x44(%eax) <== NOT EXECUTED 12c795: 89 c6 mov %eax,%esi <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
12c797: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 12c79a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c79d: 85 c0 test %eax,%eax <== NOT EXECUTED 12c79f: 74 10 je 12c7b1 <statvfs+0x75> <== NOT EXECUTED 12c7a1: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c7a4: 85 c0 test %eax,%eax <== NOT EXECUTED 12c7a6: 74 09 je 12c7b1 <statvfs+0x75> <== NOT EXECUTED 12c7a8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c7ab: 53 push %ebx <== NOT EXECUTED 12c7ac: ff d0 call *%eax <== NOT EXECUTED 12c7ae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
return result; }
12c7b1: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c7b3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c7b6: 5b pop %ebx <== NOT EXECUTED 12c7b7: 5e pop %esi <== NOT EXECUTED 12c7b8: 5f pop %edi <== NOT EXECUTED 12c7b9: c9 leave <== NOT EXECUTED 12c7ba: 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 );
12c7bb: e8 3c 4e 01 00 call 1415fc <__errno> <== NOT EXECUTED 12c7c0: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c7c6: 66 90 xchg %ax,%ax <== NOT EXECUTED 12c7c8: 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; }
12c7cd: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c7cf: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c7d2: 5b pop %ebx <== NOT EXECUTED 12c7d3: 5e pop %esi <== NOT EXECUTED 12c7d4: 5f pop %edi <== NOT EXECUTED 12c7d5: c9 leave <== NOT EXECUTED 12c7d6: c3 ret <== NOT EXECUTED
0012c7d8 <symlink>: int symlink( const char *actualpath, const char *sympath ) {
12c7d8: 55 push %ebp 12c7d9: 89 e5 mov %esp,%ebp 12c7db: 57 push %edi 12c7dc: 56 push %esi 12c7dd: 53 push %ebx 12c7de: 83 ec 2c sub $0x2c,%esp 12c7e1: 8b 45 0c mov 0xc(%ebp),%eax
rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc );
12c7e4: 8a 10 mov (%eax),%dl 12c7e6: 80 fa 2f cmp $0x2f,%dl
12c7e9: 74 09 je 12c7f4 <symlink+0x1c>
12c7eb: 80 fa 5c cmp $0x5c,%dl
12c7ee: 74 04 je 12c7f4 <symlink+0x1c> <== ALWAYS TAKEN
12c7f0: 84 d2 test %dl,%dl
12c7f2: 75 70 jne 12c864 <symlink+0x8c> <== NEVER TAKEN
12c7f4: 8d 5d d0 lea -0x30(%ebp),%ebx 12c7f7: 8b 35 a4 84 16 00 mov 0x1684a4,%esi 12c7fd: 83 c6 18 add $0x18,%esi 12c800: b9 05 00 00 00 mov $0x5,%ecx 12c805: 89 df mov %ebx,%edi 12c807: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12c809: b1 01 mov $0x1,%cl
if ( !loc.ops->evalformake_h ) {
12c80b: 8b 55 dc mov -0x24(%ebp),%edx 12c80e: 8b 52 04 mov 0x4(%edx),%edx 12c811: 85 d2 test %edx,%edx
12c813: 74 6e je 12c883 <symlink+0xab> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
12c815: 56 push %esi 12c816: 8d 75 e4 lea -0x1c(%ebp),%esi 12c819: 56 push %esi 12c81a: 53 push %ebx 12c81b: 01 c8 add %ecx,%eax 12c81d: 50 push %eax 12c81e: ff d2 call *%edx
if ( result != 0 )
12c820: 83 c4 10 add $0x10,%esp 12c823: 85 c0 test %eax,%eax
12c825: 75 67 jne 12c88e <symlink+0xb6> return -1; if ( !loc.ops->symlink_h ) {
12c827: 8b 55 dc mov -0x24(%ebp),%edx 12c82a: 8b 42 38 mov 0x38(%edx),%eax 12c82d: 85 c0 test %eax,%eax
12c82f: 74 6c je 12c89d <symlink+0xc5> <== ALWAYS TAKEN
rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start);
12c831: 52 push %edx 12c832: ff 75 e4 pushl -0x1c(%ebp) 12c835: ff 75 08 pushl 0x8(%ebp) 12c838: 53 push %ebx 12c839: ff d0 call *%eax 12c83b: 89 c6 mov %eax,%esi
rtems_filesystem_freenode( &loc );
12c83d: 8b 45 dc mov -0x24(%ebp),%eax 12c840: 83 c4 10 add $0x10,%esp 12c843: 85 c0 test %eax,%eax
12c845: 74 10 je 12c857 <symlink+0x7f> <== ALWAYS TAKEN
12c847: 8b 40 1c mov 0x1c(%eax),%eax 12c84a: 85 c0 test %eax,%eax
12c84c: 74 09 je 12c857 <symlink+0x7f> <== ALWAYS TAKEN
12c84e: 83 ec 0c sub $0xc,%esp 12c851: 53 push %ebx 12c852: ff d0 call *%eax 12c854: 83 c4 10 add $0x10,%esp
return result; }
12c857: 89 f0 mov %esi,%eax 12c859: 8d 65 f4 lea -0xc(%ebp),%esp 12c85c: 5b pop %ebx 12c85d: 5e pop %esi 12c85e: 5f pop %edi 12c85f: c9 leave 12c860: c3 ret
12c861: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc );
12c864: 8d 5d d0 lea -0x30(%ebp),%ebx 12c867: 8b 35 a4 84 16 00 mov 0x1684a4,%esi 12c86d: 83 c6 04 add $0x4,%esi 12c870: b9 05 00 00 00 mov $0x5,%ecx 12c875: 89 df mov %ebx,%edi 12c877: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
if ( !loc.ops->evalformake_h ) {
12c879: 8b 55 dc mov -0x24(%ebp),%edx 12c87c: 8b 52 04 mov 0x4(%edx),%edx 12c87f: 85 d2 test %edx,%edx
12c881: 75 92 jne 12c815 <symlink+0x3d> <== NEVER TAKEN
if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP );
12c883: e8 74 4d 01 00 call 1415fc <__errno> <== NOT EXECUTED 12c888: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
12c88e: be ff ff ff ff mov $0xffffffff,%esi
result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); rtems_filesystem_freenode( &loc ); return result; }
12c893: 89 f0 mov %esi,%eax 12c895: 8d 65 f4 lea -0xc(%ebp),%esp 12c898: 5b pop %ebx 12c899: 5e pop %esi 12c89a: 5f pop %edi 12c89b: c9 leave 12c89c: 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 );
12c89d: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12c8a0: 85 c0 test %eax,%eax <== NOT EXECUTED 12c8a2: 74 df je 12c883 <symlink+0xab> <== NOT EXECUTED 12c8a4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c8a7: 53 push %ebx <== NOT EXECUTED 12c8a8: ff d0 call *%eax <== NOT EXECUTED 12c8aa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c8ad: eb d4 jmp 12c883 <symlink+0xab> <== NOT EXECUTED
0010a654 <sync_per_thread>: fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) {
10a654: 55 push %ebp 10a655: 89 e5 mov %esp,%ebp 10a657: 53 push %ebx 10a658: 83 ec 04 sub $0x4,%esp 10a65b: 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;
10a65e: 8b 90 ec 00 00 00 mov 0xec(%eax),%edx
if ( this_reent ) {
10a664: 85 d2 test %edx,%edx
10a666: 74 33 je 10a69b <sync_per_thread+0x47> <== ALWAYS TAKEN
current_reent = _Thread_Executing->libc_reent;
10a668: 8b 0d 58 99 12 00 mov 0x129958,%ecx 10a66e: 8b 99 ec 00 00 00 mov 0xec(%ecx),%ebx
_Thread_Executing->libc_reent = this_reent;
10a674: 89 91 ec 00 00 00 mov %edx,0xec(%ecx)
_fwalk (t->libc_reent, sync_wrapper);
10a67a: 83 ec 08 sub $0x8,%esp 10a67d: 68 c8 a6 10 00 push $0x10a6c8 10a682: ff b0 ec 00 00 00 pushl 0xec(%eax) 10a688: e8 df b4 00 00 call 115b6c <_fwalk>
_Thread_Executing->libc_reent = current_reent;
10a68d: a1 58 99 12 00 mov 0x129958,%eax 10a692: 89 98 ec 00 00 00 mov %ebx,0xec(%eax) 10a698: 83 c4 10 add $0x10,%esp
} }
10a69b: 8b 5d fc mov -0x4(%ebp),%ebx 10a69e: c9 leave 10a69f: c3 ret
0011714c <tcsetattr>: int tcsetattr( int fd, int opt, struct termios *tp ) {
11714c: 55 push %ebp 11714d: 89 e5 mov %esp,%ebp 11714f: 56 push %esi 117150: 53 push %ebx 117151: 8b 5d 08 mov 0x8(%ebp),%ebx 117154: 8b 45 0c mov 0xc(%ebp),%eax 117157: 8b 75 10 mov 0x10(%ebp),%esi
switch (opt) {
11715a: 85 c0 test %eax,%eax
11715c: 74 2c je 11718a <tcsetattr+0x3e> <== NEVER TAKEN
11715e: 48 dec %eax <== NOT EXECUTED 11715f: 74 17 je 117178 <tcsetattr+0x2c> <== NOT EXECUTED
default: rtems_set_errno_and_return_minus_one( ENOTSUP );
117161: e8 0a 39 00 00 call 11aa70 <__errno> <== NOT EXECUTED 117166: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED
* Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } }
11716c: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 117171: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 117174: 5b pop %ebx <== NOT EXECUTED 117175: 5e pop %esi <== NOT EXECUTED 117176: c9 leave <== NOT EXECUTED 117177: 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)
117178: 50 push %eax <== NOT EXECUTED 117179: 6a 00 push $0x0 <== NOT EXECUTED 11717b: 6a 03 push $0x3 <== NOT EXECUTED 11717d: 53 push %ebx <== NOT EXECUTED 11717e: e8 9d 2c 00 00 call 119e20 <ioctl> <== NOT EXECUTED 117183: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 117186: 85 c0 test %eax,%eax <== NOT EXECUTED 117188: 78 e2 js 11716c <tcsetattr+0x20> <== NOT EXECUTED
return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
11718a: 89 75 10 mov %esi,0x10(%ebp) 11718d: c7 45 0c 02 00 00 00 movl $0x2,0xc(%ebp) 117194: 89 5d 08 mov %ebx,0x8(%ebp)
} }
117197: 8d 65 f8 lea -0x8(%ebp),%esp 11719a: 5b pop %ebx 11719b: 5e pop %esi 11719c: c9 leave
return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
11719d: e9 7e 2c 00 00 jmp 119e20 <ioctl>
0010d458 <truncate>: int truncate( const char *path, off_t length ) {
10d458: 55 push %ebp 10d459: 89 e5 mov %esp,%ebp 10d45b: 57 push %edi 10d45c: 56 push %esi 10d45d: 53 push %ebx 10d45e: 83 ec 14 sub $0x14,%esp 10d461: 8b 75 0c mov 0xc(%ebp),%esi 10d464: 8b 7d 10 mov 0x10(%ebp),%edi
int status; int fd; fd = open( path, O_WRONLY );
10d467: 6a 01 push $0x1 10d469: ff 75 08 pushl 0x8(%ebp) 10d46c: e8 df db ff ff call 10b050 <open> 10d471: 89 c3 mov %eax,%ebx
if ( fd == -1 )
10d473: 83 c4 10 add $0x10,%esp 10d476: 83 f8 ff cmp $0xffffffff,%eax
10d479: 74 21 je 10d49c <truncate+0x44> return -1; status = ftruncate( fd, length );
10d47b: 50 push %eax 10d47c: 57 push %edi 10d47d: 56 push %esi 10d47e: 53 push %ebx 10d47f: e8 7c 5d 00 00 call 113200 <ftruncate> 10d484: 89 c6 mov %eax,%esi
(void) close( fd );
10d486: 89 1c 24 mov %ebx,(%esp) 10d489: e8 56 ca ff ff call 109ee4 <close>
return status;
10d48e: 83 c4 10 add $0x10,%esp
}
10d491: 89 f0 mov %esi,%eax 10d493: 8d 65 f4 lea -0xc(%ebp),%esp 10d496: 5b pop %ebx 10d497: 5e pop %esi 10d498: 5f pop %edi 10d499: c9 leave 10d49a: c3 ret
10d49b: 90 nop <== NOT EXECUTED
{ int status; int fd; fd = open( path, O_WRONLY ); if ( fd == -1 )
10d49c: be ff ff ff ff mov $0xffffffff,%esi
status = ftruncate( fd, length ); (void) close( fd ); return status; }
10d4a1: 89 f0 mov %esi,%eax 10d4a3: 8d 65 f4 lea -0xc(%ebp),%esp 10d4a6: 5b pop %ebx 10d4a7: 5e pop %esi 10d4a8: 5f pop %edi 10d4a9: c9 leave 10d4aa: c3 ret
001121e4 <unlink>: #include <rtems/seterr.h> int unlink( const char *path ) {
1121e4: 55 push %ebp 1121e5: 89 e5 mov %esp,%ebp 1121e7: 57 push %edi 1121e8: 56 push %esi 1121e9: 53 push %ebx 1121ea: 83 ec 58 sub $0x58,%esp 1121ed: 8b 55 08 mov 0x8(%ebp),%edx
/* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path );
1121f0: 52 push %edx 1121f1: 89 55 ac mov %edx,-0x54(%ebp) 1121f4: e8 ab 5c ff ff call 107ea4 <rtems_filesystem_dirname> 1121f9: 89 c3 mov %eax,%ebx
if ( parentpathlen == 0 )
1121fb: 83 c4 10 add $0x10,%esp 1121fe: 85 c0 test %eax,%eax 112200: 8b 55 ac mov -0x54(%ebp),%edx
112203: 0f 85 7b 01 00 00 jne 112384 <unlink+0x1a0> rtems_filesystem_get_start_loc( path, &i, &parentloc );
112209: 8a 02 mov (%edx),%al 11220b: 3c 2f cmp $0x2f,%al
11220d: 74 0c je 11221b <unlink+0x37>
11220f: 3c 5c cmp $0x5c,%al
112211: 74 08 je 11221b <unlink+0x37> <== ALWAYS TAKEN
112213: 84 c0 test %al,%al
112215: 0f 85 ed 00 00 00 jne 112308 <unlink+0x124> <== NEVER TAKEN
11221b: 8d 45 d4 lea -0x2c(%ebp),%eax 11221e: 89 45 b4 mov %eax,-0x4c(%ebp) 112221: 8b 35 18 30 12 00 mov 0x123018,%esi 112227: 83 c6 18 add $0x18,%esi 11222a: b9 05 00 00 00 mov $0x5,%ecx 11222f: 89 c7 mov %eax,%edi 112231: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 112233: c6 45 b3 00 movb $0x0,-0x4d(%ebp)
/* * Start from the parent to find the node that should be under it. */ loc = parentloc;
112237: 8d 7d c0 lea -0x40(%ebp),%edi 11223a: b9 05 00 00 00 mov $0x5,%ecx 11223f: 8b 75 b4 mov -0x4c(%ebp),%esi 112242: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
name = path + parentpathlen;
112244: 8d 1c 1a lea (%edx,%ebx,1),%ebx
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
112247: be ff ff ff ff mov $0xffffffff,%esi 11224c: 89 f1 mov %esi,%ecx 11224e: 89 df mov %ebx,%edi 112250: 31 c0 xor %eax,%eax 112252: f2 ae repnz scas %es:(%edi),%al 112254: f7 d1 not %ecx 112256: 49 dec %ecx 112257: 83 ec 08 sub $0x8,%esp 11225a: 51 push %ecx 11225b: 53 push %ebx 11225c: e8 07 5c ff ff call 107e68 <rtems_filesystem_prefix_separators> 112261: 01 c3 add %eax,%ebx
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
112263: 89 f1 mov %esi,%ecx 112265: 89 df mov %ebx,%edi 112267: 31 c0 xor %eax,%eax 112269: f2 ae repnz scas %es:(%edi),%al 11226b: f7 d1 not %ecx 11226d: 49 dec %ecx 11226e: c7 04 24 00 00 00 00 movl $0x0,(%esp) 112275: 8d 75 c0 lea -0x40(%ebp),%esi 112278: 56 push %esi 112279: 6a 00 push $0x0 11227b: 51 push %ecx 11227c: 53 push %ebx 11227d: e8 72 5c ff ff call 107ef4 <rtems_filesystem_evaluate_relative_path>
0, &loc, false ); if ( result != 0 ) {
112282: 83 c4 20 add $0x20,%esp 112285: 85 c0 test %eax,%eax
112287: 0f 85 9f 00 00 00 jne 11232c <unlink+0x148> if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return -1; } if ( !loc.ops->node_type_h ) {
11228d: 8b 55 cc mov -0x34(%ebp),%edx 112290: 8b 42 10 mov 0x10(%edx),%eax 112293: 85 c0 test %eax,%eax
112295: 0f 84 a5 00 00 00 je 112340 <unlink+0x15c> <== ALWAYS 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 ) {
11229b: 83 ec 0c sub $0xc,%esp 11229e: 56 push %esi 11229f: ff d0 call *%eax 1122a1: 83 c4 10 add $0x10,%esp 1122a4: 48 dec %eax
1122a5: 0f 84 05 01 00 00 je 1123b0 <unlink+0x1cc> if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) {
1122ab: 8b 55 cc mov -0x34(%ebp),%edx 1122ae: 8b 42 0c mov 0xc(%edx),%eax 1122b1: 85 c0 test %eax,%eax
1122b3: 0f 84 87 00 00 00 je 112340 <unlink+0x15c> <== ALWAYS TAKEN
if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc );
1122b9: 83 ec 08 sub $0x8,%esp 1122bc: 56 push %esi 1122bd: ff 75 b4 pushl -0x4c(%ebp) 1122c0: ff d0 call *%eax 1122c2: 89 c3 mov %eax,%ebx
rtems_filesystem_freenode( &loc );
1122c4: 8b 45 cc mov -0x34(%ebp),%eax 1122c7: 83 c4 10 add $0x10,%esp 1122ca: 85 c0 test %eax,%eax
1122cc: 74 10 je 1122de <unlink+0xfa> <== ALWAYS TAKEN
1122ce: 8b 40 1c mov 0x1c(%eax),%eax 1122d1: 85 c0 test %eax,%eax
1122d3: 74 09 je 1122de <unlink+0xfa> <== ALWAYS TAKEN
1122d5: 83 ec 0c sub $0xc,%esp 1122d8: 56 push %esi 1122d9: ff d0 call *%eax 1122db: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
1122de: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp)
1122e2: 74 19 je 1122fd <unlink+0x119> rtems_filesystem_freenode( &parentloc );
1122e4: 8b 45 e0 mov -0x20(%ebp),%eax 1122e7: 85 c0 test %eax,%eax
1122e9: 74 12 je 1122fd <unlink+0x119> <== ALWAYS TAKEN
1122eb: 8b 40 1c mov 0x1c(%eax),%eax 1122ee: 85 c0 test %eax,%eax
1122f0: 74 0b je 1122fd <unlink+0x119> <== ALWAYS TAKEN
1122f2: 83 ec 0c sub $0xc,%esp 1122f5: ff 75 b4 pushl -0x4c(%ebp) 1122f8: ff d0 call *%eax 1122fa: 83 c4 10 add $0x10,%esp
return result; }
1122fd: 89 d8 mov %ebx,%eax 1122ff: 8d 65 f4 lea -0xc(%ebp),%esp 112302: 5b pop %ebx 112303: 5e pop %esi 112304: 5f pop %edi 112305: c9 leave 112306: c3 ret
112307: 90 nop <== NOT EXECUTED
*/ parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc );
112308: 8d 45 d4 lea -0x2c(%ebp),%eax 11230b: 89 45 b4 mov %eax,-0x4c(%ebp) 11230e: 8b 35 18 30 12 00 mov 0x123018,%esi 112314: 83 c6 04 add $0x4,%esi 112317: b9 05 00 00 00 mov $0x5,%ecx 11231c: 89 c7 mov %eax,%edi 11231e: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 112320: c6 45 b3 00 movb $0x0,-0x4d(%ebp) 112324: e9 0e ff ff ff jmp 112237 <unlink+0x53>
112329: 8d 76 00 lea 0x0(%esi),%esi <== 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 )
11232c: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp)
112330: 0f 85 c5 00 00 00 jne 1123fb <unlink+0x217> <== NEVER TAKEN
result = (*loc.ops->unlink_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc );
112336: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 11233b: eb c0 jmp 1122fd <unlink+0x119> <== NOT EXECUTED 11233d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc );
112340: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 112343: 85 c0 test %eax,%eax <== NOT EXECUTED 112345: 74 09 je 112350 <unlink+0x16c> <== NOT EXECUTED 112347: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11234a: 56 push %esi <== NOT EXECUTED 11234b: ff d0 call *%eax <== NOT EXECUTED 11234d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
if ( free_parentloc )
112350: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) <== NOT EXECUTED 112354: 74 19 je 11236f <unlink+0x18b> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
112356: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 112359: 85 c0 test %eax,%eax <== NOT EXECUTED 11235b: 74 12 je 11236f <unlink+0x18b> <== NOT EXECUTED 11235d: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 112360: 85 c0 test %eax,%eax <== NOT EXECUTED 112362: 74 0b je 11236f <unlink+0x18b> <== NOT EXECUTED 112364: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 112367: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED 11236a: ff d0 call *%eax <== NOT EXECUTED 11236c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
11236f: e8 44 01 00 00 call 1124b8 <__errno> <== NOT EXECUTED 112374: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11237a: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 11237f: e9 79 ff ff ff jmp 1122fd <unlink+0x119> <== NOT EXECUTED
parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path( path, parentpathlen,
112384: 83 ec 0c sub $0xc,%esp 112387: 6a 00 push $0x0 112389: 8d 45 d4 lea -0x2c(%ebp),%eax 11238c: 89 45 b4 mov %eax,-0x4c(%ebp) 11238f: 50 push %eax 112390: 6a 02 push $0x2 112392: 53 push %ebx 112393: 52 push %edx 112394: 89 55 ac mov %edx,-0x54(%ebp) 112397: e8 2c 5c ff ff call 107fc8 <rtems_filesystem_evaluate_path>
RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 )
11239c: 83 c4 20 add $0x20,%esp 11239f: 85 c0 test %eax,%eax 1123a1: 8b 55 ac mov -0x54(%ebp),%edx
1123a4: 75 90 jne 112336 <unlink+0x152> <== ALWAYS TAKEN
1123a6: c6 45 b3 01 movb $0x1,-0x4d(%ebp) 1123aa: e9 88 fe ff ff jmp 112237 <unlink+0x53>
1123af: 90 nop <== 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 );
1123b0: 8b 45 cc mov -0x34(%ebp),%eax 1123b3: 85 c0 test %eax,%eax
1123b5: 74 10 je 1123c7 <unlink+0x1e3> <== ALWAYS TAKEN
1123b7: 8b 40 1c mov 0x1c(%eax),%eax 1123ba: 85 c0 test %eax,%eax
1123bc: 74 09 je 1123c7 <unlink+0x1e3> <== ALWAYS TAKEN
1123be: 83 ec 0c sub $0xc,%esp 1123c1: 56 push %esi 1123c2: ff d0 call *%eax 1123c4: 83 c4 10 add $0x10,%esp
if ( free_parentloc )
1123c7: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp)
1123cb: 74 19 je 1123e6 <unlink+0x202> <== NEVER TAKEN
rtems_filesystem_freenode( &parentloc );
1123cd: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 1123d0: 85 c0 test %eax,%eax <== NOT EXECUTED 1123d2: 74 12 je 1123e6 <unlink+0x202> <== NOT EXECUTED 1123d4: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1123d7: 85 c0 test %eax,%eax <== NOT EXECUTED 1123d9: 74 0b je 1123e6 <unlink+0x202> <== NOT EXECUTED 1123db: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1123de: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED 1123e1: ff d0 call *%eax <== NOT EXECUTED 1123e3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EISDIR );
1123e6: e8 cd 00 00 00 call 1124b8 <__errno> 1123eb: c7 00 15 00 00 00 movl $0x15,(%eax) 1123f1: bb ff ff ff ff mov $0xffffffff,%ebx 1123f6: e9 02 ff ff ff jmp 1122fd <unlink+0x119>
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc );
1123fb: 8b 45 e0 mov -0x20(%ebp),%eax 1123fe: 85 c0 test %eax,%eax
112400: 0f 84 30 ff ff ff je 112336 <unlink+0x152> <== ALWAYS TAKEN
112406: 8b 40 1c mov 0x1c(%eax),%eax 112409: 85 c0 test %eax,%eax
11240b: 0f 84 25 ff ff ff je 112336 <unlink+0x152> <== ALWAYS TAKEN
112411: 83 ec 0c sub $0xc,%esp 112414: ff 75 b4 pushl -0x4c(%ebp) 112417: ff d0 call *%eax 112419: 83 cb ff or $0xffffffff,%ebx 11241c: 83 c4 10 add $0x10,%esp 11241f: e9 d9 fe ff ff jmp 1122fd <unlink+0x119>
0012c990 <unmount>: */ int unmount( const char *path ) {
12c990: 55 push %ebp 12c991: 89 e5 mov %esp,%ebp 12c993: 57 push %edi 12c994: 56 push %esi 12c995: 53 push %ebx 12c996: 83 ec 38 sub $0x38,%esp 12c999: 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 ) )
12c99c: 31 c0 xor %eax,%eax 12c99e: b9 ff ff ff ff mov $0xffffffff,%ecx 12c9a3: 89 d7 mov %edx,%edi 12c9a5: f2 ae repnz scas %es:(%edi),%al 12c9a7: f7 d1 not %ecx 12c9a9: 49 dec %ecx 12c9aa: 6a 01 push $0x1 12c9ac: 8d 75 d4 lea -0x2c(%ebp),%esi 12c9af: 56 push %esi 12c9b0: 6a 00 push $0x0 12c9b2: 51 push %ecx 12c9b3: 52 push %edx 12c9b4: e8 8f f3 fd ff call 10bd48 <rtems_filesystem_evaluate_path> 12c9b9: 83 c4 20 add $0x20,%esp 12c9bc: 85 c0 test %eax,%eax
12c9be: 0f 85 92 00 00 00 jne 12ca56 <unmount+0xc6> return -1; mt_entry = loc.mt_entry;
12c9c4: 8b 5d e4 mov -0x1c(%ebp),%ebx
fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root;
12c9c7: 8b 43 1c mov 0x1c(%ebx),%eax 12c9ca: 3b 45 d4 cmp -0x2c(%ebp),%eax
12c9cd: 0f 85 a9 00 00 00 jne 12ca7c <unmount+0xec> /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc );
12c9d3: 8b 45 e0 mov -0x20(%ebp),%eax 12c9d6: 85 c0 test %eax,%eax
12c9d8: 74 10 je 12c9ea <unmount+0x5a> <== ALWAYS TAKEN
12c9da: 8b 40 1c mov 0x1c(%eax),%eax 12c9dd: 85 c0 test %eax,%eax
12c9df: 74 09 je 12c9ea <unmount+0x5a> <== ALWAYS TAKEN
12c9e1: 83 ec 0c sub $0xc,%esp 12c9e4: 56 push %esi 12c9e5: ff d0 call *%eax 12c9e7: 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;
12c9ea: 8b 43 14 mov 0x14(%ebx),%eax 12c9ed: 8b 50 28 mov 0x28(%eax),%edx 12c9f0: 85 d2 test %edx,%edx
12c9f2: 0f 84 20 01 00 00 je 12cb18 <unmount+0x188> <== ALWAYS TAKEN
fs_root_loc = &mt_entry->mt_fs_root;
12c9f8: 8b 43 28 mov 0x28(%ebx),%eax 12c9fb: 8b 40 2c mov 0x2c(%eax),%eax 12c9fe: 85 c0 test %eax,%eax
12ca00: 0f 84 12 01 00 00 je 12cb18 <unmount+0x188> <== ALWAYS 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 )
12ca06: a1 a4 84 16 00 mov 0x1684a4,%eax 12ca0b: 39 58 14 cmp %ebx,0x14(%eax)
12ca0e: 74 54 je 12ca64 <unmount+0xd4> /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first;
12ca10: a1 2c df 16 00 mov 0x16df2c,%eax 12ca15: 3d 30 df 16 00 cmp $0x16df30,%eax
12ca1a: 74 1a je 12ca36 <unmount+0xa6> <== ALWAYS TAKEN
!rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { the_mount_entry = ( rtems_filesystem_mount_table_entry_t * )the_node; if (the_mount_entry->mt_point_node.mt_entry == fs_root_loc->mt_entry ) {
12ca1c: 8b 53 2c mov 0x2c(%ebx),%edx 12ca1f: 39 50 18 cmp %edx,0x18(%eax)
12ca22: 75 09 jne 12ca2d <unmount+0x9d> <== NEVER TAKEN
12ca24: eb 3e jmp 12ca64 <unmount+0xd4> <== NOT EXECUTED 12ca26: 66 90 xchg %ax,%ax <== NOT EXECUTED
12ca28: 3b 50 18 cmp 0x18(%eax),%edx
12ca2b: 74 37 je 12ca64 <unmount+0xd4> * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) {
12ca2d: 8b 00 mov (%eax),%eax
/* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first;
12ca2f: 3d 30 df 16 00 cmp $0x16df30,%eax
12ca34: 75 f2 jne 12ca28 <unmount+0x98> * 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 )
12ca36: 83 ec 0c sub $0xc,%esp 12ca39: 53 push %ebx 12ca3a: e8 2d f6 fd ff call 10c06c <rtems_libio_is_open_files_in_fs> 12ca3f: 83 c4 10 add $0x10,%esp 12ca42: 48 dec %eax
12ca43: 74 1f je 12ca64 <unmount+0xd4> * 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 )
12ca45: 83 ec 0c sub $0xc,%esp 12ca48: 8b 43 14 mov 0x14(%ebx),%eax 12ca4b: 53 push %ebx 12ca4c: ff 50 28 call *0x28(%eax) 12ca4f: 83 c4 10 add $0x10,%esp 12ca52: 85 c0 test %eax,%eax
12ca54: 74 56 je 12caac <unmount+0x11c> <== NEVER TAKEN
*/ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0;
12ca56: b8 ff ff ff ff mov $0xffffffff,%eax
}
12ca5b: 8d 65 f4 lea -0xc(%ebp),%esp 12ca5e: 5b pop %ebx 12ca5f: 5e pop %esi 12ca60: 5f pop %edi 12ca61: c9 leave 12ca62: c3 ret
12ca63: 90 nop <== NOT EXECUTED
* 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 );
12ca64: e8 93 4b 01 00 call 1415fc <__errno> 12ca69: c7 00 10 00 00 00 movl $0x10,(%eax) 12ca6f: b8 ff ff ff ff mov $0xffffffff,%eax
rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; }
12ca74: 8d 65 f4 lea -0xc(%ebp),%esp 12ca77: 5b pop %ebx 12ca78: 5e pop %esi 12ca79: 5f pop %edi 12ca7a: c9 leave 12ca7b: c3 ret
/* * Verify this is the root node for the file system to be unmounted. */ if ( !rtems_filesystem_nodes_equal( fs_root_loc, &loc) ){ rtems_filesystem_freenode( &loc );
12ca7c: 8b 45 e0 mov -0x20(%ebp),%eax 12ca7f: 85 c0 test %eax,%eax
12ca81: 74 10 je 12ca93 <unmount+0x103> <== ALWAYS TAKEN
12ca83: 8b 40 1c mov 0x1c(%eax),%eax 12ca86: 85 c0 test %eax,%eax
12ca88: 74 09 je 12ca93 <unmount+0x103> <== ALWAYS TAKEN
12ca8a: 83 ec 0c sub $0xc,%esp 12ca8d: 56 push %esi 12ca8e: ff d0 call *%eax 12ca90: 83 c4 10 add $0x10,%esp
rtems_set_errno_and_return_minus_one( EACCES );
12ca93: e8 64 4b 01 00 call 1415fc <__errno> 12ca98: c7 00 0d 00 00 00 movl $0xd,(%eax) 12ca9e: b8 ff ff ff ff mov $0xffffffff,%eax
rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; }
12caa3: 8d 65 f4 lea -0xc(%ebp),%esp 12caa6: 5b pop %ebx 12caa7: 5e pop %esi 12caa8: 5f pop %edi 12caa9: c9 leave 12caaa: c3 ret
12caab: 90 nop <== NOT EXECUTED
* 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){
12caac: 83 ec 0c sub $0xc,%esp 12caaf: 8b 43 28 mov 0x28(%ebx),%eax 12cab2: 53 push %ebx 12cab3: ff 50 2c call *0x2c(%eax) 12cab6: 83 c4 10 add $0x10,%esp 12cab9: 85 c0 test %eax,%eax
12cabb: 75 3c jne 12caf9 <unmount+0x169> <== ALWAYS TAKEN
*/ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node );
12cabd: 83 ec 0c sub $0xc,%esp 12cac0: 53 push %ebx 12cac1: e8 7a 3e fe ff call 110940 <_Chain_Extract>
/* * 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 );
12cac6: 8b 43 14 mov 0x14(%ebx),%eax 12cac9: 83 c4 10 add $0x10,%esp 12cacc: 85 c0 test %eax,%eax
12cace: 74 13 je 12cae3 <unmount+0x153> <== ALWAYS TAKEN
12cad0: 8b 40 1c mov 0x1c(%eax),%eax 12cad3: 85 c0 test %eax,%eax
12cad5: 74 0c je 12cae3 <unmount+0x153> <== ALWAYS TAKEN
12cad7: 83 ec 0c sub $0xc,%esp 12cada: 8d 53 08 lea 0x8(%ebx),%edx 12cadd: 52 push %edx 12cade: ff d0 call *%eax 12cae0: 83 c4 10 add $0x10,%esp
free( mt_entry );
12cae3: 83 ec 0c sub $0xc,%esp 12cae6: 53 push %ebx 12cae7: e8 10 f3 fd ff call 10bdfc <free> 12caec: 31 c0 xor %eax,%eax
return 0;
12caee: 83 c4 10 add $0x10,%esp
}
12caf1: 8d 65 f4 lea -0xc(%ebp),%esp 12caf4: 5b pop %ebx 12caf5: 5e pop %esi 12caf6: 5f pop %edi 12caf7: c9 leave 12caf8: 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 )
12caf9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12cafc: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 12caff: 53 push %ebx <== NOT EXECUTED 12cb00: ff 50 20 call *0x20(%eax) <== NOT EXECUTED 12cb03: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12cb06: 85 c0 test %eax,%eax <== NOT EXECUTED 12cb08: 0f 84 48 ff ff ff je 12ca56 <unmount+0xc6> <== NOT EXECUTED
rtems_fatal_error_occurred( 0 );
12cb0e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12cb11: 6a 00 push $0x0 <== NOT EXECUTED 12cb13: e8 70 3b fe ff call 110688 <rtems_fatal_error_occurred><== 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 );
12cb18: e8 df 4a 01 00 call 1415fc <__errno> <== NOT EXECUTED 12cb1d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12cb23: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 12cb26: e9 30 ff ff ff jmp 12ca5b <unmount+0xcb> <== NOT EXECUTED
0012cb2c <utime>: int utime( const char *path, const struct utimbuf *times ) {
12cb2c: 55 push %ebp 12cb2d: 89 e5 mov %esp,%ebp 12cb2f: 57 push %edi 12cb30: 56 push %esi 12cb31: 53 push %ebx 12cb32: 83 ec 38 sub $0x38,%esp 12cb35: 8b 55 08 mov 0x8(%ebp),%edx 12cb38: 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 ) )
12cb3b: 31 c0 xor %eax,%eax 12cb3d: b9 ff ff ff ff mov $0xffffffff,%ecx 12cb42: 89 d7 mov %edx,%edi 12cb44: f2 ae repnz scas %es:(%edi),%al 12cb46: f7 d1 not %ecx 12cb48: 49 dec %ecx 12cb49: 6a 01 push $0x1 12cb4b: 8d 75 d4 lea -0x2c(%ebp),%esi 12cb4e: 56 push %esi 12cb4f: 6a 00 push $0x0 12cb51: 51 push %ecx 12cb52: 52 push %edx 12cb53: e8 f0 f1 fd ff call 10bd48 <rtems_filesystem_evaluate_path> 12cb58: 83 c4 20 add $0x20,%esp 12cb5b: 85 c0 test %eax,%eax
12cb5d: 75 55 jne 12cbb4 <utime+0x88> return -1; if ( !temp_loc.ops->utime_h ){
12cb5f: 8b 55 e0 mov -0x20(%ebp),%edx 12cb62: 8b 42 30 mov 0x30(%edx),%eax 12cb65: 85 c0 test %eax,%eax
12cb67: 74 2f je 12cb98 <utime+0x6c> <== ALWAYS 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 );
12cb69: 52 push %edx 12cb6a: ff 73 04 pushl 0x4(%ebx) 12cb6d: ff 33 pushl (%ebx) 12cb6f: 56 push %esi 12cb70: ff d0 call *%eax 12cb72: 89 c3 mov %eax,%ebx
rtems_filesystem_freenode( &temp_loc );
12cb74: 8b 45 e0 mov -0x20(%ebp),%eax 12cb77: 83 c4 10 add $0x10,%esp 12cb7a: 85 c0 test %eax,%eax
12cb7c: 74 10 je 12cb8e <utime+0x62> <== ALWAYS TAKEN
12cb7e: 8b 40 1c mov 0x1c(%eax),%eax 12cb81: 85 c0 test %eax,%eax
12cb83: 74 09 je 12cb8e <utime+0x62> <== ALWAYS TAKEN
12cb85: 83 ec 0c sub $0xc,%esp 12cb88: 56 push %esi 12cb89: ff d0 call *%eax 12cb8b: 83 c4 10 add $0x10,%esp
return result; }
12cb8e: 89 d8 mov %ebx,%eax 12cb90: 8d 65 f4 lea -0xc(%ebp),%esp 12cb93: 5b pop %ebx 12cb94: 5e pop %esi 12cb95: 5f pop %edi 12cb96: c9 leave 12cb97: 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 );
12cb98: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12cb9b: 85 c0 test %eax,%eax <== NOT EXECUTED 12cb9d: 74 09 je 12cba8 <utime+0x7c> <== NOT EXECUTED 12cb9f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12cba2: 56 push %esi <== NOT EXECUTED 12cba3: ff d0 call *%eax <== NOT EXECUTED 12cba5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
12cba8: e8 4f 4a 01 00 call 1415fc <__errno> <== NOT EXECUTED 12cbad: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12cbb3: 90 nop <== NOT EXECUTED
12cbb4: 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; }
12cbb9: 89 d8 mov %ebx,%eax 12cbbb: 8d 65 f4 lea -0xc(%ebp),%esp 12cbbe: 5b pop %ebx 12cbbf: 5e pop %esi 12cbc0: 5f pop %edi 12cbc1: c9 leave 12cbc2: c3 ret
0010ab44 <vprintk>: */ void vprintk( const char *fmt, va_list ap ) {
10ab44: 55 push %ebp 10ab45: 89 e5 mov %esp,%ebp 10ab47: 57 push %edi 10ab48: 56 push %esi 10ab49: 53 push %ebx 10ab4a: 83 ec 4c sub $0x4c,%esp 10ab4d: 8b 75 08 mov 0x8(%ebp),%esi 10ab50: 8b 7d 0c mov 0xc(%ebp),%edi
for (; *fmt != '\0'; fmt++) {
10ab53: 8a 06 mov (%esi),%al 10ab55: 84 c0 test %al,%al
10ab57: 75 28 jne 10ab81 <vprintk+0x3d> <== NEVER TAKEN
10ab59: e9 d1 01 00 00 jmp 10ad2f <vprintk+0x1eb> <== NOT EXECUTED 10ab5e: 66 90 xchg %ax,%ax <== NOT EXECUTED
bool sign = false; char lead = ' '; char c; if (*fmt != '%') { BSP_output_char(*fmt);
10ab60: 83 ec 0c sub $0xc,%esp 10ab63: 0f be c0 movsbl %al,%eax 10ab66: 50 push %eax 10ab67: ff 15 84 12 12 00 call *0x121284 10ab6d: 89 7d bc mov %edi,-0x44(%ebp)
continue;
10ab70: 83 c4 10 add $0x10,%esp
void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) {
10ab73: 46 inc %esi 10ab74: 8a 06 mov (%esi),%al 10ab76: 84 c0 test %al,%al
10ab78: 0f 84 b1 01 00 00 je 10ad2f <vprintk+0x1eb>
10ab7e: 8b 7d bc mov -0x44(%ebp),%edi
bool minus = false; bool sign = false; char lead = ' '; char c; if (*fmt != '%') {
10ab81: 3c 25 cmp $0x25,%al
10ab83: 75 db jne 10ab60 <vprintk+0x1c> BSP_output_char(*fmt); continue; } fmt++;
10ab85: 46 inc %esi
if (*fmt == '0' ) {
10ab86: 8a 0e mov (%esi),%cl 10ab88: 80 f9 30 cmp $0x30,%cl
10ab8b: 0f 84 b7 01 00 00 je 10ad48 <vprintk+0x204>
10ab91: b2 20 mov $0x20,%dl
lead = '0'; fmt++; } if (*fmt == '-' ) {
10ab93: 80 f9 2d cmp $0x2d,%cl
10ab96: 0f 84 ba 01 00 00 je 10ad56 <vprintk+0x212>
10ab9c: c6 45 c4 00 movb $0x0,-0x3c(%ebp)
minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) {
10aba0: 8d 41 d0 lea -0x30(%ecx),%eax 10aba3: 3c 09 cmp $0x9,%al
10aba5: 0f 87 bd 01 00 00 ja 10ad68 <vprintk+0x224>
10abab: 31 db xor %ebx,%ebx 10abad: 8d 76 00 lea 0x0(%esi),%esi
width *= 10; width += ((unsigned) *fmt - '0');
10abb0: 8d 04 9b lea (%ebx,%ebx,4),%eax 10abb3: 0f be c9 movsbl %cl,%ecx 10abb6: 8d 5c 41 d0 lea -0x30(%ecx,%eax,2),%ebx
fmt++;
10abba: 46 inc %esi
} if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) {
10abbb: 8a 0e mov (%esi),%cl 10abbd: 8d 41 d0 lea -0x30(%ecx),%eax 10abc0: 3c 09 cmp $0x9,%al
10abc2: 76 ec jbe 10abb0 <vprintk+0x6c> width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') {
10abc4: 80 f9 6c cmp $0x6c,%cl
10abc7: 0f 84 a7 01 00 00 je 10ad74 <vprintk+0x230> lflag = true; c = *++fmt; } if ( c == 'c' ) {
10abcd: 80 f9 63 cmp $0x63,%cl
10abd0: 0f 84 aa 01 00 00 je 10ad80 <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' ) {
10abd6: 80 f9 73 cmp $0x73,%cl
10abd9: 0f 84 bd 01 00 00 je 10ad9c <vprintk+0x258> continue; } /* must be a numeric format or something unsupported */ if ( c == 'o' || c == 'O' ) {
10abdf: 80 f9 6f cmp $0x6f,%cl
10abe2: 0f 84 50 01 00 00 je 10ad38 <vprintk+0x1f4> <== ALWAYS TAKEN
10abe8: 80 f9 4f cmp $0x4f,%cl
10abeb: 0f 84 47 01 00 00 je 10ad38 <vprintk+0x1f4> base = 8; sign = false; } else if ( c == 'i' || c == 'I' ||
10abf1: 80 f9 69 cmp $0x69,%cl
10abf4: 74 56 je 10ac4c <vprintk+0x108>
10abf6: 80 f9 49 cmp $0x49,%cl
10abf9: 74 51 je 10ac4c <vprintk+0x108>
10abfb: 80 f9 64 cmp $0x64,%cl
10abfe: 74 4c je 10ac4c <vprintk+0x108>
10ac00: 80 f9 44 cmp $0x44,%cl
10ac03: 74 47 je 10ac4c <vprintk+0x108> c == 'd' || c == 'D' ) { base = 10; sign = true; } else if ( c == 'u' || c == 'U' ) {
10ac05: 80 f9 75 cmp $0x75,%cl
10ac08: 0f 84 62 02 00 00 je 10ae70 <vprintk+0x32c>
10ac0e: 80 f9 55 cmp $0x55,%cl
10ac11: 0f 84 59 02 00 00 je 10ae70 <vprintk+0x32c> base = 10; sign = false; } else if ( c == 'x' || c == 'X' ) {
10ac17: 80 f9 78 cmp $0x78,%cl
10ac1a: 0f 84 97 02 00 00 je 10aeb7 <vprintk+0x373>
10ac20: 80 f9 58 cmp $0x58,%cl
10ac23: 0f 84 8e 02 00 00 je 10aeb7 <vprintk+0x373> base = 16; sign = false; } else if ( c == 'p' ) {
10ac29: 80 f9 70 cmp $0x70,%cl
10ac2c: 0f 84 a8 02 00 00 je 10aeda <vprintk+0x396> base = 16; sign = false; lflag = true; } else { BSP_output_char(c);
10ac32: 83 ec 0c sub $0xc,%esp 10ac35: 0f be c9 movsbl %cl,%ecx 10ac38: 51 push %ecx 10ac39: ff 15 84 12 12 00 call *0x121284 10ac3f: 89 7d bc mov %edi,-0x44(%ebp)
continue;
10ac42: 83 c4 10 add $0x10,%esp 10ac45: e9 29 ff ff ff jmp 10ab73 <vprintk+0x2f>
10ac4a: 66 90 xchg %ax,%ax <== NOT EXECUTED
10ac4c: b1 01 mov $0x1,%cl 10ac4e: c7 45 b8 0a 00 00 00 movl $0xa,-0x48(%ebp)
} printNum(
10ac55: 0f be d2 movsbl %dl,%edx 10ac58: 89 55 b4 mov %edx,-0x4c(%ebp)
lflag ? va_arg(ap, long) : (long) va_arg(ap, int),
10ac5b: 8d 47 04 lea 0x4(%edi),%eax 10ac5e: 89 45 bc mov %eax,-0x44(%ebp)
} else { BSP_output_char(c); continue; } printNum(
10ac61: 8b 3f mov (%edi),%edi
unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) {
10ac63: 84 c9 test %cl,%cl
10ac65: 74 08 je 10ac6f <vprintk+0x12b>
10ac67: 85 ff test %edi,%edi
10ac69: 0f 88 0f 02 00 00 js 10ae7e <vprintk+0x33a> BSP_output_char('-'); unsigned_num = (unsigned long) -num; if (maxwidth) maxwidth--; } else { unsigned_num = (unsigned long) num;
10ac6f: 89 7d c0 mov %edi,-0x40(%ebp)
} count = 0; while ((n = unsigned_num / base) > 0) {
10ac72: 8b 45 c0 mov -0x40(%ebp),%eax 10ac75: 31 d2 xor %edx,%edx 10ac77: f7 75 b8 divl -0x48(%ebp) 10ac7a: 89 c1 mov %eax,%ecx 10ac7c: 85 c0 test %eax,%eax
10ac7e: 0f 84 25 02 00 00 je 10aea9 <vprintk+0x365>
10ac84: 8a 45 b8 mov -0x48(%ebp),%al 10ac87: 88 45 c4 mov %al,-0x3c(%ebp) 10ac8a: 31 ff xor %edi,%edi 10ac8c: 89 5d b0 mov %ebx,-0x50(%ebp) 10ac8f: 8b 55 c0 mov -0x40(%ebp),%edx 10ac92: 8b 5d b8 mov -0x48(%ebp),%ebx 10ac95: eb 05 jmp 10ac9c <vprintk+0x158>
10ac97: 90 nop <== NOT EXECUTED
10ac98: 89 ca mov %ecx,%edx 10ac9a: 89 c1 mov %eax,%ecx
toPrint[count++] = (char) (unsigned_num - (n * base));
10ac9c: 8a 45 c4 mov -0x3c(%ebp),%al 10ac9f: f6 e1 mul %cl 10aca1: 28 c2 sub %al,%dl 10aca3: 88 54 3d d4 mov %dl,-0x2c(%ebp,%edi,1) 10aca7: 47 inc %edi
} else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) {
10aca8: 89 c8 mov %ecx,%eax 10acaa: 31 d2 xor %edx,%edx 10acac: f7 f3 div %ebx 10acae: 85 c0 test %eax,%eax
10acb0: 75 e6 jne 10ac98 <vprintk+0x154>
10acb2: 8b 5d b0 mov -0x50(%ebp),%ebx 10acb5: 8d 47 01 lea 0x1(%edi),%eax 10acb8: 89 45 c4 mov %eax,-0x3c(%ebp) 10acbb: 89 4d c0 mov %ecx,-0x40(%ebp)
toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num;
10acbe: 8a 45 c0 mov -0x40(%ebp),%al 10acc1: 88 44 3d d4 mov %al,-0x2c(%ebp,%edi,1)
for (n=maxwidth ; n > count; n-- )
10acc5: 3b 5d c4 cmp -0x3c(%ebp),%ebx
10acc8: 76 1f jbe 10ace9 <vprintk+0x1a5>
10acca: 8b 7d c4 mov -0x3c(%ebp),%edi 10accd: 89 75 c0 mov %esi,-0x40(%ebp) 10acd0: 8b 75 b4 mov -0x4c(%ebp),%esi 10acd3: 90 nop
BSP_output_char(lead);
10acd4: 83 ec 0c sub $0xc,%esp 10acd7: 56 push %esi 10acd8: ff 15 84 12 12 00 call *0x121284
toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- )
10acde: 4b dec %ebx 10acdf: 83 c4 10 add $0x10,%esp 10ace2: 39 fb cmp %edi,%ebx
10ace4: 77 ee ja 10acd4 <vprintk+0x190>
10ace6: 8b 75 c0 mov -0x40(%ebp),%esi
BSP_output_char(lead); for (n = 0; n < count; n++) {
10ace9: 8b 45 c4 mov -0x3c(%ebp),%eax 10acec: 85 c0 test %eax,%eax
10acee: 0f 84 7f fe ff ff je 10ab73 <vprintk+0x2f> <== ALWAYS TAKEN
10acf4: 8b 45 c4 mov -0x3c(%ebp),%eax 10acf7: 8d 7c 05 d3 lea -0x2d(%ebp,%eax,1),%edi 10acfb: 31 db xor %ebx,%ebx 10acfd: 89 75 c0 mov %esi,-0x40(%ebp) 10ad00: 89 c6 mov %eax,%esi 10ad02: 66 90 xchg %ax,%ax
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
10ad04: 83 ec 0c sub $0xc,%esp 10ad07: 0f be 07 movsbl (%edi),%eax 10ad0a: 0f be 80 3a fa 11 00 movsbl 0x11fa3a(%eax),%eax 10ad11: 50 push %eax 10ad12: ff 15 84 12 12 00 call *0x121284
toPrint[count++] = (char) unsigned_num; for (n=maxwidth ; n > count; n-- ) BSP_output_char(lead); for (n = 0; n < count; n++) {
10ad18: 43 inc %ebx 10ad19: 4f dec %edi 10ad1a: 83 c4 10 add $0x10,%esp 10ad1d: 39 f3 cmp %esi,%ebx
10ad1f: 72 e3 jb 10ad04 <vprintk+0x1c0>
10ad21: 8b 75 c0 mov -0x40(%ebp),%esi
void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) {
10ad24: 46 inc %esi 10ad25: 8a 06 mov (%esi),%al 10ad27: 84 c0 test %al,%al
10ad29: 0f 85 4f fe ff ff jne 10ab7e <vprintk+0x3a> <== NEVER TAKEN
sign, width, lead ); } }
10ad2f: 8d 65 f4 lea -0xc(%ebp),%esp 10ad32: 5b pop %ebx 10ad33: 5e pop %esi 10ad34: 5f pop %edi 10ad35: c9 leave 10ad36: c3 ret
10ad37: 90 nop <== NOT EXECUTED
base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue;
10ad38: 31 c9 xor %ecx,%ecx 10ad3a: c7 45 b8 08 00 00 00 movl $0x8,-0x48(%ebp) 10ad41: e9 0f ff ff ff jmp 10ac55 <vprintk+0x111>
10ad46: 66 90 xchg %ax,%ax <== NOT EXECUTED
continue; } fmt++; if (*fmt == '0' ) { lead = '0'; fmt++;
10ad48: 46 inc %esi 10ad49: 8a 0e mov (%esi),%cl 10ad4b: b2 30 mov $0x30,%dl
} if (*fmt == '-' ) {
10ad4d: 80 f9 2d cmp $0x2d,%cl
10ad50: 0f 85 46 fe ff ff jne 10ab9c <vprintk+0x58> <== NEVER TAKEN
minus = true; fmt++;
10ad56: 46 inc %esi 10ad57: 8a 0e mov (%esi),%cl 10ad59: c6 45 c4 01 movb $0x1,-0x3c(%ebp)
} while (*fmt >= '0' && *fmt <= '9' ) {
10ad5d: 8d 41 d0 lea -0x30(%ecx),%eax 10ad60: 3c 09 cmp $0x9,%al
10ad62: 0f 86 43 fe ff ff jbe 10abab <vprintk+0x67> <== NEVER TAKEN
10ad68: 31 db xor %ebx,%ebx
width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') {
10ad6a: 80 f9 6c cmp $0x6c,%cl
10ad6d: 0f 85 5a fe ff ff jne 10abcd <vprintk+0x89>
10ad73: 90 nop
lflag = true; c = *++fmt;
10ad74: 46 inc %esi 10ad75: 8a 0e mov (%esi),%cl
} if ( c == 'c' ) {
10ad77: 80 f9 63 cmp $0x63,%cl
10ad7a: 0f 85 56 fe ff ff jne 10abd6 <vprintk+0x92> <== NEVER TAKEN
/* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int);
10ad80: 8d 47 04 lea 0x4(%edi),%eax 10ad83: 89 45 bc mov %eax,-0x44(%ebp)
BSP_output_char(chr);
10ad86: 83 ec 0c sub $0xc,%esp 10ad89: 0f be 07 movsbl (%edi),%eax 10ad8c: 50 push %eax 10ad8d: ff 15 84 12 12 00 call *0x121284
continue;
10ad93: 83 c4 10 add $0x10,%esp 10ad96: e9 d8 fd ff ff jmp 10ab73 <vprintk+0x2f>
10ad9b: 90 nop <== NOT EXECUTED
} if ( c == 's' ) { unsigned i, len; char *s, *str; str = va_arg(ap, char *);
10ad9c: 8d 47 04 lea 0x4(%edi),%eax 10ad9f: 89 45 bc mov %eax,-0x44(%ebp) 10ada2: 8b 07 mov (%edi),%eax
if ( str == NULL ) {
10ada4: 85 c0 test %eax,%eax
10ada6: 0f 84 19 01 00 00 je 10aec5 <vprintk+0x381> str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ )
10adac: 80 38 00 cmpb $0x0,(%eax)
10adaf: 0f 84 1e 01 00 00 je 10aed3 <vprintk+0x38f>
10adb5: 31 ff xor %edi,%edi 10adb7: 90 nop 10adb8: 47 inc %edi 10adb9: 80 3c 38 00 cmpb $0x0,(%eax,%edi,1)
10adbd: 75 f9 jne 10adb8 <vprintk+0x274> ; /* leading spaces */ if ( !minus )
10adbf: 80 7d c4 00 cmpb $0x0,-0x3c(%ebp)
10adc3: 75 30 jne 10adf5 <vprintk+0x2b1> for ( i=len ; i<width ; i++ )
10adc5: 39 fb cmp %edi,%ebx
10adc7: 76 2c jbe 10adf5 <vprintk+0x2b1>
10adc9: 89 fa mov %edi,%edx 10adcb: 89 7d c0 mov %edi,-0x40(%ebp) 10adce: 89 c7 mov %eax,%edi 10add0: 89 75 b8 mov %esi,-0x48(%ebp) 10add3: 89 de mov %ebx,%esi 10add5: 89 d3 mov %edx,%ebx 10add7: 90 nop
BSP_output_char(' ');
10add8: 83 ec 0c sub $0xc,%esp 10addb: 6a 20 push $0x20 10addd: ff 15 84 12 12 00 call *0x121284
for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i<width ; i++ )
10ade3: 43 inc %ebx 10ade4: 83 c4 10 add $0x10,%esp 10ade7: 39 f3 cmp %esi,%ebx
10ade9: 72 ed jb 10add8 <vprintk+0x294>
10adeb: 89 f3 mov %esi,%ebx 10aded: 89 f8 mov %edi,%eax 10adef: 8b 7d c0 mov -0x40(%ebp),%edi 10adf2: 8b 75 b8 mov -0x48(%ebp),%esi
BSP_output_char(' '); /* no width option */ if (width == 0) {
10adf5: 85 db test %ebx,%ebx
10adf7: 75 06 jne 10adff <vprintk+0x2bb> width = len; } /* output the string */ for ( i=0 ; i<width && *str ; str++ )
10adf9: 85 ff test %edi,%edi
10adfb: 74 47 je 10ae44 <vprintk+0x300>
10adfd: 89 fb mov %edi,%ebx 10adff: 8a 10 mov (%eax),%dl 10ae01: 84 d2 test %dl,%dl
10ae03: 74 3f je 10ae44 <vprintk+0x300> <== ALWAYS TAKEN
BSP_output_char(*str);
10ae05: 83 ec 0c sub $0xc,%esp 10ae08: 0f be d2 movsbl %dl,%edx 10ae0b: 52 push %edx 10ae0c: 89 45 ac mov %eax,-0x54(%ebp) 10ae0f: ff 15 84 12 12 00 call *0x121284
if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i<width && *str ; str++ )
10ae15: 8b 45 ac mov -0x54(%ebp),%eax 10ae18: 40 inc %eax 10ae19: 83 c4 10 add $0x10,%esp 10ae1c: 89 75 c0 mov %esi,-0x40(%ebp) 10ae1f: 89 de mov %ebx,%esi 10ae21: 89 c3 mov %eax,%ebx 10ae23: eb 14 jmp 10ae39 <vprintk+0x2f5>
10ae25: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED
BSP_output_char(*str);
10ae28: 83 ec 0c sub $0xc,%esp 10ae2b: 0f be d2 movsbl %dl,%edx 10ae2e: 52 push %edx 10ae2f: ff 15 84 12 12 00 call *0x121284
if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i<width && *str ; str++ )
10ae35: 43 inc %ebx 10ae36: 83 c4 10 add $0x10,%esp 10ae39: 8a 13 mov (%ebx),%dl 10ae3b: 84 d2 test %dl,%dl
10ae3d: 75 e9 jne 10ae28 <vprintk+0x2e4>
10ae3f: 89 f3 mov %esi,%ebx 10ae41: 8b 75 c0 mov -0x40(%ebp),%esi
BSP_output_char(*str); /* trailing spaces */ if ( minus )
10ae44: 80 7d c4 00 cmpb $0x0,-0x3c(%ebp)
10ae48: 0f 84 25 fd ff ff je 10ab73 <vprintk+0x2f> for ( i=len ; i<width ; i++ )
10ae4e: 39 df cmp %ebx,%edi
10ae50: 0f 83 1d fd ff ff jae 10ab73 <vprintk+0x2f>
10ae56: 66 90 xchg %ax,%ax
BSP_output_char(' ');
10ae58: 83 ec 0c sub $0xc,%esp 10ae5b: 6a 20 push $0x20 10ae5d: ff 15 84 12 12 00 call *0x121284
for ( i=0 ; i<width && *str ; str++ ) BSP_output_char(*str); /* trailing spaces */ if ( minus ) for ( i=len ; i<width ; i++ )
10ae63: 47 inc %edi 10ae64: 83 c4 10 add $0x10,%esp 10ae67: 39 df cmp %ebx,%edi
10ae69: 72 ed jb 10ae58 <vprintk+0x314>
10ae6b: e9 03 fd ff ff jmp 10ab73 <vprintk+0x2f>
base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue;
10ae70: 31 c9 xor %ecx,%ecx 10ae72: c7 45 b8 0a 00 00 00 movl $0xa,-0x48(%ebp) 10ae79: e9 d7 fd ff ff jmp 10ac55 <vprintk+0x111>
unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-');
10ae7e: 83 ec 0c sub $0xc,%esp 10ae81: 6a 2d push $0x2d 10ae83: ff 15 84 12 12 00 call *0x121284
unsigned_num = (unsigned long) -num;
10ae89: f7 df neg %edi 10ae8b: 89 7d c0 mov %edi,-0x40(%ebp)
if (maxwidth) maxwidth--;
10ae8e: 83 c4 10 add $0x10,%esp 10ae91: 83 fb 01 cmp $0x1,%ebx 10ae94: 83 d3 ff adc $0xffffffff,%ebx
} else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) {
10ae97: 8b 45 c0 mov -0x40(%ebp),%eax 10ae9a: 31 d2 xor %edx,%edx 10ae9c: f7 75 b8 divl -0x48(%ebp) 10ae9f: 89 c1 mov %eax,%ecx 10aea1: 85 c0 test %eax,%eax
10aea3: 0f 85 db fd ff ff jne 10ac84 <vprintk+0x140> <== NEVER TAKEN
10aea9: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) 10aeb0: 31 ff xor %edi,%edi 10aeb2: e9 07 fe ff ff jmp 10acbe <vprintk+0x17a>
base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue;
10aeb7: 31 c9 xor %ecx,%ecx 10aeb9: c7 45 b8 10 00 00 00 movl $0x10,-0x48(%ebp) 10aec0: e9 90 fd ff ff jmp 10ac55 <vprintk+0x111>
unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) {
10aec5: b8 39 fa 11 00 mov $0x11fa39,%eax
str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ )
10aeca: 80 38 00 cmpb $0x0,(%eax)
10aecd: 0f 85 e2 fe ff ff jne 10adb5 <vprintk+0x271> <== ALWAYS TAKEN
10aed3: 31 ff xor %edi,%edi 10aed5: e9 e5 fe ff ff jmp 10adbf <vprintk+0x27b>
} else { BSP_output_char(c); continue; } printNum(
10aeda: 0f be d2 movsbl %dl,%edx 10aedd: 89 55 b4 mov %edx,-0x4c(%ebp) 10aee0: 31 c9 xor %ecx,%ecx 10aee2: c7 45 b8 10 00 00 00 movl $0x10,-0x48(%ebp) 10aee9: e9 6d fd ff ff jmp 10ac5b <vprintk+0x117>
0011db90 <write>: ssize_t write( int fd, const void *buffer, size_t count ) {
11db90: 55 push %ebp 11db91: 89 e5 mov %esp,%ebp 11db93: 53 push %ebx 11db94: 83 ec 04 sub $0x4,%esp 11db97: 8b 5d 08 mov 0x8(%ebp),%ebx 11db9a: 8b 45 0c mov 0xc(%ebp),%eax 11db9d: 8b 55 10 mov 0x10(%ebp),%edx
ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd );
11dba0: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx
11dba6: 73 50 jae 11dbf8 <write+0x68> <== ALWAYS TAKEN
iop = rtems_libio_iop( fd );
11dba8: c1 e3 06 shl $0x6,%ebx 11dbab: 03 1d c0 51 12 00 add 0x1251c0,%ebx
rtems_libio_check_is_open( iop );
11dbb1: 8b 4b 14 mov 0x14(%ebx),%ecx 11dbb4: f6 c5 01 test $0x1,%ch
11dbb7: 74 3f je 11dbf8 <write+0x68> <== ALWAYS TAKEN
rtems_libio_check_buffer( buffer );
11dbb9: 85 c0 test %eax,%eax
11dbbb: 74 4f je 11dc0c <write+0x7c> <== ALWAYS TAKEN
rtems_libio_check_count( count );
11dbbd: 85 d2 test %edx,%edx
11dbbf: 74 2f je 11dbf0 <write+0x60> rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
11dbc1: 83 e1 04 and $0x4,%ecx
11dbc4: 74 46 je 11dc0c <write+0x7c> <== ALWAYS TAKEN
/* * Now process the write() request. */ if ( !iop->handlers->write_h )
11dbc6: 8b 4b 3c mov 0x3c(%ebx),%ecx 11dbc9: 8b 49 0c mov 0xc(%ecx),%ecx 11dbcc: 85 c9 test %ecx,%ecx
11dbce: 74 4e je 11dc1e <write+0x8e> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count );
11dbd0: 83 ec 04 sub $0x4,%esp 11dbd3: 52 push %edx 11dbd4: 50 push %eax 11dbd5: 53 push %ebx 11dbd6: ff d1 call *%ecx
if ( rc > 0 )
11dbd8: 83 c4 10 add $0x10,%esp 11dbdb: 85 c0 test %eax,%eax
11dbdd: 7e 0b jle 11dbea <write+0x5a> <== ALWAYS TAKEN
iop->offset += rc;
11dbdf: 89 c1 mov %eax,%ecx 11dbe1: c1 f9 1f sar $0x1f,%ecx 11dbe4: 01 43 0c add %eax,0xc(%ebx) 11dbe7: 11 4b 10 adc %ecx,0x10(%ebx)
return rc; }
11dbea: 8b 5d fc mov -0x4(%ebp),%ebx 11dbed: c9 leave 11dbee: c3 ret
11dbef: 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 );
11dbf0: 31 c0 xor %eax,%eax
if ( rc > 0 ) iop->offset += rc; return rc; }
11dbf2: 8b 5d fc mov -0x4(%ebp),%ebx 11dbf5: c9 leave 11dbf6: c3 ret
11dbf7: 90 nop <== NOT EXECUTED
ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop );
11dbf8: e8 bb 48 ff ff call 1124b8 <__errno> <== NOT EXECUTED 11dbfd: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 11dc03: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11dc08: eb e0 jmp 11dbea <write+0x5a> <== NOT EXECUTED 11dc0a: 66 90 xchg %ax,%ax <== NOT EXECUTED
rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
11dc0c: e8 a7 48 ff ff call 1124b8 <__errno> <== NOT EXECUTED 11dc11: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 11dc17: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11dc1c: eb cc jmp 11dbea <write+0x5a> <== NOT EXECUTED
/* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP );
11dc1e: e8 95 48 ff ff call 1124b8 <__errno> <== NOT EXECUTED 11dc23: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11dc29: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11dc2e: eb ba jmp 11dbea <write+0x5a> <== NOT EXECUTED
0010c31c <writev>: ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) {
10c31c: 55 push %ebp 10c31d: 89 e5 mov %esp,%ebp 10c31f: 57 push %edi 10c320: 56 push %esi 10c321: 53 push %ebx 10c322: 83 ec 3c sub $0x3c,%esp 10c325: 8b 45 08 mov 0x8(%ebp),%eax 10c328: 8b 5d 0c mov 0xc(%ebp),%ebx 10c32b: 8b 7d 10 mov 0x10(%ebp),%edi
int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd );
10c32e: 3b 05 ac 5d 12 00 cmp 0x125dac,%eax
10c334: 0f 83 f2 00 00 00 jae 10c42c <writev+0x110> <== ALWAYS TAKEN
iop = rtems_libio_iop( fd );
10c33a: c1 e0 06 shl $0x6,%eax 10c33d: 8b 15 20 a6 12 00 mov 0x12a620,%edx 10c343: 01 d0 add %edx,%eax 10c345: 89 45 e4 mov %eax,-0x1c(%ebp)
rtems_libio_check_is_open( iop );
10c348: 8b 40 14 mov 0x14(%eax),%eax 10c34b: f6 c4 01 test $0x1,%ah
10c34e: 0f 84 d8 00 00 00 je 10c42c <writev+0x110> rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
10c354: a8 04 test $0x4,%al
10c356: 74 7c je 10c3d4 <writev+0xb8> <== ALWAYS TAKEN
/* * Argument validation on IO vector */ if ( !iov )
10c358: 85 db test %ebx,%ebx
10c35a: 74 78 je 10c3d4 <writev+0xb8> rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 )
10c35c: 85 ff test %edi,%edi
10c35e: 7e 74 jle 10c3d4 <writev+0xb8> rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX )
10c360: 81 ff 00 04 00 00 cmp $0x400,%edi
10c366: 7f 6c jg 10c3d4 <writev+0xb8> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h )
10c368: 8b 55 e4 mov -0x1c(%ebp),%edx 10c36b: 8b 42 3c mov 0x3c(%edx),%eax 10c36e: 8b 48 0c mov 0xc(%eax),%ecx 10c371: 85 c9 test %ecx,%ecx
10c373: 0f 84 c5 00 00 00 je 10c43e <writev+0x122> <== ALWAYS TAKEN
rtems_set_errno_and_return_minus_one( ENOTSUP );
10c379: be 01 00 00 00 mov $0x1,%esi 10c37e: 31 c0 xor %eax,%eax 10c380: 31 c9 xor %ecx,%ecx 10c382: eb 02 jmp 10c386 <writev+0x6a>
* 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++ ) {
10c384: 89 d1 mov %edx,%ecx
if ( !iov[v].iov_base )
10c386: 8b 14 c3 mov (%ebx,%eax,8),%edx 10c389: 85 d2 test %edx,%edx
10c38b: 74 47 je 10c3d4 <writev+0xb8> 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 )
10c38d: 8b 54 c3 04 mov 0x4(%ebx,%eax,8),%edx 10c391: 85 d2 test %edx,%edx
10c393: 74 02 je 10c397 <writev+0x7b>
10c395: 31 f6 xor %esi,%esi
all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len;
10c397: 8d 14 11 lea (%ecx,%edx,1),%edx
if ( total < old || total > SSIZE_MAX )
10c39a: 39 d1 cmp %edx,%ecx
10c39c: 7f 36 jg 10c3d4 <writev+0xb8>
10c39e: 81 fa ff 7f 00 00 cmp $0x7fff,%edx
10c3a4: 7f 2e jg 10c3d4 <writev+0xb8> <== ALWAYS TAKEN
* 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++ ) {
10c3a6: 40 inc %eax 10c3a7: 39 c7 cmp %eax,%edi
10c3a9: 7f d9 jg 10c384 <writev+0x68> } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) {
10c3ab: 89 f1 mov %esi,%ecx 10c3ad: 84 c9 test %cl,%cl
10c3af: 75 3d jne 10c3ee <writev+0xd2>
10c3b1: 31 f6 xor %esi,%esi 10c3b3: 31 d2 xor %edx,%edx 10c3b5: 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 )
10c3b8: 8b 44 f3 04 mov 0x4(%ebx,%esi,8),%eax 10c3bc: 85 c0 test %eax,%eax
10c3be: 75 32 jne 10c3f2 <writev+0xd6> <== NEVER TAKEN
} /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) {
10c3c0: 46 inc %esi 10c3c1: 39 f7 cmp %esi,%edi
10c3c3: 7f f3 jg 10c3b8 <writev+0x9c>
10c3c5: 8b 55 c0 mov -0x40(%ebp),%edx
if (bytes != iov[ v ].iov_len) break; } return total; }
10c3c8: 89 d0 mov %edx,%eax 10c3ca: 8d 65 f4 lea -0xc(%ebp),%esp 10c3cd: 5b pop %ebx 10c3ce: 5e pop %esi 10c3cf: 5f pop %edi 10c3d0: c9 leave 10c3d1: c3 ret
10c3d2: 66 90 xchg %ax,%ax <== NOT EXECUTED
/* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) rtems_set_errno_and_return_minus_one( EINVAL );
10c3d4: e8 ff 83 00 00 call 1147d8 <__errno> 10c3d9: c7 00 16 00 00 00 movl $0x16,(%eax) 10c3df: ba ff ff ff ff mov $0xffffffff,%edx
if (bytes != iov[ v ].iov_len) break; } return total; }
10c3e4: 89 d0 mov %edx,%eax 10c3e6: 8d 65 f4 lea -0xc(%ebp),%esp 10c3e9: 5b pop %ebx 10c3ea: 5e pop %esi 10c3eb: 5f pop %edi 10c3ec: c9 leave 10c3ed: c3 ret
} /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) {
10c3ee: 31 d2 xor %edx,%edx 10c3f0: eb f2 jmp 10c3e4 <writev+0xc8>
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 );
10c3f2: 52 push %edx 10c3f3: 8b 4d e4 mov -0x1c(%ebp),%ecx 10c3f6: 8b 51 3c mov 0x3c(%ecx),%edx 10c3f9: 50 push %eax 10c3fa: ff 34 f3 pushl (%ebx,%esi,8) 10c3fd: 51 push %ecx 10c3fe: ff 52 0c call *0xc(%edx) 10c401: 89 45 c4 mov %eax,-0x3c(%ebp)
if ( bytes < 0 )
10c404: 83 c4 10 add $0x10,%esp 10c407: 83 f8 00 cmp $0x0,%eax
10c40a: 7c 42 jl 10c44e <writev+0x132> <== ALWAYS TAKEN
return -1; if ( bytes > 0 ) {
10c40c: 74 13 je 10c421 <writev+0x105> <== ALWAYS TAKEN
iop->offset += bytes;
10c40e: 8b 45 c4 mov -0x3c(%ebp),%eax 10c411: 99 cltd 10c412: 8b 4d e4 mov -0x1c(%ebp),%ecx 10c415: 01 41 0c add %eax,0xc(%ecx) 10c418: 11 51 10 adc %edx,0x10(%ecx)
total += bytes;
10c41b: 8b 45 c4 mov -0x3c(%ebp),%eax 10c41e: 01 45 c0 add %eax,-0x40(%ebp)
} if (bytes != iov[ v ].iov_len)
10c421: 8b 55 c4 mov -0x3c(%ebp),%edx 10c424: 3b 54 f3 04 cmp 0x4(%ebx,%esi,8),%edx
10c428: 74 96 je 10c3c0 <writev+0xa4> <== NEVER TAKEN
10c42a: eb 99 jmp 10c3c5 <writev+0xa9> <== NOT EXECUTED
ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop );
10c42c: e8 a7 83 00 00 call 1147d8 <__errno> 10c431: c7 00 09 00 00 00 movl $0x9,(%eax) 10c437: ba ff ff ff ff mov $0xffffffff,%edx 10c43c: eb a6 jmp 10c3e4 <writev+0xc8>
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 );
10c43e: e8 95 83 00 00 call 1147d8 <__errno> <== NOT EXECUTED 10c443: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10c449: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED 10c44c: eb 96 jmp 10c3e4 <writev+0xc8> <== 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 )
10c44e: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED 10c451: eb 91 jmp 10c3e4 <writev+0xc8> <== NOT EXECUTED