0010e970 : #define MAXSYMLINK 5 int IMFS_Set_handlers( rtems_filesystem_location_info_t *loc ) { 10e970: 55 push %ebp 10e971: 89 e5 mov %esp,%ebp 10e973: 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; 10e976: 8b 50 10 mov 0x10(%eax),%edx 10e979: 8b 4a 34 mov 0x34(%edx),%ecx switch( node->type ) { 10e97c: 8b 10 mov (%eax),%edx 10e97e: 83 7a 4c 07 cmpl $0x7,0x4c(%edx) 10e982: 77 12 ja 10e996 <== ALWAYS TAKEN 10e984: 8b 52 4c mov 0x4c(%edx),%edx 10e987: ff 24 95 08 fc 11 00 jmp *0x11fc08(,%edx,4) 10e98e: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 10e990: 8b 51 08 mov 0x8(%ecx),%edx 10e993: 89 50 08 mov %edx,0x8(%eax) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 10e996: 31 c0 xor %eax,%eax 10e998: c9 leave 10e999: c3 ret 10e99a: 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; 10e99c: 8b 51 04 mov 0x4(%ecx),%edx 10e99f: 89 50 08 mov %edx,0x8(%eax) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 10e9a2: 31 c0 xor %eax,%eax 10e9a4: c9 leave 10e9a5: c3 ret 10e9a6: 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; 10e9a8: c7 40 08 40 fd 11 00 movl $0x11fd40,0x8(%eax) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 10e9af: 31 c0 xor %eax,%eax 10e9b1: c9 leave 10e9b2: c3 ret 10e9b3: 90 nop <== NOT EXECUTED break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; 10e9b4: c7 40 08 40 fc 11 00 movl $0x11fc40,0x8(%eax) break; } return 0; } 10e9bb: 31 c0 xor %eax,%eax 10e9bd: c9 leave 10e9be: c3 ret 10e9bf: 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; 10e9c0: c7 40 08 00 fd 11 00 movl $0x11fd00,0x8(%eax) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 10e9c7: 31 c0 xor %eax,%eax 10e9c9: c9 leave 10e9ca: c3 ret 00111524 : IMFS_jnode_t *IMFS_allocate_node( IMFS_jnode_types_t type, const char *name, mode_t mode ) { 111524: 55 push %ebp 111525: 89 e5 mov %esp,%ebp 111527: 53 push %ebx 111528: 83 ec 1c sub $0x1c,%esp struct timeval tv; /* * Allocate an IMFS jnode */ node = calloc( 1, sizeof( IMFS_jnode_t ) ); 11152b: 6a 64 push $0x64 11152d: 6a 01 push $0x1 11152f: e8 e0 e1 ff ff call 10f714 111534: 89 c3 mov %eax,%ebx if ( !node ) 111536: 83 c4 10 add $0x10,%esp 111539: 85 c0 test %eax,%eax 11153b: 74 49 je 111586 <== ALWAYS TAKEN return NULL; /* * Fill in the basic information */ node->st_nlink = 1; 11153d: 66 c7 40 34 01 00 movw $0x1,0x34(%eax) node->type = type; 111543: 8b 45 08 mov 0x8(%ebp),%eax 111546: 89 43 4c mov %eax,0x4c(%ebx) strncpy( node->name, name, IMFS_NAME_MAX ); 111549: 51 push %ecx 11154a: 6a 20 push $0x20 11154c: ff 75 0c pushl 0xc(%ebp) 11154f: 8d 43 0c lea 0xc(%ebx),%eax 111552: 50 push %eax 111553: e8 04 1a 00 00 call 112f5c /* * Fill in the mode and permission information for the jnode structure. */ node->st_mode = mode; 111558: 8b 45 10 mov 0x10(%ebp),%eax 11155b: 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; 11155e: 66 c7 43 3c 00 00 movw $0x0,0x3c(%ebx) node->st_gid = 0; 111564: 66 c7 43 3e 00 00 movw $0x0,0x3e(%ebx) #endif /* * Now set all the times. */ gettimeofday( &tv, 0 ); 11156a: 58 pop %eax 11156b: 5a pop %edx 11156c: 6a 00 push $0x0 11156e: 8d 45 f0 lea -0x10(%ebp),%eax 111571: 50 push %eax 111572: e8 29 e3 ff ff call 10f8a0 node->stat_atime = (time_t) tv.tv_sec; 111577: 8b 45 f0 mov -0x10(%ebp),%eax 11157a: 89 43 40 mov %eax,0x40(%ebx) node->stat_mtime = (time_t) tv.tv_sec; 11157d: 89 43 44 mov %eax,0x44(%ebx) node->stat_ctime = (time_t) tv.tv_sec; 111580: 89 43 48 mov %eax,0x48(%ebx) return node; 111583: 83 c4 10 add $0x10,%esp } 111586: 89 d8 mov %ebx,%eax 111588: 8b 5d fc mov -0x4(%ebp),%ebx 11158b: c9 leave 11158c: c3 ret 001115c4 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 1115c4: 55 push %ebp 1115c5: 89 e5 mov %esp,%ebp 1115c7: 57 push %edi 1115c8: 56 push %esi 1115c9: 53 push %ebx 1115ca: 83 ec 1c sub $0x1c,%esp 1115cd: 8b 5d 08 mov 0x8(%ebp),%ebx 1115d0: 8b 75 0c mov 0xc(%ebp),%esi 1115d3: 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 ) 1115d6: 85 db test %ebx,%ebx 1115d8: 75 0a jne 1115e4 <== NEVER TAKEN 1115da: 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; } 1115dc: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1115df: 5b pop %ebx <== NOT EXECUTED 1115e0: 5e pop %esi <== NOT EXECUTED 1115e1: 5f pop %edi <== NOT EXECUTED 1115e2: c9 leave <== NOT EXECUTED 1115e3: c3 ret <== NOT EXECUTED return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); 1115e4: 50 push %eax 1115e5: a1 f8 2f 12 00 mov 0x122ff8,%eax 1115ea: 8b 40 2c mov 0x2c(%eax),%eax 1115ed: f7 d0 not %eax 1115ef: 23 45 14 and 0x14(%ebp),%eax 1115f2: 50 push %eax 1115f3: ff 75 10 pushl 0x10(%ebp) 1115f6: 56 push %esi 1115f7: e8 28 ff ff ff call 111524 <== ALWAYS TAKEN if ( !node ) 1115fc: 83 c4 10 add $0x10,%esp 1115ff: 85 c0 test %eax,%eax 111601: 74 d9 je 1115dc <== ALWAYS TAKEN return NULL; /* * Set the type specific information */ switch (type) { 111603: 83 fe 07 cmp $0x7,%esi 111606: 76 18 jbe 111620 <== NEVER TAKEN case IMFS_FIFO: node->info.fifo.pipe = NULL; break; default: assert(0); 111608: 68 55 f6 11 00 push $0x11f655 <== NOT EXECUTED 11160d: 68 1c ff 11 00 push $0x11ff1c <== NOT EXECUTED 111612: 6a 5c push $0x5c <== NOT EXECUTED 111614: 68 b0 fe 11 00 push $0x11feb0 <== NOT EXECUTED 111619: e8 6a 66 ff ff call 107c88 <__assert_func> <== NOT EXECUTED 11161e: 66 90 xchg %ax,%ax <== NOT EXECUTED return NULL; /* * Set the type specific information */ switch (type) { 111620: ff 24 b5 fc fe 11 00 jmp *0x11fefc(,%esi,4) 111627: 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; 111628: 8b 17 mov (%edi),%edx 11162a: 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; 11162d: 8b 13 mov (%ebx),%edx fs_info = parent_loc->mt_entry->fs_info; 11162f: 8b 4b 10 mov 0x10(%ebx),%ecx 111632: 8b 59 34 mov 0x34(%ecx),%ebx node->Parent = parent; 111635: 89 50 08 mov %edx,0x8(%eax) node->st_ino = ++fs_info->ino_count; 111638: 8b 0b mov (%ebx),%ecx 11163a: 41 inc %ecx 11163b: 89 0b mov %ecx,(%ebx) 11163d: 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 ); 111640: 83 ec 08 sub $0x8,%esp 111643: 50 push %eax 111644: 83 c2 50 add $0x50,%edx 111647: 52 push %edx 111648: 89 45 e4 mov %eax,-0x1c(%ebp) 11164b: e8 dc a7 ff ff call 10be2c <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; 111650: 83 c4 10 add $0x10,%esp 111653: 8b 45 e4 mov -0x1c(%ebp),%eax } 111656: 8d 65 f4 lea -0xc(%ebp),%esp 111659: 5b pop %ebx 11165a: 5e pop %esi 11165b: 5f pop %edi 11165c: c9 leave 11165d: c3 ret 11165e: 66 90 xchg %ax,%ax <== NOT EXECUTED node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 111660: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) <== NOT EXECUTED 111667: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) <== NOT EXECUTED node->info.linearfile.direct = 0; 11166e: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax) <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 111675: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) 11167c: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) node->info.file.indirect = 0; 111683: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax) node->info.file.doubly_indirect = 0; 11168a: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax) node->info.file.triply_indirect = 0; 111691: c7 40 60 00 00 00 00 movl $0x0,0x60(%eax) break; 111698: eb 93 jmp 11162d <== ALWAYS TAKEN 11169a: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_FIFO: node->info.fifo.pipe = NULL; 11169c: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) break; 1116a3: eb 88 jmp 11162d 1116a5: 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; 1116a8: 8b 17 mov (%edi),%edx 1116aa: 89 50 50 mov %edx,0x50(%eax) node->info.device.minor = info->device.minor; 1116ad: 8b 57 04 mov 0x4(%edi),%edx 1116b0: 89 50 54 mov %edx,0x54(%eax) break; 1116b3: e9 75 ff ff ff jmp 11162d <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 1116b8: 8d 50 54 lea 0x54(%eax),%edx 1116bb: 89 50 50 mov %edx,0x50(%eax) the_chain->permanent_null = NULL; 1116be: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) the_chain->last = _Chain_Head(the_chain); 1116c5: 8d 50 50 lea 0x50(%eax),%edx 1116c8: 89 50 58 mov %edx,0x58(%eax) 1116cb: e9 5d ff ff ff jmp 11162d <== ALWAYS TAKEN 00111590 : IMFS_jnode_t *IMFS_create_root_node(void) { 111590: 55 push %ebp 111591: 89 e5 mov %esp,%ebp 111593: 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) ); 111596: 68 ed 41 00 00 push $0x41ed 11159b: 68 6f f8 11 00 push $0x11f86f 1115a0: 6a 01 push $0x1 1115a2: e8 7d ff ff ff call 111524 <== ALWAYS TAKEN if ( !node ) 1115a7: 83 c4 10 add $0x10,%esp 1115aa: 85 c0 test %eax,%eax 1115ac: 74 13 je 1115c1 <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 1115ae: 8d 50 54 lea 0x54(%eax),%edx 1115b1: 89 50 50 mov %edx,0x50(%eax) the_chain->permanent_null = NULL; 1115b4: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) the_chain->last = _Chain_Head(the_chain); 1115bb: 8d 50 50 lea 0x50(%eax),%edx 1115be: 89 50 58 mov %edx,0x58(%eax) * NOTE: Root node is always a directory. */ rtems_chain_initialize_empty(&node->info.directory.Entries); return node; } 1115c1: c9 leave 1115c2: c3 ret 001094bc : * NOTE: Assuming the "/" directory is bad. * Not checking that the starting directory is in an IMFS is bad. */ void IMFS_dump( void ) { 1094bc: 55 push %ebp 1094bd: 89 e5 mov %esp,%ebp 1094bf: 83 ec 08 sub $0x8,%esp fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" ); 1094c2: a1 c0 9f 12 00 mov 0x129fc0,%eax 1094c7: ff 70 08 pushl 0x8(%eax) 1094ca: 6a 34 push $0x34 1094cc: 6a 01 push $0x1 1094ce: 68 c0 4e 12 00 push $0x124ec0 1094d3: e8 20 dc 00 00 call 1170f8 fprintf(stdout, "/\n" ); 1094d8: a1 c0 9f 12 00 mov 0x129fc0,%eax 1094dd: ff 70 08 pushl 0x8(%eax) 1094e0: 6a 02 push $0x2 1094e2: 6a 01 push $0x1 1094e4: 68 2e 4e 12 00 push $0x124e2e 1094e9: e8 0a dc 00 00 call 1170f8 IMFS_dump_directory( rtems_filesystem_root.node_access, 0 ); 1094ee: 83 c4 18 add $0x18,%esp 1094f1: 6a 00 push $0x0 1094f3: a1 14 9f 12 00 mov 0x129f14,%eax 1094f8: ff 70 18 pushl 0x18(%eax) 1094fb: e8 e4 fe ff ff call 1093e4 <== ALWAYS TAKEN fprintf(stdout, "*************** End of Dump ***************\n" ); 109500: a1 c0 9f 12 00 mov 0x129fc0,%eax 109505: ff 70 08 pushl 0x8(%eax) 109508: 6a 39 push $0x39 10950a: 6a 01 push $0x1 10950c: 68 f8 4e 12 00 push $0x124ef8 109511: e8 e2 db 00 00 call 1170f8 109516: 83 c4 20 add $0x20,%esp } 109519: c9 leave 10951a: c3 ret 001093e4 : void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 1093e4: 55 push %ebp 1093e5: 89 e5 mov %esp,%ebp 1093e7: 57 push %edi 1093e8: 56 push %esi 1093e9: 53 push %ebx 1093ea: 83 ec 1c sub $0x1c,%esp 1093ed: 8b 45 08 mov 0x8(%ebp),%eax 1093f0: 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 ); 1093f3: 85 c0 test %eax,%eax 1093f5: 74 7a je 109471 <== ALWAYS TAKEN assert( level >= 0 ); 1093f7: 85 f6 test %esi,%esi 1093f9: 0f 88 a4 00 00 00 js 1094a3 <== ALWAYS TAKEN assert( the_directory->type == IMFS_DIRECTORY ); 1093ff: 83 78 4c 01 cmpl $0x1,0x4c(%eax) 109403: 0f 85 81 00 00 00 jne 10948a <== ALWAYS TAKEN the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 109409: 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; 10940c: 83 c0 54 add $0x54,%eax 10940f: 89 45 e4 mov %eax,-0x1c(%ebp) 109412: 39 c7 cmp %eax,%edi 109414: 74 41 je 109457 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 ); 109416: 8d 46 01 lea 0x1(%esi),%eax 109419: 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; 10941c: 31 db xor %ebx,%ebx 10941e: 66 90 xchg %ax,%ax for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 109420: a1 c0 9f 12 00 mov 0x129fc0,%eax 109425: ff 70 08 pushl 0x8(%eax) 109428: 6a 04 push $0x4 10942a: 6a 01 push $0x1 10942c: 68 29 4e 12 00 push $0x124e29 109431: e8 c2 dc 00 00 call 1170f8 !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++ ) 109436: 43 inc %ebx 109437: 83 c4 10 add $0x10,%esp 10943a: 39 de cmp %ebx,%esi 10943c: 7d e2 jge 109420 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 10943e: 83 ec 0c sub $0xc,%esp 109441: 57 push %edi 109442: e8 f5 fd ff ff call 10923c <== ALWAYS TAKEN if ( the_jnode->type == IMFS_DIRECTORY ) 109447: 83 c4 10 add $0x10,%esp 10944a: 83 7f 4c 01 cmpl $0x1,0x4c(%edi) 10944e: 74 10 je 109460 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 ) { 109450: 8b 3f mov (%edi),%edi assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 109452: 3b 7d e4 cmp -0x1c(%ebp),%edi 109455: 75 c5 jne 10941c fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } 109457: 8d 65 f4 lea -0xc(%ebp),%esp 10945a: 5b pop %ebx 10945b: 5e pop %esi 10945c: 5f pop %edi 10945d: c9 leave 10945e: c3 ret 10945f: 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 ); 109460: 83 ec 08 sub $0x8,%esp 109463: ff 75 e0 pushl -0x20(%ebp) 109466: 57 push %edi 109467: e8 78 ff ff ff call 1093e4 <== ALWAYS TAKEN 10946c: 83 c4 10 add $0x10,%esp 10946f: eb df jmp 109450 <== ALWAYS TAKEN rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 109471: 68 10 4e 12 00 push $0x124e10 <== NOT EXECUTED 109476: 68 54 4f 12 00 push $0x124f54 <== NOT EXECUTED 10947b: 68 84 00 00 00 push $0x84 <== NOT EXECUTED 109480: 68 4c 4e 12 00 push $0x124e4c <== NOT EXECUTED 109485: e8 ca 06 00 00 call 109b54 <__assert_func> <== NOT EXECUTED assert( level >= 0 ); assert( the_directory->type == IMFS_DIRECTORY ); 10948a: 68 98 4e 12 00 push $0x124e98 <== NOT EXECUTED 10948f: 68 54 4f 12 00 push $0x124f54 <== NOT EXECUTED 109494: 68 88 00 00 00 push $0x88 <== NOT EXECUTED 109499: 68 4c 4e 12 00 push $0x124e4c <== NOT EXECUTED 10949e: e8 b1 06 00 00 call 109b54 <__assert_func> <== NOT EXECUTED IMFS_jnode_t *the_jnode; int i; assert( the_directory ); assert( level >= 0 ); 1094a3: 68 1e 4e 12 00 push $0x124e1e <== NOT EXECUTED 1094a8: 68 54 4f 12 00 push $0x124f54 <== NOT EXECUTED 1094ad: 68 86 00 00 00 push $0x86 <== NOT EXECUTED 1094b2: 68 4c 4e 12 00 push $0x124e4c <== NOT EXECUTED 1094b7: e8 98 06 00 00 call 109b54 <__assert_func> <== NOT EXECUTED 0010eb14 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 10eb14: 55 push %ebp 10eb15: 89 e5 mov %esp,%ebp 10eb17: 57 push %edi 10eb18: 56 push %esi 10eb19: 53 push %ebx 10eb1a: 83 ec 5c sub $0x5c,%esp /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 10eb1d: 8b 45 14 mov 0x14(%ebp),%eax 10eb20: 8b 38 mov (%eax),%edi 10eb22: c7 45 a4 00 00 00 00 movl $0x0,-0x5c(%ebp) 10eb29: 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 ); 10eb2c: 8d 55 e4 lea -0x1c(%ebp),%edx 10eb2f: 52 push %edx 10eb30: 53 push %ebx 10eb31: ff 75 0c pushl 0xc(%ebp) 10eb34: 8b 45 08 mov 0x8(%ebp),%eax 10eb37: 03 45 a4 add -0x5c(%ebp),%eax 10eb3a: 50 push %eax 10eb3b: e8 34 08 00 00 call 10f374 <== ALWAYS TAKEN pathnamelen -= len; 10eb40: 8b 55 e4 mov -0x1c(%ebp),%edx i += len; if ( !pathloc->node_access ) 10eb43: 8b 75 14 mov 0x14(%ebp),%esi 10eb46: 8b 0e mov (%esi),%ecx 10eb48: 83 c4 10 add $0x10,%esp 10eb4b: 85 c9 test %ecx,%ecx 10eb4d: 0f 84 d5 00 00 00 je 10ec28 <== ALWAYS TAKEN */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 10eb53: 29 55 0c sub %edx,0xc(%ebp) i += len; 10eb56: 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 ) 10eb59: 85 c0 test %eax,%eax 10eb5b: 75 37 jne 10eb94 * 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 ) { 10eb5d: 83 79 4c 01 cmpl $0x1,0x4c(%ecx) 10eb61: 0f 84 11 01 00 00 je 10ec78 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 10eb67: 83 ec 0c sub $0xc,%esp 10eb6a: ff 75 14 pushl 0x14(%ebp) 10eb6d: e8 fe fd ff ff call 10e970 <== ALWAYS TAKEN 10eb72: 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 ) 10eb75: 8b 55 10 mov 0x10(%ebp),%edx 10eb78: 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; 10eb7b: 8b 75 14 mov 0x14(%ebp),%esi 10eb7e: 8b 0e mov (%esi),%ecx 10eb80: 8b 49 30 mov 0x30(%ecx),%ecx 10eb83: 21 d1 and %edx,%ecx 10eb85: 39 ca cmp %ecx,%edx 10eb87: 0f 85 d3 00 00 00 jne 10ec60 10eb8d: e9 ba 00 00 00 jmp 10ec4c <== ALWAYS TAKEN 10eb92: 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 ) 10eb94: 83 7f 4c 01 cmpl $0x1,0x4c(%edi) 10eb98: 0f 84 b6 00 00 00 je 10ec54 10eb9e: 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 ) { 10eba0: 83 f8 03 cmp $0x3,%eax 10eba3: 74 1b je 10ebc0 10eba5: 83 f8 04 cmp $0x4,%eax 10eba8: 0f 84 8e 00 00 00 je 10ec3c 10ebae: 83 f8 02 cmp $0x2,%eax 10ebb1: 74 51 je 10ec04 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 10ebb3: 83 f8 04 cmp $0x4,%eax 10ebb6: 0f 85 70 ff ff ff jne 10eb2c <== NEVER TAKEN 10ebbc: eb 9f jmp 10eb5d <== NOT EXECUTED 10ebbe: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 10ebc0: 8b 41 4c mov 0x4c(%ecx),%eax 10ebc3: 83 f8 03 cmp $0x3,%eax 10ebc6: 0f 84 f0 00 00 00 je 10ecbc node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 10ebcc: 83 f8 04 cmp $0x4,%eax 10ebcf: 0f 84 5c 01 00 00 je 10ed31 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 10ebd5: 48 dec %eax 10ebd6: 0f 85 01 01 00 00 jne 10ecdd /* * 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 ) { 10ebdc: 8b 47 5c mov 0x5c(%edi),%eax 10ebdf: 85 c0 test %eax,%eax 10ebe1: 0f 85 0b 01 00 00 jne 10ecf2 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 10ebe7: 83 ec 08 sub $0x8,%esp 10ebea: 53 push %ebx 10ebeb: 57 push %edi 10ebec: e8 f3 06 00 00 call 10f2e4 <== ALWAYS TAKEN 10ebf1: 89 c7 mov %eax,%edi if ( !node ) 10ebf3: 83 c4 10 add $0x10,%esp 10ebf6: 85 c0 test %eax,%eax 10ebf8: 74 2e je 10ec28 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 10ebfa: 8b 45 14 mov 0x14(%ebp),%eax 10ebfd: 89 38 mov %edi,(%eax) break; 10ebff: e9 28 ff ff ff jmp 10eb2c <== ALWAYS TAKEN case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 10ec04: a1 f8 2f 12 00 mov 0x122ff8,%eax 10ec09: 3b 48 18 cmp 0x18(%eax),%ecx 10ec0c: 0f 84 1a ff ff ff je 10eb2c /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { 10ec12: 8b 75 14 mov 0x14(%ebp),%esi 10ec15: 8b 46 10 mov 0x10(%esi),%eax /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 10ec18: 3b 48 1c cmp 0x1c(%eax),%ecx 10ec1b: 0f 84 2f 01 00 00 je 10ed50 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 10ec21: 8b 79 08 mov 0x8(%ecx),%edi 10ec24: 85 ff test %edi,%edi 10ec26: 75 d2 jne 10ebfa * 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 ); 10ec28: e8 73 37 00 00 call 1123a0 <__errno> 10ec2d: c7 00 02 00 00 00 movl $0x2,(%eax) 10ec33: b8 ff ff ff ff mov $0xffffffff,%eax 10ec38: eb 12 jmp 10ec4c <== ALWAYS TAKEN 10ec3a: 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 ); 10ec3c: e8 5f 37 00 00 call 1123a0 <__errno> 10ec41: c7 00 5b 00 00 00 movl $0x5b,(%eax) 10ec47: b8 ff ff ff ff mov $0xffffffff,%eax if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 10ec4c: 8d 65 f4 lea -0xc(%ebp),%esp 10ec4f: 5b pop %ebx 10ec50: 5e pop %esi 10ec51: 5f pop %edi 10ec52: c9 leave 10ec53: c3 ret if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 10ec54: 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 ) 10ec56: f6 41 30 40 testb $0x40,0x30(%ecx) 10ec5a: 0f 85 40 ff ff ff jne 10eba0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 10ec60: e8 3b 37 00 00 call 1123a0 <__errno> 10ec65: c7 00 0d 00 00 00 movl $0xd,(%eax) 10ec6b: b8 ff ff ff ff mov $0xffffffff,%eax return result; } 10ec70: 8d 65 f4 lea -0xc(%ebp),%esp 10ec73: 5b pop %ebx 10ec74: 5e pop %esi 10ec75: 5f pop %edi 10ec76: c9 leave 10ec77: 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 ) { 10ec78: 8b 41 5c mov 0x5c(%ecx),%eax 10ec7b: 85 c0 test %eax,%eax 10ec7d: 0f 84 e4 fe ff ff je 10eb67 newloc = node->info.directory.mt_fs->mt_fs_root; 10ec83: 8d 7d d0 lea -0x30(%ebp),%edi 10ec86: 8d 70 1c lea 0x1c(%eax),%esi 10ec89: b9 05 00 00 00 mov $0x5,%ecx 10ec8e: f3 a5 rep movsl %ds:(%esi),%es:(%edi) *pathloc = newloc; 10ec90: 8d 75 d0 lea -0x30(%ebp),%esi 10ec93: b1 05 mov $0x5,%cl 10ec95: 8b 7d 14 mov 0x14(%ebp),%edi 10ec98: f3 a5 rep movsl %ds:(%esi),%es:(%edi) return (*pathloc->ops->evalpath_h)( &pathname[i-len], 10ec9a: 8b 4d 14 mov 0x14(%ebp),%ecx 10ec9d: 8b 41 0c mov 0xc(%ecx),%eax 10eca0: 51 push %ecx 10eca1: ff 75 10 pushl 0x10(%ebp) 10eca4: 8b 4d 0c mov 0xc(%ebp),%ecx 10eca7: 01 d1 add %edx,%ecx 10eca9: 51 push %ecx 10ecaa: 8b 5d a4 mov -0x5c(%ebp),%ebx 10ecad: 29 d3 sub %edx,%ebx 10ecaf: 8b 55 08 mov 0x8(%ebp),%edx 10ecb2: 01 da add %ebx,%edx 10ecb4: 52 push %edx 10ecb5: ff 10 call *(%eax) 10ecb7: 83 c4 10 add $0x10,%esp 10ecba: eb 90 jmp 10ec4c <== ALWAYS TAKEN * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); 10ecbc: 83 ec 08 sub $0x8,%esp 10ecbf: 6a 00 push $0x0 10ecc1: ff 75 14 pushl 0x14(%ebp) 10ecc4: e8 23 fd ff ff call 10e9ec <== ALWAYS TAKEN node = pathloc->node_access; 10ecc9: 8b 55 14 mov 0x14(%ebp),%edx 10eccc: 8b 3a mov (%edx),%edi if ( !node ) 10ecce: 83 c4 10 add $0x10,%esp 10ecd1: 85 ff test %edi,%edi 10ecd3: 74 08 je 10ecdd <== ALWAYS TAKEN } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 10ecd5: 8b 47 4c mov 0x4c(%edi),%eax 10ecd8: e9 f8 fe ff ff jmp 10ebd5 <== ALWAYS TAKEN /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 10ecdd: e8 be 36 00 00 call 1123a0 <__errno> 10ece2: c7 00 14 00 00 00 movl $0x14,(%eax) 10ece8: b8 ff ff ff ff mov $0xffffffff,%eax 10eced: e9 5a ff ff ff jmp 10ec4c <== ALWAYS TAKEN * 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; 10ecf2: 8d 7d d0 lea -0x30(%ebp),%edi 10ecf5: 8d 70 1c lea 0x1c(%eax),%esi 10ecf8: b9 05 00 00 00 mov $0x5,%ecx 10ecfd: f3 a5 rep movsl %ds:(%esi),%es:(%edi) *pathloc = newloc; 10ecff: 8d 75 d0 lea -0x30(%ebp),%esi 10ed02: b1 05 mov $0x5,%cl 10ed04: 8b 7d 14 mov 0x14(%ebp),%edi 10ed07: f3 a5 rep movsl %ds:(%esi),%es:(%edi) return (*pathloc->ops->evalpath_h)( &pathname[i-len], 10ed09: 8b 55 e4 mov -0x1c(%ebp),%edx 10ed0c: 8b 5d 14 mov 0x14(%ebp),%ebx 10ed0f: 8b 43 0c mov 0xc(%ebx),%eax 10ed12: 53 push %ebx 10ed13: ff 75 10 pushl 0x10(%ebp) 10ed16: 8b 4d 0c mov 0xc(%ebp),%ecx 10ed19: 01 d1 add %edx,%ecx 10ed1b: 51 push %ecx 10ed1c: 8b 75 a4 mov -0x5c(%ebp),%esi 10ed1f: 29 d6 sub %edx,%esi 10ed21: 8b 55 08 mov 0x8(%ebp),%edx 10ed24: 01 f2 add %esi,%edx 10ed26: 52 push %edx 10ed27: ff 10 call *(%eax) 10ed29: 83 c4 10 add $0x10,%esp 10ed2c: e9 1b ff ff ff jmp 10ec4c <== ALWAYS TAKEN if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); 10ed31: 83 ec 08 sub $0x8,%esp 10ed34: 6a 00 push $0x0 10ed36: ff 75 14 pushl 0x14(%ebp) 10ed39: e8 0e fd ff ff call 10ea4c <== ALWAYS TAKEN node = pathloc->node_access; 10ed3e: 8b 4d 14 mov 0x14(%ebp),%ecx 10ed41: 8b 39 mov (%ecx),%edi if ( result == -1 ) 10ed43: 83 c4 10 add $0x10,%esp 10ed46: 83 f8 ff cmp $0xffffffff,%eax 10ed49: 75 8a jne 10ecd5 <== NEVER TAKEN 10ed4b: e9 fc fe ff ff jmp 10ec4c <== 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; 10ed50: 8d 7d d0 lea -0x30(%ebp),%edi 10ed53: 8d 70 08 lea 0x8(%eax),%esi 10ed56: b9 05 00 00 00 mov $0x5,%ecx 10ed5b: f3 a5 rep movsl %ds:(%esi),%es:(%edi) *pathloc = newloc; 10ed5d: 8d 75 d0 lea -0x30(%ebp),%esi 10ed60: b1 05 mov $0x5,%cl 10ed62: 8b 7d 14 mov 0x14(%ebp),%edi 10ed65: f3 a5 rep movsl %ds:(%esi),%es:(%edi) return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), 10ed67: 8b 4d 14 mov 0x14(%ebp),%ecx 10ed6a: 8b 41 0c mov 0xc(%ecx),%eax 10ed6d: 51 push %ecx 10ed6e: ff 75 10 pushl 0x10(%ebp) 10ed71: 8b 5d 0c mov 0xc(%ebp),%ebx 10ed74: 8d 0c 1a lea (%edx,%ebx,1),%ecx 10ed77: eb a2 jmp 10ed1b <== ALWAYS TAKEN 0010ee28 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 10ee28: 55 push %ebp 10ee29: 89 e5 mov %esp,%ebp 10ee2b: 57 push %edi 10ee2c: 56 push %esi 10ee2d: 53 push %ebx 10ee2e: 83 ec 5c sub $0x5c,%esp /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 10ee31: 8b 45 0c mov 0xc(%ebp),%eax 10ee34: 8b 18 mov (%eax),%ebx /* * Get the path length. */ pathlen = strlen( path ); 10ee36: 31 c0 xor %eax,%eax 10ee38: b9 ff ff ff ff mov $0xffffffff,%ecx 10ee3d: 8b 7d 08 mov 0x8(%ebp),%edi 10ee40: f2 ae repnz scas %es:(%edi),%al 10ee42: f7 d1 not %ecx 10ee44: 8d 71 ff lea -0x1(%ecx),%esi 10ee47: 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 ); 10ee4e: 8d 55 e4 lea -0x1c(%ebp),%edx 10ee51: 52 push %edx 10ee52: 8d 4d af lea -0x51(%ebp),%ecx 10ee55: 51 push %ecx 10ee56: 56 push %esi 10ee57: 8b 45 08 mov 0x8(%ebp),%eax 10ee5a: 03 45 a4 add -0x5c(%ebp),%eax 10ee5d: 50 push %eax 10ee5e: e8 11 05 00 00 call 10f374 <== ALWAYS TAKEN pathlen -= len; 10ee63: 8b 4d e4 mov -0x1c(%ebp),%ecx 10ee66: 29 ce sub %ecx,%esi i += len; if ( !pathloc->node_access ) 10ee68: 8b 7d 0c mov 0xc(%ebp),%edi 10ee6b: 8b 17 mov (%edi),%edx 10ee6d: 83 c4 10 add $0x10,%esp 10ee70: 85 d2 test %edx,%edx 10ee72: 0f 84 20 01 00 00 je 10ef98 <== ALWAYS TAKEN /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 10ee78: 85 c0 test %eax,%eax 10ee7a: 75 18 jne 10ee94 pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 10ee7c: e8 1f 35 00 00 call 1123a0 <__errno> 10ee81: c7 00 11 00 00 00 movl $0x11,(%eax) 10ee87: 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; } 10ee8c: 8d 65 f4 lea -0xc(%ebp),%esp 10ee8f: 5b pop %ebx 10ee90: 5e pop %esi 10ee91: 5f pop %edi 10ee92: c9 leave 10ee93: c3 ret /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 10ee94: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx) 10ee98: 0f 84 c6 00 00 00 je 10ef64 10ee9e: 89 d3 mov %edx,%ebx while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; 10eea0: 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 ) { 10eea3: 83 f8 02 cmp $0x2,%eax 10eea6: 0f 84 88 00 00 00 je 10ef34 10eeac: 76 22 jbe 10eed0 10eeae: 83 f8 03 cmp $0x3,%eax 10eeb1: 74 29 je 10eedc 10eeb3: 83 f8 04 cmp $0x4,%eax 10eeb6: 75 96 jne 10ee4e <== 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 ); 10eeb8: e8 e3 34 00 00 call 1123a0 <__errno> 10eebd: c7 00 5b 00 00 00 movl $0x5b,(%eax) 10eec3: 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; } 10eec8: 8d 65 f4 lea -0xc(%ebp),%esp 10eecb: 5b pop %ebx 10eecc: 5e pop %esi 10eecd: 5f pop %edi 10eece: c9 leave 10eecf: 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 ) { 10eed0: 85 c0 test %eax,%eax 10eed2: 74 a8 je 10ee7c <== ALWAYS TAKEN 10eed4: e9 75 ff ff ff jmp 10ee4e <== ALWAYS TAKEN 10eed9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 10eedc: 8b 42 4c mov 0x4c(%edx),%eax 10eedf: 83 f8 03 cmp $0x3,%eax 10eee2: 0f 84 6b 01 00 00 je 10f053 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 10eee8: 83 f8 04 cmp $0x4,%eax 10eeeb: 0f 84 85 01 00 00 je 10f076 if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) 10eef1: 85 db test %ebx,%ebx 10eef3: 0f 84 0e 01 00 00 je 10f007 <== ALWAYS TAKEN /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 10eef9: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx) 10eefd: 0f 85 04 01 00 00 jne 10f007 /* * 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 ) { 10ef03: 8b 43 5c mov 0x5c(%ebx),%eax 10ef06: 85 c0 test %eax,%eax 10ef08: 0f 85 0e 01 00 00 jne 10f01c /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 10ef0e: 83 ec 08 sub $0x8,%esp 10ef11: 8d 7d af lea -0x51(%ebp),%edi 10ef14: 57 push %edi 10ef15: 53 push %ebx 10ef16: e8 c9 03 00 00 call 10f2e4 <== ALWAYS TAKEN 10ef1b: 89 c3 mov %eax,%ebx /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 10ef1d: 83 c4 10 add $0x10,%esp 10ef20: 85 c0 test %eax,%eax 10ef22: 0f 84 88 00 00 00 je 10efb0 done = true; else pathloc->node_access = node; 10ef28: 8b 45 0c mov 0xc(%ebp),%eax 10ef2b: 89 18 mov %ebx,(%eax) 10ef2d: e9 1c ff ff ff jmp 10ee4e <== ALWAYS TAKEN 10ef32: 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 ) 10ef34: a1 f8 2f 12 00 mov 0x122ff8,%eax 10ef39: 3b 50 18 cmp 0x18(%eax),%edx 10ef3c: 0f 84 0c ff ff ff je 10ee4e /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 10ef42: 8b 5d 0c mov 0xc(%ebp),%ebx 10ef45: 8b 43 10 mov 0x10(%ebx),%eax 10ef48: 3b 50 1c cmp 0x1c(%eax),%edx 10ef4b: 0f 84 48 01 00 00 je 10f099 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 10ef51: 8b 5a 08 mov 0x8(%edx),%ebx 10ef54: 85 db test %ebx,%ebx 10ef56: 74 40 je 10ef98 rtems_set_errno_and_return_minus_one( ENOENT ); node = node->Parent; } pathloc->node_access = node; 10ef58: 8b 7d 0c mov 0xc(%ebp),%edi 10ef5b: 89 1f mov %ebx,(%edi) break; 10ef5d: e9 ec fe ff ff jmp 10ee4e <== ALWAYS TAKEN 10ef62: 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; 10ef64: 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 ) 10ef66: f6 42 30 40 testb $0x40,0x30(%edx) 10ef6a: 0f 85 30 ff ff ff jne 10eea0 /* * 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 ); 10ef70: e8 2b 34 00 00 call 1123a0 <__errno> 10ef75: c7 00 0d 00 00 00 movl $0xd,(%eax) 10ef7b: b8 ff ff ff ff mov $0xffffffff,%eax return result; } 10ef80: 8d 65 f4 lea -0xc(%ebp),%esp 10ef83: 5b pop %ebx 10ef84: 5e pop %esi 10ef85: 5f pop %edi 10ef86: c9 leave 10ef87: 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++) { 10ef88: 8a 42 01 mov 0x1(%edx),%al 10ef8b: 42 inc %edx 10ef8c: 84 c0 test %al,%al 10ef8e: 74 44 je 10efd4 if ( !IMFS_is_separator( path[ i ] ) ) 10ef90: 3c 2f cmp $0x2f,%al 10ef92: 74 f4 je 10ef88 10ef94: 3c 5c cmp $0x5c,%al 10ef96: 74 f0 je 10ef88 rtems_set_errno_and_return_minus_one( ENOENT ); 10ef98: e8 03 34 00 00 call 1123a0 <__errno> 10ef9d: c7 00 02 00 00 00 movl $0x2,(%eax) 10efa3: b8 ff ff ff ff mov $0xffffffff,%eax 10efa8: e9 df fe ff ff jmp 10ee8c <== ALWAYS TAKEN 10efad: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 10efb0: 8b 45 a4 mov -0x5c(%ebp),%eax 10efb3: 2b 45 e4 sub -0x1c(%ebp),%eax 10efb6: 03 45 08 add 0x8(%ebp),%eax 10efb9: 8b 55 10 mov 0x10(%ebp),%edx 10efbc: 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++) { 10efbe: 8b 5d 08 mov 0x8(%ebp),%ebx 10efc1: 8b 4d a4 mov -0x5c(%ebp),%ecx 10efc4: 8a 04 0b mov (%ebx,%ecx,1),%al 10efc7: 84 c0 test %al,%al 10efc9: 74 09 je 10efd4 10efcb: 89 da mov %ebx,%edx 10efcd: 01 ca add %ecx,%edx 10efcf: eb bf jmp 10ef90 <== ALWAYS TAKEN 10efd1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 10efd4: 83 ec 0c sub $0xc,%esp 10efd7: ff 75 0c pushl 0xc(%ebp) 10efda: e8 91 f9 ff ff call 10e970 <== ALWAYS TAKEN /* * The returned node must be a directory */ node = pathloc->node_access; 10efdf: 8b 7d 0c mov 0xc(%ebp),%edi 10efe2: 8b 17 mov (%edi),%edx if ( node->type != IMFS_DIRECTORY ) 10efe4: 83 c4 10 add $0x10,%esp 10efe7: 83 7a 4c 01 cmpl $0x1,0x4c(%edx) 10efeb: 75 1a jne 10f007 <== 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 ) 10efed: 8b 52 30 mov 0x30(%edx),%edx 10eff0: 81 e2 c0 00 00 00 and $0xc0,%edx 10eff6: 81 fa c0 00 00 00 cmp $0xc0,%edx 10effc: 0f 85 6e ff ff ff jne 10ef70 10f002: e9 85 fe ff ff jmp 10ee8c <== ALWAYS TAKEN /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 10f007: e8 94 33 00 00 call 1123a0 <__errno> 10f00c: c7 00 14 00 00 00 movl $0x14,(%eax) 10f012: b8 ff ff ff ff mov $0xffffffff,%eax 10f017: e9 70 fe ff ff jmp 10ee8c <== ALWAYS TAKEN * 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; 10f01c: 8d 7d d0 lea -0x30(%ebp),%edi 10f01f: 8d 70 1c lea 0x1c(%eax),%esi 10f022: b9 05 00 00 00 mov $0x5,%ecx 10f027: f3 a5 rep movsl %ds:(%esi),%es:(%edi) *pathloc = newloc; 10f029: 8d 75 d0 lea -0x30(%ebp),%esi 10f02c: b1 05 mov $0x5,%cl 10f02e: 8b 7d 0c mov 0xc(%ebp),%edi 10f031: f3 a5 rep movsl %ds:(%esi),%es:(%edi) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 10f033: 50 push %eax 10f034: 8b 4d 0c mov 0xc(%ebp),%ecx 10f037: 8b 41 0c mov 0xc(%ecx),%eax 10f03a: ff 75 10 pushl 0x10(%ebp) 10f03d: 51 push %ecx 10f03e: 8b 55 a4 mov -0x5c(%ebp),%edx 10f041: 2b 55 e4 sub -0x1c(%ebp),%edx 10f044: 03 55 08 add 0x8(%ebp),%edx 10f047: 52 push %edx 10f048: ff 50 04 call *0x4(%eax) 10f04b: 83 c4 10 add $0x10,%esp 10f04e: e9 39 fe ff ff jmp 10ee8c <== ALWAYS TAKEN case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 10f053: 83 ec 08 sub $0x8,%esp 10f056: 6a 00 push $0x0 10f058: ff 75 0c pushl 0xc(%ebp) 10f05b: e8 1c fd ff ff call 10ed7c <== ALWAYS TAKEN if ( result == -1 ) 10f060: 83 c4 10 add $0x10,%esp 10f063: 83 f8 ff cmp $0xffffffff,%eax 10f066: 0f 84 20 fe ff ff je 10ee8c <== ALWAYS TAKEN 10f06c: 8b 45 0c mov 0xc(%ebp),%eax 10f06f: 8b 18 mov (%eax),%ebx 10f071: e9 7b fe ff ff jmp 10eef1 <== ALWAYS TAKEN return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 10f076: 83 ec 08 sub $0x8,%esp 10f079: 6a 00 push $0x0 10f07b: ff 75 0c pushl 0xc(%ebp) 10f07e: e8 f9 fc ff ff call 10ed7c <== ALWAYS TAKEN if ( result == -1 ) 10f083: 83 c4 10 add $0x10,%esp 10f086: 83 f8 ff cmp $0xffffffff,%eax 10f089: 0f 84 fd fd ff ff je 10ee8c <== ALWAYS TAKEN 10f08f: 8b 55 0c mov 0xc(%ebp),%edx 10f092: 8b 1a mov (%edx),%ebx 10f094: e9 58 fe ff ff jmp 10eef1 <== ALWAYS TAKEN 10f099: 89 ca mov %ecx,%edx if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 10f09b: 8d 7d d0 lea -0x30(%ebp),%edi 10f09e: 8d 70 08 lea 0x8(%eax),%esi 10f0a1: b9 05 00 00 00 mov $0x5,%ecx 10f0a6: f3 a5 rep movsl %ds:(%esi),%es:(%edi) *pathloc = newloc; 10f0a8: 8d 75 d0 lea -0x30(%ebp),%esi 10f0ab: b1 05 mov $0x5,%cl 10f0ad: 89 df mov %ebx,%edi 10f0af: f3 a5 rep movsl %ds:(%esi),%es:(%edi) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 10f0b1: 51 push %ecx 10f0b2: 8b 43 0c mov 0xc(%ebx),%eax 10f0b5: ff 75 10 pushl 0x10(%ebp) 10f0b8: 53 push %ebx 10f0b9: 8b 4d a4 mov -0x5c(%ebp),%ecx 10f0bc: 29 d1 sub %edx,%ecx 10f0be: 8b 55 08 mov 0x8(%ebp),%edx 10f0c1: 01 ca add %ecx,%edx 10f0c3: 52 push %edx 10f0c4: ff 50 04 call *0x4(%eax) 10f0c7: 83 c4 10 add $0x10,%esp 10f0ca: e9 bd fd ff ff jmp 10ee8c <== ALWAYS TAKEN 0010e9ec : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 10e9ec: 55 push %ebp 10e9ed: 89 e5 mov %esp,%ebp 10e9ef: 53 push %ebx 10e9f0: 83 ec 04 sub $0x4,%esp 10e9f3: 8b 5d 08 mov 0x8(%ebp),%ebx IMFS_jnode_t *jnode = node->node_access; 10e9f6: 8b 03 mov (%ebx),%eax /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 10e9f8: 83 78 4c 03 cmpl $0x3,0x4c(%eax) 10e9fc: 75 41 jne 10ea3f <== ALWAYS TAKEN /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 10e9fe: 8b 40 50 mov 0x50(%eax),%eax 10ea01: 89 03 mov %eax,(%ebx) IMFS_Set_handlers( node ); 10ea03: 83 ec 0c sub $0xc,%esp 10ea06: 53 push %ebx 10ea07: e8 64 ff ff ff call 10e970 <== 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 ) 10ea0c: 8b 45 0c mov 0xc(%ebp),%eax 10ea0f: 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; 10ea12: 8b 13 mov (%ebx),%edx 10ea14: 8b 52 30 mov 0x30(%edx),%edx 10ea17: 21 c2 and %eax,%edx 10ea19: 83 c4 10 add $0x10,%esp 10ea1c: 39 d0 cmp %edx,%eax 10ea1e: 74 18 je 10ea38 <== 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 ); 10ea20: e8 7b 39 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10ea25: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED 10ea2b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return result; } 10ea30: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10ea33: c9 leave <== NOT EXECUTED 10ea34: c3 ret <== NOT EXECUTED 10ea35: 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; 10ea38: 31 c0 xor %eax,%eax if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 10ea3a: 8b 5d fc mov -0x4(%ebp),%ebx 10ea3d: c9 leave 10ea3e: c3 ret /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 10ea3f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10ea42: 68 00 00 cd ab push $0xabcd0000 <== NOT EXECUTED 10ea47: e8 4c d1 ff ff call 10bb98 <== NOT EXECUTED 0010ed7c : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 10ed7c: 55 push %ebp 10ed7d: 89 e5 mov %esp,%ebp 10ed7f: 57 push %edi 10ed80: 56 push %esi 10ed81: 53 push %ebx 10ed82: 83 ec 0c sub $0xc,%esp 10ed85: 8b 75 08 mov 0x8(%ebp),%esi 10ed88: 8b 7d 0c mov 0xc(%ebp),%edi 10ed8b: 8b 15 f8 2f 12 00 mov 0x122ff8,%edx 10ed91: eb 0e jmp 10eda1 <== ALWAYS TAKEN 10ed93: 90 nop <== NOT EXECUTED */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) 10ed94: 83 f8 04 cmp $0x4,%eax 10ed97: 74 53 je 10edec result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 10ed99: 83 e8 03 sub $0x3,%eax 10ed9c: 83 f8 01 cmp $0x1,%eax 10ed9f: 77 3a ja 10eddb <== NEVER TAKEN { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 10eda1: 8b 1e mov (%esi),%ebx /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 10eda3: 8b 42 30 mov 0x30(%edx),%eax 10eda6: 40 inc %eax 10eda7: 66 89 42 30 mov %ax,0x30(%edx) if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 10edab: 66 83 f8 05 cmp $0x5,%ax 10edaf: 77 57 ja 10ee08 /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 10edb1: 8b 43 4c mov 0x4c(%ebx),%eax 10edb4: 83 f8 03 cmp $0x3,%eax 10edb7: 75 db jne 10ed94 result = IMFS_evaluate_hard_link( node, flags ); 10edb9: 83 ec 08 sub $0x8,%esp 10edbc: 57 push %edi 10edbd: 56 push %esi 10edbe: e8 29 fc ff ff call 10e9ec <== ALWAYS TAKEN 10edc3: 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 ) ) ); 10edc6: 85 c0 test %eax,%eax 10edc8: 75 33 jne 10edfd <== ALWAYS TAKEN 10edca: 8b 43 4c mov 0x4c(%ebx),%eax 10edcd: 8b 15 f8 2f 12 00 mov 0x122ff8,%edx 10edd3: 83 e8 03 sub $0x3,%eax 10edd6: 83 f8 01 cmp $0x1,%eax 10edd9: 76 c6 jbe 10eda1 <== NEVER TAKEN 10eddb: 31 c0 xor %eax,%eax /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 10eddd: 66 c7 42 30 00 00 movw $0x0,0x30(%edx) return result; } 10ede3: 8d 65 f4 lea -0xc(%ebp),%esp 10ede6: 5b pop %ebx 10ede7: 5e pop %esi 10ede8: 5f pop %edi 10ede9: c9 leave 10edea: c3 ret 10edeb: 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 ); 10edec: 83 ec 08 sub $0x8,%esp 10edef: 57 push %edi 10edf0: 56 push %esi 10edf1: e8 56 fc ff ff call 10ea4c <== ALWAYS TAKEN 10edf6: 83 c4 10 add $0x10,%esp } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 10edf9: 85 c0 test %eax,%eax 10edfb: 74 cd je 10edca 10edfd: 8b 15 f8 2f 12 00 mov 0x122ff8,%edx 10ee03: eb d8 jmp 10eddd <== ALWAYS TAKEN 10ee05: 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; 10ee08: 66 c7 42 30 00 00 movw $0x0,0x30(%edx) rtems_set_errno_and_return_minus_one( ELOOP ); 10ee0e: e8 8d 35 00 00 call 1123a0 <__errno> 10ee13: c7 00 5c 00 00 00 movl $0x5c,(%eax) 10ee19: b8 ff ff ff ff mov $0xffffffff,%eax */ rtems_filesystem_link_counts = 0; return result; } 10ee1e: 8d 65 f4 lea -0xc(%ebp),%esp 10ee21: 5b pop %ebx 10ee22: 5e pop %esi 10ee23: 5f pop %edi 10ee24: c9 leave 10ee25: c3 ret 0010e9cc : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 10e9cc: 55 push %ebp <== NOT EXECUTED 10e9cd: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10e9cf: 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 ) 10e9d2: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 10e9d5: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 10e9d8: 8b 12 mov (%edx),%edx <== NOT EXECUTED 10e9da: 8b 52 30 mov 0x30(%edx),%edx <== NOT EXECUTED 10e9dd: 21 c2 and %eax,%edx <== NOT EXECUTED 10e9df: 39 d0 cmp %edx,%eax <== NOT EXECUTED 10e9e1: 0f 94 c0 sete %al <== NOT EXECUTED 10e9e4: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED return 1; return 0; } 10e9e7: c9 leave <== NOT EXECUTED 10e9e8: c3 ret <== NOT EXECUTED 0010ea4c : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 10ea4c: 55 push %ebp 10ea4d: 89 e5 mov %esp,%ebp 10ea4f: 57 push %edi 10ea50: 56 push %esi 10ea51: 53 push %ebx 10ea52: 83 ec 0c sub $0xc,%esp 10ea55: 8b 5d 08 mov 0x8(%ebp),%ebx IMFS_jnode_t *jnode = node->node_access; 10ea58: 8b 03 mov (%ebx),%eax /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 10ea5a: 83 78 4c 04 cmpl $0x4,0x4c(%eax) 10ea5e: 0f 85 a1 00 00 00 jne 10eb05 <== ALWAYS TAKEN rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 10ea64: 8b 50 08 mov 0x8(%eax),%edx 10ea67: 85 d2 test %edx,%edx 10ea69: 0f 84 89 00 00 00 je 10eaf8 <== 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; 10ea6f: 89 13 mov %edx,(%ebx) rtems_filesystem_get_sym_start_loc( 10ea71: 8b 50 50 mov 0x50(%eax),%edx 10ea74: 8a 0a mov (%edx),%cl 10ea76: 80 f9 2f cmp $0x2f,%cl 10ea79: 74 09 je 10ea84 10ea7b: 80 f9 5c cmp $0x5c,%cl 10ea7e: 74 04 je 10ea84 <== ALWAYS TAKEN 10ea80: 84 c9 test %cl,%cl 10ea82: 75 70 jne 10eaf4 <== NEVER TAKEN 10ea84: 8b 35 f8 2f 12 00 mov 0x122ff8,%esi 10ea8a: 83 c6 18 add $0x18,%esi 10ea8d: b9 05 00 00 00 mov $0x5,%ecx 10ea92: 89 df mov %ebx,%edi 10ea94: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 10ea96: 8b 50 50 mov 0x50(%eax),%edx 10ea99: 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] ), 10ea9e: 01 c2 add %eax,%edx 10eaa0: 31 c0 xor %eax,%eax 10eaa2: b9 ff ff ff ff mov $0xffffffff,%ecx 10eaa7: 89 d7 mov %edx,%edi 10eaa9: f2 ae repnz scas %es:(%edi),%al 10eaab: f7 d1 not %ecx 10eaad: 49 dec %ecx /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 10eaae: 53 push %ebx 10eaaf: ff 75 0c pushl 0xc(%ebp) 10eab2: 51 push %ecx 10eab3: 52 push %edx 10eab4: e8 5b 00 00 00 call 10eb14 <== ALWAYS TAKEN 10eab9: 89 c6 mov %eax,%esi strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 10eabb: 89 1c 24 mov %ebx,(%esp) 10eabe: e8 ad fe ff ff call 10e970 <== 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 ) 10eac3: 8b 45 0c mov 0xc(%ebp),%eax 10eac6: 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; 10eac9: 8b 13 mov (%ebx),%edx 10eacb: 8b 52 30 mov 0x30(%edx),%edx 10eace: 21 c2 and %eax,%edx 10ead0: 83 c4 10 add $0x10,%esp 10ead3: 39 d0 cmp %edx,%eax 10ead5: 74 10 je 10eae7 <== 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 ); 10ead7: e8 c4 38 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10eadc: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED 10eae2: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED return result; } 10eae7: 89 f0 mov %esi,%eax 10eae9: 8d 65 f4 lea -0xc(%ebp),%esp 10eaec: 5b pop %ebx 10eaed: 5e pop %esi 10eaee: 5f pop %edi 10eaef: c9 leave 10eaf0: c3 ret 10eaf1: 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( 10eaf4: 31 c0 xor %eax,%eax 10eaf6: eb a6 jmp 10ea9e <== ALWAYS TAKEN if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); 10eaf8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10eafb: 68 00 00 d0 ba push $0xbad00000 <== NOT EXECUTED 10eb00: e8 93 d0 ff ff call 10bb98 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); 10eb05: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10eb08: 68 00 00 cd ab push $0xabcd0000 <== NOT EXECUTED 10eb0d: e8 86 d0 ff ff call 10bb98 <== NOT EXECUTED 0010f240 : } int IMFS_fifo_close( rtems_libio_t *iop ) { 10f240: 55 push %ebp <== NOT EXECUTED 10f241: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f243: 57 push %edi <== NOT EXECUTED 10f244: 56 push %esi <== NOT EXECUTED 10f245: 53 push %ebx <== NOT EXECUTED 10f246: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED 10f249: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 10f24c: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 10f24f: 53 push %ebx <== NOT EXECUTED 10f250: 8d 47 50 lea 0x50(%edi),%eax <== NOT EXECUTED 10f253: 50 push %eax <== NOT EXECUTED 10f254: e8 bf 1d 00 00 call 111018 <== NOT EXECUTED 10f259: 89 c6 mov %eax,%esi <== NOT EXECUTED if (! err) { 10f25b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f25e: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED 10f261: 74 0d je 10f270 <== 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); 10f263: 7c 37 jl 10f29c <== NOT EXECUTED } 10f265: 89 f0 mov %esi,%eax <== NOT EXECUTED 10f267: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10f26a: 5b pop %ebx <== NOT EXECUTED 10f26b: 5e pop %esi <== NOT EXECUTED 10f26c: 5f pop %edi <== NOT EXECUTED 10f26d: c9 leave <== NOT EXECUTED 10f26e: c3 ret <== NOT EXECUTED 10f26f: 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; 10f270: 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) 10f277: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10f27a: 57 push %edi <== NOT EXECUTED 10f27b: e8 e8 06 00 00 call 10f968 <== NOT EXECUTED 10f280: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f283: 85 c0 test %eax,%eax <== NOT EXECUTED 10f285: 75 de jne 10f265 <== NOT EXECUTED 10f287: 66 83 7f 34 00 cmpw $0x0,0x34(%edi) <== NOT EXECUTED 10f28c: 75 d7 jne 10f265 <== NOT EXECUTED free(jnode); 10f28e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10f291: 57 push %edi <== NOT EXECUTED 10f292: e8 45 8d ff ff call 107fdc <== NOT EXECUTED 10f297: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f29a: eb c9 jmp 10f265 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 10f29c: e8 ff 30 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10f2a1: f7 de neg %esi <== NOT EXECUTED 10f2a3: 89 30 mov %esi,(%eax) <== NOT EXECUTED 10f2a5: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 10f2aa: eb b9 jmp 10f265 <== NOT EXECUTED 0010f110 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 10f110: 55 push %ebp <== NOT EXECUTED 10f111: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f113: 53 push %ebx <== NOT EXECUTED 10f114: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 10f117: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 10f11a: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 10f11d: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED int err; if (command == FIONBIO) { 10f120: 81 fa 7e 66 04 80 cmp $0x8004667e,%edx <== NOT EXECUTED 10f126: 74 1c je 10f144 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 10f128: 50 push %eax <== NOT EXECUTED 10f129: 51 push %ecx <== NOT EXECUTED 10f12a: 52 push %edx <== NOT EXECUTED 10f12b: 8b 40 38 mov 0x38(%eax),%eax <== NOT EXECUTED 10f12e: ff 70 50 pushl 0x50(%eax) <== NOT EXECUTED 10f131: e8 de 1a 00 00 call 110c14 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 10f136: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f139: 85 c0 test %eax,%eax <== NOT EXECUTED 10f13b: 78 3e js 10f17b <== NOT EXECUTED } 10f13d: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f140: c9 leave <== NOT EXECUTED 10f141: c3 ret <== NOT EXECUTED 10f142: 66 90 xchg %ax,%ax <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) 10f144: 85 c9 test %ecx,%ecx <== NOT EXECUTED 10f146: 74 20 je 10f168 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 10f148: 8b 11 mov (%ecx),%edx <== NOT EXECUTED 10f14a: 85 d2 test %edx,%edx <== NOT EXECUTED 10f14c: 74 0e je 10f15c <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 10f14e: 83 48 14 01 orl $0x1,0x14(%eax) <== NOT EXECUTED 10f152: 31 c0 xor %eax,%eax <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } 10f154: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f157: c9 leave <== NOT EXECUTED 10f158: c3 ret <== NOT EXECUTED 10f159: 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; 10f15c: 83 60 14 fe andl $0xfffffffe,0x14(%eax) <== NOT EXECUTED 10f160: 31 c0 xor %eax,%eax <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } 10f162: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f165: c9 leave <== NOT EXECUTED 10f166: c3 ret <== NOT EXECUTED 10f167: 90 nop <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) 10f168: bb 0e 00 00 00 mov $0xe,%ebx <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); 10f16d: e8 2e 32 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10f172: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 10f174: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f179: eb c2 jmp 10f13d <== NOT EXECUTED 10f17b: 89 c3 mov %eax,%ebx <== NOT EXECUTED 10f17d: f7 db neg %ebx <== NOT EXECUTED 10f17f: eb ec jmp 10f16d <== NOT EXECUTED 0010f0d0 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 10f0d0: 55 push %ebp <== NOT EXECUTED 10f0d1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f0d3: 53 push %ebx <== NOT EXECUTED 10f0d4: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 10f0d7: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 10f0da: 50 push %eax <== NOT EXECUTED 10f0db: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED 10f0de: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 10f0e1: 8b 40 38 mov 0x38(%eax),%eax <== NOT EXECUTED 10f0e4: ff 70 50 pushl 0x50(%eax) <== NOT EXECUTED 10f0e7: e8 c8 1a 00 00 call 110bb4 <== NOT EXECUTED 10f0ec: 89 c3 mov %eax,%ebx <== NOT EXECUTED IMFS_FIFO_RETURN(err); 10f0ee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f0f1: 85 c0 test %eax,%eax <== NOT EXECUTED 10f0f3: 78 06 js 10f0fb <== NOT EXECUTED 10f0f5: 99 cltd <== NOT EXECUTED } 10f0f6: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f0f9: c9 leave <== NOT EXECUTED 10f0fa: c3 ret <== NOT EXECUTED rtems_off64_t offset, int whence ) { off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); IMFS_FIFO_RETURN(err); 10f0fb: e8 a0 32 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10f100: f7 db neg %ebx <== NOT EXECUTED 10f102: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 10f104: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f109: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED 10f10e: eb e6 jmp 10f0f6 <== NOT EXECUTED 0010f2ac : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 10f2ac: 55 push %ebp 10f2ad: 89 e5 mov %esp,%ebp 10f2af: 53 push %ebx 10f2b0: 83 ec 0c sub $0xc,%esp 10f2b3: 8b 45 08 mov 0x8(%ebp),%eax IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); 10f2b6: 50 push %eax 10f2b7: 8b 40 38 mov 0x38(%eax),%eax 10f2ba: 83 c0 50 add $0x50,%eax 10f2bd: 50 push %eax 10f2be: e8 69 1e 00 00 call 11112c 10f2c3: 89 c3 mov %eax,%ebx IMFS_FIFO_RETURN(err); 10f2c5: 83 c4 10 add $0x10,%esp 10f2c8: 85 c0 test %eax,%eax 10f2ca: 78 07 js 10f2d3 <== NEVER TAKEN } 10f2cc: 89 d8 mov %ebx,%eax 10f2ce: 8b 5d fc mov -0x4(%ebp),%ebx 10f2d1: c9 leave 10f2d2: c3 ret ) { IMFS_jnode_t *jnode = iop->file_info; int err = fifo_open(&JNODE2PIPE(jnode), iop); IMFS_FIFO_RETURN(err); 10f2d3: e8 c8 30 00 00 call 1123a0 <__errno> 10f2d8: f7 db neg %ebx 10f2da: 89 18 mov %ebx,(%eax) 10f2dc: bb ff ff ff ff mov $0xffffffff,%ebx 10f2e1: eb e9 jmp 10f2cc <== ALWAYS TAKEN 0010f1e4 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 10f1e4: 55 push %ebp <== NOT EXECUTED 10f1e5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f1e7: 56 push %esi <== NOT EXECUTED 10f1e8: 53 push %ebx <== NOT EXECUTED 10f1e9: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED 10f1ec: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 10f1ef: 8b 70 38 mov 0x38(%eax),%esi <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 10f1f2: 50 push %eax <== NOT EXECUTED 10f1f3: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 10f1f6: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 10f1f9: ff 76 50 pushl 0x50(%esi) <== NOT EXECUTED 10f1fc: e8 57 1c 00 00 call 110e58 <== NOT EXECUTED 10f201: 89 c3 mov %eax,%ebx <== NOT EXECUTED if (err > 0) 10f203: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f206: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED 10f209: 7e 21 jle 10f22c <== NOT EXECUTED IMFS_update_atime(jnode); 10f20b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10f20e: 6a 00 push $0x0 <== NOT EXECUTED 10f210: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 10f213: 50 push %eax <== NOT EXECUTED 10f214: e8 87 06 00 00 call 10f8a0 <== NOT EXECUTED 10f219: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED 10f21c: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED 10f21f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED IMFS_FIFO_RETURN(err); } 10f222: 89 d8 mov %ebx,%eax <== NOT EXECUTED 10f224: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10f227: 5b pop %ebx <== NOT EXECUTED 10f228: 5e pop %esi <== NOT EXECUTED 10f229: c9 leave <== NOT EXECUTED 10f22a: c3 ret <== NOT EXECUTED 10f22b: 90 nop <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) IMFS_update_atime(jnode); IMFS_FIFO_RETURN(err); 10f22c: 74 f4 je 10f222 <== NOT EXECUTED 10f22e: e8 6d 31 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10f233: f7 db neg %ebx <== NOT EXECUTED 10f235: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 10f237: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 10f23c: eb e4 jmp 10f222 <== NOT EXECUTED 0010f184 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 10f184: 55 push %ebp <== NOT EXECUTED 10f185: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f187: 56 push %esi <== NOT EXECUTED 10f188: 53 push %ebx <== NOT EXECUTED 10f189: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED 10f18c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 10f18f: 8b 58 38 mov 0x38(%eax),%ebx <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 10f192: 50 push %eax <== NOT EXECUTED 10f193: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 10f196: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 10f199: ff 73 50 pushl 0x50(%ebx) <== NOT EXECUTED 10f19c: e8 d3 1a 00 00 call 110c74 <== NOT EXECUTED 10f1a1: 89 c6 mov %eax,%esi <== NOT EXECUTED if (err > 0) { 10f1a3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f1a6: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED 10f1a9: 7e 25 jle 10f1d0 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 10f1ab: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10f1ae: 6a 00 push $0x0 <== NOT EXECUTED 10f1b0: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 10f1b3: 50 push %eax <== NOT EXECUTED 10f1b4: e8 e7 06 00 00 call 10f8a0 <== NOT EXECUTED 10f1b9: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED 10f1bc: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED 10f1bf: 89 43 48 mov %eax,0x48(%ebx) <== NOT EXECUTED 10f1c2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } IMFS_FIFO_RETURN(err); } 10f1c5: 89 f0 mov %esi,%eax <== NOT EXECUTED 10f1c7: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10f1ca: 5b pop %ebx <== NOT EXECUTED 10f1cb: 5e pop %esi <== NOT EXECUTED 10f1cc: c9 leave <== NOT EXECUTED 10f1cd: c3 ret <== NOT EXECUTED 10f1ce: 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); 10f1d0: 74 f3 je 10f1c5 <== NOT EXECUTED 10f1d2: e8 c9 31 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10f1d7: f7 de neg %esi <== NOT EXECUTED 10f1d9: 89 30 mov %esi,(%eax) <== NOT EXECUTED 10f1db: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 10f1e0: eb e3 jmp 10f1c5 <== NOT EXECUTED 0010f2e4 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 10f2e4: 55 push %ebp 10f2e5: 89 e5 mov %esp,%ebp 10f2e7: 57 push %edi 10f2e8: 56 push %esi 10f2e9: 53 push %ebx 10f2ea: 83 ec 0c sub $0xc,%esp 10f2ed: 8b 45 08 mov 0x8(%ebp),%eax 10f2f0: 8b 5d 0c mov 0xc(%ebp),%ebx /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 10f2f3: 85 c0 test %eax,%eax 10f2f5: 74 67 je 10f35e <== ALWAYS TAKEN if ( !name ) 10f2f7: 85 db test %ebx,%ebx 10f2f9: 74 2d je 10f328 <== ALWAYS TAKEN /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 10f2fb: bf d0 fc 11 00 mov $0x11fcd0,%edi 10f300: b9 02 00 00 00 mov $0x2,%ecx 10f305: 89 de mov %ebx,%esi 10f307: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10f309: 74 13 je 10f31e <== ALWAYS TAKEN return directory; if ( !strcmp( name, dotdotname ) ) 10f30b: bf d2 fc 11 00 mov $0x11fcd2,%edi 10f310: b9 03 00 00 00 mov $0x3,%ecx 10f315: 89 de mov %ebx,%esi 10f317: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10f319: 75 19 jne 10f334 <== NEVER TAKEN return directory->Parent; 10f31b: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 10f31e: 8d 65 f4 lea -0xc(%ebp),%esp 10f321: 5b pop %ebx 10f322: 5e pop %esi 10f323: 5f pop %edi 10f324: c9 leave 10f325: c3 ret 10f326: 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; 10f328: 31 c0 xor %eax,%eax if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 10f32a: 8d 65 f4 lea -0xc(%ebp),%esp 10f32d: 5b pop %ebx 10f32e: 5e pop %esi 10f32f: 5f pop %edi 10f330: c9 leave 10f331: c3 ret 10f332: 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; 10f334: 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; 10f337: 8d 78 54 lea 0x54(%eax),%edi 10f33a: 39 fe cmp %edi,%esi 10f33c: 75 08 jne 10f346 10f33e: eb e8 jmp 10f328 <== ALWAYS TAKEN !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { 10f340: 8b 36 mov (%esi),%esi if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 10f342: 39 fe cmp %edi,%esi 10f344: 74 e2 je 10f328 !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 ) ) 10f346: 8d 46 0c lea 0xc(%esi),%eax 10f349: 83 ec 08 sub $0x8,%esp 10f34c: 50 push %eax 10f34d: 53 push %ebx 10f34e: e8 e5 3a 00 00 call 112e38 10f353: 83 c4 10 add $0x10,%esp 10f356: 85 c0 test %eax,%eax 10f358: 75 e6 jne 10f340 10f35a: 89 f0 mov %esi,%eax 10f35c: eb c0 jmp 10f31e <== ALWAYS TAKEN /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 10f35e: 68 78 fc 11 00 push $0x11fc78 <== NOT EXECUTED 10f363: 68 d5 fc 11 00 push $0x11fcd5 <== NOT EXECUTED 10f368: 6a 2a push $0x2a <== NOT EXECUTED 10f36a: 68 84 fc 11 00 push $0x11fc84 <== NOT EXECUTED 10f36f: e8 14 89 ff ff call 107c88 <__assert_func> <== NOT EXECUTED 00114028 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 114028: 55 push %ebp 114029: 89 e5 mov %esp,%ebp 11402b: 57 push %edi 11402c: 56 push %esi 11402d: 53 push %ebx 11402e: 83 ec 3c sub $0x3c,%esp 114031: 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; 114034: 8b 58 1c mov 0x1c(%eax),%ebx loc = temp_mt_entry->mt_fs_root; 114037: 8d 55 d4 lea -0x2c(%ebp),%edx 11403a: 89 55 c4 mov %edx,-0x3c(%ebp) 11403d: 8d 70 1c lea 0x1c(%eax),%esi 114040: b9 05 00 00 00 mov $0x5,%ecx 114045: 89 d7 mov %edx,%edi 114047: 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; 114049: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax) do { next = jnode->Parent; 114050: 8b 73 08 mov 0x8(%ebx),%esi loc.node_access = (void *)jnode; 114053: 89 5d d4 mov %ebx,-0x2c(%ebp) IMFS_Set_handlers( &loc ); 114056: 83 ec 0c sub $0xc,%esp 114059: 8d 45 d4 lea -0x2c(%ebp),%eax 11405c: 50 push %eax 11405d: e8 4a f6 ff ff call 1136ac <== ALWAYS TAKEN if ( jnode->type != IMFS_DIRECTORY ) { 114062: 83 c4 10 add $0x10,%esp 114065: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx) 114069: 75 2d jne 114098 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 11406b: 8d 43 54 lea 0x54(%ebx),%eax 11406e: 39 43 50 cmp %eax,0x50(%ebx) 114071: 74 3e je 1140b1 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { 114073: 85 db test %ebx,%ebx 114075: 74 15 je 11408c if ( jnode->type == IMFS_DIRECTORY ) { 114077: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx) 11407b: 75 d3 jne 114050 <== ALWAYS TAKEN 11407d: 8d 43 54 lea 0x54(%ebx),%eax 114080: 39 43 50 cmp %eax,0x50(%ebx) 114083: 74 cb je 114050 if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); 114085: 8b 5b 50 mov 0x50(%ebx),%ebx } } } while (jnode != NULL); 114088: 85 db test %ebx,%ebx 11408a: 75 c4 jne 114050 <== NEVER TAKEN 11408c: 31 c0 xor %eax,%eax return 0; } 11408e: 8d 65 f4 lea -0xc(%ebp),%esp 114091: 5b pop %ebx 114092: 5e pop %esi 114093: 5f pop %edi 114094: c9 leave 114095: c3 ret 114096: 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 ); 114098: 83 ec 08 sub $0x8,%esp 11409b: 8d 55 d4 lea -0x2c(%ebp),%edx 11409e: 52 push %edx if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 11409f: 6a 00 push $0x0 1140a1: e8 e6 4c ff ff call 108d8c if (result != 0) 1140a6: 83 c4 10 add $0x10,%esp 1140a9: 85 c0 test %eax,%eax 1140ab: 75 0d jne 1140ba <== ALWAYS TAKEN 1140ad: 89 f3 mov %esi,%ebx 1140af: eb c2 jmp 114073 <== ALWAYS TAKEN result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 1140b1: 83 ec 08 sub $0x8,%esp 1140b4: 8d 45 d4 lea -0x2c(%ebp),%eax 1140b7: 50 push %eax 1140b8: eb e5 jmp 11409f <== ALWAYS TAKEN if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 1140ba: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 1140bd: eb cf jmp 11408e <== NOT EXECUTED 0010f374 : const char *path, int pathlen, char *token, int *token_len ) { 10f374: 55 push %ebp 10f375: 89 e5 mov %esp,%ebp 10f377: 57 push %edi 10f378: 56 push %esi 10f379: 53 push %ebx 10f37a: 8b 75 08 mov 0x8(%ebp),%esi 10f37d: 8b 7d 0c mov 0xc(%ebp),%edi 10f380: 8b 45 10 mov 0x10(%ebp),%eax 10f383: 8b 5d 14 mov 0x14(%ebp),%ebx register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 10f386: 8a 16 mov (%esi),%dl while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 10f388: 80 fa 2f cmp $0x2f,%dl 10f38b: 0f 84 94 00 00 00 je 10f425 10f391: 80 fa 5c cmp $0x5c,%dl 10f394: 0f 84 8b 00 00 00 je 10f425 10f39a: 84 d2 test %dl,%dl 10f39c: 0f 84 94 00 00 00 je 10f436 10f3a2: 85 ff test %edi,%edi 10f3a4: 7e 7f jle 10f425 <== ALWAYS TAKEN token[i] = c; 10f3a6: 88 10 mov %dl,(%eax) 10f3a8: 31 d2 xor %edx,%edx 10f3aa: 66 90 xchg %ax,%ax return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 10f3ac: 42 inc %edx 10f3ad: 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) ) { 10f3b0: 80 f9 2f cmp $0x2f,%cl 10f3b3: 74 1f je 10f3d4 10f3b5: 80 f9 5c cmp $0x5c,%cl 10f3b8: 74 1a je 10f3d4 10f3ba: 84 c9 test %cl,%cl 10f3bc: 74 16 je 10f3d4 10f3be: 39 d7 cmp %edx,%edi 10f3c0: 7e 12 jle 10f3d4 token[i] = c; 10f3c2: 88 0c 10 mov %cl,(%eax,%edx,1) if ( i == IMFS_NAME_MAX ) 10f3c5: 83 fa 20 cmp $0x20,%edx 10f3c8: 75 e2 jne 10f3ac 10f3ca: b8 04 00 00 00 mov $0x4,%eax else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 10f3cf: 5b pop %ebx 10f3d0: 5e pop %esi 10f3d1: 5f pop %edi 10f3d2: c9 leave 10f3d3: c3 ret i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 10f3d4: 80 7c 10 ff 00 cmpb $0x0,-0x1(%eax,%edx,1) 10f3d9: 74 04 je 10f3df <== ALWAYS TAKEN token[i] = '\0'; 10f3db: c6 04 10 00 movb $0x0,(%eax,%edx,1) /* * Set token_len to the number of characters copied. */ *token_len = i; 10f3df: 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 ) 10f3e1: bf ec fc 11 00 mov $0x11fcec,%edi 10f3e6: b9 03 00 00 00 mov $0x3,%ecx 10f3eb: 89 c6 mov %eax,%esi 10f3ed: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10f3ef: 75 0b jne 10f3fc 10f3f1: b8 02 00 00 00 mov $0x2,%eax else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 10f3f6: 5b pop %ebx 10f3f7: 5e pop %esi 10f3f8: 5f pop %edi 10f3f9: c9 leave 10f3fa: c3 ret 10f3fb: 90 nop <== NOT EXECUTED */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 10f3fc: bf ed fc 11 00 mov $0x11fced,%edi 10f401: b9 02 00 00 00 mov $0x2,%ecx 10f406: 89 c6 mov %eax,%esi 10f408: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10f40a: 0f 97 c0 seta %al 10f40d: 0f 92 c2 setb %dl 10f410: 28 d0 sub %dl,%al 10f412: 0f be c0 movsbl %al,%eax 10f415: 83 f8 01 cmp $0x1,%eax 10f418: 19 c0 sbb %eax,%eax 10f41a: 83 e0 fe and $0xfffffffe,%eax 10f41d: 83 c0 03 add $0x3,%eax type = IMFS_CURRENT_DIR; } return type; } 10f420: 5b pop %ebx 10f421: 5e pop %esi 10f422: 5f pop %edi 10f423: c9 leave 10f424: c3 ret /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 10f425: 88 10 mov %dl,(%eax) i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 10f427: 83 ff 01 cmp $0x1,%edi 10f42a: 19 c0 sbb %eax,%eax 10f42c: 40 inc %eax 10f42d: 89 c2 mov %eax,%edx /* * Set token_len to the number of characters copied. */ *token_len = i; 10f42f: 89 13 mov %edx,(%ebx) else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 10f431: 5b pop %ebx 10f432: 5e pop %esi 10f433: 5f pop %edi 10f434: c9 leave 10f435: c3 ret /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 10f436: c6 00 00 movb $0x0,(%eax) 10f439: 31 c0 xor %eax,%eax 10f43b: 31 d2 xor %edx,%edx /* * Set token_len to the number of characters copied. */ *token_len = i; 10f43d: 89 13 mov %edx,(%ebx) 10f43f: eb f0 jmp 10f431 <== ALWAYS TAKEN 001089a4 : */ int IMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 1089a4: 55 push %ebp 1089a5: 89 e5 mov %esp,%ebp 1089a7: 83 ec 08 sub $0x8,%esp return IMFS_initialize_support( 1089aa: 68 e0 50 12 00 push $0x1250e0 1089af: 68 60 51 12 00 push $0x125160 1089b4: 68 40 4a 12 00 push $0x124a40 1089b9: ff 75 08 pushl 0x8(%ebp) 1089bc: e8 03 00 00 00 call 1089c4 <== ALWAYS TAKEN temp_mt_entry, &IMFS_ops, &IMFS_memfile_handlers, &IMFS_directory_handlers ); } 1089c1: c9 leave 1089c2: c3 ret 0010f444 : 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 ) { 10f444: 55 push %ebp 10f445: 89 e5 mov %esp,%ebp 10f447: 57 push %edi 10f448: 56 push %esi 10f449: 53 push %ebx 10f44a: 83 ec 0c sub $0xc,%esp 10f44d: 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, 10f450: 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) { 10f456: 83 f9 10 cmp $0x10,%ecx 10f459: 74 18 je 10f473 <== ALWAYS TAKEN 10f45b: 31 d2 xor %edx,%edx 10f45d: b8 20 00 00 00 mov $0x20,%eax 10f462: 39 c1 cmp %eax,%ecx 10f464: 74 0d je 10f473 10f466: d1 e0 shl %eax 10f468: 42 inc %edx 10f469: 83 fa 05 cmp $0x5,%edx 10f46c: 75 f4 jne 10f462 <== NEVER TAKEN 10f46e: 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) 10f473: 89 0d 68 4f 12 00 mov %ecx,0x124f68 /* * 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(); 10f479: e8 12 21 00 00 call 111590 10f47e: 89 43 1c mov %eax,0x1c(%ebx) temp_mt_entry->mt_fs_root.handlers = directory_handlers; 10f481: 8b 45 14 mov 0x14(%ebp),%eax 10f484: 89 43 24 mov %eax,0x24(%ebx) temp_mt_entry->mt_fs_root.ops = op_table; 10f487: 8b 45 0c mov 0xc(%ebp),%eax 10f48a: 89 43 28 mov %eax,0x28(%ebx) temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 10f48d: 8d 7b 38 lea 0x38(%ebx),%edi 10f490: be 80 fe 11 00 mov $0x11fe80,%esi 10f495: b9 0c 00 00 00 mov $0xc,%ecx 10f49a: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 10f49c: 83 ec 08 sub $0x8,%esp 10f49f: 6a 0c push $0xc 10f4a1: 6a 01 push $0x1 10f4a3: e8 6c 02 00 00 call 10f714 <== ALWAYS TAKEN if ( !fs_info ) { 10f4a8: 83 c4 10 add $0x10,%esp 10f4ab: 85 c0 test %eax,%eax 10f4ad: 74 2e je 10f4dd <== 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; 10f4af: 89 43 34 mov %eax,0x34(%ebx) /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 10f4b2: c7 00 01 00 00 00 movl $0x1,(%eax) fs_info->memfile_handlers = memfile_handlers; 10f4b8: 8b 55 10 mov 0x10(%ebp),%edx 10f4bb: 89 50 04 mov %edx,0x4(%eax) fs_info->directory_handlers = directory_handlers; 10f4be: 8b 55 14 mov 0x14(%ebp),%edx 10f4c1: 89 50 08 mov %edx,0x8(%eax) jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 10f4c4: 8b 43 1c mov 0x1c(%ebx),%eax 10f4c7: c7 40 38 01 00 00 00 movl $0x1,0x38(%eax) /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); 10f4ce: e8 ed 16 00 00 call 110bc0 10f4d3: 31 c0 xor %eax,%eax return 0; } 10f4d5: 8d 65 f4 lea -0xc(%ebp),%esp 10f4d8: 5b pop %ebx 10f4d9: 5e pop %esi 10f4da: 5f pop %edi 10f4db: c9 leave 10f4dc: 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); 10f4dd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10f4e0: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED 10f4e3: e8 f4 8a ff ff call 107fdc <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 10f4e8: e8 b3 2e 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10f4ed: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 10f4f3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f4f8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f4fb: eb d8 jmp 10f4d5 <== NOT EXECUTED 00108a80 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 108a80: 55 push %ebp 108a81: 89 e5 mov %esp,%ebp 108a83: 57 push %edi 108a84: 53 push %ebx 108a85: 83 ec 50 sub $0x50,%esp 108a88: 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; 108a8b: 8b 45 08 mov 0x8(%ebp),%eax 108a8e: 8b 00 mov (%eax),%eax 108a90: 89 45 d8 mov %eax,-0x28(%ebp) if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 108a93: 66 83 78 34 07 cmpw $0x7,0x34(%eax) 108a98: 77 66 ja 108b00 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 ); 108a9a: 31 c0 xor %eax,%eax 108a9c: b9 ff ff ff ff mov $0xffffffff,%ecx 108aa1: 89 d7 mov %edx,%edi 108aa3: f2 ae repnz scas %es:(%edi),%al 108aa5: f7 d1 not %ecx 108aa7: 49 dec %ecx 108aa8: 8d 45 f4 lea -0xc(%ebp),%eax 108aab: 50 push %eax 108aac: 8d 5d b7 lea -0x49(%ebp),%ebx 108aaf: 53 push %ebx 108ab0: 51 push %ecx 108ab1: 52 push %edx 108ab2: e8 99 b6 00 00 call 114150 * 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( 108ab7: 8d 45 d8 lea -0x28(%ebp),%eax 108aba: 89 04 24 mov %eax,(%esp) 108abd: 68 ff a1 00 00 push $0xa1ff 108ac2: 53 push %ebx 108ac3: 6a 03 push $0x3 108ac5: ff 75 0c pushl 0xc(%ebp) 108ac8: e8 d3 aa 00 00 call 1135a0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 108acd: 83 c4 20 add $0x20,%esp 108ad0: 85 c0 test %eax,%eax 108ad2: 74 3e je 108b12 <== 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++; 108ad4: 8b 45 d8 mov -0x28(%ebp),%eax 108ad7: 66 ff 40 34 incw 0x34(%eax) IMFS_update_ctime( info.hard_link.link_node ); 108adb: 83 ec 08 sub $0x8,%esp 108ade: 6a 00 push $0x0 108ae0: 8d 45 ec lea -0x14(%ebp),%eax 108ae3: 50 push %eax 108ae4: e8 ff 08 00 00 call 1093e8 108ae9: 8b 55 ec mov -0x14(%ebp),%edx 108aec: 8b 45 d8 mov -0x28(%ebp),%eax 108aef: 89 50 48 mov %edx,0x48(%eax) 108af2: 31 c0 xor %eax,%eax return 0; 108af4: 83 c4 10 add $0x10,%esp } 108af7: 8d 65 f8 lea -0x8(%ebp),%esp 108afa: 5b pop %ebx 108afb: 5f pop %edi 108afc: c9 leave 108afd: c3 ret 108afe: 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 ); 108b00: e8 13 ea 00 00 call 117518 <__errno> 108b05: c7 00 1f 00 00 00 movl $0x1f,(%eax) 108b0b: b8 ff ff ff ff mov $0xffffffff,%eax 108b10: eb e5 jmp 108af7 <== ALWAYS TAKEN ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 108b12: e8 01 ea 00 00 call 117518 <__errno> <== NOT EXECUTED 108b17: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 108b1d: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108b22: eb d3 jmp 108af7 <== NOT EXECUTED 00116148 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 116148: 55 push %ebp 116149: 89 e5 mov %esp,%ebp 11614b: 53 push %ebx 11614c: 83 ec 04 sub $0x4,%esp 11614f: 8b 45 08 mov 0x8(%ebp),%eax block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 116152: 85 c0 test %eax,%eax 116154: 74 50 je 1161a6 <== ALWAYS TAKEN if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 116156: 83 78 4c 05 cmpl $0x5,0x4c(%eax) 11615a: 75 31 jne 11618d <== 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 ); 11615c: 52 push %edx 11615d: 6a 01 push $0x1 11615f: ff 75 0c pushl 0xc(%ebp) 116162: 50 push %eax 116163: e8 b8 fa ff ff call 115c20 <== ALWAYS TAKEN 116168: 89 c3 mov %eax,%ebx if ( *block_entry_ptr ) 11616a: 83 c4 10 add $0x10,%esp 11616d: 8b 00 mov (%eax),%eax 11616f: 85 c0 test %eax,%eax 116171: 74 09 je 11617c #endif memory = memfile_alloc_block(); if ( !memory ) return 1; *block_entry_ptr = memory; 116173: 31 c0 xor %eax,%eax return 0; } 116175: 8b 5d fc mov -0x4(%ebp),%ebx 116178: c9 leave 116179: c3 ret 11617a: 66 90 xchg %ax,%ax <== NOT EXECUTED #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 11617c: e8 7b fa ff ff call 115bfc <== ALWAYS TAKEN if ( !memory ) 116181: 85 c0 test %eax,%eax 116183: 74 04 je 116189 <== ALWAYS TAKEN return 1; *block_entry_ptr = memory; 116185: 89 03 mov %eax,(%ebx) 116187: eb ea jmp 116173 <== ALWAYS TAKEN fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) 116189: b0 01 mov $0x1,%al <== NOT EXECUTED 11618b: eb e8 jmp 116175 <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 11618d: 68 d4 52 12 00 push $0x1252d4 <== NOT EXECUTED 116192: 68 d3 53 12 00 push $0x1253d3 <== NOT EXECUTED 116197: 68 6d 01 00 00 push $0x16d <== NOT EXECUTED 11619c: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 1161a1: e8 36 2e ff ff call 108fdc <__assert_func> <== NOT EXECUTED ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 1161a6: 68 60 52 12 00 push $0x125260 <== NOT EXECUTED 1161ab: 68 d3 53 12 00 push $0x1253d3 <== NOT EXECUTED 1161b0: 68 69 01 00 00 push $0x169 <== NOT EXECUTED 1161b5: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 1161ba: e8 1d 2e ff ff call 108fdc <__assert_func> <== NOT EXECUTED 001161c0 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 1161c0: 55 push %ebp 1161c1: 89 e5 mov %esp,%ebp 1161c3: 57 push %edi 1161c4: 56 push %esi 1161c5: 53 push %ebx 1161c6: 83 ec 1c sub $0x1c,%esp 1161c9: 8b 5d 08 mov 0x8(%ebp),%ebx /* * Perform internal consistency checks */ assert( the_jnode ); 1161cc: 85 db test %ebx,%ebx 1161ce: 0f 84 03 01 00 00 je 1162d7 <== ALWAYS TAKEN if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 1161d4: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx) 1161d8: 0f 85 e0 00 00 00 jne 1162be <== ALWAYS TAKEN if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 1161de: 8b 0d 70 af 12 00 mov 0x12af70,%ecx 1161e4: 89 ce mov %ecx,%esi 1161e6: c1 ee 02 shr $0x2,%esi 1161e9: 8d 56 01 lea 0x1(%esi),%edx 1161ec: 0f af d6 imul %esi,%edx 1161ef: 42 inc %edx 1161f0: 0f af d6 imul %esi,%edx 1161f3: 4a dec %edx 1161f4: 0f af d1 imul %ecx,%edx 1161f7: 39 55 0c cmp %edx,0xc(%ebp) 1161fa: 0f 83 ac 00 00 00 jae 1162ac <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 116200: 8b 45 0c mov 0xc(%ebp),%eax 116203: 99 cltd 116204: 89 45 d8 mov %eax,-0x28(%ebp) 116207: 89 55 dc mov %edx,-0x24(%ebp) 11620a: 8b 73 50 mov 0x50(%ebx),%esi 11620d: 8b 7b 54 mov 0x54(%ebx),%edi 116210: 89 75 e0 mov %esi,-0x20(%ebp) 116213: 89 7d e4 mov %edi,-0x1c(%ebp) 116216: 39 fa cmp %edi,%edx 116218: 7e 72 jle 11628c <== NEVER TAKEN /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 11621a: 8b 45 0c mov 0xc(%ebp),%eax 11621d: 99 cltd 11621e: f7 f9 idiv %ecx 116220: 89 c6 mov %eax,%esi old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 116222: 89 c8 mov %ecx,%eax 116224: 99 cltd 116225: 52 push %edx 116226: 51 push %ecx 116227: ff 75 e4 pushl -0x1c(%ebp) 11622a: ff 75 e0 pushl -0x20(%ebp) 11622d: e8 7a c2 00 00 call 1224ac <__divdi3> 116232: 83 c4 10 add $0x10,%esp 116235: 89 45 e0 mov %eax,-0x20(%ebp) /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 116238: 39 c6 cmp %eax,%esi 11623a: 72 60 jb 11629c <== ALWAYS TAKEN 11623c: 89 c7 mov %eax,%edi 11623e: eb 05 jmp 116245 <== ALWAYS TAKEN 116240: 47 inc %edi 116241: 39 fe cmp %edi,%esi 116243: 72 57 jb 11629c if ( IMFS_memfile_addblock( the_jnode, block ) ) { 116245: 83 ec 08 sub $0x8,%esp 116248: 57 push %edi 116249: 53 push %ebx 11624a: e8 f9 fe ff ff call 116148 <== ALWAYS TAKEN 11624f: 83 c4 10 add $0x10,%esp 116252: 85 c0 test %eax,%eax 116254: 74 ea je 116240 <== NEVER TAKEN for ( ; block>=old_blocks ; block-- ) { 116256: 39 7d e0 cmp %edi,-0x20(%ebp) <== NOT EXECUTED 116259: 77 17 ja 116272 <== NOT EXECUTED 11625b: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED 11625e: 66 90 xchg %ax,%ax <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 116260: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 116263: 57 push %edi <== NOT EXECUTED 116264: 53 push %ebx <== NOT EXECUTED 116265: e8 12 fc ff ff call 115e7c <== 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-- ) { 11626a: 4f dec %edi <== NOT EXECUTED 11626b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11626e: 39 fe cmp %edi,%esi <== NOT EXECUTED 116270: 76 ee jbe 116260 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 116272: e8 a1 12 00 00 call 117518 <__errno> <== NOT EXECUTED 116277: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED 11627d: 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; } 116282: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 116285: 5b pop %ebx <== NOT EXECUTED 116286: 5e pop %esi <== NOT EXECUTED 116287: 5f pop %edi <== NOT EXECUTED 116288: c9 leave <== NOT EXECUTED 116289: c3 ret <== NOT EXECUTED 11628a: 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 ) 11628c: 7c 04 jl 116292 <== ALWAYS TAKEN 11628e: 39 f0 cmp %esi,%eax 116290: 77 88 ja 11621a /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 116292: 31 c0 xor %eax,%eax return 0; } 116294: 8d 65 f4 lea -0xc(%ebp),%esp 116297: 5b pop %ebx 116298: 5e pop %esi 116299: 5f pop %edi 11629a: c9 leave 11629b: c3 ret /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 11629c: 8b 75 d8 mov -0x28(%ebp),%esi 11629f: 8b 7d dc mov -0x24(%ebp),%edi 1162a2: 89 73 50 mov %esi,0x50(%ebx) 1162a5: 89 7b 54 mov %edi,0x54(%ebx) 1162a8: 31 c0 xor %eax,%eax 1162aa: eb e8 jmp 116294 <== ALWAYS TAKEN 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 ) rtems_set_errno_and_return_minus_one( EINVAL ); 1162ac: e8 67 12 00 00 call 117518 <__errno> <== NOT EXECUTED 1162b1: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 1162b7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 1162bc: eb c4 jmp 116282 <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 1162be: 68 d4 52 12 00 push $0x1252d4 <== NOT EXECUTED 1162c3: 68 e9 53 12 00 push $0x1253e9 <== NOT EXECUTED 1162c8: 68 35 01 00 00 push $0x135 <== NOT EXECUTED 1162cd: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 1162d2: e8 05 2d ff ff call 108fdc <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 1162d7: 68 60 52 12 00 push $0x125260 <== NOT EXECUTED 1162dc: 68 e9 53 12 00 push $0x1253e9 <== NOT EXECUTED 1162e1: 68 31 01 00 00 push $0x131 <== NOT EXECUTED 1162e6: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 1162eb: e8 ec 2c ff ff call 108fdc <__assert_func> <== NOT EXECUTED 00115c20 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 115c20: 55 push %ebp 115c21: 89 e5 mov %esp,%ebp 115c23: 57 push %edi 115c24: 56 push %esi 115c25: 53 push %ebx 115c26: 83 ec 1c sub $0x1c,%esp 115c29: 8b 5d 08 mov 0x8(%ebp),%ebx 115c2c: 8b 7d 0c mov 0xc(%ebp),%edi 115c2f: 8b 75 10 mov 0x10(%ebp),%esi /* * Perform internal consistency checks */ assert( the_jnode ); 115c32: 85 db test %ebx,%ebx 115c34: 0f 84 58 01 00 00 je 115d92 <== ALWAYS TAKEN if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 115c3a: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx) 115c3e: 0f 85 67 01 00 00 jne 115dab <== ALWAYS TAKEN /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 115c44: 8b 0d 70 af 12 00 mov 0x12af70,%ecx 115c4a: c1 e9 02 shr $0x2,%ecx 115c4d: 8d 41 ff lea -0x1(%ecx),%eax 115c50: 39 c7 cmp %eax,%edi 115c52: 76 44 jbe 115c98 <== NEVER TAKEN /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 115c54: 8d 41 01 lea 0x1(%ecx),%eax <== NOT EXECUTED 115c57: 0f af c1 imul %ecx,%eax <== NOT EXECUTED 115c5a: 8d 50 ff lea -0x1(%eax),%edx <== NOT EXECUTED 115c5d: 39 d7 cmp %edx,%edi <== NOT EXECUTED 115c5f: 77 57 ja 115cb8 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 115c61: 89 f8 mov %edi,%eax <== NOT EXECUTED 115c63: 29 c8 sub %ecx,%eax <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 115c65: 31 d2 xor %edx,%edx <== NOT EXECUTED 115c67: f7 f1 div %ecx <== NOT EXECUTED 115c69: 89 c1 mov %eax,%ecx <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; 115c6b: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED if ( malloc_it ) { 115c6e: 85 f6 test %esi,%esi <== NOT EXECUTED 115c70: 0f 84 96 00 00 00 je 115d0c <== NOT EXECUTED if ( !p ) { 115c76: 85 c0 test %eax,%eax <== NOT EXECUTED 115c78: 0f 84 dd 00 00 00 je 115d5b <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 115c7e: 8d 1c 88 lea (%eax,%ecx,4),%ebx <== NOT EXECUTED 115c81: 8b 03 mov (%ebx),%eax <== NOT EXECUTED if ( !p1 ) { 115c83: 85 c0 test %eax,%eax <== NOT EXECUTED 115c85: 0f 84 ba 00 00 00 je 115d45 <== 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 ]; 115c8b: 8d 04 90 lea (%eax,%edx,4),%eax <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 115c8e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 115c91: 5b pop %ebx <== NOT EXECUTED 115c92: 5e pop %esi <== NOT EXECUTED 115c93: 5f pop %edi <== NOT EXECUTED 115c94: c9 leave <== NOT EXECUTED 115c95: c3 ret <== NOT EXECUTED 115c96: 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; 115c98: 8b 43 58 mov 0x58(%ebx),%eax if ( malloc_it ) { 115c9b: 85 f6 test %esi,%esi 115c9d: 0f 84 85 00 00 00 je 115d28 if ( !p ) { 115ca3: 85 c0 test %eax,%eax 115ca5: 0f 84 89 00 00 00 je 115d34 p2 = memfile_alloc_block(); if ( !p2 ) return 0; p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; 115cab: 8d 04 b8 lea (%eax,%edi,4),%eax /* * This means the requested block number is out of range. */ return 0; } 115cae: 8d 65 f4 lea -0xc(%ebp),%esp 115cb1: 5b pop %ebx 115cb2: 5e pop %esi 115cb3: 5f pop %edi 115cb4: c9 leave 115cb5: c3 ret 115cb6: 66 90 xchg %ax,%ax <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 115cb8: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 115cbb: 0f af d1 imul %ecx,%edx <== NOT EXECUTED 115cbe: 4a dec %edx <== NOT EXECUTED 115cbf: 39 d7 cmp %edx,%edi <== NOT EXECUTED 115cc1: 77 59 ja 115d1c <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 115cc3: 29 c7 sub %eax,%edi <== NOT EXECUTED 115cc5: 89 f8 mov %edi,%eax <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 115cc7: 31 d2 xor %edx,%edx <== NOT EXECUTED 115cc9: f7 f1 div %ecx <== NOT EXECUTED 115ccb: 89 d7 mov %edx,%edi <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 115ccd: 31 d2 xor %edx,%edx <== NOT EXECUTED 115ccf: f7 f1 div %ecx <== NOT EXECUTED 115cd1: 89 c1 mov %eax,%ecx <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; 115cd3: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED if ( malloc_it ) { 115cd6: 85 f6 test %esi,%esi <== NOT EXECUTED 115cd8: 0f 84 9a 00 00 00 je 115d78 <== NOT EXECUTED if ( !p ) { 115cde: 85 c0 test %eax,%eax <== NOT EXECUTED 115ce0: 0f 84 de 00 00 00 je 115dc4 <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 115ce6: 8d 1c 88 lea (%eax,%ecx,4),%ebx <== NOT EXECUTED 115ce9: 8b 03 mov (%ebx),%eax <== NOT EXECUTED if ( !p1 ) { 115ceb: 85 c0 test %eax,%eax <== NOT EXECUTED 115ced: 0f 84 f2 00 00 00 je 115de5 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 115cf3: 8d 1c 90 lea (%eax,%edx,4),%ebx <== NOT EXECUTED 115cf6: 8b 03 mov (%ebx),%eax <== NOT EXECUTED if ( !p2 ) { 115cf8: 85 c0 test %eax,%eax <== NOT EXECUTED 115cfa: 75 af jne 115cab <== NOT EXECUTED p2 = memfile_alloc_block(); 115cfc: e8 fb fe ff ff call 115bfc <== NOT EXECUTED if ( !p2 ) 115d01: 85 c0 test %eax,%eax <== NOT EXECUTED 115d03: 74 17 je 115d1c <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 115d05: 89 03 mov %eax,(%ebx) <== NOT EXECUTED 115d07: eb a2 jmp 115cab <== NOT EXECUTED 115d09: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 115d0c: 85 c0 test %eax,%eax <== NOT EXECUTED 115d0e: 74 0c je 115d1c <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 115d10: 8b 04 88 mov (%eax,%ecx,4),%eax <== NOT EXECUTED if ( !p ) 115d13: 85 c0 test %eax,%eax <== NOT EXECUTED 115d15: 0f 85 70 ff ff ff jne 115c8b <== NOT EXECUTED 115d1b: 90 nop <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 115d1c: 31 c0 xor %eax,%eax <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 115d1e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 115d21: 5b pop %ebx <== NOT EXECUTED 115d22: 5e pop %esi <== NOT EXECUTED 115d23: 5f pop %edi <== NOT EXECUTED 115d24: c9 leave <== NOT EXECUTED 115d25: c3 ret <== NOT EXECUTED 115d26: 66 90 xchg %ax,%ax <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 115d28: 85 c0 test %eax,%eax 115d2a: 0f 85 7b ff ff ff jne 115cab <== NEVER TAKEN p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 115d30: 31 c0 xor %eax,%eax <== NOT EXECUTED 115d32: eb ea jmp 115d1e <== NOT EXECUTED p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 115d34: e8 c3 fe ff ff call 115bfc <== ALWAYS TAKEN if ( !p ) 115d39: 85 c0 test %eax,%eax 115d3b: 74 df je 115d1c <== ALWAYS TAKEN return 0; info->indirect = p; 115d3d: 89 43 58 mov %eax,0x58(%ebx) 115d40: e9 66 ff ff ff jmp 115cab <== ALWAYS TAKEN info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block(); 115d45: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 115d48: e8 af fe ff ff call 115bfc <== NOT EXECUTED if ( !p1 ) 115d4d: 85 c0 test %eax,%eax <== NOT EXECUTED 115d4f: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 115d52: 74 c8 je 115d1c <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 115d54: 89 03 mov %eax,(%ebx) <== NOT EXECUTED 115d56: e9 30 ff ff ff jmp 115c8b <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 115d5b: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 115d5e: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 115d61: e8 96 fe ff ff call 115bfc <== NOT EXECUTED if ( !p ) 115d66: 85 c0 test %eax,%eax <== NOT EXECUTED 115d68: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 115d6b: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 115d6e: 74 ac je 115d1c <== NOT EXECUTED return 0; info->doubly_indirect = p; 115d70: 89 43 5c mov %eax,0x5c(%ebx) <== NOT EXECUTED 115d73: e9 06 ff ff ff jmp 115c7e <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 115d78: 85 c0 test %eax,%eax <== NOT EXECUTED 115d7a: 74 a0 je 115d1c <== 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 ]; 115d7c: 8b 0c 88 mov (%eax,%ecx,4),%ecx <== NOT EXECUTED if ( !p1 ) 115d7f: 85 c9 test %ecx,%ecx <== NOT EXECUTED 115d81: 74 99 je 115d1c <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 115d83: 8d 04 bd 00 00 00 00 lea 0x0(,%edi,4),%eax <== NOT EXECUTED 115d8a: 03 04 91 add (%ecx,%edx,4),%eax <== NOT EXECUTED 115d8d: e9 fc fe ff ff jmp 115c8e <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 115d92: 68 60 52 12 00 push $0x125260 <== NOT EXECUTED 115d97: 68 44 53 12 00 push $0x125344 <== NOT EXECUTED 115d9c: 68 88 03 00 00 push $0x388 <== NOT EXECUTED 115da1: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 115da6: e8 31 32 ff ff call 108fdc <__assert_func> <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 115dab: 68 d4 52 12 00 push $0x1252d4 <== NOT EXECUTED 115db0: 68 44 53 12 00 push $0x125344 <== NOT EXECUTED 115db5: 68 8c 03 00 00 push $0x38c <== NOT EXECUTED 115dba: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 115dbf: e8 18 32 ff ff call 108fdc <__assert_func> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 115dc4: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 115dc7: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 115dca: e8 2d fe ff ff call 115bfc <== NOT EXECUTED if ( !p ) 115dcf: 85 c0 test %eax,%eax <== NOT EXECUTED 115dd1: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 115dd4: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 115dd7: 0f 84 3f ff ff ff je 115d1c <== NOT EXECUTED return 0; info->triply_indirect = p; 115ddd: 89 43 60 mov %eax,0x60(%ebx) <== NOT EXECUTED 115de0: e9 01 ff ff ff jmp 115ce6 <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); 115de5: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 115de8: e8 0f fe ff ff call 115bfc <== NOT EXECUTED if ( !p1 ) 115ded: 85 c0 test %eax,%eax <== NOT EXECUTED 115def: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 115df2: 0f 84 24 ff ff ff je 115d1c <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 115df8: 89 03 mov %eax,(%ebx) <== NOT EXECUTED 115dfa: e9 f4 fe ff ff jmp 115cf3 <== NOT EXECUTED 001166f4 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 1166f4: 55 push %ebp 1166f5: 89 e5 mov %esp,%ebp 1166f7: 57 push %edi 1166f8: 56 push %esi 1166f9: 53 push %ebx 1166fa: 83 ec 4c sub $0x4c,%esp /* * Perform internal consistency checks */ assert( the_jnode ); 1166fd: 8b 7d 08 mov 0x8(%ebp),%edi 116700: 85 ff test %edi,%edi 116702: 0f 84 75 02 00 00 je 11697d <== ALWAYS TAKEN if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 116708: 8b 45 08 mov 0x8(%ebp),%eax 11670b: 8b 48 4c mov 0x4c(%eax),%ecx 11670e: 8d 59 fb lea -0x5(%ecx),%ebx 116711: 83 fb 01 cmp $0x1,%ebx 116714: 0f 87 4a 02 00 00 ja 116964 <== ALWAYS TAKEN /* * Error checks on arguments */ assert( dest ); 11671a: 8b 75 10 mov 0x10(%ebp),%esi 11671d: 85 f6 test %esi,%esi 11671f: 0f 84 0d 02 00 00 je 116932 <== ALWAYS TAKEN /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 116725: 8b 5d 14 mov 0x14(%ebp),%ebx 116728: 85 db test %ebx,%ebx 11672a: 0f 84 d4 01 00 00 je 116904 <== ALWAYS TAKEN /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 116730: 83 f9 06 cmp $0x6,%ecx 116733: 0f 84 3f 01 00 00 je 116878 <== 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; if ( last_byte > the_jnode->info.file.size ) 116739: 8b 7d 08 mov 0x8(%ebp),%edi 11673c: 8b 5f 50 mov 0x50(%edi),%ebx 11673f: 8b 75 14 mov 0x14(%ebp),%esi 116742: 03 75 0c add 0xc(%ebp),%esi 116745: 31 c9 xor %ecx,%ecx 116747: 3b 4f 54 cmp 0x54(%edi),%ecx 11674a: 0f 8e c8 00 00 00 jle 116818 <== NEVER TAKEN my_length = the_jnode->info.file.size - start; 116750: 2b 5d 0c sub 0xc(%ebp),%ebx 116753: 89 5d d0 mov %ebx,-0x30(%ebp) /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 116756: 8b 15 70 af 12 00 mov 0x12af70,%edx 11675c: 89 55 d4 mov %edx,-0x2c(%ebp) 11675f: 8b 45 0c mov 0xc(%ebp),%eax 116762: 99 cltd 116763: f7 7d d4 idivl -0x2c(%ebp) 116766: 89 d6 mov %edx,%esi 116768: 89 45 c4 mov %eax,-0x3c(%ebp) block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 11676b: 89 c3 mov %eax,%ebx if ( start_offset ) { 11676d: 85 d2 test %edx,%edx 11676f: 0f 85 b7 00 00 00 jne 11682c 116775: 8b 4d 10 mov 0x10(%ebp),%ecx 116778: 89 4d cc mov %ecx,-0x34(%ebp) 11677b: 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 ) { 116782: 8b 55 d4 mov -0x2c(%ebp),%edx 116785: 39 55 d0 cmp %edx,-0x30(%ebp) 116788: 72 3b jb 1167c5 11678a: 66 90 xchg %ax,%ax block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 11678c: 50 push %eax 11678d: 6a 00 push $0x0 11678f: 53 push %ebx 116790: ff 75 08 pushl 0x8(%ebp) 116793: e8 88 f4 ff ff call 115c20 <== ALWAYS TAKEN assert( block_ptr ); 116798: 83 c4 10 add $0x10,%esp 11679b: 85 c0 test %eax,%eax 11679d: 0f 84 76 01 00 00 je 116919 <== ALWAYS TAKEN if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 1167a3: 8b 30 mov (%eax),%esi 1167a5: 8b 7d cc mov -0x34(%ebp),%edi 1167a8: 8b 4d d4 mov -0x2c(%ebp),%ecx 1167ab: f3 a4 rep movsb %ds:(%esi),%es:(%edi) dest += to_copy; 1167ad: 89 7d cc mov %edi,-0x34(%ebp) block++; 1167b0: 43 inc %ebx my_length -= to_copy; 1167b1: 8b 4d d4 mov -0x2c(%ebp),%ecx 1167b4: 29 4d d0 sub %ecx,-0x30(%ebp) copied += to_copy; 1167b7: 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 ) { 1167ba: 8b 7d d0 mov -0x30(%ebp),%edi 1167bd: 39 3d 70 af 12 00 cmp %edi,0x12af70 1167c3: 76 c7 jbe 11678c * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 1167c5: 8b 7d d0 mov -0x30(%ebp),%edi 1167c8: 85 ff test %edi,%edi 1167ca: 74 27 je 1167f3 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 1167cc: 56 push %esi 1167cd: 6a 00 push $0x0 1167cf: 53 push %ebx 1167d0: ff 75 08 pushl 0x8(%ebp) 1167d3: e8 48 f4 ff ff call 115c20 <== ALWAYS TAKEN assert( block_ptr ); 1167d8: 83 c4 10 add $0x10,%esp 1167db: 85 c0 test %eax,%eax 1167dd: 0f 84 68 01 00 00 je 11694b <== ALWAYS TAKEN if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 1167e3: 8b 30 mov (%eax),%esi 1167e5: 8b 7d cc mov -0x34(%ebp),%edi 1167e8: 8b 4d d0 mov -0x30(%ebp),%ecx 1167eb: f3 a4 rep movsb %ds:(%esi),%es:(%edi) copied += my_length; 1167ed: 8b 45 d0 mov -0x30(%ebp),%eax 1167f0: 01 45 c8 add %eax,-0x38(%ebp) } IMFS_update_atime( the_jnode ); 1167f3: 83 ec 08 sub $0x8,%esp 1167f6: 6a 00 push $0x0 1167f8: 8d 45 e0 lea -0x20(%ebp),%eax 1167fb: 50 push %eax 1167fc: e8 e7 2b ff ff call 1093e8 116801: 8b 45 e0 mov -0x20(%ebp),%eax 116804: 8b 55 08 mov 0x8(%ebp),%edx 116807: 89 42 40 mov %eax,0x40(%edx) return copied; 11680a: 8b 45 c8 mov -0x38(%ebp),%eax 11680d: 83 c4 10 add $0x10,%esp } 116810: 8d 65 f4 lea -0xc(%ebp),%esp 116813: 5b pop %ebx 116814: 5e pop %esi 116815: 5f pop %edi 116816: c9 leave 116817: 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 ) 116818: 0f 8d c2 00 00 00 jge 1168e0 <== NEVER TAKEN 11681e: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED 116821: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED 116824: e9 2d ff ff ff jmp 116756 <== NOT EXECUTED 116829: 8d 76 00 lea 0x0(%esi),%esi <== 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 ); 11682c: 52 push %edx 11682d: 6a 00 push $0x0 11682f: ff 75 c4 pushl -0x3c(%ebp) 116832: ff 75 08 pushl 0x8(%ebp) 116835: e8 e6 f3 ff ff call 115c20 <== ALWAYS TAKEN assert( block_ptr ); 11683a: 83 c4 10 add $0x10,%esp 11683d: 85 c0 test %eax,%eax 11683f: 0f 84 51 01 00 00 je 116996 <== 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; 116845: 8b 4d d4 mov -0x2c(%ebp),%ecx 116848: 29 f1 sub %esi,%ecx 11684a: 8b 55 d0 mov -0x30(%ebp),%edx 11684d: 39 ca cmp %ecx,%edx 11684f: 0f 87 9b 00 00 00 ja 1168f0 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 ); 116855: 03 30 add (%eax),%esi dest += to_copy; 116857: 8b 7d 10 mov 0x10(%ebp),%edi 11685a: 89 d1 mov %edx,%ecx 11685c: f3 a4 rep movsb %ds:(%esi),%es:(%edi) 11685e: 89 7d cc mov %edi,-0x34(%ebp) block++; 116861: 8b 5d c4 mov -0x3c(%ebp),%ebx 116864: 43 inc %ebx my_length -= to_copy; 116865: 29 55 d0 sub %edx,-0x30(%ebp) 116868: a1 70 af 12 00 mov 0x12af70,%eax 11686d: 89 45 d4 mov %eax,-0x2c(%ebp) 116870: 89 55 c8 mov %edx,-0x38(%ebp) 116873: e9 0a ff ff ff jmp 116782 <== ALWAYS TAKEN * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; 116878: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 11687b: 8b 52 58 mov 0x58(%edx),%edx <== NOT EXECUTED 11687e: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) 116881: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 116884: 8b 71 50 mov 0x50(%ecx),%esi <== NOT EXECUTED 116887: 8b 79 54 mov 0x54(%ecx),%edi <== NOT EXECUTED 11688a: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 11688d: 99 cltd <== NOT EXECUTED 11688e: 89 f1 mov %esi,%ecx <== NOT EXECUTED 116890: 89 fb mov %edi,%ebx <== NOT EXECUTED 116892: 29 c1 sub %eax,%ecx <== NOT EXECUTED 116894: 19 d3 sbb %edx,%ebx <== NOT EXECUTED 116896: 89 4d b0 mov %ecx,-0x50(%ebp) <== NOT EXECUTED 116899: 89 5d b4 mov %ebx,-0x4c(%ebp) <== NOT EXECUTED 11689c: 31 c0 xor %eax,%eax <== NOT EXECUTED 11689e: 39 d8 cmp %ebx,%eax <== NOT EXECUTED 1168a0: 7e 56 jle 1168f8 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 1168a2: 89 f2 mov %esi,%edx <== NOT EXECUTED 1168a4: 2b 55 0c sub 0xc(%ebp),%edx <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 1168a7: 8b 75 d4 mov -0x2c(%ebp),%esi <== NOT EXECUTED 1168aa: 03 75 0c add 0xc(%ebp),%esi <== NOT EXECUTED 1168ad: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED 1168b0: 89 d1 mov %edx,%ecx <== NOT EXECUTED 1168b2: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED IMFS_update_atime( the_jnode ); 1168b4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1168b7: 6a 00 push $0x0 <== NOT EXECUTED 1168b9: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED 1168bc: 50 push %eax <== NOT EXECUTED 1168bd: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED 1168c0: e8 23 2b ff ff call 1093e8 <== NOT EXECUTED 1168c5: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 1168c8: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 1168cb: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED return my_length; 1168ce: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED 1168d1: 89 d0 mov %edx,%eax <== NOT EXECUTED 1168d3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } IMFS_update_atime( the_jnode ); return copied; } 1168d6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1168d9: 5b pop %ebx <== NOT EXECUTED 1168da: 5e pop %esi <== NOT EXECUTED 1168db: 5f pop %edi <== NOT EXECUTED 1168dc: c9 leave <== NOT EXECUTED 1168dd: c3 ret <== NOT EXECUTED 1168de: 66 90 xchg %ax,%ax <== 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 ) 1168e0: 39 de cmp %ebx,%esi 1168e2: 0f 87 68 fe ff ff ja 116750 <== NEVER TAKEN 1168e8: e9 31 ff ff ff jmp 11681e <== NOT EXECUTED 1168ed: 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; 1168f0: 89 ca mov %ecx,%edx 1168f2: e9 5e ff ff ff jmp 116855 <== ALWAYS TAKEN 1168f7: 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)) 1168f8: 7c 05 jl 1168ff <== NOT EXECUTED 1168fa: 39 4d 14 cmp %ecx,0x14(%ebp) <== NOT EXECUTED 1168fd: 77 a3 ja 1168a2 <== NOT EXECUTED 1168ff: 8b 55 14 mov 0x14(%ebp),%edx <== NOT EXECUTED 116902: eb a3 jmp 1168a7 <== 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 ); 116904: e8 0f 0c 00 00 call 117518 <__errno> <== NOT EXECUTED 116909: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 11690f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 116914: e9 f7 fe ff ff jmp 116810 <== 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 ); 116919: 68 76 52 12 00 push $0x125276 <== NOT EXECUTED 11691e: 68 76 53 12 00 push $0x125376 <== NOT EXECUTED 116923: 68 a7 02 00 00 push $0x2a7 <== NOT EXECUTED 116928: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 11692d: e8 aa 26 ff ff call 108fdc <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 116932: 68 87 52 12 00 push $0x125287 <== NOT EXECUTED 116937: 68 76 53 12 00 push $0x125376 <== NOT EXECUTED 11693c: 68 5a 02 00 00 push $0x25a <== NOT EXECUTED 116941: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 116946: e8 91 26 ff ff call 108fdc <__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 ); 11694b: 68 76 52 12 00 push $0x125276 <== NOT EXECUTED 116950: 68 76 53 12 00 push $0x125376 <== NOT EXECUTED 116955: 68 b9 02 00 00 push $0x2b9 <== NOT EXECUTED 11695a: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 11695f: e8 78 26 ff ff call 108fdc <__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 || 116964: 68 f8 52 12 00 push $0x1252f8 <== NOT EXECUTED 116969: 68 76 53 12 00 push $0x125376 <== NOT EXECUTED 11696e: 68 51 02 00 00 push $0x251 <== NOT EXECUTED 116973: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 116978: e8 5f 26 ff ff call 108fdc <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 11697d: 68 60 52 12 00 push $0x125260 <== NOT EXECUTED 116982: 68 76 53 12 00 push $0x125376 <== NOT EXECUTED 116987: 68 4c 02 00 00 push $0x24c <== NOT EXECUTED 11698c: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 116991: e8 46 26 ff ff call 108fdc <__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 ); 116996: 68 76 52 12 00 push $0x125276 <== NOT EXECUTED 11699b: 68 76 53 12 00 push $0x125376 <== NOT EXECUTED 1169a0: 68 96 02 00 00 push $0x296 <== NOT EXECUTED 1169a5: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 1169aa: e8 2d 26 ff ff call 108fdc <__assert_func> <== NOT EXECUTED 00115ec8 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 115ec8: 55 push %ebp 115ec9: 89 e5 mov %esp,%ebp 115ecb: 57 push %edi 115ecc: 56 push %esi 115ecd: 53 push %ebx 115ece: 83 ec 1c sub $0x1c,%esp /* * Perform internal consistency checks */ assert( the_jnode ); 115ed1: 8b 55 08 mov 0x8(%ebp),%edx 115ed4: 85 d2 test %edx,%edx 115ed6: 0f 84 61 01 00 00 je 11603d <== ALWAYS TAKEN if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 115edc: 8b 45 08 mov 0x8(%ebp),%eax 115edf: 83 78 4c 05 cmpl $0x5,0x4c(%eax) 115ee3: 0f 85 6d 01 00 00 jne 116056 <== 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; 115ee9: 8b 3d 70 af 12 00 mov 0x12af70,%edi 115eef: c1 ef 02 shr $0x2,%edi * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 115ef2: 8b 55 08 mov 0x8(%ebp),%edx 115ef5: 8b 42 58 mov 0x58(%edx),%eax 115ef8: 85 c0 test %eax,%eax 115efa: 74 12 je 115f0e if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 115efc: 83 ec 08 sub $0x8,%esp 115eff: 57 push %edi 115f00: 89 d0 mov %edx,%eax 115f02: 83 c0 58 add $0x58,%eax 115f05: 50 push %eax 115f06: e8 f5 fe ff ff call 115e00 <== ALWAYS TAKEN 115f0b: 83 c4 10 add $0x10,%esp } if ( info->doubly_indirect ) { 115f0e: 8b 4d 08 mov 0x8(%ebp),%ecx 115f11: 8b 51 5c mov 0x5c(%ecx),%edx 115f14: 85 d2 test %edx,%edx 115f16: 74 57 je 115f6f <== NEVER TAKEN for ( i=0 ; i <== NOT EXECUTED 115f24: 31 c9 xor %ecx,%ecx <== NOT EXECUTED 115f26: 31 db xor %ebx,%ebx <== NOT EXECUTED 115f28: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED 115f2b: eb 06 jmp 115f33 <== NOT EXECUTED 115f2d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 115f30: 8b 56 5c mov 0x5c(%esi),%edx <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 115f33: c1 e1 02 shl $0x2,%ecx <== NOT EXECUTED 115f36: 83 3c 0a 00 cmpl $0x0,(%edx,%ecx,1) <== NOT EXECUTED 115f3a: 74 14 je 115f50 <== NOT EXECUTED memfile_free_blocks_in_table( 115f3c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 115f3f: 57 push %edi <== NOT EXECUTED 115f40: 01 ca add %ecx,%edx <== NOT EXECUTED 115f42: 52 push %edx <== NOT EXECUTED 115f43: e8 b8 fe ff ff call 115e00 <== NOT EXECUTED 115f48: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 115f4b: a1 70 af 12 00 mov 0x12af70,%eax <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; i <== 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 ); 115f5c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 115f5f: 57 push %edi <== NOT EXECUTED 115f60: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 115f63: 83 c0 5c add $0x5c,%eax <== NOT EXECUTED 115f66: 50 push %eax <== NOT EXECUTED 115f67: e8 94 fe ff ff call 115e00 <== NOT EXECUTED 115f6c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } if ( info->triply_indirect ) { 115f6f: 8b 45 08 mov 0x8(%ebp),%eax 115f72: 8b 50 60 mov 0x60(%eax),%edx 115f75: 85 d2 test %edx,%edx 115f77: 0f 84 b6 00 00 00 je 116033 <== NEVER TAKEN for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 115f8d: 8b 32 mov (%edx),%esi <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 115f8f: 85 f6 test %esi,%esi <== NOT EXECUTED 115f91: 0f 84 89 00 00 00 je 116020 <== NOT EXECUTED 115f97: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED 115f9e: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED 115fa5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 115faf: 31 d2 xor %edx,%edx <== NOT EXECUTED 115fb1: 31 db xor %ebx,%ebx <== NOT EXECUTED 115fb3: 90 nop <== NOT EXECUTED if ( p[j] ) { 115fb4: c1 e2 02 shl $0x2,%edx <== NOT EXECUTED 115fb7: 8b 0c 16 mov (%esi,%edx,1),%ecx <== NOT EXECUTED 115fba: 85 c9 test %ecx,%ecx <== NOT EXECUTED 115fbc: 74 15 je 115fd3 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 115fbe: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 115fc1: 57 push %edi <== NOT EXECUTED 115fc2: 8d 14 16 lea (%esi,%edx,1),%edx <== NOT EXECUTED 115fc5: 52 push %edx <== NOT EXECUTED 115fc6: e8 35 fe ff ff call 115e00 <== NOT EXECUTED 115fcb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 115fce: a1 70 af 12 00 mov 0x12af70,%eax <== NOT EXECUTED if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; if ( !p ) /* ensure we have a valid pointer */ break; for ( j=0 ; j <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 115fdf: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 115fe2: 57 push %edi <== NOT EXECUTED 115fe3: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 115fe6: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 115fe9: 03 41 60 add 0x60(%ecx),%eax <== NOT EXECUTED 115fec: 50 push %eax <== NOT EXECUTED 115fed: e8 0e fe ff ff call 115e00 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; if ( !p ) /* ensure we have a valid pointer */ 116007: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 11600a: c1 e2 02 shl $0x2,%edx <== NOT EXECUTED 11600d: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 116010: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 116013: 8b 51 60 mov 0x60(%ecx),%edx <== NOT EXECUTED 116016: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 116019: 8b 34 0a mov (%edx,%ecx,1),%esi <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 11601c: 85 f6 test %esi,%esi <== NOT EXECUTED 11601e: 75 88 jne 115fa8 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 116020: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 116023: 57 push %edi <== NOT EXECUTED 116024: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 116027: 83 c0 60 add $0x60,%eax <== NOT EXECUTED 11602a: 50 push %eax <== NOT EXECUTED 11602b: e8 d0 fd ff ff call 115e00 <== NOT EXECUTED 116030: 83 c4 10 add $0x10,%esp <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 116033: 31 c0 xor %eax,%eax 116035: 8d 65 f4 lea -0xc(%ebp),%esp 116038: 5b pop %ebx 116039: 5e pop %esi 11603a: 5f pop %edi 11603b: c9 leave 11603c: c3 ret /* * Perform internal consistency checks */ assert( the_jnode ); 11603d: 68 60 52 12 00 push $0x125260 <== NOT EXECUTED 116042: 68 88 53 12 00 push $0x125388 <== NOT EXECUTED 116047: 68 ee 01 00 00 push $0x1ee <== NOT EXECUTED 11604c: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 116051: e8 86 2f ff ff call 108fdc <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 116056: 68 d4 52 12 00 push $0x1252d4 <== NOT EXECUTED 11605b: 68 88 53 12 00 push $0x125388 <== NOT EXECUTED 116060: 68 f2 01 00 00 push $0x1f2 <== NOT EXECUTED 116065: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 11606a: e8 6d 2f ff ff call 108fdc <__assert_func> <== NOT EXECUTED 00115e7c : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 115e7c: 55 push %ebp <== NOT EXECUTED 115e7d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 115e7f: 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 ); 115e82: 6a 00 push $0x0 <== NOT EXECUTED 115e84: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 115e87: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 115e8a: e8 91 fd ff ff call 115c20 <== NOT EXECUTED assert( block_ptr ); 115e8f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 115e92: 85 c0 test %eax,%eax <== NOT EXECUTED 115e94: 74 18 je 115eae <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; 115e96: 8b 10 mov (%eax),%edx <== NOT EXECUTED *block_ptr = 0; 115e98: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED memfile_free_block( ptr ); 115e9e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 115ea1: 52 push %edx <== NOT EXECUTED 115ea2: e8 39 fd ff ff call 115be0 <== NOT EXECUTED } return 1; } 115ea7: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED 115eac: c9 leave <== NOT EXECUTED 115ead: 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 ); 115eae: 68 76 52 12 00 push $0x125276 <== NOT EXECUTED 115eb3: 68 b9 53 12 00 push $0x1253b9 <== NOT EXECUTED 115eb8: 68 96 01 00 00 push $0x196 <== NOT EXECUTED 115ebd: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 115ec2: e8 15 31 ff ff call 108fdc <__assert_func> <== NOT EXECUTED 001163dc : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 1163dc: 55 push %ebp 1163dd: 89 e5 mov %esp,%ebp 1163df: 57 push %edi 1163e0: 56 push %esi 1163e1: 53 push %ebx 1163e2: 83 ec 2c sub $0x2c,%esp 1163e5: 8b 5d 0c mov 0xc(%ebp),%ebx 1163e8: 8b 75 10 mov 0x10(%ebp),%esi /* * Perform internal consistency checks */ assert( the_jnode ); 1163eb: 8b 4d 08 mov 0x8(%ebp),%ecx 1163ee: 85 c9 test %ecx,%ecx 1163f0: 0f 84 c8 01 00 00 je 1165be <== ALWAYS TAKEN if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 1163f6: 8b 45 08 mov 0x8(%ebp),%eax 1163f9: 83 78 4c 05 cmpl $0x5,0x4c(%eax) 1163fd: 0f 85 a2 01 00 00 jne 1165a5 <== ALWAYS TAKEN /* * Error check arguments */ assert( source ); 116403: 85 f6 test %esi,%esi 116405: 0f 84 cc 01 00 00 je 1165d7 <== ALWAYS TAKEN /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 11640b: 8b 55 14 mov 0x14(%ebp),%edx 11640e: 85 d2 test %edx,%edx 116410: 0f 84 5f 01 00 00 je 116575 <== 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; 116416: 8b 55 14 mov 0x14(%ebp),%edx 116419: 01 da add %ebx,%edx if ( last_byte > the_jnode->info.file.size ) { 11641b: 31 c0 xor %eax,%eax 11641d: 8b 4d 08 mov 0x8(%ebp),%ecx 116420: 3b 41 54 cmp 0x54(%ecx),%eax 116423: 7c 0f jl 116434 <== ALWAYS TAKEN 116425: 0f 8f 15 01 00 00 jg 116540 <== ALWAYS TAKEN 11642b: 3b 51 50 cmp 0x50(%ecx),%edx 11642e: 0f 87 0c 01 00 00 ja 116540 <== NEVER TAKEN /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 116434: a1 70 af 12 00 mov 0x12af70,%eax 116439: 89 45 d4 mov %eax,-0x2c(%ebp) 11643c: 89 d8 mov %ebx,%eax 11643e: 99 cltd 11643f: f7 7d d4 idivl -0x2c(%ebp) 116442: 89 45 cc mov %eax,-0x34(%ebp) block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 116445: 89 c3 mov %eax,%ebx if ( start_offset ) { 116447: 85 d2 test %edx,%edx 116449: 0f 85 9d 00 00 00 jne 1164ec 11644f: 8b 55 14 mov 0x14(%ebp),%edx 116452: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 116459: 3b 55 d4 cmp -0x2c(%ebp),%edx 11645c: 72 3a jb 116498 11645e: 66 90 xchg %ax,%ax block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 116460: 57 push %edi 116461: 6a 00 push $0x0 116463: 53 push %ebx 116464: ff 75 08 pushl 0x8(%ebp) 116467: 89 55 c8 mov %edx,-0x38(%ebp) 11646a: e8 b1 f7 ff ff call 115c20 <== ALWAYS TAKEN assert( block_ptr ); 11646f: 83 c4 10 add $0x10,%esp 116472: 85 c0 test %eax,%eax 116474: 8b 55 c8 mov -0x38(%ebp),%edx 116477: 0f 84 0f 01 00 00 je 11658c <== 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 ); 11647d: 8b 00 mov (%eax),%eax src += to_copy; 11647f: 89 c7 mov %eax,%edi 116481: 8b 4d d4 mov -0x2c(%ebp),%ecx 116484: f3 a4 rep movsb %ds:(%esi),%es:(%edi) block++; 116486: 43 inc %ebx my_length -= to_copy; 116487: 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( 11648a: 8b 4d d4 mov -0x2c(%ebp),%ecx 11648d: 01 4d d0 add %ecx,-0x30(%ebp) /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 116490: 39 15 70 af 12 00 cmp %edx,0x12af70 116496: 76 c8 jbe 116460 <== ALWAYS TAKEN */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 116498: 85 d2 test %edx,%edx 11649a: 74 28 je 1164c4 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 11649c: 51 push %ecx 11649d: 6a 00 push $0x0 11649f: 53 push %ebx 1164a0: ff 75 08 pushl 0x8(%ebp) 1164a3: 89 55 c8 mov %edx,-0x38(%ebp) 1164a6: e8 75 f7 ff ff call 115c20 <== ALWAYS TAKEN assert( block_ptr ); 1164ab: 83 c4 10 add $0x10,%esp 1164ae: 85 c0 test %eax,%eax 1164b0: 8b 55 c8 mov -0x38(%ebp),%edx 1164b3: 0f 84 37 01 00 00 je 1165f0 <== 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 ); 1164b9: 8b 00 mov (%eax),%eax 1164bb: 89 c7 mov %eax,%edi 1164bd: 89 d1 mov %edx,%ecx 1164bf: f3 a4 rep movsb %ds:(%esi),%es:(%edi) my_length = 0; copied += to_copy; 1164c1: 01 55 d0 add %edx,-0x30(%ebp) } IMFS_mtime_ctime_update( the_jnode ); 1164c4: 83 ec 08 sub $0x8,%esp 1164c7: 6a 00 push $0x0 1164c9: 8d 45 e0 lea -0x20(%ebp),%eax 1164cc: 50 push %eax 1164cd: e8 16 2f ff ff call 1093e8 1164d2: 8b 45 e0 mov -0x20(%ebp),%eax 1164d5: 8b 55 08 mov 0x8(%ebp),%edx 1164d8: 89 42 44 mov %eax,0x44(%edx) 1164db: 89 42 48 mov %eax,0x48(%edx) return copied; 1164de: 83 c4 10 add $0x10,%esp } 1164e1: 8b 45 d0 mov -0x30(%ebp),%eax 1164e4: 8d 65 f4 lea -0xc(%ebp),%esp 1164e7: 5b pop %ebx 1164e8: 5e pop %esi 1164e9: 5f pop %edi 1164ea: c9 leave 1164eb: 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 ); 1164ec: 50 push %eax 1164ed: 6a 00 push $0x0 1164ef: ff 75 cc pushl -0x34(%ebp) 1164f2: ff 75 08 pushl 0x8(%ebp) 1164f5: 89 55 c8 mov %edx,-0x38(%ebp) 1164f8: e8 23 f7 ff ff call 115c20 <== ALWAYS TAKEN assert( block_ptr ); 1164fd: 83 c4 10 add $0x10,%esp 116500: 85 c0 test %eax,%eax 116502: 8b 55 c8 mov -0x38(%ebp),%edx 116505: 0f 84 fe 00 00 00 je 116609 <== 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; 11650b: 8b 4d d4 mov -0x2c(%ebp),%ecx 11650e: 29 d1 sub %edx,%ecx 116510: 89 4d d0 mov %ecx,-0x30(%ebp) 116513: 8b 4d 14 mov 0x14(%ebp),%ecx 116516: 39 4d d0 cmp %ecx,-0x30(%ebp) 116519: 77 55 ja 116570 <== NEVER TAKEN 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 ); 11651b: 8b 00 mov (%eax),%eax 11651d: 01 d0 add %edx,%eax src += to_copy; 11651f: 89 c7 mov %eax,%edi 116521: 8b 4d d0 mov -0x30(%ebp),%ecx 116524: f3 a4 rep movsb %ds:(%esi),%es:(%edi) block++; 116526: 8b 5d cc mov -0x34(%ebp),%ebx 116529: 43 inc %ebx my_length -= to_copy; 11652a: 8b 55 14 mov 0x14(%ebp),%edx 11652d: 2b 55 d0 sub -0x30(%ebp),%edx copied += to_copy; 116530: a1 70 af 12 00 mov 0x12af70,%eax 116535: 89 45 d4 mov %eax,-0x2c(%ebp) 116538: e9 1c ff ff ff jmp 116459 <== ALWAYS TAKEN 11653d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED * 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 ); 116540: 83 ec 08 sub $0x8,%esp 116543: 52 push %edx 116544: ff 75 08 pushl 0x8(%ebp) 116547: e8 74 fc ff ff call 1161c0 <== ALWAYS TAKEN if ( status ) 11654c: 83 c4 10 add $0x10,%esp 11654f: 85 c0 test %eax,%eax 116551: 0f 84 dd fe ff ff je 116434 <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOSPC ); 116557: e8 bc 0f 00 00 call 117518 <__errno> <== NOT EXECUTED 11655c: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED 116562: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp) <== NOT EXECUTED 116569: e9 73 ff ff ff jmp 1164e1 <== NOT EXECUTED 11656e: 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; 116570: 89 4d d0 mov %ecx,-0x30(%ebp) 116573: eb a6 jmp 11651b <== ALWAYS TAKEN * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 116575: e8 9e 0f 00 00 call 117518 <__errno> <== NOT EXECUTED 11657a: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 116580: c7 45 d0 ff ff ff ff movl $0xffffffff,-0x30(%ebp) <== NOT EXECUTED 116587: e9 55 ff ff ff jmp 1164e1 <== 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 ); 11658c: 68 76 52 12 00 push $0x125276 <== NOT EXECUTED 116591: 68 63 53 12 00 push $0x125363 <== NOT EXECUTED 116596: 68 30 03 00 00 push $0x330 <== NOT EXECUTED 11659b: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 1165a0: e8 37 2a ff ff call 108fdc <__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 ); 1165a5: 68 d4 52 12 00 push $0x1252d4 <== NOT EXECUTED 1165aa: 68 63 53 12 00 push $0x125363 <== NOT EXECUTED 1165af: 68 e7 02 00 00 push $0x2e7 <== NOT EXECUTED 1165b4: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 1165b9: e8 1e 2a ff ff call 108fdc <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 1165be: 68 60 52 12 00 push $0x125260 <== NOT EXECUTED 1165c3: 68 63 53 12 00 push $0x125363 <== NOT EXECUTED 1165c8: 68 e3 02 00 00 push $0x2e3 <== NOT EXECUTED 1165cd: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 1165d2: e8 05 2a ff ff call 108fdc <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 1165d7: 68 80 52 12 00 push $0x125280 <== NOT EXECUTED 1165dc: 68 63 53 12 00 push $0x125363 <== NOT EXECUTED 1165e1: 68 ef 02 00 00 push $0x2ef <== NOT EXECUTED 1165e6: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 1165eb: e8 ec 29 ff ff call 108fdc <__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 ); 1165f0: 68 76 52 12 00 push $0x125276 <== NOT EXECUTED 1165f5: 68 63 53 12 00 push $0x125363 <== NOT EXECUTED 1165fa: 68 46 03 00 00 push $0x346 <== NOT EXECUTED 1165ff: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 116604: e8 d3 29 ff ff call 108fdc <__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 ); 116609: 68 76 52 12 00 push $0x125276 <== NOT EXECUTED 11660e: 68 63 53 12 00 push $0x125363 <== NOT EXECUTED 116613: 68 1c 03 00 00 push $0x31c <== NOT EXECUTED 116618: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 11661d: e8 ba 29 ff ff call 108fdc <__assert_func> <== NOT EXECUTED 0010f500 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 10f500: 55 push %ebp 10f501: 89 e5 mov %esp,%ebp 10f503: 57 push %edi 10f504: 56 push %esi 10f505: 53 push %ebx 10f506: 83 ec 5c sub $0x5c,%esp 10f509: 8b 55 08 mov 0x8(%ebp),%edx 10f50c: 8b 5d 0c mov 0xc(%ebp),%ebx 10f50f: 8b 75 10 mov 0x10(%ebp),%esi 10f512: 8b 45 14 mov 0x14(%ebp),%eax 10f515: 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 ); 10f518: 31 c0 xor %eax,%eax 10f51a: b9 ff ff ff ff mov $0xffffffff,%ecx 10f51f: 89 d7 mov %edx,%edi 10f521: f2 ae repnz scas %es:(%edi),%al 10f523: f7 d1 not %ecx 10f525: 49 dec %ecx 10f526: 8d 45 e4 lea -0x1c(%ebp),%eax 10f529: 50 push %eax 10f52a: 8d 7d af lea -0x51(%ebp),%edi 10f52d: 57 push %edi 10f52e: 51 push %ecx 10f52f: 52 push %edx 10f530: e8 3f fe ff ff call 10f374 <== ALWAYS TAKEN /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 10f535: 89 d8 mov %ebx,%eax 10f537: 25 00 f0 00 00 and $0xf000,%eax 10f53c: 83 c4 10 add $0x10,%esp 10f53f: 3d 00 40 00 00 cmp $0x4000,%eax 10f544: 74 5e je 10f5a4 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 10f546: 3d 00 80 00 00 cmp $0x8000,%eax 10f54b: 74 4f je 10f59c type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 10f54d: 3d 00 60 00 00 cmp $0x6000,%eax 10f552: 74 38 je 10f58c 10f554: 3d 00 20 00 00 cmp $0x2000,%eax 10f559: 74 31 je 10f58c type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) 10f55b: 3d 00 10 00 00 cmp $0x1000,%eax 10f560: 75 4a jne 10f5ac <== ALWAYS TAKEN 10f562: 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( 10f567: 83 ec 0c sub $0xc,%esp 10f56a: 8d 45 d0 lea -0x30(%ebp),%eax 10f56d: 50 push %eax 10f56e: 53 push %ebx 10f56f: 57 push %edi 10f570: 52 push %edx 10f571: ff 75 18 pushl 0x18(%ebp) 10f574: e8 4b 20 00 00 call 1115c4 new_name, mode, &info ); if ( !new_node ) 10f579: 83 c4 20 add $0x20,%esp 10f57c: 85 c0 test %eax,%eax 10f57e: 74 3e je 10f5be <== ALWAYS TAKEN 10f580: 31 c0 xor %eax,%eax rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 10f582: 8d 65 f4 lea -0xc(%ebp),%esp 10f585: 5b pop %ebx 10f586: 5e pop %esi 10f587: 5f pop %edi 10f588: c9 leave 10f589: c3 ret 10f58a: 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 ); 10f58c: 89 75 d0 mov %esi,-0x30(%ebp) dev_t device ) { union __rtems_dev_t temp; temp.device = device; 10f58f: 8b 45 a4 mov -0x5c(%ebp),%eax 10f592: 89 45 d4 mov %eax,-0x2c(%ebp) 10f595: 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) ) { 10f59a: eb cb jmp 10f567 <== ALWAYS TAKEN /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 10f59c: ba 05 00 00 00 mov $0x5,%edx 10f5a1: eb c4 jmp 10f567 <== ALWAYS TAKEN 10f5a3: 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 ); 10f5a4: ba 01 00 00 00 mov $0x1,%edx 10f5a9: eb bc jmp 10f567 <== ALWAYS TAKEN 10f5ab: 90 nop <== NOT EXECUTED 10f5ac: e8 ef 2d 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10f5b1: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 10f5b7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f5bc: eb c4 jmp 10f582 <== NOT EXECUTED mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 10f5be: e8 dd 2d 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10f5c3: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 10f5c9: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f5ce: eb b2 jmp 10f582 <== NOT EXECUTED 00108bf4 : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 108bf4: 55 push %ebp 108bf5: 89 e5 mov %esp,%ebp 108bf7: 83 ec 08 sub $0x8,%esp 108bfa: 8b 55 08 mov 0x8(%ebp),%edx IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 108bfd: 8b 42 08 mov 0x8(%edx),%eax /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 108c00: 83 78 4c 01 cmpl $0x1,0x4c(%eax) 108c04: 75 0a jne 108c10 <== 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; 108c06: 89 50 5c mov %edx,0x5c(%eax) 108c09: 31 c0 xor %eax,%eax return 0; } 108c0b: c9 leave 108c0c: c3 ret 108c0d: 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 ); 108c10: e8 03 e9 00 00 call 117518 <__errno> <== NOT EXECUTED 108c15: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED 108c1b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED * the mounted file system. */ node->info.directory.mt_fs = mt_entry; return 0; } 108c20: c9 leave <== NOT EXECUTED 108c21: c3 ret <== NOT EXECUTED 0010923c : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 10923c: 55 push %ebp 10923d: 89 e5 mov %esp,%ebp 10923f: 53 push %ebx 109240: 83 ec 04 sub $0x4,%esp 109243: 8b 5d 08 mov 0x8(%ebp),%ebx assert( the_jnode ); 109246: 85 db test %ebx,%ebx 109248: 0f 84 7f 01 00 00 je 1093cd <== ALWAYS TAKEN fprintf(stdout, "%s", the_jnode->name ); 10924e: 83 ec 08 sub $0x8,%esp 109251: a1 c0 9f 12 00 mov 0x129fc0,%eax 109256: ff 70 08 pushl 0x8(%eax) 109259: 8d 43 0c lea 0xc(%ebx),%eax 10925c: 50 push %eax 10925d: e8 36 d4 00 00 call 116698 switch( the_jnode->type ) { 109262: 8b 43 4c mov 0x4c(%ebx),%eax 109265: 83 c4 10 add $0x10,%esp 109268: 83 f8 07 cmp $0x7,%eax 10926b: 76 2b jbe 109298 <== NEVER TAKEN fprintf(stdout, " FIFO not printed\n" ); assert(0); break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 10926d: 52 push %edx <== NOT EXECUTED 10926e: 50 push %eax <== NOT EXECUTED 10926f: 68 02 4e 12 00 push $0x124e02 <== NOT EXECUTED 109274: a1 c0 9f 12 00 mov 0x129fc0,%eax <== NOT EXECUTED 109279: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 10927c: e8 ef d2 00 00 call 116570 <== NOT EXECUTED assert(0); 109281: 68 4e 2f 12 00 push $0x122f4e <== NOT EXECUTED 109286: 68 68 4f 12 00 push $0x124f68 <== NOT EXECUTED 10928b: 6a 6c push $0x6c <== NOT EXECUTED 10928d: 68 4c 4e 12 00 push $0x124e4c <== NOT EXECUTED 109292: e8 bd 08 00 00 call 109b54 <__assert_func> <== NOT EXECUTED 109297: 90 nop <== NOT EXECUTED ) { assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { 109298: ff 24 85 34 4f 12 00 jmp *0x124f34(,%eax,4) 10929f: 90 nop <== NOT EXECUTED fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 1092a0: a1 c0 9f 12 00 mov 0x129fc0,%eax <== NOT EXECUTED 1092a5: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 1092a8: 6a 12 push $0x12 <== NOT EXECUTED 1092aa: 6a 01 push $0x1 <== NOT EXECUTED 1092ac: 68 ef 4d 12 00 push $0x124def <== NOT EXECUTED 1092b1: e8 42 de 00 00 call 1170f8 <== NOT EXECUTED assert(0); 1092b6: 68 4e 2f 12 00 push $0x122f4e <== NOT EXECUTED 1092bb: 68 68 4f 12 00 push $0x124f68 <== NOT EXECUTED 1092c0: 6a 67 push $0x67 <== NOT EXECUTED 1092c2: 68 4c 4e 12 00 push $0x124e4c <== NOT EXECUTED 1092c7: e8 88 08 00 00 call 109b54 <__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)", 1092cc: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED 1092cf: ff 73 50 pushl 0x50(%ebx) <== NOT EXECUTED 1092d2: 68 c0 4d 12 00 push $0x124dc0 <== NOT EXECUTED 1092d7: a1 c0 9f 12 00 mov 0x129fc0,%eax <== NOT EXECUTED 1092dc: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 1092df: e8 8c d2 00 00 call 116570 <== NOT EXECUTED (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; 1092e4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 1092e7: c7 45 08 f7 50 12 00 movl $0x1250f7,0x8(%ebp) <== NOT EXECUTED } 1092ee: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 1092f1: c9 leave <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 1092f2: e9 59 ea 00 00 jmp 117d50 <== NOT EXECUTED 1092f7: 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 ")", 1092f8: 51 push %ecx 1092f9: ff 73 50 pushl 0x50(%ebx) 1092fc: 68 cf 4d 12 00 push $0x124dcf 109301: a1 c0 9f 12 00 mov 0x129fc0,%eax 109306: ff 70 08 pushl 0x8(%eax) 109309: e8 62 d2 00 00 call 116570 (uint32_t)the_jnode->info.file.size ); #endif break; 10930e: 83 c4 10 add $0x10,%esp default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 109311: c7 45 08 f7 50 12 00 movl $0x1250f7,0x8(%ebp) } 109318: 8b 5d fc mov -0x4(%ebp),%ebx 10931b: c9 leave default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 10931c: e9 2f ea 00 00 jmp 117d50 109321: 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" ); 109324: a1 c0 9f 12 00 mov 0x129fc0,%eax <== NOT EXECUTED 109329: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 10932c: 6a 13 push $0x13 <== NOT EXECUTED 10932e: 6a 01 push $0x1 <== NOT EXECUTED 109330: 68 db 4d 12 00 push $0x124ddb <== NOT EXECUTED 109335: e8 be dd 00 00 call 1170f8 <== NOT EXECUTED assert(0); 10933a: 68 4e 2f 12 00 push $0x122f4e <== NOT EXECUTED 10933f: 68 68 4f 12 00 push $0x124f68 <== NOT EXECUTED 109344: 6a 62 push $0x62 <== NOT EXECUTED 109346: 68 4c 4e 12 00 push $0x124e4c <== NOT EXECUTED 10934b: e8 04 08 00 00 call 109b54 <__assert_func> <== NOT EXECUTED (uint32_t)the_jnode->info.file.size ); #endif break; case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 109350: a1 c0 9f 12 00 mov 0x129fc0,%eax <== NOT EXECUTED 109355: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 109358: 6a 13 push $0x13 <== NOT EXECUTED 10935a: 6a 01 push $0x1 <== NOT EXECUTED 10935c: 68 db 4d 12 00 push $0x124ddb <== NOT EXECUTED 109361: e8 92 dd 00 00 call 1170f8 <== NOT EXECUTED assert(0); 109366: 68 4e 2f 12 00 push $0x122f4e <== NOT EXECUTED 10936b: 68 68 4f 12 00 push $0x124f68 <== NOT EXECUTED 109370: 6a 5d push $0x5d <== NOT EXECUTED 109372: 68 4c 4e 12 00 push $0x124e4c <== NOT EXECUTED 109377: e8 d8 07 00 00 call 109b54 <__assert_func> <== NOT EXECUTED case IMFS_DIRECTORY: fprintf(stdout, "/" ); break; case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 10937c: ff 73 54 pushl 0x54(%ebx) 10937f: ff 73 50 pushl 0x50(%ebx) 109382: 68 ad 4d 12 00 push $0x124dad 109387: a1 c0 9f 12 00 mov 0x129fc0,%eax 10938c: ff 70 08 pushl 0x8(%eax) 10938f: e8 dc d1 00 00 call 116570 the_jnode->info.device.major, the_jnode->info.device.minor ); break; 109394: 83 c4 10 add $0x10,%esp default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 109397: c7 45 08 f7 50 12 00 movl $0x1250f7,0x8(%ebp) } 10939e: 8b 5d fc mov -0x4(%ebp),%ebx 1093a1: c9 leave default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 1093a2: e9 a9 e9 00 00 jmp 117d50 1093a7: 90 nop <== NOT EXECUTED assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" ); 1093a8: 83 ec 08 sub $0x8,%esp 1093ab: a1 c0 9f 12 00 mov 0x129fc0,%eax 1093b0: ff 70 08 pushl 0x8(%eax) 1093b3: 6a 2f push $0x2f 1093b5: e8 f2 d1 00 00 call 1165ac break; 1093ba: 83 c4 10 add $0x10,%esp default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 1093bd: c7 45 08 f7 50 12 00 movl $0x1250f7,0x8(%ebp) } 1093c4: 8b 5d fc mov -0x4(%ebp),%ebx 1093c7: c9 leave default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 1093c8: e9 83 e9 00 00 jmp 117d50 void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { assert( the_jnode ); 1093cd: 68 a3 4d 12 00 push $0x124da3 <== NOT EXECUTED 1093d2: 68 68 4f 12 00 push $0x124f68 <== NOT EXECUTED 1093d7: 6a 38 push $0x38 <== NOT EXECUTED 1093d9: 68 4c 4e 12 00 push $0x124e4c <== NOT EXECUTED 1093de: e8 71 07 00 00 call 109b54 <__assert_func> <== NOT EXECUTED 00108c34 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 108c34: 55 push %ebp 108c35: 89 e5 mov %esp,%ebp 108c37: 57 push %edi 108c38: 56 push %esi 108c39: 53 push %ebx 108c3a: 83 ec 0c sub $0xc,%esp 108c3d: 8b 7d 0c mov 0xc(%ebp),%edi 108c40: 8b 75 10 mov 0x10(%ebp),%esi IMFS_jnode_t *node; int i; node = loc->node_access; 108c43: 8b 45 08 mov 0x8(%ebp),%eax 108c46: 8b 18 mov (%eax),%ebx if ( node->type != IMFS_SYM_LINK ) 108c48: 83 7b 4c 04 cmpl $0x4,0x4c(%ebx) 108c4c: 75 36 jne 108c84 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 108c4e: 85 f6 test %esi,%esi 108c50: 74 2e je 108c80 <== ALWAYS TAKEN 108c52: 8b 43 50 mov 0x50(%ebx),%eax 108c55: 8a 10 mov (%eax),%dl 108c57: 84 d2 test %dl,%dl 108c59: 74 25 je 108c80 <== ALWAYS TAKEN int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 108c5b: 31 c9 xor %ecx,%ecx 108c5d: 31 c0 xor %eax,%eax 108c5f: eb 0d jmp 108c6e <== ALWAYS TAKEN 108c61: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 108c64: 8b 53 50 mov 0x50(%ebx),%edx 108c67: 8a 14 02 mov (%edx,%eax,1),%dl 108c6a: 84 d2 test %dl,%dl 108c6c: 74 0a je 108c78 buf[i] = node->info.sym_link.name[i]; 108c6e: 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; ((iinfo.sym_link.name[i] != '\0')); i++ ) 108c71: 40 inc %eax 108c72: 89 c1 mov %eax,%ecx 108c74: 39 c6 cmp %eax,%esi 108c76: 77 ec ja 108c64 buf[i] = node->info.sym_link.name[i]; return i; } 108c78: 83 c4 0c add $0xc,%esp 108c7b: 5b pop %ebx 108c7c: 5e pop %esi 108c7d: 5f pop %edi 108c7e: c9 leave 108c7f: c3 ret node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 108c80: 31 c0 xor %eax,%eax <== NOT EXECUTED 108c82: eb f4 jmp 108c78 <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 108c84: e8 8f e8 00 00 call 117518 <__errno> <== NOT EXECUTED 108c89: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 108c8f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108c94: eb e2 jmp 108c78 <== NOT EXECUTED 00108c98 : 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 */ ) { 108c98: 55 push %ebp <== NOT EXECUTED 108c99: 89 e5 mov %esp,%ebp <== NOT EXECUTED 108c9b: 53 push %ebx <== NOT EXECUTED 108c9c: 83 ec 18 sub $0x18,%esp <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 108c9f: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 108ca2: 8b 18 mov (%eax),%ebx <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 108ca4: 6a 20 push $0x20 <== NOT EXECUTED 108ca6: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED 108ca9: 8d 43 0c lea 0xc(%ebx),%eax <== NOT EXECUTED 108cac: 50 push %eax <== NOT EXECUTED 108cad: e8 ea f3 00 00 call 11809c <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 108cb2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108cb5: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED 108cb8: 85 c9 test %ecx,%ecx <== NOT EXECUTED 108cba: 74 0c je 108cc8 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 108cbc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108cbf: 53 push %ebx <== NOT EXECUTED 108cc0: e8 47 4a 00 00 call 10d70c <_Chain_Extract> <== NOT EXECUTED 108cc5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 108cc8: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 108ccb: 8b 00 mov (%eax),%eax <== NOT EXECUTED the_jnode->Parent = new_parent; 108ccd: 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 ); 108cd0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 108cd3: 53 push %ebx <== NOT EXECUTED 108cd4: 83 c0 50 add $0x50,%eax <== NOT EXECUTED 108cd7: 50 push %eax <== NOT EXECUTED 108cd8: e8 0b 4a 00 00 call 10d6e8 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); 108cdd: 58 pop %eax <== NOT EXECUTED 108cde: 5a pop %edx <== NOT EXECUTED 108cdf: 6a 00 push $0x0 <== NOT EXECUTED 108ce1: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 108ce4: 50 push %eax <== NOT EXECUTED 108ce5: e8 fe 06 00 00 call 1093e8 <== NOT EXECUTED 108cea: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED 108ced: 89 43 48 mov %eax,0x48(%ebx) <== NOT EXECUTED return 0; } 108cf0: 31 c0 xor %eax,%eax <== NOT EXECUTED 108cf2: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 108cf5: c9 leave <== NOT EXECUTED 108cf6: c3 ret <== NOT EXECUTED 0010f5e0 : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 10f5e0: 55 push %ebp 10f5e1: 89 e5 mov %esp,%ebp 10f5e3: 56 push %esi 10f5e4: 53 push %ebx 10f5e5: 83 ec 10 sub $0x10,%esp 10f5e8: 8b 75 0c mov 0xc(%ebp),%esi IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 10f5eb: 8b 1e mov (%esi),%ebx /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 10f5ed: 8b 43 08 mov 0x8(%ebx),%eax 10f5f0: 85 c0 test %eax,%eax 10f5f2: 74 13 je 10f607 <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 10f5f4: 83 ec 0c sub $0xc,%esp 10f5f7: 53 push %ebx 10f5f8: e8 cb 09 00 00 call 10ffc8 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 10f5fd: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 10f604: 83 c4 10 add $0x10,%esp /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 10f607: 66 ff 4b 34 decw 0x34(%ebx) IMFS_update_ctime( the_jnode ); 10f60b: 83 ec 08 sub $0x8,%esp 10f60e: 6a 00 push $0x0 10f610: 8d 45 f0 lea -0x10(%ebp),%eax 10f613: 50 push %eax 10f614: e8 87 02 00 00 call 10f8a0 10f619: 8b 45 f0 mov -0x10(%ebp),%eax 10f61c: 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) ) { 10f61f: 89 1c 24 mov %ebx,(%esp) 10f622: e8 41 03 00 00 call 10f968 <== ALWAYS TAKEN 10f627: 83 c4 10 add $0x10,%esp 10f62a: 85 c0 test %eax,%eax 10f62c: 75 25 jne 10f653 <== ALWAYS TAKEN 10f62e: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx) 10f633: 75 1e jne 10f653 <== ALWAYS TAKEN /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 10f635: a1 f8 2f 12 00 mov 0x122ff8,%eax 10f63a: 8b 50 04 mov 0x4(%eax),%edx 10f63d: 3b 16 cmp (%esi),%edx 10f63f: 74 33 je 10f674 <== ALWAYS TAKEN /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 10f641: 83 7b 4c 04 cmpl $0x4,0x4c(%ebx) 10f645: 74 15 je 10f65c if ( the_jnode->info.sym_link.name ) free( (void*) the_jnode->info.sym_link.name ); } free( the_jnode ); 10f647: 83 ec 0c sub $0xc,%esp 10f64a: 53 push %ebx 10f64b: e8 8c 89 ff ff call 107fdc 10f650: 83 c4 10 add $0x10,%esp } return 0; } 10f653: 31 c0 xor %eax,%eax 10f655: 8d 65 f8 lea -0x8(%ebp),%esp 10f658: 5b pop %ebx 10f659: 5e pop %esi 10f65a: c9 leave 10f65b: c3 ret /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { if ( the_jnode->info.sym_link.name ) 10f65c: 8b 43 50 mov 0x50(%ebx),%eax 10f65f: 85 c0 test %eax,%eax 10f661: 74 e4 je 10f647 <== ALWAYS TAKEN free( (void*) the_jnode->info.sym_link.name ); 10f663: 83 ec 0c sub $0xc,%esp 10f666: 50 push %eax 10f667: e8 70 89 ff ff call 107fdc 10f66c: 83 c4 10 add $0x10,%esp 10f66f: eb d6 jmp 10f647 <== ALWAYS TAKEN 10f671: 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; 10f674: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED 10f67b: eb c4 jmp 10f641 <== NOT EXECUTED 0010f680 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 10f680: 55 push %ebp 10f681: 89 e5 mov %esp,%ebp 10f683: 53 push %ebx 10f684: 83 ec 04 sub $0x4,%esp 10f687: 8b 55 0c mov 0xc(%ebp),%edx IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 10f68a: 8b 45 08 mov 0x8(%ebp),%eax 10f68d: 8b 00 mov (%eax),%eax switch ( the_jnode->type ) { 10f68f: 83 78 4c 07 cmpl $0x7,0x4c(%eax) 10f693: 76 17 jbe 10f6ac <== NEVER TAKEN case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 10f695: e8 06 2d 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10f69a: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10f6a0: 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; } 10f6a5: 5a pop %edx <== NOT EXECUTED 10f6a6: 5b pop %ebx <== NOT EXECUTED 10f6a7: c9 leave <== NOT EXECUTED 10f6a8: c3 ret <== NOT EXECUTED 10f6a9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 10f6ac: 8b 48 4c mov 0x4c(%eax),%ecx 10f6af: ff 24 8d 78 fd 11 00 jmp *0x11fd78(,%ecx,4) 10f6b6: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 10f6b8: c7 42 20 00 00 00 00 movl $0x0,0x20(%edx) <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 10f6bf: 8b 48 30 mov 0x30(%eax),%ecx 10f6c2: 89 4a 0c mov %ecx,0xc(%edx) buf->st_nlink = the_jnode->st_nlink; 10f6c5: 8b 48 34 mov 0x34(%eax),%ecx 10f6c8: 66 89 4a 10 mov %cx,0x10(%edx) buf->st_ino = the_jnode->st_ino; 10f6cc: 8b 48 38 mov 0x38(%eax),%ecx 10f6cf: 89 4a 08 mov %ecx,0x8(%edx) buf->st_uid = the_jnode->st_uid; 10f6d2: 8b 48 3c mov 0x3c(%eax),%ecx 10f6d5: 66 89 4a 12 mov %cx,0x12(%edx) buf->st_gid = the_jnode->st_gid; 10f6d9: 66 8b 48 3e mov 0x3e(%eax),%cx 10f6dd: 66 89 4a 14 mov %cx,0x14(%edx) buf->st_atime = the_jnode->stat_atime; 10f6e1: 8b 48 40 mov 0x40(%eax),%ecx 10f6e4: 89 4a 24 mov %ecx,0x24(%edx) buf->st_mtime = the_jnode->stat_mtime; 10f6e7: 8b 48 44 mov 0x44(%eax),%ecx 10f6ea: 89 4a 2c mov %ecx,0x2c(%edx) buf->st_ctime = the_jnode->stat_ctime; 10f6ed: 8b 40 48 mov 0x48(%eax),%eax 10f6f0: 89 42 34 mov %eax,0x34(%edx) 10f6f3: 31 c0 xor %eax,%eax return 0; } 10f6f5: 5a pop %edx 10f6f6: 5b pop %ebx 10f6f7: c9 leave 10f6f8: c3 ret 10f6f9: 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 ); 10f6fc: 8b 48 54 mov 0x54(%eax),%ecx rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 10f6ff: 8b 58 50 mov 0x50(%eax),%ebx 10f702: 89 5a 18 mov %ebx,0x18(%edx) 10f705: 89 4a 1c mov %ecx,0x1c(%edx) break; 10f708: eb b5 jmp 10f6bf <== ALWAYS TAKEN 10f70a: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 10f70c: 8b 48 50 mov 0x50(%eax),%ecx 10f70f: 89 4a 20 mov %ecx,0x20(%edx) break; 10f712: eb ab jmp 10f6bf <== ALWAYS TAKEN 00108cf8 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 108cf8: 55 push %ebp 108cf9: 89 e5 mov %esp,%ebp 108cfb: 57 push %edi 108cfc: 53 push %ebx 108cfd: 83 ec 40 sub $0x40,%esp 108d00: 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 ); 108d03: 31 c0 xor %eax,%eax 108d05: b9 ff ff ff ff mov $0xffffffff,%ecx 108d0a: 89 d7 mov %edx,%edi 108d0c: f2 ae repnz scas %es:(%edi),%al 108d0e: f7 d1 not %ecx 108d10: 49 dec %ecx 108d11: 8d 45 f4 lea -0xc(%ebp),%eax 108d14: 50 push %eax 108d15: 8d 5d bf lea -0x41(%ebp),%ebx 108d18: 53 push %ebx 108d19: 51 push %ecx 108d1a: 52 push %edx 108d1b: e8 30 b4 00 00 call 114150 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 108d20: 58 pop %eax 108d21: ff 75 0c pushl 0xc(%ebp) 108d24: e8 97 f2 00 00 call 117fc0 108d29: 89 45 e0 mov %eax,-0x20(%ebp) if (info.sym_link.name == NULL) { 108d2c: 83 c4 10 add $0x10,%esp 108d2f: 85 c0 test %eax,%eax 108d31: 74 27 je 108d5a <== 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( 108d33: 83 ec 0c sub $0xc,%esp 108d36: 8d 45 e0 lea -0x20(%ebp),%eax 108d39: 50 push %eax 108d3a: 68 ff a1 00 00 push $0xa1ff 108d3f: 53 push %ebx 108d40: 6a 04 push $0x4 108d42: ff 75 08 pushl 0x8(%ebp) 108d45: e8 56 a8 00 00 call 1135a0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 108d4a: 83 c4 20 add $0x20,%esp 108d4d: 85 c0 test %eax,%eax 108d4f: 74 1b je 108d6c <== ALWAYS TAKEN 108d51: 31 c0 xor %eax,%eax free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; } 108d53: 8d 65 f8 lea -0x8(%ebp),%esp 108d56: 5b pop %ebx 108d57: 5f pop %edi 108d58: c9 leave 108d59: 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); 108d5a: e8 b9 e7 00 00 call 117518 <__errno> <== NOT EXECUTED 108d5f: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 108d65: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108d6a: eb e7 jmp 108d53 <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { free(info.sym_link.name); 108d6c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108d6f: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED 108d72: e8 f5 05 00 00 call 10936c <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 108d77: e8 9c e7 00 00 call 117518 <__errno> <== NOT EXECUTED 108d7c: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 108d82: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108d87: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108d8a: eb c7 jmp 108d53 <== NOT EXECUTED 00108d8c : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 108d8c: 55 push %ebp 108d8d: 89 e5 mov %esp,%ebp 108d8f: 57 push %edi 108d90: 56 push %esi 108d91: 53 push %ebx 108d92: 83 ec 3c sub $0x3c,%esp 108d95: 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; 108d98: 8b 13 mov (%ebx),%edx /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 108d9a: 83 7a 4c 03 cmpl $0x3,0x4c(%edx) 108d9e: 74 18 je 108db8 /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); 108da0: 83 ec 08 sub $0x8,%esp 108da3: 8b 43 08 mov 0x8(%ebx),%eax 108da6: 53 push %ebx 108da7: ff 75 08 pushl 0x8(%ebp) 108daa: ff 50 34 call *0x34(%eax) return result; 108dad: 83 c4 10 add $0x10,%esp } 108db0: 8d 65 f4 lea -0xc(%ebp),%esp 108db3: 5b pop %ebx 108db4: 5e pop %esi 108db5: 5f pop %edi 108db6: c9 leave 108db7: c3 ret * free the node. */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) 108db8: 8b 42 50 mov 0x50(%edx),%eax 108dbb: 85 c0 test %eax,%eax 108dbd: 74 79 je 108e38 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 108dbf: 8d 7d cc lea -0x34(%ebp),%edi 108dc2: b9 05 00 00 00 mov $0x5,%ecx 108dc7: 89 de mov %ebx,%esi 108dc9: f3 a5 rep movsl %ds:(%esi),%es:(%edi) the_link.node_access = node->info.hard_link.link_node; 108dcb: 89 45 cc mov %eax,-0x34(%ebp) IMFS_Set_handlers( &the_link ); 108dce: 83 ec 0c sub $0xc,%esp 108dd1: 8d 75 cc lea -0x34(%ebp),%esi 108dd4: 56 push %esi 108dd5: 89 55 c4 mov %edx,-0x3c(%ebp) 108dd8: e8 cf a8 00 00 call 1136ac /* * 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) 108ddd: 8b 55 c4 mov -0x3c(%ebp),%edx 108de0: 8b 42 50 mov 0x50(%edx),%eax 108de3: 8b 48 34 mov 0x34(%eax),%ecx 108de6: 83 c4 10 add $0x10,%esp 108de9: 66 83 f9 01 cmp $0x1,%cx 108ded: 74 27 je 108e16 if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 108def: 49 dec %ecx 108df0: 66 89 48 34 mov %cx,0x34(%eax) IMFS_update_ctime( node->info.hard_link.link_node ); 108df4: 83 ec 08 sub $0x8,%esp 108df7: 6a 00 push $0x0 108df9: 8d 45 e0 lea -0x20(%ebp),%eax 108dfc: 50 push %eax 108dfd: 89 55 c4 mov %edx,-0x3c(%ebp) 108e00: e8 e3 05 00 00 call 1093e8 108e05: 8b 55 c4 mov -0x3c(%ebp),%edx 108e08: 8b 42 50 mov 0x50(%edx),%eax 108e0b: 8b 55 e0 mov -0x20(%ebp),%edx 108e0e: 89 50 48 mov %edx,0x48(%eax) 108e11: 83 c4 10 add $0x10,%esp 108e14: eb 8a jmp 108da0 <== ALWAYS TAKEN * 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 ); 108e16: 83 ec 08 sub $0x8,%esp 108e19: 56 push %esi 108e1a: ff 75 08 pushl 0x8(%ebp) 108e1d: 8b 45 d4 mov -0x2c(%ebp),%eax 108e20: ff 50 34 call *0x34(%eax) if ( result != 0 ) 108e23: 83 c4 10 add $0x10,%esp 108e26: 85 c0 test %eax,%eax 108e28: 0f 84 72 ff ff ff je 108da0 108e2e: b8 ff ff ff ff mov $0xffffffff,%eax 108e33: e9 78 ff ff ff jmp 108db0 <== ALWAYS TAKEN */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); 108e38: e8 db e6 00 00 call 117518 <__errno> <== NOT EXECUTED 108e3d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 108e43: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108e48: e9 63 ff ff ff jmp 108db0 <== NOT EXECUTED 00108e50 : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 108e50: 55 push %ebp 108e51: 89 e5 mov %esp,%ebp 108e53: 83 ec 08 sub $0x8,%esp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 108e56: 8b 45 08 mov 0x8(%ebp),%eax 108e59: 8b 40 08 mov 0x8(%eax),%eax /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 108e5c: 83 78 4c 01 cmpl $0x1,0x4c(%eax) 108e60: 75 12 jne 108e74 <== ALWAYS TAKEN /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 108e62: 8b 50 5c mov 0x5c(%eax),%edx 108e65: 85 d2 test %edx,%edx 108e67: 74 1d je 108e86 <== 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; 108e69: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax) 108e70: 31 c0 xor %eax,%eax return 0; } 108e72: c9 leave 108e73: 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 ); 108e74: e8 9f e6 00 00 call 117518 <__errno> <== NOT EXECUTED 108e79: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED 108e7f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 108e84: c9 leave <== NOT EXECUTED 108e85: 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 */ 108e86: e8 8d e6 00 00 call 117518 <__errno> <== NOT EXECUTED 108e8b: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 108e91: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 108e96: c9 leave <== NOT EXECUTED 108e97: c3 ret <== NOT EXECUTED 00108180 : void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 108180: 55 push %ebp 108181: 89 e5 mov %esp,%ebp 108183: 57 push %edi 108184: 56 push %esi 108185: 53 push %ebx 108186: 83 ec 0c sub $0xc,%esp 108189: 8b 5d 08 mov 0x8(%ebp),%ebx 10818c: 8b 75 0c mov 0xc(%ebp),%esi #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 10818f: a1 a8 35 12 00 mov 0x1235a8,%eax 108194: 85 c0 test %eax,%eax 108196: 74 02 je 10819a <== NEVER TAKEN (*rtems_malloc_statistics_helpers->initialize)(); 108198: ff 10 call *(%eax) <== NOT EXECUTED } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 10819a: e8 79 ff ff ff call 108118 <== ALWAYS TAKEN /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 10819f: a1 ac 35 12 00 mov 0x1235ac,%eax 1081a4: 85 c0 test %eax,%eax 1081a6: 74 13 je 1081bb <== NEVER TAKEN void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 1081a8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1081ab: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 1081ae: 53 push %ebx <== NOT EXECUTED 1081af: ff 10 call *(%eax) <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 1081b1: 8d 34 33 lea (%ebx,%esi,1),%esi <== NOT EXECUTED 1081b4: 29 c6 sub %eax,%esi <== NOT EXECUTED 1081b6: 89 c3 mov %eax,%ebx <== NOT EXECUTED 1081b8: 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 ( 1081bb: 80 3d a5 35 12 00 00 cmpb $0x0,0x1235a5 1081c2: 75 1f jne 1081e3 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 1081c4: 80 3d 48 12 12 00 00 cmpb $0x0,0x121248 1081cb: 75 3f jne 10820c void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); 1081cd: 6a 04 push $0x4 1081cf: 56 push %esi 1081d0: 53 push %ebx 1081d1: ff 35 58 11 12 00 pushl 0x121158 1081d7: e8 28 41 00 00 call 10c304 <_Heap_Initialize> RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 1081dc: 83 c4 10 add $0x10,%esp 1081df: 85 c0 test %eax,%eax 1081e1: 74 3c je 10821f <== ALWAYS TAKEN rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 1081e3: 8b 1d c0 51 12 00 mov 0x1251c0,%ebx 1081e9: 83 ec 0c sub $0xc,%esp 1081ec: ff 35 58 11 12 00 pushl 0x121158 1081f2: e8 81 4c 00 00 call 10ce78 <_Protected_heap_Get_size> 1081f7: 8d 1c 18 lea (%eax,%ebx,1),%ebx 1081fa: 89 1d c0 51 12 00 mov %ebx,0x1251c0 108200: 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 } 108203: 8d 65 f4 lea -0xc(%ebp),%esp 108206: 5b pop %ebx 108207: 5e pop %esi 108208: 5f pop %edi 108209: c9 leave 10820a: c3 ret 10820b: 90 nop <== NOT EXECUTED if ( !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() ) { memset( heap_begin, 0, heap_size ); 10820c: 31 c0 xor %eax,%eax 10820e: 89 df mov %ebx,%edi 108210: 89 f1 mov %esi,%ecx 108212: 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 ) { 108214: 80 3d a5 35 12 00 00 cmpb $0x0,0x1235a5 10821b: 74 b0 je 1081cd <== NEVER TAKEN 10821d: eb c4 jmp 1081e3 <== NOT EXECUTED heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 10821f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108222: 6a 1a push $0x1a <== NOT EXECUTED 108224: e8 6f 39 00 00 call 10bb98 <== NOT EXECUTED 0010b49c : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 10b49c: 55 push %ebp <== NOT EXECUTED 10b49d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10b49f: 57 push %edi <== NOT EXECUTED 10b4a0: 56 push %esi <== NOT EXECUTED 10b4a1: 53 push %ebx <== NOT EXECUTED 10b4a2: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED 10b4a5: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 10b4a8: 85 db test %ebx,%ebx <== NOT EXECUTED 10b4aa: 0f 84 c5 00 00 00 je 10b575 <== NOT EXECUTED return; if ( !print_handler ) 10b4b0: a1 60 a9 16 00 mov 0x16a960,%eax <== NOT EXECUTED 10b4b5: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED 10b4b8: 85 c0 test %eax,%eax <== NOT EXECUTED 10b4ba: 0f 84 b5 00 00 00 je 10b575 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 10b4c0: 83 fb ff cmp $0xffffffff,%ebx <== NOT EXECUTED 10b4c3: 0f 84 d7 00 00 00 je 10b5a0 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 10b4c9: 8d b3 c0 00 00 00 lea 0xc0(%ebx),%esi <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); 10b4cf: 8b 93 d4 00 00 00 mov 0xd4(%ebx),%edx <== NOT EXECUTED 10b4d5: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED } low = Stack_check_usable_stack_start(stack); 10b4d8: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED 10b4db: 83 c0 10 add $0x10,%eax <== NOT EXECUTED 10b4de: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 10b4e1: 8b 3e mov (%esi),%edi <== NOT EXECUTED 10b4e3: 83 ef 10 sub $0x10,%edi <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 10b4e6: 57 push %edi <== NOT EXECUTED 10b4e7: 50 push %eax <== NOT EXECUTED 10b4e8: e8 77 ff ff ff call 10b464 <== NOT EXECUTED if ( high_water_mark ) 10b4ed: 59 pop %ecx <== NOT EXECUTED 10b4ee: 5a pop %edx <== NOT EXECUTED 10b4ef: 85 c0 test %eax,%eax <== NOT EXECUTED 10b4f1: 0f 84 c9 00 00 00 je 10b5c0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 10b4f7: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 10b4fa: 01 fa add %edi,%edx <== NOT EXECUTED 10b4fc: 29 c2 sub %eax,%edx <== NOT EXECUTED 10b4fe: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED else used = 0; if ( the_thread ) { 10b501: 85 db test %ebx,%ebx <== NOT EXECUTED 10b503: 0f 84 c7 00 00 00 je 10b5d0 <== NOT EXECUTED (*print_handler)( 10b509: 52 push %edx <== NOT EXECUTED 10b50a: 8d 45 e3 lea -0x1d(%ebp),%eax <== NOT EXECUTED 10b50d: 50 push %eax <== NOT EXECUTED 10b50e: 6a 05 push $0x5 <== NOT EXECUTED 10b510: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED 10b513: e8 24 5e 00 00 call 11133c <== NOT EXECUTED 10b518: 50 push %eax <== NOT EXECUTED 10b519: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED 10b51c: 68 bc 97 15 00 push $0x1597bc <== NOT EXECUTED 10b521: ff 35 5c a9 16 00 pushl 0x16a95c <== NOT EXECUTED 10b527: ff 55 d0 call *-0x30(%ebp) <== NOT EXECUTED 10b52a: 83 c4 20 add $0x20,%esp <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 10b52d: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED 10b530: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10b533: 57 push %edi <== NOT EXECUTED 10b534: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED 10b537: 8b 16 mov (%esi),%edx <== NOT EXECUTED 10b539: 8d 54 10 ff lea -0x1(%eax,%edx,1),%edx <== NOT EXECUTED 10b53d: 52 push %edx <== NOT EXECUTED 10b53e: 50 push %eax <== NOT EXECUTED 10b53f: 68 d7 97 15 00 push $0x1597d7 <== NOT EXECUTED 10b544: ff 35 5c a9 16 00 pushl 0x16a95c <== NOT EXECUTED 10b54a: ff 15 60 a9 16 00 call *0x16a960 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 10b550: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10b553: 8b 1d 58 a9 16 00 mov 0x16a958,%ebx <== NOT EXECUTED 10b559: 85 db test %ebx,%ebx <== NOT EXECUTED 10b55b: 74 23 je 10b580 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 10b55d: 51 push %ecx <== NOT EXECUTED 10b55e: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED 10b561: 68 02 98 15 00 push $0x159802 <== NOT EXECUTED 10b566: ff 35 5c a9 16 00 pushl 0x16a95c <== NOT EXECUTED 10b56c: ff 15 60 a9 16 00 call *0x16a960 <== NOT EXECUTED 10b572: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } } 10b575: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10b578: 5b pop %ebx <== NOT EXECUTED 10b579: 5e pop %esi <== NOT EXECUTED 10b57a: 5f pop %edi <== NOT EXECUTED 10b57b: c9 leave <== NOT EXECUTED 10b57c: c3 ret <== NOT EXECUTED 10b57d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED current, size ); if (Stack_check_Initialized == 0) { (*print_handler)( print_context, "Unavailable\n" ); 10b580: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10b583: 68 f5 97 15 00 push $0x1597f5 <== NOT EXECUTED 10b588: ff 35 5c a9 16 00 pushl 0x16a95c <== NOT EXECUTED 10b58e: ff 15 60 a9 16 00 call *0x16a960 <== NOT EXECUTED 10b594: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); } } 10b597: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10b59a: 5b pop %ebx <== NOT EXECUTED 10b59b: 5e pop %esi <== NOT EXECUTED 10b59c: 5f pop %edi <== NOT EXECUTED 10b59d: c9 leave <== NOT EXECUTED 10b59e: c3 ret <== NOT EXECUTED 10b59f: 90 nop <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 10b5a0: 8b 0d d4 d6 16 00 mov 0x16d6d4,%ecx <== NOT EXECUTED 10b5a6: 85 c9 test %ecx,%ecx <== NOT EXECUTED 10b5a8: 74 cb je 10b575 <== NOT EXECUTED 10b5aa: be d0 d6 16 00 mov $0x16d6d0,%esi <== NOT EXECUTED 10b5af: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED 10b5b6: 31 db xor %ebx,%ebx <== NOT EXECUTED 10b5b8: e9 1b ff ff ff jmp 10b4d8 <== NOT EXECUTED 10b5bd: 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 ) 10b5c0: 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 ) { 10b5c7: 85 db test %ebx,%ebx <== NOT EXECUTED 10b5c9: 0f 85 3a ff ff ff jne 10b509 <== NOT EXECUTED 10b5cf: 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 ); 10b5d0: 50 push %eax <== NOT EXECUTED 10b5d1: 6a ff push $0xffffffff <== NOT EXECUTED 10b5d3: 68 c9 97 15 00 push $0x1597c9 <== NOT EXECUTED 10b5d8: ff 35 5c a9 16 00 pushl 0x16a95c <== NOT EXECUTED 10b5de: ff 55 d0 call *-0x30(%ebp) <== NOT EXECUTED 10b5e1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10b5e4: e9 44 ff ff ff jmp 10b52d <== NOT EXECUTED 0010b7f4 : /* * Stack_check_Initialize */ void Stack_check_Initialize( void ) { 10b7f4: 55 push %ebp 10b7f5: 89 e5 mov %esp,%ebp 10b7f7: 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) 10b7f8: 8b 3d 58 a9 16 00 mov 0x16a958,%edi 10b7fe: 85 ff test %edi,%edi 10b800: 75 4d jne 10b84f 10b802: 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 ]; 10b804: 89 c2 mov %eax,%edx 10b806: 83 e2 03 and $0x3,%edx 10b809: 8b 14 95 40 99 15 00 mov 0x159940(,%edx,4),%edx 10b810: 89 14 85 c0 d6 16 00 mov %edx,0x16d6c0(,%eax,4) /* * Dope the pattern and fill areas */ p = Stack_check_Pattern.pattern; for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) { 10b817: 40 inc %eax 10b818: 83 f8 04 cmp $0x4,%eax 10b81b: 75 e7 jne 10b804 /* * 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) { 10b81d: 8b 15 88 d8 16 00 mov 0x16d888,%edx 10b823: 85 d2 test %edx,%edx 10b825: 74 1e je 10b845 <== ALWAYS TAKEN 10b827: 8b 0d 48 d8 16 00 mov 0x16d848,%ecx 10b82d: 85 c9 test %ecx,%ecx 10b82f: 74 14 je 10b845 <== ALWAYS TAKEN Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low; 10b831: 89 15 d4 d6 16 00 mov %edx,0x16d6d4 Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high - 10b837: 29 d1 sub %edx,%ecx 10b839: 89 0d d0 d6 16 00 mov %ecx,0x16d6d0 (char *) _CPU_Interrupt_stack_low; Stack_check_Dope_stack(&Stack_check_Interrupt_stack); 10b83f: b0 a5 mov $0xa5,%al 10b841: 89 d7 mov %edx,%edi 10b843: f3 aa rep stos %al,%es:(%edi) } #endif Stack_check_Initialized = 1; 10b845: c7 05 58 a9 16 00 01 movl $0x1,0x16a958 10b84c: 00 00 00 } 10b84f: 5f pop %edi 10b850: c9 leave 10b851: c3 ret 0010b464 : */ void *Stack_check_find_high_water_mark( const void *s, size_t n ) { 10b464: 55 push %ebp <== NOT EXECUTED 10b465: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10b467: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 10b46a: 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; 10b46d: 8d 41 10 lea 0x10(%ecx),%eax <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 10b470: 83 e2 fc and $0xfffffffc,%edx <== NOT EXECUTED 10b473: 8d 14 10 lea (%eax,%edx,1),%edx <== NOT EXECUTED 10b476: 39 d0 cmp %edx,%eax <== NOT EXECUTED 10b478: 73 1d jae 10b497 <== NOT EXECUTED if (*base != U32_PATTERN) 10b47a: 81 79 10 a5 a5 a5 a5 cmpl $0xa5a5a5a5,0x10(%ecx) <== NOT EXECUTED 10b481: 74 0d je 10b490 <== NOT EXECUTED 10b483: eb 14 jmp 10b499 <== NOT EXECUTED 10b485: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10b488: 81 38 a5 a5 a5 a5 cmpl $0xa5a5a5a5,(%eax) <== NOT EXECUTED 10b48e: 75 09 jne 10b499 <== 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++) 10b490: 83 c0 04 add $0x4,%eax <== NOT EXECUTED 10b493: 39 c2 cmp %eax,%edx <== NOT EXECUTED 10b495: 77 f1 ja 10b488 <== NOT EXECUTED 10b497: 31 c0 xor %eax,%eax <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 10b499: c9 leave <== NOT EXECUTED 10b49a: c3 ret <== NOT EXECUTED 0010b668 : * * 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) { 10b668: 55 push %ebp <== NOT EXECUTED 10b669: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10b66b: 56 push %esi <== NOT EXECUTED 10b66c: 53 push %ebx <== NOT EXECUTED 10b66d: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED 10b670: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 10b673: 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); 10b676: 8b b3 c4 00 00 00 mov 0xc4(%ebx),%esi <== NOT EXECUTED char name [32]; printk("BLOWN STACK!!!\n"); 10b67c: 68 1f 98 15 00 push $0x15981f <== NOT EXECUTED 10b681: 88 55 d4 mov %dl,-0x2c(%ebp) <== NOT EXECUTED 10b684: e8 27 29 00 00 call 10dfb0 <== NOT EXECUTED printk("task control block: 0x%08lx\n", (unsigned long) running); 10b689: 58 pop %eax <== NOT EXECUTED 10b68a: 5a pop %edx <== NOT EXECUTED 10b68b: 53 push %ebx <== NOT EXECUTED 10b68c: 68 2f 98 15 00 push $0x15982f <== NOT EXECUTED 10b691: e8 1a 29 00 00 call 10dfb0 <== NOT EXECUTED printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 10b696: 5a pop %edx <== NOT EXECUTED 10b697: 59 pop %ecx <== NOT EXECUTED 10b698: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED 10b69b: 68 4c 98 15 00 push $0x15984c <== NOT EXECUTED 10b6a0: e8 0b 29 00 00 call 10dfb0 <== NOT EXECUTED printk( 10b6a5: 59 pop %ecx <== NOT EXECUTED 10b6a6: 58 pop %eax <== NOT EXECUTED 10b6a7: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED 10b6aa: 68 5e 98 15 00 push $0x15985e <== NOT EXECUTED 10b6af: e8 fc 28 00 00 call 10dfb0 <== NOT EXECUTED "task name: 0x%08lx\n", (unsigned long) running->Object.name.name_u32 ); printk( 10b6b4: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 10b6b7: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED 10b6ba: 50 push %eax <== NOT EXECUTED 10b6bb: 6a 20 push $0x20 <== NOT EXECUTED 10b6bd: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED 10b6c0: e8 77 5c 00 00 call 11133c <== NOT EXECUTED 10b6c5: 59 pop %ecx <== NOT EXECUTED 10b6c6: 5a pop %edx <== NOT EXECUTED 10b6c7: 50 push %eax <== NOT EXECUTED 10b6c8: 68 72 98 15 00 push $0x159872 <== NOT EXECUTED 10b6cd: e8 de 28 00 00 call 10dfb0 <== NOT EXECUTED ); printk( "task stack area (%lu Bytes): 0x%08lx .. 0x%08lx\n", (unsigned long) stack->size, (unsigned long) stack->area, (unsigned long) ((char *) stack->area + stack->size) 10b6d2: 8b 8b c4 00 00 00 mov 0xc4(%ebx),%ecx <== NOT EXECUTED 10b6d8: 8b 83 c0 00 00 00 mov 0xc0(%ebx),%eax <== NOT EXECUTED ); printk( "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 10b6de: 8d 1c 01 lea (%ecx,%eax,1),%ebx <== NOT EXECUTED 10b6e1: 53 push %ebx <== NOT EXECUTED 10b6e2: 51 push %ecx <== NOT EXECUTED 10b6e3: 50 push %eax <== NOT EXECUTED 10b6e4: 68 d4 98 15 00 push $0x1598d4 <== NOT EXECUTED 10b6e9: e8 c2 28 00 00 call 10dfb0 <== NOT EXECUTED "task stack area (%lu Bytes): 0x%08lx .. 0x%08lx\n", (unsigned long) stack->size, (unsigned long) stack->area, (unsigned long) ((char *) stack->area + stack->size) ); if (!pattern_ok) { 10b6ee: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10b6f1: 8a 55 d4 mov -0x2c(%ebp),%dl <== NOT EXECUTED 10b6f4: 84 d2 test %dl,%dl <== NOT EXECUTED 10b6f6: 74 10 je 10b708 <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 10b6f8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10b6fb: 68 81 00 00 00 push $0x81 <== NOT EXECUTED 10b700: e8 af 64 00 00 call 111bb4 <== NOT EXECUTED 10b705: 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); 10b708: 8d 46 08 lea 0x8(%esi),%eax <== NOT EXECUTED (unsigned long) stack->size, (unsigned long) stack->area, (unsigned long) ((char *) stack->area + stack->size) ); if (!pattern_ok) { printk( 10b70b: 83 c6 18 add $0x18,%esi <== NOT EXECUTED 10b70e: 56 push %esi <== NOT EXECUTED 10b70f: 50 push %eax <== NOT EXECUTED 10b710: 6a 10 push $0x10 <== NOT EXECUTED 10b712: 68 08 99 15 00 push $0x159908 <== NOT EXECUTED 10b717: e8 94 28 00 00 call 10dfb0 <== NOT EXECUTED 10b71c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10b71f: eb d7 jmp 10b6f8 <== NOT EXECUTED 0010bd5c <_API_Mutex_Allocate>: #include void _API_Mutex_Allocate( API_Mutex_Control **the_mutex ) { 10bd5c: 55 push %ebp 10bd5d: 89 e5 mov %esp,%ebp 10bd5f: 57 push %edi 10bd60: 56 push %esi 10bd61: 83 ec 1c sub $0x1c,%esp CORE_mutex_Attributes attr = { CORE_MUTEX_NESTING_IS_ERROR, false, CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT, 0 }; 10bd64: 8d 7d e8 lea -0x18(%ebp),%edi 10bd67: be 20 f9 11 00 mov $0x11f920,%esi 10bd6c: b9 04 00 00 00 mov $0x4,%ecx 10bd71: f3 a5 rep movsl %ds:(%esi),%es:(%edi) mutex = (API_Mutex_Control *) _Objects_Allocate( &_API_Mutex_Information ); 10bd73: 68 40 54 12 00 push $0x125440 10bd78: e8 43 09 00 00 call 10c6c0 <_Objects_Allocate> <== ALWAYS TAKEN 10bd7d: 89 c6 mov %eax,%esi _CORE_mutex_Initialize( &mutex->Mutex, &attr, CORE_MUTEX_UNLOCKED ); 10bd7f: 83 c4 0c add $0xc,%esp 10bd82: 6a 01 push $0x1 10bd84: 8d 45 e8 lea -0x18(%ebp),%eax 10bd87: 50 push %eax 10bd88: 8d 46 10 lea 0x10(%esi),%eax 10bd8b: 50 push %eax 10bd8c: e8 9f 01 00 00 call 10bf30 <_CORE_mutex_Initialize> <== ALWAYS TAKEN #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 10bd91: 0f b7 56 08 movzwl 0x8(%esi),%edx 10bd95: a1 5c 54 12 00 mov 0x12545c,%eax 10bd9a: 89 34 90 mov %esi,(%eax,%edx,4) _Objects_Get_index( the_object->id ), the_object ); /* ASSERT: information->is_string == false */ the_object->name.name_u32 = name; 10bd9d: c7 46 0c 01 00 00 00 movl $0x1,0xc(%esi) _Objects_Open_u32( &_API_Mutex_Information, &mutex->Object, 1 ); *the_mutex = mutex; 10bda4: 8b 45 08 mov 0x8(%ebp),%eax 10bda7: 89 30 mov %esi,(%eax) 10bda9: 83 c4 10 add $0x10,%esp } 10bdac: 8d 65 f8 lea -0x8(%ebp),%esp 10bdaf: 5e pop %esi 10bdb0: 5f pop %edi 10bdb1: c9 leave 10bdb2: c3 ret 0010bdd8 <_API_Mutex_Initialization>: #include void _API_Mutex_Initialization( uint32_t maximum_mutexes ) { 10bdd8: 55 push %ebp 10bdd9: 89 e5 mov %esp,%ebp 10bddb: 83 ec 0c sub $0xc,%esp _Objects_Initialize_information( 10bdde: 6a 00 push $0x0 10bde0: 6a 00 push $0x0 10bde2: 6a 74 push $0x74 10bde4: ff 75 08 pushl 0x8(%ebp) 10bde7: 6a 02 push $0x2 10bde9: 6a 01 push $0x1 10bdeb: 68 40 54 12 00 push $0x125440 10bdf0: e8 e3 0d 00 00 call 10cbd8 <_Objects_Initialize_information> <== ALWAYS TAKEN 10bdf5: 83 c4 20 add $0x20,%esp , true, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } 10bdf8: c9 leave 10bdf9: c3 ret 0010bdb4 <_API_Mutex_Lock>: #include void _API_Mutex_Lock( API_Mutex_Control *the_mutex ) { 10bdb4: 55 push %ebp 10bdb5: 89 e5 mov %esp,%ebp 10bdb7: 83 ec 14 sub $0x14,%esp 10bdba: 8b 45 08 mov 0x8(%ebp),%eax ISR_Level level; _ISR_Disable( level ); 10bdbd: 9c pushf 10bdbe: fa cli 10bdbf: 5a pop %edx _CORE_mutex_Seize( 10bdc0: 52 push %edx 10bdc1: 6a 00 push $0x0 10bdc3: 6a 01 push $0x1 10bdc5: ff 70 08 pushl 0x8(%eax) 10bdc8: 83 c0 10 add $0x10,%eax 10bdcb: 50 push %eax 10bdcc: e8 57 02 00 00 call 10c028 <_CORE_mutex_Seize> <== ALWAYS TAKEN 10bdd1: 83 c4 20 add $0x20,%esp the_mutex->Object.id, true, 0, level ); } 10bdd4: c9 leave 10bdd5: c3 ret 0010bdfc <_API_Mutex_Unlock>: #include void _API_Mutex_Unlock( API_Mutex_Control *the_mutex ) { 10bdfc: 55 push %ebp 10bdfd: 89 e5 mov %esp,%ebp 10bdff: 83 ec 0c sub $0xc,%esp 10be02: 8b 45 08 mov 0x8(%ebp),%eax rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10be05: 8b 15 38 53 12 00 mov 0x125338,%edx 10be0b: 42 inc %edx 10be0c: 89 15 38 53 12 00 mov %edx,0x125338 _Thread_Disable_dispatch(); _CORE_mutex_Surrender( 10be12: 6a 00 push $0x0 10be14: ff 70 08 pushl 0x8(%eax) 10be17: 83 c0 10 add $0x10,%eax 10be1a: 50 push %eax 10be1b: e8 a8 02 00 00 call 10c0c8 <_CORE_mutex_Surrender> <== ALWAYS TAKEN &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); 10be20: 83 c4 10 add $0x10,%esp } 10be23: c9 leave _CORE_mutex_Surrender( &the_mutex->Mutex, the_mutex->Object.id, NULL ); _Thread_Enable_dispatch(); 10be24: e9 8f 15 00 00 jmp 10d3b8 <_Thread_Enable_dispatch> 0010bd44 <_API_extensions_Add>: */ void _API_extensions_Add( API_extensions_Control *the_extension ) { 10bd44: 55 push %ebp 10bd45: 89 e5 mov %esp,%ebp 10bd47: 83 ec 10 sub $0x10,%esp _Chain_Append( &_API_extensions_List, &the_extension->Node ); 10bd4a: ff 75 08 pushl 0x8(%ebp) 10bd4d: 68 98 55 12 00 push $0x125598 10bd52: e8 d5 00 00 00 call 10be2c <_Chain_Append> <== ALWAYS TAKEN 10bd57: 83 c4 10 add $0x10,%esp } 10bd5a: c9 leave 10bd5b: c3 ret 0010bce0 <_API_extensions_Run_postdriver>: * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) { 10bce0: 55 push %ebp 10bce1: 89 e5 mov %esp,%ebp 10bce3: 53 push %ebx 10bce4: 83 ec 04 sub $0x4,%esp Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 10bce7: 8b 1d 98 55 12 00 mov 0x125598,%ebx 10bced: 81 fb 9c 55 12 00 cmp $0x12559c,%ebx 10bcf3: 74 10 je 10bd05 <_API_extensions_Run_postdriver+0x25> <== ALWAYS TAKEN 10bcf5: 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)(); 10bcf8: 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 ) { 10bcfb: 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 ; 10bcfd: 81 fb 9c 55 12 00 cmp $0x12559c,%ebx 10bd03: 75 f3 jne 10bcf8 <_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)(); } } 10bd05: 58 pop %eax 10bd06: 5b pop %ebx 10bd07: c9 leave 10bd08: c3 ret 0010bd0c <_API_extensions_Run_postswitch>: * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) { 10bd0c: 55 push %ebp 10bd0d: 89 e5 mov %esp,%ebp 10bd0f: 53 push %ebx 10bd10: 83 ec 04 sub $0x4,%esp Chain_Node *the_node; API_extensions_Control *the_extension; for ( the_node = _API_extensions_List.first ; 10bd13: 8b 1d 98 55 12 00 mov 0x125598,%ebx 10bd19: 81 fb 9c 55 12 00 cmp $0x12559c,%ebx 10bd1f: 74 1c je 10bd3d <_API_extensions_Run_postswitch+0x31> <== ALWAYS TAKEN 10bd21: 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 ); 10bd24: 83 ec 0c sub $0xc,%esp 10bd27: ff 35 f8 53 12 00 pushl 0x1253f8 10bd2d: 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 ) { 10bd30: 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 ; 10bd32: 83 c4 10 add $0x10,%esp 10bd35: 81 fb 9c 55 12 00 cmp $0x12559c,%ebx 10bd3b: 75 e7 jne 10bd24 <_API_extensions_Run_postswitch+0x18> <== ALWAYS TAKEN #if defined(RTEMS_ITRON_API) if ( the_extension->postswitch_hook ) #endif (*the_extension->postswitch_hook)( _Thread_Executing ); } } 10bd3d: 8b 5d fc mov -0x4(%ebp),%ebx 10bd40: c9 leave 10bd41: c3 ret 00111ce4 <_CORE_barrier_Release>: #else Objects_Id id __attribute__((unused)), CORE_barrier_API_mp_support_callout api_barrier_mp_support __attribute__((unused)) #endif ) { 111ce4: 55 push %ebp 111ce5: 89 e5 mov %esp,%ebp 111ce7: 56 push %esi 111ce8: 53 push %ebx 111ce9: 8b 75 08 mov 0x8(%ebp),%esi Thread_Control *the_thread; uint32_t count; count = 0; while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) { 111cec: 31 db xor %ebx,%ebx 111cee: eb 01 jmp 111cf1 <_CORE_barrier_Release+0xd> <== ALWAYS TAKEN #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_barrier_mp_support) ( the_thread, id ); #endif count++; 111cf0: 43 inc %ebx { Thread_Control *the_thread; uint32_t count; count = 0; while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) { 111cf1: 83 ec 0c sub $0xc,%esp 111cf4: 56 push %esi 111cf5: e8 76 ba ff ff call 10d770 <_Thread_queue_Dequeue> 111cfa: 83 c4 10 add $0x10,%esp 111cfd: 85 c0 test %eax,%eax 111cff: 75 ef jne 111cf0 <_CORE_barrier_Release+0xc> if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_barrier_mp_support) ( the_thread, id ); #endif count++; } the_barrier->number_of_waiting_threads = 0; 111d01: c7 46 48 00 00 00 00 movl $0x0,0x48(%esi) return count; } 111d08: 89 d8 mov %ebx,%eax 111d0a: 8d 65 f8 lea -0x8(%ebp),%esp 111d0d: 5b pop %ebx 111d0e: 5e pop %esi 111d0f: c9 leave 111d10: c3 ret 00111d14 <_CORE_barrier_Wait>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { 111d14: 55 push %ebp 111d15: 89 e5 mov %esp,%ebp 111d17: 57 push %edi 111d18: 56 push %esi 111d19: 53 push %ebx 111d1a: 83 ec 1c sub $0x1c,%esp 111d1d: 8b 45 08 mov 0x8(%ebp),%eax 111d20: 8b 5d 0c mov 0xc(%ebp),%ebx 111d23: 8b 75 14 mov 0x14(%ebp),%esi 111d26: 8b 7d 18 mov 0x18(%ebp),%edi Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; 111d29: 8b 15 f8 53 12 00 mov 0x1253f8,%edx executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; 111d2f: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx) _ISR_Disable( level ); 111d36: 9c pushf 111d37: fa cli 111d38: 8f 45 e4 popl -0x1c(%ebp) the_barrier->number_of_waiting_threads++; 111d3b: 8b 48 48 mov 0x48(%eax),%ecx 111d3e: 41 inc %ecx 111d3f: 89 48 48 mov %ecx,0x48(%eax) if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { 111d42: 83 78 40 00 cmpl $0x0,0x40(%eax) 111d46: 75 05 jne 111d4d <_CORE_barrier_Wait+0x39> if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { 111d48: 3b 48 44 cmp 0x44(%eax),%ecx 111d4b: 74 2b je 111d78 <_CORE_barrier_Wait+0x64> 111d4d: 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; 111d54: 89 42 44 mov %eax,0x44(%edx) executing->Wait.id = id; 111d57: 89 5a 20 mov %ebx,0x20(%edx) _ISR_Enable( level ); 111d5a: ff 75 e4 pushl -0x1c(%ebp) 111d5d: 9d popf _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); 111d5e: c7 45 10 9c db 10 00 movl $0x10db9c,0x10(%ebp) 111d65: 89 75 0c mov %esi,0xc(%ebp) 111d68: 89 45 08 mov %eax,0x8(%ebp) } 111d6b: 83 c4 1c add $0x1c,%esp 111d6e: 5b pop %ebx 111d6f: 5e pop %esi 111d70: 5f pop %edi 111d71: 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 ); 111d72: e9 15 bb ff ff jmp 10d88c <_Thread_queue_Enqueue_with_handler> 111d77: 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; 111d78: c7 42 34 01 00 00 00 movl $0x1,0x34(%edx) _ISR_Enable( level ); 111d7f: ff 75 e4 pushl -0x1c(%ebp) 111d82: 9d popf _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support ); 111d83: 89 7d 10 mov %edi,0x10(%ebp) 111d86: 89 5d 0c mov %ebx,0xc(%ebp) 111d89: 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 ); } 111d8c: 83 c4 1c add $0x1c,%esp 111d8f: 5b pop %ebx 111d90: 5e pop %esi 111d91: 5f pop %edi 111d92: 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 ); 111d93: e9 4c ff ff ff jmp 111ce4 <_CORE_barrier_Release> <== ALWAYS TAKEN 001193f0 <_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 ) { 1193f0: 55 push %ebp 1193f1: 89 e5 mov %esp,%ebp 1193f3: 57 push %edi 1193f4: 56 push %esi 1193f5: 53 push %ebx 1193f6: 83 ec 1c sub $0x1c,%esp 1193f9: 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 ) { 1193fc: 8b 45 10 mov 0x10(%ebp),%eax 1193ff: 39 43 4c cmp %eax,0x4c(%ebx) 119402: 72 60 jb 119464 <_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 ) { 119404: 8b 43 48 mov 0x48(%ebx),%eax 119407: 85 c0 test %eax,%eax 119409: 75 45 jne 119450 <_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))) { 11940b: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 119412: eb 18 jmp 11942c <_CORE_message_queue_Broadcast+0x3c> <== ALWAYS TAKEN waitp = &the_thread->Wait; number_broadcasted += 1; 119414: ff 45 e4 incl -0x1c(%ebp) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 119417: 8b 42 2c mov 0x2c(%edx),%eax 11941a: 89 c7 mov %eax,%edi 11941c: 8b 75 0c mov 0xc(%ebp),%esi 11941f: 8b 4d 10 mov 0x10(%ebp),%ecx 119422: f3 a4 rep movsb %ds:(%esi),%es:(%edi) buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 119424: 8b 42 28 mov 0x28(%edx),%eax 119427: 8b 55 10 mov 0x10(%ebp),%edx 11942a: 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))) { 11942c: 83 ec 0c sub $0xc,%esp 11942f: 53 push %ebx 119430: e8 83 23 00 00 call 11b7b8 <_Thread_queue_Dequeue> 119435: 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 = 119437: 83 c4 10 add $0x10,%esp 11943a: 85 c0 test %eax,%eax 11943c: 75 d6 jne 119414 <_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; 11943e: 8b 55 e4 mov -0x1c(%ebp),%edx 119441: 8b 45 1c mov 0x1c(%ebp),%eax 119444: 89 10 mov %edx,(%eax) 119446: 31 c0 xor %eax,%eax return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 119448: 8d 65 f4 lea -0xc(%ebp),%esp 11944b: 5b pop %ebx 11944c: 5e pop %esi 11944d: 5f pop %edi 11944e: c9 leave 11944f: 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; 119450: 8b 55 1c mov 0x1c(%ebp),%edx 119453: c7 02 00 00 00 00 movl $0x0,(%edx) 119459: 31 c0 xor %eax,%eax #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 11945b: 8d 65 f4 lea -0xc(%ebp),%esp 11945e: 5b pop %ebx 11945f: 5e pop %esi 119460: 5f pop %edi 119461: c9 leave 119462: c3 ret 119463: 90 nop <== NOT EXECUTED { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 119464: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 119469: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 11946c: 5b pop %ebx <== NOT EXECUTED 11946d: 5e pop %esi <== NOT EXECUTED 11946e: 5f pop %edi <== NOT EXECUTED 11946f: c9 leave <== NOT EXECUTED 119470: c3 ret <== NOT EXECUTED 0011766c <_CORE_message_queue_Close>: void _CORE_message_queue_Close( CORE_message_queue_Control *the_message_queue, Thread_queue_Flush_callout remote_extract_callout, uint32_t status ) { 11766c: 55 push %ebp 11766d: 89 e5 mov %esp,%ebp 11766f: 53 push %ebx 117670: 83 ec 08 sub $0x8,%esp 117673: 8b 5d 08 mov 0x8(%ebp),%ebx /* * This will flush blocked threads whether they were blocked on * a send or receive. */ _Thread_queue_Flush( 117676: ff 75 10 pushl 0x10(%ebp) 117679: ff 75 0c pushl 0xc(%ebp) 11767c: 53 push %ebx 11767d: e8 d2 b1 ff ff call 112854 <_Thread_queue_Flush> * This removes all messages from the pending message queue. Since * we just flushed all waiting threads, we don't have to worry about * the flush satisfying any blocked senders as a side-effect. */ if ( the_message_queue->number_of_pending_messages != 0 ) 117682: 83 c4 10 add $0x10,%esp 117685: 8b 43 48 mov 0x48(%ebx),%eax 117688: 85 c0 test %eax,%eax 11768a: 74 0c je 117698 <_CORE_message_queue_Close+0x2c> (void) _CORE_message_queue_Flush_support( the_message_queue ); 11768c: 83 ec 0c sub $0xc,%esp 11768f: 53 push %ebx 117690: e8 13 00 00 00 call 1176a8 <_CORE_message_queue_Flush_support> <== ALWAYS TAKEN 117695: 83 c4 10 add $0x10,%esp (void) _Workspace_Free( the_message_queue->message_buffers ); 117698: 8b 43 5c mov 0x5c(%ebx),%eax 11769b: 89 45 08 mov %eax,0x8(%ebp) } 11769e: 8b 5d fc mov -0x4(%ebp),%ebx 1176a1: c9 leave */ if ( the_message_queue->number_of_pending_messages != 0 ) (void) _CORE_message_queue_Flush_support( the_message_queue ); (void) _Workspace_Free( the_message_queue->message_buffers ); 1176a2: e9 45 bc ff ff jmp 1132ec <_Workspace_Free> 001194b0 <_CORE_message_queue_Flush>: */ uint32_t _CORE_message_queue_Flush( CORE_message_queue_Control *the_message_queue ) { 1194b0: 55 push %ebp 1194b1: 89 e5 mov %esp,%ebp 1194b3: 83 ec 08 sub $0x8,%esp 1194b6: 8b 45 08 mov 0x8(%ebp),%eax if ( the_message_queue->number_of_pending_messages != 0 ) 1194b9: 8b 50 48 mov 0x48(%eax),%edx 1194bc: 85 d2 test %edx,%edx 1194be: 75 04 jne 1194c4 <_CORE_message_queue_Flush+0x14> return _CORE_message_queue_Flush_support( the_message_queue ); else return 0; } 1194c0: 31 c0 xor %eax,%eax 1194c2: c9 leave 1194c3: c3 ret uint32_t _CORE_message_queue_Flush( CORE_message_queue_Control *the_message_queue ) { if ( the_message_queue->number_of_pending_messages != 0 ) return _CORE_message_queue_Flush_support( the_message_queue ); 1194c4: 89 45 08 mov %eax,0x8(%ebp) else return 0; } 1194c7: c9 leave uint32_t _CORE_message_queue_Flush( CORE_message_queue_Control *the_message_queue ) { if ( the_message_queue->number_of_pending_messages != 0 ) return _CORE_message_queue_Flush_support( the_message_queue ); 1194c8: e9 03 00 00 00 jmp 1194d0 <_CORE_message_queue_Flush_support> <== ALWAYS TAKEN 00114bf4 <_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 ) { 114bf4: 55 push %ebp 114bf5: 89 e5 mov %esp,%ebp 114bf7: 57 push %edi 114bf8: 56 push %esi 114bf9: 53 push %ebx 114bfa: 83 ec 0c sub $0xc,%esp 114bfd: 8b 5d 08 mov 0x8(%ebp),%ebx 114c00: 8b 75 10 mov 0x10(%ebp),%esi 114c03: 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; 114c06: 89 73 44 mov %esi,0x44(%ebx) the_message_queue->number_of_pending_messages = 0; 114c09: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) the_message_queue->maximum_message_size = maximum_message_size; 114c10: 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)) { 114c13: a8 03 test $0x3,%al 114c15: 75 19 jne 114c30 <_CORE_message_queue_Initialize+0x3c> 114c17: 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)); 114c19: 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 * 114c1c: 89 f8 mov %edi,%eax 114c1e: 0f af c6 imul %esi,%eax (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) 114c21: 39 d0 cmp %edx,%eax 114c23: 73 23 jae 114c48 <_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; 114c25: 31 c0 xor %eax,%eax } 114c27: 8d 65 f4 lea -0xc(%ebp),%esp 114c2a: 5b pop %ebx 114c2b: 5e pop %esi 114c2c: 5f pop %edi 114c2d: c9 leave 114c2e: c3 ret 114c2f: 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); 114c30: 8d 50 04 lea 0x4(%eax),%edx allocated_message_size &= ~(sizeof(uint32_t) - 1); 114c33: 83 e2 fc and $0xfffffffc,%edx } if (allocated_message_size < maximum_message_size) 114c36: 39 d0 cmp %edx,%eax 114c38: 77 eb ja 114c25 <_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)); 114c3a: 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 * 114c3d: 89 f8 mov %edi,%eax 114c3f: 0f af c6 imul %esi,%eax (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) 114c42: 39 d0 cmp %edx,%eax 114c44: 72 df jb 114c25 <_CORE_message_queue_Initialize+0x31> <== ALWAYS TAKEN 114c46: 66 90 xchg %ax,%ax return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) 114c48: 83 ec 0c sub $0xc,%esp 114c4b: 50 push %eax 114c4c: e8 2f 28 00 00 call 117480 <_Workspace_Allocate> 114c51: 89 43 5c mov %eax,0x5c(%ebx) _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) 114c54: 83 c4 10 add $0x10,%esp 114c57: 85 c0 test %eax,%eax 114c59: 74 ca je 114c25 <_CORE_message_queue_Initialize+0x31> /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( 114c5b: 57 push %edi 114c5c: 56 push %esi 114c5d: 50 push %eax 114c5e: 8d 43 60 lea 0x60(%ebx),%eax 114c61: 50 push %eax 114c62: e8 f9 42 00 00 call 118f60 <_Chain_Initialize> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 114c67: 8d 43 54 lea 0x54(%ebx),%eax 114c6a: 89 43 50 mov %eax,0x50(%ebx) the_chain->permanent_null = NULL; 114c6d: c7 43 54 00 00 00 00 movl $0x0,0x54(%ebx) the_chain->last = _Chain_Head(the_chain); 114c74: 8d 43 50 lea 0x50(%ebx),%eax 114c77: 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( 114c7a: 6a 06 push $0x6 114c7c: 68 80 00 00 00 push $0x80 114c81: 8b 45 0c mov 0xc(%ebp),%eax 114c84: 83 38 01 cmpl $0x1,(%eax) 114c87: 0f 94 c0 sete %al 114c8a: 0f b6 c0 movzbl %al,%eax 114c8d: 50 push %eax 114c8e: 53 push %ebx 114c8f: e8 0c 1e 00 00 call 116aa0 <_Thread_queue_Initialize> 114c94: b0 01 mov $0x1,%al THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; 114c96: 83 c4 20 add $0x20,%esp } 114c99: 8d 65 f4 lea -0xc(%ebp),%esp 114c9c: 5b pop %ebx 114c9d: 5e pop %esi 114c9e: 5f pop %edi 114c9f: c9 leave 114ca0: c3 ret 00110020 <_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 ) { 110020: 55 push %ebp 110021: 89 e5 mov %esp,%ebp 110023: 53 push %ebx 110024: 8b 45 08 mov 0x8(%ebp),%eax 110027: 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 ); 11002a: 9c pushf 11002b: fa cli 11002c: 5b pop %ebx SET_NOTIFY(); the_message_queue->number_of_pending_messages++; 11002d: ff 40 48 incl 0x48(%eax) if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) 110030: 81 7d 10 ff ff ff 7f cmpl $0x7fffffff,0x10(%ebp) 110037: 74 17 je 110050 <_CORE_message_queue_Insert_message+0x30> 110039: 8d 48 50 lea 0x50(%eax),%ecx Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 11003c: 89 4a 04 mov %ecx,0x4(%edx) before_node = after_node->next; 11003f: 8b 48 50 mov 0x50(%eax),%ecx after_node->next = the_node; 110042: 89 50 50 mov %edx,0x50(%eax) the_node->next = before_node; 110045: 89 0a mov %ecx,(%edx) before_node->previous = the_node; 110047: 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 ); 11004a: 53 push %ebx 11004b: 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 } 11004c: 5b pop %ebx 11004d: c9 leave 11004e: c3 ret 11004f: 90 nop <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 110050: 8d 48 54 lea 0x54(%eax),%ecx 110053: 89 0a mov %ecx,(%edx) old_last_node = the_chain->last; 110055: 8b 48 58 mov 0x58(%eax),%ecx the_chain->last = the_node; 110058: 89 50 58 mov %edx,0x58(%eax) old_last_node->next = the_node; 11005b: 89 11 mov %edx,(%ecx) the_node->previous = old_last_node; 11005d: 89 4a 04 mov %ecx,0x4(%edx) 110060: eb e8 jmp 11004a <_CORE_message_queue_Insert_message+0x2a> <== ALWAYS TAKEN 00114ca4 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 114ca4: 55 push %ebp 114ca5: 89 e5 mov %esp,%ebp 114ca7: 57 push %edi 114ca8: 56 push %esi 114ca9: 53 push %ebx 114caa: 83 ec 1c sub $0x1c,%esp 114cad: 8b 45 08 mov 0x8(%ebp),%eax 114cb0: 8b 55 0c mov 0xc(%ebp),%edx 114cb3: 89 55 dc mov %edx,-0x24(%ebp) 114cb6: 8b 55 10 mov 0x10(%ebp),%edx 114cb9: 89 55 e4 mov %edx,-0x1c(%ebp) 114cbc: 8b 7d 14 mov 0x14(%ebp),%edi 114cbf: 8b 55 1c mov 0x1c(%ebp),%edx 114cc2: 89 55 d8 mov %edx,-0x28(%ebp) 114cc5: 8a 5d 18 mov 0x18(%ebp),%bl ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; 114cc8: 8b 0d 78 fa 12 00 mov 0x12fa78,%ecx executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 114cce: c7 41 34 00 00 00 00 movl $0x0,0x34(%ecx) _ISR_Disable( level ); 114cd5: 9c pushf 114cd6: fa cli 114cd7: 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)); 114cda: 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; 114cdd: 8d 70 54 lea 0x54(%eax),%esi 114ce0: 39 f2 cmp %esi,%edx 114ce2: 74 44 je 114d28 <_CORE_message_queue_Seize+0x84> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 114ce4: 8b 0a mov (%edx),%ecx the_chain->first = new_first; 114ce6: 89 48 50 mov %ecx,0x50(%eax) new_first->previous = _Chain_Head(the_chain); 114ce9: 8d 58 50 lea 0x50(%eax),%ebx 114cec: 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; 114cef: ff 48 48 decl 0x48(%eax) _ISR_Enable( level ); 114cf2: ff 75 e0 pushl -0x20(%ebp) 114cf5: 9d popf *size_p = the_message->Contents.size; 114cf6: 8b 4a 08 mov 0x8(%edx),%ecx 114cf9: 89 0f mov %ecx,(%edi) _Thread_Executing->Wait.count = 114cfb: 8b 0d 78 fa 12 00 mov 0x12fa78,%ecx 114d01: c7 41 24 00 00 00 00 movl $0x0,0x24(%ecx) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 114d08: 8d 72 0c lea 0xc(%edx),%esi 114d0b: 8b 0f mov (%edi),%ecx 114d0d: 8b 7d e4 mov -0x1c(%ebp),%edi 114d10: 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 ); 114d12: 89 55 0c mov %edx,0xc(%ebp) 114d15: 83 c0 60 add $0x60,%eax 114d18: 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 ); } 114d1b: 83 c4 1c add $0x1c,%esp 114d1e: 5b pop %ebx 114d1f: 5e pop %esi 114d20: 5f pop %edi 114d21: c9 leave 114d22: e9 4d fe ff ff jmp 114b74 <_Chain_Append> <== ALWAYS TAKEN 114d27: 90 nop <== NOT EXECUTED return; } #endif } if ( !wait ) { 114d28: 84 db test %bl,%bl 114d2a: 75 14 jne 114d40 <_CORE_message_queue_Seize+0x9c> _ISR_Enable( level ); 114d2c: ff 75 e0 pushl -0x20(%ebp) 114d2f: 9d popf executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 114d30: 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 ); } 114d37: 83 c4 1c add $0x1c,%esp 114d3a: 5b pop %ebx 114d3b: 5e pop %esi 114d3c: 5f pop %edi 114d3d: c9 leave 114d3e: c3 ret 114d3f: 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; 114d40: 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; 114d47: 89 41 44 mov %eax,0x44(%ecx) executing->Wait.id = id; 114d4a: 8b 55 dc mov -0x24(%ebp),%edx 114d4d: 89 51 20 mov %edx,0x20(%ecx) executing->Wait.return_argument_second.mutable_object = buffer; 114d50: 8b 55 e4 mov -0x1c(%ebp),%edx 114d53: 89 51 2c mov %edx,0x2c(%ecx) executing->Wait.return_argument = size_p; 114d56: 89 79 28 mov %edi,0x28(%ecx) /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); 114d59: ff 75 e0 pushl -0x20(%ebp) 114d5c: 9d popf _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 114d5d: c7 45 10 50 6b 11 00 movl $0x116b50,0x10(%ebp) 114d64: 8b 55 d8 mov -0x28(%ebp),%edx 114d67: 89 55 0c mov %edx,0xc(%ebp) 114d6a: 89 45 08 mov %eax,0x8(%ebp) } 114d6d: 83 c4 1c add $0x1c,%esp 114d70: 5b pop %ebx 114d71: 5e pop %esi 114d72: 5f pop %edi 114d73: 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 ); 114d74: e9 c7 1a 00 00 jmp 116840 <_Thread_queue_Enqueue_with_handler> 0010be74 <_CORE_message_queue_Submit>: #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { 10be74: 55 push %ebp 10be75: 89 e5 mov %esp,%ebp 10be77: 57 push %edi 10be78: 56 push %esi 10be79: 53 push %ebx 10be7a: 83 ec 0c sub $0xc,%esp 10be7d: 8b 5d 08 mov 0x8(%ebp),%ebx 10be80: 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 ) { 10be83: 8b 45 10 mov 0x10(%ebp),%eax 10be86: 39 43 4c cmp %eax,0x4c(%ebx) 10be89: 72 51 jb 10bedc <_CORE_message_queue_Submit+0x68> } /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { 10be8b: 8b 43 48 mov 0x48(%ebx),%eax 10be8e: 85 c0 test %eax,%eax 10be90: 74 5a je 10beec <_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 ) { 10be92: 39 43 44 cmp %eax,0x44(%ebx) 10be95: 77 0d ja 10bea4 <_CORE_message_queue_Submit+0x30> 10be97: 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 } 10be9c: 8d 65 f4 lea -0xc(%ebp),%esp 10be9f: 5b pop %ebx 10bea0: 5e pop %esi 10bea1: 5f pop %edi 10bea2: c9 leave 10bea3: 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 *) 10bea4: 83 ec 0c sub $0xc,%esp 10bea7: 8d 43 60 lea 0x60(%ebx),%eax 10beaa: 50 push %eax 10beab: e8 a0 ff ff ff call 10be50 <_Chain_Get> <== ALWAYS TAKEN 10beb0: 89 c2 mov %eax,%edx const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 10beb2: 8d 40 0c lea 0xc(%eax),%eax 10beb5: 89 c7 mov %eax,%edi 10beb7: 8b 4d 10 mov 0x10(%ebp),%ecx 10beba: f3 a4 rep movsb %ds:(%esi),%es:(%edi) _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; 10bebc: 8b 4d 10 mov 0x10(%ebp),%ecx 10bebf: 89 4a 08 mov %ecx,0x8(%edx) _CORE_message_queue_Set_message_priority( the_message, submit_type ); _CORE_message_queue_Insert_message( 10bec2: 83 c4 0c add $0xc,%esp 10bec5: ff 75 1c pushl 0x1c(%ebp) 10bec8: 52 push %edx 10bec9: 53 push %ebx 10beca: e8 51 41 00 00 call 110020 <_CORE_message_queue_Insert_message> 10becf: 31 c0 xor %eax,%eax the_message_queue, the_message, submit_type ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 10bed1: 83 c4 10 add $0x10,%esp _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } 10bed4: 8d 65 f4 lea -0xc(%ebp),%esp 10bed7: 5b pop %ebx 10bed8: 5e pop %esi 10bed9: 5f pop %edi 10beda: c9 leave 10bedb: c3 ret ) { CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 10bedc: 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 } 10bee1: 8d 65 f4 lea -0xc(%ebp),%esp 10bee4: 5b pop %ebx 10bee5: 5e pop %esi 10bee6: 5f pop %edi 10bee7: c9 leave 10bee8: c3 ret 10bee9: 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 ); 10beec: 83 ec 0c sub $0xc,%esp 10beef: 53 push %ebx 10bef0: e8 7b 18 00 00 call 10d770 <_Thread_queue_Dequeue> 10bef5: 89 c2 mov %eax,%edx if ( the_thread ) { 10bef7: 83 c4 10 add $0x10,%esp 10befa: 85 c0 test %eax,%eax 10befc: 74 1e je 10bf1c <_CORE_message_queue_Submit+0xa8> 10befe: 8b 40 2c mov 0x2c(%eax),%eax 10bf01: 89 c7 mov %eax,%edi 10bf03: 8b 4d 10 mov 0x10(%ebp),%ecx 10bf06: 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; 10bf08: 8b 42 28 mov 0x28(%edx),%eax 10bf0b: 8b 4d 10 mov 0x10(%ebp),%ecx 10bf0e: 89 08 mov %ecx,(%eax) the_thread->Wait.count = (uint32_t) submit_type; 10bf10: 8b 45 1c mov 0x1c(%ebp),%eax 10bf13: 89 42 24 mov %eax,0x24(%edx) 10bf16: 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; 10bf18: eb 82 jmp 10be9c <_CORE_message_queue_Submit+0x28> <== ALWAYS TAKEN 10bf1a: 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 ) { 10bf1c: 8b 43 48 mov 0x48(%ebx),%eax 10bf1f: e9 6e ff ff ff jmp 10be92 <_CORE_message_queue_Submit+0x1e> <== ALWAYS TAKEN 0010bf30 <_CORE_mutex_Initialize>: CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { 10bf30: 55 push %ebp 10bf31: 89 e5 mov %esp,%ebp 10bf33: 57 push %edi 10bf34: 56 push %esi 10bf35: 53 push %ebx 10bf36: 83 ec 0c sub $0xc,%esp 10bf39: 8b 45 08 mov 0x8(%ebp),%eax 10bf3c: 8b 5d 0c mov 0xc(%ebp),%ebx 10bf3f: 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; 10bf42: 8d 78 40 lea 0x40(%eax),%edi 10bf45: b9 04 00 00 00 mov $0x4,%ecx 10bf4a: 89 de mov %ebx,%esi 10bf4c: f3 a5 rep movsl %ds:(%esi),%es:(%edi) the_mutex->lock = initial_lock; 10bf4e: 89 50 50 mov %edx,0x50(%eax) the_mutex->blocked_count = 0; 10bf51: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax) if ( initial_lock == CORE_MUTEX_LOCKED ) { 10bf58: 85 d2 test %edx,%edx 10bf5a: 75 30 jne 10bf8c <_CORE_mutex_Initialize+0x5c> the_mutex->nest_count = 1; 10bf5c: c7 40 54 01 00 00 00 movl $0x1,0x54(%eax) the_mutex->holder = _Thread_Executing; 10bf63: 8b 15 f8 53 12 00 mov 0x1253f8,%edx 10bf69: 89 50 5c mov %edx,0x5c(%eax) the_mutex->holder_id = _Thread_Executing->Object.id; 10bf6c: 8b 4a 08 mov 0x8(%edx),%ecx 10bf6f: 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; 10bf72: 8b 48 48 mov 0x48(%eax),%ecx if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 10bf75: 83 f9 02 cmp $0x2,%ecx 10bf78: 74 05 je 10bf7f <_CORE_mutex_Initialize+0x4f> 10bf7a: 83 f9 03 cmp $0x3,%ecx 10bf7d: 75 22 jne 10bfa1 <_CORE_mutex_Initialize+0x71> _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < the_mutex->Attributes.priority_ceiling ) 10bf7f: 8b 4a 14 mov 0x14(%edx),%ecx 10bf82: 3b 48 4c cmp 0x4c(%eax),%ecx 10bf85: 72 41 jb 10bfc8 <_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++; 10bf87: ff 42 1c incl 0x1c(%edx) 10bf8a: eb 15 jmp 10bfa1 <_CORE_mutex_Initialize+0x71> <== ALWAYS TAKEN } } else { the_mutex->nest_count = 0; 10bf8c: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) the_mutex->holder = NULL; 10bf93: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax) the_mutex->holder_id = 0; 10bf9a: c7 40 60 00 00 00 00 movl $0x0,0x60(%eax) } _Thread_queue_Initialize( 10bfa1: 6a 05 push $0x5 10bfa3: 68 00 04 00 00 push $0x400 10bfa8: 31 d2 xor %edx,%edx 10bfaa: 83 7b 08 00 cmpl $0x0,0x8(%ebx) 10bfae: 0f 95 c2 setne %dl 10bfb1: 52 push %edx 10bfb2: 50 push %eax 10bfb3: e8 34 1b 00 00 call 10daec <_Thread_queue_Initialize> 10bfb8: 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; 10bfba: 83 c4 10 add $0x10,%esp } 10bfbd: 8d 65 f4 lea -0xc(%ebp),%esp 10bfc0: 5b pop %ebx 10bfc1: 5e pop %esi 10bfc2: 5f pop %edi 10bfc3: c9 leave 10bfc4: c3 ret 10bfc5: 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 ) 10bfc8: b8 06 00 00 00 mov $0x6,%eax STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } 10bfcd: 8d 65 f4 lea -0xc(%ebp),%esp 10bfd0: 5b pop %ebx 10bfd1: 5e pop %esi 10bfd2: 5f pop %edi 10bfd3: c9 leave 10bfd4: c3 ret 0010c028 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { 10c028: 55 push %ebp 10c029: 89 e5 mov %esp,%ebp 10c02b: 53 push %ebx 10c02c: 83 ec 14 sub $0x14,%esp 10c02f: 8b 5d 08 mov 0x8(%ebp),%ebx 10c032: 8a 55 10 mov 0x10(%ebp),%dl _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 10c035: a1 38 53 12 00 mov 0x125338,%eax 10c03a: 85 c0 test %eax,%eax 10c03c: 74 04 je 10c042 <_CORE_mutex_Seize+0x1a> 10c03e: 84 d2 test %dl,%dl 10c040: 75 36 jne 10c078 <_CORE_mutex_Seize+0x50> <== NEVER TAKEN 10c042: 83 ec 08 sub $0x8,%esp 10c045: 8d 45 18 lea 0x18(%ebp),%eax 10c048: 50 push %eax 10c049: 53 push %ebx 10c04a: 88 55 f4 mov %dl,-0xc(%ebp) 10c04d: e8 12 40 00 00 call 110064 <_CORE_mutex_Seize_interrupt_trylock> 10c052: 83 c4 10 add $0x10,%esp 10c055: 85 c0 test %eax,%eax 10c057: 8a 55 f4 mov -0xc(%ebp),%dl 10c05a: 74 14 je 10c070 <_CORE_mutex_Seize+0x48> 10c05c: 84 d2 test %dl,%dl 10c05e: 75 30 jne 10c090 <_CORE_mutex_Seize+0x68> 10c060: ff 75 18 pushl 0x18(%ebp) 10c063: 9d popf 10c064: a1 f8 53 12 00 mov 0x1253f8,%eax 10c069: c7 40 34 01 00 00 00 movl $0x1,0x34(%eax) } 10c070: 8b 5d fc mov -0x4(%ebp),%ebx 10c073: c9 leave 10c074: c3 ret 10c075: 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 ); 10c078: 83 3d 00 55 12 00 01 cmpl $0x1,0x125500 10c07f: 76 c1 jbe 10c042 <_CORE_mutex_Seize+0x1a> 10c081: 53 push %ebx 10c082: 6a 13 push $0x13 10c084: 6a 00 push $0x0 10c086: 6a 00 push $0x0 10c088: e8 9b 05 00 00 call 10c628 <_Internal_error_Occurred> <== ALWAYS TAKEN 10c08d: 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; 10c090: c7 43 30 01 00 00 00 movl $0x1,0x30(%ebx) 10c097: a1 f8 53 12 00 mov 0x1253f8,%eax 10c09c: 89 58 44 mov %ebx,0x44(%eax) 10c09f: 8b 55 0c mov 0xc(%ebp),%edx 10c0a2: 89 50 20 mov %edx,0x20(%eax) 10c0a5: a1 38 53 12 00 mov 0x125338,%eax 10c0aa: 40 inc %eax 10c0ab: a3 38 53 12 00 mov %eax,0x125338 10c0b0: ff 75 18 pushl 0x18(%ebp) 10c0b3: 9d popf 10c0b4: 83 ec 08 sub $0x8,%esp 10c0b7: ff 75 14 pushl 0x14(%ebp) 10c0ba: 53 push %ebx 10c0bb: e8 18 ff ff ff call 10bfd8 <_CORE_mutex_Seize_interrupt_blocking> <== ALWAYS TAKEN 10c0c0: 83 c4 10 add $0x10,%esp } 10c0c3: 8b 5d fc mov -0x4(%ebp),%ebx 10c0c6: c9 leave 10c0c7: c3 ret 0010bfd8 <_CORE_mutex_Seize_interrupt_blocking>: void _CORE_mutex_Seize_interrupt_blocking( CORE_mutex_Control *the_mutex, Watchdog_Interval timeout ) { 10bfd8: 55 push %ebp 10bfd9: 89 e5 mov %esp,%ebp 10bfdb: 56 push %esi 10bfdc: 53 push %ebx 10bfdd: 8b 5d 08 mov 0x8(%ebp),%ebx 10bfe0: 8b 75 0c mov 0xc(%ebp),%esi Thread_Control *executing; executing = _Thread_Executing; 10bfe3: a1 f8 53 12 00 mov 0x1253f8,%eax if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { 10bfe8: 83 7b 48 02 cmpl $0x2,0x48(%ebx) 10bfec: 74 1e je 10c00c <_CORE_mutex_Seize_interrupt_blocking+0x34> false ); } } the_mutex->blocked_count++; 10bfee: ff 43 58 incl 0x58(%ebx) _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); 10bff1: 50 push %eax 10bff2: 68 9c db 10 00 push $0x10db9c 10bff7: 56 push %esi 10bff8: 53 push %ebx 10bff9: e8 8e 18 00 00 call 10d88c <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); 10bffe: 83 c4 10 add $0x10,%esp } 10c001: 8d 65 f8 lea -0x8(%ebp),%esp 10c004: 5b pop %ebx 10c005: 5e pop %esi 10c006: c9 leave } the_mutex->blocked_count++; _Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout ); _Thread_Enable_dispatch(); 10c007: e9 ac 13 00 00 jmp 10d3b8 <_Thread_Enable_dispatch> { Thread_Control *executing; executing = _Thread_Executing; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) { if ( the_mutex->holder->current_priority > executing->current_priority ) { 10c00c: 8b 53 5c mov 0x5c(%ebx),%edx 10c00f: 8b 40 14 mov 0x14(%eax),%eax 10c012: 39 42 14 cmp %eax,0x14(%edx) 10c015: 76 d7 jbe 10bfee <_CORE_mutex_Seize_interrupt_blocking+0x16> _Thread_Change_priority( 10c017: 51 push %ecx 10c018: 6a 00 push $0x0 10c01a: 50 push %eax 10c01b: 52 push %edx 10c01c: e8 af 0e 00 00 call 10ced0 <_Thread_Change_priority> 10c021: 83 c4 10 add $0x10,%esp 10c024: eb c8 jmp 10bfee <_CORE_mutex_Seize_interrupt_blocking+0x16> <== ALWAYS TAKEN 00110064 <_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 ) { 110064: 55 push %ebp 110065: 89 e5 mov %esp,%ebp 110067: 56 push %esi 110068: 53 push %ebx 110069: 8b 45 08 mov 0x8(%ebp),%eax 11006c: 8b 4d 0c mov 0xc(%ebp),%ecx { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 11006f: 8b 15 f8 53 12 00 mov 0x1253f8,%edx executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 110075: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx) if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 11007c: 8b 58 50 mov 0x50(%eax),%ebx 11007f: 85 db test %ebx,%ebx 110081: 74 31 je 1100b4 <_CORE_mutex_Seize_interrupt_trylock+0x50> the_mutex->lock = CORE_MUTEX_LOCKED; 110083: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) the_mutex->holder = executing; 11008a: 89 50 5c mov %edx,0x5c(%eax) the_mutex->holder_id = executing->Object.id; 11008d: 8b 5a 08 mov 0x8(%edx),%ebx 110090: 89 58 60 mov %ebx,0x60(%eax) the_mutex->nest_count = 1; 110093: 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; 11009a: 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 ) || 11009d: 83 fb 02 cmp $0x2,%ebx 1100a0: 74 26 je 1100c8 <_CORE_mutex_Seize_interrupt_trylock+0x64> 1100a2: 83 fb 03 cmp $0x3,%ebx 1100a5: 74 3d je 1100e4 <_CORE_mutex_Seize_interrupt_trylock+0x80> executing->resource_count++; } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { _ISR_Enable( *level_p ); 1100a7: ff 31 pushl (%ecx) 1100a9: 9d popf 1100aa: 31 c0 xor %eax,%eax return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 1100ac: 8d 65 f8 lea -0x8(%ebp),%esp 1100af: 5b pop %ebx 1100b0: 5e pop %esi 1100b1: c9 leave 1100b2: c3 ret 1100b3: 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 ) ) { 1100b4: 3b 50 5c cmp 0x5c(%eax),%edx 1100b7: 74 17 je 1100d0 <_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 ); 1100b9: b8 01 00 00 00 mov $0x1,%eax 1100be: 8d 65 f8 lea -0x8(%ebp),%esp 1100c1: 5b pop %ebx 1100c2: 5e pop %esi 1100c3: c9 leave 1100c4: c3 ret 1100c5: 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++; 1100c8: ff 42 1c incl 0x1c(%edx) 1100cb: eb da jmp 1100a7 <_CORE_mutex_Seize_interrupt_trylock+0x43> <== ALWAYS TAKEN 1100cd: 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 ) { 1100d0: 8b 58 40 mov 0x40(%eax),%ebx 1100d3: 85 db test %ebx,%ebx 1100d5: 75 45 jne 11011c <_CORE_mutex_Seize_interrupt_trylock+0xb8> case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 1100d7: ff 40 54 incl 0x54(%eax) _ISR_Enable( *level_p ); 1100da: ff 31 pushl (%ecx) 1100dc: 9d popf 1100dd: 31 c0 xor %eax,%eax 1100df: eb dd jmp 1100be <_CORE_mutex_Seize_interrupt_trylock+0x5a> <== ALWAYS TAKEN 1100e1: 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++; 1100e4: 8b 5a 1c mov 0x1c(%edx),%ebx 1100e7: 8d 73 01 lea 0x1(%ebx),%esi 1100ea: 89 72 1c mov %esi,0x1c(%edx) { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 1100ed: 8b 72 14 mov 0x14(%edx),%esi if ( current == ceiling ) { 1100f0: 39 70 4c cmp %esi,0x4c(%eax) 1100f3: 74 6b je 110160 <_CORE_mutex_Seize_interrupt_trylock+0xfc> _ISR_Enable( *level_p ); return 0; } if ( current > ceiling ) { 1100f5: 72 39 jb 110130 <_CORE_mutex_Seize_interrupt_trylock+0xcc> ); _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 1100f7: c7 42 34 06 00 00 00 movl $0x6,0x34(%edx) the_mutex->lock = CORE_MUTEX_UNLOCKED; 1100fe: c7 40 50 01 00 00 00 movl $0x1,0x50(%eax) the_mutex->nest_count = 0; /* undo locking above */ 110105: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) executing->resource_count--; /* undo locking above */ 11010c: 89 5a 1c mov %ebx,0x1c(%edx) _ISR_Enable( *level_p ); 11010f: ff 31 pushl (%ecx) 110111: 9d popf 110112: 31 c0 xor %eax,%eax 110114: 8d 65 f8 lea -0x8(%ebp),%esp 110117: 5b pop %ebx 110118: 5e pop %esi 110119: c9 leave 11011a: c3 ret 11011b: 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 ) { 11011c: 4b dec %ebx 11011d: 75 9a jne 1100b9 <_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; 11011f: c7 42 34 02 00 00 00 movl $0x2,0x34(%edx) <== NOT EXECUTED _ISR_Enable( *level_p ); 110126: ff 31 pushl (%ecx) <== NOT EXECUTED 110128: 9d popf <== NOT EXECUTED 110129: 31 c0 xor %eax,%eax <== NOT EXECUTED 11012b: eb 91 jmp 1100be <_CORE_mutex_Seize_interrupt_trylock+0x5a> <== NOT EXECUTED 11012d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 110130: 8b 15 38 53 12 00 mov 0x125338,%edx 110136: 42 inc %edx 110137: 89 15 38 53 12 00 mov %edx,0x125338 return 0; } if ( current > ceiling ) { _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); 11013d: ff 31 pushl (%ecx) 11013f: 9d popf _Thread_Change_priority( 110140: 52 push %edx 110141: 6a 00 push $0x0 110143: ff 70 4c pushl 0x4c(%eax) 110146: ff 70 5c pushl 0x5c(%eax) 110149: e8 82 cd ff ff call 10ced0 <_Thread_Change_priority> the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); 11014e: e8 65 d2 ff ff call 10d3b8 <_Thread_Enable_dispatch> 110153: 31 c0 xor %eax,%eax 110155: 83 c4 10 add $0x10,%esp 110158: e9 61 ff ff ff jmp 1100be <_CORE_mutex_Seize_interrupt_trylock+0x5a> <== ALWAYS TAKEN 11015d: 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 ); 110160: ff 31 pushl (%ecx) 110162: 9d popf 110163: 31 c0 xor %eax,%eax 110165: e9 54 ff ff ff jmp 1100be <_CORE_mutex_Seize_interrupt_trylock+0x5a> <== ALWAYS TAKEN 0010c0c8 <_CORE_mutex_Surrender>: #else Objects_Id id __attribute__((unused)), CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused)) #endif ) { 10c0c8: 55 push %ebp 10c0c9: 89 e5 mov %esp,%ebp 10c0cb: 53 push %ebx 10c0cc: 83 ec 04 sub $0x4,%esp 10c0cf: 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; 10c0d2: 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 ) { 10c0d5: 80 7b 44 00 cmpb $0x0,0x44(%ebx) 10c0d9: 74 15 je 10c0f0 <_CORE_mutex_Surrender+0x28> if ( !_Thread_Is_executing( holder ) ) 10c0db: 3b 05 f8 53 12 00 cmp 0x1253f8,%eax 10c0e1: 74 0d je 10c0f0 <_CORE_mutex_Surrender+0x28> 10c0e3: b8 03 00 00 00 mov $0x3,%eax } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 10c0e8: 8b 5d fc mov -0x4(%ebp),%ebx 10c0eb: c9 leave 10c0ec: c3 ret 10c0ed: 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 ) 10c0f0: 8b 53 54 mov 0x54(%ebx),%edx 10c0f3: 85 d2 test %edx,%edx 10c0f5: 74 65 je 10c15c <_CORE_mutex_Surrender+0x94> return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; 10c0f7: 4a dec %edx 10c0f8: 89 53 54 mov %edx,0x54(%ebx) if ( the_mutex->nest_count != 0 ) { 10c0fb: 85 d2 test %edx,%edx 10c0fd: 75 5d jne 10c15c <_CORE_mutex_Surrender+0x94> 10c0ff: 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 ) || 10c102: 83 fa 02 cmp $0x2,%edx 10c105: 0f 84 99 00 00 00 je 10c1a4 <_CORE_mutex_Surrender+0xdc> 10c10b: 83 fa 03 cmp $0x3,%edx 10c10e: 0f 84 90 00 00 00 je 10c1a4 <_CORE_mutex_Surrender+0xdc> } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; 10c114: c7 43 5c 00 00 00 00 movl $0x0,0x5c(%ebx) the_mutex->holder_id = 0; 10c11b: 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 ) || 10c122: 83 fa 02 cmp $0x2,%edx 10c125: 74 5d je 10c184 <_CORE_mutex_Surrender+0xbc> 10c127: 83 fa 03 cmp $0x3,%edx 10c12a: 74 58 je 10c184 <_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 ) ) ) { 10c12c: 83 ec 0c sub $0xc,%esp 10c12f: 53 push %ebx 10c130: e8 3b 16 00 00 call 10d770 <_Thread_queue_Dequeue> 10c135: 83 c4 10 add $0x10,%esp 10c138: 85 c0 test %eax,%eax 10c13a: 74 7c je 10c1b8 <_CORE_mutex_Surrender+0xf0> } else #endif { the_mutex->holder = the_thread; 10c13c: 89 43 5c mov %eax,0x5c(%ebx) the_mutex->holder_id = the_thread->Object.id; 10c13f: 8b 50 08 mov 0x8(%eax),%edx 10c142: 89 53 60 mov %edx,0x60(%ebx) the_mutex->nest_count = 1; 10c145: c7 43 54 01 00 00 00 movl $0x1,0x54(%ebx) switch ( the_mutex->Attributes.discipline ) { 10c14c: 8b 53 48 mov 0x48(%ebx),%edx 10c14f: 83 fa 02 cmp $0x2,%edx 10c152: 74 58 je 10c1ac <_CORE_mutex_Surrender+0xe4> 10c154: 83 fa 03 cmp $0x3,%edx 10c157: 74 0b je 10c164 <_CORE_mutex_Surrender+0x9c> 10c159: 8d 76 00 lea 0x0(%esi),%esi } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 10c15c: 31 c0 xor %eax,%eax return CORE_MUTEX_STATUS_SUCCESSFUL; } 10c15e: 8b 5d fc mov -0x4(%ebp),%ebx 10c161: c9 leave 10c162: c3 ret 10c163: 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++; 10c164: ff 40 1c incl 0x1c(%eax) if (the_mutex->Attributes.priority_ceiling < 10c167: 8b 53 4c mov 0x4c(%ebx),%edx the_thread->current_priority){ 10c16a: 3b 50 14 cmp 0x14(%eax),%edx 10c16d: 73 ed jae 10c15c <_CORE_mutex_Surrender+0x94> _Thread_Change_priority( 10c16f: 51 push %ecx 10c170: 6a 00 push $0x0 10c172: 52 push %edx 10c173: 50 push %eax 10c174: e8 57 0d 00 00 call 10ced0 <_Thread_Change_priority> 10c179: 31 c0 xor %eax,%eax 10c17b: 83 c4 10 add $0x10,%esp 10c17e: e9 65 ff ff ff jmp 10c0e8 <_CORE_mutex_Surrender+0x20> <== ALWAYS TAKEN 10c183: 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 && 10c184: 8b 50 1c mov 0x1c(%eax),%edx 10c187: 85 d2 test %edx,%edx 10c189: 75 a1 jne 10c12c <_CORE_mutex_Surrender+0x64> holder->real_priority != holder->current_priority ) { 10c18b: 8b 50 18 mov 0x18(%eax),%edx 10c18e: 3b 50 14 cmp 0x14(%eax),%edx 10c191: 74 99 je 10c12c <_CORE_mutex_Surrender+0x64> _Thread_Change_priority( holder, holder->real_priority, true ); 10c193: 51 push %ecx 10c194: 6a 01 push $0x1 10c196: 52 push %edx 10c197: 50 push %eax 10c198: e8 33 0d 00 00 call 10ced0 <_Thread_Change_priority> <== ALWAYS TAKEN 10c19d: 83 c4 10 add $0x10,%esp 10c1a0: eb 8a jmp 10c12c <_CORE_mutex_Surrender+0x64> <== ALWAYS TAKEN 10c1a2: 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--; 10c1a4: ff 48 1c decl 0x1c(%eax) 10c1a7: e9 68 ff ff ff jmp 10c114 <_CORE_mutex_Surrender+0x4c> <== ALWAYS TAKEN 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++; 10c1ac: ff 40 1c incl 0x1c(%eax) 10c1af: 31 c0 xor %eax,%eax break; 10c1b1: e9 32 ff ff ff jmp 10c0e8 <_CORE_mutex_Surrender+0x20> <== ALWAYS TAKEN 10c1b6: 66 90 xchg %ax,%ax <== NOT EXECUTED } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 10c1b8: c7 43 50 01 00 00 00 movl $0x1,0x50(%ebx) 10c1bf: 31 c0 xor %eax,%eax 10c1c1: e9 22 ff ff ff jmp 10c0e8 <_CORE_mutex_Surrender+0x20> <== ALWAYS TAKEN 0010c214 <_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 ) { 10c214: 55 push %ebp 10c215: 89 e5 mov %esp,%ebp 10c217: 53 push %ebx 10c218: 83 ec 10 sub $0x10,%esp 10c21b: 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)) ) { 10c21e: 53 push %ebx 10c21f: e8 4c 15 00 00 call 10d770 <_Thread_queue_Dequeue> 10c224: 83 c4 10 add $0x10,%esp 10c227: 85 c0 test %eax,%eax 10c229: 74 09 je 10c234 <_CORE_semaphore_Surrender+0x20> 10c22b: 31 c0 xor %eax,%eax status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } 10c22d: 8b 5d fc mov -0x4(%ebp),%ebx 10c230: c9 leave 10c231: c3 ret 10c232: 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 ); 10c234: 9c pushf 10c235: fa cli 10c236: 5a pop %edx if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) 10c237: 8b 43 48 mov 0x48(%ebx),%eax 10c23a: 3b 43 40 cmp 0x40(%ebx),%eax 10c23d: 72 0d jb 10c24c <_CORE_semaphore_Surrender+0x38> <== NEVER TAKEN 10c23f: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED the_semaphore->count += 1; else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); 10c244: 52 push %edx 10c245: 9d popf } return status; } 10c246: 8b 5d fc mov -0x4(%ebp),%ebx 10c249: c9 leave 10c24a: c3 ret 10c24b: 90 nop <== NOT EXECUTED #endif } else { _ISR_Disable( level ); if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) the_semaphore->count += 1; 10c24c: 40 inc %eax 10c24d: 89 43 48 mov %eax,0x48(%ebx) 10c250: 31 c0 xor %eax,%eax 10c252: eb f0 jmp 10c244 <_CORE_semaphore_Surrender+0x30> <== ALWAYS TAKEN 0010be50 <_Chain_Get>: */ Chain_Node *_Chain_Get( Chain_Control *the_chain ) { 10be50: 55 push %ebp 10be51: 89 e5 mov %esp,%ebp 10be53: 53 push %ebx 10be54: 8b 55 08 mov 0x8(%ebp),%edx ISR_Level level; Chain_Node *return_node; return_node = NULL; _ISR_Disable( level ); 10be57: 9c pushf 10be58: fa cli 10be59: 5b pop %ebx */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 10be5a: 8b 02 mov (%edx),%eax */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10be5c: 8d 4a 04 lea 0x4(%edx),%ecx 10be5f: 39 c8 cmp %ecx,%eax 10be61: 74 0d je 10be70 <_Chain_Get+0x20> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 10be63: 8b 08 mov (%eax),%ecx the_chain->first = new_first; 10be65: 89 0a mov %ecx,(%edx) new_first->previous = _Chain_Head(the_chain); 10be67: 89 51 04 mov %edx,0x4(%ecx) if ( !_Chain_Is_empty( the_chain ) ) return_node = _Chain_Get_first_unprotected( the_chain ); _ISR_Enable( level ); 10be6a: 53 push %ebx 10be6b: 9d popf return return_node; } 10be6c: 5b pop %ebx 10be6d: c9 leave 10be6e: c3 ret 10be6f: 90 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10be70: 31 c0 xor %eax,%eax 10be72: eb f6 jmp 10be6a <_Chain_Get+0x1a> <== ALWAYS TAKEN 0010ffe0 <_Chain_Initialize>: Chain_Control *the_chain, void *starting_address, size_t number_nodes, size_t node_size ) { 10ffe0: 55 push %ebp 10ffe1: 89 e5 mov %esp,%ebp 10ffe3: 57 push %edi 10ffe4: 56 push %esi 10ffe5: 53 push %ebx 10ffe6: 8b 7d 08 mov 0x8(%ebp),%edi 10ffe9: 8b 4d 10 mov 0x10(%ebp),%ecx 10ffec: 8b 75 14 mov 0x14(%ebp),%esi */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 10ffef: 89 fa mov %edi,%edx Chain_Node *current; Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; 10fff1: c7 47 04 00 00 00 00 movl $0x0,0x4(%edi) next = starting_address; while ( count-- ) { 10fff8: 85 c9 test %ecx,%ecx 10fffa: 74 17 je 110013 <_Chain_Initialize+0x33> <== ALWAYS TAKEN Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; 10fffc: 8b 45 0c mov 0xc(%ebp),%eax 10ffff: eb 05 jmp 110006 <_Chain_Initialize+0x26> <== ALWAYS TAKEN 110001: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED while ( count-- ) { 110004: 89 d8 mov %ebx,%eax current->next = next; 110006: 89 02 mov %eax,(%edx) next->previous = current; 110008: 89 50 04 mov %edx,0x4(%eax) 11000b: 8d 1c 30 lea (%eax,%esi,1),%ebx current = next; next = (Chain_Node *) 11000e: 89 c2 mov %eax,%edx count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { 110010: 49 dec %ecx 110011: 75 f1 jne 110004 <_Chain_Initialize+0x24> next->previous = current; current = next; next = (Chain_Node *) _Addresses_Add_offset( (void *) next, node_size ); } current->next = _Chain_Tail( the_chain ); 110013: 8d 47 04 lea 0x4(%edi),%eax 110016: 89 02 mov %eax,(%edx) the_chain->last = current; 110018: 89 57 08 mov %edx,0x8(%edi) } 11001b: 5b pop %ebx 11001c: 5e pop %esi 11001d: 5f pop %edi 11001e: c9 leave 11001f: c3 ret 0010af24 <_Event_Seize>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 10af24: 55 push %ebp 10af25: 89 e5 mov %esp,%ebp 10af27: 57 push %edi 10af28: 56 push %esi 10af29: 53 push %ebx 10af2a: 83 ec 2c sub $0x2c,%esp 10af2d: 8b 45 08 mov 0x8(%ebp),%eax 10af30: 8b 4d 0c mov 0xc(%ebp),%ecx 10af33: 8b 55 10 mov 0x10(%ebp),%edx 10af36: 89 55 dc mov %edx,-0x24(%ebp) 10af39: 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; 10af3c: 8b 1d f8 53 12 00 mov 0x1253f8,%ebx executing->Wait.return_code = RTEMS_SUCCESSFUL; 10af42: c7 43 34 00 00 00 00 movl $0x0,0x34(%ebx) api = executing->API_Extensions[ THREAD_API_RTEMS ]; 10af49: 8b b3 f0 00 00 00 mov 0xf0(%ebx),%esi _ISR_Disable( level ); 10af4f: 9c pushf 10af50: fa cli 10af51: 8f 45 e0 popl -0x20(%ebp) pending_events = api->pending_events; 10af54: 8b 16 mov (%esi),%edx 10af56: 89 55 d4 mov %edx,-0x2c(%ebp) seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && 10af59: 21 c2 and %eax,%edx 10af5b: 89 55 e4 mov %edx,-0x1c(%ebp) 10af5e: 74 0d je 10af6d <_Event_Seize+0x49> 10af60: 39 d0 cmp %edx,%eax 10af62: 0f 84 84 00 00 00 je 10afec <_Event_Seize+0xc8> 10af68: f6 c1 02 test $0x2,%cl 10af6b: 75 7f jne 10afec <_Event_Seize+0xc8> <== NEVER TAKEN _ISR_Enable( level ); *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { 10af6d: f6 c1 01 test $0x1,%cl 10af70: 75 62 jne 10afd4 <_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; 10af72: 89 4b 30 mov %ecx,0x30(%ebx) executing->Wait.count = (uint32_t) event_in; 10af75: 89 43 24 mov %eax,0x24(%ebx) executing->Wait.return_argument = event_out; 10af78: 89 7b 28 mov %edi,0x28(%ebx) _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 10af7b: c7 05 ec 55 12 00 01 movl $0x1,0x1255ec 10af82: 00 00 00 _ISR_Enable( level ); 10af85: ff 75 e0 pushl -0x20(%ebp) 10af88: 9d popf if ( ticks ) { 10af89: 8b 45 dc mov -0x24(%ebp),%eax 10af8c: 85 c0 test %eax,%eax 10af8e: 0f 85 80 00 00 00 jne 10b014 <_Event_Seize+0xf0> NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); 10af94: 83 ec 08 sub $0x8,%esp 10af97: 68 00 01 00 00 push $0x100 10af9c: 53 push %ebx 10af9d: e8 9e 2c 00 00 call 10dc40 <_Thread_Set_state> _ISR_Disable( level ); 10afa2: 9c pushf 10afa3: fa cli 10afa4: 5a pop %edx sync_state = _Event_Sync_state; 10afa5: a1 ec 55 12 00 mov 0x1255ec,%eax _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 10afaa: c7 05 ec 55 12 00 00 movl $0x0,0x1255ec 10afb1: 00 00 00 if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 10afb4: 83 c4 10 add $0x10,%esp 10afb7: 83 f8 01 cmp $0x1,%eax 10afba: 74 4c je 10b008 <_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 ); 10afbc: 89 55 10 mov %edx,0x10(%ebp) 10afbf: 89 5d 0c mov %ebx,0xc(%ebp) 10afc2: 89 45 08 mov %eax,0x8(%ebp) } 10afc5: 8d 65 f4 lea -0xc(%ebp),%esp 10afc8: 5b pop %ebx 10afc9: 5e pop %esi 10afca: 5f pop %edi 10afcb: 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 ); 10afcc: e9 b3 1e 00 00 jmp 10ce84 <_Thread_blocking_operation_Cancel> 10afd1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { _ISR_Enable( level ); 10afd4: ff 75 e0 pushl -0x20(%ebp) 10afd7: 9d popf executing->Wait.return_code = RTEMS_UNSATISFIED; 10afd8: c7 43 34 0d 00 00 00 movl $0xd,0x34(%ebx) *event_out = seized_events; 10afdf: 8b 55 e4 mov -0x1c(%ebp),%edx 10afe2: 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 ); } 10afe4: 8d 65 f4 lea -0xc(%ebp),%esp 10afe7: 5b pop %ebx 10afe8: 5e pop %esi 10afe9: 5f pop %edi 10afea: c9 leave 10afeb: 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 = 10afec: 8b 45 e4 mov -0x1c(%ebp),%eax 10afef: f7 d0 not %eax 10aff1: 23 45 d4 and -0x2c(%ebp),%eax 10aff4: 89 06 mov %eax,(%esi) _Event_sets_Clear( pending_events, seized_events ); _ISR_Enable( level ); 10aff6: ff 75 e0 pushl -0x20(%ebp) 10aff9: 9d popf *event_out = seized_events; 10affa: 8b 45 e4 mov -0x1c(%ebp),%eax 10affd: 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 ); } 10afff: 8d 65 f4 lea -0xc(%ebp),%esp 10b002: 5b pop %ebx 10b003: 5e pop %esi 10b004: 5f pop %edi 10b005: c9 leave 10b006: c3 ret 10b007: 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 ); 10b008: 52 push %edx 10b009: 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 ); } 10b00a: 8d 65 f4 lea -0xc(%ebp),%esp 10b00d: 5b pop %ebx 10b00e: 5e pop %esi 10b00f: 5f pop %edi 10b010: c9 leave 10b011: c3 ret 10b012: 66 90 xchg %ax,%ax <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; _ISR_Enable( level ); if ( ticks ) { _Watchdog_Initialize( 10b014: 8b 43 08 mov 0x8(%ebx),%eax Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 10b017: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx) the_watchdog->routine = routine; 10b01e: c7 43 64 c8 b1 10 00 movl $0x10b1c8,0x64(%ebx) the_watchdog->id = id; 10b025: 89 43 68 mov %eax,0x68(%ebx) the_watchdog->user_data = user_data; 10b028: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 10b02f: 8b 45 dc mov -0x24(%ebp),%eax 10b032: 89 43 54 mov %eax,0x54(%ebx) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 10b035: 83 ec 08 sub $0x8,%esp 10b038: 8d 43 48 lea 0x48(%ebx),%eax 10b03b: 50 push %eax 10b03c: 68 18 54 12 00 push $0x125418 10b041: e8 4a 32 00 00 call 10e290 <_Watchdog_Insert> 10b046: 83 c4 10 add $0x10,%esp 10b049: e9 46 ff ff ff jmp 10af94 <_Event_Seize+0x70> <== ALWAYS TAKEN 0010b0a4 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { 10b0a4: 55 push %ebp 10b0a5: 89 e5 mov %esp,%ebp 10b0a7: 57 push %edi 10b0a8: 56 push %esi 10b0a9: 53 push %ebx 10b0aa: 83 ec 1c sub $0x1c,%esp 10b0ad: 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 ]; 10b0b0: 8b 8b f0 00 00 00 mov 0xf0(%ebx),%ecx option_set = (rtems_option) the_thread->Wait.option; 10b0b6: 8b 73 30 mov 0x30(%ebx),%esi _ISR_Disable( level ); 10b0b9: 9c pushf 10b0ba: fa cli 10b0bb: 8f 45 e4 popl -0x1c(%ebp) pending_events = api->pending_events; 10b0be: 8b 11 mov (%ecx),%edx event_condition = (rtems_event_set) the_thread->Wait.count; 10b0c0: 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 ) ) { 10b0c3: 89 c7 mov %eax,%edi 10b0c5: 21 d7 and %edx,%edi 10b0c7: 89 7d e0 mov %edi,-0x20(%ebp) 10b0ca: 74 74 je 10b140 <_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() && 10b0cc: 8b 3d d4 53 12 00 mov 0x1253d4,%edi 10b0d2: 85 ff test %edi,%edi 10b0d4: 74 0c je 10b0e2 <_Event_Surrender+0x3e> 10b0d6: 3b 1d f8 53 12 00 cmp 0x1253f8,%ebx 10b0dc: 0f 84 96 00 00 00 je 10b178 <_Event_Surrender+0xd4> } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 10b0e2: f6 43 11 01 testb $0x1,0x11(%ebx) 10b0e6: 74 4c je 10b134 <_Event_Surrender+0x90> <== ALWAYS TAKEN if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 10b0e8: 3b 45 e0 cmp -0x20(%ebp),%eax 10b0eb: 74 05 je 10b0f2 <_Event_Surrender+0x4e> 10b0ed: 83 e6 02 and $0x2,%esi 10b0f0: 74 42 je 10b134 <_Event_Surrender+0x90> <== ALWAYS TAKEN api->pending_events = _Event_sets_Clear( pending_events, seized_events ); 10b0f2: 8b 45 e0 mov -0x20(%ebp),%eax 10b0f5: f7 d0 not %eax 10b0f7: 21 d0 and %edx,%eax 10b0f9: 89 01 mov %eax,(%ecx) the_thread->Wait.count = 0; 10b0fb: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 10b102: 8b 43 28 mov 0x28(%ebx),%eax 10b105: 8b 7d e0 mov -0x20(%ebp),%edi 10b108: 89 38 mov %edi,(%eax) _ISR_Flash( level ); 10b10a: ff 75 e4 pushl -0x1c(%ebp) 10b10d: 9d popf 10b10e: fa cli if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 10b10f: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 10b113: 74 37 je 10b14c <_Event_Surrender+0xa8> _ISR_Enable( level ); 10b115: ff 75 e4 pushl -0x1c(%ebp) 10b118: 9d popf RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 10b119: 83 ec 08 sub $0x8,%esp 10b11c: 68 f8 ff 03 10 push $0x1003fff8 10b121: 53 push %ebx 10b122: e8 e9 1e 00 00 call 10d010 <_Thread_Clear_state> 10b127: 83 c4 10 add $0x10,%esp } return; } } _ISR_Enable( level ); } 10b12a: 8d 65 f4 lea -0xc(%ebp),%esp 10b12d: 5b pop %ebx 10b12e: 5e pop %esi 10b12f: 5f pop %edi 10b130: c9 leave 10b131: c3 ret 10b132: 66 90 xchg %ax,%ax <== NOT EXECUTED _Thread_Unblock( the_thread ); } return; } } _ISR_Enable( level ); 10b134: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 10b137: 9d popf <== NOT EXECUTED } 10b138: 8d 65 f4 lea -0xc(%ebp),%esp 10b13b: 5b pop %ebx 10b13c: 5e pop %esi 10b13d: 5f pop %edi 10b13e: c9 leave 10b13f: c3 ret /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { _ISR_Enable( level ); 10b140: ff 75 e4 pushl -0x1c(%ebp) 10b143: 9d popf } return; } } _ISR_Enable( level ); } 10b144: 8d 65 f4 lea -0xc(%ebp),%esp 10b147: 5b pop %ebx 10b148: 5e pop %esi 10b149: 5f pop %edi 10b14a: c9 leave 10b14b: c3 ret RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 10b14c: 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 ); 10b153: ff 75 e4 pushl -0x1c(%ebp) 10b156: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 10b157: 83 ec 0c sub $0xc,%esp 10b15a: 8d 43 48 lea 0x48(%ebx),%eax 10b15d: 50 push %eax 10b15e: e8 65 32 00 00 call 10e3c8 <_Watchdog_Remove> 10b163: 58 pop %eax 10b164: 5a pop %edx 10b165: 68 f8 ff 03 10 push $0x1003fff8 10b16a: 53 push %ebx 10b16b: e8 a0 1e 00 00 call 10d010 <_Thread_Clear_state> 10b170: 83 c4 10 add $0x10,%esp 10b173: eb c3 jmp 10b138 <_Event_Surrender+0x94> <== ALWAYS TAKEN 10b175: 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) || 10b178: 8b 3d ec 55 12 00 mov 0x1255ec,%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() && 10b17e: 83 ff 02 cmp $0x2,%edi 10b181: 74 0d je 10b190 <_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)) ) { 10b183: 8b 3d ec 55 12 00 mov 0x1255ec,%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() && 10b189: 4f dec %edi 10b18a: 0f 85 52 ff ff ff jne 10b0e2 <_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) ) { 10b190: 3b 45 e0 cmp -0x20(%ebp),%eax 10b193: 74 05 je 10b19a <_Event_Surrender+0xf6> 10b195: 83 e6 02 and $0x2,%esi 10b198: 74 22 je 10b1bc <_Event_Surrender+0x118> <== ALWAYS TAKEN api->pending_events = _Event_sets_Clear( pending_events,seized_events ); 10b19a: 8b 45 e0 mov -0x20(%ebp),%eax 10b19d: f7 d0 not %eax 10b19f: 21 d0 and %edx,%eax 10b1a1: 89 01 mov %eax,(%ecx) the_thread->Wait.count = 0; 10b1a3: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 10b1aa: 8b 43 28 mov 0x28(%ebx),%eax 10b1ad: 8b 55 e0 mov -0x20(%ebp),%edx 10b1b0: 89 10 mov %edx,(%eax) _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 10b1b2: c7 05 ec 55 12 00 03 movl $0x3,0x1255ec 10b1b9: 00 00 00 } _ISR_Enable( level ); 10b1bc: ff 75 e4 pushl -0x1c(%ebp) 10b1bf: 9d popf return; 10b1c0: e9 73 ff ff ff jmp 10b138 <_Event_Surrender+0x94> <== ALWAYS TAKEN 0010b1c8 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { 10b1c8: 55 push %ebp 10b1c9: 89 e5 mov %esp,%ebp 10b1cb: 83 ec 20 sub $0x20,%esp Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); 10b1ce: 8d 45 f4 lea -0xc(%ebp),%eax 10b1d1: 50 push %eax 10b1d2: ff 75 08 pushl 0x8(%ebp) 10b1d5: e8 02 22 00 00 call 10d3dc <_Thread_Get> switch ( location ) { 10b1da: 83 c4 10 add $0x10,%esp 10b1dd: 8b 55 f4 mov -0xc(%ebp),%edx 10b1e0: 85 d2 test %edx,%edx 10b1e2: 75 37 jne 10b21b <_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 ); 10b1e4: 9c pushf 10b1e5: fa cli 10b1e6: 5a pop %edx _ISR_Enable( level ); return; } #endif the_thread->Wait.count = 0; 10b1e7: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax) if ( _Thread_Is_executing( the_thread ) ) { 10b1ee: 3b 05 f8 53 12 00 cmp 0x1253f8,%eax 10b1f4: 74 2a je 10b220 <_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; 10b1f6: c7 40 34 06 00 00 00 movl $0x6,0x34(%eax) _ISR_Enable( level ); 10b1fd: 52 push %edx 10b1fe: 9d popf 10b1ff: 83 ec 08 sub $0x8,%esp 10b202: 68 f8 ff 03 10 push $0x1003fff8 10b207: 50 push %eax 10b208: e8 03 1e 00 00 call 10d010 <_Thread_Clear_state> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 10b20d: a1 38 53 12 00 mov 0x125338,%eax 10b212: 48 dec %eax 10b213: a3 38 53 12 00 mov %eax,0x125338 10b218: 83 c4 10 add $0x10,%esp case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 10b21b: c9 leave 10b21c: c3 ret 10b21d: 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 ) 10b220: 8b 0d ec 55 12 00 mov 0x1255ec,%ecx 10b226: 49 dec %ecx 10b227: 75 cd jne 10b1f6 <_Event_Timeout+0x2e> _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 10b229: c7 05 ec 55 12 00 02 movl $0x2,0x1255ec 10b230: 00 00 00 10b233: eb c1 jmp 10b1f6 <_Event_Timeout+0x2e> <== ALWAYS TAKEN 0011021c <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 11021c: 55 push %ebp 11021d: 89 e5 mov %esp,%ebp 11021f: 57 push %edi 110220: 56 push %esi 110221: 53 push %ebx 110222: 83 ec 2c sub $0x2c,%esp 110225: 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; 110228: 8b 45 08 mov 0x8(%ebp),%eax 11022b: 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; 11022e: 8b 50 10 mov 0x10(%eax),%edx 110231: 89 55 d4 mov %edx,-0x2c(%ebp) uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { 110234: 89 f8 mov %edi,%eax 110236: 83 c0 04 add $0x4,%eax 110239: 89 45 e0 mov %eax,-0x20(%ebp) 11023c: 0f 82 5a 01 00 00 jb 11039c <_Heap_Allocate_aligned_with_boundary+0x180> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { 110242: 8b 75 14 mov 0x14(%ebp),%esi 110245: 85 f6 test %esi,%esi 110247: 0f 85 48 01 00 00 jne 110395 <_Heap_Allocate_aligned_with_boundary+0x179> if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 11024d: 39 4d 08 cmp %ecx,0x8(%ebp) 110250: 0f 84 50 01 00 00 je 1103a6 <_Heap_Allocate_aligned_with_boundary+0x18a> 110256: 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; 11025d: 8b 55 d4 mov -0x2c(%ebp),%edx 110260: 83 c2 07 add $0x7,%edx 110263: 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; 110266: c7 45 d8 04 00 00 00 movl $0x4,-0x28(%ebp) 11026d: 29 7d d8 sub %edi,-0x28(%ebp) 110270: eb 19 jmp 11028b <_Heap_Allocate_aligned_with_boundary+0x6f> <== ALWAYS TAKEN 110272: 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; 110274: 8d 59 08 lea 0x8(%ecx),%ebx boundary ); } } if ( alloc_begin != 0 ) { 110277: 85 db test %ebx,%ebx 110279: 0f 85 e9 00 00 00 jne 110368 <_Heap_Allocate_aligned_with_boundary+0x14c> <== NEVER TAKEN break; } block = block->next; 11027f: 8b 49 08 mov 0x8(%ecx),%ecx if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 110282: 39 4d 08 cmp %ecx,0x8(%ebp) 110285: 0f 84 25 01 00 00 je 1103b0 <_Heap_Allocate_aligned_with_boundary+0x194> _HAssert( _Heap_Is_prev_used( block ) ); /* Statistics */ ++search_count; 11028b: 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 ) { 11028e: 8b 59 04 mov 0x4(%ecx),%ebx 110291: 39 5d e0 cmp %ebx,-0x20(%ebp) 110294: 73 e9 jae 11027f <_Heap_Allocate_aligned_with_boundary+0x63> if ( alignment == 0 ) { 110296: 8b 55 10 mov 0x10(%ebp),%edx 110299: 85 d2 test %edx,%edx 11029b: 74 d7 je 110274 <_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; 11029d: 8b 45 08 mov 0x8(%ebp),%eax 1102a0: 8b 40 14 mov 0x14(%eax),%eax 1102a3: 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; 1102a6: 83 e3 fe and $0xfffffffe,%ebx 1102a9: 8d 1c 19 lea (%ecx,%ebx,1),%ebx 1102ac: 8d 51 08 lea 0x8(%ecx),%edx 1102af: 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; 1102b2: 8b 75 c8 mov -0x38(%ebp),%esi 1102b5: 29 c6 sub %eax,%esi 1102b7: 01 de add %ebx,%esi uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 1102b9: 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); 1102bc: 89 d8 mov %ebx,%eax 1102be: 31 d2 xor %edx,%edx 1102c0: f7 75 10 divl 0x10(%ebp) 1102c3: 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 ) { 1102c5: 39 de cmp %ebx,%esi 1102c7: 73 0b jae 1102d4 <_Heap_Allocate_aligned_with_boundary+0xb8> 1102c9: 89 f0 mov %esi,%eax 1102cb: 31 d2 xor %edx,%edx 1102cd: f7 75 10 divl 0x10(%ebp) 1102d0: 89 f3 mov %esi,%ebx 1102d2: 29 d3 sub %edx,%ebx } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { 1102d4: 8b 45 14 mov 0x14(%ebp),%eax 1102d7: 85 c0 test %eax,%eax 1102d9: 74 59 je 110334 <_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; 1102db: 8d 34 3b lea (%ebx,%edi,1),%esi 1102de: 89 f0 mov %esi,%eax 1102e0: 31 d2 xor %edx,%edx 1102e2: f7 75 14 divl 0x14(%ebp) 1102e5: 89 f0 mov %esi,%eax 1102e7: 29 d0 sub %edx,%eax 1102e9: 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 ) { 1102eb: 39 c3 cmp %eax,%ebx 1102ed: 73 45 jae 110334 <_Heap_Allocate_aligned_with_boundary+0x118> 1102ef: 39 c6 cmp %eax,%esi 1102f1: 76 41 jbe 110334 <_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; 1102f3: 8b 45 cc mov -0x34(%ebp),%eax 1102f6: 01 f8 add %edi,%eax 1102f8: 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 ) { 1102fb: 39 d0 cmp %edx,%eax 1102fd: 77 80 ja 11027f <_Heap_Allocate_aligned_with_boundary+0x63> 1102ff: 89 ce mov %ecx,%esi 110301: eb 0e jmp 110311 <_Heap_Allocate_aligned_with_boundary+0xf5> <== ALWAYS TAKEN 110303: 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 ) { 110304: 39 c1 cmp %eax,%ecx 110306: 76 2a jbe 110332 <_Heap_Allocate_aligned_with_boundary+0x116> if ( boundary_line < boundary_floor ) { 110308: 39 55 dc cmp %edx,-0x24(%ebp) 11030b: 0f 87 a3 00 00 00 ja 1103b4 <_Heap_Allocate_aligned_with_boundary+0x198> <== ALWAYS TAKEN return 0; } alloc_begin = boundary_line - alloc_size; 110311: 89 d3 mov %edx,%ebx 110313: 29 fb sub %edi,%ebx 110315: 89 d8 mov %ebx,%eax 110317: 31 d2 xor %edx,%edx 110319: f7 75 10 divl 0x10(%ebp) 11031c: 29 d3 sub %edx,%ebx alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; 11031e: 8d 0c 3b lea (%ebx,%edi,1),%ecx 110321: 89 c8 mov %ecx,%eax 110323: 31 d2 xor %edx,%edx 110325: f7 75 14 divl 0x14(%ebp) 110328: 89 c8 mov %ecx,%eax 11032a: 29 d0 sub %edx,%eax 11032c: 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 ) { 11032e: 39 c3 cmp %eax,%ebx 110330: 72 d2 jb 110304 <_Heap_Allocate_aligned_with_boundary+0xe8> 110332: 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 ) { 110334: 39 5d cc cmp %ebx,-0x34(%ebp) 110337: 0f 87 42 ff ff ff ja 11027f <_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; 11033d: be f8 ff ff ff mov $0xfffffff8,%esi 110342: 29 ce sub %ecx,%esi 110344: 01 de add %ebx,%esi 110346: 89 d8 mov %ebx,%eax 110348: 31 d2 xor %edx,%edx 11034a: f7 75 d4 divl -0x2c(%ebp) 11034d: 29 d6 sub %edx,%esi if ( free_size >= min_block_size || free_size == 0 ) { 11034f: 39 75 d0 cmp %esi,-0x30(%ebp) 110352: 0f 86 1f ff ff ff jbe 110277 <_Heap_Allocate_aligned_with_boundary+0x5b> 110358: 85 f6 test %esi,%esi 11035a: 0f 85 1f ff ff ff jne 11027f <_Heap_Allocate_aligned_with_boundary+0x63> boundary ); } } if ( alloc_begin != 0 ) { 110360: 85 db test %ebx,%ebx 110362: 0f 84 17 ff ff ff je 11027f <_Heap_Allocate_aligned_with_boundary+0x63> <== ALWAYS TAKEN block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 110368: 8b 55 e4 mov -0x1c(%ebp),%edx 11036b: 8b 45 08 mov 0x8(%ebp),%eax 11036e: 01 50 4c add %edx,0x4c(%eax) block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 110371: 57 push %edi 110372: 53 push %ebx 110373: 51 push %ecx 110374: 50 push %eax 110375: e8 be c1 ff ff call 10c538 <_Heap_Block_allocate> <== ALWAYS TAKEN 11037a: 89 d8 mov %ebx,%eax 11037c: 83 c4 10 add $0x10,%esp uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats; 11037f: 8b 4d e4 mov -0x1c(%ebp),%ecx 110382: 8b 55 08 mov 0x8(%ebp),%edx 110385: 39 4a 44 cmp %ecx,0x44(%edx) 110388: 73 14 jae 11039e <_Heap_Allocate_aligned_with_boundary+0x182> ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; 11038a: 89 4a 44 mov %ecx,0x44(%edx) } return (void *) alloc_begin; } 11038d: 8d 65 f4 lea -0xc(%ebp),%esp 110390: 5b pop %ebx 110391: 5e pop %esi 110392: 5f pop %edi 110393: c9 leave 110394: c3 ret /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { 110395: 3b 7d 14 cmp 0x14(%ebp),%edi 110398: 76 21 jbe 1103bb <_Heap_Allocate_aligned_with_boundary+0x19f> 11039a: 66 90 xchg %ax,%ax ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; 11039c: 31 c0 xor %eax,%eax } return (void *) alloc_begin; } 11039e: 8d 65 f4 lea -0xc(%ebp),%esp 1103a1: 5b pop %ebx 1103a2: 5e pop %esi 1103a3: 5f pop %edi 1103a4: c9 leave 1103a5: c3 ret if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 1103a6: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 1103ad: 8d 76 00 lea 0x0(%esi),%esi 1103b0: 31 c0 xor %eax,%eax 1103b2: eb cb jmp 11037f <_Heap_Allocate_aligned_with_boundary+0x163> <== ALWAYS TAKEN 1103b4: 89 f1 mov %esi,%ecx <== NOT EXECUTED 1103b6: e9 c4 fe ff ff jmp 11027f <_Heap_Allocate_aligned_with_boundary+0x63> <== NOT EXECUTED if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { 1103bb: 8b 5d 10 mov 0x10(%ebp),%ebx 1103be: 85 db test %ebx,%ebx 1103c0: 0f 85 87 fe ff ff jne 11024d <_Heap_Allocate_aligned_with_boundary+0x31> 1103c6: 89 55 10 mov %edx,0x10(%ebp) 1103c9: e9 7f fe ff ff jmp 11024d <_Heap_Allocate_aligned_with_boundary+0x31> <== ALWAYS TAKEN 0010c538 <_Heap_Block_allocate>: Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { 10c538: 55 push %ebp 10c539: 89 e5 mov %esp,%ebp 10c53b: 57 push %edi 10c53c: 56 push %esi 10c53d: 53 push %ebx 10c53e: 83 ec 10 sub $0x10,%esp 10c541: 8b 75 08 mov 0x8(%ebp),%esi 10c544: 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; 10c547: 89 5d ec mov %ebx,-0x14(%ebp) 10c54a: 8b 7d 10 mov 0x10(%ebp),%edi 10c54d: 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; 10c550: 89 f8 mov %edi,%eax 10c552: 29 d8 sub %ebx,%eax Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { 10c554: 8b 53 04 mov 0x4(%ebx),%edx 10c557: 83 e2 fe and $0xfffffffe,%edx 10c55a: f6 44 13 04 01 testb $0x1,0x4(%ebx,%edx,1) 10c55f: 0f 85 8b 00 00 00 jne 10c5f0 <_Heap_Block_allocate+0xb8> free_list_anchor = block->prev; 10c565: 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; 10c568: 8b 53 08 mov 0x8(%ebx),%edx Heap_Block *prev = block->prev; prev->next = next; 10c56b: 89 51 08 mov %edx,0x8(%ecx) next->prev = prev; 10c56e: 89 4a 0c mov %ecx,0xc(%edx) _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; 10c571: ff 4e 38 decl 0x38(%esi) ++stats->used_blocks; 10c574: ff 46 40 incl 0x40(%esi) stats->free_size -= _Heap_Block_size( block ); 10c577: 8b 53 04 mov 0x4(%ebx),%edx 10c57a: 83 e2 fe and $0xfffffffe,%edx 10c57d: 29 56 30 sub %edx,0x30(%esi) } else { free_list_anchor = _Heap_Free_list_head( heap ); } if ( alloc_area_offset < heap->page_size ) { 10c580: 8b 56 10 mov 0x10(%esi),%edx 10c583: 89 55 e4 mov %edx,-0x1c(%ebp) 10c586: 39 d0 cmp %edx,%eax 10c588: 72 72 jb 10c5fc <_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; 10c58a: 8b 43 04 mov 0x4(%ebx),%eax 10c58d: 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 ) 10c590: 8b 45 10 mov 0x10(%ebp),%eax 10c593: 31 d2 xor %edx,%edx 10c595: f7 75 e4 divl -0x1c(%ebp) 10c598: 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; 10c59a: 89 f8 mov %edi,%eax 10c59c: 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; 10c59e: 01 46 30 add %eax,0x30(%esi) if ( _Heap_Is_prev_used( block ) ) { 10c5a1: f6 43 04 01 testb $0x1,0x4(%ebx) 10c5a5: 75 69 jne 10c610 <_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); 10c5a7: 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; 10c5a9: 8b 53 04 mov 0x4(%ebx),%edx 10c5ac: 83 e2 fe and $0xfffffffe,%edx 10c5af: 01 d0 add %edx,%eax } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 10c5b1: 89 c2 mov %eax,%edx 10c5b3: 83 ca 01 or $0x1,%edx 10c5b6: 89 53 04 mov %edx,0x4(%ebx) new_block->prev_size = block_size; 10c5b9: 89 07 mov %eax,(%edi) new_block->size_and_flag = new_block_size; 10c5bb: 8b 45 f0 mov -0x10(%ebp),%eax 10c5be: 83 e0 fe and $0xfffffffe,%eax 10c5c1: 03 45 ec add -0x14(%ebp),%eax 10c5c4: 29 f8 sub %edi,%eax 10c5c6: 89 47 04 mov %eax,0x4(%edi) _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); 10c5c9: ff 75 14 pushl 0x14(%ebp) 10c5cc: 51 push %ecx 10c5cd: 57 push %edi 10c5ce: 56 push %esi 10c5cf: e8 80 fe ff ff call 10c454 <_Heap_Block_split> <== ALWAYS TAKEN 10c5d4: 89 fb mov %edi,%ebx 10c5d6: 83 c4 10 add $0x10,%esp alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { 10c5d9: 8b 46 30 mov 0x30(%esi),%eax Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { Heap_Statistics *const stats = &heap->stats; 10c5dc: 39 46 34 cmp %eax,0x34(%esi) 10c5df: 76 03 jbe 10c5e4 <_Heap_Block_allocate+0xac> ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { stats->min_free_size = stats->free_size; 10c5e1: 89 46 34 mov %eax,0x34(%esi) } return block; } 10c5e4: 89 d8 mov %ebx,%eax 10c5e6: 8d 65 f4 lea -0xc(%ebp),%esp 10c5e9: 5b pop %ebx 10c5ea: 5e pop %esi 10c5eb: 5f pop %edi 10c5ec: c9 leave 10c5ed: c3 ret 10c5ee: 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 ); 10c5f0: 89 f1 mov %esi,%ecx } if ( alloc_area_offset < heap->page_size ) { 10c5f2: 8b 56 10 mov 0x10(%esi),%edx 10c5f5: 89 55 e4 mov %edx,-0x1c(%ebp) 10c5f8: 39 d0 cmp %edx,%eax 10c5fa: 73 8e jae 10c58a <_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 ); 10c5fc: 03 45 14 add 0x14(%ebp),%eax 10c5ff: 50 push %eax 10c600: 51 push %ecx 10c601: 53 push %ebx 10c602: 56 push %esi 10c603: e8 4c fe ff ff call 10c454 <_Heap_Block_split> <== ALWAYS TAKEN 10c608: 83 c4 10 add $0x10,%esp 10c60b: eb cc jmp 10c5d9 <_Heap_Block_allocate+0xa1> <== ALWAYS TAKEN 10c60d: 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; 10c610: 8b 51 08 mov 0x8(%ecx),%edx new_block->next = next; 10c613: 89 53 08 mov %edx,0x8(%ebx) new_block->prev = block_before; 10c616: 89 4b 0c mov %ecx,0xc(%ebx) block_before->next = new_block; 10c619: 89 59 08 mov %ebx,0x8(%ecx) next->prev = new_block; 10c61c: 89 5a 0c mov %ebx,0xc(%edx) _Heap_Free_list_insert_after( free_list_anchor, block ); free_list_anchor = block; /* Statistics */ ++stats->free_blocks; 10c61f: ff 46 38 incl 0x38(%esi) 10c622: 89 d9 mov %ebx,%ecx 10c624: eb 8b jmp 10c5b1 <_Heap_Block_allocate+0x79> <== ALWAYS TAKEN 0010c454 <_Heap_Block_split>: Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { 10c454: 55 push %ebp 10c455: 89 e5 mov %esp,%ebp 10c457: 57 push %edi 10c458: 56 push %esi 10c459: 53 push %ebx 10c45a: 83 ec 14 sub $0x14,%esp 10c45d: 8b 4d 08 mov 0x8(%ebp),%ecx 10c460: 8b 5d 0c mov 0xc(%ebp),%ebx Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size; 10c463: 8b 79 10 mov 0x10(%ecx),%edi uintptr_t const min_block_size = heap->min_block_size; 10c466: 8b 41 14 mov 0x14(%ecx),%eax 10c469: 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; 10c46c: 8b 43 04 mov 0x4(%ebx),%eax 10c46f: 89 45 e4 mov %eax,-0x1c(%ebp) 10c472: 89 c6 mov %eax,%esi 10c474: 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; 10c477: 8b 55 e8 mov -0x18(%ebp),%edx 10c47a: 83 ea 08 sub $0x8,%edx 10c47d: 8b 45 14 mov 0x14(%ebp),%eax 10c480: 39 d0 cmp %edx,%eax 10c482: 73 02 jae 10c486 <_Heap_Block_split+0x32> 10c484: 89 d0 mov %edx,%eax 10c486: 83 c0 08 add $0x8,%eax 10c489: 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; 10c48c: 31 d2 xor %edx,%edx 10c48e: f7 f7 div %edi if ( remainder != 0 ) { 10c490: 85 d2 test %edx,%edx 10c492: 75 70 jne 10c504 <_Heap_Block_split+0xb0> 10c494: 8b 7d f0 mov -0x10(%ebp),%edi 10c497: 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); 10c49a: 8d 04 33 lea (%ebx,%esi,1),%eax 10c49d: 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 ) { 10c4a0: 8d 56 04 lea 0x4(%esi),%edx 10c4a3: 2b 55 f0 sub -0x10(%ebp),%edx 10c4a6: 8b 7d e8 mov -0x18(%ebp),%edi 10c4a9: 83 c7 04 add $0x4,%edi 10c4ac: 39 fa cmp %edi,%edx 10c4ae: 72 60 jb 10c510 <_Heap_Block_split+0xbc> 10c4b0: 8b 55 ec mov -0x14(%ebp),%edx 10c4b3: 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; 10c4b5: 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; 10c4b8: 8b 7d e4 mov -0x1c(%ebp),%edi 10c4bb: 83 e7 01 and $0x1,%edi 10c4be: 0b 7d ec or -0x14(%ebp),%edi 10c4c1: 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; 10c4c4: 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; 10c4c7: 8b 58 04 mov 0x4(%eax),%ebx 10c4ca: 83 e3 fe and $0xfffffffe,%ebx if ( _Heap_Is_used( next_block ) ) { 10c4cd: f6 44 18 04 01 testb $0x1,0x4(%eax,%ebx,1) 10c4d2: 75 4c jne 10c520 <_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; 10c4d4: 8b 48 08 mov 0x8(%eax),%ecx Heap_Block *prev = old_block->prev; 10c4d7: 8b 40 0c mov 0xc(%eax),%eax new_block->next = next; 10c4da: 89 4a 08 mov %ecx,0x8(%edx) new_block->prev = prev; 10c4dd: 89 42 0c mov %eax,0xc(%edx) next->prev = new_block; 10c4e0: 89 51 0c mov %edx,0xc(%ecx) prev->next = new_block; 10c4e3: 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; 10c4e6: 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); 10c4e8: 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; 10c4eb: 89 f1 mov %esi,%ecx 10c4ed: 83 c9 01 or $0x1,%ecx 10c4f0: 89 4a 04 mov %ecx,0x4(%edx) next_block->prev_size = free_block_size; 10c4f3: 89 30 mov %esi,(%eax) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 10c4f5: 83 60 04 fe andl $0xfffffffe,0x4(%eax) } else { next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; } } 10c4f9: 83 c4 14 add $0x14,%esp 10c4fc: 5b pop %ebx 10c4fd: 5e pop %esi 10c4fe: 5f pop %edi 10c4ff: c9 leave 10c500: c3 ret 10c501: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { return value - remainder + alignment; 10c504: 03 7d f0 add -0x10(%ebp),%edi 10c507: 29 d7 sub %edx,%edi 10c509: 89 7d ec mov %edi,-0x14(%ebp) 10c50c: eb 8c jmp 10c49a <_Heap_Block_split+0x46> <== ALWAYS TAKEN 10c50e: 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; 10c510: 8b 45 e0 mov -0x20(%ebp),%eax 10c513: 83 48 04 01 orl $0x1,0x4(%eax) } } 10c517: 83 c4 14 add $0x14,%esp 10c51a: 5b pop %ebx 10c51b: 5e pop %esi 10c51c: 5f pop %edi 10c51d: c9 leave 10c51e: c3 ret 10c51f: 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; 10c520: 8b 7d 10 mov 0x10(%ebp),%edi 10c523: 8b 5f 08 mov 0x8(%edi),%ebx new_block->next = next; 10c526: 89 5a 08 mov %ebx,0x8(%edx) new_block->prev = block_before; 10c529: 89 7a 0c mov %edi,0xc(%edx) block_before->next = new_block; 10c52c: 89 57 08 mov %edx,0x8(%edi) next->prev = new_block; 10c52f: 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; 10c532: ff 41 38 incl 0x38(%ecx) 10c535: eb b4 jmp 10c4eb <_Heap_Block_split+0x97> <== ALWAYS TAKEN 00113b1c <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { 113b1c: 55 push %ebp 113b1d: 89 e5 mov %esp,%ebp 113b1f: 56 push %esi 113b20: 53 push %ebx 113b21: 8b 4d 08 mov 0x8(%ebp),%ecx 113b24: 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; 113b27: 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; 113b2a: 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; 113b2d: 3b 41 18 cmp 0x18(%ecx),%eax 113b30: 73 3a jae 113b6c <_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 ) { 113b32: 39 d0 cmp %edx,%eax 113b34: 74 0e je 113b44 <_Heap_Extend+0x28> 113b36: b8 02 00 00 00 mov $0x2,%eax _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; } 113b3b: 8d 65 f8 lea -0x8(%ebp),%esp 113b3e: 5b pop %ebx 113b3f: 5e pop %esi 113b40: c9 leave 113b41: c3 ret 113b42: 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; 113b44: 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; 113b47: 89 41 1c mov %eax,0x1c(%ecx) extend_size = new_heap_area_end 113b4a: 29 d8 sub %ebx,%eax 113b4c: 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); 113b4f: 89 f0 mov %esi,%eax 113b51: 31 d2 xor %edx,%edx 113b53: f7 71 10 divl 0x10(%ecx) 113b56: 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; 113b58: 8b 45 14 mov 0x14(%ebp),%eax 113b5b: 89 30 mov %esi,(%eax) if( extend_size >= heap->min_block_size ) { 113b5d: 39 71 14 cmp %esi,0x14(%ecx) 113b60: 76 1a jbe 113b7c <_Heap_Extend+0x60> <== NEVER TAKEN 113b62: 31 c0 xor %eax,%eax <== NOT EXECUTED _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; } 113b64: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 113b67: 5b pop %ebx <== NOT EXECUTED 113b68: 5e pop %esi <== NOT EXECUTED 113b69: c9 leave <== NOT EXECUTED 113b6a: c3 ret <== NOT EXECUTED 113b6b: 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 ) { 113b6c: 39 d0 cmp %edx,%eax 113b6e: 73 c2 jae 113b32 <_Heap_Extend+0x16> 113b70: b8 01 00 00 00 mov $0x1,%eax _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; } 113b75: 8d 65 f8 lea -0x8(%ebp),%esp 113b78: 5b pop %ebx 113b79: 5e pop %esi 113b7a: c9 leave 113b7b: c3 ret RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 113b7c: 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; 113b7f: 8b 43 04 mov 0x4(%ebx),%eax 113b82: 83 e0 01 and $0x1,%eax 113b85: 09 f0 or %esi,%eax 113b87: 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 = 113b8a: 8b 41 20 mov 0x20(%ecx),%eax 113b8d: 29 d0 sub %edx,%eax 113b8f: 83 c8 01 or $0x1,%eax 113b92: 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; 113b95: 89 51 24 mov %edx,0x24(%ecx) /* Statistics */ stats->size += extend_size; 113b98: 01 71 2c add %esi,0x2c(%ecx) ++stats->used_blocks; 113b9b: ff 41 40 incl 0x40(%ecx) --stats->frees; /* Do not count subsequent call as actual free() */ 113b9e: ff 49 50 decl 0x50(%ecx) _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); 113ba1: 83 ec 08 sub $0x8,%esp 113ba4: 83 c3 08 add $0x8,%ebx 113ba7: 53 push %ebx 113ba8: 51 push %ecx 113ba9: e8 56 b7 ff ff call 10f304 <_Heap_Free> <== ALWAYS TAKEN 113bae: 31 c0 xor %eax,%eax 113bb0: 83 c4 10 add $0x10,%esp } return HEAP_EXTEND_SUCCESSFUL; } 113bb3: 8d 65 f8 lea -0x8(%ebp),%esp 113bb6: 5b pop %ebx 113bb7: 5e pop %esi 113bb8: c9 leave 113bb9: c3 ret 001103d0 <_Heap_Free>: #include #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { 1103d0: 55 push %ebp 1103d1: 89 e5 mov %esp,%ebp 1103d3: 57 push %edi 1103d4: 56 push %esi 1103d5: 53 push %ebx 1103d6: 83 ec 18 sub $0x18,%esp 1103d9: 8b 5d 08 mov 0x8(%ebp),%ebx 1103dc: 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 ) 1103df: 8d 48 f8 lea -0x8(%eax),%ecx 1103e2: 31 d2 xor %edx,%edx 1103e4: f7 73 10 divl 0x10(%ebx) 1103e7: 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; 1103e9: 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 1103ec: 39 c1 cmp %eax,%ecx 1103ee: 72 07 jb 1103f7 <_Heap_Free+0x27> && (uintptr_t) block <= (uintptr_t) heap->last_block; 1103f0: 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 1103f3: 39 f1 cmp %esi,%ecx 1103f5: 76 0d jbe 110404 <_Heap_Free+0x34> /* Statistics */ --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); 1103f7: 31 c0 xor %eax,%eax } 1103f9: 83 c4 18 add $0x18,%esp 1103fc: 5b pop %ebx 1103fd: 5e pop %esi 1103fe: 5f pop %edi 1103ff: c9 leave 110400: c3 ret 110401: 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; 110404: 8b 51 04 mov 0x4(%ecx),%edx 110407: 89 55 f0 mov %edx,-0x10(%ebp) 11040a: 83 e2 fe and $0xfffffffe,%edx 11040d: 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); 110410: 01 ca add %ecx,%edx 110412: 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 110415: 39 d0 cmp %edx,%eax 110417: 77 de ja 1103f7 <_Heap_Free+0x27> <== ALWAYS TAKEN 110419: 39 d6 cmp %edx,%esi 11041b: 72 da jb 1103f7 <_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; 11041d: 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 ) ) { 110420: f7 c7 01 00 00 00 test $0x1,%edi 110426: 74 cf je 1103f7 <_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; 110428: 83 e7 fe and $0xfffffffe,%edi 11042b: 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 11042e: 39 d6 cmp %edx,%esi 110430: 0f 84 e2 00 00 00 je 110518 <_Heap_Free+0x148> #include #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) 110436: 8b 55 dc mov -0x24(%ebp),%edx 110439: 8b 7d e8 mov -0x18(%ebp),%edi 11043c: 8b 7c 3a 04 mov 0x4(%edx,%edi,1),%edi 110440: 89 7d e0 mov %edi,-0x20(%ebp) 110443: 8a 55 e0 mov -0x20(%ebp),%dl 110446: 83 e2 01 and $0x1,%edx 110449: 88 55 e7 mov %dl,-0x19(%ebp) 11044c: 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 ) ) { 110450: f6 45 f0 01 testb $0x1,-0x10(%ebp) 110454: 75 46 jne 11049c <_Heap_Free+0xcc> uintptr_t const prev_size = block->prev_size; 110456: 8b 39 mov (%ecx),%edi 110458: 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); 11045b: 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 11045d: 39 c8 cmp %ecx,%eax 11045f: 77 96 ja 1103f7 <_Heap_Free+0x27> <== ALWAYS TAKEN 110461: 39 ce cmp %ecx,%esi 110463: 72 92 jb 1103f7 <_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) ) { 110465: f6 41 04 01 testb $0x1,0x4(%ecx) 110469: 74 8c je 1103f7 <_Heap_Free+0x27> <== ALWAYS TAKEN _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ 11046b: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) 11046f: 0f 84 af 00 00 00 je 110524 <_Heap_Free+0x154> uintptr_t const size = block_size + prev_size + next_block_size; 110475: 8b 45 ec mov -0x14(%ebp),%eax 110478: 03 45 e8 add -0x18(%ebp),%eax 11047b: 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; 11047d: 8b 55 dc mov -0x24(%ebp),%edx 110480: 8b 72 08 mov 0x8(%edx),%esi Heap_Block *prev = block->prev; 110483: 8b 52 0c mov 0xc(%edx),%edx prev->next = next; 110486: 89 72 08 mov %esi,0x8(%edx) next->prev = prev; 110489: 89 56 0c mov %edx,0xc(%esi) _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; 11048c: ff 4b 38 decl 0x38(%ebx) prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 11048f: 89 c2 mov %eax,%edx 110491: 83 ca 01 or $0x1,%edx 110494: 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; 110497: 89 04 01 mov %eax,(%ecx,%eax,1) 11049a: eb 2c jmp 1104c8 <_Heap_Free+0xf8> <== ALWAYS TAKEN 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 */ 11049c: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) 1104a0: 74 3e je 1104e0 <_Heap_Free+0x110> uintptr_t const size = block_size + next_block_size; 1104a2: 8b 7d e8 mov -0x18(%ebp),%edi 1104a5: 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; 1104a8: 8b 75 dc mov -0x24(%ebp),%esi 1104ab: 8b 46 08 mov 0x8(%esi),%eax Heap_Block *prev = old_block->prev; 1104ae: 8b 56 0c mov 0xc(%esi),%edx new_block->next = next; 1104b1: 89 41 08 mov %eax,0x8(%ecx) new_block->prev = prev; 1104b4: 89 51 0c mov %edx,0xc(%ecx) next->prev = new_block; 1104b7: 89 48 0c mov %ecx,0xc(%eax) prev->next = new_block; 1104ba: 89 4a 08 mov %ecx,0x8(%edx) _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 1104bd: 89 f8 mov %edi,%eax 1104bf: 83 c8 01 or $0x1,%eax 1104c2: 89 41 04 mov %eax,0x4(%ecx) next_block = _Heap_Block_at( block, size ); next_block->prev_size = size; 1104c5: 89 3c 39 mov %edi,(%ecx,%edi,1) stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 1104c8: ff 4b 40 decl 0x40(%ebx) ++stats->frees; 1104cb: ff 43 50 incl 0x50(%ebx) stats->free_size += block_size; 1104ce: 8b 55 ec mov -0x14(%ebp),%edx 1104d1: 01 53 30 add %edx,0x30(%ebx) 1104d4: b0 01 mov $0x1,%al return( true ); } 1104d6: 83 c4 18 add $0x18,%esp 1104d9: 5b pop %ebx 1104da: 5e pop %esi 1104db: 5f pop %edi 1104dc: c9 leave 1104dd: c3 ret 1104de: 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; 1104e0: 8b 43 08 mov 0x8(%ebx),%eax new_block->next = next; 1104e3: 89 41 08 mov %eax,0x8(%ecx) new_block->prev = block_before; 1104e6: 89 59 0c mov %ebx,0xc(%ecx) block_before->next = new_block; 1104e9: 89 4b 08 mov %ecx,0x8(%ebx) next->prev = new_block; 1104ec: 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; 1104ef: 8b 45 ec mov -0x14(%ebp),%eax 1104f2: 83 c8 01 or $0x1,%eax 1104f5: 89 41 04 mov %eax,0x4(%ecx) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 1104f8: 8b 7d dc mov -0x24(%ebp),%edi 1104fb: 83 67 04 fe andl $0xfffffffe,0x4(%edi) next_block->prev_size = block_size; 1104ff: 8b 45 ec mov -0x14(%ebp),%eax 110502: 89 07 mov %eax,(%edi) /* Statistics */ ++stats->free_blocks; 110504: 8b 43 38 mov 0x38(%ebx),%eax 110507: 40 inc %eax 110508: 89 43 38 mov %eax,0x38(%ebx) #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { Heap_Statistics *const stats = &heap->stats; 11050b: 3b 43 3c cmp 0x3c(%ebx),%eax 11050e: 76 b8 jbe 1104c8 <_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; 110510: 89 43 3c mov %eax,0x3c(%ebx) 110513: eb b3 jmp 1104c8 <_Heap_Free+0xf8> <== ALWAYS TAKEN 110515: 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 110518: c6 45 e7 00 movb $0x0,-0x19(%ebp) 11051c: e9 2f ff ff ff jmp 110450 <_Heap_Free+0x80> <== ALWAYS TAKEN 110521: 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; 110524: 8b 45 ec mov -0x14(%ebp),%eax 110527: 03 45 f0 add -0x10(%ebp),%eax prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 11052a: 89 c6 mov %eax,%esi 11052c: 83 ce 01 or $0x1,%esi 11052f: 89 71 04 mov %esi,0x4(%ecx) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 110532: 8b 55 dc mov -0x24(%ebp),%edx 110535: 83 62 04 fe andl $0xfffffffe,0x4(%edx) next_block->prev_size = size; 110539: 89 02 mov %eax,(%edx) 11053b: eb 8b jmp 1104c8 <_Heap_Free+0xf8> <== ALWAYS TAKEN 0012e1bc <_Heap_Get_free_information>: void _Heap_Get_free_information( Heap_Control *the_heap, Heap_Information *info ) { 12e1bc: 55 push %ebp 12e1bd: 89 e5 mov %esp,%ebp 12e1bf: 57 push %edi 12e1c0: 56 push %esi 12e1c1: 53 push %ebx 12e1c2: 8b 7d 08 mov 0x8(%ebp),%edi Heap_Block *the_block; Heap_Block *const tail = _Heap_Free_list_tail(the_heap); info->number = 0; 12e1c5: 8b 45 0c mov 0xc(%ebp),%eax 12e1c8: c7 00 00 00 00 00 movl $0x0,(%eax) info->largest = 0; 12e1ce: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) info->total = 0; 12e1d5: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 12e1dc: 8b 57 08 mov 0x8(%edi),%edx for(the_block = _Heap_Free_list_first(the_heap); 12e1df: 39 d7 cmp %edx,%edi 12e1e1: 74 2c je 12e20f <_Heap_Get_free_information+0x53> <== ALWAYS TAKEN 12e1e3: 31 f6 xor %esi,%esi 12e1e5: b9 01 00 00 00 mov $0x1,%ecx 12e1ea: 31 db xor %ebx,%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; 12e1ec: 8b 42 04 mov 0x4(%edx),%eax 12e1ef: 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; 12e1f2: 01 c3 add %eax,%ebx 12e1f4: 39 c6 cmp %eax,%esi 12e1f6: 73 02 jae 12e1fa <_Heap_Get_free_information+0x3e> 12e1f8: 89 c6 mov %eax,%esi info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); the_block != tail; the_block = the_block->next) 12e1fa: 8b 52 08 mov 0x8(%edx),%edx 12e1fd: 89 c8 mov %ecx,%eax 12e1ff: 41 inc %ecx info->number = 0; info->largest = 0; info->total = 0; for(the_block = _Heap_Free_list_first(the_heap); 12e200: 39 d7 cmp %edx,%edi 12e202: 75 e8 jne 12e1ec <_Heap_Get_free_information+0x30> 12e204: 8b 55 0c mov 0xc(%ebp),%edx 12e207: 89 02 mov %eax,(%edx) 12e209: 89 5a 08 mov %ebx,0x8(%edx) 12e20c: 89 72 04 mov %esi,0x4(%edx) info->number++; info->total += the_size; if ( info->largest < the_size ) info->largest = the_size; } } 12e20f: 5b pop %ebx 12e210: 5e pop %esi 12e211: 5f pop %edi 12e212: c9 leave 12e213: c3 ret 0013c758 <_Heap_Get_information>: void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 13c758: 55 push %ebp 13c759: 89 e5 mov %esp,%ebp 13c75b: 57 push %edi 13c75c: 56 push %esi 13c75d: 53 push %ebx 13c75e: 83 ec 04 sub $0x4,%esp 13c761: 8b 45 08 mov 0x8(%ebp),%eax 13c764: 8b 75 0c mov 0xc(%ebp),%esi Heap_Block *the_block = the_heap->first_block; 13c767: 8b 58 20 mov 0x20(%eax),%ebx Heap_Block *const end = the_heap->last_block; 13c76a: 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; 13c76d: c7 06 00 00 00 00 movl $0x0,(%esi) the_info->Free.total = 0; 13c773: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi) the_info->Free.largest = 0; 13c77a: c7 46 04 00 00 00 00 movl $0x0,0x4(%esi) the_info->Used.number = 0; 13c781: c7 46 0c 00 00 00 00 movl $0x0,0xc(%esi) the_info->Used.total = 0; 13c788: c7 46 14 00 00 00 00 movl $0x0,0x14(%esi) the_info->Used.largest = 0; 13c78f: c7 46 10 00 00 00 00 movl $0x0,0x10(%esi) while ( the_block != end ) { 13c796: 39 fb cmp %edi,%ebx 13c798: 74 45 je 13c7df <_Heap_Get_information+0x87> <== ALWAYS TAKEN 13c79a: 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; 13c79d: 8d 46 0c lea 0xc(%esi),%eax 13c7a0: 89 45 f0 mov %eax,-0x10(%ebp) 13c7a3: eb 16 jmp 13c7bb <_Heap_Get_information+0x63> <== ALWAYS TAKEN 13c7a5: 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) ) 13c7a8: 89 f0 mov %esi,%eax info = &the_info->Used; else info = &the_info->Free; info->number++; 13c7aa: ff 00 incl (%eax) info->total += the_size; 13c7ac: 01 50 08 add %edx,0x8(%eax) if ( info->largest < the_size ) 13c7af: 39 50 04 cmp %edx,0x4(%eax) 13c7b2: 73 03 jae 13c7b7 <_Heap_Get_information+0x5f> info->largest = the_size; 13c7b4: 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 ) { 13c7b7: 39 df cmp %ebx,%edi 13c7b9: 74 15 je 13c7d0 <_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; 13c7bb: 89 ca mov %ecx,%edx 13c7bd: 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); 13c7c0: 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; 13c7c2: 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) ) 13c7c5: f6 c1 01 test $0x1,%cl 13c7c8: 74 de je 13c7a8 <_Heap_Get_information+0x50> 13c7ca: 8b 45 f0 mov -0x10(%ebp),%eax 13c7cd: eb db jmp 13c7aa <_Heap_Get_information+0x52> <== ALWAYS TAKEN 13c7cf: 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 ) { 13c7d0: 8b 46 14 mov 0x14(%esi),%eax 13c7d3: 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; 13c7d6: 89 46 14 mov %eax,0x14(%esi) } 13c7d9: 58 pop %eax 13c7da: 5b pop %ebx 13c7db: 5e pop %esi 13c7dc: 5f pop %edi 13c7dd: c9 leave 13c7de: 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 ) { 13c7df: b8 08 00 00 00 mov $0x8,%eax <== NOT EXECUTED 13c7e4: eb f0 jmp 13c7d6 <_Heap_Get_information+0x7e> <== NOT EXECUTED 0010c304 <_Heap_Initialize>: Heap_Control *heap, void *heap_area_begin_ptr, uintptr_t heap_area_size, uintptr_t page_size ) { 10c304: 55 push %ebp 10c305: 89 e5 mov %esp,%ebp 10c307: 57 push %edi 10c308: 56 push %esi 10c309: 53 push %ebx 10c30a: 83 ec 10 sub $0x10,%esp 10c30d: 8b 5d 08 mov 0x8(%ebp),%ebx 10c310: 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 ) { 10c313: 85 c9 test %ecx,%ecx 10c315: 0f 85 f5 00 00 00 jne 10c410 <_Heap_Initialize+0x10c> 10c31b: b1 04 mov $0x4,%cl 10c31d: 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; 10c324: 8b 75 0c mov 0xc(%ebp),%esi 10c327: 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; 10c32a: 89 f0 mov %esi,%eax 10c32c: 31 d2 xor %edx,%edx 10c32e: f7 f1 div %ecx if ( remainder != 0 ) { 10c330: 85 d2 test %edx,%edx 10c332: 74 05 je 10c339 <_Heap_Initialize+0x35> return value - remainder + alignment; 10c334: 8d 34 31 lea (%ecx,%esi,1),%esi 10c337: 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 ( 10c339: 8b 55 0c mov 0xc(%ebp),%edx 10c33c: 03 55 10 add 0x10(%ebp),%edx 10c33f: 89 55 ec mov %edx,-0x14(%ebp) 10c342: 0f 82 d9 00 00 00 jb 10c421 <_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); 10c348: 8d 7e f8 lea -0x8(%esi),%edi 10c34b: 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 ( 10c34e: 39 75 10 cmp %esi,0x10(%ebp) 10c351: 0f 86 ca 00 00 00 jbe 10c421 <_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; 10c357: 8b 45 10 mov 0x10(%ebp),%eax 10c35a: 29 f0 sub %esi,%eax 10c35c: 89 c6 mov %eax,%esi RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 10c35e: 31 d2 xor %edx,%edx 10c360: f7 f1 div %ecx 10c362: 29 d6 sub %edx,%esi 10c364: 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 ( 10c367: 39 75 f0 cmp %esi,-0x10(%ebp) 10c36a: 0f 87 b1 00 00 00 ja 10c421 <_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; 10c370: 89 f0 mov %esi,%eax 10c372: 83 e8 08 sub $0x8,%eax return 0; } /* First block */ first_block = (Heap_Block *) first_block_begin; first_block->prev_size = page_size; 10c375: 89 0f mov %ecx,(%edi) first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED; 10c377: 89 f2 mov %esi,%edx 10c379: 83 ca 01 or $0x1,%edx 10c37c: 89 57 04 mov %edx,0x4(%edi) first_block->next = _Heap_Free_list_tail( heap ); 10c37f: 89 5f 08 mov %ebx,0x8(%edi) first_block->prev = _Heap_Free_list_head( heap ); 10c382: 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); 10c385: 01 fe add %edi,%esi 10c387: 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; 10c38a: 8b 55 e4 mov -0x1c(%ebp),%edx 10c38d: 89 16 mov %edx,(%esi) last_block->size_and_flag = first_block_begin - (uintptr_t) last_block; 10c38f: 89 fa mov %edi,%edx 10c391: 29 f2 sub %esi,%edx 10c393: 89 56 04 mov %edx,0x4(%esi) /* Heap control */ heap->page_size = page_size; 10c396: 89 4b 10 mov %ecx,0x10(%ebx) heap->min_block_size = min_block_size; 10c399: 8b 75 f0 mov -0x10(%ebp),%esi 10c39c: 89 73 14 mov %esi,0x14(%ebx) heap->area_begin = heap_area_begin; 10c39f: 8b 55 0c mov 0xc(%ebp),%edx 10c3a2: 89 53 18 mov %edx,0x18(%ebx) heap->area_end = heap_area_end; 10c3a5: 8b 75 ec mov -0x14(%ebp),%esi 10c3a8: 89 73 1c mov %esi,0x1c(%ebx) heap->first_block = first_block; 10c3ab: 89 7b 20 mov %edi,0x20(%ebx) heap->last_block = last_block; _Heap_Free_list_head( heap )->next = first_block; 10c3ae: 89 7b 08 mov %edi,0x8(%ebx) _Heap_Free_list_tail( heap )->prev = first_block; 10c3b1: 89 7b 0c mov %edi,0xc(%ebx) /* Statistics */ stats->size = first_block_size; 10c3b4: 8b 55 e4 mov -0x1c(%ebp),%edx 10c3b7: 89 53 2c mov %edx,0x2c(%ebx) stats->free_size = first_block_size; 10c3ba: 89 53 30 mov %edx,0x30(%ebx) stats->min_free_size = first_block_size; 10c3bd: 89 53 34 mov %edx,0x34(%ebx) stats->free_blocks = 1; 10c3c0: c7 43 38 01 00 00 00 movl $0x1,0x38(%ebx) stats->max_free_blocks = 1; 10c3c7: c7 43 3c 01 00 00 00 movl $0x1,0x3c(%ebx) stats->used_blocks = 0; 10c3ce: c7 43 40 00 00 00 00 movl $0x0,0x40(%ebx) stats->max_search = 0; 10c3d5: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx) stats->allocs = 0; 10c3dc: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) stats->searches = 0; 10c3e3: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx) stats->frees = 0; 10c3ea: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx) stats->resizes = 0; 10c3f1: c7 43 54 00 00 00 00 movl $0x0,0x54(%ebx) stats->instance = instance++; 10c3f8: 8b 15 60 4f 12 00 mov 0x124f60,%edx 10c3fe: 89 53 28 mov %edx,0x28(%ebx) 10c401: 42 inc %edx 10c402: 89 15 60 4f 12 00 mov %edx,0x124f60 _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return alloc_area_size; } 10c408: 83 c4 10 add $0x10,%esp 10c40b: 5b pop %ebx 10c40c: 5e pop %esi 10c40d: 5f pop %edi 10c40e: c9 leave 10c40f: c3 ret uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { 10c410: 89 c8 mov %ecx,%eax 10c412: 83 e0 03 and $0x3,%eax 10c415: 74 05 je 10c41c <_Heap_Initialize+0x118> return value - remainder + alignment; 10c417: 83 c1 04 add $0x4,%ecx 10c41a: 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 ) { 10c41c: 83 f9 03 cmp $0x3,%ecx 10c41f: 77 0b ja 10c42c <_Heap_Initialize+0x128> ); _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return alloc_area_size; 10c421: 31 c0 xor %eax,%eax } 10c423: 83 c4 10 add $0x10,%esp 10c426: 5b pop %ebx 10c427: 5e pop %esi 10c428: 5f pop %edi 10c429: c9 leave 10c42a: c3 ret 10c42b: 90 nop <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; 10c42c: b8 10 00 00 00 mov $0x10,%eax 10c431: 31 d2 xor %edx,%edx 10c433: f7 f1 div %ecx if ( remainder != 0 ) { 10c435: 85 d2 test %edx,%edx 10c437: 74 0d je 10c446 <_Heap_Initialize+0x142> return value - remainder + alignment; 10c439: 8d 41 10 lea 0x10(%ecx),%eax 10c43c: 29 d0 sub %edx,%eax 10c43e: 89 45 f0 mov %eax,-0x10(%ebp) 10c441: e9 de fe ff ff jmp 10c324 <_Heap_Initialize+0x20> <== ALWAYS TAKEN uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { 10c446: c7 45 f0 10 00 00 00 movl $0x10,-0x10(%ebp) 10c44d: e9 d2 fe ff ff jmp 10c324 <_Heap_Initialize+0x20> <== ALWAYS TAKEN 0011db50 <_Heap_Resize_block>: void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { 11db50: 55 push %ebp 11db51: 89 e5 mov %esp,%ebp 11db53: 57 push %edi 11db54: 56 push %esi 11db55: 53 push %ebx 11db56: 83 ec 2c sub $0x2c,%esp 11db59: 8b 5d 08 mov 0x8(%ebp),%ebx 11db5c: 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 ) 11db5f: 8d 4e f8 lea -0x8(%esi),%ecx 11db62: 89 f0 mov %esi,%eax 11db64: 31 d2 xor %edx,%edx 11db66: f7 73 10 divl 0x10(%ebx) 11db69: 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; 11db6b: 8b 45 14 mov 0x14(%ebp),%eax 11db6e: c7 00 00 00 00 00 movl $0x0,(%eax) *new_size = 0; 11db74: 8b 55 18 mov 0x18(%ebp),%edx 11db77: 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 11db7d: 39 4b 20 cmp %ecx,0x20(%ebx) 11db80: 76 0e jbe 11db90 <_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; 11db82: b8 02 00 00 00 mov $0x2,%eax new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 11db87: 8d 65 f4 lea -0xc(%ebp),%esp 11db8a: 5b pop %ebx 11db8b: 5e pop %esi 11db8c: 5f pop %edi 11db8d: c9 leave 11db8e: c3 ret 11db8f: 90 nop <== NOT EXECUTED 11db90: 39 4b 24 cmp %ecx,0x24(%ebx) 11db93: 72 ed jb 11db82 <_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; 11db95: 8b 41 04 mov 0x4(%ecx),%eax 11db98: 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; 11db9b: 8d 3c 01 lea (%ecx,%eax,1),%edi 11db9e: 89 7d d4 mov %edi,-0x2c(%ebp) uintptr_t alloc_size = block_end - alloc_begin + HEAP_BLOCK_SIZE_OFFSET; 11dba1: 89 fa mov %edi,%edx 11dba3: 29 f2 sub %esi,%edx 11dba5: 83 c2 04 add $0x4,%edx 11dba8: 89 55 dc mov %edx,-0x24(%ebp) 11dbab: 8b 57 04 mov 0x4(%edi),%edx 11dbae: 83 e2 fe and $0xfffffffe,%edx 11dbb1: 89 55 d0 mov %edx,-0x30(%ebp) RTEMS_INLINE_ROUTINE bool _Heap_Is_free( const Heap_Block *block ) { return !_Heap_Is_used( block ); 11dbb4: 8b 54 17 04 mov 0x4(%edi,%edx,1),%edx 11dbb8: 83 e2 01 and $0x1,%edx 11dbbb: 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; 11dbbe: 8b 55 dc mov -0x24(%ebp),%edx 11dbc1: 8b 7d 14 mov 0x14(%ebp),%edi 11dbc4: 89 17 mov %edx,(%edi) if ( next_block_is_free ) { 11dbc6: 8a 55 e0 mov -0x20(%ebp),%dl 11dbc9: 80 f2 01 xor $0x1,%dl 11dbcc: 88 55 e0 mov %dl,-0x20(%ebp) 11dbcf: 75 17 jne 11dbe8 <_Heap_Resize_block+0x98> block_size += next_block_size; alloc_size += next_block_size; } if ( new_alloc_size > alloc_size ) { 11dbd1: 8b 55 dc mov -0x24(%ebp),%edx 11dbd4: 39 55 10 cmp %edx,0x10(%ebp) 11dbd7: 76 20 jbe 11dbf9 <_Heap_Resize_block+0xa9> 11dbd9: b8 01 00 00 00 mov $0x1,%eax new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 11dbde: 8d 65 f4 lea -0xc(%ebp),%esp 11dbe1: 5b pop %ebx 11dbe2: 5e pop %esi 11dbe3: 5f pop %edi 11dbe4: c9 leave 11dbe5: c3 ret 11dbe6: 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; 11dbe8: 03 45 d0 add -0x30(%ebp),%eax alloc_size += next_block_size; 11dbeb: 8b 7d d0 mov -0x30(%ebp),%edi 11dbee: 01 7d dc add %edi,-0x24(%ebp) } if ( new_alloc_size > alloc_size ) { 11dbf1: 8b 55 dc mov -0x24(%ebp),%edx 11dbf4: 39 55 10 cmp %edx,0x10(%ebp) 11dbf7: 77 e0 ja 11dbd9 <_Heap_Resize_block+0x89> return HEAP_RESIZE_UNSATISFIED; } if ( next_block_is_free ) { 11dbf9: 80 7d e0 00 cmpb $0x0,-0x20(%ebp) 11dbfd: 74 31 je 11dc30 <_Heap_Resize_block+0xe0> uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; 11dbff: 8b 79 04 mov 0x4(%ecx),%edi 11dc02: 83 e7 01 and $0x1,%edi 11dc05: 09 c7 or %eax,%edi 11dc07: 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; 11dc0a: 8b 7d d4 mov -0x2c(%ebp),%edi 11dc0d: 8b 7f 08 mov 0x8(%edi),%edi 11dc10: 89 7d e4 mov %edi,-0x1c(%ebp) Heap_Block *prev = block->prev; 11dc13: 8b 55 d4 mov -0x2c(%ebp),%edx 11dc16: 8b 7a 0c mov 0xc(%edx),%edi prev->next = next; 11dc19: 8b 55 e4 mov -0x1c(%ebp),%edx 11dc1c: 89 57 08 mov %edx,0x8(%edi) next->prev = prev; 11dc1f: 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; 11dc22: 83 4c 08 04 01 orl $0x1,0x4(%eax,%ecx,1) /* Statistics */ --stats->free_blocks; 11dc27: ff 4b 38 decl 0x38(%ebx) stats->free_size -= next_block_size; 11dc2a: 8b 7d d0 mov -0x30(%ebp),%edi 11dc2d: 29 7b 30 sub %edi,0x30(%ebx) } block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); 11dc30: ff 75 10 pushl 0x10(%ebp) 11dc33: 56 push %esi 11dc34: 51 push %ecx 11dc35: 53 push %ebx 11dc36: e8 fd e8 fe ff call 10c538 <_Heap_Block_allocate> <== ALWAYS TAKEN 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; 11dc3b: 8b 50 04 mov 0x4(%eax),%edx 11dc3e: 83 e2 fe and $0xfffffffe,%edx 11dc41: 29 f0 sub %esi,%eax 11dc43: 8d 44 10 04 lea 0x4(%eax,%edx,1),%eax 11dc47: 8b 55 18 mov 0x18(%ebp),%edx 11dc4a: 89 02 mov %eax,(%edx) /* Statistics */ ++stats->resizes; 11dc4c: ff 43 54 incl 0x54(%ebx) 11dc4f: 31 c0 xor %eax,%eax 11dc51: 83 c4 10 add $0x10,%esp new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 11dc54: 8d 65 f4 lea -0xc(%ebp),%esp 11dc57: 5b pop %ebx 11dc58: 5e pop %esi 11dc59: 5f pop %edi 11dc5a: c9 leave 11dc5b: c3 ret 0011dc5c <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) { 11dc5c: 55 push %ebp 11dc5d: 89 e5 mov %esp,%ebp 11dc5f: 56 push %esi 11dc60: 53 push %ebx 11dc61: 8b 5d 08 mov 0x8(%ebp),%ebx 11dc64: 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 ) 11dc67: 8d 4e f8 lea -0x8(%esi),%ecx 11dc6a: 89 f0 mov %esi,%eax 11dc6c: 31 d2 xor %edx,%edx 11dc6e: f7 73 10 divl 0x10(%ebx) 11dc71: 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; 11dc73: 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 11dc76: 39 c1 cmp %eax,%ecx 11dc78: 72 07 jb 11dc81 <_Heap_Size_of_alloc_area+0x25> && (uintptr_t) block <= (uintptr_t) heap->last_block; 11dc7a: 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 11dc7d: 39 d1 cmp %edx,%ecx 11dc7f: 76 07 jbe 11dc88 <_Heap_Size_of_alloc_area+0x2c> <== NEVER TAKEN return false; } *alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin; return true; 11dc81: 31 c0 xor %eax,%eax } 11dc83: 5b pop %ebx 11dc84: 5e pop %esi 11dc85: c9 leave 11dc86: c3 ret 11dc87: 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); 11dc88: 8b 59 04 mov 0x4(%ecx),%ebx 11dc8b: 83 e3 fe and $0xfffffffe,%ebx 11dc8e: 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 11dc90: 39 c8 cmp %ecx,%eax 11dc92: 77 ed ja 11dc81 <_Heap_Size_of_alloc_area+0x25> <== ALWAYS TAKEN 11dc94: 39 ca cmp %ecx,%edx 11dc96: 72 e9 jb 11dc81 <_Heap_Size_of_alloc_area+0x25> <== ALWAYS TAKEN } block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( 11dc98: f6 41 04 01 testb $0x1,0x4(%ecx) 11dc9c: 74 e3 je 11dc81 <_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; 11dc9e: 29 f1 sub %esi,%ecx 11dca0: 8d 51 04 lea 0x4(%ecx),%edx 11dca3: 8b 45 10 mov 0x10(%ebp),%eax 11dca6: 89 10 mov %edx,(%eax) 11dca8: b0 01 mov $0x1,%al return true; } 11dcaa: 5b pop %ebx 11dcab: 5e pop %esi 11dcac: c9 leave 11dcad: c3 ret 0010d0a0 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 10d0a0: 55 push %ebp 10d0a1: 89 e5 mov %esp,%ebp 10d0a3: 57 push %edi 10d0a4: 56 push %esi 10d0a5: 53 push %ebx 10d0a6: 83 ec 3c sub $0x3c,%esp 10d0a9: 8b 5d 08 mov 0x8(%ebp),%ebx uintptr_t const page_size = heap->page_size; 10d0ac: 8b 43 10 mov 0x10(%ebx),%eax 10d0af: 89 45 e0 mov %eax,-0x20(%ebp) uintptr_t const min_block_size = heap->min_block_size; 10d0b2: 8b 53 14 mov 0x14(%ebx),%edx 10d0b5: 89 55 dc mov %edx,-0x24(%ebp) Heap_Block *const last_block = heap->last_block; 10d0b8: 8b 43 24 mov 0x24(%ebx),%eax 10d0bb: 89 45 d8 mov %eax,-0x28(%ebp) Heap_Block *block = heap->first_block; 10d0be: 8b 73 20 mov 0x20(%ebx),%esi Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; 10d0c1: 80 7d 10 00 cmpb $0x0,0x10(%ebp) 10d0c5: 75 1d jne 10d0e4 <_Heap_Walk+0x44> 10d0c7: c7 45 e4 98 d0 10 00 movl $0x10d098,-0x1c(%ebp) if ( !_System_state_Is_up( _System_state_Get() ) ) { 10d0ce: 83 3d 20 86 12 00 03 cmpl $0x3,0x128620 10d0d5: 74 1d je 10d0f4 <_Heap_Walk+0x54> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 10d0d7: b0 01 mov $0x1,%al block = next_block; } return true; } 10d0d9: 8d 65 f4 lea -0xc(%ebp),%esp 10d0dc: 5b pop %ebx 10d0dd: 5e pop %esi 10d0de: 5f pop %edi 10d0df: c9 leave 10d0e0: c3 ret 10d0e1: 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; 10d0e4: c7 45 e4 68 d4 10 00 movl $0x10d468,-0x1c(%ebp) if ( !_System_state_Is_up( _System_state_Get() ) ) { 10d0eb: 83 3d 20 86 12 00 03 cmpl $0x3,0x128620 10d0f2: 75 e3 jne 10d0d7 <_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)( 10d0f4: 52 push %edx 10d0f5: ff 73 0c pushl 0xc(%ebx) 10d0f8: ff 73 08 pushl 0x8(%ebx) 10d0fb: ff 75 d8 pushl -0x28(%ebp) 10d0fe: 56 push %esi 10d0ff: ff 73 1c pushl 0x1c(%ebx) 10d102: ff 73 18 pushl 0x18(%ebx) 10d105: ff 75 dc pushl -0x24(%ebp) 10d108: ff 75 e0 pushl -0x20(%ebp) 10d10b: 68 d0 09 12 00 push $0x1209d0 10d110: 6a 00 push $0x0 10d112: ff 75 0c pushl 0xc(%ebp) 10d115: 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 ) { 10d118: 83 c4 30 add $0x30,%esp 10d11b: 8b 45 e0 mov -0x20(%ebp),%eax 10d11e: 85 c0 test %eax,%eax 10d120: 0f 84 b2 00 00 00 je 10d1d8 <_Heap_Walk+0x138> (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { 10d126: f6 45 e0 03 testb $0x3,-0x20(%ebp) 10d12a: 0f 85 b0 00 00 00 jne 10d1e0 <_Heap_Walk+0x140> ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { 10d130: 8b 45 dc mov -0x24(%ebp),%eax 10d133: 31 d2 xor %edx,%edx 10d135: f7 75 e0 divl -0x20(%ebp) 10d138: 85 d2 test %edx,%edx 10d13a: 0f 85 ac 00 00 00 jne 10d1ec <_Heap_Walk+0x14c> ); return false; } if ( 10d140: 8d 46 08 lea 0x8(%esi),%eax 10d143: 31 d2 xor %edx,%edx 10d145: f7 75 e0 divl -0x20(%ebp) 10d148: 85 d2 test %edx,%edx 10d14a: 0f 85 a8 00 00 00 jne 10d1f8 <_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; 10d150: 8b 56 04 mov 0x4(%esi),%edx 10d153: 89 55 cc mov %edx,-0x34(%ebp) ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { 10d156: 83 e2 01 and $0x1,%edx 10d159: 0f 84 a1 00 00 00 je 10d200 <_Heap_Walk+0x160> ); return false; } if ( first_block->prev_size != page_size ) { 10d15f: 8b 06 mov (%esi),%eax 10d161: 39 45 e0 cmp %eax,-0x20(%ebp) 10d164: 75 4e jne 10d1b4 <_Heap_Walk+0x114> ); return false; } if ( _Heap_Is_free( last_block ) ) { 10d166: 8b 55 d8 mov -0x28(%ebp),%edx 10d169: 8b 42 04 mov 0x4(%edx),%eax 10d16c: 83 e0 fe and $0xfffffffe,%eax 10d16f: f6 44 02 04 01 testb $0x1,0x4(%edx,%eax,1) 10d174: 0f 84 bd 02 00 00 je 10d437 <_Heap_Walk+0x397> int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; 10d17a: 8b 43 10 mov 0x10(%ebx),%eax 10d17d: 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; 10d180: 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 ) { 10d183: 39 cb cmp %ecx,%ebx 10d185: 0f 84 08 01 00 00 je 10d293 <_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; 10d18b: 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 10d18e: 39 cf cmp %ecx,%edi 10d190: 76 76 jbe 10d208 <_Heap_Walk+0x168> <== NEVER TAKEN 10d192: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { (*printer)( 10d194: 51 push %ecx 10d195: 68 18 0b 12 00 push $0x120b18 10d19a: 66 90 xchg %ax,%ax return false; } if ( !prev_used ) { (*printer)( 10d19c: 6a 01 push $0x1 10d19e: ff 75 0c pushl 0xc(%ebp) 10d1a1: ff 55 e4 call *-0x1c(%ebp) 10d1a4: 31 c0 xor %eax,%eax 10d1a6: 83 c4 10 add $0x10,%esp block = next_block; } return true; } 10d1a9: 8d 65 f4 lea -0xc(%ebp),%esp 10d1ac: 5b pop %ebx 10d1ad: 5e pop %esi 10d1ae: 5f pop %edi 10d1af: c9 leave 10d1b0: c3 ret 10d1b1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return false; } if ( first_block->prev_size != page_size ) { (*printer)( 10d1b4: 83 ec 0c sub $0xc,%esp 10d1b7: ff 75 e0 pushl -0x20(%ebp) 10d1ba: 50 push %eax 10d1bb: 68 ec 0a 12 00 push $0x120aec return false; } if ( free_block->prev != prev_block ) { (*printer)( 10d1c0: 6a 01 push $0x1 10d1c2: ff 75 0c pushl 0xc(%ebp) 10d1c5: ff 55 e4 call *-0x1c(%ebp) 10d1c8: 31 c0 xor %eax,%eax 10d1ca: 83 c4 20 add $0x20,%esp block = next_block; } return true; } 10d1cd: 8d 65 f4 lea -0xc(%ebp),%esp 10d1d0: 5b pop %ebx 10d1d1: 5e pop %esi 10d1d2: 5f pop %edi 10d1d3: c9 leave 10d1d4: c3 ret 10d1d5: 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" ); 10d1d8: 57 push %edi 10d1d9: 68 47 0d 12 00 push $0x120d47 10d1de: eb bc jmp 10d19c <_Heap_Walk+0xfc> <== ALWAYS TAKEN return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)( 10d1e0: ff 75 e0 pushl -0x20(%ebp) 10d1e3: 68 5a 0d 12 00 push $0x120d5a 10d1e8: eb b2 jmp 10d19c <_Heap_Walk+0xfc> <== ALWAYS TAKEN 10d1ea: 66 90 xchg %ax,%ax <== NOT EXECUTED return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)( 10d1ec: ff 75 dc pushl -0x24(%ebp) 10d1ef: 68 64 0a 12 00 push $0x120a64 10d1f4: eb a6 jmp 10d19c <_Heap_Walk+0xfc> <== ALWAYS TAKEN 10d1f6: 66 90 xchg %ax,%ax <== NOT EXECUTED } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( 10d1f8: 56 push %esi 10d1f9: 68 88 0a 12 00 push $0x120a88 10d1fe: eb 9c jmp 10d19c <_Heap_Walk+0xfc> <== ALWAYS TAKEN return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( 10d200: 56 push %esi 10d201: 68 bc 0a 12 00 push $0x120abc 10d206: eb 94 jmp 10d19c <_Heap_Walk+0xfc> <== ALWAYS TAKEN && (uintptr_t) block <= (uintptr_t) heap->last_block; 10d208: 8b 53 24 mov 0x24(%ebx),%edx 10d20b: 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 10d20e: 39 ca cmp %ecx,%edx 10d210: 72 82 jb 10d194 <_Heap_Walk+0xf4> <== ALWAYS TAKEN ); return false; } if ( 10d212: 8d 41 08 lea 0x8(%ecx),%eax 10d215: 31 d2 xor %edx,%edx 10d217: f7 75 d4 divl -0x2c(%ebp) 10d21a: 85 d2 test %edx,%edx 10d21c: 0f 85 20 02 00 00 jne 10d442 <_Heap_Walk+0x3a2> <== ALWAYS TAKEN ); return false; } if ( _Heap_Is_used( free_block ) ) { 10d222: 8b 41 04 mov 0x4(%ecx),%eax 10d225: 83 e0 fe and $0xfffffffe,%eax 10d228: f6 44 01 04 01 testb $0x1,0x4(%ecx,%eax,1) 10d22d: 0f 85 29 02 00 00 jne 10d45c <_Heap_Walk+0x3bc> <== ALWAYS TAKEN ); return false; } if ( free_block->prev != prev_block ) { 10d233: 8b 41 0c mov 0xc(%ecx),%eax 10d236: 39 c3 cmp %eax,%ebx 10d238: 0f 85 0f 02 00 00 jne 10d44d <_Heap_Walk+0x3ad> <== ALWAYS TAKEN 10d23e: 89 75 c8 mov %esi,-0x38(%ebp) 10d241: 89 de mov %ebx,%esi 10d243: eb 40 jmp 10d285 <_Heap_Walk+0x1e5> <== ALWAYS TAKEN 10d245: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10d248: 39 f9 cmp %edi,%ecx 10d24a: 0f 82 44 ff ff ff jb 10d194 <_Heap_Walk+0xf4> 10d250: 39 4d d0 cmp %ecx,-0x30(%ebp) 10d253: 0f 82 3b ff ff ff jb 10d194 <_Heap_Walk+0xf4> <== ALWAYS TAKEN ); return false; } if ( 10d259: 8d 41 08 lea 0x8(%ecx),%eax 10d25c: 31 d2 xor %edx,%edx 10d25e: f7 75 d4 divl -0x2c(%ebp) 10d261: 85 d2 test %edx,%edx 10d263: 0f 85 d9 01 00 00 jne 10d442 <_Heap_Walk+0x3a2> ); return false; } if ( _Heap_Is_used( free_block ) ) { 10d269: 8b 41 04 mov 0x4(%ecx),%eax 10d26c: 83 e0 fe and $0xfffffffe,%eax 10d26f: f6 44 01 04 01 testb $0x1,0x4(%ecx,%eax,1) 10d274: 0f 85 e2 01 00 00 jne 10d45c <_Heap_Walk+0x3bc> ); return false; } if ( free_block->prev != prev_block ) { 10d27a: 8b 41 0c mov 0xc(%ecx),%eax 10d27d: 39 d8 cmp %ebx,%eax 10d27f: 0f 85 c8 01 00 00 jne 10d44d <_Heap_Walk+0x3ad> (*printer)( 10d285: 89 cb mov %ecx,%ebx return false; } prev_block = free_block; free_block = free_block->next; 10d287: 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 ) { 10d28a: 39 ce cmp %ecx,%esi 10d28c: 75 ba jne 10d248 <_Heap_Walk+0x1a8> 10d28e: 89 f3 mov %esi,%ebx 10d290: 8b 75 c8 mov -0x38(%ebp),%esi if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 10d293: 39 75 d8 cmp %esi,-0x28(%ebp) 10d296: 0f 84 3b fe ff ff je 10d0d7 <_Heap_Walk+0x37> <== ALWAYS TAKEN 10d29c: 8b 45 cc mov -0x34(%ebp),%eax 10d29f: 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; 10d2a0: 89 c1 mov %eax,%ecx 10d2a2: 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); 10d2a5: 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 ) { 10d2a8: a8 01 test $0x1,%al 10d2aa: 74 30 je 10d2dc <_Heap_Walk+0x23c> (*printer)( 10d2ac: 83 ec 0c sub $0xc,%esp 10d2af: 51 push %ecx 10d2b0: 56 push %esi 10d2b1: 68 a9 0d 12 00 push $0x120da9 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 10d2b6: 6a 00 push $0x0 10d2b8: ff 75 0c pushl 0xc(%ebp) 10d2bb: 89 4d c4 mov %ecx,-0x3c(%ebp) 10d2be: ff 55 e4 call *-0x1c(%ebp) 10d2c1: 83 c4 20 add $0x20,%esp 10d2c4: 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 10d2c7: 39 7b 20 cmp %edi,0x20(%ebx) 10d2ca: 76 20 jbe 10d2ec <_Heap_Walk+0x24c> <== NEVER TAKEN block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { (*printer)( 10d2cc: 83 ec 0c sub $0xc,%esp 10d2cf: 57 push %edi 10d2d0: 56 push %esi 10d2d1: 68 c4 0b 12 00 push $0x120bc4 10d2d6: e9 e5 fe ff ff jmp 10d1c0 <_Heap_Walk+0x120> <== ALWAYS TAKEN 10d2db: 90 nop <== NOT EXECUTED "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 10d2dc: 83 ec 08 sub $0x8,%esp 10d2df: ff 36 pushl (%esi) 10d2e1: 51 push %ecx 10d2e2: 56 push %esi 10d2e3: 68 9c 0b 12 00 push $0x120b9c 10d2e8: eb cc jmp 10d2b6 <_Heap_Walk+0x216> <== ALWAYS TAKEN 10d2ea: 66 90 xchg %ax,%ax <== NOT EXECUTED 10d2ec: 39 7b 24 cmp %edi,0x24(%ebx) 10d2ef: 72 db jb 10d2cc <_Heap_Walk+0x22c> ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { 10d2f1: 89 c8 mov %ecx,%eax 10d2f3: 31 d2 xor %edx,%edx 10d2f5: f7 75 e0 divl -0x20(%ebp) 10d2f8: 85 d2 test %edx,%edx 10d2fa: 0f 85 02 01 00 00 jne 10d402 <_Heap_Walk+0x362> ); return false; } if ( block_size < min_block_size ) { 10d300: 39 4d dc cmp %ecx,-0x24(%ebp) 10d303: 0f 87 0b 01 00 00 ja 10d414 <_Heap_Walk+0x374> ); return false; } if ( next_block_begin <= block_begin ) { 10d309: 39 fe cmp %edi,%esi 10d30b: 0f 83 17 01 00 00 jae 10d428 <_Heap_Walk+0x388> ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 10d311: f6 47 04 01 testb $0x1,0x4(%edi) 10d315: 0f 85 91 00 00 00 jne 10d3ac <_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; 10d31b: 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; 10d31e: 8b 46 04 mov 0x4(%esi),%eax 10d321: 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; 10d324: 83 e0 fe and $0xfffffffe,%eax 10d327: 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); 10d32a: 01 f0 add %esi,%eax 10d32c: 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)( 10d32f: 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; 10d332: 39 53 0c cmp %edx,0xc(%ebx) 10d335: 0f 84 99 00 00 00 je 10d3d4 <_Heap_Walk+0x334> " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 10d33b: 39 da cmp %ebx,%edx 10d33d: 0f 84 a9 00 00 00 je 10d3ec <_Heap_Walk+0x34c> 10d343: c7 45 c8 0f 09 12 00 movl $0x12090f,-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)( 10d34a: 8b 46 0c mov 0xc(%esi),%eax 10d34d: 39 c1 cmp %eax,%ecx 10d34f: 74 7b je 10d3cc <_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)" : ""), 10d351: 39 d8 cmp %ebx,%eax 10d353: 0f 84 9f 00 00 00 je 10d3f8 <_Heap_Walk+0x358> 10d359: b9 0f 09 12 00 mov $0x12090f,%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)( 10d35e: ff 75 c8 pushl -0x38(%ebp) 10d361: 52 push %edx 10d362: 51 push %ecx 10d363: 50 push %eax 10d364: 56 push %esi 10d365: 68 84 0c 12 00 push $0x120c84 10d36a: 6a 00 push $0x0 10d36c: ff 75 0c pushl 0xc(%ebp) 10d36f: 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 ) { 10d372: 8b 55 d0 mov -0x30(%ebp),%edx 10d375: 8b 02 mov (%edx),%eax 10d377: 83 c4 20 add $0x20,%esp 10d37a: 39 45 d4 cmp %eax,-0x2c(%ebp) 10d37d: 74 11 je 10d390 <_Heap_Walk+0x2f0> (*printer)( 10d37f: 51 push %ecx 10d380: 52 push %edx 10d381: 50 push %eax 10d382: ff 75 d4 pushl -0x2c(%ebp) 10d385: 56 push %esi 10d386: 68 b0 0c 12 00 push $0x120cb0 10d38b: e9 30 fe ff ff jmp 10d1c0 <_Heap_Walk+0x120> <== ALWAYS TAKEN ); return false; } if ( !prev_used ) { 10d390: f6 45 cc 01 testb $0x1,-0x34(%ebp) 10d394: 74 4a je 10d3e0 <_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; 10d396: 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 ) { 10d399: 39 d8 cmp %ebx,%eax 10d39b: 75 0a jne 10d3a7 <_Heap_Walk+0x307> <== NEVER TAKEN 10d39d: eb 21 jmp 10d3c0 <_Heap_Walk+0x320> <== NOT EXECUTED 10d39f: 90 nop <== NOT EXECUTED if ( free_block == block ) { return true; } free_block = free_block->next; 10d3a0: 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 ) { 10d3a3: 39 d8 cmp %ebx,%eax 10d3a5: 74 19 je 10d3c0 <_Heap_Walk+0x320> if ( free_block == block ) { 10d3a7: 39 f0 cmp %esi,%eax 10d3a9: 75 f5 jne 10d3a0 <_Heap_Walk+0x300> 10d3ab: 90 nop if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 10d3ac: 39 7d d8 cmp %edi,-0x28(%ebp) 10d3af: 0f 84 22 fd ff ff je 10d0d7 <_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 ) { 10d3b5: 8b 47 04 mov 0x4(%edi),%eax 10d3b8: 89 fe mov %edi,%esi 10d3ba: e9 e1 fe ff ff jmp 10d2a0 <_Heap_Walk+0x200> <== ALWAYS TAKEN 10d3bf: 90 nop <== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 10d3c0: 56 push %esi 10d3c1: 68 1c 0d 12 00 push $0x120d1c 10d3c6: e9 d1 fd ff ff jmp 10d19c <_Heap_Walk+0xfc> <== ALWAYS TAKEN 10d3cb: 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)( 10d3cc: b9 d4 0d 12 00 mov $0x120dd4,%ecx 10d3d1: eb 8b jmp 10d35e <_Heap_Walk+0x2be> <== ALWAYS TAKEN 10d3d3: 90 nop <== NOT EXECUTED } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) { return _Heap_Free_list_tail(heap)->prev; 10d3d4: c7 45 c8 c0 0d 12 00 movl $0x120dc0,-0x38(%ebp) 10d3db: e9 6a ff ff ff jmp 10d34a <_Heap_Walk+0x2aa> <== ALWAYS TAKEN return false; } if ( !prev_used ) { (*printer)( 10d3e0: 56 push %esi 10d3e1: 68 ec 0c 12 00 push $0x120cec 10d3e6: e9 b1 fd ff ff jmp 10d19c <_Heap_Walk+0xfc> <== ALWAYS TAKEN 10d3eb: 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)" : "") 10d3ec: c7 45 c8 ca 0d 12 00 movl $0x120dca,-0x38(%ebp) 10d3f3: e9 52 ff ff ff jmp 10d34a <_Heap_Walk+0x2aa> <== ALWAYS TAKEN "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)" : ""), 10d3f8: b9 df 0d 12 00 mov $0x120ddf,%ecx 10d3fd: e9 5c ff ff ff jmp 10d35e <_Heap_Walk+0x2be> <== ALWAYS TAKEN return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { (*printer)( 10d402: 83 ec 0c sub $0xc,%esp 10d405: 51 push %ecx 10d406: 56 push %esi 10d407: 68 f4 0b 12 00 push $0x120bf4 10d40c: e9 af fd ff ff jmp 10d1c0 <_Heap_Walk+0x120> <== ALWAYS TAKEN 10d411: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return false; } if ( block_size < min_block_size ) { (*printer)( 10d414: 83 ec 08 sub $0x8,%esp 10d417: ff 75 dc pushl -0x24(%ebp) 10d41a: 51 push %ecx 10d41b: 56 push %esi 10d41c: 68 24 0c 12 00 push $0x120c24 10d421: e9 9a fd ff ff jmp 10d1c0 <_Heap_Walk+0x120> <== ALWAYS TAKEN 10d426: 66 90 xchg %ax,%ax <== NOT EXECUTED return false; } if ( next_block_begin <= block_begin ) { (*printer)( 10d428: 83 ec 0c sub $0xc,%esp 10d42b: 57 push %edi 10d42c: 56 push %esi 10d42d: 68 50 0c 12 00 push $0x120c50 10d432: e9 89 fd ff ff jmp 10d1c0 <_Heap_Walk+0x120> <== ALWAYS TAKEN return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)( 10d437: 53 push %ebx 10d438: 68 78 0d 12 00 push $0x120d78 10d43d: e9 5a fd ff ff jmp 10d19c <_Heap_Walk+0xfc> <== ALWAYS TAKEN } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( 10d442: 51 push %ecx 10d443: 68 38 0b 12 00 push $0x120b38 10d448: e9 4f fd ff ff jmp 10d19c <_Heap_Walk+0xfc> <== ALWAYS TAKEN return false; } if ( free_block->prev != prev_block ) { (*printer)( 10d44d: 83 ec 0c sub $0xc,%esp 10d450: 50 push %eax 10d451: 51 push %ecx 10d452: 68 68 0b 12 00 push $0x120b68 10d457: e9 64 fd ff ff jmp 10d1c0 <_Heap_Walk+0x120> <== ALWAYS TAKEN return false; } if ( _Heap_Is_used( free_block ) ) { (*printer)( 10d45c: 51 push %ecx 10d45d: 68 8d 0d 12 00 push $0x120d8d 10d462: e9 35 fd ff ff jmp 10d19c <_Heap_Walk+0xfc> <== ALWAYS TAKEN 0010d468 <_Heap_Walk_print>: { /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { 10d468: 55 push %ebp 10d469: 89 e5 mov %esp,%ebp 10d46b: 83 ec 08 sub $0x8,%esp 10d46e: 8b 45 08 mov 0x8(%ebp),%eax va_list ap; if ( error ) { 10d471: 80 7d 0c 00 cmpb $0x0,0xc(%ebp) 10d475: 75 25 jne 10d49c <_Heap_Walk_print+0x34> printk( "FAIL[%d]: ", source ); } else { printk( "PASS[%d]: ", source ); 10d477: 83 ec 08 sub $0x8,%esp 10d47a: 50 push %eax 10d47b: 68 f4 0d 12 00 push $0x120df4 10d480: e8 0f c0 ff ff call 109494 10d485: 83 c4 10 add $0x10,%esp ) { /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) 10d488: 8d 45 14 lea 0x14(%ebp),%eax } else { printk( "PASS[%d]: ", source ); } va_start( ap, fmt ); vprintk( fmt, ap ); 10d48b: 83 ec 08 sub $0x8,%esp 10d48e: 50 push %eax 10d48f: ff 75 10 pushl 0x10(%ebp) 10d492: e8 9d dd ff ff call 10b234 10d497: 83 c4 10 add $0x10,%esp va_end( ap ); } 10d49a: c9 leave 10d49b: c3 ret static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) { va_list ap; if ( error ) { printk( "FAIL[%d]: ", source ); 10d49c: 83 ec 08 sub $0x8,%esp 10d49f: 50 push %eax 10d4a0: 68 e9 0d 12 00 push $0x120de9 10d4a5: e8 ea bf ff ff call 109494 10d4aa: 83 c4 10 add $0x10,%esp 10d4ad: eb d9 jmp 10d488 <_Heap_Walk_print+0x20> <== ALWAYS TAKEN 0010bbac <_IO_Initialize_all_drivers>: * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) { 10bbac: 55 push %ebp 10bbad: 89 e5 mov %esp,%ebp 10bbaf: 53 push %ebx 10bbb0: 83 ec 04 sub $0x4,%esp rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) 10bbb3: 8b 15 80 56 12 00 mov 0x125680,%edx 10bbb9: 85 d2 test %edx,%edx 10bbbb: 74 1a je 10bbd7 <_IO_Initialize_all_drivers+0x2b> <== ALWAYS TAKEN 10bbbd: 31 db xor %ebx,%ebx 10bbbf: 90 nop (void) rtems_io_initialize( major, 0, NULL ); 10bbc0: 50 push %eax 10bbc1: 6a 00 push $0x0 10bbc3: 6a 00 push $0x0 10bbc5: 53 push %ebx 10bbc6: e8 b5 43 00 00 call 10ff80 <== ALWAYS TAKEN void _IO_Initialize_all_drivers( void ) { rtems_device_major_number major; for ( major=0 ; major < _IO_Number_of_drivers ; major ++ ) 10bbcb: 43 inc %ebx 10bbcc: 83 c4 10 add $0x10,%esp 10bbcf: 39 1d 80 56 12 00 cmp %ebx,0x125680 10bbd5: 77 e9 ja 10bbc0 <_IO_Initialize_all_drivers+0x14> (void) rtems_io_initialize( major, 0, NULL ); } 10bbd7: 8b 5d fc mov -0x4(%ebp),%ebx 10bbda: c9 leave 10bbdb: c3 ret 0010bbdc <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) { 10bbdc: 55 push %ebp 10bbdd: 89 e5 mov %esp,%ebp 10bbdf: 57 push %edi 10bbe0: 56 push %esi 10bbe1: 53 push %ebx 10bbe2: 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; 10bbe5: 8b 1d 54 12 12 00 mov 0x121254,%ebx drivers_in_table = Configuration.number_of_device_drivers; 10bbeb: a1 50 12 12 00 mov 0x121250,%eax 10bbf0: 89 45 e4 mov %eax,-0x1c(%ebp) number_of_drivers = Configuration.maximum_drivers; 10bbf3: 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 ) 10bbf9: 39 f0 cmp %esi,%eax 10bbfb: 72 17 jb 10bc14 <_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; 10bbfd: 89 1d 84 56 12 00 mov %ebx,0x125684 _IO_Number_of_drivers = number_of_drivers; 10bc03: 8b 45 e4 mov -0x1c(%ebp),%eax 10bc06: a3 80 56 12 00 mov %eax,0x125680 ); for ( index = 0 ; index < drivers_in_table ; index++ ) _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } 10bc0b: 8d 65 f4 lea -0xc(%ebp),%esp 10bc0e: 5b pop %ebx 10bc0f: 5e pop %esi 10bc10: 5f pop %edi 10bc11: c9 leave 10bc12: c3 ret 10bc13: 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 *) 10bc14: 8d 0c 76 lea (%esi,%esi,2),%ecx 10bc17: c1 e1 03 shl $0x3,%ecx 10bc1a: 83 ec 0c sub $0xc,%esp 10bc1d: 51 push %ecx 10bc1e: 89 4d dc mov %ecx,-0x24(%ebp) 10bc21: e8 7a 28 00 00 call 10e4a0 <_Workspace_Allocate_or_fatal_error> 10bc26: 89 c2 mov %eax,%edx 10bc28: a3 84 56 12 00 mov %eax,0x125684 _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; 10bc2d: 89 35 80 56 12 00 mov %esi,0x125680 memset( 10bc33: 31 c0 xor %eax,%eax 10bc35: 8b 4d dc mov -0x24(%ebp),%ecx 10bc38: 89 d7 mov %edx,%edi 10bc3a: 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++ ) 10bc3c: 83 c4 10 add $0x10,%esp 10bc3f: 8b 4d e4 mov -0x1c(%ebp),%ecx 10bc42: 85 c9 test %ecx,%ecx 10bc44: 74 c5 je 10bc0b <_IO_Manager_initialization+0x2f> <== ALWAYS TAKEN 10bc46: a1 84 56 12 00 mov 0x125684,%eax 10bc4b: 89 45 e0 mov %eax,-0x20(%ebp) 10bc4e: 31 c0 xor %eax,%eax 10bc50: 31 d2 xor %edx,%edx 10bc52: 66 90 xchg %ax,%ax _IO_Driver_address_table[index] = driver_table[index]; 10bc54: 8b 7d e0 mov -0x20(%ebp),%edi 10bc57: 01 c7 add %eax,%edi 10bc59: 8d 34 03 lea (%ebx,%eax,1),%esi 10bc5c: b9 06 00 00 00 mov $0x6,%ecx 10bc61: 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++ ) 10bc63: 42 inc %edx 10bc64: 83 c0 18 add $0x18,%eax 10bc67: 39 55 e4 cmp %edx,-0x1c(%ebp) 10bc6a: 77 e8 ja 10bc54 <_IO_Manager_initialization+0x78> _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } 10bc6c: 8d 65 f4 lea -0xc(%ebp),%esp 10bc6f: 5b pop %ebx 10bc70: 5e pop %esi 10bc71: 5f pop %edi 10bc72: c9 leave 10bc73: c3 ret 0010c668 <_ISR_Handler_initialization>: * * Output parameters: NONE */ void _ISR_Handler_initialization( void ) { 10c668: 55 push %ebp 10c669: 89 e5 mov %esp,%ebp 10c66b: 83 ec 08 sub $0x8,%esp _ISR_Signals_to_thread_executing = false; 10c66e: c6 05 a8 54 12 00 00 movb $0x0,0x1254a8 _ISR_Nest_level = 0; 10c675: c7 05 d4 53 12 00 00 movl $0x0,0x1253d4 10c67c: 00 00 00 _CPU_Initialize_vectors(); #if ( CPU_ALLOCATE_INTERRUPT_STACK == TRUE ) if ( !_Stack_Is_enough(Configuration.interrupt_stack_size) ) 10c67f: a1 3c 12 12 00 mov 0x12123c,%eax 10c684: 3b 05 10 12 12 00 cmp 0x121210,%eax 10c68a: 72 25 jb 10c6b1 <_ISR_Handler_initialization+0x49> INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL ); _CPU_Interrupt_stack_low = _Workspace_Allocate_or_fatal_error( 10c68c: 83 ec 0c sub $0xc,%esp 10c68f: 50 push %eax 10c690: e8 0b 1e 00 00 call 10e4a0 <_Workspace_Allocate_or_fatal_error> 10c695: a3 48 53 12 00 mov %eax,0x125348 /* Interrupt stack might have to be aligned and/or setup * in a specific way. */ #if defined(_CPU_Interrupt_stack_setup) _CPU_Interrupt_stack_setup(_CPU_Interrupt_stack_low, _CPU_Interrupt_stack_high); 10c69a: 8b 15 3c 12 12 00 mov 0x12123c,%edx 10c6a0: 8d 44 10 fc lea -0x4(%eax,%edx,1),%eax 10c6a4: 83 e0 f0 and $0xfffffff0,%eax 10c6a7: a3 08 53 12 00 mov %eax,0x125308 10c6ac: 83 c4 10 add $0x10,%esp #if ( CPU_HAS_HARDWARE_INTERRUPT_STACK == TRUE ) _CPU_Install_interrupt_stack(); #endif } 10c6af: c9 leave 10c6b0: c3 ret _CPU_Initialize_vectors(); #if ( CPU_ALLOCATE_INTERRUPT_STACK == TRUE ) if ( !_Stack_Is_enough(Configuration.interrupt_stack_size) ) _Internal_error_Occurred( 10c6b1: 50 push %eax 10c6b2: 6a 05 push $0x5 10c6b4: 6a 01 push $0x1 10c6b6: 6a 00 push $0x0 10c6b8: e8 6b ff ff ff call 10c628 <_Internal_error_Occurred> <== ALWAYS TAKEN 0010c628 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 10c628: 55 push %ebp 10c629: 89 e5 mov %esp,%ebp 10c62b: 53 push %ebx 10c62c: 83 ec 08 sub $0x8,%esp 10c62f: 8b 45 08 mov 0x8(%ebp),%eax 10c632: 8b 55 0c mov 0xc(%ebp),%edx 10c635: 8b 5d 10 mov 0x10(%ebp),%ebx _Internal_errors_What_happened.the_source = the_source; 10c638: a3 e0 53 12 00 mov %eax,0x1253e0 _Internal_errors_What_happened.is_internal = is_internal; 10c63d: 88 15 e4 53 12 00 mov %dl,0x1253e4 _Internal_errors_What_happened.the_error = the_error; 10c643: 89 1d e8 53 12 00 mov %ebx,0x1253e8 _User_extensions_Fatal( the_source, is_internal, the_error ); 10c649: 53 push %ebx 10c64a: 0f b6 d2 movzbl %dl,%edx 10c64d: 52 push %edx 10c64e: 50 push %eax 10c64f: e8 e4 1a 00 00 call 10e138 <_User_extensions_Fatal> RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; 10c654: c7 05 00 55 12 00 05 movl $0x5,0x125500 <== NOT EXECUTED 10c65b: 00 00 00 <== NOT EXECUTED _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); 10c65e: fa cli <== NOT EXECUTED 10c65f: 89 d8 mov %ebx,%eax <== NOT EXECUTED 10c661: f4 hlt <== NOT EXECUTED 10c662: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10c665: eb fe jmp 10c665 <_Internal_error_Occurred+0x3d> <== NOT EXECUTED 00110540 <_Objects_API_maximum_class>: #include unsigned int _Objects_API_maximum_class( uint32_t api ) { 110540: 55 push %ebp 110541: 89 e5 mov %esp,%ebp case OBJECTS_NO_API: default: break; } return 0; } 110543: 8b 45 08 mov 0x8(%ebp),%eax 110546: 48 dec %eax 110547: 83 f8 03 cmp $0x3,%eax 11054a: 77 0c ja 110558 <_Objects_API_maximum_class+0x18> 11054c: 8b 04 85 70 fe 11 00 mov 0x11fe70(,%eax,4),%eax 110553: c9 leave 110554: c3 ret 110555: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 110558: 31 c0 xor %eax,%eax 11055a: c9 leave 11055b: c3 ret 0010c6c0 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 10c6c0: 55 push %ebp 10c6c1: 89 e5 mov %esp,%ebp 10c6c3: 56 push %esi 10c6c4: 53 push %ebx 10c6c5: 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 ) 10c6c8: 8b 43 18 mov 0x18(%ebx),%eax 10c6cb: 85 c0 test %eax,%eax 10c6cd: 75 0d jne 10c6dc <_Objects_Allocate+0x1c> <== NEVER TAKEN 10c6cf: 31 c9 xor %ecx,%ecx <== NOT EXECUTED information->inactive--; } } return the_object; } 10c6d1: 89 c8 mov %ecx,%eax 10c6d3: 8d 65 f8 lea -0x8(%ebp),%esp 10c6d6: 5b pop %ebx 10c6d7: 5e pop %esi 10c6d8: c9 leave 10c6d9: c3 ret 10c6da: 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 ); 10c6dc: 8d 73 20 lea 0x20(%ebx),%esi 10c6df: 83 ec 0c sub $0xc,%esp 10c6e2: 56 push %esi 10c6e3: e8 68 f7 ff ff call 10be50 <_Chain_Get> <== ALWAYS TAKEN 10c6e8: 89 c1 mov %eax,%ecx if ( information->auto_extend ) { 10c6ea: 83 c4 10 add $0x10,%esp 10c6ed: 80 7b 12 00 cmpb $0x0,0x12(%ebx) 10c6f1: 74 de je 10c6d1 <_Objects_Allocate+0x11> /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { 10c6f3: 85 c0 test %eax,%eax 10c6f5: 74 29 je 10c720 <_Objects_Allocate+0x60> } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 10c6f7: 0f b7 41 08 movzwl 0x8(%ecx),%eax 10c6fb: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10c6ff: 29 d0 sub %edx,%eax _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 10c701: 0f b7 73 14 movzwl 0x14(%ebx),%esi 10c705: 31 d2 xor %edx,%edx 10c707: f7 f6 div %esi 10c709: c1 e0 02 shl $0x2,%eax 10c70c: 03 43 30 add 0x30(%ebx),%eax 10c70f: ff 08 decl (%eax) information->inactive--; 10c711: 66 ff 4b 2c decw 0x2c(%ebx) } } return the_object; } 10c715: 89 c8 mov %ecx,%eax 10c717: 8d 65 f8 lea -0x8(%ebp),%esp 10c71a: 5b pop %ebx 10c71b: 5e pop %esi 10c71c: c9 leave 10c71d: c3 ret 10c71e: 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 ); 10c720: 83 ec 0c sub $0xc,%esp 10c723: 53 push %ebx 10c724: e8 3b 00 00 00 call 10c764 <_Objects_Extend_information> <== ALWAYS TAKEN the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 10c729: 89 34 24 mov %esi,(%esp) 10c72c: e8 1f f7 ff ff call 10be50 <_Chain_Get> <== ALWAYS TAKEN 10c731: 89 c1 mov %eax,%ecx } if ( the_object ) { 10c733: 83 c4 10 add $0x10,%esp 10c736: 85 c0 test %eax,%eax 10c738: 74 97 je 10c6d1 <_Objects_Allocate+0x11> 10c73a: eb bb jmp 10c6f7 <_Objects_Allocate+0x37> <== ALWAYS TAKEN 0010c73c <_Objects_Close>: void _Objects_Close( Objects_Information *information, Objects_Control *the_object ) { 10c73c: 55 push %ebp 10c73d: 89 e5 mov %esp,%ebp 10c73f: 53 push %ebx 10c740: 83 ec 04 sub $0x4,%esp 10c743: 8b 45 08 mov 0x8(%ebp),%eax 10c746: 8b 55 0c mov 0xc(%ebp),%edx #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 10c749: 0f b7 5a 08 movzwl 0x8(%edx),%ebx 10c74d: 8b 48 1c mov 0x1c(%eax),%ecx 10c750: c7 04 99 00 00 00 00 movl $0x0,(%ecx,%ebx,4) _Objects_Invalidate_Id( information, the_object ); _Objects_Namespace_remove( information, the_object ); 10c757: 89 55 0c mov %edx,0xc(%ebp) } 10c75a: 58 pop %eax 10c75b: 5b pop %ebx 10c75c: c9 leave Objects_Control *the_object ) { _Objects_Invalidate_Id( information, the_object ); _Objects_Namespace_remove( information, the_object ); 10c75d: e9 56 05 00 00 jmp 10ccb8 <_Objects_Namespace_remove> <== ALWAYS TAKEN 0010c764 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 10c764: 55 push %ebp 10c765: 89 e5 mov %esp,%ebp 10c767: 57 push %edi 10c768: 56 push %esi 10c769: 53 push %ebx 10c76a: 83 ec 4c sub $0x4c,%esp 10c76d: 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 ); 10c770: 0f b7 43 08 movzwl 0x8(%ebx),%eax 10c774: 89 45 d0 mov %eax,-0x30(%ebp) index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 10c777: 8b 4b 34 mov 0x34(%ebx),%ecx 10c77a: 85 c9 test %ecx,%ecx 10c77c: 0f 84 72 02 00 00 je 10c9f4 <_Objects_Extend_information+0x290> block_count = 0; else { block_count = information->maximum / information->allocation_size; 10c782: 8b 7b 10 mov 0x10(%ebx),%edi 10c785: 66 89 7d d4 mov %di,-0x2c(%ebp) 10c789: 8b 7b 14 mov 0x14(%ebx),%edi 10c78c: 31 d2 xor %edx,%edx 10c78e: 8b 45 d4 mov -0x2c(%ebp),%eax 10c791: 66 f7 f7 div %di 10c794: 0f b7 f0 movzwl %ax,%esi for ( ; block < block_count; block++ ) { 10c797: 85 f6 test %esi,%esi 10c799: 0f 84 6c 02 00 00 je 10ca0b <_Objects_Extend_information+0x2a7> <== ALWAYS TAKEN if ( information->object_blocks[ block ] == NULL ) 10c79f: 8b 01 mov (%ecx),%eax 10c7a1: 85 c0 test %eax,%eax 10c7a3: 0f 84 72 02 00 00 je 10ca1b <_Objects_Extend_information+0x2b7> <== ALWAYS TAKEN 10c7a9: 0f b7 ff movzwl %di,%edi 10c7ac: 8b 55 d0 mov -0x30(%ebp),%edx 10c7af: 89 55 cc mov %edx,-0x34(%ebp) 10c7b2: 31 d2 xor %edx,%edx 10c7b4: 8b 45 cc mov -0x34(%ebp),%eax 10c7b7: eb 09 jmp 10c7c2 <_Objects_Extend_information+0x5e> <== ALWAYS TAKEN 10c7b9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10c7bc: 83 3c 91 00 cmpl $0x0,(%ecx,%edx,4) 10c7c0: 74 07 je 10c7c9 <_Objects_Extend_information+0x65> break; else index_base += information->allocation_size; 10c7c2: 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++ ) { 10c7c4: 42 inc %edx 10c7c5: 39 d6 cmp %edx,%esi 10c7c7: 77 f3 ja 10c7bc <_Objects_Extend_information+0x58> 10c7c9: 89 45 cc mov %eax,-0x34(%ebp) else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 10c7cc: 0f b7 45 d4 movzwl -0x2c(%ebp),%eax 10c7d0: 01 f8 add %edi,%eax 10c7d2: 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 ) { 10c7d5: 3d ff ff 00 00 cmp $0xffff,%eax 10c7da: 0f 87 b1 01 00 00 ja 10c991 <_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; 10c7e0: 0f af 7b 18 imul 0x18(%ebx),%edi if ( information->auto_extend ) { 10c7e4: 80 7b 12 00 cmpb $0x0,0x12(%ebx) 10c7e8: 0f 85 ae 01 00 00 jne 10c99c <_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 ); 10c7ee: 83 ec 0c sub $0xc,%esp 10c7f1: 57 push %edi 10c7f2: 89 55 b4 mov %edx,-0x4c(%ebp) 10c7f5: e8 a6 1c 00 00 call 10e4a0 <_Workspace_Allocate_or_fatal_error> 10c7fa: 89 45 c4 mov %eax,-0x3c(%ebp) 10c7fd: 83 c4 10 add $0x10,%esp 10c800: 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 ) { 10c803: 0f b7 43 10 movzwl 0x10(%ebx),%eax 10c807: 39 45 cc cmp %eax,-0x34(%ebp) 10c80a: 0f 82 fe 00 00 00 jb 10c90e <_Objects_Extend_information+0x1aa> */ /* * Up the block count and maximum */ block_count++; 10c810: 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 ); 10c813: 83 ec 0c sub $0xc,%esp 10c816: 8d 04 7f lea (%edi,%edi,2),%eax 10c819: 03 45 d4 add -0x2c(%ebp),%eax 10c81c: 03 45 d0 add -0x30(%ebp),%eax 10c81f: c1 e0 02 shl $0x2,%eax 10c822: 50 push %eax 10c823: 89 55 b4 mov %edx,-0x4c(%ebp) 10c826: e8 a1 1c 00 00 call 10e4cc <_Workspace_Allocate> 10c82b: 89 45 c8 mov %eax,-0x38(%ebp) if ( !object_blocks ) { 10c82e: 83 c4 10 add $0x10,%esp 10c831: 85 c0 test %eax,%eax 10c833: 8b 55 b4 mov -0x4c(%ebp),%edx 10c836: 0f 84 ef 01 00 00 je 10ca2b <_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); 10c83c: 8b 45 c8 mov -0x38(%ebp),%eax 10c83f: 8d 04 b8 lea (%eax,%edi,4),%eax 10c842: 89 45 b8 mov %eax,-0x48(%ebp) 10c845: 8b 4d c8 mov -0x38(%ebp),%ecx 10c848: 8d 3c f9 lea (%ecx,%edi,8),%edi 10c84b: 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 ) { 10c84e: 0f b7 43 10 movzwl 0x10(%ebx),%eax 10c852: 39 45 d0 cmp %eax,-0x30(%ebp) 10c855: 0f 82 60 01 00 00 jb 10c9bb <_Objects_Extend_information+0x257> } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 10c85b: 8b 45 d0 mov -0x30(%ebp),%eax 10c85e: 85 c0 test %eax,%eax 10c860: 74 16 je 10c878 <_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, 10c862: 31 c0 xor %eax,%eax 10c864: 8b 4d bc mov -0x44(%ebp),%ecx 10c867: 8b 7d d0 mov -0x30(%ebp),%edi 10c86a: 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; 10c86c: 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++ ) { 10c873: 40 inc %eax 10c874: 39 c7 cmp %eax,%edi 10c876: 77 f4 ja 10c86c <_Objects_Extend_information+0x108> <== ALWAYS TAKEN 10c878: c1 e6 02 shl $0x2,%esi 10c87b: 89 75 c0 mov %esi,-0x40(%ebp) } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 10c87e: 8b 45 c8 mov -0x38(%ebp),%eax 10c881: 8b 7d c0 mov -0x40(%ebp),%edi 10c884: c7 04 38 00 00 00 00 movl $0x0,(%eax,%edi,1) inactive_per_block[block_count] = 0; 10c88b: 8b 4d b8 mov -0x48(%ebp),%ecx 10c88e: c7 04 39 00 00 00 00 movl $0x0,(%ecx,%edi,1) for ( index=index_base ; index < ( information->allocation_size + index_base ); 10c895: 0f b7 73 14 movzwl 0x14(%ebx),%esi 10c899: 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 ; 10c89c: 39 75 cc cmp %esi,-0x34(%ebp) 10c89f: 73 19 jae 10c8ba <_Objects_Extend_information+0x156> <== ALWAYS TAKEN 10c8a1: 8b 7d cc mov -0x34(%ebp),%edi 10c8a4: 8b 45 bc mov -0x44(%ebp),%eax 10c8a7: 8d 0c b8 lea (%eax,%edi,4),%ecx 10c8aa: 89 f8 mov %edi,%eax index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; 10c8ac: 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++ ) { 10c8b2: 40 inc %eax 10c8b3: 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 ; 10c8b6: 39 c6 cmp %eax,%esi 10c8b8: 77 f2 ja 10c8ac <_Objects_Extend_information+0x148> index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 10c8ba: 9c pushf 10c8bb: fa cli 10c8bc: 5f pop %edi old_tables = information->object_blocks; 10c8bd: 8b 4b 34 mov 0x34(%ebx),%ecx information->object_blocks = object_blocks; 10c8c0: 8b 45 c8 mov -0x38(%ebp),%eax 10c8c3: 89 43 34 mov %eax,0x34(%ebx) information->inactive_per_block = inactive_per_block; 10c8c6: 8b 45 b8 mov -0x48(%ebp),%eax 10c8c9: 89 43 30 mov %eax,0x30(%ebx) information->local_table = local_table; 10c8cc: 8b 45 bc mov -0x44(%ebp),%eax 10c8cf: 89 43 1c mov %eax,0x1c(%ebx) information->maximum = (Objects_Maximum) maximum; 10c8d2: 8b 45 d4 mov -0x2c(%ebp),%eax 10c8d5: 66 89 43 10 mov %ax,0x10(%ebx) information->maximum_id = _Objects_Build_id( 10c8d9: 8b 33 mov (%ebx),%esi 10c8db: c1 e6 18 shl $0x18,%esi 10c8de: 81 ce 00 00 01 00 or $0x10000,%esi 10c8e4: 0f b7 43 04 movzwl 0x4(%ebx),%eax 10c8e8: c1 e0 1b shl $0x1b,%eax 10c8eb: 09 c6 or %eax,%esi 10c8ed: 0f b7 45 d4 movzwl -0x2c(%ebp),%eax 10c8f1: 09 c6 or %eax,%esi 10c8f3: 89 73 0c mov %esi,0xc(%ebx) information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 10c8f6: 57 push %edi 10c8f7: 9d popf if ( old_tables ) 10c8f8: 85 c9 test %ecx,%ecx 10c8fa: 74 12 je 10c90e <_Objects_Extend_information+0x1aa> _Workspace_Free( old_tables ); 10c8fc: 83 ec 0c sub $0xc,%esp 10c8ff: 51 push %ecx 10c900: 89 55 b4 mov %edx,-0x4c(%ebp) 10c903: e8 e0 1b 00 00 call 10e4e8 <_Workspace_Free> 10c908: 83 c4 10 add $0x10,%esp 10c90b: 8b 55 b4 mov -0x4c(%ebp),%edx } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 10c90e: c1 e2 02 shl $0x2,%edx 10c911: 89 55 d0 mov %edx,-0x30(%ebp) 10c914: 8b 43 34 mov 0x34(%ebx),%eax 10c917: 8b 4d c4 mov -0x3c(%ebp),%ecx 10c91a: 89 0c 10 mov %ecx,(%eax,%edx,1) /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 10c91d: ff 73 18 pushl 0x18(%ebx) 10c920: 0f b7 53 14 movzwl 0x14(%ebx),%edx 10c924: 52 push %edx 10c925: 8b 7d d0 mov -0x30(%ebp),%edi 10c928: ff 34 38 pushl (%eax,%edi,1) 10c92b: 8d 7d dc lea -0x24(%ebp),%edi 10c92e: 57 push %edi 10c92f: e8 ac 36 00 00 call 10ffe0 <_Chain_Initialize> information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 10c934: 8d 43 20 lea 0x20(%ebx),%eax 10c937: 89 45 d4 mov %eax,-0x2c(%ebp) 10c93a: 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 ) { 10c93d: 83 c4 10 add $0x10,%esp 10c940: eb 2b jmp 10c96d <_Objects_Extend_information+0x209> <== ALWAYS TAKEN 10c942: 66 90 xchg %ax,%ax <== NOT EXECUTED the_object->id = _Objects_Build_id( 10c944: 8b 13 mov (%ebx),%edx 10c946: c1 e2 18 shl $0x18,%edx 10c949: 81 ca 00 00 01 00 or $0x10000,%edx 10c94f: 0f b7 4b 04 movzwl 0x4(%ebx),%ecx 10c953: c1 e1 1b shl $0x1b,%ecx 10c956: 09 ca or %ecx,%edx 10c958: 09 f2 or %esi,%edx 10c95a: 89 50 08 mov %edx,0x8(%eax) information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 10c95d: 83 ec 08 sub $0x8,%esp 10c960: 50 push %eax 10c961: ff 75 d4 pushl -0x2c(%ebp) 10c964: e8 c3 f4 ff ff call 10be2c <_Chain_Append> <== ALWAYS TAKEN index++; 10c969: 46 inc %esi 10c96a: 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 ) { 10c96d: 83 ec 0c sub $0xc,%esp 10c970: 57 push %edi 10c971: e8 da f4 ff ff call 10be50 <_Chain_Get> <== ALWAYS TAKEN 10c976: 83 c4 10 add $0x10,%esp 10c979: 85 c0 test %eax,%eax 10c97b: 75 c7 jne 10c944 <_Objects_Extend_information+0x1e0> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 10c97d: 8b 43 30 mov 0x30(%ebx),%eax 10c980: 0f b7 53 14 movzwl 0x14(%ebx),%edx 10c984: 8b 4d d0 mov -0x30(%ebp),%ecx 10c987: 89 14 08 mov %edx,(%eax,%ecx,1) information->inactive = 10c98a: 8b 43 14 mov 0x14(%ebx),%eax 10c98d: 66 01 43 2c add %ax,0x2c(%ebx) (Objects_Maximum)(information->inactive + information->allocation_size); } 10c991: 8d 65 f4 lea -0xc(%ebp),%esp 10c994: 5b pop %ebx 10c995: 5e pop %esi 10c996: 5f pop %edi 10c997: c9 leave 10c998: c3 ret 10c999: 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 ); 10c99c: 83 ec 0c sub $0xc,%esp 10c99f: 57 push %edi 10c9a0: 89 55 b4 mov %edx,-0x4c(%ebp) 10c9a3: e8 24 1b 00 00 call 10e4cc <_Workspace_Allocate> 10c9a8: 89 45 c4 mov %eax,-0x3c(%ebp) if ( !new_object_block ) 10c9ab: 83 c4 10 add $0x10,%esp 10c9ae: 85 c0 test %eax,%eax 10c9b0: 8b 55 b4 mov -0x4c(%ebp),%edx 10c9b3: 0f 85 4a fe ff ff jne 10c803 <_Objects_Extend_information+0x9f> 10c9b9: eb d6 jmp 10c991 <_Objects_Extend_information+0x22d> <== ALWAYS TAKEN /* * 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, 10c9bb: c1 e6 02 shl $0x2,%esi 10c9be: 89 75 c0 mov %esi,-0x40(%ebp) 10c9c1: 8b 73 34 mov 0x34(%ebx),%esi 10c9c4: 8b 7d c8 mov -0x38(%ebp),%edi 10c9c7: 8b 4d c0 mov -0x40(%ebp),%ecx 10c9ca: f3 a4 rep movsb %ds:(%esi),%es:(%edi) information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 10c9cc: 8b 73 30 mov 0x30(%ebx),%esi 10c9cf: 8b 7d b8 mov -0x48(%ebp),%edi 10c9d2: 8b 4d c0 mov -0x40(%ebp),%ecx 10c9d5: f3 a4 rep movsb %ds:(%esi),%es:(%edi) information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 10c9d7: 0f b7 43 10 movzwl 0x10(%ebx),%eax 10c9db: 03 45 d0 add -0x30(%ebp),%eax 10c9de: 8d 0c 85 00 00 00 00 lea 0x0(,%eax,4),%ecx 10c9e5: 8b 73 1c mov 0x1c(%ebx),%esi 10c9e8: 8b 7d bc mov -0x44(%ebp),%edi 10c9eb: f3 a4 rep movsb %ds:(%esi),%es:(%edi) 10c9ed: e9 8c fe ff ff jmp 10c87e <_Objects_Extend_information+0x11a> <== ALWAYS TAKEN 10c9f2: 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 ) 10c9f4: 8b 53 10 mov 0x10(%ebx),%edx 10c9f7: 66 89 55 d4 mov %dx,-0x2c(%ebp) 10c9fb: 0f b7 7b 14 movzwl 0x14(%ebx),%edi 10c9ff: 89 45 cc mov %eax,-0x34(%ebp) 10ca02: 31 d2 xor %edx,%edx 10ca04: 31 f6 xor %esi,%esi 10ca06: e9 c1 fd ff ff jmp 10c7cc <_Objects_Extend_information+0x68> <== ALWAYS TAKEN block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 10ca0b: 0f b7 ff movzwl %di,%edi <== NOT EXECUTED 10ca0e: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED 10ca11: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED 10ca14: 31 d2 xor %edx,%edx <== NOT EXECUTED 10ca16: e9 b1 fd ff ff jmp 10c7cc <_Objects_Extend_information+0x68> <== NOT EXECUTED if ( information->object_blocks[ block ] == NULL ) 10ca1b: 0f b7 ff movzwl %di,%edi <== NOT EXECUTED 10ca1e: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED 10ca21: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED 10ca24: 31 d2 xor %edx,%edx <== NOT EXECUTED 10ca26: e9 a1 fd ff ff jmp 10c7cc <_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 ); 10ca2b: 83 ec 0c sub $0xc,%esp 10ca2e: ff 75 c4 pushl -0x3c(%ebp) 10ca31: e8 b2 1a 00 00 call 10e4e8 <_Workspace_Free> return; 10ca36: 83 c4 10 add $0x10,%esp 10ca39: e9 53 ff ff ff jmp 10c991 <_Objects_Extend_information+0x22d> <== ALWAYS TAKEN 0010ca40 <_Objects_Free>: void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { 10ca40: 55 push %ebp 10ca41: 89 e5 mov %esp,%ebp 10ca43: 57 push %edi 10ca44: 56 push %esi 10ca45: 53 push %ebx 10ca46: 83 ec 14 sub $0x14,%esp 10ca49: 8b 5d 08 mov 0x8(%ebp),%ebx 10ca4c: 8b 75 0c mov 0xc(%ebp),%esi uint32_t allocation_size = information->allocation_size; 10ca4f: 8b 7b 14 mov 0x14(%ebx),%edi _Chain_Append( &information->Inactive, &the_object->Node ); 10ca52: 56 push %esi 10ca53: 8d 43 20 lea 0x20(%ebx),%eax 10ca56: 50 push %eax 10ca57: e8 d0 f3 ff ff call 10be2c <_Chain_Append> <== ALWAYS TAKEN if ( information->auto_extend ) { 10ca5c: 83 c4 10 add $0x10,%esp 10ca5f: 80 7b 12 00 cmpb $0x0,0x12(%ebx) 10ca63: 74 33 je 10ca98 <_Objects_Free+0x58> void _Objects_Free( Objects_Information *information, Objects_Control *the_object ) { uint32_t allocation_size = information->allocation_size; 10ca65: 0f b7 cf movzwl %di,%ecx _Chain_Append( &information->Inactive, &the_object->Node ); if ( information->auto_extend ) { uint32_t block; block = (uint32_t) (_Objects_Get_index( the_object->id ) - 10ca68: 0f b7 46 08 movzwl 0x8(%esi),%eax 10ca6c: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10ca70: 29 d0 sub %edx,%eax _Objects_Get_index( information->minimum_id )); block /= information->allocation_size; information->inactive_per_block[ block ]++; 10ca72: 0f b7 73 14 movzwl 0x14(%ebx),%esi 10ca76: 31 d2 xor %edx,%edx 10ca78: f7 f6 div %esi 10ca7a: c1 e0 02 shl $0x2,%eax 10ca7d: 03 43 30 add 0x30(%ebx),%eax 10ca80: ff 00 incl (%eax) information->inactive++; 10ca82: 8b 43 2c mov 0x2c(%ebx),%eax 10ca85: 40 inc %eax 10ca86: 66 89 43 2c mov %ax,0x2c(%ebx) /* * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { 10ca8a: 0f b7 c0 movzwl %ax,%eax 10ca8d: 89 ca mov %ecx,%edx 10ca8f: d1 ea shr %edx 10ca91: 8d 0c 0a lea (%edx,%ecx,1),%ecx 10ca94: 39 c8 cmp %ecx,%eax 10ca96: 77 08 ja 10caa0 <_Objects_Free+0x60> _Objects_Shrink_information( information ); } } } 10ca98: 8d 65 f4 lea -0xc(%ebp),%esp 10ca9b: 5b pop %ebx 10ca9c: 5e pop %esi 10ca9d: 5f pop %edi 10ca9e: c9 leave 10ca9f: c3 ret * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { _Objects_Shrink_information( information ); 10caa0: 89 5d 08 mov %ebx,0x8(%ebp) } } } 10caa3: 8d 65 f4 lea -0xc(%ebp),%esp 10caa6: 5b pop %ebx 10caa7: 5e pop %esi 10caa8: 5f pop %edi 10caa9: c9 leave * Check if the threshold level has been met of * 1.5 x allocation_size are free. */ if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) { _Objects_Shrink_information( information ); 10caaa: e9 91 02 00 00 jmp 10cd40 <_Objects_Shrink_information> <== ALWAYS TAKEN 0010cb70 <_Objects_Get>: Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 10cb70: 55 push %ebp 10cb71: 89 e5 mov %esp,%ebp 10cb73: 53 push %ebx 10cb74: 83 ec 14 sub $0x14,%esp 10cb77: 8b 55 08 mov 0x8(%ebp),%edx 10cb7a: 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; 10cb7d: b8 01 00 00 00 mov $0x1,%eax 10cb82: 2b 42 08 sub 0x8(%edx),%eax 10cb85: 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 ) { 10cb88: 0f b7 4a 10 movzwl 0x10(%edx),%ecx 10cb8c: 39 c8 cmp %ecx,%eax 10cb8e: 77 24 ja 10cbb4 <_Objects_Get+0x44> 10cb90: 8b 0d 38 53 12 00 mov 0x125338,%ecx 10cb96: 41 inc %ecx 10cb97: 89 0d 38 53 12 00 mov %ecx,0x125338 _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { 10cb9d: 8b 52 1c mov 0x1c(%edx),%edx 10cba0: 8b 04 82 mov (%edx,%eax,4),%eax 10cba3: 85 c0 test %eax,%eax 10cba5: 74 1b je 10cbc2 <_Objects_Get+0x52> *location = OBJECTS_LOCAL; 10cba7: 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 } 10cbad: 83 c4 14 add $0x14,%esp 10cbb0: 5b pop %ebx 10cbb1: c9 leave 10cbb2: c3 ret 10cbb3: 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; 10cbb4: c7 03 01 00 00 00 movl $0x1,(%ebx) 10cbba: 31 c0 xor %eax,%eax _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 10cbbc: 83 c4 14 add $0x14,%esp 10cbbf: 5b pop %ebx 10cbc0: c9 leave 10cbc1: c3 ret /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); 10cbc2: 89 45 f4 mov %eax,-0xc(%ebp) 10cbc5: e8 ee 07 00 00 call 10d3b8 <_Thread_Enable_dispatch> <== ALWAYS TAKEN *location = OBJECTS_ERROR; 10cbca: c7 03 01 00 00 00 movl $0x1,(%ebx) return NULL; 10cbd0: 8b 45 f4 mov -0xc(%ebp),%eax 10cbd3: eb d8 jmp 10cbad <_Objects_Get+0x3d> <== ALWAYS TAKEN 0010cad0 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint32_t the_class ) { 10cad0: 55 push %ebp 10cad1: 89 e5 mov %esp,%ebp 10cad3: 56 push %esi 10cad4: 53 push %ebx 10cad5: 8b 75 08 mov 0x8(%ebp),%esi 10cad8: 8b 5d 0c mov 0xc(%ebp),%ebx Objects_Information *info; int the_class_api_maximum; if ( !the_class ) 10cadb: 85 db test %ebx,%ebx 10cadd: 75 09 jne 10cae8 <_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 ) 10cadf: 31 c0 xor %eax,%eax return NULL; #endif return info; } 10cae1: 8d 65 f8 lea -0x8(%ebp),%esp 10cae4: 5b pop %ebx 10cae5: 5e pop %esi 10cae6: c9 leave 10cae7: 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 ); 10cae8: 83 ec 0c sub $0xc,%esp 10caeb: 56 push %esi 10caec: e8 4f 3a 00 00 call 110540 <_Objects_API_maximum_class> <== ALWAYS TAKEN if ( the_class_api_maximum == 0 ) 10caf1: 83 c4 10 add $0x10,%esp 10caf4: 85 c0 test %eax,%eax 10caf6: 74 e7 je 10cadf <_Objects_Get_information+0xf> return NULL; if ( the_class > (uint32_t) the_class_api_maximum ) 10caf8: 39 c3 cmp %eax,%ebx 10cafa: 77 e3 ja 10cadf <_Objects_Get_information+0xf> return NULL; if ( !_Objects_Information_table[ the_api ] ) 10cafc: 8b 04 b5 0c 53 12 00 mov 0x12530c(,%esi,4),%eax 10cb03: 85 c0 test %eax,%eax 10cb05: 74 d8 je 10cadf <_Objects_Get_information+0xf> <== ALWAYS TAKEN return NULL; info = _Objects_Information_table[ the_api ][ the_class ]; 10cb07: 8b 04 98 mov (%eax,%ebx,4),%eax if ( !info ) 10cb0a: 85 c0 test %eax,%eax 10cb0c: 74 d3 je 10cae1 <_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 ) 10cb0e: 66 83 78 10 00 cmpw $0x0,0x10(%eax) 10cb13: 75 cc jne 10cae1 <_Objects_Get_information+0x11> 10cb15: eb c8 jmp 10cadf <_Objects_Get_information+0xf> <== ALWAYS TAKEN 0010cab0 <_Objects_Get_information_id>: #include Objects_Information *_Objects_Get_information_id( Objects_Id id ) { 10cab0: 55 push %ebp 10cab1: 89 e5 mov %esp,%ebp 10cab3: 83 ec 10 sub $0x10,%esp 10cab6: 8b 45 08 mov 0x8(%ebp),%eax return _Objects_Get_information( 10cab9: 89 c2 mov %eax,%edx 10cabb: c1 ea 1b shr $0x1b,%edx 10cabe: 52 push %edx 10cabf: c1 e8 18 shr $0x18,%eax 10cac2: 83 e0 07 and $0x7,%eax 10cac5: 50 push %eax 10cac6: e8 05 00 00 00 call 10cad0 <_Objects_Get_information> <== ALWAYS TAKEN _Objects_Get_API( id ), _Objects_Get_class( id ) ); } 10cacb: c9 leave 10cacc: c3 ret 0010cb18 <_Objects_Get_isr_disable>: Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 10cb18: 55 push %ebp 10cb19: 89 e5 mov %esp,%ebp 10cb1b: 56 push %esi 10cb1c: 53 push %ebx 10cb1d: 8b 55 08 mov 0x8(%ebp),%edx 10cb20: 8b 5d 10 mov 0x10(%ebp),%ebx Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; 10cb23: b8 01 00 00 00 mov $0x1,%eax 10cb28: 2b 42 08 sub 0x8(%edx),%eax 10cb2b: 03 45 0c add 0xc(%ebp),%eax _ISR_Disable( level ); 10cb2e: 9c pushf 10cb2f: fa cli 10cb30: 5e pop %esi if ( information->maximum >= index ) { 10cb31: 0f b7 4a 10 movzwl 0x10(%edx),%ecx 10cb35: 39 c8 cmp %ecx,%eax 10cb37: 77 1b ja 10cb54 <_Objects_Get_isr_disable+0x3c> if ( (the_object = information->local_table[ index ]) != NULL ) { 10cb39: 8b 52 1c mov 0x1c(%edx),%edx 10cb3c: 8b 04 82 mov (%edx,%eax,4),%eax 10cb3f: 85 c0 test %eax,%eax 10cb41: 74 21 je 10cb64 <_Objects_Get_isr_disable+0x4c> *location = OBJECTS_LOCAL; 10cb43: c7 03 00 00 00 00 movl $0x0,(%ebx) *level_p = level; 10cb49: 8b 55 14 mov 0x14(%ebp),%edx 10cb4c: 89 32 mov %esi,(%edx) _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 10cb4e: 5b pop %ebx 10cb4f: 5e pop %esi 10cb50: c9 leave 10cb51: c3 ret 10cb52: 66 90 xchg %ax,%ax <== NOT EXECUTED } _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); 10cb54: 56 push %esi 10cb55: 9d popf *location = OBJECTS_ERROR; 10cb56: c7 03 01 00 00 00 movl $0x1,(%ebx) 10cb5c: 31 c0 xor %eax,%eax _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 10cb5e: 5b pop %ebx 10cb5f: 5e pop %esi 10cb60: c9 leave 10cb61: c3 ret 10cb62: 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 ); 10cb64: 56 push %esi 10cb65: 9d popf *location = OBJECTS_ERROR; 10cb66: c7 03 01 00 00 00 movl $0x1,(%ebx) return NULL; 10cb6c: eb e0 jmp 10cb4e <_Objects_Get_isr_disable+0x36> <== ALWAYS TAKEN 00117d04 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { 117d04: 55 push %ebp 117d05: 89 e5 mov %esp,%ebp 117d07: 57 push %edi 117d08: 56 push %esi 117d09: 53 push %ebx 117d0a: 83 ec 2c sub $0x2c,%esp 117d0d: 8b 7d 08 mov 0x8(%ebp),%edi 117d10: 8b 75 0c mov 0xc(%ebp),%esi 117d13: 8b 5d 10 mov 0x10(%ebp),%ebx char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) 117d16: 85 f6 test %esi,%esi 117d18: 75 0e jne 117d28 <_Objects_Get_name_as_string+0x24> } } *d = '\0'; _Thread_Enable_dispatch(); return name; 117d1a: 31 db xor %ebx,%ebx } return NULL; /* unreachable path */ } 117d1c: 89 d8 mov %ebx,%eax 117d1e: 8d 65 f4 lea -0xc(%ebp),%esp 117d21: 5b pop %ebx 117d22: 5e pop %esi 117d23: 5f pop %edi 117d24: c9 leave 117d25: c3 ret 117d26: 66 90 xchg %ax,%ax <== NOT EXECUTED Objects_Id tmpId; if ( length == 0 ) return NULL; if ( name == NULL ) 117d28: 85 db test %ebx,%ebx 117d2a: 74 f0 je 117d1c <_Objects_Get_name_as_string+0x18> return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 117d2c: 85 ff test %edi,%edi 117d2e: 75 08 jne 117d38 <_Objects_Get_name_as_string+0x34> 117d30: a1 18 39 13 00 mov 0x133918,%eax 117d35: 8b 78 08 mov 0x8(%eax),%edi information = _Objects_Get_information_id( tmpId ); 117d38: 83 ec 0c sub $0xc,%esp 117d3b: 57 push %edi 117d3c: e8 6f 9a ff ff call 1117b0 <_Objects_Get_information_id> <== ALWAYS TAKEN if ( !information ) 117d41: 83 c4 10 add $0x10,%esp 117d44: 85 c0 test %eax,%eax 117d46: 74 d2 je 117d1a <_Objects_Get_name_as_string+0x16> return NULL; the_object = _Objects_Get( information, tmpId, &location ); 117d48: 51 push %ecx 117d49: 8d 55 e4 lea -0x1c(%ebp),%edx 117d4c: 52 push %edx 117d4d: 57 push %edi 117d4e: 50 push %eax 117d4f: e8 1c 9b ff ff call 111870 <_Objects_Get> <== ALWAYS TAKEN switch ( location ) { 117d54: 83 c4 10 add $0x10,%esp 117d57: 8b 55 e4 mov -0x1c(%ebp),%edx 117d5a: 85 d2 test %edx,%edx 117d5c: 75 bc jne 117d1a <_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; 117d5e: 8b 50 0c mov 0xc(%eax),%edx lname[ 0 ] = (u32_name >> 24) & 0xff; 117d61: 89 d1 mov %edx,%ecx 117d63: c1 e9 18 shr $0x18,%ecx 117d66: 88 c8 mov %cl,%al 117d68: 88 4d df mov %cl,-0x21(%ebp) lname[ 1 ] = (u32_name >> 16) & 0xff; 117d6b: 89 d1 mov %edx,%ecx 117d6d: c1 e9 10 shr $0x10,%ecx 117d70: 88 4d e0 mov %cl,-0x20(%ebp) lname[ 2 ] = (u32_name >> 8) & 0xff; 117d73: 89 d1 mov %edx,%ecx 117d75: c1 e9 08 shr $0x8,%ecx 117d78: 88 4d e1 mov %cl,-0x1f(%ebp) lname[ 3 ] = (u32_name >> 0) & 0xff; 117d7b: 88 55 e2 mov %dl,-0x1e(%ebp) lname[ 4 ] = '\0'; 117d7e: c6 45 e3 00 movb $0x0,-0x1d(%ebp) s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 117d82: 4e dec %esi 117d83: 89 75 d4 mov %esi,-0x2c(%ebp) 117d86: 74 3c je 117dc4 <_Objects_Get_name_as_string+0xc0> <== ALWAYS TAKEN 117d88: 84 c0 test %al,%al 117d8a: 74 38 je 117dc4 <_Objects_Get_name_as_string+0xc0> 117d8c: 89 d9 mov %ebx,%ecx 117d8e: 31 d2 xor %edx,%edx 117d90: eb 0a jmp 117d9c <_Objects_Get_name_as_string+0x98> <== ALWAYS TAKEN 117d92: 66 90 xchg %ax,%ax <== NOT EXECUTED 117d94: 8a 44 15 df mov -0x21(%ebp,%edx,1),%al 117d98: 84 c0 test %al,%al 117d9a: 74 1b je 117db7 <_Objects_Get_name_as_string+0xb3> *d = (isprint((unsigned char)*s)) ? *s : '*'; 117d9c: 0f b6 f0 movzbl %al,%esi 117d9f: 8b 3d b8 0e 13 00 mov 0x130eb8,%edi 117da5: f6 44 37 01 97 testb $0x97,0x1(%edi,%esi,1) 117daa: 75 02 jne 117dae <_Objects_Get_name_as_string+0xaa> 117dac: b0 2a mov $0x2a,%al 117dae: 88 01 mov %al,(%ecx) s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 117db0: 42 inc %edx 117db1: 41 inc %ecx 117db2: 3b 55 d4 cmp -0x2c(%ebp),%edx 117db5: 72 dd jb 117d94 <_Objects_Get_name_as_string+0x90> *d = (isprint((unsigned char)*s)) ? *s : '*'; } } *d = '\0'; 117db7: c6 01 00 movb $0x0,(%ecx) _Thread_Enable_dispatch(); 117dba: e8 61 a3 ff ff call 112120 <_Thread_Enable_dispatch> <== ALWAYS TAKEN return name; 117dbf: e9 58 ff ff ff jmp 117d1c <_Objects_Get_name_as_string+0x18> <== ALWAYS TAKEN s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 117dc4: 89 d9 mov %ebx,%ecx 117dc6: eb ef jmp 117db7 <_Objects_Get_name_as_string+0xb3> <== ALWAYS TAKEN 0011a338 <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 11a338: 55 push %ebp 11a339: 89 e5 mov %esp,%ebp 11a33b: 57 push %edi 11a33c: 56 push %esi 11a33d: 53 push %ebx 11a33e: 83 ec 0c sub $0xc,%esp 11a341: 8b 5d 08 mov 0x8(%ebp),%ebx 11a344: 8b 75 0c mov 0xc(%ebp),%esi 11a347: 8b 7d 10 mov 0x10(%ebp),%edi Objects_Control *object; Objects_Id next_id; if ( !information ) 11a34a: 85 db test %ebx,%ebx 11a34c: 75 0a jne 11a358 <_Objects_Get_next+0x20> *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; 11a34e: 31 c0 xor %eax,%eax } 11a350: 8d 65 f4 lea -0xc(%ebp),%esp 11a353: 5b pop %ebx 11a354: 5e pop %esi 11a355: 5f pop %edi 11a356: c9 leave 11a357: c3 ret Objects_Id next_id; if ( !information ) return NULL; if ( !location_p ) 11a358: 85 ff test %edi,%edi 11a35a: 74 f2 je 11a34e <_Objects_Get_next+0x16> return NULL; if ( !next_id_p ) 11a35c: 8b 45 14 mov 0x14(%ebp),%eax 11a35f: 85 c0 test %eax,%eax 11a361: 74 eb je 11a34e <_Objects_Get_next+0x16> return NULL; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 11a363: 66 85 f6 test %si,%si 11a366: 75 04 jne 11a36c <_Objects_Get_next+0x34> next_id = information->minimum_id; 11a368: 8b 73 08 mov 0x8(%ebx),%esi 11a36b: 90 nop else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 11a36c: 66 39 73 10 cmp %si,0x10(%ebx) 11a370: 72 22 jb 11a394 <_Objects_Get_next+0x5c> *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 11a372: 51 push %ecx 11a373: 57 push %edi 11a374: 56 push %esi 11a375: 53 push %ebx 11a376: e8 f5 74 ff ff call 111870 <_Objects_Get> <== ALWAYS TAKEN next_id++; 11a37b: 46 inc %esi } while (*location_p != OBJECTS_LOCAL); 11a37c: 83 c4 10 add $0x10,%esp 11a37f: 8b 17 mov (%edi),%edx 11a381: 85 d2 test %edx,%edx 11a383: 75 e7 jne 11a36c <_Objects_Get_next+0x34> *next_id_p = next_id; 11a385: 8b 55 14 mov 0x14(%ebp),%edx 11a388: 89 32 mov %esi,(%edx) return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } 11a38a: 8d 65 f4 lea -0xc(%ebp),%esp 11a38d: 5b pop %ebx 11a38e: 5e pop %esi 11a38f: 5f pop %edi 11a390: c9 leave 11a391: c3 ret 11a392: 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; 11a394: c7 07 01 00 00 00 movl $0x1,(%edi) *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 11a39a: 8b 45 14 mov 0x14(%ebp),%eax 11a39d: c7 00 ff ff ff ff movl $0xffffffff,(%eax) 11a3a3: 31 c0 xor %eax,%eax return 0; 11a3a5: eb a9 jmp 11a350 <_Objects_Get_next+0x18> <== ALWAYS TAKEN 0011aae8 <_Objects_Get_no_protection>: Objects_Control *_Objects_Get_no_protection( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 11aae8: 55 push %ebp 11aae9: 89 e5 mov %esp,%ebp 11aaeb: 53 push %ebx 11aaec: 8b 55 08 mov 0x8(%ebp),%edx 11aaef: 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; 11aaf2: b8 01 00 00 00 mov $0x1,%eax 11aaf7: 2b 42 08 sub 0x8(%edx),%eax 11aafa: 03 45 0c add 0xc(%ebp),%eax if ( information->maximum >= index ) { 11aafd: 0f b7 4a 10 movzwl 0x10(%edx),%ecx 11ab01: 39 c8 cmp %ecx,%eax 11ab03: 77 13 ja 11ab18 <_Objects_Get_no_protection+0x30> if ( (the_object = information->local_table[ index ]) != NULL ) { 11ab05: 8b 52 1c mov 0x1c(%edx),%edx 11ab08: 8b 04 82 mov (%edx,%eax,4),%eax 11ab0b: 85 c0 test %eax,%eax 11ab0d: 74 09 je 11ab18 <_Objects_Get_no_protection+0x30> <== ALWAYS TAKEN *location = OBJECTS_LOCAL; 11ab0f: 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; } 11ab15: 5b pop %ebx 11ab16: c9 leave 11ab17: 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; 11ab18: c7 03 01 00 00 00 movl $0x1,(%ebx) 11ab1e: 31 c0 xor %eax,%eax return NULL; } 11ab20: 5b pop %ebx 11ab21: c9 leave 11ab22: c3 ret 001118d8 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) { 1118d8: 55 push %ebp 1118d9: 89 e5 mov %esp,%ebp 1118db: 83 ec 18 sub $0x18,%esp 1118de: 8b 55 08 mov 0x8(%ebp),%edx /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 1118e1: 85 d2 test %edx,%edx 1118e3: 75 08 jne 1118ed <_Objects_Id_to_name+0x15> 1118e5: a1 18 39 13 00 mov 0x133918,%eax 1118ea: 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); 1118ed: 89 d0 mov %edx,%eax 1118ef: c1 e8 18 shr $0x18,%eax 1118f2: 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 ) 1118f5: 8d 48 ff lea -0x1(%eax),%ecx 1118f8: 83 f9 03 cmp $0x3,%ecx 1118fb: 77 3b ja 111938 <_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 ] ) 1118fd: 8b 04 85 2c 38 13 00 mov 0x13382c(,%eax,4),%eax 111904: 85 c0 test %eax,%eax 111906: 74 30 je 111938 <_Objects_Id_to_name+0x60> return OBJECTS_INVALID_ID; the_class = _Objects_Get_class( tmpId ); information = _Objects_Information_table[ the_api ][ the_class ]; 111908: 89 d1 mov %edx,%ecx 11190a: c1 e9 1b shr $0x1b,%ecx 11190d: 8b 04 88 mov (%eax,%ecx,4),%eax if ( !information ) 111910: 85 c0 test %eax,%eax 111912: 74 24 je 111938 <_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 ); 111914: 51 push %ecx 111915: 8d 4d f4 lea -0xc(%ebp),%ecx 111918: 51 push %ecx 111919: 52 push %edx 11191a: 50 push %eax 11191b: e8 50 ff ff ff call 111870 <_Objects_Get> <== ALWAYS TAKEN if ( !the_object ) 111920: 83 c4 10 add $0x10,%esp 111923: 85 c0 test %eax,%eax 111925: 74 11 je 111938 <_Objects_Id_to_name+0x60> return OBJECTS_INVALID_ID; *name = the_object->name; 111927: 8b 50 0c mov 0xc(%eax),%edx 11192a: 8b 45 0c mov 0xc(%ebp),%eax 11192d: 89 10 mov %edx,(%eax) _Thread_Enable_dispatch(); 11192f: e8 ec 07 00 00 call 112120 <_Thread_Enable_dispatch> 111934: 31 c0 xor %eax,%eax return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; } 111936: c9 leave 111937: c3 ret if ( !the_object ) return OBJECTS_INVALID_ID; *name = the_object->name; _Thread_Enable_dispatch(); return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 111938: b8 03 00 00 00 mov $0x3,%eax } 11193d: c9 leave 11193e: c3 ret 0010cbd8 <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 10cbd8: 55 push %ebp 10cbd9: 89 e5 mov %esp,%ebp 10cbdb: 57 push %edi 10cbdc: 56 push %esi 10cbdd: 53 push %ebx 10cbde: 83 ec 0c sub $0xc,%esp 10cbe1: 8b 45 08 mov 0x8(%ebp),%eax 10cbe4: 8b 55 0c mov 0xc(%ebp),%edx 10cbe7: 8b 5d 10 mov 0x10(%ebp),%ebx 10cbea: 8b 75 20 mov 0x20(%ebp),%esi 10cbed: 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; 10cbf1: 89 10 mov %edx,(%eax) information->the_class = the_class; 10cbf3: 66 89 58 04 mov %bx,0x4(%eax) information->size = size; 10cbf7: 89 78 18 mov %edi,0x18(%eax) information->local_table = 0; 10cbfa: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax) information->inactive_per_block = 0; 10cc01: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax) information->object_blocks = 0; 10cc08: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) information->inactive = 0; 10cc0f: 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; 10cc15: 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; 10cc1b: 8b 3c 95 0c 53 12 00 mov 0x12530c(,%edx,4),%edi 10cc22: 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; 10cc25: 8b 7d 14 mov 0x14(%ebp),%edi 10cc28: 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 = 10cc2b: 89 f9 mov %edi,%ecx 10cc2d: 88 48 12 mov %cl,0x12(%eax) (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false; maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS; 10cc30: 8b 4d 14 mov 0x14(%ebp),%ecx 10cc33: 81 e1 ff ff ff 7f and $0x7fffffff,%ecx /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { 10cc39: 85 ff test %edi,%edi 10cc3b: 74 04 je 10cc41 <_Objects_Initialize_information+0x69> 10cc3d: 85 c9 test %ecx,%ecx 10cc3f: 74 6a je 10ccab <_Objects_Initialize_information+0xd3> } /* * The allocation unit is the maximum value */ information->allocation_size = maximum_per_allocation; 10cc41: 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; 10cc45: c7 40 1c 64 4f 12 00 movl $0x124f64,0x1c(%eax) /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id = 10cc4c: c1 e2 18 shl $0x18,%edx 10cc4f: 81 ca 00 00 01 00 or $0x10000,%edx 10cc55: c1 e3 1b shl $0x1b,%ebx 10cc58: 09 da or %ebx,%edx 10cc5a: 31 db xor %ebx,%ebx 10cc5c: 85 c9 test %ecx,%ecx 10cc5e: 0f 95 c3 setne %bl 10cc61: 09 da or %ebx,%edx 10cc63: 89 50 08 mov %edx,0x8(%eax) /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 10cc66: f7 c6 03 00 00 00 test $0x3,%esi 10cc6c: 75 26 jne 10cc94 <_Objects_Initialize_information+0xbc> <== ALWAYS TAKEN name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; 10cc6e: 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); 10cc72: 8d 50 24 lea 0x24(%eax),%edx 10cc75: 89 50 20 mov %edx,0x20(%eax) the_chain->permanent_null = NULL; 10cc78: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax) the_chain->last = _Chain_Head(the_chain); 10cc7f: 8d 50 20 lea 0x20(%eax),%edx 10cc82: 89 50 28 mov %edx,0x28(%eax) _Chain_Initialize_empty( &information->Inactive ); /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { 10cc85: 85 c9 test %ecx,%ecx 10cc87: 75 13 jne 10cc9c <_Objects_Initialize_information+0xc4> _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } 10cc89: 8d 65 f4 lea -0xc(%ebp),%esp 10cc8c: 5b pop %ebx 10cc8d: 5e pop %esi 10cc8e: 5f pop %edi 10cc8f: c9 leave 10cc90: c3 ret 10cc91: 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) & 10cc94: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 10cc97: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED 10cc9a: eb d2 jmp 10cc6e <_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 ); 10cc9c: 89 45 08 mov %eax,0x8(%ebp) _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } 10cc9f: 8d 65 f4 lea -0xc(%ebp),%esp 10cca2: 5b pop %ebx 10cca3: 5e pop %esi 10cca4: 5f pop %edi 10cca5: 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 ); 10cca6: e9 b9 fa ff ff jmp 10c764 <_Objects_Extend_information> <== ALWAYS TAKEN /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { _Internal_error_Occurred( 10ccab: 50 push %eax 10ccac: 6a 14 push $0x14 10ccae: 6a 01 push $0x1 10ccb0: 6a 00 push $0x0 10ccb2: e8 71 f9 ff ff call 10c628 <_Internal_error_Occurred> <== ALWAYS TAKEN 0010ccc8 <_Objects_Name_to_id_u32>: Objects_Information *information, uint32_t name, uint32_t node, Objects_Id *id ) { 10ccc8: 55 push %ebp 10ccc9: 89 e5 mov %esp,%ebp 10cccb: 57 push %edi 10cccc: 56 push %esi 10cccd: 53 push %ebx 10ccce: 8b 45 08 mov 0x8(%ebp),%eax 10ccd1: 8b 4d 0c mov 0xc(%ebp),%ecx 10ccd4: 8b 55 10 mov 0x10(%ebp),%edx 10ccd7: 8b 7d 14 mov 0x14(%ebp),%edi Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) 10ccda: 85 ff test %edi,%edi 10ccdc: 74 56 je 10cd34 <_Objects_Name_to_id_u32+0x6c> return OBJECTS_INVALID_ADDRESS; if ( name == 0 ) 10ccde: 85 c9 test %ecx,%ecx 10cce0: 74 08 je 10ccea <_Objects_Name_to_id_u32+0x22> return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && 10cce2: 8b 70 10 mov 0x10(%eax),%esi 10cce5: 66 85 f6 test %si,%si 10cce8: 75 0a jne 10ccf4 <_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++ ) { 10ccea: 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 } 10ccef: 5b pop %ebx 10ccf0: 5e pop %esi 10ccf1: 5f pop %edi 10ccf2: c9 leave 10ccf3: c3 ret if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && 10ccf4: 85 d2 test %edx,%edx 10ccf6: 75 20 jne 10cd18 <_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++ ) { 10ccf8: 0f b7 f6 movzwl %si,%esi 10ccfb: 8b 58 1c mov 0x1c(%eax),%ebx 10ccfe: b8 01 00 00 00 mov $0x1,%eax 10cd03: 90 nop the_object = information->local_table[ index ]; 10cd04: 8b 14 83 mov (%ebx,%eax,4),%edx if ( !the_object ) 10cd07: 85 d2 test %edx,%edx 10cd09: 74 05 je 10cd10 <_Objects_Name_to_id_u32+0x48> continue; if ( name == the_object->name.name_u32 ) { 10cd0b: 39 4a 0c cmp %ecx,0xc(%edx) 10cd0e: 74 18 je 10cd28 <_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++ ) { 10cd10: 40 inc %eax 10cd11: 39 c6 cmp %eax,%esi 10cd13: 73 ef jae 10cd04 <_Objects_Name_to_id_u32+0x3c> 10cd15: eb d3 jmp 10ccea <_Objects_Name_to_id_u32+0x22> <== ALWAYS TAKEN 10cd17: 90 nop <== NOT EXECUTED if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && 10cd18: 81 fa ff ff ff 7f cmp $0x7fffffff,%edx 10cd1e: 74 d8 je 10ccf8 <_Objects_Name_to_id_u32+0x30> 10cd20: 4a dec %edx 10cd21: 75 c7 jne 10ccea <_Objects_Name_to_id_u32+0x22> 10cd23: eb d3 jmp 10ccf8 <_Objects_Name_to_id_u32+0x30> <== ALWAYS TAKEN 10cd25: 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; 10cd28: 8b 42 08 mov 0x8(%edx),%eax 10cd2b: 89 07 mov %eax,(%edi) 10cd2d: 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 } 10cd2f: 5b pop %ebx 10cd30: 5e pop %esi 10cd31: 5f pop %edi 10cd32: c9 leave 10cd33: c3 ret Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) 10cd34: 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 } 10cd39: 5b pop %ebx 10cd3a: 5e pop %esi 10cd3b: 5f pop %edi 10cd3c: c9 leave 10cd3d: c3 ret 0010eab8 <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 10eab8: 55 push %ebp 10eab9: 89 e5 mov %esp,%ebp 10eabb: 53 push %ebx 10eabc: 83 ec 0c sub $0xc,%esp 10eabf: 8b 5d 10 mov 0x10(%ebp),%ebx size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 10eac2: 8b 45 08 mov 0x8(%ebp),%eax 10eac5: 0f b7 40 38 movzwl 0x38(%eax),%eax 10eac9: 50 push %eax 10eaca: 53 push %ebx 10eacb: e8 20 66 00 00 call 1150f0 d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 10ead0: 0f be 0b movsbl (%ebx),%ecx 10ead3: c1 e1 18 shl $0x18,%ecx 10ead6: 83 c4 10 add $0x10,%esp 10ead9: 83 f8 01 cmp $0x1,%eax 10eadc: 76 32 jbe 10eb10 <_Objects_Set_name+0x58> 10eade: 0f be 53 01 movsbl 0x1(%ebx),%edx 10eae2: c1 e2 10 shl $0x10,%edx 10eae5: 09 ca or %ecx,%edx 10eae7: 83 f8 02 cmp $0x2,%eax 10eaea: 74 2c je 10eb18 <_Objects_Set_name+0x60> 10eaec: 0f be 4b 02 movsbl 0x2(%ebx),%ecx 10eaf0: c1 e1 08 shl $0x8,%ecx 10eaf3: 09 d1 or %edx,%ecx 10eaf5: 83 f8 03 cmp $0x3,%eax 10eaf8: 74 37 je 10eb31 <_Objects_Set_name+0x79> 10eafa: 0f be 43 03 movsbl 0x3(%ebx),%eax 10eafe: 09 c1 or %eax,%ecx 10eb00: 8b 55 0c mov 0xc(%ebp),%edx 10eb03: 89 4a 0c mov %ecx,0xc(%edx) ); } return true; } 10eb06: b0 01 mov $0x1,%al 10eb08: 8b 5d fc mov -0x4(%ebp),%ebx 10eb0b: c9 leave 10eb0c: c3 ret 10eb0d: 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( 10eb10: 89 ca mov %ecx,%edx 10eb12: 81 ca 00 00 20 00 or $0x200000,%edx 10eb18: 89 d1 mov %edx,%ecx 10eb1a: 80 cd 20 or $0x20,%ch 10eb1d: b8 20 00 00 00 mov $0x20,%eax 10eb22: 09 c1 or %eax,%ecx 10eb24: 8b 55 0c mov 0xc(%ebp),%edx 10eb27: 89 4a 0c mov %ecx,0xc(%edx) ); } return true; } 10eb2a: b0 01 mov $0x1,%al 10eb2c: 8b 5d fc mov -0x4(%ebp),%ebx 10eb2f: c9 leave 10eb30: c3 ret d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 10eb31: b0 20 mov $0x20,%al 10eb33: eb c9 jmp 10eafe <_Objects_Set_name+0x46> <== ALWAYS TAKEN 0010cd40 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { 10cd40: 55 push %ebp 10cd41: 89 e5 mov %esp,%ebp 10cd43: 57 push %edi 10cd44: 56 push %esi 10cd45: 53 push %ebx 10cd46: 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 ); 10cd49: 8b 45 08 mov 0x8(%ebp),%eax 10cd4c: 0f b7 58 08 movzwl 0x8(%eax),%ebx block_count = (information->maximum - index_base) / 10cd50: 0f b7 48 14 movzwl 0x14(%eax),%ecx 10cd54: 0f b7 40 10 movzwl 0x10(%eax),%eax 10cd58: 29 d8 sub %ebx,%eax 10cd5a: 31 d2 xor %edx,%edx 10cd5c: f7 f1 div %ecx information->allocation_size; for ( block = 0; block < block_count; block++ ) { 10cd5e: 85 c0 test %eax,%eax 10cd60: 74 21 je 10cd83 <_Objects_Shrink_information+0x43> <== ALWAYS TAKEN if ( information->inactive_per_block[ block ] == 10cd62: 8b 55 08 mov 0x8(%ebp),%edx 10cd65: 8b 7a 30 mov 0x30(%edx),%edi 10cd68: 3b 0f cmp (%edi),%ecx 10cd6a: 74 1f je 10cd8b <_Objects_Shrink_information+0x4b> <== ALWAYS TAKEN information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; return; 10cd6c: 31 d2 xor %edx,%edx 10cd6e: eb 0e jmp 10cd7e <_Objects_Shrink_information+0x3e> <== ALWAYS TAKEN } index_base += information->allocation_size; 10cd70: 01 cb add %ecx,%ebx 10cd72: 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 ] == 10cd79: 3b 0c 97 cmp (%edi,%edx,4),%ecx 10cd7c: 74 12 je 10cd90 <_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++ ) { 10cd7e: 42 inc %edx 10cd7f: 39 d0 cmp %edx,%eax 10cd81: 77 ed ja 10cd70 <_Objects_Shrink_information+0x30> return; } index_base += information->allocation_size; } } 10cd83: 8d 65 f4 lea -0xc(%ebp),%esp 10cd86: 5b pop %ebx 10cd87: 5e pop %esi 10cd88: 5f pop %edi 10cd89: c9 leave 10cd8a: 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 ] == 10cd8b: 31 f6 xor %esi,%esi <== NOT EXECUTED 10cd8d: 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; 10cd90: 8b 55 08 mov 0x8(%ebp),%edx 10cd93: 8b 42 20 mov 0x20(%edx),%eax 10cd96: 89 75 e4 mov %esi,-0x1c(%ebp) 10cd99: eb 07 jmp 10cda2 <_Objects_Shrink_information+0x62> <== ALWAYS TAKEN 10cd9b: 90 nop <== NOT EXECUTED if ((index >= index_base) && (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); } } while ( the_object ); 10cd9c: 85 ff test %edi,%edi 10cd9e: 74 2c je 10cdcc <_Objects_Shrink_information+0x8c> 10cda0: 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 ); 10cda2: 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; 10cda6: 8b 38 mov (%eax),%edi if ((index >= index_base) && 10cda8: 39 da cmp %ebx,%edx 10cdaa: 72 f0 jb 10cd9c <_Objects_Shrink_information+0x5c> (index < (index_base + information->allocation_size))) { 10cdac: 8b 75 08 mov 0x8(%ebp),%esi 10cdaf: 0f b7 4e 14 movzwl 0x14(%esi),%ecx 10cdb3: 8d 0c 0b lea (%ebx,%ecx,1),%ecx 10cdb6: 39 ca cmp %ecx,%edx 10cdb8: 73 e2 jae 10cd9c <_Objects_Shrink_information+0x5c> _Chain_Extract( &extract_me->Node ); 10cdba: 83 ec 0c sub $0xc,%esp 10cdbd: 50 push %eax 10cdbe: e8 05 32 00 00 call 10ffc8 <_Chain_Extract> 10cdc3: 83 c4 10 add $0x10,%esp } } while ( the_object ); 10cdc6: 85 ff test %edi,%edi 10cdc8: 75 d6 jne 10cda0 <_Objects_Shrink_information+0x60> 10cdca: 66 90 xchg %ax,%ax 10cdcc: 8b 75 e4 mov -0x1c(%ebp),%esi /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); 10cdcf: 83 ec 0c sub $0xc,%esp 10cdd2: 8b 55 08 mov 0x8(%ebp),%edx 10cdd5: 8b 42 34 mov 0x34(%edx),%eax 10cdd8: ff 34 30 pushl (%eax,%esi,1) 10cddb: e8 08 17 00 00 call 10e4e8 <_Workspace_Free> information->object_blocks[ block ] = NULL; 10cde0: 8b 55 08 mov 0x8(%ebp),%edx 10cde3: 8b 42 34 mov 0x34(%edx),%eax 10cde6: c7 04 30 00 00 00 00 movl $0x0,(%eax,%esi,1) information->inactive_per_block[ block ] = 0; 10cded: 8b 42 30 mov 0x30(%edx),%eax 10cdf0: c7 04 30 00 00 00 00 movl $0x0,(%eax,%esi,1) information->inactive -= information->allocation_size; 10cdf7: 8b 42 14 mov 0x14(%edx),%eax 10cdfa: 66 29 42 2c sub %ax,0x2c(%edx) return; 10cdfe: 83 c4 10 add $0x10,%esp } index_base += information->allocation_size; } } 10ce01: 8d 65 f4 lea -0xc(%ebp),%esp 10ce04: 5b pop %ebx 10ce05: 5e pop %esi 10ce06: 5f pop %edi 10ce07: c9 leave 10ce08: c3 ret 0012e390 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 12e390: 55 push %ebp 12e391: 89 e5 mov %esp,%ebp 12e393: 56 push %esi 12e394: 53 push %ebx 12e395: 8b 5d 08 mov 0x8(%ebp),%ebx 12e398: 8b 75 0c mov 0xc(%ebp),%esi if ( !the_heap ) 12e39b: 85 db test %ebx,%ebx 12e39d: 74 35 je 12e3d4 <_Protected_heap_Get_information+0x44> return false; if ( !the_info ) 12e39f: 85 f6 test %esi,%esi 12e3a1: 74 31 je 12e3d4 <_Protected_heap_Get_information+0x44> return false; _RTEMS_Lock_allocator(); 12e3a3: 83 ec 0c sub $0xc,%esp 12e3a6: ff 35 30 d9 16 00 pushl 0x16d930 12e3ac: e8 1f 3a fe ff call 111dd0 <_API_Mutex_Lock> _Heap_Get_information( the_heap, the_info ); 12e3b1: 5a pop %edx 12e3b2: 59 pop %ecx 12e3b3: 56 push %esi 12e3b4: 53 push %ebx 12e3b5: e8 9e e3 00 00 call 13c758 <_Heap_Get_information> _RTEMS_Unlock_allocator(); 12e3ba: 58 pop %eax 12e3bb: ff 35 30 d9 16 00 pushl 0x16d930 12e3c1: e8 52 3a fe ff call 111e18 <_API_Mutex_Unlock> 12e3c6: b0 01 mov $0x1,%al return true; 12e3c8: 83 c4 10 add $0x10,%esp } 12e3cb: 8d 65 f8 lea -0x8(%ebp),%esp 12e3ce: 5b pop %ebx 12e3cf: 5e pop %esi 12e3d0: c9 leave 12e3d1: c3 ret 12e3d2: 66 90 xchg %ax,%ax <== NOT EXECUTED _RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); return true; 12e3d4: 31 c0 xor %eax,%eax } 12e3d6: 8d 65 f8 lea -0x8(%ebp),%esp 12e3d9: 5b pop %ebx 12e3da: 5e pop %esi 12e3db: c9 leave 12e3dc: c3 ret 0011065c <_Protected_heap_Walk>: bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 11065c: 55 push %ebp 11065d: 89 e5 mov %esp,%ebp 11065f: 56 push %esi 110660: 53 push %ebx 110661: 83 ec 10 sub $0x10,%esp 110664: 8b 5d 08 mov 0x8(%ebp),%ebx 110667: 8b 75 0c mov 0xc(%ebp),%esi 11066a: 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 ) { 11066d: 8b 15 58 c9 12 00 mov 0x12c958,%edx 110673: 85 d2 test %edx,%edx 110675: 74 19 je 110690 <_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 ); 110677: 0f b6 c0 movzbl %al,%eax 11067a: 89 45 10 mov %eax,0x10(%ebp) 11067d: 89 75 0c mov %esi,0xc(%ebp) 110680: 89 5d 08 mov %ebx,0x8(%ebp) } return status; } 110683: 8d 65 f8 lea -0x8(%ebp),%esp 110686: 5b pop %ebx 110687: 5e pop %esi 110688: 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 ); 110689: e9 1e f2 ff ff jmp 10f8ac <_Heap_Walk> 11068e: 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(); 110690: 83 ec 0c sub $0xc,%esp 110693: ff 35 10 ca 12 00 pushl 0x12ca10 110699: 88 45 f4 mov %al,-0xc(%ebp) 11069c: e8 9b e4 ff ff call 10eb3c <_API_Mutex_Lock> status = _Heap_Walk( the_heap, source, do_dump ); 1106a1: 83 c4 0c add $0xc,%esp 1106a4: 8a 45 f4 mov -0xc(%ebp),%al 1106a7: 0f b6 c0 movzbl %al,%eax 1106aa: 50 push %eax 1106ab: 56 push %esi 1106ac: 53 push %ebx 1106ad: e8 fa f1 ff ff call 10f8ac <_Heap_Walk> _RTEMS_Unlock_allocator(); 1106b2: 5a pop %edx 1106b3: ff 35 10 ca 12 00 pushl 0x12ca10 1106b9: 88 45 f4 mov %al,-0xc(%ebp) 1106bc: e8 c3 e4 ff ff call 10eb84 <_API_Mutex_Unlock> 1106c1: 83 c4 10 add $0x10,%esp } else { status = _Heap_Walk( the_heap, source, do_dump ); } return status; } 1106c4: 8a 45 f4 mov -0xc(%ebp),%al 1106c7: 8d 65 f8 lea -0x8(%ebp),%esp 1106ca: 5b pop %ebx 1106cb: 5e pop %esi 1106cc: c9 leave 1106cd: c3 ret 0010fefc <_RTEMS_Tasks_Invoke_task_variable_dtor>: void _RTEMS_Tasks_Invoke_task_variable_dtor( Thread_Control *the_thread, rtems_task_variable_t *tvp ) { 10fefc: 55 push %ebp 10fefd: 89 e5 mov %esp,%ebp 10feff: 56 push %esi 10ff00: 53 push %ebx 10ff01: 8b 5d 0c mov 0xc(%ebp),%ebx void (*dtor)(void *); void *value; dtor = tvp->dtor; 10ff04: 8b 43 10 mov 0x10(%ebx),%eax if (_Thread_Is_executing(the_thread)) { 10ff07: 8b 55 08 mov 0x8(%ebp),%edx 10ff0a: 3b 15 f8 53 12 00 cmp 0x1253f8,%edx 10ff10: 74 1e je 10ff30 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x34> value = *tvp->ptr; *tvp->ptr = tvp->gval; } else { value = tvp->tval; 10ff12: 8b 53 0c mov 0xc(%ebx),%edx } if ( dtor ) 10ff15: 85 c0 test %eax,%eax 10ff17: 74 09 je 10ff22 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x26> (*dtor)(value); 10ff19: 83 ec 0c sub $0xc,%esp 10ff1c: 52 push %edx 10ff1d: ff d0 call *%eax 10ff1f: 83 c4 10 add $0x10,%esp _Workspace_Free(tvp); 10ff22: 89 5d 08 mov %ebx,0x8(%ebp) } 10ff25: 8d 65 f8 lea -0x8(%ebp),%esp 10ff28: 5b pop %ebx 10ff29: 5e pop %esi 10ff2a: c9 leave } if ( dtor ) (*dtor)(value); _Workspace_Free(tvp); 10ff2b: e9 b8 e5 ff ff jmp 10e4e8 <_Workspace_Free> void (*dtor)(void *); void *value; dtor = tvp->dtor; if (_Thread_Is_executing(the_thread)) { value = *tvp->ptr; 10ff30: 8b 4b 04 mov 0x4(%ebx),%ecx 10ff33: 8b 11 mov (%ecx),%edx *tvp->ptr = tvp->gval; 10ff35: 8b 73 08 mov 0x8(%ebx),%esi 10ff38: 89 31 mov %esi,(%ecx) 10ff3a: eb d9 jmp 10ff15 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x19> <== ALWAYS TAKEN 0010fd08 <_RTEMS_tasks_Initialize_user_tasks>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks( void ) { 10fd08: 55 push %ebp 10fd09: 89 e5 mov %esp,%ebp 10fd0b: 83 ec 08 sub $0x8,%esp if ( _RTEMS_tasks_Initialize_user_tasks_p ) 10fd0e: a1 60 12 12 00 mov 0x121260,%eax 10fd13: 85 c0 test %eax,%eax 10fd15: 74 05 je 10fd1c <_RTEMS_tasks_Initialize_user_tasks+0x14> (*_RTEMS_tasks_Initialize_user_tasks_p)(); } 10fd17: c9 leave */ void _RTEMS_tasks_Initialize_user_tasks( void ) { if ( _RTEMS_tasks_Initialize_user_tasks_p ) (*_RTEMS_tasks_Initialize_user_tasks_p)(); 10fd18: ff e0 jmp *%eax 10fd1a: 66 90 xchg %ax,%ax <== NOT EXECUTED } 10fd1c: c9 leave 10fd1d: c3 ret 0010b92c <_RTEMS_tasks_Initialize_user_tasks_body>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) { 10b92c: 55 push %ebp 10b92d: 89 e5 mov %esp,%ebp 10b92f: 57 push %edi 10b930: 56 push %esi 10b931: 53 push %ebx 10b932: 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; 10b935: 8b 1d 0c 12 12 00 mov 0x12120c,%ebx maximum = Configuration_RTEMS_API.number_of_initialization_tasks; 10b93b: 8b 3d 08 12 12 00 mov 0x121208,%edi /* * Verify that we have a set of user tasks to iterate */ if ( !user_tasks ) 10b941: 85 db test %ebx,%ebx 10b943: 74 46 je 10b98b <_RTEMS_tasks_Initialize_user_tasks_body+0x5f> return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { 10b945: 85 ff test %edi,%edi 10b947: 74 42 je 10b98b <_RTEMS_tasks_Initialize_user_tasks_body+0x5f> <== ALWAYS TAKEN 10b949: 31 f6 xor %esi,%esi 10b94b: 90 nop return_value = rtems_task_create( 10b94c: 83 ec 08 sub $0x8,%esp 10b94f: 8d 45 e4 lea -0x1c(%ebp),%eax 10b952: 50 push %eax 10b953: ff 73 0c pushl 0xc(%ebx) 10b956: ff 73 14 pushl 0x14(%ebx) 10b959: ff 73 04 pushl 0x4(%ebx) 10b95c: ff 73 08 pushl 0x8(%ebx) 10b95f: ff 33 pushl (%ebx) 10b961: e8 96 fd ff ff call 10b6fc <== ALWAYS TAKEN user_tasks[ index ].stack_size, user_tasks[ index ].mode_set, user_tasks[ index ].attribute_set, &id ); if ( !rtems_is_status_successful( return_value ) ) 10b966: 83 c4 20 add $0x20,%esp 10b969: 85 c0 test %eax,%eax 10b96b: 75 26 jne 10b993 <_RTEMS_tasks_Initialize_user_tasks_body+0x67> _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value ); return_value = rtems_task_start( 10b96d: 51 push %ecx 10b96e: ff 73 18 pushl 0x18(%ebx) 10b971: ff 73 10 pushl 0x10(%ebx) 10b974: ff 75 e4 pushl -0x1c(%ebp) 10b977: e8 24 00 00 00 call 10b9a0 <== ALWAYS TAKEN id, user_tasks[ index ].entry_point, user_tasks[ index ].argument ); if ( !rtems_is_status_successful( return_value ) ) 10b97c: 83 c4 10 add $0x10,%esp 10b97f: 85 c0 test %eax,%eax 10b981: 75 10 jne 10b993 <_RTEMS_tasks_Initialize_user_tasks_body+0x67> return; /* * Now iterate over the initialization tasks and create/start them. */ for ( index=0 ; index < maximum ; index++ ) { 10b983: 46 inc %esi 10b984: 83 c3 1c add $0x1c,%ebx 10b987: 39 f7 cmp %esi,%edi 10b989: 77 c1 ja 10b94c <_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 ); } } 10b98b: 8d 65 f4 lea -0xc(%ebp),%esp 10b98e: 5b pop %ebx 10b98f: 5e pop %esi 10b990: 5f pop %edi 10b991: c9 leave 10b992: 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 ); 10b993: 52 push %edx 10b994: 50 push %eax 10b995: 6a 01 push $0x1 10b997: 6a 01 push $0x1 10b999: e8 8a 0c 00 00 call 10c628 <_Internal_error_Occurred> 0010fd20 <_RTEMS_tasks_Manager_initialization>: * * Output parameters: NONE */ void _RTEMS_tasks_Manager_initialization(void) { 10fd20: 55 push %ebp 10fd21: 89 e5 mov %esp,%ebp 10fd23: 83 ec 0c sub $0xc,%esp _Objects_Initialize_information( 10fd26: 6a 04 push $0x4 10fd28: 6a 00 push $0x0 10fd2a: 68 04 01 00 00 push $0x104 10fd2f: ff 35 e0 11 12 00 pushl 0x1211e0 10fd35: 6a 01 push $0x1 10fd37: 6a 02 push $0x2 10fd39: 68 c0 52 12 00 push $0x1252c0 10fd3e: e8 95 ce ff ff call 10cbd8 <_Objects_Initialize_information> RTEMS_INLINE_ROUTINE void _User_extensions_Add_API_set( User_extensions_Control *extension ) { _User_extensions_Add_set( extension ); 10fd43: 83 c4 14 add $0x14,%esp 10fd46: 68 40 30 12 00 push $0x123040 10fd4b: e8 70 0c 00 00 call 1109c0 <_User_extensions_Add_set> <== ALWAYS TAKEN * Add all the extensions for this API */ _User_extensions_Add_API_set( &_RTEMS_tasks_User_extensions ); _API_extensions_Add( &_RTEMS_tasks_API_extensions ); 10fd50: c7 04 24 20 30 12 00 movl $0x123020,(%esp) 10fd57: e8 e8 bf ff ff call 10bd44 <_API_extensions_Add> 10fd5c: 83 c4 10 add $0x10,%esp MP_PACKET_TASKS, _RTEMS_tasks_MP_Process_packet ); #endif } 10fd5f: c9 leave 10fd60: c3 ret 0010fd64 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) { 10fd64: 55 push %ebp 10fd65: 89 e5 mov %esp,%ebp 10fd67: 57 push %edi 10fd68: 56 push %esi 10fd69: 53 push %ebx 10fd6a: 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 ]; 10fd6d: 8b 45 08 mov 0x8(%ebp),%eax 10fd70: 8b 98 f0 00 00 00 mov 0xf0(%eax),%ebx if ( !api ) 10fd76: 85 db test %ebx,%ebx 10fd78: 74 45 je 10fdbf <_RTEMS_tasks_Post_switch_extension+0x5b> <== ALWAYS TAKEN * Signal Processing */ asr = &api->Signal; _ISR_Disable( level ); 10fd7a: 9c pushf 10fd7b: fa cli 10fd7c: 58 pop %eax signal_set = asr->signals_posted; 10fd7d: 8b 73 14 mov 0x14(%ebx),%esi asr->signals_posted = 0; 10fd80: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) _ISR_Enable( level ); 10fd87: 50 push %eax 10fd88: 9d popf if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 10fd89: 85 f6 test %esi,%esi 10fd8b: 74 32 je 10fdbf <_RTEMS_tasks_Post_switch_extension+0x5b> <== ALWAYS TAKEN return; asr->nest_level += 1; 10fd8d: ff 43 1c incl 0x1c(%ebx) rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 10fd90: 50 push %eax 10fd91: 8d 7d e4 lea -0x1c(%ebp),%edi 10fd94: 57 push %edi 10fd95: 68 ff ff 00 00 push $0xffff 10fd9a: ff 73 10 pushl 0x10(%ebx) 10fd9d: e8 52 1c 00 00 call 1119f4 (*asr->handler)( signal_set ); 10fda2: 89 34 24 mov %esi,(%esp) 10fda5: ff 53 0c call *0xc(%ebx) asr->nest_level -= 1; 10fda8: ff 4b 1c decl 0x1c(%ebx) rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode ); 10fdab: 83 c4 0c add $0xc,%esp 10fdae: 57 push %edi 10fdaf: 68 ff ff 00 00 push $0xffff 10fdb4: ff 75 e4 pushl -0x1c(%ebp) 10fdb7: e8 38 1c 00 00 call 1119f4 10fdbc: 83 c4 10 add $0x10,%esp } 10fdbf: 8d 65 f4 lea -0xc(%ebp),%esp 10fdc2: 5b pop %ebx 10fdc3: 5e pop %esi 10fdc4: 5f pop %edi 10fdc5: c9 leave 10fdc6: c3 ret 0010fcc0 <_RTEMS_tasks_Switch_extension>: void _RTEMS_tasks_Switch_extension( Thread_Control *executing, Thread_Control *heir ) { 10fcc0: 55 push %ebp 10fcc1: 89 e5 mov %esp,%ebp /* * Per Task Variables */ tvp = executing->task_variables; 10fcc3: 8b 45 08 mov 0x8(%ebp),%eax 10fcc6: 8b 80 00 01 00 00 mov 0x100(%eax),%eax while (tvp) { 10fccc: 85 c0 test %eax,%eax 10fcce: 74 13 je 10fce3 <_RTEMS_tasks_Switch_extension+0x23> tvp->tval = *tvp->ptr; 10fcd0: 8b 50 04 mov 0x4(%eax),%edx 10fcd3: 8b 0a mov (%edx),%ecx 10fcd5: 89 48 0c mov %ecx,0xc(%eax) *tvp->ptr = tvp->gval; 10fcd8: 8b 48 08 mov 0x8(%eax),%ecx 10fcdb: 89 0a mov %ecx,(%edx) tvp = (rtems_task_variable_t *)tvp->next; 10fcdd: 8b 00 mov (%eax),%eax /* * Per Task Variables */ tvp = executing->task_variables; while (tvp) { 10fcdf: 85 c0 test %eax,%eax 10fce1: 75 ed jne 10fcd0 <_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; 10fce3: 8b 45 0c mov 0xc(%ebp),%eax 10fce6: 8b 80 00 01 00 00 mov 0x100(%eax),%eax while (tvp) { 10fcec: 85 c0 test %eax,%eax 10fcee: 74 13 je 10fd03 <_RTEMS_tasks_Switch_extension+0x43> tvp->gval = *tvp->ptr; 10fcf0: 8b 50 04 mov 0x4(%eax),%edx 10fcf3: 8b 0a mov (%edx),%ecx 10fcf5: 89 48 08 mov %ecx,0x8(%eax) *tvp->ptr = tvp->tval; 10fcf8: 8b 48 0c mov 0xc(%eax),%ecx 10fcfb: 89 0a mov %ecx,(%edx) tvp = (rtems_task_variable_t *)tvp->next; 10fcfd: 8b 00 mov (%eax),%eax *tvp->ptr = tvp->gval; tvp = (rtems_task_variable_t *)tvp->next; } tvp = heir->task_variables; while (tvp) { 10fcff: 85 c0 test %eax,%eax 10fd01: 75 ed jne 10fcf0 <_RTEMS_tasks_Switch_extension+0x30> <== ALWAYS TAKEN tvp->gval = *tvp->ptr; *tvp->ptr = tvp->tval; tvp = (rtems_task_variable_t *)tvp->next; } } 10fd03: c9 leave 10fd04: c3 ret 0013c1f4 <_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 ) { 13c1f4: 55 push %ebp 13c1f5: 89 e5 mov %esp,%ebp 13c1f7: 57 push %edi 13c1f8: 56 push %esi 13c1f9: 53 push %ebx 13c1fa: 83 ec 38 sub $0x38,%esp 13c1fd: 8b 5d 08 mov 0x8(%ebp),%ebx #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; #endif Thread_Control *owning_thread = the_period->owner; 13c200: 8b 7b 40 mov 0x40(%ebx),%edi /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); 13c203: 8d 75 e0 lea -0x20(%ebp),%esi 13c206: 56 push %esi 13c207: e8 a4 1b ff ff call 12ddb0 <_TOD_Get_uptime> _Timestamp_Subtract( 13c20c: 83 c4 0c add $0xc,%esp 13c20f: ff 75 0c pushl 0xc(%ebp) 13c212: 56 push %esi 13c213: 8d 43 4c lea 0x4c(%ebx),%eax 13c216: 50 push %eax 13c217: e8 18 82 fd ff call 114434 <_Timespec_Subtract> #endif /* * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used; 13c21c: 8b 87 84 00 00 00 mov 0x84(%edi),%eax 13c222: 8b 97 88 00 00 00 mov 0x88(%edi),%edx 13c228: 89 45 d8 mov %eax,-0x28(%ebp) 13c22b: 89 55 dc mov %edx,-0x24(%ebp) #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { 13c22e: 83 c4 10 add $0x10,%esp 13c231: 3b 3d 38 d9 16 00 cmp 0x16d938,%edi 13c237: 74 0b je 13c244 <_Rate_monotonic_Get_status+0x50> 13c239: b0 01 mov $0x1,%al return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; } 13c23b: 8d 65 f4 lea -0xc(%ebp),%esp 13c23e: 5b pop %ebx 13c23f: 5e pop %esi 13c240: 5f pop %edi 13c241: c9 leave 13c242: c3 ret 13c243: 90 nop <== NOT EXECUTED if (owning_thread == _Thread_Executing) { Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract( 13c244: 57 push %edi 13c245: 8d 7d d0 lea -0x30(%ebp),%edi 13c248: 57 push %edi 13c249: 56 push %esi 13c24a: 68 40 d9 16 00 push $0x16d940 13c24f: e8 e0 81 fd ff call 114434 <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran ); 13c254: 59 pop %ecx 13c255: 5e pop %esi 13c256: 57 push %edi 13c257: 8d 75 d8 lea -0x28(%ebp),%esi 13c25a: 56 push %esi 13c25b: e8 98 81 fd ff call 1143f8 <_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)) 13c260: 83 c3 44 add $0x44,%ebx 13c263: 58 pop %eax 13c264: 5a pop %edx 13c265: 53 push %ebx 13c266: 56 push %esi 13c267: e8 c4 06 00 00 call 13c930 <_Timespec_Less_than> 13c26c: 83 c4 10 add $0x10,%esp 13c26f: 84 c0 test %al,%al 13c271: 74 05 je 13c278 <_Rate_monotonic_Get_status+0x84> 13c273: 31 c0 xor %eax,%eax 13c275: eb c4 jmp 13c23b <_Rate_monotonic_Get_status+0x47> <== ALWAYS TAKEN 13c277: 90 nop <== NOT EXECUTED return false; /* used = current cpu usage - cpu usage at start of period */ _Timestamp_Subtract( 13c278: 57 push %edi 13c279: ff 75 10 pushl 0x10(%ebp) 13c27c: 56 push %esi 13c27d: 53 push %ebx 13c27e: e8 b1 81 fd ff call 114434 <_Timespec_Subtract> 13c283: b0 01 mov $0x1,%al 13c285: 83 c4 10 add $0x10,%esp 13c288: eb b1 jmp 13c23b <_Rate_monotonic_Get_status+0x47> <== ALWAYS TAKEN 0013c180 <_Rate_monotonic_Initiate_statistics>: } void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { 13c180: 55 push %ebp 13c181: 89 e5 mov %esp,%ebp 13c183: 57 push %edi 13c184: 56 push %esi 13c185: 53 push %ebx 13c186: 83 ec 28 sub $0x28,%esp 13c189: 8b 5d 08 mov 0x8(%ebp),%ebx Thread_Control *owning_thread = the_period->owner; 13c18c: 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 ); 13c18f: 8d 7d e0 lea -0x20(%ebp),%edi 13c192: 57 push %edi 13c193: e8 18 1c ff ff call 12ddb0 <_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; 13c198: 8b 45 e0 mov -0x20(%ebp),%eax 13c19b: 8b 55 e4 mov -0x1c(%ebp),%edx 13c19e: 89 43 4c mov %eax,0x4c(%ebx) 13c1a1: 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; 13c1a4: 8b 86 84 00 00 00 mov 0x84(%esi),%eax 13c1aa: 8b 96 88 00 00 00 mov 0x88(%esi),%edx 13c1b0: 89 43 44 mov %eax,0x44(%ebx) 13c1b3: 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) { 13c1b6: 83 c4 10 add $0x10,%esp 13c1b9: 3b 35 38 d9 16 00 cmp 0x16d938,%esi 13c1bf: 74 0b je 13c1cc <_Rate_monotonic_Initiate_statistics+0x4c> ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); } #endif } 13c1c1: 8d 65 f4 lea -0xc(%ebp),%esp 13c1c4: 5b pop %ebx 13c1c5: 5e pop %esi 13c1c6: 5f pop %edi 13c1c7: c9 leave 13c1c8: c3 ret 13c1c9: 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( 13c1cc: 51 push %ecx 13c1cd: 8d 75 d8 lea -0x28(%ebp),%esi 13c1d0: 56 push %esi 13c1d1: 57 push %edi 13c1d2: 68 40 d9 16 00 push $0x16d940 13c1d7: e8 58 82 fd ff call 114434 <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); 13c1dc: 58 pop %eax 13c1dd: 5a pop %edx 13c1de: 56 push %esi 13c1df: 83 c3 44 add $0x44,%ebx 13c1e2: 53 push %ebx 13c1e3: e8 10 82 fd ff call 1143f8 <_Timespec_Add_to> 13c1e8: 83 c4 10 add $0x10,%esp } #endif } 13c1eb: 8d 65 f4 lea -0xc(%ebp),%esp 13c1ee: 5b pop %ebx 13c1ef: 5e pop %esi 13c1f0: 5f pop %edi 13c1f1: c9 leave 13c1f2: c3 ret 0013c52c <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { 13c52c: 55 push %ebp 13c52d: 89 e5 mov %esp,%ebp 13c52f: 83 ec 2c sub $0x2c,%esp 13c532: 8d 45 f4 lea -0xc(%ebp),%eax 13c535: 50 push %eax 13c536: ff 75 08 pushl 0x8(%ebp) 13c539: 68 00 de 16 00 push $0x16de00 13c53e: e8 f1 69 fd ff call 112f34 <_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 ) { 13c543: 83 c4 10 add $0x10,%esp 13c546: 8b 55 f4 mov -0xc(%ebp),%edx 13c549: 85 d2 test %edx,%edx 13c54b: 75 29 jne 13c576 <_Rate_monotonic_Timeout+0x4a> <== ALWAYS TAKEN case OBJECTS_LOCAL: the_thread = the_period->owner; 13c54d: 8b 50 40 mov 0x40(%eax),%edx if ( _States_Is_waiting_for_period( the_thread->current_state ) && 13c550: f6 42 11 40 testb $0x40,0x11(%edx) 13c554: 74 08 je 13c55e <_Rate_monotonic_Timeout+0x32> the_thread->Wait.id == the_period->Object.id ) { 13c556: 8b 4a 20 mov 0x20(%edx),%ecx 13c559: 3b 48 08 cmp 0x8(%eax),%ecx 13c55c: 74 4e je 13c5ac <_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 ) { 13c55e: 83 78 38 01 cmpl $0x1,0x38(%eax) 13c562: 74 14 je 13c578 <_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; 13c564: 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; 13c56b: a1 78 d8 16 00 mov 0x16d878,%eax 13c570: 48 dec %eax 13c571: a3 78 d8 16 00 mov %eax,0x16d878 case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 13c576: c9 leave 13c577: 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; 13c578: c7 40 38 03 00 00 00 movl $0x3,0x38(%eax) _Rate_monotonic_Initiate_statistics( the_period ); 13c57f: 83 ec 0c sub $0xc,%esp 13c582: 50 push %eax 13c583: 89 45 e4 mov %eax,-0x1c(%ebp) 13c586: e8 f5 fb ff ff call 13c180 <_Rate_monotonic_Initiate_statistics> <== ALWAYS TAKEN Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 13c58b: 8b 45 e4 mov -0x1c(%ebp),%eax 13c58e: 8b 50 3c mov 0x3c(%eax),%edx 13c591: 89 50 1c mov %edx,0x1c(%eax) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 13c594: 5a pop %edx 13c595: 59 pop %ecx 13c596: 83 c0 10 add $0x10,%eax 13c599: 50 push %eax 13c59a: 68 58 d9 16 00 push $0x16d958 13c59f: e8 60 81 fd ff call 114704 <_Watchdog_Insert> 13c5a4: 83 c4 10 add $0x10,%esp 13c5a7: eb c2 jmp 13c56b <_Rate_monotonic_Timeout+0x3f> <== ALWAYS TAKEN 13c5a9: 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 ); 13c5ac: 83 ec 08 sub $0x8,%esp 13c5af: 68 f8 ff 03 10 push $0x1003fff8 13c5b4: 52 push %edx 13c5b5: 89 45 e4 mov %eax,-0x1c(%ebp) 13c5b8: e8 c7 6e fd ff call 113484 <_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 ); 13c5bd: 8b 45 e4 mov -0x1c(%ebp),%eax 13c5c0: 89 04 24 mov %eax,(%esp) 13c5c3: eb c1 jmp 13c586 <_Rate_monotonic_Timeout+0x5a> <== ALWAYS TAKEN 0013c28c <_Rate_monotonic_Update_statistics>: } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { 13c28c: 55 push %ebp 13c28d: 89 e5 mov %esp,%ebp 13c28f: 57 push %edi 13c290: 56 push %esi 13c291: 53 push %ebx 13c292: 83 ec 1c sub $0x1c,%esp 13c295: 8b 5d 08 mov 0x8(%ebp),%ebx /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; 13c298: ff 43 54 incl 0x54(%ebx) if ( the_period->state == RATE_MONOTONIC_EXPIRED ) 13c29b: 83 7b 38 04 cmpl $0x4,0x38(%ebx) 13c29f: 0f 84 bf 00 00 00 je 13c364 <_Rate_monotonic_Update_statistics+0xd8> /* * Grab status for time statistics. */ valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); 13c2a5: 52 push %edx 13c2a6: 8d 7d e0 lea -0x20(%ebp),%edi 13c2a9: 57 push %edi 13c2aa: 8d 75 d8 lea -0x28(%ebp),%esi 13c2ad: 56 push %esi 13c2ae: 53 push %ebx 13c2af: e8 40 ff ff ff call 13c1f4 <_Rate_monotonic_Get_status> <== ALWAYS TAKEN if (!valid_status) 13c2b4: 83 c4 10 add $0x10,%esp 13c2b7: 84 c0 test %al,%al 13c2b9: 75 09 jne 13c2c4 <_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 } 13c2bb: 8d 65 f4 lea -0xc(%ebp),%esp 13c2be: 5b pop %ebx 13c2bf: 5e pop %esi 13c2c0: 5f pop %edi 13c2c1: c9 leave 13c2c2: c3 ret 13c2c3: 90 nop <== NOT EXECUTED /* * Update CPU time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_cpu_time, &executed ); 13c2c4: 83 ec 08 sub $0x8,%esp 13c2c7: 57 push %edi 13c2c8: 8d 43 6c lea 0x6c(%ebx),%eax 13c2cb: 50 push %eax 13c2cc: e8 27 81 fd ff call 1143f8 <_Timespec_Add_to> if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) ) 13c2d1: 59 pop %ecx 13c2d2: 58 pop %eax 13c2d3: 8d 43 5c lea 0x5c(%ebx),%eax 13c2d6: 50 push %eax 13c2d7: 57 push %edi 13c2d8: e8 53 06 00 00 call 13c930 <_Timespec_Less_than> 13c2dd: 83 c4 10 add $0x10,%esp 13c2e0: 84 c0 test %al,%al 13c2e2: 74 0c je 13c2f0 <_Rate_monotonic_Update_statistics+0x64> stats->min_cpu_time = executed; 13c2e4: 8b 45 e0 mov -0x20(%ebp),%eax 13c2e7: 8b 55 e4 mov -0x1c(%ebp),%edx 13c2ea: 89 43 5c mov %eax,0x5c(%ebx) 13c2ed: 89 53 60 mov %edx,0x60(%ebx) if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) 13c2f0: 83 ec 08 sub $0x8,%esp 13c2f3: 8d 43 64 lea 0x64(%ebx),%eax 13c2f6: 50 push %eax 13c2f7: 57 push %edi 13c2f8: e8 0f 06 00 00 call 13c90c <_Timespec_Greater_than> 13c2fd: 83 c4 10 add $0x10,%esp 13c300: 84 c0 test %al,%al 13c302: 74 0c je 13c310 <_Rate_monotonic_Update_statistics+0x84> stats->max_cpu_time = executed; 13c304: 8b 45 e0 mov -0x20(%ebp),%eax 13c307: 8b 55 e4 mov -0x1c(%ebp),%edx 13c30a: 89 43 64 mov %eax,0x64(%ebx) 13c30d: 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 ); 13c310: 83 ec 08 sub $0x8,%esp 13c313: 56 push %esi 13c314: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax 13c31a: 50 push %eax 13c31b: e8 d8 80 fd ff call 1143f8 <_Timespec_Add_to> if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) 13c320: 58 pop %eax 13c321: 5a pop %edx 13c322: 8d 43 74 lea 0x74(%ebx),%eax 13c325: 50 push %eax 13c326: 56 push %esi 13c327: e8 04 06 00 00 call 13c930 <_Timespec_Less_than> 13c32c: 83 c4 10 add $0x10,%esp 13c32f: 84 c0 test %al,%al 13c331: 75 39 jne 13c36c <_Rate_monotonic_Update_statistics+0xe0> stats->min_wall_time = since_last_period; if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) ) 13c333: 83 ec 08 sub $0x8,%esp 13c336: 8d 43 7c lea 0x7c(%ebx),%eax 13c339: 50 push %eax 13c33a: 56 push %esi 13c33b: e8 cc 05 00 00 call 13c90c <_Timespec_Greater_than> 13c340: 83 c4 10 add $0x10,%esp 13c343: 84 c0 test %al,%al 13c345: 0f 84 70 ff ff ff je 13c2bb <_Rate_monotonic_Update_statistics+0x2f> stats->max_wall_time = since_last_period; 13c34b: 8b 45 d8 mov -0x28(%ebp),%eax 13c34e: 8b 55 dc mov -0x24(%ebp),%edx 13c351: 89 43 7c mov %eax,0x7c(%ebx) 13c354: 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 } 13c35a: 8d 65 f4 lea -0xc(%ebp),%esp 13c35d: 5b pop %ebx 13c35e: 5e pop %esi 13c35f: 5f pop %edi 13c360: c9 leave 13c361: c3 ret 13c362: 66 90 xchg %ax,%ax <== NOT EXECUTED */ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) stats->missed_count++; 13c364: ff 43 58 incl 0x58(%ebx) 13c367: e9 39 ff ff ff jmp 13c2a5 <_Rate_monotonic_Update_statistics+0x19> <== ALWAYS TAKEN */ #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; 13c36c: 8b 45 d8 mov -0x28(%ebp),%eax 13c36f: 8b 55 dc mov -0x24(%ebp),%edx 13c372: 89 43 74 mov %eax,0x74(%ebx) 13c375: 89 53 78 mov %edx,0x78(%ebx) 13c378: eb b9 jmp 13c333 <_Rate_monotonic_Update_statistics+0xa7> <== ALWAYS TAKEN 0011e0c8 <_Region_Process_queue>: */ void _Region_Process_queue( Region_Control *the_region ) { 11e0c8: 55 push %ebp 11e0c9: 89 e5 mov %esp,%ebp 11e0cb: 57 push %edi 11e0cc: 56 push %esi 11e0cd: 53 push %ebx 11e0ce: 83 ec 28 sub $0x28,%esp 11e0d1: 8b 75 08 mov 0x8(%ebp),%esi 11e0d4: a1 58 f7 13 00 mov 0x13f758,%eax 11e0d9: 40 inc %eax 11e0da: a3 58 f7 13 00 mov %eax,0x13f758 * NOTE: Be sure to disable dispatching before unlocking the mutex * since we do not want to open a window where a context * switch could occur. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator(); 11e0df: ff 35 10 f8 13 00 pushl 0x13f810 11e0e5: e8 4e b2 ff ff call 119338 <_API_Mutex_Unlock> /* * NOTE: The following loop is O(n) where n is the number of * threads whose memory request is satisfied. */ for ( ; ; ) { the_thread = _Thread_queue_First( &the_region->Wait_queue ); 11e0ea: 8d 7e 10 lea 0x10(%esi),%edi RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment ( Region_Control *the_region, uintptr_t size ) { return _Heap_Allocate( &the_region->Memory, size ); 11e0ed: 8d 46 68 lea 0x68(%esi),%eax 11e0f0: 89 45 e4 mov %eax,-0x1c(%ebp) 11e0f3: 83 c4 10 add $0x10,%esp 11e0f6: eb 32 jmp 11e12a <_Region_Process_queue+0x62> <== ALWAYS TAKEN 11e0f8: 6a 00 push $0x0 11e0fa: 6a 00 push $0x0 11e0fc: ff 70 24 pushl 0x24(%eax) 11e0ff: ff 75 e4 pushl -0x1c(%ebp) 11e102: e8 69 bb ff ff call 119c70 <_Heap_Allocate_aligned_with_boundary> the_segment = (void **) _Region_Allocate_segment( the_region, the_thread->Wait.count ); if ( the_segment == NULL ) 11e107: 83 c4 10 add $0x10,%esp 11e10a: 85 c0 test %eax,%eax 11e10c: 74 2e je 11e13c <_Region_Process_queue+0x74> break; *(void **)the_thread->Wait.return_argument = the_segment; 11e10e: 8b 53 28 mov 0x28(%ebx),%edx 11e111: 89 02 mov %eax,(%edx) the_region->number_of_used_blocks += 1; 11e113: ff 46 64 incl 0x64(%esi) _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); 11e116: 83 ec 08 sub $0x8,%esp 11e119: 53 push %ebx 11e11a: 57 push %edi 11e11b: e8 94 05 00 00 call 11e6b4 <_Thread_queue_Extract> <== ALWAYS TAKEN the_thread->Wait.return_code = RTEMS_SUCCESSFUL; 11e120: c7 43 34 00 00 00 00 movl $0x0,0x34(%ebx) } 11e127: 83 c4 10 add $0x10,%esp /* * NOTE: The following loop is O(n) where n is the number of * threads whose memory request is satisfied. */ for ( ; ; ) { the_thread = _Thread_queue_First( &the_region->Wait_queue ); 11e12a: 83 ec 0c sub $0xc,%esp 11e12d: 57 push %edi 11e12e: e8 6d 06 00 00 call 11e7a0 <_Thread_queue_First> <== ALWAYS TAKEN 11e133: 89 c3 mov %eax,%ebx if ( the_thread == NULL ) 11e135: 83 c4 10 add $0x10,%esp 11e138: 85 c0 test %eax,%eax 11e13a: 75 bc jne 11e0f8 <_Region_Process_queue+0x30> the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); the_thread->Wait.return_code = RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); } 11e13c: 8d 65 f4 lea -0xc(%ebp),%esp 11e13f: 5b pop %ebx 11e140: 5e pop %esi 11e141: 5f pop %edi 11e142: c9 leave *(void **)the_thread->Wait.return_argument = the_segment; the_region->number_of_used_blocks += 1; _Thread_queue_Extract( &the_region->Wait_queue, the_thread ); the_thread->Wait.return_code = RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 11e143: e9 8c d2 ff ff jmp 11b3d4 <_Thread_Enable_dispatch> 0010d7fc <_TOD_Set>: */ void _TOD_Set( const struct timespec *time ) { 10d7fc: 55 push %ebp 10d7fd: 89 e5 mov %esp,%ebp 10d7ff: 53 push %ebx 10d800: 83 ec 04 sub $0x4,%esp 10d803: 8b 5d 08 mov 0x8(%ebp),%ebx 10d806: a1 78 01 13 00 mov 0x130178,%eax 10d80b: 40 inc %eax 10d80c: a3 78 01 13 00 mov %eax,0x130178 long seconds; _Thread_Disable_dispatch(); _TOD_Deactivate(); seconds = _TOD_Seconds_since_epoch(); 10d811: a1 0c 02 13 00 mov 0x13020c,%eax if ( time->tv_sec < seconds ) 10d816: 8b 13 mov (%ebx),%edx 10d818: 39 d0 cmp %edx,%eax 10d81a: 7f 34 jg 10d850 <_TOD_Set+0x54> Watchdog_Adjust_directions direction, Watchdog_Interval units ) { _Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units ); 10d81c: 51 push %ecx 10d81d: 29 c2 sub %eax,%edx 10d81f: 52 push %edx 10d820: 6a 00 push $0x0 10d822: 68 4c 02 13 00 push $0x13024c 10d827: e8 1c 24 00 00 call 10fc48 <_Watchdog_Adjust> 10d82c: 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 ); 10d82f: 8b 03 mov (%ebx),%eax 10d831: a3 0c 02 13 00 mov %eax,0x13020c 10d836: 8b 43 04 mov 0x4(%ebx),%eax 10d839: a3 10 02 13 00 mov %eax,0x130210 _TOD_Is_set = true; 10d83e: c6 05 8c 01 13 00 01 movb $0x1,0x13018c _TOD_Activate(); _Thread_Enable_dispatch(); } 10d845: 8b 5d fc mov -0x4(%ebp),%ebx 10d848: c9 leave _Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec ); _TOD_Is_set = true; _TOD_Activate(); _Thread_Enable_dispatch(); 10d849: e9 76 12 00 00 jmp 10eac4 <_Thread_Enable_dispatch> 10d84e: 66 90 xchg %ax,%ax <== NOT EXECUTED 10d850: 51 push %ecx 10d851: 29 d0 sub %edx,%eax 10d853: 50 push %eax 10d854: 6a 01 push $0x1 10d856: 68 4c 02 13 00 push $0x13024c 10d85b: e8 e8 23 00 00 call 10fc48 <_Watchdog_Adjust> 10d860: 83 c4 10 add $0x10,%esp 10d863: eb ca jmp 10d82f <_TOD_Set+0x33> <== ALWAYS TAKEN 0010c288 <_TOD_Tickle_ticks>: * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) { 10c288: 55 push %ebp 10c289: 89 e5 mov %esp,%ebp 10c28b: 53 push %ebx 10c28c: 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() ); 10c28f: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 10c296: a1 2c 12 12 00 mov 0x12122c,%eax 10c29b: 8d 04 80 lea (%eax,%eax,4),%eax 10c29e: 8d 04 80 lea (%eax,%eax,4),%eax 10c2a1: 8d 04 80 lea (%eax,%eax,4),%eax 10c2a4: c1 e0 03 shl $0x3,%eax 10c2a7: 89 45 f4 mov %eax,-0xc(%ebp) /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; 10c2aa: a1 a4 54 12 00 mov 0x1254a4,%eax 10c2af: 40 inc %eax 10c2b0: a3 a4 54 12 00 mov %eax,0x1254a4 /* Update the timespec format uptime */ _Timestamp_Add_to( &_TOD_Uptime, &tick ); 10c2b5: 8d 5d f0 lea -0x10(%ebp),%ebx 10c2b8: 53 push %ebx 10c2b9: 68 b8 53 12 00 push $0x1253b8 10c2be: e8 c1 1c 00 00 call 10df84 <_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 ); 10c2c3: 58 pop %eax 10c2c4: 5a pop %edx 10c2c5: 53 push %ebx 10c2c6: 68 cc 53 12 00 push $0x1253cc 10c2cb: e8 b4 1c 00 00 call 10df84 <_Timespec_Add_to> 10c2d0: 89 c3 mov %eax,%ebx while ( seconds ) { 10c2d2: 83 c4 10 add $0x10,%esp 10c2d5: 85 c0 test %eax,%eax 10c2d7: 74 16 je 10c2ef <_TOD_Tickle_ticks+0x67> 10c2d9: 8d 76 00 lea 0x0(%esi),%esi */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void ) { _Watchdog_Tickle( &_Watchdog_Seconds_chain ); 10c2dc: 83 ec 0c sub $0xc,%esp 10c2df: 68 0c 54 12 00 push $0x12540c 10c2e4: e8 4b 21 00 00 call 10e434 <_Watchdog_Tickle> 10c2e9: 83 c4 10 add $0x10,%esp 10c2ec: 4b dec %ebx 10c2ed: 75 ed jne 10c2dc <_TOD_Tickle_ticks+0x54> <== ALWAYS TAKEN _Watchdog_Tickle_seconds(); seconds--; } } 10c2ef: 8b 5d fc mov -0x4(%ebp),%ebx 10c2f2: c9 leave 10c2f3: c3 ret 0010c01c <_TOD_To_seconds>: */ uint32_t _TOD_To_seconds( const rtems_time_of_day *the_tod ) { 10c01c: 55 push %ebp 10c01d: 89 e5 mov %esp,%ebp 10c01f: 56 push %esi 10c020: 53 push %ebx 10c021: 8b 55 08 mov 0x8(%ebp),%edx uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; 10c024: 8b 72 08 mov 0x8(%edx),%esi 10c027: 4e dec %esi year_mod_4 = the_tod->year & 3; 10c028: 8b 02 mov (%edx),%eax if ( year_mod_4 == 0 ) 10c02a: 89 c3 mov %eax,%ebx 10c02c: 83 e3 03 and $0x3,%ebx 10c02f: 74 67 je 10c098 <_TOD_To_seconds+0x7c> time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; 10c031: 8b 4a 04 mov 0x4(%edx),%ecx 10c034: 0f b7 8c 09 a0 22 12 movzwl 0x1222a0(%ecx,%ecx,1),%ecx 10c03b: 00 10c03c: 8d 34 31 lea (%ecx,%esi,1),%esi time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 10c03f: 0f b7 8c 1b d4 22 12 movzwl 0x1222d4(%ebx,%ebx,1),%ecx 10c046: 00 10c047: 2d c4 07 00 00 sub $0x7c4,%eax 10c04c: c1 e8 02 shr $0x2,%eax 10c04f: 8d 1c c0 lea (%eax,%eax,8),%ebx 10c052: 8d 1c d8 lea (%eax,%ebx,8),%ebx 10c055: 8d 1c 9b lea (%ebx,%ebx,4),%ebx 10c058: 8d 04 98 lea (%eax,%ebx,4),%eax 10c05b: 01 c1 add %eax,%ecx ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; 10c05d: 01 f1 add %esi,%ecx time *= TOD_SECONDS_PER_DAY; 10c05f: 8d 04 89 lea (%ecx,%ecx,4),%eax 10c062: 8d 04 81 lea (%ecx,%eax,4),%eax 10c065: 8d 04 c1 lea (%ecx,%eax,8),%eax 10c068: c1 e0 02 shl $0x2,%eax 10c06b: 29 c8 sub %ecx,%eax 10c06d: c1 e0 07 shl $0x7,%eax time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) 10c070: 8b 5a 14 mov 0x14(%edx),%ebx * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 10c073: 8b 4a 0c mov 0xc(%edx),%ecx 10c076: 8d 0c 49 lea (%ecx,%ecx,2),%ecx 10c079: 8d 0c 89 lea (%ecx,%ecx,4),%ecx 10c07c: c1 e1 02 shl $0x2,%ecx 10c07f: 03 4a 10 add 0x10(%edx),%ecx 10c082: 8d 14 49 lea (%ecx,%ecx,2),%edx 10c085: 8d 14 92 lea (%edx,%edx,4),%edx 10c088: 8d 94 93 00 e5 da 21 lea 0x21dae500(%ebx,%edx,4),%edx 10c08f: 8d 04 02 lea (%edx,%eax,1),%eax time += TOD_SECONDS_1970_THROUGH_1988; return( time ); } 10c092: 5b pop %ebx 10c093: 5e pop %esi 10c094: c9 leave 10c095: c3 ret 10c096: 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 ]; 10c098: 8b 4a 04 mov 0x4(%edx),%ecx 10c09b: 0f b7 8c 09 ba 22 12 movzwl 0x1222ba(%ecx,%ecx,1),%ecx 10c0a2: 00 10c0a3: 8d 34 31 lea (%ecx,%esi,1),%esi 10c0a6: eb 97 jmp 10c03f <_TOD_To_seconds+0x23> <== ALWAYS TAKEN 0010c0a8 <_TOD_Validate>: */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) { 10c0a8: 55 push %ebp 10c0a9: 89 e5 mov %esp,%ebp 10c0ab: 53 push %ebx 10c0ac: 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(); 10c0af: 8b 1d 2c 42 12 00 mov 0x12422c,%ebx if ((!the_tod) || 10c0b5: 85 c9 test %ecx,%ecx 10c0b7: 74 53 je 10c10c <_TOD_Validate+0x64> <== ALWAYS TAKEN 10c0b9: b8 40 42 0f 00 mov $0xf4240,%eax 10c0be: 31 d2 xor %edx,%edx 10c0c0: f7 f3 div %ebx (the_tod->ticks >= ticks_per_second) || 10c0c2: 3b 41 18 cmp 0x18(%ecx),%eax 10c0c5: 76 45 jbe 10c10c <_TOD_Validate+0x64> (the_tod->second >= TOD_SECONDS_PER_MINUTE) || 10c0c7: 83 79 14 3b cmpl $0x3b,0x14(%ecx) 10c0cb: 77 3f ja 10c10c <_TOD_Validate+0x64> (the_tod->minute >= TOD_MINUTES_PER_HOUR) || 10c0cd: 83 79 10 3b cmpl $0x3b,0x10(%ecx) 10c0d1: 77 39 ja 10c10c <_TOD_Validate+0x64> (the_tod->hour >= TOD_HOURS_PER_DAY) || 10c0d3: 83 79 0c 17 cmpl $0x17,0xc(%ecx) 10c0d7: 77 33 ja 10c10c <_TOD_Validate+0x64> (the_tod->month == 0) || 10c0d9: 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) || 10c0dc: 85 c0 test %eax,%eax 10c0de: 74 2c je 10c10c <_TOD_Validate+0x64> <== ALWAYS TAKEN 10c0e0: 83 f8 0c cmp $0xc,%eax 10c0e3: 77 27 ja 10c10c <_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) || 10c0e5: 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) || 10c0e7: 81 fa c3 07 00 00 cmp $0x7c3,%edx 10c0ed: 76 1d jbe 10c10c <_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) ) 10c0ef: 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) || 10c0f2: 85 c9 test %ecx,%ecx 10c0f4: 74 16 je 10c10c <_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 ) 10c0f6: 83 e2 03 and $0x3,%edx 10c0f9: 75 16 jne 10c111 <_TOD_Validate+0x69> days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; 10c0fb: 8b 04 85 14 23 12 00 mov 0x122314(,%eax,4),%eax * false - if the the_tod is invalid * * NOTE: This routine only works for leap-years through 2099. */ bool _TOD_Validate( 10c102: 39 c8 cmp %ecx,%eax 10c104: 0f 93 c0 setae %al 10c107: eb 05 jmp 10c10e <_TOD_Validate+0x66> <== ALWAYS TAKEN 10c109: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10c10c: 31 c0 xor %eax,%eax if ( the_tod->day > days_in_month ) return false; return true; } 10c10e: 5b pop %ebx 10c10f: c9 leave 10c110: 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 ]; 10c111: 8b 04 85 e0 22 12 00 mov 0x1222e0(,%eax,4),%eax 10c118: eb e8 jmp 10c102 <_TOD_Validate+0x5a> <== ALWAYS TAKEN 0010ced0 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 10ced0: 55 push %ebp 10ced1: 89 e5 mov %esp,%ebp 10ced3: 57 push %edi 10ced4: 56 push %esi 10ced5: 53 push %ebx 10ced6: 83 ec 28 sub $0x28,%esp 10ced9: 8b 5d 08 mov 0x8(%ebp),%ebx 10cedc: 8b 75 0c mov 0xc(%ebp),%esi 10cedf: 8a 45 10 mov 0x10(%ebp),%al 10cee2: 88 45 e7 mov %al,-0x19(%ebp) */ /* * Save original state */ original_state = the_thread->current_state; 10cee5: 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 ); 10cee8: 53 push %ebx 10cee9: e8 2e 0e 00 00 call 10dd1c <_Thread_Set_transient> <== ALWAYS TAKEN /* * Do not bother recomputing all the priority related information if * we are not REALLY changing priority. */ if ( the_thread->current_priority != new_priority ) 10ceee: 83 c4 10 add $0x10,%esp 10cef1: 39 73 14 cmp %esi,0x14(%ebx) 10cef4: 74 0d je 10cf03 <_Thread_Change_priority+0x33> _Thread_Set_priority( the_thread, new_priority ); 10cef6: 83 ec 08 sub $0x8,%esp 10cef9: 56 push %esi 10cefa: 53 push %ebx 10cefb: e8 d4 0c 00 00 call 10dbd4 <_Thread_Set_priority> <== ALWAYS TAKEN 10cf00: 83 c4 10 add $0x10,%esp _ISR_Disable( level ); 10cf03: 9c pushf 10cf04: fa cli 10cf05: 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; 10cf06: 8b 43 10 mov 0x10(%ebx),%eax if ( state != STATES_TRANSIENT ) { 10cf09: 83 f8 04 cmp $0x4,%eax 10cf0c: 74 26 je 10cf34 <_Thread_Change_priority+0x64> /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) 10cf0e: 83 e7 04 and $0x4,%edi 10cf11: 74 15 je 10cf28 <_Thread_Change_priority+0x58> <== NEVER TAKEN the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); _ISR_Enable( level ); 10cf13: 52 push %edx 10cf14: 9d popf if ( _States_Is_waiting_on_thread_queue( state ) ) { 10cf15: a9 e0 be 03 00 test $0x3bee0,%eax 10cf1a: 0f 85 bc 00 00 00 jne 10cfdc <_Thread_Change_priority+0x10c> if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Context_Switch_necessary = true; _ISR_Enable( level ); } 10cf20: 8d 65 f4 lea -0xc(%ebp),%esp 10cf23: 5b pop %ebx 10cf24: 5e pop %esi 10cf25: 5f pop %edi 10cf26: c9 leave 10cf27: 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 ); 10cf28: 89 c1 mov %eax,%ecx 10cf2a: 83 e1 fb and $0xfffffffb,%ecx 10cf2d: 89 4b 10 mov %ecx,0x10(%ebx) 10cf30: eb e1 jmp 10cf13 <_Thread_Change_priority+0x43> <== ALWAYS TAKEN 10cf32: 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 ) ) { 10cf34: 83 e7 04 and $0x4,%edi 10cf37: 75 45 jne 10cf7e <_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 ); 10cf39: 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; 10cf40: 8b 83 90 00 00 00 mov 0x90(%ebx),%eax 10cf46: 66 8b 8b 96 00 00 00 mov 0x96(%ebx),%cx 10cf4d: 66 09 08 or %cx,(%eax) _Priority_Major_bit_map |= the_priority_map->ready_major; 10cf50: 66 a1 ec 53 12 00 mov 0x1253ec,%ax 10cf56: 0b 83 94 00 00 00 or 0x94(%ebx),%eax 10cf5c: 66 a3 ec 53 12 00 mov %ax,0x1253ec _Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it ) 10cf62: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) 10cf66: 0f 84 88 00 00 00 je 10cff4 <_Thread_Change_priority+0x124> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 10cf6c: 8b 83 8c 00 00 00 mov 0x8c(%ebx),%eax Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 10cf72: 89 43 04 mov %eax,0x4(%ebx) before_node = after_node->next; 10cf75: 8b 08 mov (%eax),%ecx after_node->next = the_node; 10cf77: 89 18 mov %ebx,(%eax) the_node->next = before_node; 10cf79: 89 0b mov %ecx,(%ebx) before_node->previous = the_node; 10cf7b: 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 ); 10cf7e: 52 push %edx 10cf7f: 9d popf 10cf80: 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 ); 10cf81: 66 8b 1d ec 53 12 00 mov 0x1253ec,%bx 10cf88: 31 c0 xor %eax,%eax 10cf8a: 89 c1 mov %eax,%ecx 10cf8c: 66 0f bc cb bsf %bx,%cx _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 10cf90: 0f b7 c9 movzwl %cx,%ecx 10cf93: 66 8b 9c 09 80 54 12 mov 0x125480(%ecx,%ecx,1),%bx 10cf9a: 00 10cf9b: 66 0f bc c3 bsf %bx,%ax * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 10cf9f: c1 e1 04 shl $0x4,%ecx 10cfa2: 0f b7 c0 movzwl %ax,%eax 10cfa5: 8d 04 01 lea (%ecx,%eax,1),%eax 10cfa8: 8d 0c 40 lea (%eax,%eax,2),%ecx 10cfab: a1 00 53 12 00 mov 0x125300,%eax 10cfb0: 8b 04 88 mov (%eax,%ecx,4),%eax 10cfb3: a3 c8 53 12 00 mov %eax,0x1253c8 * is also the heir thread, and false otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); 10cfb8: 8b 0d f8 53 12 00 mov 0x1253f8,%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() && 10cfbe: 39 c8 cmp %ecx,%eax 10cfc0: 74 0d je 10cfcf <_Thread_Change_priority+0xff> _Thread_Executing->is_preemptible ) 10cfc2: 80 79 75 00 cmpb $0x0,0x75(%ecx) 10cfc6: 74 07 je 10cfcf <_Thread_Change_priority+0xff> _Context_Switch_necessary = true; 10cfc8: c6 05 08 54 12 00 01 movb $0x1,0x125408 _ISR_Enable( level ); 10cfcf: 52 push %edx 10cfd0: 9d popf } 10cfd1: 8d 65 f4 lea -0xc(%ebp),%esp 10cfd4: 5b pop %ebx 10cfd5: 5e pop %esi 10cfd6: 5f pop %edi 10cfd7: c9 leave 10cfd8: c3 ret 10cfd9: 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 ); 10cfdc: 89 5d 0c mov %ebx,0xc(%ebp) 10cfdf: 8b 43 44 mov 0x44(%ebx),%eax 10cfe2: 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 ); } 10cfe5: 8d 65 f4 lea -0xc(%ebp),%esp 10cfe8: 5b pop %ebx 10cfe9: 5e pop %esi 10cfea: 5f pop %edi 10cfeb: 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 ); 10cfec: e9 4b 0b 00 00 jmp 10db3c <_Thread_queue_Requeue> 10cff1: 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 ); 10cff4: 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); 10cffa: 8d 48 04 lea 0x4(%eax),%ecx 10cffd: 89 0b mov %ecx,(%ebx) old_last_node = the_chain->last; 10cfff: 8b 48 08 mov 0x8(%eax),%ecx the_chain->last = the_node; 10d002: 89 58 08 mov %ebx,0x8(%eax) old_last_node->next = the_node; 10d005: 89 19 mov %ebx,(%ecx) the_node->previous = old_last_node; 10d007: 89 4b 04 mov %ecx,0x4(%ebx) 10d00a: e9 6f ff ff ff jmp 10cf7e <_Thread_Change_priority+0xae> <== ALWAYS TAKEN 0010d010 <_Thread_Clear_state>: void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) { 10d010: 55 push %ebp 10d011: 89 e5 mov %esp,%ebp 10d013: 53 push %ebx 10d014: 8b 45 08 mov 0x8(%ebp),%eax 10d017: 8b 55 0c mov 0xc(%ebp),%edx ISR_Level level; States_Control current_state; _ISR_Disable( level ); 10d01a: 9c pushf 10d01b: fa cli 10d01c: 5b pop %ebx current_state = the_thread->current_state; 10d01d: 8b 48 10 mov 0x10(%eax),%ecx if ( current_state & state ) { 10d020: 85 ca test %ecx,%edx 10d022: 74 70 je 10d094 <_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); 10d024: f7 d2 not %edx 10d026: 21 ca and %ecx,%edx current_state = 10d028: 89 50 10 mov %edx,0x10(%eax) the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { 10d02b: 85 d2 test %edx,%edx 10d02d: 75 65 jne 10d094 <_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; 10d02f: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 10d035: 66 8b 88 96 00 00 00 mov 0x96(%eax),%cx 10d03c: 66 09 0a or %cx,(%edx) _Priority_Major_bit_map |= the_priority_map->ready_major; 10d03f: 66 8b 15 ec 53 12 00 mov 0x1253ec,%dx 10d046: 0b 90 94 00 00 00 or 0x94(%eax),%edx 10d04c: 66 89 15 ec 53 12 00 mov %dx,0x1253ec _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 10d053: 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); 10d059: 8d 4a 04 lea 0x4(%edx),%ecx 10d05c: 89 08 mov %ecx,(%eax) old_last_node = the_chain->last; 10d05e: 8b 4a 08 mov 0x8(%edx),%ecx the_chain->last = the_node; 10d061: 89 42 08 mov %eax,0x8(%edx) old_last_node->next = the_node; 10d064: 89 01 mov %eax,(%ecx) the_node->previous = old_last_node; 10d066: 89 48 04 mov %ecx,0x4(%eax) _ISR_Flash( level ); 10d069: 53 push %ebx 10d06a: 9d popf 10d06b: 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 ) { 10d06c: 8b 50 14 mov 0x14(%eax),%edx 10d06f: 8b 0d c8 53 12 00 mov 0x1253c8,%ecx 10d075: 3b 51 14 cmp 0x14(%ecx),%edx 10d078: 73 1a jae 10d094 <_Thread_Clear_state+0x84> _Thread_Heir = the_thread; 10d07a: a3 c8 53 12 00 mov %eax,0x1253c8 if ( _Thread_Executing->is_preemptible || 10d07f: a1 f8 53 12 00 mov 0x1253f8,%eax 10d084: 80 78 75 00 cmpb $0x0,0x75(%eax) 10d088: 74 12 je 10d09c <_Thread_Clear_state+0x8c> the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 10d08a: c6 05 08 54 12 00 01 movb $0x1,0x125408 10d091: 8d 76 00 lea 0x0(%esi),%esi } } } _ISR_Enable( level ); 10d094: 53 push %ebx 10d095: 9d popf } 10d096: 5b pop %ebx 10d097: c9 leave 10d098: c3 ret 10d099: 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 || 10d09c: 85 d2 test %edx,%edx 10d09e: 74 ea je 10d08a <_Thread_Clear_state+0x7a> <== ALWAYS TAKEN 10d0a0: eb f2 jmp 10d094 <_Thread_Clear_state+0x84> <== ALWAYS TAKEN 0010d0a4 <_Thread_Close>: void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) { 10d0a4: 55 push %ebp 10d0a5: 89 e5 mov %esp,%ebp 10d0a7: 56 push %esi 10d0a8: 53 push %ebx 10d0a9: 8b 75 08 mov 0x8(%ebp),%esi 10d0ac: 8b 5d 0c mov 0xc(%ebp),%ebx 10d0af: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10d0b3: 8b 46 1c mov 0x1c(%esi),%eax 10d0b6: 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; 10d0bd: a1 38 53 12 00 mov 0x125338,%eax 10d0c2: 48 dec %eax 10d0c3: a3 38 53 12 00 mov %eax,0x125338 * disappear and set a transient state on it. So we temporarily * unnest dispatching. */ _Thread_Unnest_dispatch(); _User_extensions_Thread_delete( the_thread ); 10d0c8: 83 ec 0c sub $0xc,%esp 10d0cb: 53 push %ebx 10d0cc: e8 ff 10 00 00 call 10e1d0 <_User_extensions_Thread_delete> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10d0d1: a1 38 53 12 00 mov 0x125338,%eax 10d0d6: 40 inc %eax 10d0d7: a3 38 53 12 00 mov %eax,0x125338 /* * 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 ); 10d0dc: 59 pop %ecx 10d0dd: 58 pop %eax 10d0de: 53 push %ebx 10d0df: 56 push %esi 10d0e0: e8 57 f6 ff ff call 10c73c <_Objects_Close> <== ALWAYS TAKEN /* * 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 ); 10d0e5: 58 pop %eax 10d0e6: 5a pop %edx 10d0e7: 6a 01 push $0x1 10d0e9: 53 push %ebx 10d0ea: e8 51 0b 00 00 call 10dc40 <_Thread_Set_state> <== ALWAYS TAKEN if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { 10d0ef: 89 1c 24 mov %ebx,(%esp) 10d0f2: e8 9d 09 00 00 call 10da94 <_Thread_queue_Extract_with_proxy> <== ALWAYS TAKEN 10d0f7: 83 c4 10 add $0x10,%esp 10d0fa: 84 c0 test %al,%al 10d0fc: 75 06 jne 10d104 <_Thread_Close+0x60> if ( _Watchdog_Is_active( &the_thread->Timer ) ) 10d0fe: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 10d102: 74 68 je 10d16c <_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 ) ) 10d104: 3b 1d c0 53 12 00 cmp 0x1253c0,%ebx 10d10a: 74 74 je 10d180 <_Thread_Close+0xdc> _Thread_Deallocate_fp(); #endif the_thread->fp_context = NULL; 10d10c: c7 83 e8 00 00 00 00 movl $0x0,0xe8(%ebx) 10d113: 00 00 00 if ( the_thread->Start.fp_context ) 10d116: 8b 83 c8 00 00 00 mov 0xc8(%ebx),%eax 10d11c: 85 c0 test %eax,%eax 10d11e: 74 0c je 10d12c <_Thread_Close+0x88> (void) _Workspace_Free( the_thread->Start.fp_context ); 10d120: 83 ec 0c sub $0xc,%esp 10d123: 50 push %eax 10d124: e8 bf 13 00 00 call 10e4e8 <_Workspace_Free> 10d129: 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 ); 10d12c: 83 ec 0c sub $0xc,%esp 10d12f: 53 push %ebx 10d130: e8 bf 0c 00 00 call 10ddf4 <_Thread_Stack_Free> <== ALWAYS TAKEN the_thread->Start.stack = NULL; 10d135: c7 83 cc 00 00 00 00 movl $0x0,0xcc(%ebx) 10d13c: 00 00 00 if ( the_thread->extensions ) 10d13f: 8b 83 fc 00 00 00 mov 0xfc(%ebx),%eax 10d145: 83 c4 10 add $0x10,%esp 10d148: 85 c0 test %eax,%eax 10d14a: 74 0c je 10d158 <_Thread_Close+0xb4> (void) _Workspace_Free( the_thread->extensions ); 10d14c: 83 ec 0c sub $0xc,%esp 10d14f: 50 push %eax 10d150: e8 93 13 00 00 call 10e4e8 <_Workspace_Free> 10d155: 83 c4 10 add $0x10,%esp the_thread->extensions = NULL; 10d158: c7 83 fc 00 00 00 00 movl $0x0,0xfc(%ebx) 10d15f: 00 00 00 } 10d162: 8d 65 f8 lea -0x8(%ebp),%esp 10d165: 5b pop %ebx 10d166: 5e pop %esi 10d167: c9 leave 10d168: c3 ret 10d169: 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 ); 10d16c: 83 ec 0c sub $0xc,%esp 10d16f: 8d 43 48 lea 0x48(%ebx),%eax 10d172: 50 push %eax 10d173: e8 50 12 00 00 call 10e3c8 <_Watchdog_Remove> 10d178: 83 c4 10 add $0x10,%esp 10d17b: eb 87 jmp 10d104 <_Thread_Close+0x60> <== ALWAYS TAKEN 10d17d: 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; 10d180: c7 05 c0 53 12 00 00 movl $0x0,0x1253c0 10d187: 00 00 00 10d18a: eb 80 jmp 10d10c <_Thread_Close+0x68> <== ALWAYS TAKEN 0010d18c <_Thread_Create_idle>: * * _Thread_Create_idle */ void _Thread_Create_idle( void ) { 10d18c: 55 push %ebp 10d18d: 89 e5 mov %esp,%ebp 10d18f: 83 ec 14 sub $0x14,%esp * This routine allocates an internal thread. */ RTEMS_INLINE_ROUTINE Thread_Control *_Thread_Internal_allocate( void ) { return (Thread_Control *) _Objects_Allocate( &_Thread_Internal_information ); 10d192: 68 c0 54 12 00 push $0x1254c0 10d197: e8 24 f5 ff ff call 10c6c0 <_Objects_Allocate> <== ALWAYS TAKEN /* * The entire workspace is zeroed during its initialization. Thus, all * fields not explicitly assigned were explicitly zeroed by * _Workspace_Initialization. */ _Thread_Idle = _Thread_Internal_allocate(); 10d19c: a3 08 55 12 00 mov %eax,0x125508 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10d1a1: a1 38 53 12 00 mov 0x125338,%eax 10d1a6: 40 inc %eax 10d1a7: a3 38 53 12 00 mov %eax,0x125338 * that when _Thread_Initialize unnests dispatch that we do not * do anything stupid. */ _Thread_Disable_dispatch(); _Thread_Initialize( 10d1ac: 8b 15 38 12 12 00 mov 0x121238,%edx 10d1b2: 83 c4 0c add $0xc,%esp 10d1b5: 68 45 4c 44 49 push $0x49444c45 10d1ba: 6a 00 push $0x0 10d1bc: 6a 00 push $0x0 10d1be: 6a 00 push $0x0 10d1c0: 6a 01 push $0x1 10d1c2: 0f b6 05 14 12 12 00 movzbl 0x121214,%eax 10d1c9: 50 push %eax 10d1ca: 6a 00 push $0x0 10d1cc: a1 10 12 12 00 mov 0x121210,%eax 10d1d1: 39 d0 cmp %edx,%eax 10d1d3: 73 02 jae 10d1d7 <_Thread_Create_idle+0x4b> 10d1d5: 89 d0 mov %edx,%eax 10d1d7: 50 push %eax 10d1d8: 6a 00 push $0x0 10d1da: ff 35 08 55 12 00 pushl 0x125508 10d1e0: 68 c0 54 12 00 push $0x1254c0 10d1e5: e8 6a 02 00 00 call 10d454 <_Thread_Initialize> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 10d1ea: a1 38 53 12 00 mov 0x125338,%eax 10d1ef: 48 dec %eax 10d1f0: a3 38 53 12 00 mov %eax,0x125338 /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = _Thread_Executing = _Thread_Idle; 10d1f5: a1 08 55 12 00 mov 0x125508,%eax /* * WARNING!!! This is necessary to "kick" start the system and * MUST be done before _Thread_Start is invoked. */ _Thread_Heir = 10d1fa: a3 f8 53 12 00 mov %eax,0x1253f8 10d1ff: a3 c8 53 12 00 mov %eax,0x1253c8 _Thread_Executing = _Thread_Idle; _Thread_Start( 10d204: 83 c4 24 add $0x24,%esp 10d207: 6a 00 push $0x0 10d209: 6a 00 push $0x0 10d20b: ff 35 34 12 12 00 pushl 0x121234 10d211: 6a 00 push $0x0 10d213: 50 push %eax 10d214: e8 67 0c 00 00 call 10de80 <_Thread_Start> <== ALWAYS TAKEN 10d219: 83 c4 20 add $0x20,%esp Configuration.idle_task, NULL, 0 ); } 10d21c: c9 leave 10d21d: c3 ret 0010d220 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) { 10d220: 55 push %ebp 10d221: 89 e5 mov %esp,%ebp 10d223: 83 ec 20 sub $0x20,%esp Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 10d226: 8d 45 f4 lea -0xc(%ebp),%eax 10d229: 50 push %eax 10d22a: ff 75 08 pushl 0x8(%ebp) 10d22d: e8 aa 01 00 00 call 10d3dc <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { 10d232: 83 c4 10 add $0x10,%esp 10d235: 8b 55 f4 mov -0xc(%ebp),%edx 10d238: 85 d2 test %edx,%edx 10d23a: 75 1c jne 10d258 <_Thread_Delay_ended+0x38> <== ALWAYS TAKEN #if defined(RTEMS_MULTIPROCESSING) case OBJECTS_REMOTE: /* impossible */ #endif break; case OBJECTS_LOCAL: _Thread_Clear_state( 10d23c: 83 ec 08 sub $0x8,%esp 10d23f: 68 18 00 00 10 push $0x10000018 10d244: 50 push %eax 10d245: e8 c6 fd ff ff call 10d010 <_Thread_Clear_state> <== ALWAYS TAKEN 10d24a: a1 38 53 12 00 mov 0x125338,%eax 10d24f: 48 dec %eax 10d250: a3 38 53 12 00 mov %eax,0x125338 10d255: 83 c4 10 add $0x10,%esp | STATES_INTERRUPTIBLE_BY_SIGNAL ); _Thread_Unnest_dispatch(); break; } } 10d258: c9 leave 10d259: c3 ret 0010d25c <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { 10d25c: 55 push %ebp 10d25d: 89 e5 mov %esp,%ebp 10d25f: 57 push %edi 10d260: 56 push %esi 10d261: 53 push %ebx 10d262: 83 ec 1c sub $0x1c,%esp Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; 10d265: 8b 1d f8 53 12 00 mov 0x1253f8,%ebx _ISR_Disable( level ); 10d26b: 9c pushf 10d26c: fa cli 10d26d: 58 pop %eax while ( _Context_Switch_necessary == true ) { 10d26e: 8a 15 08 54 12 00 mov 0x125408,%dl 10d274: 84 d2 test %dl,%dl 10d276: 0f 84 10 01 00 00 je 10d38c <_Thread_Dispatch+0x130> 10d27c: 8d 7d d8 lea -0x28(%ebp),%edi 10d27f: e9 d1 00 00 00 jmp 10d355 <_Thread_Dispatch+0xf9> <== ALWAYS TAKEN 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 ); 10d284: 50 push %eax 10d285: 9d popf #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); 10d286: 83 ec 0c sub $0xc,%esp 10d289: 8d 45 e0 lea -0x20(%ebp),%eax 10d28c: 50 push %eax 10d28d: e8 32 2f 00 00 call 1101c4 <_TOD_Get_uptime> _Timestamp_Subtract( 10d292: 83 c4 0c add $0xc,%esp 10d295: 57 push %edi 10d296: 8d 45 e0 lea -0x20(%ebp),%eax 10d299: 50 push %eax 10d29a: 68 00 54 12 00 push $0x125400 10d29f: e8 1c 0d 00 00 call 10dfc0 <_Timespec_Subtract> <== ALWAYS TAKEN &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); 10d2a4: 5a pop %edx 10d2a5: 59 pop %ecx 10d2a6: 57 push %edi 10d2a7: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax 10d2ad: 50 push %eax 10d2ae: e8 d1 0c 00 00 call 10df84 <_Timespec_Add_to> <== ALWAYS TAKEN _Thread_Time_of_last_context_switch = uptime; 10d2b3: 8b 45 e0 mov -0x20(%ebp),%eax 10d2b6: 8b 55 e4 mov -0x1c(%ebp),%edx 10d2b9: a3 00 54 12 00 mov %eax,0x125400 10d2be: 89 15 04 54 12 00 mov %edx,0x125404 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 10d2c4: a1 c4 53 12 00 mov 0x1253c4,%eax 10d2c9: 83 c4 10 add $0x10,%esp 10d2cc: 85 c0 test %eax,%eax 10d2ce: 74 10 je 10d2e0 <_Thread_Dispatch+0x84> <== ALWAYS TAKEN executing->libc_reent = *_Thread_libc_reent; 10d2d0: 8b 10 mov (%eax),%edx 10d2d2: 89 93 ec 00 00 00 mov %edx,0xec(%ebx) *_Thread_libc_reent = heir->libc_reent; 10d2d8: 8b 96 ec 00 00 00 mov 0xec(%esi),%edx 10d2de: 89 10 mov %edx,(%eax) } _User_extensions_Thread_switch( executing, heir ); 10d2e0: 83 ec 08 sub $0x8,%esp 10d2e3: 56 push %esi 10d2e4: 53 push %ebx 10d2e5: e8 66 0f 00 00 call 10e250 <_User_extensions_Thread_switch> <== ALWAYS TAKEN if ( executing->fp_context != NULL ) _Context_Save_fp( &executing->fp_context ); #endif #endif _Context_Switch( &executing->Registers, &heir->Registers ); 10d2ea: 59 pop %ecx 10d2eb: 58 pop %eax 10d2ec: 81 c6 d0 00 00 00 add $0xd0,%esi 10d2f2: 56 push %esi 10d2f3: 8d 83 d0 00 00 00 lea 0xd0(%ebx),%eax 10d2f9: 50 push %eax 10d2fa: e8 51 12 00 00 call 10e550 <_CPU_Context_switch> #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 10d2ff: 83 c4 10 add $0x10,%esp 10d302: 8b 93 e8 00 00 00 mov 0xe8(%ebx),%edx 10d308: 85 d2 test %edx,%edx 10d30a: 74 36 je 10d342 <_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 ); 10d30c: a1 c0 53 12 00 mov 0x1253c0,%eax 10d311: 39 c3 cmp %eax,%ebx 10d313: 74 2d je 10d342 <_Thread_Dispatch+0xe6> !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 10d315: 85 c0 test %eax,%eax 10d317: 74 11 je 10d32a <_Thread_Dispatch+0xce> _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 10d319: 83 ec 0c sub $0xc,%esp 10d31c: 05 e8 00 00 00 add $0xe8,%eax 10d321: 50 push %eax 10d322: e8 5d 12 00 00 call 10e584 <_CPU_Context_save_fp> 10d327: 83 c4 10 add $0x10,%esp _Context_Restore_fp( &executing->fp_context ); 10d32a: 83 ec 0c sub $0xc,%esp 10d32d: 8d 83 e8 00 00 00 lea 0xe8(%ebx),%eax 10d333: 50 push %eax 10d334: e8 55 12 00 00 call 10e58e <_CPU_Context_restore_fp> _Thread_Allocated_fp = executing; 10d339: 89 1d c0 53 12 00 mov %ebx,0x1253c0 10d33f: 83 c4 10 add $0x10,%esp if ( executing->fp_context != NULL ) _Context_Restore_fp( &executing->fp_context ); #endif #endif executing = _Thread_Executing; 10d342: 8b 1d f8 53 12 00 mov 0x1253f8,%ebx _ISR_Disable( level ); 10d348: 9c pushf 10d349: fa cli 10d34a: 58 pop %eax Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { 10d34b: 8a 15 08 54 12 00 mov 0x125408,%dl 10d351: 84 d2 test %dl,%dl 10d353: 74 37 je 10d38c <_Thread_Dispatch+0x130> heir = _Thread_Heir; 10d355: 8b 35 c8 53 12 00 mov 0x1253c8,%esi _Thread_Dispatch_disable_level = 1; 10d35b: c7 05 38 53 12 00 01 movl $0x1,0x125338 10d362: 00 00 00 _Context_Switch_necessary = false; 10d365: c6 05 08 54 12 00 00 movb $0x0,0x125408 _Thread_Executing = heir; 10d36c: 89 35 f8 53 12 00 mov %esi,0x1253f8 #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 ) 10d372: 83 7e 7c 01 cmpl $0x1,0x7c(%esi) 10d376: 0f 85 08 ff ff ff jne 10d284 <_Thread_Dispatch+0x28> heir->cpu_time_budget = _Thread_Ticks_per_timeslice; 10d37c: 8b 15 04 53 12 00 mov 0x125304,%edx 10d382: 89 56 78 mov %edx,0x78(%esi) 10d385: e9 fa fe ff ff jmp 10d284 <_Thread_Dispatch+0x28> <== ALWAYS TAKEN 10d38a: 66 90 xchg %ax,%ax <== NOT EXECUTED executing = _Thread_Executing; _ISR_Disable( level ); } _Thread_Dispatch_disable_level = 0; 10d38c: c7 05 38 53 12 00 00 movl $0x0,0x125338 10d393: 00 00 00 _ISR_Enable( level ); 10d396: 50 push %eax 10d397: 9d popf if ( _Thread_Do_post_task_switch_extension || 10d398: a1 dc 53 12 00 mov 0x1253dc,%eax 10d39d: 85 c0 test %eax,%eax 10d39f: 75 06 jne 10d3a7 <_Thread_Dispatch+0x14b> <== ALWAYS TAKEN executing->do_post_task_switch_extension ) { 10d3a1: 80 7b 74 00 cmpb $0x0,0x74(%ebx) 10d3a5: 74 09 je 10d3b0 <_Thread_Dispatch+0x154> executing->do_post_task_switch_extension = false; 10d3a7: c6 43 74 00 movb $0x0,0x74(%ebx) _API_extensions_Run_postswitch(); 10d3ab: e8 5c e9 ff ff call 10bd0c <_API_extensions_Run_postswitch> } } 10d3b0: 8d 65 f4 lea -0xc(%ebp),%esp 10d3b3: 5b pop %ebx 10d3b4: 5e pop %esi 10d3b5: 5f pop %edi 10d3b6: c9 leave 10d3b7: c3 ret 0010d3b8 <_Thread_Enable_dispatch>: #if ( (defined(CPU_INLINE_ENABLE_DISPATCH) && \ (CPU_INLINE_ENABLE_DISPATCH == FALSE)) || \ (__RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH__ == 1) ) void _Thread_Enable_dispatch( void ) { 10d3b8: 55 push %ebp 10d3b9: 89 e5 mov %esp,%ebp 10d3bb: 83 ec 08 sub $0x8,%esp if ( --_Thread_Dispatch_disable_level ) 10d3be: a1 38 53 12 00 mov 0x125338,%eax 10d3c3: 48 dec %eax 10d3c4: a3 38 53 12 00 mov %eax,0x125338 10d3c9: a1 38 53 12 00 mov 0x125338,%eax 10d3ce: 85 c0 test %eax,%eax 10d3d0: 74 02 je 10d3d4 <_Thread_Enable_dispatch+0x1c> return; _Thread_Dispatch(); } 10d3d2: c9 leave 10d3d3: c3 ret 10d3d4: c9 leave (__RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH__ == 1) ) void _Thread_Enable_dispatch( void ) { if ( --_Thread_Dispatch_disable_level ) return; _Thread_Dispatch(); 10d3d5: e9 82 fe ff ff jmp 10d25c <_Thread_Dispatch> <== ALWAYS TAKEN 00111d98 <_Thread_Evaluate_mode>: * * XXX */ bool _Thread_Evaluate_mode( void ) { 111d98: 55 push %ebp 111d99: 89 e5 mov %esp,%ebp Thread_Control *executing; executing = _Thread_Executing; 111d9b: a1 f8 53 12 00 mov 0x1253f8,%eax if ( !_States_Is_ready( executing->current_state ) || 111da0: 8b 50 10 mov 0x10(%eax),%edx 111da3: 85 d2 test %edx,%edx 111da5: 75 0e jne 111db5 <_Thread_Evaluate_mode+0x1d> <== ALWAYS TAKEN 111da7: 3b 05 c8 53 12 00 cmp 0x1253c8,%eax 111dad: 74 11 je 111dc0 <_Thread_Evaluate_mode+0x28> ( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) { 111daf: 80 78 75 00 cmpb $0x0,0x75(%eax) 111db3: 74 0b je 111dc0 <_Thread_Evaluate_mode+0x28> <== ALWAYS TAKEN _Context_Switch_necessary = true; 111db5: c6 05 08 54 12 00 01 movb $0x1,0x125408 111dbc: b0 01 mov $0x1,%al return true; } return false; } 111dbe: c9 leave 111dbf: 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; 111dc0: 31 c0 xor %eax,%eax } return false; } 111dc2: c9 leave 111dc3: c3 ret 0010d3dc <_Thread_Get>: Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) { 10d3dc: 55 push %ebp 10d3dd: 89 e5 mov %esp,%ebp 10d3df: 53 push %ebx 10d3e0: 83 ec 04 sub $0x4,%esp 10d3e3: 8b 45 08 mov 0x8(%ebp),%eax 10d3e6: 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 ) ) { 10d3e9: 85 c0 test %eax,%eax 10d3eb: 74 4b je 10d438 <_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); 10d3ed: 89 c2 mov %eax,%edx 10d3ef: c1 ea 18 shr $0x18,%edx 10d3f2: 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 ) 10d3f5: 8d 5a ff lea -0x1(%edx),%ebx 10d3f8: 83 fb 03 cmp $0x3,%ebx 10d3fb: 77 2b ja 10d428 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 10d3fd: 89 c3 mov %eax,%ebx 10d3ff: c1 eb 1b shr $0x1b,%ebx 10d402: 4b dec %ebx 10d403: 75 23 jne 10d428 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } api_information = _Objects_Information_table[ the_api ]; 10d405: 8b 14 95 0c 53 12 00 mov 0x12530c(,%edx,4),%edx if ( !api_information ) { 10d40c: 85 d2 test %edx,%edx 10d40e: 74 18 je 10d428 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } information = api_information[ the_class ]; 10d410: 8b 52 04 mov 0x4(%edx),%edx if ( !information ) { 10d413: 85 d2 test %edx,%edx 10d415: 74 11 je 10d428 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 10d417: 53 push %ebx 10d418: 51 push %ecx 10d419: 50 push %eax 10d41a: 52 push %edx 10d41b: e8 50 f7 ff ff call 10cb70 <_Objects_Get> <== ALWAYS TAKEN 10d420: 83 c4 10 add $0x10,%esp done: return tp; } 10d423: 8b 5d fc mov -0x4(%ebp),%ebx 10d426: c9 leave 10d427: c3 ret goto done; } information = api_information[ the_class ]; if ( !information ) { *location = OBJECTS_ERROR; 10d428: c7 01 01 00 00 00 movl $0x1,(%ecx) 10d42e: 31 c0 xor %eax,%eax tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 10d430: 8b 5d fc mov -0x4(%ebp),%ebx 10d433: c9 leave 10d434: c3 ret 10d435: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10d438: a1 38 53 12 00 mov 0x125338,%eax 10d43d: 40 inc %eax 10d43e: a3 38 53 12 00 mov %eax,0x125338 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; 10d443: c7 01 00 00 00 00 movl $0x0,(%ecx) tp = _Thread_Executing; 10d449: a1 f8 53 12 00 mov 0x1253f8,%eax tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 10d44e: 8b 5d fc mov -0x4(%ebp),%ebx 10d451: c9 leave 10d452: c3 ret 00111dc4 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { 111dc4: 55 push %ebp 111dc5: 89 e5 mov %esp,%ebp 111dc7: 53 push %ebx 111dc8: 83 ec 14 sub $0x14,%esp #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 111dcb: 8b 1d f8 53 12 00 mov 0x1253f8,%ebx /* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; 111dd1: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax _ISR_Set_level(level); 111dd7: 85 c0 test %eax,%eax 111dd9: 74 79 je 111e54 <_Thread_Handler+0x90> 111ddb: fa cli #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; 111ddc: a0 70 4f 12 00 mov 0x124f70,%al 111de1: 88 45 f7 mov %al,-0x9(%ebp) doneConstructors = 1; 111de4: c6 05 70 4f 12 00 01 movb $0x1,0x124f70 #endif #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 111deb: 8b 93 e8 00 00 00 mov 0xe8(%ebx),%edx 111df1: 85 d2 test %edx,%edx 111df3: 74 24 je 111e19 <_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 ); 111df5: a1 c0 53 12 00 mov 0x1253c0,%eax 111dfa: 39 c3 cmp %eax,%ebx 111dfc: 74 1b je 111e19 <_Thread_Handler+0x55> !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 111dfe: 85 c0 test %eax,%eax 111e00: 74 11 je 111e13 <_Thread_Handler+0x4f> _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 111e02: 83 ec 0c sub $0xc,%esp 111e05: 05 e8 00 00 00 add $0xe8,%eax 111e0a: 50 push %eax 111e0b: e8 74 c7 ff ff call 10e584 <_CPU_Context_save_fp> 111e10: 83 c4 10 add $0x10,%esp _Thread_Allocated_fp = executing; 111e13: 89 1d c0 53 12 00 mov %ebx,0x1253c0 /* * 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 ); 111e19: 83 ec 0c sub $0xc,%esp 111e1c: 53 push %ebx 111e1d: e8 9e c2 ff ff call 10e0c0 <_User_extensions_Thread_begin> /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); 111e22: e8 91 b5 ff ff call 10d3b8 <_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) */ { 111e27: 83 c4 10 add $0x10,%esp 111e2a: 80 7d f7 00 cmpb $0x0,-0x9(%ebp) 111e2e: 74 28 je 111e58 <_Thread_Handler+0x94> INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 111e30: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax 111e36: 85 c0 test %eax,%eax 111e38: 74 2d je 111e67 <_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 ); 111e3a: 83 ec 0c sub $0xc,%esp 111e3d: 53 push %ebx 111e3e: e8 b9 c2 ff ff call 10e0fc <_User_extensions_Thread_exitted> _Internal_error_Occurred( 111e43: 83 c4 0c add $0xc,%esp 111e46: 6a 06 push $0x6 111e48: 6a 01 push $0x1 111e4a: 6a 00 push $0x0 111e4c: e8 d7 a7 ff ff call 10c628 <_Internal_error_Occurred> 111e51: 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); 111e54: fb sti 111e55: eb 85 jmp 111ddc <_Thread_Handler+0x18> 111e57: 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 (); 111e58: e8 53 c0 00 00 call 11deb0 <__start_set_sysctl_set> } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 111e5d: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax 111e63: 85 c0 test %eax,%eax 111e65: 75 d3 jne 111e3a <_Thread_Handler+0x76> <== ALWAYS TAKEN executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( 111e67: 83 ec 0c sub $0xc,%esp 111e6a: ff b3 a8 00 00 00 pushl 0xa8(%ebx) 111e70: ff 93 9c 00 00 00 call *0x9c(%ebx) INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument = 111e76: 89 43 28 mov %eax,0x28(%ebx) 111e79: 83 c4 10 add $0x10,%esp 111e7c: eb bc jmp 111e3a <_Thread_Handler+0x76> <== ALWAYS TAKEN 0010d694 <_Thread_Handler_initialization>: * * Output parameters: NONE */ void _Thread_Handler_initialization(void) { 10d694: 55 push %ebp 10d695: 89 e5 mov %esp,%ebp 10d697: 53 push %ebx 10d698: 83 ec 04 sub $0x4,%esp uint32_t maximum_extensions; #if defined(RTEMS_MULTIPROCESSING) uint32_t maximum_proxies; #endif ticks_per_timeslice = Configuration.ticks_per_timeslice; 10d69b: a1 30 12 12 00 mov 0x121230,%eax maximum_extensions = Configuration.maximum_extensions; 10d6a0: 8b 15 28 12 12 00 mov 0x121228,%edx #endif /* * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) 10d6a6: 8b 1d 44 12 12 00 mov 0x121244,%ebx 10d6ac: 85 db test %ebx,%ebx 10d6ae: 0f 94 c3 sete %bl 10d6b1: 8b 0d 40 12 12 00 mov 0x121240,%ecx 10d6b7: 85 c9 test %ecx,%ecx 10d6b9: 0f 94 c1 sete %cl 10d6bc: 38 cb cmp %cl,%bl 10d6be: 0f 85 9d 00 00 00 jne 10d761 <_Thread_Handler_initialization+0xcd> INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_BAD_STACK_HOOK ); _Context_Switch_necessary = false; 10d6c4: c6 05 08 54 12 00 00 movb $0x0,0x125408 _Thread_Executing = NULL; 10d6cb: c7 05 f8 53 12 00 00 movl $0x0,0x1253f8 10d6d2: 00 00 00 _Thread_Heir = NULL; 10d6d5: c7 05 c8 53 12 00 00 movl $0x0,0x1253c8 10d6dc: 00 00 00 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) _Thread_Allocated_fp = NULL; 10d6df: c7 05 c0 53 12 00 00 movl $0x0,0x1253c0 10d6e6: 00 00 00 #endif _Thread_Do_post_task_switch_extension = 0; 10d6e9: c7 05 dc 53 12 00 00 movl $0x0,0x1253dc 10d6f0: 00 00 00 _Thread_Maximum_extensions = maximum_extensions; 10d6f3: 89 15 d8 53 12 00 mov %edx,0x1253d8 _Thread_Ticks_per_timeslice = ticks_per_timeslice; 10d6f9: a3 04 53 12 00 mov %eax,0x125304 _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( 10d6fe: 83 ec 0c sub $0xc,%esp 10d701: 0f b6 05 14 12 12 00 movzbl 0x121214,%eax 10d708: 8d 44 40 03 lea 0x3(%eax,%eax,2),%eax 10d70c: c1 e0 02 shl $0x2,%eax 10d70f: 50 push %eax 10d710: e8 8b 0d 00 00 call 10e4a0 <_Workspace_Allocate_or_fatal_error> <== ALWAYS TAKEN 10d715: a3 00 53 12 00 mov %eax,0x125300 (PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control) ); for ( index=0; index <= PRIORITY_MAXIMUM ; index++ ) 10d71a: 0f b6 1d 14 12 12 00 movzbl 0x121214,%ebx 10d721: 31 d2 xor %edx,%edx 10d723: 83 c4 10 add $0x10,%esp 10d726: 66 90 xchg %ax,%ax */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 10d728: 8d 48 04 lea 0x4(%eax),%ecx 10d72b: 89 08 mov %ecx,(%eax) the_chain->permanent_null = NULL; 10d72d: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) the_chain->last = _Chain_Head(the_chain); 10d734: 89 40 08 mov %eax,0x8(%eax) 10d737: 42 inc %edx 10d738: 83 c0 0c add $0xc,%eax 10d73b: 39 da cmp %ebx,%edx 10d73d: 76 e9 jbe 10d728 <_Thread_Handler_initialization+0x94> /* * Initialize this class of objects. */ _Objects_Initialize_information( 10d73f: 50 push %eax 10d740: 6a 08 push $0x8 10d742: 6a 00 push $0x0 10d744: 68 04 01 00 00 push $0x104 10d749: 6a 01 push $0x1 10d74b: 6a 01 push $0x1 10d74d: 6a 01 push $0x1 10d74f: 68 c0 54 12 00 push $0x1254c0 10d754: e8 7f f4 ff ff call 10cbd8 <_Objects_Initialize_information> <== ALWAYS TAKEN 10d759: 83 c4 20 add $0x20,%esp false, /* true if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); } 10d75c: 8b 5d fc mov -0x4(%ebp),%ebx 10d75f: c9 leave 10d760: c3 ret * BOTH stacks hooks must be set or both must be NULL. * Do not allow mixture. */ if ( !( (!Configuration.stack_allocate_hook) == (!Configuration.stack_free_hook) ) ) _Internal_error_Occurred( 10d761: 52 push %edx 10d762: 6a 0f push $0xf 10d764: 6a 01 push $0x1 10d766: 6a 00 push $0x0 10d768: e8 bb ee ff ff call 10c628 <_Internal_error_Occurred> 0010d454 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 10d454: 55 push %ebp 10d455: 89 e5 mov %esp,%ebp 10d457: 57 push %edi 10d458: 56 push %esi 10d459: 53 push %ebx 10d45a: 83 ec 24 sub $0x24,%esp 10d45d: 8b 5d 0c mov 0xc(%ebp),%ebx 10d460: 8b 75 14 mov 0x14(%ebp),%esi 10d463: 0f b6 7d 18 movzbl 0x18(%ebp),%edi 10d467: 8a 45 20 mov 0x20(%ebp),%al 10d46a: 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; 10d46d: c7 83 f0 00 00 00 00 movl $0x0,0xf0(%ebx) 10d474: 00 00 00 10d477: c7 83 f4 00 00 00 00 movl $0x0,0xf4(%ebx) 10d47e: 00 00 00 10d481: c7 83 f8 00 00 00 00 movl $0x0,0xf8(%ebx) 10d488: 00 00 00 extensions_area = NULL; the_thread->libc_reent = NULL; 10d48b: c7 83 ec 00 00 00 00 movl $0x0,0xec(%ebx) 10d492: 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 ); 10d495: 56 push %esi 10d496: 53 push %ebx 10d497: e8 f4 08 00 00 call 10dd90 <_Thread_Stack_Allocate> <== ALWAYS TAKEN if ( !actual_stack_size || actual_stack_size < stack_size ) 10d49c: 83 c4 10 add $0x10,%esp 10d49f: 85 c0 test %eax,%eax 10d4a1: 0f 84 65 01 00 00 je 10d60c <_Thread_Initialize+0x1b8> 10d4a7: 39 c6 cmp %eax,%esi 10d4a9: 0f 87 5d 01 00 00 ja 10d60c <_Thread_Initialize+0x1b8> <== ALWAYS TAKEN Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 10d4af: 8b 93 cc 00 00 00 mov 0xcc(%ebx),%edx 10d4b5: 89 93 c4 00 00 00 mov %edx,0xc4(%ebx) the_stack->size = size; 10d4bb: 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 ) { 10d4c1: 89 f8 mov %edi,%eax 10d4c3: 84 c0 test %al,%al 10d4c5: 0f 85 59 01 00 00 jne 10d624 <_Thread_Initialize+0x1d0> 10d4cb: 31 c0 xor %eax,%eax 10d4cd: 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; 10d4d4: 89 83 e8 00 00 00 mov %eax,0xe8(%ebx) the_thread->Start.fp_context = fp_area; 10d4da: 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; 10d4e0: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx) the_watchdog->routine = routine; 10d4e7: c7 43 64 00 00 00 00 movl $0x0,0x64(%ebx) the_watchdog->id = id; 10d4ee: c7 43 68 00 00 00 00 movl $0x0,0x68(%ebx) the_watchdog->user_data = user_data; 10d4f5: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx) #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 10d4fc: a1 d8 53 12 00 mov 0x1253d8,%eax 10d501: 85 c0 test %eax,%eax 10d503: 0f 85 37 01 00 00 jne 10d640 <_Thread_Initialize+0x1ec> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area; 10d509: c7 83 fc 00 00 00 00 movl $0x0,0xfc(%ebx) 10d510: 00 00 00 10d513: 31 ff xor %edi,%edi /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 10d515: 8a 45 e7 mov -0x19(%ebp),%al 10d518: 88 83 ac 00 00 00 mov %al,0xac(%ebx) the_thread->Start.budget_algorithm = budget_algorithm; 10d51e: 8b 45 24 mov 0x24(%ebp),%eax 10d521: 89 83 b0 00 00 00 mov %eax,0xb0(%ebx) the_thread->Start.budget_callout = budget_callout; 10d527: 8b 45 28 mov 0x28(%ebp),%eax 10d52a: 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; 10d530: 8b 45 2c mov 0x2c(%ebp),%eax 10d533: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) the_thread->current_state = STATES_DORMANT; 10d539: c7 43 10 01 00 00 00 movl $0x1,0x10(%ebx) the_thread->Wait.queue = NULL; 10d540: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx) the_thread->resource_count = 0; 10d547: 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; 10d54e: 8b 45 1c mov 0x1c(%ebp),%eax 10d551: 89 43 18 mov %eax,0x18(%ebx) the_thread->Start.initial_priority = priority; 10d554: 89 83 bc 00 00 00 mov %eax,0xbc(%ebx) _Thread_Set_priority( the_thread, priority ); 10d55a: 83 ec 08 sub $0x8,%esp 10d55d: 50 push %eax 10d55e: 53 push %ebx 10d55f: e8 70 06 00 00 call 10dbd4 <_Thread_Set_priority> <== ALWAYS TAKEN /* * Initialize the CPU usage statistics */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Set_to_zero( &the_thread->cpu_time_used ); 10d564: c7 83 84 00 00 00 00 movl $0x0,0x84(%ebx) 10d56b: 00 00 00 10d56e: c7 83 88 00 00 00 00 movl $0x0,0x88(%ebx) 10d575: 00 00 00 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 10d578: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10d57c: 8b 45 08 mov 0x8(%ebp),%eax 10d57f: 8b 40 1c mov 0x1c(%eax),%eax 10d582: 89 1c 90 mov %ebx,(%eax,%edx,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 10d585: 8b 45 30 mov 0x30(%ebp),%eax 10d588: 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 ); 10d58b: 89 1c 24 mov %ebx,(%esp) 10d58e: e8 f5 0b 00 00 call 10e188 <_User_extensions_Thread_create> <== ALWAYS TAKEN if ( extension_status ) 10d593: 83 c4 10 add $0x10,%esp 10d596: 84 c0 test %al,%al 10d598: 75 7e jne 10d618 <_Thread_Initialize+0x1c4> return true; failed: if ( the_thread->libc_reent ) 10d59a: 8b 83 ec 00 00 00 mov 0xec(%ebx),%eax 10d5a0: 85 c0 test %eax,%eax 10d5a2: 74 0c je 10d5b0 <_Thread_Initialize+0x15c> _Workspace_Free( the_thread->libc_reent ); 10d5a4: 83 ec 0c sub $0xc,%esp 10d5a7: 50 push %eax 10d5a8: e8 3b 0f 00 00 call 10e4e8 <_Workspace_Free> 10d5ad: 83 c4 10 add $0x10,%esp 10d5b0: 31 f6 xor %esi,%esi for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 10d5b2: 8b 84 b3 f0 00 00 00 mov 0xf0(%ebx,%esi,4),%eax 10d5b9: 85 c0 test %eax,%eax 10d5bb: 74 0c je 10d5c9 <_Thread_Initialize+0x175> _Workspace_Free( the_thread->API_Extensions[i] ); 10d5bd: 83 ec 0c sub $0xc,%esp 10d5c0: 50 push %eax 10d5c1: e8 22 0f 00 00 call 10e4e8 <_Workspace_Free> 10d5c6: 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++ ) 10d5c9: 46 inc %esi 10d5ca: 83 fe 03 cmp $0x3,%esi 10d5cd: 75 e3 jne 10d5b2 <_Thread_Initialize+0x15e> if ( the_thread->API_Extensions[i] ) _Workspace_Free( the_thread->API_Extensions[i] ); if ( extensions_area ) 10d5cf: 85 ff test %edi,%edi 10d5d1: 74 0c je 10d5df <_Thread_Initialize+0x18b> (void) _Workspace_Free( extensions_area ); 10d5d3: 83 ec 0c sub $0xc,%esp 10d5d6: 57 push %edi 10d5d7: e8 0c 0f 00 00 call 10e4e8 <_Workspace_Free> 10d5dc: 83 c4 10 add $0x10,%esp #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 10d5df: 8b 45 e0 mov -0x20(%ebp),%eax 10d5e2: 85 c0 test %eax,%eax 10d5e4: 74 0e je 10d5f4 <_Thread_Initialize+0x1a0> (void) _Workspace_Free( fp_area ); 10d5e6: 83 ec 0c sub $0xc,%esp 10d5e9: ff 75 e0 pushl -0x20(%ebp) 10d5ec: e8 f7 0e 00 00 call 10e4e8 <_Workspace_Free> 10d5f1: 83 c4 10 add $0x10,%esp #endif _Thread_Stack_Free( the_thread ); 10d5f4: 83 ec 0c sub $0xc,%esp 10d5f7: 53 push %ebx 10d5f8: e8 f7 07 00 00 call 10ddf4 <_Thread_Stack_Free> 10d5fd: 31 c0 xor %eax,%eax return false; 10d5ff: 83 c4 10 add $0x10,%esp } 10d602: 8d 65 f4 lea -0xc(%ebp),%esp 10d605: 5b pop %ebx 10d606: 5e pop %esi 10d607: 5f pop %edi 10d608: c9 leave 10d609: c3 ret 10d60a: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( fp_area ) (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); return false; 10d60c: 31 c0 xor %eax,%eax } 10d60e: 8d 65 f4 lea -0xc(%ebp),%esp 10d611: 5b pop %ebx 10d612: 5e pop %esi 10d613: 5f pop %edi 10d614: c9 leave 10d615: c3 ret 10d616: 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 ) 10d618: b0 01 mov $0x1,%al _Thread_Stack_Free( the_thread ); return false; } 10d61a: 8d 65 f4 lea -0xc(%ebp),%esp 10d61d: 5b pop %ebx 10d61e: 5e pop %esi 10d61f: 5f pop %edi 10d620: c9 leave 10d621: c3 ret 10d622: 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 ); 10d624: 83 ec 0c sub $0xc,%esp 10d627: 6a 6c push $0x6c 10d629: e8 9e 0e 00 00 call 10e4cc <_Workspace_Allocate> 10d62e: 89 45 e0 mov %eax,-0x20(%ebp) if ( !fp_area ) 10d631: 83 c4 10 add $0x10,%esp 10d634: 85 c0 test %eax,%eax 10d636: 74 55 je 10d68d <_Thread_Initialize+0x239> 10d638: 8b 45 e0 mov -0x20(%ebp),%eax 10d63b: e9 94 fe ff ff jmp 10d4d4 <_Thread_Initialize+0x80> <== ALWAYS TAKEN /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { extensions_area = _Workspace_Allocate( 10d640: 83 ec 0c sub $0xc,%esp 10d643: 8d 04 85 04 00 00 00 lea 0x4(,%eax,4),%eax 10d64a: 50 push %eax 10d64b: e8 7c 0e 00 00 call 10e4cc <_Workspace_Allocate> 10d650: 89 c7 mov %eax,%edi (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) 10d652: 83 c4 10 add $0x10,%esp 10d655: 85 c0 test %eax,%eax 10d657: 0f 84 3d ff ff ff je 10d59a <_Thread_Initialize+0x146> goto failed; } the_thread->extensions = (void **) extensions_area; 10d65d: 89 c1 mov %eax,%ecx 10d65f: 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++ ) 10d665: 8b 35 d8 53 12 00 mov 0x1253d8,%esi 10d66b: 31 d2 xor %edx,%edx 10d66d: 31 c0 xor %eax,%eax 10d66f: eb 09 jmp 10d67a <_Thread_Initialize+0x226> <== ALWAYS TAKEN 10d671: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10d674: 8b 8b fc 00 00 00 mov 0xfc(%ebx),%ecx the_thread->extensions[i] = NULL; 10d67a: 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++ ) 10d681: 40 inc %eax 10d682: 89 c2 mov %eax,%edx 10d684: 39 f0 cmp %esi,%eax 10d686: 76 ec jbe 10d674 <_Thread_Initialize+0x220> 10d688: e9 88 fe ff ff jmp 10d515 <_Thread_Initialize+0xc1> <== ALWAYS TAKEN * 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 ) 10d68d: 31 ff xor %edi,%edi 10d68f: e9 06 ff ff ff jmp 10d59a <_Thread_Initialize+0x146> <== ALWAYS TAKEN 001114b8 <_Thread_Reset>: void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 1114b8: 55 push %ebp 1114b9: 89 e5 mov %esp,%ebp 1114bb: 53 push %ebx 1114bc: 83 ec 10 sub $0x10,%esp 1114bf: 8b 5d 08 mov 0x8(%ebp),%ebx the_thread->resource_count = 0; 1114c2: 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; 1114c9: 8a 83 ac 00 00 00 mov 0xac(%ebx),%al 1114cf: 88 43 75 mov %al,0x75(%ebx) the_thread->budget_algorithm = the_thread->Start.budget_algorithm; 1114d2: 8b 83 b0 00 00 00 mov 0xb0(%ebx),%eax 1114d8: 89 43 7c mov %eax,0x7c(%ebx) the_thread->budget_callout = the_thread->Start.budget_callout; 1114db: 8b 83 b4 00 00 00 mov 0xb4(%ebx),%eax 1114e1: 89 83 80 00 00 00 mov %eax,0x80(%ebx) the_thread->Start.pointer_argument = pointer_argument; 1114e7: 8b 45 0c mov 0xc(%ebp),%eax 1114ea: 89 83 a4 00 00 00 mov %eax,0xa4(%ebx) the_thread->Start.numeric_argument = numeric_argument; 1114f0: 8b 45 10 mov 0x10(%ebp),%eax 1114f3: 89 83 a8 00 00 00 mov %eax,0xa8(%ebx) if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { 1114f9: 53 push %ebx 1114fa: e8 6d d0 ff ff call 10e56c <_Thread_queue_Extract_with_proxy> 1114ff: 83 c4 10 add $0x10,%esp 111502: 84 c0 test %al,%al 111504: 75 06 jne 11150c <_Thread_Reset+0x54> if ( _Watchdog_Is_active( &the_thread->Timer ) ) 111506: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 11150a: 74 28 je 111534 <_Thread_Reset+0x7c> (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { 11150c: 8b 83 bc 00 00 00 mov 0xbc(%ebx),%eax 111512: 39 43 14 cmp %eax,0x14(%ebx) 111515: 74 15 je 11152c <_Thread_Reset+0x74> the_thread->real_priority = the_thread->Start.initial_priority; 111517: 89 43 18 mov %eax,0x18(%ebx) _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); 11151a: 89 45 0c mov %eax,0xc(%ebp) 11151d: 89 5d 08 mov %ebx,0x8(%ebp) } } 111520: 8b 5d fc mov -0x4(%ebp),%ebx 111523: 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 ); 111524: e9 0f d2 ff ff jmp 10e738 <_Thread_Set_priority> 111529: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } } 11152c: 8b 5d fc mov -0x4(%ebp),%ebx 11152f: c9 leave 111530: c3 ret 111531: 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 ); 111534: 83 ec 0c sub $0xc,%esp 111537: 8d 43 48 lea 0x48(%ebx),%eax 11153a: 50 push %eax 11153b: e8 2c da ff ff call 10ef6c <_Watchdog_Remove> 111540: 83 c4 10 add $0x10,%esp 111543: eb c7 jmp 11150c <_Thread_Reset+0x54> <== ALWAYS TAKEN 00110880 <_Thread_Reset_timeslice>: * ready chain * select heir */ void _Thread_Reset_timeslice( void ) { 110880: 55 push %ebp 110881: 89 e5 mov %esp,%ebp 110883: 56 push %esi 110884: 53 push %ebx ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 110885: a1 f8 53 12 00 mov 0x1253f8,%eax ready = executing->ready; 11088a: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx _ISR_Disable( level ); 110890: 9c pushf 110891: fa cli 110892: 59 pop %ecx if ( _Chain_Has_only_one_node( ready ) ) { 110893: 8b 1a mov (%edx),%ebx 110895: 3b 5a 08 cmp 0x8(%edx),%ebx 110898: 74 3e je 1108d8 <_Thread_Reset_timeslice+0x58> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 11089a: 8b 30 mov (%eax),%esi previous = the_node->previous; 11089c: 8b 58 04 mov 0x4(%eax),%ebx next->previous = previous; 11089f: 89 5e 04 mov %ebx,0x4(%esi) previous->next = next; 1108a2: 89 33 mov %esi,(%ebx) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 1108a4: 8d 5a 04 lea 0x4(%edx),%ebx 1108a7: 89 18 mov %ebx,(%eax) old_last_node = the_chain->last; 1108a9: 8b 5a 08 mov 0x8(%edx),%ebx the_chain->last = the_node; 1108ac: 89 42 08 mov %eax,0x8(%edx) old_last_node->next = the_node; 1108af: 89 03 mov %eax,(%ebx) the_node->previous = old_last_node; 1108b1: 89 58 04 mov %ebx,0x4(%eax) return; } _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 1108b4: 51 push %ecx 1108b5: 9d popf 1108b6: fa cli if ( _Thread_Is_heir( executing ) ) 1108b7: 3b 05 c8 53 12 00 cmp 0x1253c8,%eax 1108bd: 74 0d je 1108cc <_Thread_Reset_timeslice+0x4c> <== NEVER TAKEN _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; 1108bf: c6 05 08 54 12 00 01 movb $0x1,0x125408 _ISR_Enable( level ); 1108c6: 51 push %ecx 1108c7: 9d popf } 1108c8: 5b pop %ebx 1108c9: 5e pop %esi 1108ca: c9 leave 1108cb: c3 ret _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 1108cc: 8b 02 mov (%edx),%eax 1108ce: a3 c8 53 12 00 mov %eax,0x1253c8 1108d3: eb ea jmp 1108bf <_Thread_Reset_timeslice+0x3f> <== ALWAYS TAKEN 1108d5: 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 ); 1108d8: 51 push %ecx 1108d9: 9d popf _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; _ISR_Enable( level ); } 1108da: 5b pop %ebx 1108db: 5e pop %esi 1108dc: c9 leave 1108dd: c3 ret 0010e6ac <_Thread_Restart>: bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 10e6ac: 55 push %ebp 10e6ad: 89 e5 mov %esp,%ebp 10e6af: 53 push %ebx 10e6b0: 83 ec 04 sub $0x4,%esp 10e6b3: 8b 5d 08 mov 0x8(%ebp),%ebx if ( !_States_Is_dormant( the_thread->current_state ) ) { 10e6b6: f6 43 10 01 testb $0x1,0x10(%ebx) 10e6ba: 74 08 je 10e6c4 <_Thread_Restart+0x18> 10e6bc: 31 c0 xor %eax,%eax return true; } return false; } 10e6be: 8b 5d fc mov -0x4(%ebp),%ebx 10e6c1: c9 leave 10e6c2: c3 ret 10e6c3: 90 nop <== NOT EXECUTED Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { _Thread_Set_transient( the_thread ); 10e6c4: 83 ec 0c sub $0xc,%esp 10e6c7: 53 push %ebx 10e6c8: e8 b3 01 00 00 call 10e880 <_Thread_Set_transient> <== ALWAYS TAKEN _Thread_Reset( the_thread, pointer_argument, numeric_argument ); 10e6cd: 83 c4 0c add $0xc,%esp 10e6d0: ff 75 10 pushl 0x10(%ebp) 10e6d3: ff 75 0c pushl 0xc(%ebp) 10e6d6: 53 push %ebx 10e6d7: e8 dc 2d 00 00 call 1114b8 <_Thread_Reset> _Thread_Load_environment( the_thread ); 10e6dc: 89 1c 24 mov %ebx,(%esp) 10e6df: e8 b0 2a 00 00 call 111194 <_Thread_Load_environment> _Thread_Ready( the_thread ); 10e6e4: 89 1c 24 mov %ebx,(%esp) 10e6e7: e8 28 2d 00 00 call 111414 <_Thread_Ready> _User_extensions_Thread_restart( the_thread ); 10e6ec: 89 1c 24 mov %ebx,(%esp) 10e6ef: e8 80 06 00 00 call 10ed74 <_User_extensions_Thread_restart> <== ALWAYS TAKEN if ( _Thread_Is_executing ( the_thread ) ) 10e6f4: 83 c4 10 add $0x10,%esp 10e6f7: 3b 1d 58 74 12 00 cmp 0x127458,%ebx 10e6fd: 74 07 je 10e706 <_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 ); 10e6ff: b0 01 mov $0x1,%al return true; } return false; } 10e701: 8b 5d fc mov -0x4(%ebp),%ebx 10e704: c9 leave 10e705: 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 ) 10e706: 83 bb e8 00 00 00 00 cmpl $0x0,0xe8(%ebx) 10e70d: 74 18 je 10e727 <_Thread_Restart+0x7b> _Context_Restore_fp( &_Thread_Executing->fp_context ); 10e70f: 83 ec 0c sub $0xc,%esp 10e712: 81 c3 e8 00 00 00 add $0xe8,%ebx 10e718: 53 push %ebx 10e719: e8 20 0a 00 00 call 10f13e <_CPU_Context_restore_fp> 10e71e: 8b 1d 58 74 12 00 mov 0x127458,%ebx 10e724: 83 c4 10 add $0x10,%esp #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); 10e727: 83 ec 0c sub $0xc,%esp 10e72a: 81 c3 d0 00 00 00 add $0xd0,%ebx 10e730: 53 push %ebx 10e731: e8 f7 09 00 00 call 10f12d <_CPU_Context_restore> <== ALWAYS TAKEN 00111508 <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) { 111508: 55 push %ebp 111509: 89 e5 mov %esp,%ebp 11150b: 53 push %ebx 11150c: 8b 45 08 mov 0x8(%ebp),%eax ISR_Level level; States_Control current_state; _ISR_Disable( level ); 11150f: 9c pushf 111510: fa cli 111511: 59 pop %ecx _ISR_Enable( level ); return; } #endif current_state = the_thread->current_state; 111512: 8b 50 10 mov 0x10(%eax),%edx if ( current_state & STATES_SUSPENDED ) { 111515: f6 c2 02 test $0x2,%dl 111518: 74 6e je 111588 <_Thread_Resume+0x80> <== ALWAYS TAKEN 11151a: 83 e2 fd and $0xfffffffd,%edx current_state = 11151d: 89 50 10 mov %edx,0x10(%eax) the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 111520: 85 d2 test %edx,%edx 111522: 75 64 jne 111588 <_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; 111524: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 11152a: 66 8b 98 96 00 00 00 mov 0x96(%eax),%bx 111531: 66 09 1a or %bx,(%edx) _Priority_Major_bit_map |= the_priority_map->ready_major; 111534: 66 8b 15 ec a4 12 00 mov 0x12a4ec,%dx 11153b: 0b 90 94 00 00 00 or 0x94(%eax),%edx 111541: 66 89 15 ec a4 12 00 mov %dx,0x12a4ec _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 111548: 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); 11154e: 8d 5a 04 lea 0x4(%edx),%ebx 111551: 89 18 mov %ebx,(%eax) old_last_node = the_chain->last; 111553: 8b 5a 08 mov 0x8(%edx),%ebx the_chain->last = the_node; 111556: 89 42 08 mov %eax,0x8(%edx) old_last_node->next = the_node; 111559: 89 03 mov %eax,(%ebx) the_node->previous = old_last_node; 11155b: 89 58 04 mov %ebx,0x4(%eax) _ISR_Flash( level ); 11155e: 51 push %ecx 11155f: 9d popf 111560: fa cli if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 111561: 8b 50 14 mov 0x14(%eax),%edx 111564: 8b 1d c8 a4 12 00 mov 0x12a4c8,%ebx 11156a: 3b 53 14 cmp 0x14(%ebx),%edx 11156d: 73 19 jae 111588 <_Thread_Resume+0x80> _Thread_Heir = the_thread; 11156f: a3 c8 a4 12 00 mov %eax,0x12a4c8 if ( _Thread_Executing->is_preemptible || 111574: a1 f8 a4 12 00 mov 0x12a4f8,%eax 111579: 80 78 75 00 cmpb $0x0,0x75(%eax) 11157d: 74 11 je 111590 <_Thread_Resume+0x88> the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 11157f: c6 05 08 a5 12 00 01 movb $0x1,0x12a508 111586: 66 90 xchg %ax,%ax } } } _ISR_Enable( level ); 111588: 51 push %ecx 111589: 9d popf } 11158a: 5b pop %ebx 11158b: c9 leave 11158c: c3 ret 11158d: 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 || 111590: 85 d2 test %edx,%edx 111592: 74 eb je 11157f <_Thread_Resume+0x77> <== ALWAYS TAKEN 111594: eb f2 jmp 111588 <_Thread_Resume+0x80> <== ALWAYS TAKEN 0010dc40 <_Thread_Set_state>: void _Thread_Set_state( Thread_Control *the_thread, States_Control state ) { 10dc40: 55 push %ebp 10dc41: 89 e5 mov %esp,%ebp 10dc43: 56 push %esi 10dc44: 53 push %ebx 10dc45: 8b 45 08 mov 0x8(%ebp),%eax 10dc48: 8b 75 0c mov 0xc(%ebp),%esi ISR_Level level; Chain_Control *ready; ready = the_thread->ready; 10dc4b: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx _ISR_Disable( level ); 10dc51: 9c pushf 10dc52: fa cli 10dc53: 59 pop %ecx if ( !_States_Is_ready( the_thread->current_state ) ) { 10dc54: 8b 58 10 mov 0x10(%eax),%ebx 10dc57: 85 db test %ebx,%ebx 10dc59: 75 2d jne 10dc88 <_Thread_Set_state+0x48> _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = state; 10dc5b: 89 70 10 mov %esi,0x10(%eax) if ( _Chain_Has_only_one_node( ready ) ) { 10dc5e: 8b 1a mov (%edx),%ebx 10dc60: 3b 5a 08 cmp 0x8(%edx),%ebx 10dc63: 74 3b je 10dca0 <_Thread_Set_state+0x60> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 10dc65: 8b 18 mov (%eax),%ebx previous = the_node->previous; 10dc67: 8b 50 04 mov 0x4(%eax),%edx next->previous = previous; 10dc6a: 89 53 04 mov %edx,0x4(%ebx) previous->next = next; 10dc6d: 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 ); 10dc6f: 51 push %ecx 10dc70: 9d popf 10dc71: fa cli if ( _Thread_Is_heir( the_thread ) ) 10dc72: 3b 05 c8 53 12 00 cmp 0x1253c8,%eax 10dc78: 74 62 je 10dcdc <_Thread_Set_state+0x9c> _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) 10dc7a: 3b 05 f8 53 12 00 cmp 0x1253f8,%eax 10dc80: 74 12 je 10dc94 <_Thread_Set_state+0x54> _Context_Switch_necessary = true; _ISR_Enable( level ); 10dc82: 51 push %ecx 10dc83: 9d popf } 10dc84: 5b pop %ebx 10dc85: 5e pop %esi 10dc86: c9 leave 10dc87: c3 ret Chain_Control *ready; ready = the_thread->ready; _ISR_Disable( level ); if ( !_States_Is_ready( the_thread->current_state ) ) { the_thread->current_state = 10dc88: 09 f3 or %esi,%ebx 10dc8a: 89 58 10 mov %ebx,0x10(%eax) _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); 10dc8d: 51 push %ecx 10dc8e: 9d popf if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; _ISR_Enable( level ); } 10dc8f: 5b pop %ebx 10dc90: 5e pop %esi 10dc91: c9 leave 10dc92: c3 ret 10dc93: 90 nop <== NOT EXECUTED if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; 10dc94: c6 05 08 54 12 00 01 movb $0x1,0x125408 10dc9b: eb e5 jmp 10dc82 <_Thread_Set_state+0x42> <== ALWAYS TAKEN 10dc9d: 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); 10dca0: 8d 5a 04 lea 0x4(%edx),%ebx 10dca3: 89 1a mov %ebx,(%edx) the_chain->permanent_null = NULL; 10dca5: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) the_chain->last = _Chain_Head(the_chain); 10dcac: 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; 10dcaf: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 10dcb5: 66 8b 98 9a 00 00 00 mov 0x9a(%eax),%bx 10dcbc: 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 ); 10dcbf: 66 83 3a 00 cmpw $0x0,(%edx) 10dcc3: 75 aa jne 10dc6f <_Thread_Set_state+0x2f> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; 10dcc5: 66 8b 15 ec 53 12 00 mov 0x1253ec,%dx 10dccc: 23 90 98 00 00 00 and 0x98(%eax),%edx 10dcd2: 66 89 15 ec 53 12 00 mov %dx,0x1253ec 10dcd9: eb 94 jmp 10dc6f <_Thread_Set_state+0x2f> <== ALWAYS TAKEN 10dcdb: 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 ); 10dcdc: 66 8b 35 ec 53 12 00 mov 0x1253ec,%si 10dce3: 31 d2 xor %edx,%edx 10dce5: 89 d3 mov %edx,%ebx 10dce7: 66 0f bc de bsf %si,%bx _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 10dceb: 0f b7 db movzwl %bx,%ebx 10dcee: 66 8b b4 1b 80 54 12 mov 0x125480(%ebx,%ebx,1),%si 10dcf5: 00 10dcf6: 66 0f bc d6 bsf %si,%dx * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 10dcfa: c1 e3 04 shl $0x4,%ebx 10dcfd: 0f b7 d2 movzwl %dx,%edx 10dd00: 8d 14 13 lea (%ebx,%edx,1),%edx 10dd03: 8d 1c 52 lea (%edx,%edx,2),%ebx 10dd06: 8b 15 00 53 12 00 mov 0x125300,%edx 10dd0c: 8b 14 9a mov (%edx,%ebx,4),%edx 10dd0f: 89 15 c8 53 12 00 mov %edx,0x1253c8 10dd15: e9 60 ff ff ff jmp 10dc7a <_Thread_Set_state+0x3a> <== ALWAYS TAKEN 0010dd1c <_Thread_Set_transient>: */ void _Thread_Set_transient( Thread_Control *the_thread ) { 10dd1c: 55 push %ebp 10dd1d: 89 e5 mov %esp,%ebp 10dd1f: 56 push %esi 10dd20: 53 push %ebx 10dd21: 8b 45 08 mov 0x8(%ebp),%eax ISR_Level level; uint32_t old_state; Chain_Control *ready; ready = the_thread->ready; 10dd24: 8b 88 8c 00 00 00 mov 0x8c(%eax),%ecx _ISR_Disable( level ); 10dd2a: 9c pushf 10dd2b: fa cli 10dd2c: 5b pop %ebx old_state = the_thread->current_state; 10dd2d: 8b 50 10 mov 0x10(%eax),%edx the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state ); 10dd30: 89 d6 mov %edx,%esi 10dd32: 83 ce 04 or $0x4,%esi 10dd35: 89 70 10 mov %esi,0x10(%eax) if ( _States_Is_ready( old_state ) ) { 10dd38: 85 d2 test %edx,%edx 10dd3a: 75 11 jne 10dd4d <_Thread_Set_transient+0x31> if ( _Chain_Has_only_one_node( ready ) ) { 10dd3c: 8b 11 mov (%ecx),%edx 10dd3e: 3b 51 08 cmp 0x8(%ecx),%edx 10dd41: 74 11 je 10dd54 <_Thread_Set_transient+0x38> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 10dd43: 8b 10 mov (%eax),%edx previous = the_node->previous; 10dd45: 8b 40 04 mov 0x4(%eax),%eax next->previous = previous; 10dd48: 89 42 04 mov %eax,0x4(%edx) previous->next = next; 10dd4b: 89 10 mov %edx,(%eax) } else _Chain_Extract_unprotected( &the_thread->Object.Node ); } _ISR_Enable( level ); 10dd4d: 53 push %ebx 10dd4e: 9d popf } 10dd4f: 5b pop %ebx 10dd50: 5e pop %esi 10dd51: c9 leave 10dd52: c3 ret 10dd53: 90 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 10dd54: 8d 51 04 lea 0x4(%ecx),%edx 10dd57: 89 11 mov %edx,(%ecx) the_chain->permanent_null = NULL; 10dd59: c7 41 04 00 00 00 00 movl $0x0,0x4(%ecx) the_chain->last = _Chain_Head(the_chain); 10dd60: 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; 10dd63: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 10dd69: 66 8b 88 9a 00 00 00 mov 0x9a(%eax),%cx 10dd70: 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 ); 10dd73: 66 83 3a 00 cmpw $0x0,(%edx) 10dd77: 75 d4 jne 10dd4d <_Thread_Set_transient+0x31> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; 10dd79: 66 8b 15 ec 53 12 00 mov 0x1253ec,%dx 10dd80: 23 90 98 00 00 00 and 0x98(%eax),%edx 10dd86: 66 89 15 ec 53 12 00 mov %dx,0x1253ec 10dd8d: eb be jmp 10dd4d <_Thread_Set_transient+0x31> <== ALWAYS TAKEN 0010dd90 <_Thread_Stack_Allocate>: size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 10dd90: 55 push %ebp 10dd91: 89 e5 mov %esp,%ebp 10dd93: 53 push %ebx 10dd94: 83 ec 04 sub $0x4,%esp 10dd97: a1 10 12 12 00 mov 0x121210,%eax 10dd9c: 8b 5d 0c mov 0xc(%ebp),%ebx 10dd9f: 39 c3 cmp %eax,%ebx 10dda1: 73 02 jae 10dda5 <_Thread_Stack_Allocate+0x15> 10dda3: 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 ) { 10dda5: a1 40 12 12 00 mov 0x121240,%eax 10ddaa: 85 c0 test %eax,%eax 10ddac: 74 32 je 10dde0 <_Thread_Stack_Allocate+0x50> stack_addr = (*Configuration.stack_allocate_hook)( the_stack_size ); 10ddae: 83 ec 0c sub $0xc,%esp 10ddb1: 53 push %ebx 10ddb2: ff d0 call *%eax 10ddb4: 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 ) 10ddb7: 85 c0 test %eax,%eax 10ddb9: 74 11 je 10ddcc <_Thread_Stack_Allocate+0x3c> the_stack_size = 0; the_thread->Start.stack = stack_addr; 10ddbb: 8b 55 08 mov 0x8(%ebp),%edx 10ddbe: 89 82 cc 00 00 00 mov %eax,0xcc(%edx) return the_stack_size; } 10ddc4: 89 d8 mov %ebx,%eax 10ddc6: 8b 5d fc mov -0x4(%ebp),%ebx 10ddc9: c9 leave 10ddca: c3 ret 10ddcb: 90 nop <== NOT EXECUTED the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr ) 10ddcc: 31 db xor %ebx,%ebx the_stack_size = 0; the_thread->Start.stack = stack_addr; 10ddce: 8b 55 08 mov 0x8(%ebp),%edx 10ddd1: 89 82 cc 00 00 00 mov %eax,0xcc(%edx) return the_stack_size; } 10ddd7: 89 d8 mov %ebx,%eax 10ddd9: 8b 5d fc mov -0x4(%ebp),%ebx 10dddc: c9 leave 10dddd: c3 ret 10ddde: 66 90 xchg %ax,%ax <== NOT EXECUTED RTEMS_INLINE_ROUTINE uint32_t _Stack_Adjust_size ( size_t size ) { return size + CPU_STACK_ALIGNMENT; 10dde0: 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 ); 10dde3: 83 ec 0c sub $0xc,%esp 10dde6: 53 push %ebx 10dde7: e8 e0 06 00 00 call 10e4cc <_Workspace_Allocate> <== ALWAYS TAKEN 10ddec: 83 c4 10 add $0x10,%esp 10ddef: eb c6 jmp 10ddb7 <_Thread_Stack_Allocate+0x27> <== ALWAYS TAKEN 0010ddf4 <_Thread_Stack_Free>: */ void _Thread_Stack_Free( Thread_Control *the_thread ) { 10ddf4: 55 push %ebp 10ddf5: 89 e5 mov %esp,%ebp 10ddf7: 83 ec 08 sub $0x8,%esp 10ddfa: 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 ) 10ddfd: a1 44 12 12 00 mov 0x121244,%eax 10de02: 85 c0 test %eax,%eax 10de04: 74 0e je 10de14 <_Thread_Stack_Free+0x20> (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); 10de06: 8b 92 c4 00 00 00 mov 0xc4(%edx),%edx 10de0c: 89 55 08 mov %edx,0x8(%ebp) else _Workspace_Free( the_thread->Start.Initial_stack.area ); } 10de0f: 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 ); 10de10: ff e0 jmp *%eax 10de12: 66 90 xchg %ax,%ax <== NOT EXECUTED else _Workspace_Free( the_thread->Start.Initial_stack.area ); 10de14: 8b 82 c4 00 00 00 mov 0xc4(%edx),%eax 10de1a: 89 45 08 mov %eax,0x8(%ebp) } 10de1d: 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 ); 10de1e: e9 c5 06 00 00 jmp 10e4e8 <_Workspace_Free> <== ALWAYS TAKEN 0010de80 <_Thread_Start>: Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 10de80: 55 push %ebp 10de81: 89 e5 mov %esp,%ebp 10de83: 53 push %ebx 10de84: 83 ec 04 sub $0x4,%esp 10de87: 8b 5d 08 mov 0x8(%ebp),%ebx if ( _States_Is_dormant( the_thread->current_state ) ) { 10de8a: f6 43 10 01 testb $0x1,0x10(%ebx) 10de8e: 75 08 jne 10de98 <_Thread_Start+0x18> 10de90: 31 c0 xor %eax,%eax return true; } return false; } 10de92: 8b 5d fc mov -0x4(%ebp),%ebx 10de95: c9 leave 10de96: c3 ret 10de97: 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; 10de98: 8b 45 10 mov 0x10(%ebp),%eax 10de9b: 89 83 9c 00 00 00 mov %eax,0x9c(%ebx) the_thread->Start.prototype = the_prototype; 10dea1: 8b 45 0c mov 0xc(%ebp),%eax 10dea4: 89 83 a0 00 00 00 mov %eax,0xa0(%ebx) the_thread->Start.pointer_argument = pointer_argument; 10deaa: 8b 45 14 mov 0x14(%ebp),%eax 10dead: 89 83 a4 00 00 00 mov %eax,0xa4(%ebx) the_thread->Start.numeric_argument = numeric_argument; 10deb3: 8b 45 18 mov 0x18(%ebp),%eax 10deb6: 89 83 a8 00 00 00 mov %eax,0xa8(%ebx) _Thread_Load_environment( the_thread ); 10debc: 83 ec 0c sub $0xc,%esp 10debf: 53 push %ebx 10dec0: e8 97 26 00 00 call 11055c <_Thread_Load_environment> _Thread_Ready( the_thread ); 10dec5: 89 1c 24 mov %ebx,(%esp) 10dec8: e8 0f 29 00 00 call 1107dc <_Thread_Ready> <== ALWAYS TAKEN _User_extensions_Thread_start( the_thread ); 10decd: 89 1c 24 mov %ebx,(%esp) 10ded0: e8 3b 03 00 00 call 10e210 <_User_extensions_Thread_start> <== ALWAYS TAKEN 10ded5: b0 01 mov $0x1,%al return true; 10ded7: 83 c4 10 add $0x10,%esp } return false; } 10deda: 8b 5d fc mov -0x4(%ebp),%ebx 10dedd: c9 leave 10dede: c3 ret 0010de24 <_Thread_Start_multitasking>: * ready chain * select heir */ void _Thread_Start_multitasking( void ) { 10de24: 55 push %ebp 10de25: 89 e5 mov %esp,%ebp 10de27: 83 ec 08 sub $0x8,%esp 10de2a: c7 05 00 55 12 00 03 movl $0x3,0x125500 10de31: 00 00 00 * the system is shut down. */ _System_state_Set( SYSTEM_STATE_UP ); _Context_Switch_necessary = false; 10de34: c6 05 08 54 12 00 00 movb $0x0,0x125408 _Thread_Executing = _Thread_Heir; 10de3b: a1 c8 53 12 00 mov 0x1253c8,%eax 10de40: a3 f8 53 12 00 mov %eax,0x1253f8 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) /* * don't need to worry about saving BSP's floating point state */ if ( _Thread_Heir->fp_context != NULL ) 10de45: 8b 90 e8 00 00 00 mov 0xe8(%eax),%edx 10de4b: 85 d2 test %edx,%edx 10de4d: 74 16 je 10de65 <_Thread_Start_multitasking+0x41> _Context_Restore_fp( &_Thread_Heir->fp_context ); 10de4f: 83 ec 0c sub $0xc,%esp 10de52: 05 e8 00 00 00 add $0xe8,%eax 10de57: 50 push %eax 10de58: e8 31 07 00 00 call 10e58e <_CPU_Context_restore_fp> <== ALWAYS TAKEN 10de5d: a1 c8 53 12 00 mov 0x1253c8,%eax 10de62: 83 c4 10 add $0x10,%esp #endif _Context_Switch( &_Thread_BSP_context, &_Thread_Heir->Registers ); 10de65: 83 ec 08 sub $0x8,%esp 10de68: 05 d0 00 00 00 add $0xd0,%eax 10de6d: 50 push %eax 10de6e: 68 20 53 12 00 push $0x125320 10de73: e8 d8 06 00 00 call 10e550 <_CPU_Context_switch> <== ALWAYS TAKEN 10de78: 83 c4 10 add $0x10,%esp } 10de7b: c9 leave 10de7c: c3 ret 001108e0 <_Thread_Suspend>: */ void _Thread_Suspend( Thread_Control *the_thread ) { 1108e0: 55 push %ebp 1108e1: 89 e5 mov %esp,%ebp 1108e3: 56 push %esi 1108e4: 53 push %ebx 1108e5: 8b 45 08 mov 0x8(%ebp),%eax ISR_Level level; Chain_Control *ready; ready = the_thread->ready; 1108e8: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx _ISR_Disable( level ); 1108ee: 9c pushf 1108ef: fa cli 1108f0: 59 pop %ecx #if defined(RTEMS_ITRON_API) the_thread->suspend_count++; #endif if ( !_States_Is_ready( the_thread->current_state ) ) { 1108f1: 8b 58 10 mov 0x10(%eax),%ebx 1108f4: 85 db test %ebx,%ebx 1108f6: 75 34 jne 11092c <_Thread_Suspend+0x4c> _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = STATES_SUSPENDED; 1108f8: c7 40 10 02 00 00 00 movl $0x2,0x10(%eax) if ( _Chain_Has_only_one_node( ready ) ) { 1108ff: 8b 1a mov (%edx),%ebx 110901: 3b 5a 08 cmp 0x8(%edx),%ebx 110904: 74 3e je 110944 <_Thread_Suspend+0x64> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 110906: 8b 18 mov (%eax),%ebx previous = the_node->previous; 110908: 8b 50 04 mov 0x4(%eax),%edx next->previous = previous; 11090b: 89 53 04 mov %edx,0x4(%ebx) previous->next = next; 11090e: 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 ); 110910: 51 push %ecx 110911: 9d popf 110912: fa cli if ( _Thread_Is_heir( the_thread ) ) 110913: 3b 05 c8 53 12 00 cmp 0x1253c8,%eax 110919: 74 65 je 110980 <_Thread_Suspend+0xa0> _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) 11091b: 3b 05 f8 53 12 00 cmp 0x1253f8,%eax 110921: 74 15 je 110938 <_Thread_Suspend+0x58> _Context_Switch_necessary = true; _ISR_Enable( level ); 110923: 51 push %ecx 110924: 9d popf } 110925: 5b pop %ebx 110926: 5e pop %esi 110927: c9 leave 110928: c3 ret 110929: 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 = 11092c: 83 cb 02 or $0x2,%ebx 11092f: 89 58 10 mov %ebx,0x10(%eax) _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); 110932: 51 push %ecx 110933: 9d popf if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; _ISR_Enable( level ); } 110934: 5b pop %ebx 110935: 5e pop %esi 110936: c9 leave 110937: c3 ret if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; 110938: c6 05 08 54 12 00 01 movb $0x1,0x125408 11093f: eb e2 jmp 110923 <_Thread_Suspend+0x43> <== ALWAYS TAKEN 110941: 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); 110944: 8d 5a 04 lea 0x4(%edx),%ebx 110947: 89 1a mov %ebx,(%edx) the_chain->permanent_null = NULL; 110949: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) the_chain->last = _Chain_Head(the_chain); 110950: 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; 110953: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 110959: 66 8b 98 9a 00 00 00 mov 0x9a(%eax),%bx 110960: 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 ); 110963: 66 83 3a 00 cmpw $0x0,(%edx) 110967: 75 a7 jne 110910 <_Thread_Suspend+0x30> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; 110969: 66 8b 15 ec 53 12 00 mov 0x1253ec,%dx 110970: 23 90 98 00 00 00 and 0x98(%eax),%edx 110976: 66 89 15 ec 53 12 00 mov %dx,0x1253ec 11097d: eb 91 jmp 110910 <_Thread_Suspend+0x30> <== ALWAYS TAKEN 11097f: 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 ); 110980: 66 8b 35 ec 53 12 00 mov 0x1253ec,%si 110987: 31 d2 xor %edx,%edx 110989: 89 d3 mov %edx,%ebx 11098b: 66 0f bc de bsf %si,%bx _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 11098f: 0f b7 db movzwl %bx,%ebx 110992: 66 8b b4 1b 80 54 12 mov 0x125480(%ebx,%ebx,1),%si 110999: 00 11099a: 66 0f bc d6 bsf %si,%dx * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 11099e: c1 e3 04 shl $0x4,%ebx 1109a1: 0f b7 d2 movzwl %dx,%edx 1109a4: 8d 14 13 lea (%ebx,%edx,1),%edx 1109a7: 8d 1c 52 lea (%edx,%edx,2),%ebx 1109aa: 8b 15 00 53 12 00 mov 0x125300,%edx 1109b0: 8b 14 9a mov (%edx,%ebx,4),%edx 1109b3: 89 15 c8 53 12 00 mov %edx,0x1253c8 1109b9: e9 5d ff ff ff jmp 11091b <_Thread_Suspend+0x3b> <== ALWAYS TAKEN 0010dee0 <_Thread_Tickle_timeslice>: * * Output parameters: NONE */ void _Thread_Tickle_timeslice( void ) { 10dee0: 55 push %ebp 10dee1: 89 e5 mov %esp,%ebp 10dee3: 53 push %ebx 10dee4: 83 ec 04 sub $0x4,%esp Thread_Control *executing; executing = _Thread_Executing; 10dee7: 8b 1d f8 53 12 00 mov 0x1253f8,%ebx /* * If the thread is not preemptible or is not ready, then * just return. */ if ( !executing->is_preemptible ) 10deed: 80 7b 75 00 cmpb $0x0,0x75(%ebx) 10def1: 74 0d je 10df00 <_Thread_Tickle_timeslice+0x20> return; if ( !_States_Is_ready( executing->current_state ) ) 10def3: 8b 53 10 mov 0x10(%ebx),%edx 10def6: 85 d2 test %edx,%edx 10def8: 75 06 jne 10df00 <_Thread_Tickle_timeslice+0x20> /* * The cpu budget algorithm determines what happens next. */ switch ( executing->budget_algorithm ) { 10defa: 83 7b 7c 01 cmpl $0x1,0x7c(%ebx) 10defe: 74 04 je 10df04 <_Thread_Tickle_timeslice+0x24> if ( --executing->cpu_time_budget == 0 ) (*executing->budget_callout)( executing ); break; #endif } } 10df00: 58 pop %eax 10df01: 5b pop %ebx 10df02: c9 leave 10df03: c3 ret case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE: #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE) case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE: #endif if ( (int)(--executing->cpu_time_budget) <= 0 ) { 10df04: 8b 43 78 mov 0x78(%ebx),%eax 10df07: 48 dec %eax 10df08: 89 43 78 mov %eax,0x78(%ebx) 10df0b: 85 c0 test %eax,%eax 10df0d: 7f f1 jg 10df00 <_Thread_Tickle_timeslice+0x20> _Thread_Reset_timeslice(); 10df0f: e8 6c 29 00 00 call 110880 <_Thread_Reset_timeslice> executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 10df14: a1 04 53 12 00 mov 0x125304,%eax 10df19: 89 43 78 mov %eax,0x78(%ebx) 10df1c: eb e2 jmp 10df00 <_Thread_Tickle_timeslice+0x20> <== ALWAYS TAKEN 0010df20 <_Thread_Yield_processor>: * ready chain * select heir */ void _Thread_Yield_processor( void ) { 10df20: 55 push %ebp 10df21: 89 e5 mov %esp,%ebp 10df23: 56 push %esi 10df24: 53 push %ebx ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 10df25: a1 f8 53 12 00 mov 0x1253f8,%eax ready = executing->ready; 10df2a: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx _ISR_Disable( level ); 10df30: 9c pushf 10df31: fa cli 10df32: 59 pop %ecx if ( !_Chain_Has_only_one_node( ready ) ) { 10df33: 8b 1a mov (%edx),%ebx 10df35: 3b 5a 08 cmp 0x8(%edx),%ebx 10df38: 74 3e je 10df78 <_Thread_Yield_processor+0x58> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 10df3a: 8b 30 mov (%eax),%esi previous = the_node->previous; 10df3c: 8b 58 04 mov 0x4(%eax),%ebx next->previous = previous; 10df3f: 89 5e 04 mov %ebx,0x4(%esi) previous->next = next; 10df42: 89 33 mov %esi,(%ebx) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 10df44: 8d 5a 04 lea 0x4(%edx),%ebx 10df47: 89 18 mov %ebx,(%eax) old_last_node = the_chain->last; 10df49: 8b 5a 08 mov 0x8(%edx),%ebx the_chain->last = the_node; 10df4c: 89 42 08 mov %eax,0x8(%edx) old_last_node->next = the_node; 10df4f: 89 03 mov %eax,(%ebx) the_node->previous = old_last_node; 10df51: 89 58 04 mov %ebx,0x4(%eax) _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 10df54: 51 push %ecx 10df55: 9d popf 10df56: fa cli if ( _Thread_Is_heir( executing ) ) 10df57: 3b 05 c8 53 12 00 cmp 0x1253c8,%eax 10df5d: 74 0d je 10df6c <_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; 10df5f: c6 05 08 54 12 00 01 movb $0x1,0x125408 _ISR_Enable( level ); 10df66: 51 push %ecx 10df67: 9d popf } 10df68: 5b pop %ebx 10df69: 5e pop %esi 10df6a: c9 leave 10df6b: c3 ret _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 10df6c: 8b 02 mov (%edx),%eax 10df6e: a3 c8 53 12 00 mov %eax,0x1253c8 10df73: eb ea jmp 10df5f <_Thread_Yield_processor+0x3f> <== ALWAYS TAKEN 10df75: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) 10df78: 3b 05 c8 53 12 00 cmp 0x1253c8,%eax 10df7e: 75 df jne 10df5f <_Thread_Yield_processor+0x3f> <== ALWAYS TAKEN 10df80: eb e4 jmp 10df66 <_Thread_Yield_processor+0x46> <== ALWAYS TAKEN 0010ce84 <_Thread_blocking_operation_Cancel>: Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { 10ce84: 55 push %ebp 10ce85: 89 e5 mov %esp,%ebp 10ce87: 53 push %ebx 10ce88: 83 ec 04 sub $0x4,%esp 10ce8b: 8b 5d 0c mov 0xc(%ebp),%ebx 10ce8e: 8b 45 10 mov 0x10(%ebp),%eax #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; 10ce91: 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 ) ) { 10ce98: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 10ce9c: 74 16 je 10ceb4 <_Thread_blocking_operation_Cancel+0x30> _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); } else _ISR_Enable( level ); 10ce9e: 50 push %eax 10ce9f: 9d popf RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 10cea0: c7 45 0c f8 ff 03 10 movl $0x1003fff8,0xc(%ebp) 10cea7: 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 } 10ceaa: 8b 5d fc mov -0x4(%ebp),%ebx 10cead: c9 leave 10ceae: e9 5d 01 00 00 jmp 10d010 <_Thread_Clear_state> <== ALWAYS TAKEN 10ceb3: 90 nop <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 10ceb4: 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 ); 10cebb: 50 push %eax 10cebc: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 10cebd: 83 ec 0c sub $0xc,%esp 10cec0: 8d 43 48 lea 0x48(%ebx),%eax 10cec3: 50 push %eax 10cec4: e8 ff 14 00 00 call 10e3c8 <_Watchdog_Remove> 10cec9: 83 c4 10 add $0x10,%esp 10cecc: eb d2 jmp 10cea0 <_Thread_blocking_operation_Cancel+0x1c> <== ALWAYS TAKEN 0010d770 <_Thread_queue_Dequeue>: */ Thread_Control *_Thread_queue_Dequeue( Thread_queue_Control *the_thread_queue ) { 10d770: 55 push %ebp 10d771: 89 e5 mov %esp,%ebp 10d773: 53 push %ebx 10d774: 83 ec 04 sub $0x4,%esp 10d777: 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 ) 10d77a: 83 7b 34 01 cmpl $0x1,0x34(%ebx) 10d77e: 74 1c je 10d79c <_Thread_queue_Dequeue+0x2c> 10d780: b8 ec 05 11 00 mov $0x1105ec,%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 ); 10d785: 83 ec 0c sub $0xc,%esp 10d788: 53 push %ebx 10d789: ff d0 call *%eax _ISR_Disable( level ); 10d78b: 9c pushf 10d78c: fa cli 10d78d: 5a pop %edx if ( !the_thread ) { 10d78e: 83 c4 10 add $0x10,%esp 10d791: 85 c0 test %eax,%eax 10d793: 74 0f je 10d7a4 <_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 ); 10d795: 52 push %edx 10d796: 9d popf return the_thread; } 10d797: 8b 5d fc mov -0x4(%ebp),%ebx 10d79a: c9 leave 10d79b: 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 ) 10d79c: b8 bc d7 10 00 mov $0x10d7bc,%eax 10d7a1: eb e2 jmp 10d785 <_Thread_queue_Dequeue+0x15> <== ALWAYS TAKEN 10d7a3: 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; 10d7a4: 8b 4b 30 mov 0x30(%ebx),%ecx 10d7a7: 49 dec %ecx 10d7a8: 83 f9 01 cmp $0x1,%ecx 10d7ab: 77 e8 ja 10d795 <_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; 10d7ad: c7 43 30 03 00 00 00 movl $0x3,0x30(%ebx) the_thread = _Thread_Executing; 10d7b4: a1 f8 53 12 00 mov 0x1253f8,%eax 10d7b9: eb da jmp 10d795 <_Thread_queue_Dequeue+0x25> <== ALWAYS TAKEN 001105ec <_Thread_queue_Dequeue_fifo>: */ Thread_Control *_Thread_queue_Dequeue_fifo( Thread_queue_Control *the_thread_queue ) { 1105ec: 55 push %ebp 1105ed: 89 e5 mov %esp,%ebp 1105ef: 53 push %ebx 1105f0: 83 ec 04 sub $0x4,%esp 1105f3: 8b 45 08 mov 0x8(%ebp),%eax ISR_Level level; Thread_Control *the_thread; _ISR_Disable( level ); 1105f6: 9c pushf 1105f7: fa cli 1105f8: 59 pop %ecx */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 1105f9: 8b 18 mov (%eax),%ebx */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 1105fb: 8d 50 04 lea 0x4(%eax),%edx 1105fe: 39 d3 cmp %edx,%ebx 110600: 74 5a je 11065c <_Thread_queue_Dequeue_fifo+0x70> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 110602: 8b 13 mov (%ebx),%edx the_chain->first = new_first; 110604: 89 10 mov %edx,(%eax) new_first->previous = _Chain_Head(the_chain); 110606: 89 42 04 mov %eax,0x4(%edx) if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) { the_thread = (Thread_Control *) _Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo ); the_thread->Wait.queue = NULL; 110609: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx) if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 110610: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 110614: 74 1a je 110630 <_Thread_queue_Dequeue_fifo+0x44> _ISR_Enable( level ); 110616: 51 push %ecx 110617: 9d popf RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 110618: 83 ec 08 sub $0x8,%esp 11061b: 68 f8 ff 03 10 push $0x1003fff8 110620: 53 push %ebx 110621: e8 ea c9 ff ff call 10d010 <_Thread_Clear_state> 110626: 83 c4 10 add $0x10,%esp return the_thread; } _ISR_Enable( level ); return NULL; } 110629: 89 d8 mov %ebx,%eax 11062b: 8b 5d fc mov -0x4(%ebp),%ebx 11062e: c9 leave 11062f: c3 ret RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 110630: 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 ); 110637: 51 push %ecx 110638: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 110639: 83 ec 0c sub $0xc,%esp 11063c: 8d 43 48 lea 0x48(%ebx),%eax 11063f: 50 push %eax 110640: e8 83 dd ff ff call 10e3c8 <_Watchdog_Remove> 110645: 58 pop %eax 110646: 5a pop %edx 110647: 68 f8 ff 03 10 push $0x1003fff8 11064c: 53 push %ebx 11064d: e8 be c9 ff ff call 10d010 <_Thread_Clear_state> 110652: 83 c4 10 add $0x10,%esp return the_thread; } _ISR_Enable( level ); return NULL; } 110655: 89 d8 mov %ebx,%eax 110657: 8b 5d fc mov -0x4(%ebp),%ebx 11065a: c9 leave 11065b: c3 ret #endif return the_thread; } _ISR_Enable( level ); 11065c: 51 push %ecx 11065d: 9d popf 11065e: 31 db xor %ebx,%ebx return NULL; 110660: eb c7 jmp 110629 <_Thread_queue_Dequeue_fifo+0x3d> <== ALWAYS TAKEN 0010d7bc <_Thread_queue_Dequeue_priority>: */ Thread_Control *_Thread_queue_Dequeue_priority( Thread_queue_Control *the_thread_queue ) { 10d7bc: 55 push %ebp 10d7bd: 89 e5 mov %esp,%ebp 10d7bf: 57 push %edi 10d7c0: 56 push %esi 10d7c1: 53 push %ebx 10d7c2: 83 ec 1c sub $0x1c,%esp 10d7c5: 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 ); 10d7c8: 9c pushf 10d7c9: fa cli 10d7ca: 58 pop %eax 10d7cb: 89 f2 mov %esi,%edx 10d7cd: 31 c9 xor %ecx,%ecx */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10d7cf: 8d 5a 04 lea 0x4(%edx),%ebx 10d7d2: 39 1a cmp %ebx,(%edx) 10d7d4: 75 1a jne 10d7f0 <_Thread_queue_Dequeue_priority+0x34> for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { 10d7d6: 41 inc %ecx 10d7d7: 83 c2 0c add $0xc,%edx Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; 10d7da: 83 f9 04 cmp $0x4,%ecx 10d7dd: 75 f0 jne 10d7cf <_Thread_queue_Dequeue_priority+0x13> } /* * We did not find a thread to unblock. */ _ISR_Enable( level ); 10d7df: 50 push %eax 10d7e0: 9d popf 10d7e1: 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 ); } 10d7e3: 89 d8 mov %ebx,%eax 10d7e5: 8d 65 f4 lea -0xc(%ebp),%esp 10d7e8: 5b pop %ebx 10d7e9: 5e pop %esi 10d7ea: 5f pop %edi 10d7eb: c9 leave 10d7ec: c3 ret 10d7ed: 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 *) 10d7f0: 8d 14 49 lea (%ecx,%ecx,2),%edx 10d7f3: 8b 1c 96 mov (%esi,%edx,4),%ebx */ _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL; 10d7f6: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx) new_first_node = the_thread->Wait.Block2n.first; 10d7fd: 8b 53 38 mov 0x38(%ebx),%edx new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; 10d800: 8b 0b mov (%ebx),%ecx previous_node = the_thread->Object.Node.previous; 10d802: 8b 73 04 mov 0x4(%ebx),%esi 10d805: 8d 7b 3c lea 0x3c(%ebx),%edi 10d808: 39 fa cmp %edi,%edx 10d80a: 74 76 je 10d882 <_Thread_queue_Dequeue_priority+0xc6> if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { last_node = the_thread->Wait.Block2n.last; 10d80c: 8b 7b 40 mov 0x40(%ebx),%edi 10d80f: 89 7d e4 mov %edi,-0x1c(%ebp) new_second_node = new_first_node->next; 10d812: 8b 3a mov (%edx),%edi previous_node->next = new_first_node; 10d814: 89 16 mov %edx,(%esi) next_node->previous = new_first_node; 10d816: 89 51 04 mov %edx,0x4(%ecx) new_first_node->next = next_node; 10d819: 89 0a mov %ecx,(%edx) new_first_node->previous = previous_node; 10d81b: 89 72 04 mov %esi,0x4(%edx) if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 10d81e: 8b 4b 38 mov 0x38(%ebx),%ecx 10d821: 3b 4b 40 cmp 0x40(%ebx),%ecx 10d824: 74 14 je 10d83a <_Thread_queue_Dequeue_priority+0x7e> /* > two threads on 2-n */ new_second_node->previous = 10d826: 8d 4a 38 lea 0x38(%edx),%ecx 10d829: 89 4f 04 mov %ecx,0x4(%edi) _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 10d82c: 89 7a 38 mov %edi,0x38(%edx) new_first_thread->Wait.Block2n.last = last_node; 10d82f: 8b 4d e4 mov -0x1c(%ebp),%ecx 10d832: 89 4a 40 mov %ecx,0x40(%edx) last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 10d835: 83 c2 3c add $0x3c,%edx 10d838: 89 11 mov %edx,(%ecx) } else { previous_node->next = next_node; next_node->previous = previous_node; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 10d83a: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 10d83e: 74 18 je 10d858 <_Thread_queue_Dequeue_priority+0x9c> _ISR_Enable( level ); 10d840: 50 push %eax 10d841: 9d popf RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 10d842: 83 ec 08 sub $0x8,%esp 10d845: 68 f8 ff 03 10 push $0x1003fff8 10d84a: 53 push %ebx 10d84b: e8 c0 f7 ff ff call 10d010 <_Thread_Clear_state> <== ALWAYS TAKEN 10d850: 83 c4 10 add $0x10,%esp 10d853: eb 8e jmp 10d7e3 <_Thread_queue_Dequeue_priority+0x27> <== ALWAYS TAKEN 10d855: 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; 10d858: c7 43 50 03 00 00 00 movl $0x3,0x50(%ebx) _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 10d85f: 50 push %eax 10d860: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 10d861: 83 ec 0c sub $0xc,%esp 10d864: 8d 43 48 lea 0x48(%ebx),%eax 10d867: 50 push %eax 10d868: e8 5b 0b 00 00 call 10e3c8 <_Watchdog_Remove> <== ALWAYS TAKEN 10d86d: 58 pop %eax 10d86e: 5a pop %edx 10d86f: 68 f8 ff 03 10 push $0x1003fff8 10d874: 53 push %ebx 10d875: e8 96 f7 ff ff call 10d010 <_Thread_Clear_state> 10d87a: 83 c4 10 add $0x10,%esp 10d87d: e9 61 ff ff ff jmp 10d7e3 <_Thread_queue_Dequeue_priority+0x27> <== ALWAYS TAKEN new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; 10d882: 89 0e mov %ecx,(%esi) next_node->previous = previous_node; 10d884: 89 71 04 mov %esi,0x4(%ecx) 10d887: eb b1 jmp 10d83a <_Thread_queue_Dequeue_priority+0x7e> <== ALWAYS TAKEN 00110664 <_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 ) { 110664: 55 push %ebp 110665: 89 e5 mov %esp,%ebp 110667: 56 push %esi 110668: 53 push %ebx 110669: 8b 55 08 mov 0x8(%ebp),%edx 11066c: 8b 5d 0c mov 0xc(%ebp),%ebx Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level ); 11066f: 9c pushf 110670: fa cli 110671: 59 pop %ecx sync_state = the_thread_queue->sync_state; 110672: 8b 42 30 mov 0x30(%edx),%eax the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 110675: c7 42 30 00 00 00 00 movl $0x0,0x30(%edx) if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { 11067c: 83 f8 01 cmp $0x1,%eax 11067f: 74 0b je 11068c <_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; 110681: 8b 55 10 mov 0x10(%ebp),%edx 110684: 89 0a mov %ecx,(%edx) return sync_state; } 110686: 5b pop %ebx 110687: 5e pop %esi 110688: c9 leave 110689: c3 ret 11068a: 66 90 xchg %ax,%ax <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 11068c: 8d 72 04 lea 0x4(%edx),%esi 11068f: 89 33 mov %esi,(%ebx) old_last_node = the_chain->last; 110691: 8b 72 08 mov 0x8(%edx),%esi the_chain->last = the_node; 110694: 89 5a 08 mov %ebx,0x8(%edx) old_last_node->next = the_node; 110697: 89 1e mov %ebx,(%esi) the_node->previous = old_last_node; 110699: 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; 11069c: 89 53 44 mov %edx,0x44(%ebx) the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; _ISR_Enable( level ); 11069f: 51 push %ecx 1106a0: 9d popf * * WARNING! Returning with interrupts disabled! */ *level_p = level; return sync_state; } 1106a1: 5b pop %ebx 1106a2: 5e pop %esi 1106a3: c9 leave 1106a4: c3 ret 0010d924 <_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 ) { 10d924: 55 push %ebp 10d925: 89 e5 mov %esp,%ebp 10d927: 57 push %edi 10d928: 56 push %esi 10d929: 53 push %ebx 10d92a: 83 ec 08 sub $0x8,%esp 10d92d: 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); 10d930: 8d 47 3c lea 0x3c(%edi),%eax 10d933: 89 47 38 mov %eax,0x38(%edi) the_chain->permanent_null = NULL; 10d936: c7 47 3c 00 00 00 00 movl $0x0,0x3c(%edi) the_chain->last = _Chain_Head(the_chain); 10d93d: 8d 47 38 lea 0x38(%edi),%eax 10d940: 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; 10d943: 8b 57 14 mov 0x14(%edi),%edx header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 10d946: 89 d0 mov %edx,%eax 10d948: c1 e8 06 shr $0x6,%eax 10d94b: 8d 04 40 lea (%eax,%eax,2),%eax 10d94e: 8b 4d 08 mov 0x8(%ebp),%ecx 10d951: 8d 34 81 lea (%ecx,%eax,4),%esi block_state = the_thread_queue->state; 10d954: 8b 59 38 mov 0x38(%ecx),%ebx if ( _Thread_queue_Is_reverse_search( priority ) ) 10d957: f6 c2 20 test $0x20,%dl 10d95a: 75 60 jne 10d9bc <_Thread_queue_Enqueue_priority+0x98> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10d95c: 8d 46 04 lea 0x4(%esi),%eax 10d95f: 89 75 f0 mov %esi,-0x10(%ebp) 10d962: 89 7d ec mov %edi,-0x14(%ebp) 10d965: 89 c7 mov %eax,%edi goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 10d967: 9c pushf 10d968: fa cli 10d969: 5e pop %esi search_thread = (Thread_Control *) header->first; 10d96a: 8b 4d f0 mov -0x10(%ebp),%ecx 10d96d: 8b 01 mov (%ecx),%eax while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 10d96f: 39 f8 cmp %edi,%eax 10d971: 75 17 jne 10d98a <_Thread_queue_Enqueue_priority+0x66> 10d973: e9 09 01 00 00 jmp 10da81 <_Thread_queue_Enqueue_priority+0x15d> <== ALWAYS TAKEN break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 10d978: 56 push %esi 10d979: 9d popf 10d97a: fa cli if ( !_States_Are_set( search_thread->current_state, block_state) ) { 10d97b: 85 58 10 test %ebx,0x10(%eax) 10d97e: 0f 84 a8 00 00 00 je 10da2c <_Thread_queue_Enqueue_priority+0x108> <== ALWAYS TAKEN _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; 10d984: 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 ) ) { 10d986: 39 f8 cmp %edi,%eax 10d988: 74 07 je 10d991 <_Thread_queue_Enqueue_priority+0x6d> search_priority = search_thread->current_priority; 10d98a: 8b 48 14 mov 0x14(%eax),%ecx if ( priority <= search_priority ) 10d98d: 39 ca cmp %ecx,%edx 10d98f: 77 e7 ja 10d978 <_Thread_queue_Enqueue_priority+0x54> 10d991: 89 4d f0 mov %ecx,-0x10(%ebp) 10d994: 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 ) ) { 10d997: 89 f3 mov %esi,%ebx } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 10d999: 8b 4d 08 mov 0x8(%ebp),%ecx 10d99c: 83 79 30 01 cmpl $0x1,0x30(%ecx) 10d9a0: 0f 84 8e 00 00 00 je 10da34 <_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; 10d9a6: 8b 45 10 mov 0x10(%ebp),%eax 10d9a9: 89 18 mov %ebx,(%eax) return the_thread_queue->sync_state; 10d9ab: 8b 55 08 mov 0x8(%ebp),%edx 10d9ae: 8b 42 30 mov 0x30(%edx),%eax } 10d9b1: 83 c4 08 add $0x8,%esp 10d9b4: 5b pop %ebx 10d9b5: 5e pop %esi 10d9b6: 5f pop %edi 10d9b7: c9 leave 10d9b8: c3 ret 10d9b9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10d9bc: 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; 10d9bf: 0f b6 0d 14 12 12 00 movzbl 0x121214,%ecx 10d9c6: 41 inc %ecx _ISR_Disable( level ); 10d9c7: 9c pushf 10d9c8: fa cli 10d9c9: 5f pop %edi search_thread = (Thread_Control *) header->last; 10d9ca: 8b 46 08 mov 0x8(%esi),%eax while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 10d9cd: 39 f0 cmp %esi,%eax 10d9cf: 75 12 jne 10d9e3 <_Thread_queue_Enqueue_priority+0xbf> 10d9d1: eb 17 jmp 10d9ea <_Thread_queue_Enqueue_priority+0xc6> <== ALWAYS TAKEN 10d9d3: 90 nop <== NOT EXECUTED break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 10d9d4: 57 push %edi 10d9d5: 9d popf 10d9d6: fa cli if ( !_States_Are_set( search_thread->current_state, block_state) ) { 10d9d7: 85 58 10 test %ebx,0x10(%eax) 10d9da: 74 4c je 10da28 <_Thread_queue_Enqueue_priority+0x104> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) 10d9dc: 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 ) ) { 10d9df: 39 f0 cmp %esi,%eax 10d9e1: 74 07 je 10d9ea <_Thread_queue_Enqueue_priority+0xc6> search_priority = search_thread->current_priority; 10d9e3: 8b 48 14 mov 0x14(%eax),%ecx if ( priority >= search_priority ) 10d9e6: 39 ca cmp %ecx,%edx 10d9e8: 72 ea jb 10d9d4 <_Thread_queue_Enqueue_priority+0xb0> 10d9ea: 89 fe mov %edi,%esi 10d9ec: 89 4d ec mov %ecx,-0x14(%ebp) 10d9ef: 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 ) ) { 10d9f2: 89 f3 mov %esi,%ebx } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 10d9f4: 8b 4d 08 mov 0x8(%ebp),%ecx 10d9f7: 83 79 30 01 cmpl $0x1,0x30(%ecx) 10d9fb: 75 a9 jne 10d9a6 <_Thread_queue_Enqueue_priority+0x82> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 10d9fd: c7 41 30 00 00 00 00 movl $0x0,0x30(%ecx) if ( priority == search_priority ) 10da04: 3b 55 ec cmp -0x14(%ebp),%edx 10da07: 74 56 je 10da5f <_Thread_queue_Enqueue_priority+0x13b> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 10da09: 8b 10 mov (%eax),%edx the_node = (Chain_Node *) the_thread; the_node->next = next_node; 10da0b: 89 17 mov %edx,(%edi) the_node->previous = search_node; 10da0d: 89 47 04 mov %eax,0x4(%edi) search_node->next = the_node; 10da10: 89 38 mov %edi,(%eax) next_node->previous = the_node; 10da12: 89 7a 04 mov %edi,0x4(%edx) the_thread->Wait.queue = the_thread_queue; 10da15: 89 4f 44 mov %ecx,0x44(%edi) _ISR_Enable( level ); 10da18: 56 push %esi 10da19: 9d popf 10da1a: b8 01 00 00 00 mov $0x1,%eax * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 10da1f: 83 c4 08 add $0x8,%esp 10da22: 5b pop %ebx 10da23: 5e pop %esi 10da24: 5f pop %edi 10da25: c9 leave 10da26: c3 ret 10da27: 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 ); 10da28: 57 push %edi 10da29: 9d popf goto restart_reverse_search; 10da2a: eb 93 jmp 10d9bf <_Thread_queue_Enqueue_priority+0x9b> <== ALWAYS TAKEN if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 10da2c: 56 push %esi <== NOT EXECUTED 10da2d: 9d popf <== NOT EXECUTED goto restart_forward_search; 10da2e: e9 34 ff ff ff jmp 10d967 <_Thread_queue_Enqueue_priority+0x43> <== NOT EXECUTED 10da33: 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; 10da34: c7 41 30 00 00 00 00 movl $0x0,0x30(%ecx) if ( priority == search_priority ) 10da3b: 3b 55 f0 cmp -0x10(%ebp),%edx 10da3e: 74 1f je 10da5f <_Thread_queue_Enqueue_priority+0x13b> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 10da40: 8b 50 04 mov 0x4(%eax),%edx the_node = (Chain_Node *) the_thread; the_node->next = search_node; 10da43: 89 07 mov %eax,(%edi) the_node->previous = previous_node; 10da45: 89 57 04 mov %edx,0x4(%edi) previous_node->next = the_node; 10da48: 89 3a mov %edi,(%edx) search_node->previous = the_node; 10da4a: 89 78 04 mov %edi,0x4(%eax) the_thread->Wait.queue = the_thread_queue; 10da4d: 89 4f 44 mov %ecx,0x44(%edi) _ISR_Enable( level ); 10da50: 56 push %esi 10da51: 9d popf 10da52: b8 01 00 00 00 mov $0x1,%eax * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 10da57: 83 c4 08 add $0x8,%esp 10da5a: 5b pop %ebx 10da5b: 5e pop %esi 10da5c: 5f pop %edi 10da5d: c9 leave 10da5e: c3 ret 10da5f: 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; 10da62: 8b 50 04 mov 0x4(%eax),%edx the_node = (Chain_Node *) the_thread; the_node->next = search_node; 10da65: 89 07 mov %eax,(%edi) the_node->previous = previous_node; 10da67: 89 57 04 mov %edx,0x4(%edi) previous_node->next = the_node; 10da6a: 89 3a mov %edi,(%edx) search_node->previous = the_node; 10da6c: 89 78 04 mov %edi,0x4(%eax) the_thread->Wait.queue = the_thread_queue; 10da6f: 8b 45 08 mov 0x8(%ebp),%eax 10da72: 89 47 44 mov %eax,0x44(%edi) _ISR_Enable( level ); 10da75: 53 push %ebx 10da76: 9d popf 10da77: b8 01 00 00 00 mov $0x1,%eax return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 10da7c: e9 30 ff ff ff jmp 10d9b1 <_Thread_queue_Enqueue_priority+0x8d> <== ALWAYS TAKEN 10da81: 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 ) ) { 10da84: 89 f3 mov %esi,%ebx 10da86: c7 45 f0 ff ff ff ff movl $0xffffffff,-0x10(%ebp) 10da8d: e9 07 ff ff ff jmp 10d999 <_Thread_queue_Enqueue_priority+0x75> <== ALWAYS TAKEN 0010d88c <_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 ) { 10d88c: 55 push %ebp 10d88d: 89 e5 mov %esp,%ebp 10d88f: 57 push %edi 10d890: 56 push %esi 10d891: 53 push %ebx 10d892: 83 ec 24 sub $0x24,%esp 10d895: 8b 75 08 mov 0x8(%ebp),%esi 10d898: 8b 7d 0c mov 0xc(%ebp),%edi Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; 10d89b: 8b 1d f8 53 12 00 mov 0x1253f8,%ebx else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); 10d8a1: ff 76 38 pushl 0x38(%esi) 10d8a4: 53 push %ebx 10d8a5: e8 96 03 00 00 call 10dc40 <_Thread_Set_state> <== ALWAYS TAKEN /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { 10d8aa: 83 c4 10 add $0x10,%esp 10d8ad: 85 ff test %edi,%edi 10d8af: 75 33 jne 10d8e4 <_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 ) 10d8b1: 83 7e 34 01 cmpl $0x1,0x34(%esi) 10d8b5: 74 64 je 10d91b <_Thread_queue_Enqueue_with_handler+0x8f> 10d8b7: b8 64 06 11 00 mov $0x110664,%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 ); 10d8bc: 51 push %ecx 10d8bd: 8d 55 e4 lea -0x1c(%ebp),%edx 10d8c0: 52 push %edx 10d8c1: 53 push %ebx 10d8c2: 56 push %esi 10d8c3: ff d0 call *%eax if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) 10d8c5: 83 c4 10 add $0x10,%esp 10d8c8: 83 f8 01 cmp $0x1,%eax 10d8cb: 74 0e je 10d8db <_Thread_queue_Enqueue_with_handler+0x4f> _Thread_blocking_operation_Cancel( sync_state, the_thread, level ); 10d8cd: 52 push %edx 10d8ce: ff 75 e4 pushl -0x1c(%ebp) 10d8d1: 53 push %ebx 10d8d2: 50 push %eax 10d8d3: e8 ac f5 ff ff call 10ce84 <_Thread_blocking_operation_Cancel> 10d8d8: 83 c4 10 add $0x10,%esp } 10d8db: 8d 65 f4 lea -0xc(%ebp),%esp 10d8de: 5b pop %ebx 10d8df: 5e pop %esi 10d8e0: 5f pop %edi 10d8e1: c9 leave 10d8e2: c3 ret 10d8e3: 90 nop <== NOT EXECUTED /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { _Watchdog_Initialize( 10d8e4: 8b 43 08 mov 0x8(%ebx),%eax Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 10d8e7: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx) the_watchdog->routine = routine; 10d8ee: 8b 55 10 mov 0x10(%ebp),%edx 10d8f1: 89 53 64 mov %edx,0x64(%ebx) the_watchdog->id = id; 10d8f4: 89 43 68 mov %eax,0x68(%ebx) the_watchdog->user_data = user_data; 10d8f7: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 10d8fe: 89 7b 54 mov %edi,0x54(%ebx) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 10d901: 83 ec 08 sub $0x8,%esp 10d904: 8d 43 48 lea 0x48(%ebx),%eax 10d907: 50 push %eax 10d908: 68 18 54 12 00 push $0x125418 10d90d: e8 7e 09 00 00 call 10e290 <_Watchdog_Insert> <== ALWAYS TAKEN 10d912: 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 ) 10d915: 83 7e 34 01 cmpl $0x1,0x34(%esi) 10d919: 75 9c jne 10d8b7 <_Thread_queue_Enqueue_with_handler+0x2b> 10d91b: b8 24 d9 10 00 mov $0x10d924,%eax 10d920: eb 9a jmp 10d8bc <_Thread_queue_Enqueue_with_handler+0x30> <== ALWAYS TAKEN 001106a8 <_Thread_queue_Extract>: void _Thread_queue_Extract( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 1106a8: 55 push %ebp 1106a9: 89 e5 mov %esp,%ebp 1106ab: 83 ec 08 sub $0x8,%esp 1106ae: 8b 45 08 mov 0x8(%ebp),%eax 1106b1: 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 ) 1106b4: 83 78 34 01 cmpl $0x1,0x34(%eax) 1106b8: 74 0e je 1106c8 <_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 ); 1106ba: 89 55 0c mov %edx,0xc(%ebp) 1106bd: 89 45 08 mov %eax,0x8(%ebp) } 1106c0: 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 ); 1106c1: e9 ba 17 00 00 jmp 111e80 <_Thread_queue_Extract_fifo> 1106c6: 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 ); 1106c8: 51 push %ecx 1106c9: 6a 00 push $0x0 1106cb: 52 push %edx 1106cc: 50 push %eax 1106cd: e8 06 00 00 00 call 1106d8 <_Thread_queue_Extract_priority_helper> <== ALWAYS TAKEN 1106d2: 83 c4 10 add $0x10,%esp else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); } 1106d5: c9 leave 1106d6: c3 ret 00111e80 <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread ) { 111e80: 55 push %ebp 111e81: 89 e5 mov %esp,%ebp 111e83: 53 push %ebx 111e84: 83 ec 04 sub $0x4,%esp 111e87: 8b 5d 0c mov 0xc(%ebp),%ebx ISR_Level level; _ISR_Disable( level ); 111e8a: 9c pushf 111e8b: fa cli 111e8c: 58 pop %eax if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 111e8d: f7 43 10 e0 be 03 00 testl $0x3bee0,0x10(%ebx) 111e94: 74 2e je 111ec4 <_Thread_queue_Extract_fifo+0x44> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 111e96: 8b 0b mov (%ebx),%ecx previous = the_node->previous; 111e98: 8b 53 04 mov 0x4(%ebx),%edx next->previous = previous; 111e9b: 89 51 04 mov %edx,0x4(%ecx) previous->next = next; 111e9e: 89 0a mov %ecx,(%edx) return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; 111ea0: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx) if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 111ea7: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 111eab: 74 1f je 111ecc <_Thread_queue_Extract_fifo+0x4c> _ISR_Enable( level ); 111ead: 50 push %eax 111eae: 9d popf RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 111eaf: c7 45 0c f8 ff 03 10 movl $0x1003fff8,0xc(%ebp) 111eb6: 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 } 111eb9: 8b 5d fc mov -0x4(%ebp),%ebx 111ebc: c9 leave 111ebd: e9 4e b1 ff ff jmp 10d010 <_Thread_Clear_state> 111ec2: 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 ); 111ec4: 50 push %eax 111ec5: 9d popf #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 111ec6: 8b 5d fc mov -0x4(%ebp),%ebx 111ec9: c9 leave 111eca: c3 ret 111ecb: 90 nop <== NOT EXECUTED 111ecc: 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 ); 111ed3: 50 push %eax 111ed4: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 111ed5: 83 ec 0c sub $0xc,%esp 111ed8: 8d 43 48 lea 0x48(%ebx),%eax 111edb: 50 push %eax 111edc: e8 e7 c4 ff ff call 10e3c8 <_Watchdog_Remove> 111ee1: 83 c4 10 add $0x10,%esp 111ee4: eb c9 jmp 111eaf <_Thread_queue_Extract_fifo+0x2f> <== ALWAYS TAKEN 001106d8 <_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 ) { 1106d8: 55 push %ebp 1106d9: 89 e5 mov %esp,%ebp 1106db: 57 push %edi 1106dc: 56 push %esi 1106dd: 53 push %ebx 1106de: 83 ec 1c sub $0x1c,%esp 1106e1: 8b 5d 0c mov 0xc(%ebp),%ebx 1106e4: 8a 45 10 mov 0x10(%ebp),%al 1106e7: 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 ); 1106ea: 9c pushf 1106eb: fa cli 1106ec: 8f 45 e4 popl -0x1c(%ebp) if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 1106ef: f7 43 10 e0 be 03 00 testl $0x3bee0,0x10(%ebx) 1106f6: 74 6c je 110764 <_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; 1106f8: 8b 13 mov (%ebx),%edx previous_node = the_node->previous; 1106fa: 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)); 1106fd: 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; 110700: 8d 73 3c lea 0x3c(%ebx),%esi 110703: 39 f0 cmp %esi,%eax 110705: 74 69 je 110770 <_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; 110707: 8b 7b 40 mov 0x40(%ebx),%edi new_second_node = new_first_node->next; 11070a: 8b 30 mov (%eax),%esi previous_node->next = new_first_node; 11070c: 89 01 mov %eax,(%ecx) next_node->previous = new_first_node; 11070e: 89 42 04 mov %eax,0x4(%edx) new_first_node->next = next_node; 110711: 89 10 mov %edx,(%eax) new_first_node->previous = previous_node; 110713: 89 48 04 mov %ecx,0x4(%eax) if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 110716: 8b 53 38 mov 0x38(%ebx),%edx 110719: 3b 53 40 cmp 0x40(%ebx),%edx 11071c: 74 11 je 11072f <_Thread_queue_Extract_priority_helper+0x57> /* > two threads on 2-n */ new_second_node->previous = 11071e: 8d 50 38 lea 0x38(%eax),%edx 110721: 89 56 04 mov %edx,0x4(%esi) _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 110724: 89 70 38 mov %esi,0x38(%eax) new_first_thread->Wait.Block2n.last = last_node; 110727: 89 78 40 mov %edi,0x40(%eax) last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 11072a: 83 c0 3c add $0x3c,%eax 11072d: 89 07 mov %eax,(%edi) /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { 11072f: 80 7d e3 00 cmpb $0x0,-0x1d(%ebp) 110733: 75 23 jne 110758 <_Thread_queue_Extract_priority_helper+0x80> _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 110735: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 110739: 74 3d je 110778 <_Thread_queue_Extract_priority_helper+0xa0> _ISR_Enable( level ); 11073b: ff 75 e4 pushl -0x1c(%ebp) 11073e: 9d popf 11073f: c7 45 0c f8 ff 03 10 movl $0x1003fff8,0xc(%ebp) 110746: 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 } 110749: 8d 65 f4 lea -0xc(%ebp),%esp 11074c: 5b pop %ebx 11074d: 5e pop %esi 11074e: 5f pop %edi 11074f: c9 leave 110750: e9 bb c8 ff ff jmp 10d010 <_Thread_Clear_state> 110755: 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 ); 110758: ff 75 e4 pushl -0x1c(%ebp) 11075b: 9d popf #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 11075c: 8d 65 f4 lea -0xc(%ebp),%esp 11075f: 5b pop %ebx 110760: 5e pop %esi 110761: 5f pop %edi 110762: c9 leave 110763: 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 ); 110764: ff 75 e4 pushl -0x1c(%ebp) 110767: 9d popf #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 110768: 8d 65 f4 lea -0xc(%ebp),%esp 11076b: 5b pop %ebx 11076c: 5e pop %esi 11076d: 5f pop %edi 11076e: c9 leave 11076f: 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; 110770: 89 11 mov %edx,(%ecx) next_node->previous = previous_node; 110772: 89 4a 04 mov %ecx,0x4(%edx) 110775: eb b8 jmp 11072f <_Thread_queue_Extract_priority_helper+0x57> <== ALWAYS TAKEN 110777: 90 nop <== NOT EXECUTED 110778: 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 ); 11077f: ff 75 e4 pushl -0x1c(%ebp) 110782: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 110783: 83 ec 0c sub $0xc,%esp 110786: 8d 43 48 lea 0x48(%ebx),%eax 110789: 50 push %eax 11078a: e8 39 dc ff ff call 10e3c8 <_Watchdog_Remove> 11078f: 83 c4 10 add $0x10,%esp 110792: eb ab jmp 11073f <_Thread_queue_Extract_priority_helper+0x67> <== ALWAYS TAKEN 0010da94 <_Thread_queue_Extract_with_proxy>: */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { 10da94: 55 push %ebp 10da95: 89 e5 mov %esp,%ebp 10da97: 83 ec 08 sub $0x8,%esp 10da9a: 8b 45 08 mov 0x8(%ebp),%eax States_Control state; state = the_thread->current_state; 10da9d: f7 40 10 e0 be 03 00 testl $0x3bee0,0x10(%eax) 10daa4: 75 06 jne 10daac <_Thread_queue_Extract_with_proxy+0x18> 10daa6: 31 c0 xor %eax,%eax _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); return true; } return false; } 10daa8: c9 leave 10daa9: c3 ret 10daaa: 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 ); 10daac: 83 ec 08 sub $0x8,%esp 10daaf: 50 push %eax 10dab0: ff 70 44 pushl 0x44(%eax) 10dab3: e8 f0 2b 00 00 call 1106a8 <_Thread_queue_Extract> 10dab8: b0 01 mov $0x1,%al return true; 10daba: 83 c4 10 add $0x10,%esp } return false; } 10dabd: c9 leave 10dabe: c3 ret 0011e7a0 <_Thread_queue_First>: */ Thread_Control *_Thread_queue_First( Thread_queue_Control *the_thread_queue ) { 11e7a0: 55 push %ebp 11e7a1: 89 e5 mov %esp,%ebp 11e7a3: 83 ec 08 sub $0x8,%esp 11e7a6: 8b 45 08 mov 0x8(%ebp),%eax Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 11e7a9: 83 78 34 01 cmpl $0x1,0x34(%eax) 11e7ad: 74 0d je 11e7bc <_Thread_queue_First+0x1c> 11e7af: ba 1c fc 11 00 mov $0x11fc1c,%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 ); 11e7b4: 89 45 08 mov %eax,0x8(%ebp) } 11e7b7: 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 ); 11e7b8: ff e2 jmp *%edx 11e7ba: 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 ) 11e7bc: ba c8 e7 11 00 mov $0x11e7c8,%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 ); 11e7c1: 89 45 08 mov %eax,0x8(%ebp) } 11e7c4: 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 ); 11e7c5: ff e2 jmp *%edx 0011fc1c <_Thread_queue_First_fifo>: */ Thread_Control *_Thread_queue_First_fifo( Thread_queue_Control *the_thread_queue ) { 11fc1c: 55 push %ebp 11fc1d: 89 e5 mov %esp,%ebp 11fc1f: 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)); 11fc22: 8b 02 mov (%edx),%eax */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 11fc24: 83 c2 04 add $0x4,%edx 11fc27: 39 d0 cmp %edx,%eax 11fc29: 74 05 je 11fc30 <_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; } 11fc2b: c9 leave 11fc2c: c3 ret 11fc2d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 11fc30: 31 c0 xor %eax,%eax 11fc32: c9 leave 11fc33: c3 ret 0010dac0 <_Thread_queue_Flush>: #else Thread_queue_Flush_callout remote_extract_callout __attribute__((unused)), #endif uint32_t status ) { 10dac0: 55 push %ebp 10dac1: 89 e5 mov %esp,%ebp 10dac3: 56 push %esi 10dac4: 53 push %ebx 10dac5: 8b 5d 08 mov 0x8(%ebp),%ebx 10dac8: 8b 75 10 mov 0x10(%ebp),%esi Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { 10dacb: eb 06 jmp 10dad3 <_Thread_queue_Flush+0x13> <== ALWAYS TAKEN 10dacd: 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; 10dad0: 89 70 34 mov %esi,0x34(%eax) uint32_t status ) { Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { 10dad3: 83 ec 0c sub $0xc,%esp 10dad6: 53 push %ebx 10dad7: e8 94 fc ff ff call 10d770 <_Thread_queue_Dequeue> <== ALWAYS TAKEN 10dadc: 83 c4 10 add $0x10,%esp 10dadf: 85 c0 test %eax,%eax 10dae1: 75 ed jne 10dad0 <_Thread_queue_Flush+0x10> ( *remote_extract_callout )( the_thread ); else #endif the_thread->Wait.return_code = status; } } 10dae3: 8d 65 f8 lea -0x8(%ebp),%esp 10dae6: 5b pop %ebx 10dae7: 5e pop %esi 10dae8: c9 leave 10dae9: c3 ret 0010daec <_Thread_queue_Initialize>: Thread_queue_Control *the_thread_queue, Thread_queue_Disciplines the_discipline, States_Control state, uint32_t timeout_status ) { 10daec: 55 push %ebp 10daed: 89 e5 mov %esp,%ebp 10daef: 8b 45 08 mov 0x8(%ebp),%eax 10daf2: 8b 55 0c mov 0xc(%ebp),%edx the_thread_queue->state = state; 10daf5: 8b 4d 10 mov 0x10(%ebp),%ecx 10daf8: 89 48 38 mov %ecx,0x38(%eax) the_thread_queue->discipline = the_discipline; 10dafb: 89 50 34 mov %edx,0x34(%eax) the_thread_queue->timeout_status = timeout_status; 10dafe: 8b 4d 14 mov 0x14(%ebp),%ecx 10db01: 89 48 3c mov %ecx,0x3c(%eax) the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 10db04: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax) if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { 10db0b: 4a dec %edx 10db0c: 74 12 je 10db20 <_Thread_queue_Initialize+0x34> */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 10db0e: 8d 50 04 lea 0x4(%eax),%edx 10db11: 89 10 mov %edx,(%eax) the_chain->permanent_null = NULL; 10db13: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) the_chain->last = _Chain_Head(the_chain); 10db1a: 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 ); } } 10db1d: c9 leave 10db1e: c3 ret 10db1f: 90 nop <== NOT EXECUTED * timeout_status - return on a timeout * * Output parameters: NONE */ void _Thread_queue_Initialize( 10db20: 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); 10db23: 8d 50 04 lea 0x4(%eax),%edx 10db26: 89 10 mov %edx,(%eax) the_chain->permanent_null = NULL; 10db28: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) the_chain->last = _Chain_Head(the_chain); 10db2f: 89 40 08 mov %eax,0x8(%eax) 10db32: 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 ; 10db35: 39 c8 cmp %ecx,%eax 10db37: 75 ea jne 10db23 <_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 ); } } 10db39: c9 leave 10db3a: c3 ret 00110794 <_Thread_queue_Process_timeout>: #include void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { 110794: 55 push %ebp 110795: 89 e5 mov %esp,%ebp 110797: 83 ec 08 sub $0x8,%esp 11079a: 8b 45 08 mov 0x8(%ebp),%eax Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; 11079d: 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 && 1107a0: 8b 4a 30 mov 0x30(%edx),%ecx 1107a3: 85 c9 test %ecx,%ecx 1107a5: 74 08 je 1107af <_Thread_queue_Process_timeout+0x1b> 1107a7: 3b 05 f8 53 12 00 cmp 0x1253f8,%eax 1107ad: 74 19 je 1107c8 <_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; 1107af: 8b 52 3c mov 0x3c(%edx),%edx 1107b2: 89 50 34 mov %edx,0x34(%eax) _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 1107b5: 83 ec 08 sub $0x8,%esp 1107b8: 50 push %eax 1107b9: ff 70 44 pushl 0x44(%eax) 1107bc: e8 e7 fe ff ff call 1106a8 <_Thread_queue_Extract> <== ALWAYS TAKEN 1107c1: 83 c4 10 add $0x10,%esp } } 1107c4: c9 leave 1107c5: c3 ret 1107c6: 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 ) { 1107c8: 83 f9 03 cmp $0x3,%ecx 1107cb: 74 f7 je 1107c4 <_Thread_queue_Process_timeout+0x30> the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 1107cd: 8b 4a 3c mov 0x3c(%edx),%ecx 1107d0: 89 48 34 mov %ecx,0x34(%eax) the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 1107d3: 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 ); } } 1107da: c9 leave 1107db: c3 ret 0010db3c <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 10db3c: 55 push %ebp 10db3d: 89 e5 mov %esp,%ebp 10db3f: 57 push %edi 10db40: 56 push %esi 10db41: 53 push %ebx 10db42: 83 ec 1c sub $0x1c,%esp 10db45: 8b 75 08 mov 0x8(%ebp),%esi 10db48: 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 ) 10db4b: 85 f6 test %esi,%esi 10db4d: 74 06 je 10db55 <_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 ) { 10db4f: 83 7e 34 01 cmpl $0x1,0x34(%esi) 10db53: 74 0b je 10db60 <_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 ); } } 10db55: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10db58: 5b pop %ebx <== NOT EXECUTED 10db59: 5e pop %esi <== NOT EXECUTED 10db5a: 5f pop %edi <== NOT EXECUTED 10db5b: c9 leave <== NOT EXECUTED 10db5c: c3 ret <== NOT EXECUTED 10db5d: 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 ); 10db60: 9c pushf 10db61: fa cli 10db62: 5b pop %ebx if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 10db63: f7 47 10 e0 be 03 00 testl $0x3bee0,0x10(%edi) 10db6a: 75 0c jne 10db78 <_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 ); 10db6c: 53 push %ebx 10db6d: 9d popf } } 10db6e: 8d 65 f4 lea -0xc(%ebp),%esp 10db71: 5b pop %ebx 10db72: 5e pop %esi 10db73: 5f pop %edi 10db74: c9 leave 10db75: c3 ret 10db76: 66 90 xchg %ax,%ax <== NOT EXECUTED 10db78: 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 ); 10db7f: 50 push %eax 10db80: 6a 01 push $0x1 10db82: 57 push %edi 10db83: 56 push %esi 10db84: e8 4f 2b 00 00 call 1106d8 <_Thread_queue_Extract_priority_helper> (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); 10db89: 83 c4 0c add $0xc,%esp 10db8c: 8d 45 e4 lea -0x1c(%ebp),%eax 10db8f: 50 push %eax 10db90: 57 push %edi 10db91: 56 push %esi 10db92: e8 8d fd ff ff call 10d924 <_Thread_queue_Enqueue_priority> <== ALWAYS TAKEN 10db97: 83 c4 10 add $0x10,%esp 10db9a: eb d0 jmp 10db6c <_Thread_queue_Requeue+0x30> <== ALWAYS TAKEN 0010db9c <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) { 10db9c: 55 push %ebp 10db9d: 89 e5 mov %esp,%ebp 10db9f: 83 ec 20 sub $0x20,%esp Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 10dba2: 8d 45 f4 lea -0xc(%ebp),%eax 10dba5: 50 push %eax 10dba6: ff 75 08 pushl 0x8(%ebp) 10dba9: e8 2e f8 ff ff call 10d3dc <_Thread_Get> <== ALWAYS TAKEN switch ( location ) { 10dbae: 83 c4 10 add $0x10,%esp 10dbb1: 8b 55 f4 mov -0xc(%ebp),%edx 10dbb4: 85 d2 test %edx,%edx 10dbb6: 75 17 jne 10dbcf <_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 ); 10dbb8: 83 ec 0c sub $0xc,%esp 10dbbb: 50 push %eax 10dbbc: e8 d3 2b 00 00 call 110794 <_Thread_queue_Process_timeout> <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 10dbc1: a1 38 53 12 00 mov 0x125338,%eax 10dbc6: 48 dec %eax 10dbc7: a3 38 53 12 00 mov %eax,0x125338 10dbcc: 83 c4 10 add $0x10,%esp _Thread_Unnest_dispatch(); break; } } 10dbcf: c9 leave 10dbd0: c3 ret 00118ac4 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 118ac4: 55 push %ebp 118ac5: 89 e5 mov %esp,%ebp 118ac7: 57 push %edi 118ac8: 56 push %esi 118ac9: 53 push %ebx 118aca: 83 ec 4c sub $0x4c,%esp 118acd: 8b 5d 08 mov 0x8(%ebp),%ebx 118ad0: 8d 45 e0 lea -0x20(%ebp),%eax 118ad3: 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); 118ad6: 89 45 dc mov %eax,-0x24(%ebp) the_chain->permanent_null = NULL; 118ad9: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) the_chain->last = _Chain_Head(the_chain); 118ae0: 8d 4d dc lea -0x24(%ebp),%ecx 118ae3: 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; 118ae6: 8d 7d d0 lea -0x30(%ebp),%edi 118ae9: 8d 45 d4 lea -0x2c(%ebp),%eax 118aec: 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); 118aef: 89 45 d0 mov %eax,-0x30(%ebp) the_chain->permanent_null = NULL; 118af2: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) the_chain->last = _Chain_Head(the_chain); 118af9: 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 ); 118afc: 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 ); 118aff: 8d 4b 68 lea 0x68(%ebx),%ecx 118b02: 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 ); 118b05: 8d 43 08 lea 0x8(%ebx),%eax 118b08: 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 ); 118b0b: 8d 53 40 lea 0x40(%ebx),%edx 118b0e: 89 55 c0 mov %edx,-0x40(%ebp) 118b11: 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; 118b14: 8d 4d dc lea -0x24(%ebp),%ecx 118b17: 89 4b 78 mov %ecx,0x78(%ebx) 118b1a: 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; 118b1c: a1 c4 f8 13 00 mov 0x13f8c4,%eax /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 118b21: 8b 53 3c mov 0x3c(%ebx),%edx watchdogs->last_snapshot = snapshot; 118b24: 89 43 3c mov %eax,0x3c(%ebx) _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 118b27: 51 push %ecx 118b28: 57 push %edi 118b29: 29 d0 sub %edx,%eax 118b2b: 50 push %eax 118b2c: 56 push %esi 118b2d: e8 a2 3a 00 00 call 11c5d4 <_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(); 118b32: a1 ec f7 13 00 mov 0x13f7ec,%eax Watchdog_Interval last_snapshot = watchdogs->last_snapshot; 118b37: 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 ) { 118b3a: 83 c4 10 add $0x10,%esp 118b3d: 39 d0 cmp %edx,%eax 118b3f: 77 63 ja 118ba4 <_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 ) { 118b41: 72 7d jb 118bc0 <_Timer_server_Body+0xfc> */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; 118b43: 89 43 74 mov %eax,0x74(%ebx) 118b46: 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 ); 118b48: 8b 43 78 mov 0x78(%ebx),%eax 118b4b: 83 ec 0c sub $0xc,%esp 118b4e: 50 push %eax 118b4f: e8 38 08 00 00 call 11938c <_Chain_Get> <== ALWAYS TAKEN if ( timer == NULL ) { 118b54: 83 c4 10 add $0x10,%esp 118b57: 85 c0 test %eax,%eax 118b59: 74 35 je 118b90 <_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 ) { 118b5b: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED 118b5e: 83 fa 01 cmp $0x1,%edx <== NOT EXECUTED 118b61: 74 19 je 118b7c <_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 ) { 118b63: 83 fa 03 cmp $0x3,%edx <== NOT EXECUTED 118b66: 75 e0 jne 118b48 <_Timer_server_Body+0x84> <== NOT EXECUTED _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 118b68: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 118b6b: 83 c0 10 add $0x10,%eax <== NOT EXECUTED 118b6e: 50 push %eax <== NOT EXECUTED 118b6f: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED 118b72: e8 f5 3a 00 00 call 11c66c <_Watchdog_Insert> <== NOT EXECUTED 118b77: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 118b7a: eb cc jmp 118b48 <_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 ); 118b7c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 118b7f: 83 c0 10 add $0x10,%eax <== NOT EXECUTED 118b82: 50 push %eax <== NOT EXECUTED 118b83: 56 push %esi <== NOT EXECUTED 118b84: e8 e3 3a 00 00 call 11c66c <_Watchdog_Insert> <== NOT EXECUTED 118b89: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 118b8c: eb ba jmp 118b48 <_Timer_server_Body+0x84> <== NOT EXECUTED 118b8e: 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 ); 118b90: 9c pushf 118b91: fa cli 118b92: 58 pop %eax if ( _Chain_Is_empty( insert_chain ) ) { 118b93: 8b 55 b4 mov -0x4c(%ebp),%edx 118b96: 3b 55 dc cmp -0x24(%ebp),%edx 118b99: 74 41 je 118bdc <_Timer_server_Body+0x118> <== NEVER TAKEN ts->insert_chain = NULL; _ISR_Enable( level ); break; } else { _ISR_Enable( level ); 118b9b: 50 push %eax <== NOT EXECUTED 118b9c: 9d popf <== NOT EXECUTED 118b9d: e9 7a ff ff ff jmp 118b1c <_Timer_server_Body+0x58> <== NOT EXECUTED 118ba2: 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 ); 118ba4: 51 push %ecx 118ba5: 57 push %edi 118ba6: 89 c1 mov %eax,%ecx 118ba8: 29 d1 sub %edx,%ecx 118baa: 51 push %ecx 118bab: ff 75 c4 pushl -0x3c(%ebp) 118bae: 89 45 b8 mov %eax,-0x48(%ebp) 118bb1: e8 1e 3a 00 00 call 11c5d4 <_Watchdog_Adjust_to_chain> 118bb6: 83 c4 10 add $0x10,%esp 118bb9: 8b 45 b8 mov -0x48(%ebp),%eax 118bbc: eb 85 jmp 118b43 <_Timer_server_Body+0x7f> <== ALWAYS TAKEN 118bbe: 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 ); 118bc0: 51 push %ecx 118bc1: 29 c2 sub %eax,%edx 118bc3: 52 push %edx 118bc4: 6a 01 push $0x1 118bc6: ff 75 c4 pushl -0x3c(%ebp) 118bc9: 89 45 b8 mov %eax,-0x48(%ebp) 118bcc: e8 8b 39 00 00 call 11c55c <_Watchdog_Adjust> 118bd1: 83 c4 10 add $0x10,%esp 118bd4: 8b 45 b8 mov -0x48(%ebp),%eax 118bd7: e9 67 ff ff ff jmp 118b43 <_Timer_server_Body+0x7f> <== ALWAYS TAKEN */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ts->insert_chain = NULL; 118bdc: c7 43 78 00 00 00 00 movl $0x0,0x78(%ebx) _ISR_Enable( level ); 118be3: 50 push %eax 118be4: 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 ) ) { 118be5: 8b 4d b0 mov -0x50(%ebp),%ecx 118be8: 3b 4d d0 cmp -0x30(%ebp),%ecx 118beb: 75 23 jne 118c10 <_Timer_server_Body+0x14c> 118bed: eb 33 jmp 118c22 <_Timer_server_Body+0x15e> <== ALWAYS TAKEN 118bef: 90 nop <== NOT EXECUTED { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 118bf0: 8b 10 mov (%eax),%edx the_chain->first = new_first; 118bf2: 89 55 d0 mov %edx,-0x30(%ebp) new_first->previous = _Chain_Head(the_chain); 118bf5: 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; 118bf8: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) _ISR_Enable( level ); 118bff: 51 push %ecx 118c00: 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 ); 118c01: 83 ec 08 sub $0x8,%esp 118c04: ff 70 24 pushl 0x24(%eax) 118c07: ff 70 20 pushl 0x20(%eax) 118c0a: ff 50 1c call *0x1c(%eax) } 118c0d: 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 ); 118c10: 9c pushf 118c11: fa cli 118c12: 59 pop %ecx */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 118c13: 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)) 118c16: 39 45 b0 cmp %eax,-0x50(%ebp) 118c19: 75 d5 jne 118bf0 <_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 ); 118c1b: 51 push %ecx 118c1c: 9d popf 118c1d: e9 f2 fe ff ff jmp 118b14 <_Timer_server_Body+0x50> <== ALWAYS TAKEN * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; 118c22: c6 43 7c 00 movb $0x0,0x7c(%ebx) 118c26: a1 58 f7 13 00 mov 0x13f758,%eax 118c2b: 40 inc %eax 118c2c: a3 58 f7 13 00 mov %eax,0x13f758 /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 118c31: 83 ec 08 sub $0x8,%esp 118c34: 6a 08 push $0x8 118c36: ff 33 pushl (%ebx) 118c38: e8 67 31 00 00 call 11bda4 <_Thread_Set_state> _Timer_server_Reset_interval_system_watchdog( ts ); 118c3d: 89 d8 mov %ebx,%eax 118c3f: e8 e0 fd ff ff call 118a24 <_Timer_server_Reset_interval_system_watchdog> <== ALWAYS TAKEN _Timer_server_Reset_tod_system_watchdog( ts ); 118c44: 89 d8 mov %ebx,%eax 118c46: e8 29 fe ff ff call 118a74 <_Timer_server_Reset_tod_system_watchdog> <== ALWAYS TAKEN _Thread_Enable_dispatch(); 118c4b: e8 84 27 00 00 call 11b3d4 <_Thread_Enable_dispatch> ts->active = true; 118c50: 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 ); 118c54: 58 pop %eax 118c55: ff 75 bc pushl -0x44(%ebp) 118c58: e8 47 3b 00 00 call 11c7a4 <_Watchdog_Remove> static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 118c5d: 59 pop %ecx 118c5e: ff 75 c0 pushl -0x40(%ebp) 118c61: e8 3e 3b 00 00 call 11c7a4 <_Watchdog_Remove> 118c66: 83 c4 10 add $0x10,%esp 118c69: e9 a6 fe ff ff jmp 118b14 <_Timer_server_Body+0x50> <== ALWAYS TAKEN 00118a24 <_Timer_server_Reset_interval_system_watchdog>: } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) { 118a24: 55 push %ebp 118a25: 89 e5 mov %esp,%ebp 118a27: 56 push %esi 118a28: 53 push %ebx 118a29: 89 c3 mov %eax,%ebx static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 118a2b: 8d 70 08 lea 0x8(%eax),%esi 118a2e: 83 ec 0c sub $0xc,%esp 118a31: 56 push %esi 118a32: e8 6d 3d 00 00 call 11c7a4 <_Watchdog_Remove> { ISR_Level level; _Timer_server_Stop_interval_system_watchdog( ts ); _ISR_Disable( level ); 118a37: 9c pushf 118a38: fa cli 118a39: 59 pop %ecx */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 118a3a: 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; 118a3d: 8d 53 34 lea 0x34(%ebx),%edx 118a40: 83 c4 10 add $0x10,%esp 118a43: 39 d0 cmp %edx,%eax 118a45: 74 21 je 118a68 <_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; 118a47: 8b 40 10 mov 0x10(%eax),%eax _ISR_Enable( level ); 118a4a: 51 push %ecx 118a4b: 9d popf Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 118a4c: 89 43 14 mov %eax,0x14(%ebx) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 118a4f: 83 ec 08 sub $0x8,%esp 118a52: 56 push %esi 118a53: 68 38 f8 13 00 push $0x13f838 118a58: e8 0f 3c 00 00 call 11c66c <_Watchdog_Insert> 118a5d: 83 c4 10 add $0x10,%esp delta_interval ); } else { _ISR_Enable( level ); } } 118a60: 8d 65 f8 lea -0x8(%ebp),%esp 118a63: 5b pop %ebx 118a64: 5e pop %esi 118a65: c9 leave 118a66: c3 ret 118a67: 90 nop <== NOT EXECUTED _Watchdog_Insert_ticks( &ts->Interval_watchdogs.System_watchdog, delta_interval ); } else { _ISR_Enable( level ); 118a68: 51 push %ecx 118a69: 9d popf } } 118a6a: 8d 65 f8 lea -0x8(%ebp),%esp 118a6d: 5b pop %ebx 118a6e: 5e pop %esi 118a6f: c9 leave 118a70: c3 ret 00118a74 <_Timer_server_Reset_tod_system_watchdog>: } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) { 118a74: 55 push %ebp 118a75: 89 e5 mov %esp,%ebp 118a77: 56 push %esi 118a78: 53 push %ebx 118a79: 89 c3 mov %eax,%ebx static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 118a7b: 8d 70 40 lea 0x40(%eax),%esi 118a7e: 83 ec 0c sub $0xc,%esp 118a81: 56 push %esi 118a82: e8 1d 3d 00 00 call 11c7a4 <_Watchdog_Remove> { ISR_Level level; _Timer_server_Stop_tod_system_watchdog( ts ); _ISR_Disable( level ); 118a87: 9c pushf 118a88: fa cli 118a89: 59 pop %ecx */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 118a8a: 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; 118a8d: 8d 53 6c lea 0x6c(%ebx),%edx 118a90: 83 c4 10 add $0x10,%esp 118a93: 39 d0 cmp %edx,%eax 118a95: 74 21 je 118ab8 <_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; 118a97: 8b 40 10 mov 0x10(%eax),%eax _ISR_Enable( level ); 118a9a: 51 push %ecx 118a9b: 9d popf Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 118a9c: 89 43 4c mov %eax,0x4c(%ebx) _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 118a9f: 83 ec 08 sub $0x8,%esp 118aa2: 56 push %esi 118aa3: 68 2c f8 13 00 push $0x13f82c 118aa8: e8 bf 3b 00 00 call 11c66c <_Watchdog_Insert> 118aad: 83 c4 10 add $0x10,%esp delta_interval ); } else { _ISR_Enable( level ); } } 118ab0: 8d 65 f8 lea -0x8(%ebp),%esp 118ab3: 5b pop %ebx 118ab4: 5e pop %esi 118ab5: c9 leave 118ab6: c3 ret 118ab7: 90 nop <== NOT EXECUTED _Watchdog_Insert_seconds( &ts->TOD_watchdogs.System_watchdog, delta_interval ); } else { _ISR_Enable( level ); 118ab8: 51 push %ecx 118ab9: 9d popf } } 118aba: 8d 65 f8 lea -0x8(%ebp),%esp 118abd: 5b pop %ebx 118abe: 5e pop %esi 118abf: c9 leave 118ac0: c3 ret 00118c70 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { 118c70: 55 push %ebp 118c71: 89 e5 mov %esp,%ebp 118c73: 57 push %edi 118c74: 56 push %esi 118c75: 53 push %ebx 118c76: 83 ec 2c sub $0x2c,%esp 118c79: 8b 5d 08 mov 0x8(%ebp),%ebx 118c7c: 8b 45 0c mov 0xc(%ebp),%eax if ( ts->insert_chain == NULL ) { 118c7f: 8b 53 78 mov 0x78(%ebx),%edx 118c82: 85 d2 test %edx,%edx 118c84: 74 16 je 118c9c <_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 ); 118c86: 8b 53 78 mov 0x78(%ebx),%edx <== NOT EXECUTED 118c89: 89 45 0c mov %eax,0xc(%ebp) <== NOT EXECUTED 118c8c: 89 55 08 mov %edx,0x8(%ebp) <== NOT EXECUTED } } 118c8f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 118c92: 5b pop %ebx <== NOT EXECUTED 118c93: 5e pop %esi <== NOT EXECUTED 118c94: 5f pop %edi <== NOT EXECUTED 118c95: 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 ); 118c96: e9 cd 06 00 00 jmp 119368 <_Chain_Append> <== NOT EXECUTED 118c9b: 90 nop <== NOT EXECUTED 118c9c: 8b 15 58 f7 13 00 mov 0x13f758,%edx 118ca2: 42 inc %edx 118ca3: 89 15 58 f7 13 00 mov %edx,0x13f758 * being inserted. This could result in an integer overflow. */ _Thread_Disable_dispatch(); if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 118ca9: 8b 50 38 mov 0x38(%eax),%edx 118cac: 83 fa 01 cmp $0x1,%edx 118caf: 74 77 je 118d28 <_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 ) { 118cb1: 83 fa 03 cmp $0x3,%edx 118cb4: 74 0e je 118cc4 <_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 ); } } 118cb6: 8d 65 f4 lea -0xc(%ebp),%esp 118cb9: 5b pop %ebx 118cba: 5e pop %esi 118cbb: 5f pop %edi 118cbc: c9 leave if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); 118cbd: e9 12 27 00 00 jmp 11b3d4 <_Thread_Enable_dispatch> 118cc2: 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 ); 118cc4: 9c pushf 118cc5: fa cli 118cc6: 8f 45 e4 popl -0x1c(%ebp) snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 118cc9: 8b 0d ec f7 13 00 mov 0x13f7ec,%ecx last_snapshot = ts->TOD_watchdogs.last_snapshot; 118ccf: 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)); 118cd2: 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; 118cd5: 8d 7b 6c lea 0x6c(%ebx),%edi 118cd8: 39 fa cmp %edi,%edx 118cda: 74 22 je 118cfe <_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; 118cdc: 8b 7a 10 mov 0x10(%edx),%edi 118cdf: 89 7d d4 mov %edi,-0x2c(%ebp) if ( snapshot > last_snapshot ) { 118ce2: 39 f1 cmp %esi,%ecx 118ce4: 0f 86 9e 00 00 00 jbe 118d88 <_Timer_server_Schedule_operation_method+0x118> /* * We advanced in time. */ delta = snapshot - last_snapshot; 118cea: 89 cf mov %ecx,%edi 118cec: 29 f7 sub %esi,%edi 118cee: 89 fe mov %edi,%esi if (delta_interval > delta) { 118cf0: 39 7d d4 cmp %edi,-0x2c(%ebp) 118cf3: 0f 87 9b 00 00 00 ja 118d94 <_Timer_server_Schedule_operation_method+0x124> <== NEVER TAKEN 118cf9: 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; 118cfb: 89 7a 10 mov %edi,0x10(%edx) } ts->TOD_watchdogs.last_snapshot = snapshot; 118cfe: 89 4b 74 mov %ecx,0x74(%ebx) _ISR_Enable( level ); 118d01: ff 75 e4 pushl -0x1c(%ebp) 118d04: 9d popf _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 118d05: 83 ec 08 sub $0x8,%esp 118d08: 83 c0 10 add $0x10,%eax 118d0b: 50 push %eax 118d0c: 8d 43 68 lea 0x68(%ebx),%eax 118d0f: 50 push %eax 118d10: e8 57 39 00 00 call 11c66c <_Watchdog_Insert> if ( !ts->active ) { 118d15: 8a 43 7c mov 0x7c(%ebx),%al 118d18: 83 c4 10 add $0x10,%esp 118d1b: 84 c0 test %al,%al 118d1d: 75 97 jne 118cb6 <_Timer_server_Schedule_operation_method+0x46> _Timer_server_Reset_tod_system_watchdog( ts ); 118d1f: 89 d8 mov %ebx,%eax 118d21: e8 4e fd ff ff call 118a74 <_Timer_server_Reset_tod_system_watchdog> <== ALWAYS TAKEN 118d26: eb 8e jmp 118cb6 <_Timer_server_Schedule_operation_method+0x46> <== ALWAYS TAKEN 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 ); 118d28: 9c pushf 118d29: fa cli 118d2a: 8f 45 e4 popl -0x1c(%ebp) snapshot = _Watchdog_Ticks_since_boot; 118d2d: 8b 0d c4 f8 13 00 mov 0x13f8c4,%ecx last_snapshot = ts->Interval_watchdogs.last_snapshot; 118d33: 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)); 118d36: 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; 118d39: 8d 7b 34 lea 0x34(%ebx),%edi 118d3c: 39 fa cmp %edi,%edx 118d3e: 74 12 je 118d52 <_Timer_server_Schedule_operation_method+0xe2> first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain ); /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; 118d40: 89 cf mov %ecx,%edi 118d42: 29 f7 sub %esi,%edi 118d44: 89 fe mov %edi,%esi delta_interval = first_watchdog->delta_interval; 118d46: 8b 7a 10 mov 0x10(%edx),%edi if (delta_interval > delta) { 118d49: 39 fe cmp %edi,%esi 118d4b: 72 37 jb 118d84 <_Timer_server_Schedule_operation_method+0x114> 118d4d: 31 ff xor %edi,%edi delta_interval -= delta; } else { delta_interval = 0; } first_watchdog->delta_interval = delta_interval; 118d4f: 89 7a 10 mov %edi,0x10(%edx) } ts->Interval_watchdogs.last_snapshot = snapshot; 118d52: 89 4b 3c mov %ecx,0x3c(%ebx) _ISR_Enable( level ); 118d55: ff 75 e4 pushl -0x1c(%ebp) 118d58: 9d popf _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 118d59: 83 ec 08 sub $0x8,%esp 118d5c: 83 c0 10 add $0x10,%eax 118d5f: 50 push %eax 118d60: 8d 43 30 lea 0x30(%ebx),%eax 118d63: 50 push %eax 118d64: e8 03 39 00 00 call 11c66c <_Watchdog_Insert> if ( !ts->active ) { 118d69: 8a 43 7c mov 0x7c(%ebx),%al 118d6c: 83 c4 10 add $0x10,%esp 118d6f: 84 c0 test %al,%al 118d71: 0f 85 3f ff ff ff jne 118cb6 <_Timer_server_Schedule_operation_method+0x46> _Timer_server_Reset_interval_system_watchdog( ts ); 118d77: 89 d8 mov %ebx,%eax 118d79: e8 a6 fc ff ff call 118a24 <_Timer_server_Reset_interval_system_watchdog> <== ALWAYS TAKEN 118d7e: e9 33 ff ff ff jmp 118cb6 <_Timer_server_Schedule_operation_method+0x46> <== ALWAYS TAKEN 118d83: 90 nop <== NOT EXECUTED */ delta = snapshot - last_snapshot; delta_interval = first_watchdog->delta_interval; if (delta_interval > delta) { delta_interval -= delta; 118d84: 29 f7 sub %esi,%edi 118d86: eb c7 jmp 118d4f <_Timer_server_Schedule_operation_method+0xdf> <== ALWAYS TAKEN } } else { /* * Someone put us in the past. */ delta = last_snapshot - snapshot; 118d88: 8b 7d d4 mov -0x2c(%ebp),%edi 118d8b: 01 f7 add %esi,%edi delta_interval += delta; 118d8d: 29 cf sub %ecx,%edi 118d8f: e9 67 ff ff ff jmp 118cfb <_Timer_server_Schedule_operation_method+0x8b> <== ALWAYS TAKEN /* * We advanced in time. */ delta = snapshot - last_snapshot; if (delta_interval > delta) { delta_interval -= delta; 118d94: 8b 7d d4 mov -0x2c(%ebp),%edi 118d97: 29 f7 sub %esi,%edi 118d99: e9 5d ff ff ff jmp 118cfb <_Timer_server_Schedule_operation_method+0x8b> <== ALWAYS TAKEN 0010df84 <_Timespec_Add_to>: uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) { 10df84: 55 push %ebp 10df85: 89 e5 mov %esp,%ebp 10df87: 53 push %ebx 10df88: 8b 5d 08 mov 0x8(%ebp),%ebx 10df8b: 8b 55 0c mov 0xc(%ebp),%edx uint32_t seconds = add->tv_sec; 10df8e: 8b 02 mov (%edx),%eax /* Add the basics */ time->tv_sec += add->tv_sec; 10df90: 01 03 add %eax,(%ebx) time->tv_nsec += add->tv_nsec; 10df92: 8b 52 04 mov 0x4(%edx),%edx 10df95: 03 53 04 add 0x4(%ebx),%edx 10df98: 89 53 04 mov %edx,0x4(%ebx) /* Now adjust it so nanoseconds is in range */ while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) { 10df9b: 81 fa ff c9 9a 3b cmp $0x3b9ac9ff,%edx 10dfa1: 76 1a jbe 10dfbd <_Timespec_Add_to+0x39> 10dfa3: 8b 0b mov (%ebx),%ecx 10dfa5: 8d 76 00 lea 0x0(%esi),%esi time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND; 10dfa8: 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( 10dfae: 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++; 10dfaf: 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 ) { 10dfb0: 81 fa ff c9 9a 3b cmp $0x3b9ac9ff,%edx 10dfb6: 77 f0 ja 10dfa8 <_Timespec_Add_to+0x24> <== ALWAYS TAKEN 10dfb8: 89 53 04 mov %edx,0x4(%ebx) 10dfbb: 89 0b mov %ecx,(%ebx) time->tv_sec++; seconds++; } return seconds; } 10dfbd: 5b pop %ebx 10dfbe: c9 leave 10dfbf: c3 ret 0010f868 <_Timespec_Divide>: const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 10f868: 55 push %ebp 10f869: 89 e5 mov %esp,%ebp 10f86b: 57 push %edi 10f86c: 56 push %esi 10f86d: 53 push %ebx 10f86e: 83 ec 2c sub $0x2c,%esp 10f871: 8b 45 08 mov 0x8(%ebp),%eax 10f874: 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; 10f877: 8b 10 mov (%eax),%edx 10f879: 89 55 e0 mov %edx,-0x20(%ebp) left += lhs->tv_nsec; 10f87c: 8b 78 04 mov 0x4(%eax),%edi right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 10f87f: b9 00 ca 9a 3b mov $0x3b9aca00,%ecx 10f884: 8b 03 mov (%ebx),%eax 10f886: f7 e9 imul %ecx 10f888: 89 45 d0 mov %eax,-0x30(%ebp) 10f88b: 89 55 d4 mov %edx,-0x2c(%ebp) right += rhs->tv_nsec; 10f88e: 8b 5b 04 mov 0x4(%ebx),%ebx 10f891: 89 de mov %ebx,%esi 10f893: c1 fe 1f sar $0x1f,%esi 10f896: 01 5d d0 add %ebx,-0x30(%ebp) 10f899: 11 75 d4 adc %esi,-0x2c(%ebp) if ( right == 0 ) { 10f89c: 8b 55 d4 mov -0x2c(%ebp),%edx 10f89f: 0b 55 d0 or -0x30(%ebp),%edx 10f8a2: 74 7c je 10f920 <_Timespec_Divide+0xb8> <== ALWAYS TAKEN /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 10f8a4: 8b 45 e0 mov -0x20(%ebp),%eax 10f8a7: f7 e9 imul %ecx 10f8a9: 89 45 e0 mov %eax,-0x20(%ebp) 10f8ac: 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; 10f8af: 89 fb mov %edi,%ebx 10f8b1: c1 fb 1f sar $0x1f,%ebx 10f8b4: 01 7d e0 add %edi,-0x20(%ebp) 10f8b7: 11 5d e4 adc %ebx,-0x1c(%ebp) 10f8ba: 69 5d e4 a0 86 01 00 imul $0x186a0,-0x1c(%ebp),%ebx 10f8c1: b9 a0 86 01 00 mov $0x186a0,%ecx 10f8c6: 8b 45 e0 mov -0x20(%ebp),%eax 10f8c9: f7 e1 mul %ecx 10f8cb: 89 45 e0 mov %eax,-0x20(%ebp) 10f8ce: 01 da add %ebx,%edx 10f8d0: 89 55 e4 mov %edx,-0x1c(%ebp) 10f8d3: ff 75 d4 pushl -0x2c(%ebp) 10f8d6: ff 75 d0 pushl -0x30(%ebp) 10f8d9: ff 75 e4 pushl -0x1c(%ebp) 10f8dc: ff 75 e0 pushl -0x20(%ebp) 10f8df: e8 b8 fb 00 00 call 11f49c <__udivdi3> 10f8e4: 83 c4 10 add $0x10,%esp 10f8e7: 89 c3 mov %eax,%ebx 10f8e9: 89 d6 mov %edx,%esi *ival_percentage = answer / 1000; 10f8eb: 6a 00 push $0x0 10f8ed: 68 e8 03 00 00 push $0x3e8 10f8f2: 52 push %edx 10f8f3: 50 push %eax 10f8f4: e8 a3 fb 00 00 call 11f49c <__udivdi3> 10f8f9: 83 c4 10 add $0x10,%esp 10f8fc: 8b 55 10 mov 0x10(%ebp),%edx 10f8ff: 89 02 mov %eax,(%edx) *fval_percentage = answer % 1000; 10f901: 6a 00 push $0x0 10f903: 68 e8 03 00 00 push $0x3e8 10f908: 56 push %esi 10f909: 53 push %ebx 10f90a: e8 9d fc 00 00 call 11f5ac <__umoddi3> 10f90f: 83 c4 10 add $0x10,%esp 10f912: 8b 55 14 mov 0x14(%ebp),%edx 10f915: 89 02 mov %eax,(%edx) } 10f917: 8d 65 f4 lea -0xc(%ebp),%esp 10f91a: 5b pop %ebx 10f91b: 5e pop %esi 10f91c: 5f pop %edi 10f91d: c9 leave 10f91e: c3 ret 10f91f: 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; 10f920: 8b 45 10 mov 0x10(%ebp),%eax 10f923: c7 00 00 00 00 00 movl $0x0,(%eax) *fval_percentage = 0; 10f929: 8b 55 14 mov 0x14(%ebp),%edx 10f92c: c7 02 00 00 00 00 movl $0x0,(%edx) answer = (left * 100000) / right; *ival_percentage = answer / 1000; *fval_percentage = answer % 1000; } 10f932: 8d 65 f4 lea -0xc(%ebp),%esp 10f935: 5b pop %ebx 10f936: 5e pop %esi 10f937: 5f pop %edi 10f938: c9 leave 10f939: c3 ret 0013c90c <_Timespec_Greater_than>: bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { 13c90c: 55 push %ebp 13c90d: 89 e5 mov %esp,%ebp 13c90f: 8b 55 08 mov 0x8(%ebp),%edx 13c912: 8b 45 0c mov 0xc(%ebp),%eax if ( lhs->tv_sec > rhs->tv_sec ) 13c915: 8b 08 mov (%eax),%ecx 13c917: 39 0a cmp %ecx,(%edx) 13c919: 7f 11 jg 13c92c <_Timespec_Greater_than+0x20> return true; if ( lhs->tv_sec < rhs->tv_sec ) 13c91b: 7c 0b jl 13c928 <_Timespec_Greater_than+0x1c> <== ALWAYS TAKEN #include #include #include bool _Timespec_Greater_than( 13c91d: 8b 52 04 mov 0x4(%edx),%edx 13c920: 3b 50 04 cmp 0x4(%eax),%edx 13c923: 0f 9f c0 setg %al /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } 13c926: c9 leave 13c927: c3 ret ) { if ( lhs->tv_sec > rhs->tv_sec ) return true; if ( lhs->tv_sec < rhs->tv_sec ) 13c928: 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; } 13c92a: c9 leave <== NOT EXECUTED 13c92b: c3 ret <== NOT EXECUTED bool _Timespec_Greater_than( const struct timespec *lhs, const struct timespec *rhs ) { if ( lhs->tv_sec > rhs->tv_sec ) 13c92c: b0 01 mov $0x1,%al /* ASSERT: lhs->tv_sec == rhs->tv_sec */ if ( lhs->tv_nsec > rhs->tv_nsec ) return true; return false; } 13c92e: c9 leave 13c92f: c3 ret 00127c84 <_Timespec_Is_valid>: #include bool _Timespec_Is_valid( const struct timespec *time ) { 127c84: 55 push %ebp 127c85: 89 e5 mov %esp,%ebp 127c87: 8b 45 08 mov 0x8(%ebp),%eax if ( !time ) 127c8a: 85 c0 test %eax,%eax 127c8c: 74 1a je 127ca8 <_Timespec_Is_valid+0x24> return false; if ( time->tv_sec < 0 ) 127c8e: 8b 10 mov (%eax),%edx 127c90: 85 d2 test %edx,%edx 127c92: 78 14 js 127ca8 <_Timespec_Is_valid+0x24> return false; if ( time->tv_nsec < 0 ) 127c94: 8b 40 04 mov 0x4(%eax),%eax 127c97: 85 c0 test %eax,%eax 127c99: 78 0d js 127ca8 <_Timespec_Is_valid+0x24> #include #include #include bool _Timespec_Is_valid( 127c9b: 3d ff c9 9a 3b cmp $0x3b9ac9ff,%eax 127ca0: 0f 96 c0 setbe %al if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } 127ca3: c9 leave 127ca4: c3 ret 127ca5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED #include #include #include bool _Timespec_Is_valid( 127ca8: 31 c0 xor %eax,%eax if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } 127caa: c9 leave 127cab: c3 ret 00127cac <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 127cac: 55 push %ebp 127cad: 89 e5 mov %esp,%ebp 127caf: 56 push %esi 127cb0: 53 push %ebx 127cb1: 8b 5d 08 mov 0x8(%ebp),%ebx uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 127cb4: 8b 33 mov (%ebx),%esi 127cb6: 85 f6 test %esi,%esi 127cb8: 75 07 jne 127cc1 <_Timespec_To_ticks+0x15> 127cba: 8b 43 04 mov 0x4(%ebx),%eax 127cbd: 85 c0 test %eax,%eax 127cbf: 74 37 je 127cf8 <_Timespec_To_ticks+0x4c> return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 127cc1: e8 da 00 00 00 call 127da0 127cc6: 89 c1 mov %eax,%ecx 127cc8: 0f af ce imul %esi,%ecx ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); 127ccb: a1 4c ee 12 00 mov 0x12ee4c,%eax 127cd0: 8d 04 80 lea (%eax,%eax,4),%eax 127cd3: 8d 04 80 lea (%eax,%eax,4),%eax 127cd6: 8d 34 80 lea (%eax,%eax,4),%esi 127cd9: c1 e6 03 shl $0x3,%esi 127cdc: 8b 43 04 mov 0x4(%ebx),%eax 127cdf: 31 d2 xor %edx,%edx 127ce1: f7 f6 div %esi if (ticks) 127ce3: 01 c8 add %ecx,%eax 127ce5: 74 05 je 127cec <_Timespec_To_ticks+0x40> return ticks; return 1; } 127ce7: 5b pop %ebx 127ce8: 5e pop %esi 127ce9: c9 leave 127cea: c3 ret 127ceb: 90 nop <== NOT EXECUTED ticks = time->tv_sec * TOD_TICKS_PER_SECOND; ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); if (ticks) 127cec: b8 01 00 00 00 mov $0x1,%eax return ticks; return 1; } 127cf1: 5b pop %ebx 127cf2: 5e pop %esi 127cf3: c9 leave 127cf4: c3 ret 127cf5: 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) ) 127cf8: 31 c0 xor %eax,%eax if (ticks) return ticks; return 1; } 127cfa: 5b pop %ebx 127cfb: 5e pop %esi 127cfc: c9 leave 127cfd: c3 ret 0010e138 <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 10e138: 55 push %ebp 10e139: 89 e5 mov %esp,%ebp 10e13b: 57 push %edi 10e13c: 56 push %esi 10e13d: 53 push %ebx 10e13e: 83 ec 1c sub $0x1c,%esp 10e141: 8b 75 08 mov 0x8(%ebp),%esi 10e144: 8b 7d 10 mov 0x10(%ebp),%edi 10e147: 8a 45 0c mov 0xc(%ebp),%al Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 10e14a: 8b 1d 94 55 12 00 mov 0x125594,%ebx 10e150: 81 fb 8c 55 12 00 cmp $0x12558c,%ebx 10e156: 74 25 je 10e17d <_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 ); 10e158: 0f b6 c0 movzbl %al,%eax 10e15b: 89 45 e4 mov %eax,-0x1c(%ebp) 10e15e: 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 ) 10e160: 8b 43 30 mov 0x30(%ebx),%eax 10e163: 85 c0 test %eax,%eax 10e165: 74 0b je 10e172 <_User_extensions_Fatal+0x3a> (*the_extension->Callouts.fatal)( the_source, is_internal, the_error ); 10e167: 52 push %edx 10e168: 57 push %edi 10e169: ff 75 e4 pushl -0x1c(%ebp) 10e16c: 56 push %esi 10e16d: ff d0 call *%eax 10e16f: 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 ) { 10e172: 8b 5b 04 mov 0x4(%ebx),%ebx ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 10e175: 81 fb 8c 55 12 00 cmp $0x12558c,%ebx 10e17b: 75 e3 jne 10e160 <_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 ); } } 10e17d: 8d 65 f4 lea -0xc(%ebp),%esp 10e180: 5b pop %ebx 10e181: 5e pop %esi 10e182: 5f pop %edi 10e183: c9 leave 10e184: c3 ret 0010dffc <_User_extensions_Handler_initialization>: #include #include #include void _User_extensions_Handler_initialization(void) { 10dffc: 55 push %ebp 10dffd: 89 e5 mov %esp,%ebp 10dfff: 57 push %edi 10e000: 56 push %esi 10e001: 53 push %ebx 10e002: 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; 10e005: a1 58 12 12 00 mov 0x121258,%eax 10e00a: 89 45 dc mov %eax,-0x24(%ebp) initial_extensions = Configuration.User_extension_table; 10e00d: 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); 10e013: c7 05 8c 55 12 00 90 movl $0x125590,0x12558c 10e01a: 55 12 00 the_chain->permanent_null = NULL; 10e01d: c7 05 90 55 12 00 00 movl $0x0,0x125590 10e024: 00 00 00 the_chain->last = _Chain_Head(the_chain); 10e027: c7 05 94 55 12 00 8c movl $0x12558c,0x125594 10e02e: 55 12 00 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 10e031: c7 05 3c 53 12 00 40 movl $0x125340,0x12533c 10e038: 53 12 00 the_chain->permanent_null = NULL; 10e03b: c7 05 40 53 12 00 00 movl $0x0,0x125340 10e042: 00 00 00 the_chain->last = _Chain_Head(the_chain); 10e045: c7 05 44 53 12 00 3c movl $0x12533c,0x125344 10e04c: 53 12 00 _Chain_Initialize_empty( &_User_extensions_List ); _Chain_Initialize_empty( &_User_extensions_Switches_list ); if ( initial_extensions ) { 10e04f: 85 f6 test %esi,%esi 10e051: 74 64 je 10e0b7 <_User_extensions_Handler_initialization+0xbb> extension = (User_extensions_Control *) 10e053: 89 c2 mov %eax,%edx 10e055: 8d 04 40 lea (%eax,%eax,2),%eax 10e058: 8d 0c 82 lea (%edx,%eax,4),%ecx 10e05b: c1 e1 02 shl $0x2,%ecx 10e05e: 83 ec 0c sub $0xc,%esp 10e061: 51 push %ecx 10e062: 89 4d d8 mov %ecx,-0x28(%ebp) 10e065: e8 36 04 00 00 call 10e4a0 <_Workspace_Allocate_or_fatal_error> <== ALWAYS TAKEN 10e06a: 89 c3 mov %eax,%ebx _Workspace_Allocate_or_fatal_error( number_of_extensions * sizeof( User_extensions_Control ) ); memset ( 10e06c: 31 c0 xor %eax,%eax 10e06e: 8b 4d d8 mov -0x28(%ebp),%ecx 10e071: 89 df mov %ebx,%edi 10e073: f3 aa rep stos %al,%es:(%edi) extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { 10e075: 83 c4 10 add $0x10,%esp 10e078: 8b 45 dc mov -0x24(%ebp),%eax 10e07b: 85 c0 test %eax,%eax 10e07d: 74 38 je 10e0b7 <_User_extensions_Handler_initialization+0xbb> <== ALWAYS TAKEN 10e07f: 89 75 e4 mov %esi,-0x1c(%ebp) 10e082: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) 10e089: 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; 10e08c: 8d 7b 14 lea 0x14(%ebx),%edi 10e08f: 8b 75 e4 mov -0x1c(%ebp),%esi 10e092: b9 08 00 00 00 mov $0x8,%ecx 10e097: f3 a5 rep movsl %ds:(%esi),%es:(%edi) _User_extensions_Add_set( extension ); 10e099: 83 ec 0c sub $0xc,%esp 10e09c: 53 push %ebx 10e09d: e8 1e 29 00 00 call 1109c0 <_User_extensions_Add_set> <== ALWAYS TAKEN _User_extensions_Add_set_with_table (extension, &initial_extensions[i]); extension++; 10e0a2: 83 c3 34 add $0x34,%ebx extension, 0, number_of_extensions * sizeof( User_extensions_Control ) ); for ( i = 0 ; i < number_of_extensions ; i++ ) { 10e0a5: ff 45 e0 incl -0x20(%ebp) 10e0a8: 83 45 e4 20 addl $0x20,-0x1c(%ebp) 10e0ac: 83 c4 10 add $0x10,%esp 10e0af: 8b 45 e0 mov -0x20(%ebp),%eax 10e0b2: 39 45 dc cmp %eax,-0x24(%ebp) 10e0b5: 77 d5 ja 10e08c <_User_extensions_Handler_initialization+0x90> _User_extensions_Add_set_with_table (extension, &initial_extensions[i]); extension++; } } } 10e0b7: 8d 65 f4 lea -0xc(%ebp),%esp 10e0ba: 5b pop %ebx 10e0bb: 5e pop %esi 10e0bc: 5f pop %edi 10e0bd: c9 leave 10e0be: c3 ret 00112e90 <_User_extensions_Remove_set>: #include void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { 112e90: 55 push %ebp 112e91: 89 e5 mov %esp,%ebp 112e93: 53 push %ebx 112e94: 83 ec 10 sub $0x10,%esp 112e97: 8b 5d 08 mov 0x8(%ebp),%ebx _Chain_Extract( &the_extension->Node ); 112e9a: 53 push %ebx 112e9b: e8 74 47 00 00 call 117614 <_Chain_Extract> /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) 112ea0: 83 c4 10 add $0x10,%esp 112ea3: 8b 43 24 mov 0x24(%ebx),%eax 112ea6: 85 c0 test %eax,%eax 112ea8: 74 12 je 112ebc <_User_extensions_Remove_set+0x2c> _Chain_Extract( &the_extension->Switch.Node ); 112eaa: 83 c3 08 add $0x8,%ebx 112ead: 89 5d 08 mov %ebx,0x8(%ebp) } 112eb0: 8b 5d fc mov -0x4(%ebp),%ebx 112eb3: c9 leave /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) _Chain_Extract( &the_extension->Switch.Node ); 112eb4: e9 5b 47 00 00 jmp 117614 <_Chain_Extract> 112eb9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } 112ebc: 8b 5d fc mov -0x4(%ebp),%ebx 112ebf: c9 leave 112ec0: c3 ret 0010e0c0 <_User_extensions_Thread_begin>: #include void _User_extensions_Thread_begin ( Thread_Control *executing ) { 10e0c0: 55 push %ebp 10e0c1: 89 e5 mov %esp,%ebp 10e0c3: 56 push %esi 10e0c4: 53 push %ebx 10e0c5: 8b 75 08 mov 0x8(%ebp),%esi Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 10e0c8: 8b 1d 8c 55 12 00 mov 0x12558c,%ebx 10e0ce: 81 fb 90 55 12 00 cmp $0x125590,%ebx 10e0d4: 74 1c je 10e0f2 <_User_extensions_Thread_begin+0x32> <== ALWAYS TAKEN 10e0d6: 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 ) 10e0d8: 8b 43 28 mov 0x28(%ebx),%eax 10e0db: 85 c0 test %eax,%eax 10e0dd: 74 09 je 10e0e8 <_User_extensions_Thread_begin+0x28> (*the_extension->Callouts.thread_begin)( executing ); 10e0df: 83 ec 0c sub $0xc,%esp 10e0e2: 56 push %esi 10e0e3: ff d0 call *%eax 10e0e5: 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 ) { 10e0e8: 8b 1b mov (%ebx),%ebx ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 10e0ea: 81 fb 90 55 12 00 cmp $0x125590,%ebx 10e0f0: 75 e6 jne 10e0d8 <_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 ); } } 10e0f2: 8d 65 f8 lea -0x8(%ebp),%esp 10e0f5: 5b pop %ebx 10e0f6: 5e pop %esi 10e0f7: c9 leave 10e0f8: c3 ret 0010e188 <_User_extensions_Thread_create>: #include bool _User_extensions_Thread_create ( Thread_Control *the_thread ) { 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; bool status; for ( the_node = _User_extensions_List.first ; 10e190: 8b 1d 8c 55 12 00 mov 0x12558c,%ebx 10e196: 81 fb 90 55 12 00 cmp $0x125590,%ebx 10e19c: 74 26 je 10e1c4 <_User_extensions_Thread_create+0x3c> <== 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_create != NULL ) { 10e1a0: 8b 43 14 mov 0x14(%ebx),%eax 10e1a3: 85 c0 test %eax,%eax 10e1a5: 74 13 je 10e1ba <_User_extensions_Thread_create+0x32> status = (*the_extension->Callouts.thread_create)( 10e1a7: 83 ec 08 sub $0x8,%esp 10e1aa: 56 push %esi 10e1ab: ff 35 f8 53 12 00 pushl 0x1253f8 10e1b1: ff d0 call *%eax _Thread_Executing, the_thread ); if ( !status ) 10e1b3: 83 c4 10 add $0x10,%esp 10e1b6: 84 c0 test %al,%al 10e1b8: 74 0c je 10e1c6 <_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 ) { 10e1ba: 8b 1b mov (%ebx),%ebx { Chain_Node *the_node; User_extensions_Control *the_extension; bool status; for ( the_node = _User_extensions_List.first ; 10e1bc: 81 fb 90 55 12 00 cmp $0x125590,%ebx 10e1c2: 75 dc jne 10e1a0 <_User_extensions_Thread_create+0x18> 10e1c4: b0 01 mov $0x1,%al return false; } } return true; } 10e1c6: 8d 65 f8 lea -0x8(%ebp),%esp 10e1c9: 5b pop %ebx 10e1ca: 5e pop %esi 10e1cb: c9 leave 10e1cc: c3 ret 0010e1d0 <_User_extensions_Thread_delete>: #include void _User_extensions_Thread_delete ( Thread_Control *the_thread ) { 10e1d0: 55 push %ebp 10e1d1: 89 e5 mov %esp,%ebp 10e1d3: 56 push %esi 10e1d4: 53 push %ebx 10e1d5: 8b 75 08 mov 0x8(%ebp),%esi Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 10e1d8: 8b 1d 94 55 12 00 mov 0x125594,%ebx 10e1de: 81 fb 8c 55 12 00 cmp $0x12558c,%ebx 10e1e4: 74 23 je 10e209 <_User_extensions_Thread_delete+0x39> <== ALWAYS TAKEN 10e1e6: 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 ) 10e1e8: 8b 43 20 mov 0x20(%ebx),%eax 10e1eb: 85 c0 test %eax,%eax 10e1ed: 74 0f je 10e1fe <_User_extensions_Thread_delete+0x2e> (*the_extension->Callouts.thread_delete)( 10e1ef: 83 ec 08 sub $0x8,%esp 10e1f2: 56 push %esi 10e1f3: ff 35 f8 53 12 00 pushl 0x1253f8 10e1f9: ff d0 call *%eax 10e1fb: 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 ) { 10e1fe: 8b 5b 04 mov 0x4(%ebx),%ebx ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 10e201: 81 fb 8c 55 12 00 cmp $0x12558c,%ebx 10e207: 75 df jne 10e1e8 <_User_extensions_Thread_delete+0x18> (*the_extension->Callouts.thread_delete)( _Thread_Executing, the_thread ); } } 10e209: 8d 65 f8 lea -0x8(%ebp),%esp 10e20c: 5b pop %ebx 10e20d: 5e pop %esi 10e20e: c9 leave 10e20f: c3 ret 0010e0fc <_User_extensions_Thread_exitted>: void _User_extensions_Thread_exitted ( Thread_Control *executing ) { 10e0fc: 55 push %ebp 10e0fd: 89 e5 mov %esp,%ebp 10e0ff: 56 push %esi 10e100: 53 push %ebx 10e101: 8b 75 08 mov 0x8(%ebp),%esi Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 10e104: 8b 1d 94 55 12 00 mov 0x125594,%ebx 10e10a: 81 fb 8c 55 12 00 cmp $0x12558c,%ebx 10e110: 74 1d je 10e12f <_User_extensions_Thread_exitted+0x33> <== ALWAYS TAKEN 10e112: 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 ) 10e114: 8b 43 2c mov 0x2c(%ebx),%eax 10e117: 85 c0 test %eax,%eax 10e119: 74 09 je 10e124 <_User_extensions_Thread_exitted+0x28> (*the_extension->Callouts.thread_exitted)( executing ); 10e11b: 83 ec 0c sub $0xc,%esp 10e11e: 56 push %esi 10e11f: ff d0 call *%eax 10e121: 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 ) { 10e124: 8b 5b 04 mov 0x4(%ebx),%ebx ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 10e127: 81 fb 8c 55 12 00 cmp $0x12558c,%ebx 10e12d: 75 e5 jne 10e114 <_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 ); } } 10e12f: 8d 65 f8 lea -0x8(%ebp),%esp 10e132: 5b pop %ebx 10e133: 5e pop %esi 10e134: c9 leave 10e135: c3 ret 0010ed74 <_User_extensions_Thread_restart>: #include void _User_extensions_Thread_restart ( Thread_Control *the_thread ) { 10ed74: 55 push %ebp 10ed75: 89 e5 mov %esp,%ebp 10ed77: 56 push %esi 10ed78: 53 push %ebx 10ed79: 8b 75 08 mov 0x8(%ebp),%esi Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 10ed7c: 8b 1d ec 75 12 00 mov 0x1275ec,%ebx 10ed82: 81 fb f0 75 12 00 cmp $0x1275f0,%ebx 10ed88: 74 22 je 10edac <_User_extensions_Thread_restart+0x38> <== ALWAYS TAKEN 10ed8a: 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 ) 10ed8c: 8b 43 1c mov 0x1c(%ebx),%eax 10ed8f: 85 c0 test %eax,%eax 10ed91: 74 0f je 10eda2 <_User_extensions_Thread_restart+0x2e> (*the_extension->Callouts.thread_restart)( 10ed93: 83 ec 08 sub $0x8,%esp 10ed96: 56 push %esi 10ed97: ff 35 58 74 12 00 pushl 0x127458 10ed9d: ff d0 call *%eax 10ed9f: 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 ) { 10eda2: 8b 1b mov (%ebx),%ebx ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 10eda4: 81 fb f0 75 12 00 cmp $0x1275f0,%ebx 10edaa: 75 e0 jne 10ed8c <_User_extensions_Thread_restart+0x18> (*the_extension->Callouts.thread_restart)( _Thread_Executing, the_thread ); } } 10edac: 8d 65 f8 lea -0x8(%ebp),%esp 10edaf: 5b pop %ebx 10edb0: 5e pop %esi 10edb1: c9 leave 10edb2: c3 ret 0010e210 <_User_extensions_Thread_start>: #include void _User_extensions_Thread_start ( Thread_Control *the_thread ) { 10e210: 55 push %ebp 10e211: 89 e5 mov %esp,%ebp 10e213: 56 push %esi 10e214: 53 push %ebx 10e215: 8b 75 08 mov 0x8(%ebp),%esi Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 10e218: 8b 1d 8c 55 12 00 mov 0x12558c,%ebx 10e21e: 81 fb 90 55 12 00 cmp $0x125590,%ebx 10e224: 74 22 je 10e248 <_User_extensions_Thread_start+0x38> <== ALWAYS TAKEN 10e226: 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 ) 10e228: 8b 43 18 mov 0x18(%ebx),%eax 10e22b: 85 c0 test %eax,%eax 10e22d: 74 0f je 10e23e <_User_extensions_Thread_start+0x2e> (*the_extension->Callouts.thread_start)( 10e22f: 83 ec 08 sub $0x8,%esp 10e232: 56 push %esi 10e233: ff 35 f8 53 12 00 pushl 0x1253f8 10e239: ff d0 call *%eax 10e23b: 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 ) { 10e23e: 8b 1b mov (%ebx),%ebx ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.first ; 10e240: 81 fb 90 55 12 00 cmp $0x125590,%ebx 10e246: 75 e0 jne 10e228 <_User_extensions_Thread_start+0x18> (*the_extension->Callouts.thread_start)( _Thread_Executing, the_thread ); } } 10e248: 8d 65 f8 lea -0x8(%ebp),%esp 10e24b: 5b pop %ebx 10e24c: 5e pop %esi 10e24d: c9 leave 10e24e: c3 ret 0010e250 <_User_extensions_Thread_switch>: void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) { 10e250: 55 push %ebp 10e251: 89 e5 mov %esp,%ebp 10e253: 57 push %edi 10e254: 56 push %esi 10e255: 53 push %ebx 10e256: 83 ec 0c sub $0xc,%esp 10e259: 8b 7d 08 mov 0x8(%ebp),%edi 10e25c: 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 ; 10e25f: 8b 1d 3c 53 12 00 mov 0x12533c,%ebx 10e265: 81 fb 40 53 12 00 cmp $0x125340,%ebx 10e26b: 74 18 je 10e285 <_User_extensions_Thread_switch+0x35> <== ALWAYS TAKEN 10e26d: 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 ); 10e270: 83 ec 08 sub $0x8,%esp 10e273: 56 push %esi 10e274: 57 push %edi 10e275: 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 ) { 10e278: 8b 1b mov (%ebx),%ebx ) { Chain_Node *the_node; User_extensions_Switch_control *the_extension_switch; for ( the_node = _User_extensions_Switches_list.first ; 10e27a: 83 c4 10 add $0x10,%esp 10e27d: 81 fb 40 53 12 00 cmp $0x125340,%ebx 10e283: 75 eb jne 10e270 <_User_extensions_Thread_switch+0x20> the_extension_switch = (User_extensions_Switch_control *) the_node; (*the_extension_switch->thread_switch)( executing, heir ); } } 10e285: 8d 65 f4 lea -0xc(%ebp),%esp 10e288: 5b pop %ebx 10e289: 5e pop %esi 10e28a: 5f pop %edi 10e28b: c9 leave 10e28c: c3 ret 0010fc48 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 10fc48: 55 push %ebp 10fc49: 89 e5 mov %esp,%ebp 10fc4b: 57 push %edi 10fc4c: 56 push %esi 10fc4d: 53 push %ebx 10fc4e: 83 ec 1c sub $0x1c,%esp 10fc51: 8b 75 08 mov 0x8(%ebp),%esi 10fc54: 8b 4d 0c mov 0xc(%ebp),%ecx 10fc57: 8b 5d 10 mov 0x10(%ebp),%ebx ISR_Level level; _ISR_Disable( level ); 10fc5a: 9c pushf 10fc5b: fa cli 10fc5c: 58 pop %eax */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 10fc5d: 8b 16 mov (%esi),%edx */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10fc5f: 8d 7e 04 lea 0x4(%esi),%edi 10fc62: 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 ) ) { 10fc65: 39 fa cmp %edi,%edx 10fc67: 74 3d je 10fca6 <_Watchdog_Adjust+0x5e> switch ( direction ) { 10fc69: 85 c9 test %ecx,%ecx 10fc6b: 75 43 jne 10fcb0 <_Watchdog_Adjust+0x68> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 10fc6d: 85 db test %ebx,%ebx 10fc6f: 74 35 je 10fca6 <_Watchdog_Adjust+0x5e> <== ALWAYS TAKEN if ( units < _Watchdog_First( header )->delta_interval ) { 10fc71: 8b 7a 10 mov 0x10(%edx),%edi 10fc74: 39 fb cmp %edi,%ebx 10fc76: 73 0f jae 10fc87 <_Watchdog_Adjust+0x3f> <== NEVER TAKEN 10fc78: eb 3e jmp 10fcb8 <_Watchdog_Adjust+0x70> <== NOT EXECUTED 10fc7a: 66 90 xchg %ax,%ax <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 10fc7c: 29 fb sub %edi,%ebx 10fc7e: 74 26 je 10fca6 <_Watchdog_Adjust+0x5e> <== ALWAYS TAKEN if ( units < _Watchdog_First( header )->delta_interval ) { 10fc80: 8b 7a 10 mov 0x10(%edx),%edi 10fc83: 39 df cmp %ebx,%edi 10fc85: 77 31 ja 10fcb8 <_Watchdog_Adjust+0x70> _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 10fc87: c7 42 10 01 00 00 00 movl $0x1,0x10(%edx) _ISR_Enable( level ); 10fc8e: 50 push %eax 10fc8f: 9d popf _Watchdog_Tickle( header ); 10fc90: 83 ec 0c sub $0xc,%esp 10fc93: 56 push %esi 10fc94: e8 cb 01 00 00 call 10fe64 <_Watchdog_Tickle> <== ALWAYS TAKEN _ISR_Disable( level ); 10fc99: 9c pushf 10fc9a: fa cli 10fc9b: 58 pop %eax */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 10fc9c: 8b 16 mov (%esi),%edx if ( _Chain_Is_empty( header ) ) 10fc9e: 83 c4 10 add $0x10,%esp 10fca1: 39 55 e4 cmp %edx,-0x1c(%ebp) 10fca4: 75 d6 jne 10fc7c <_Watchdog_Adjust+0x34> } break; } } _ISR_Enable( level ); 10fca6: 50 push %eax 10fca7: 9d popf } 10fca8: 8d 65 f4 lea -0xc(%ebp),%esp 10fcab: 5b pop %ebx 10fcac: 5e pop %esi 10fcad: 5f pop %edi 10fcae: c9 leave 10fcaf: c3 ret * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { 10fcb0: 49 dec %ecx 10fcb1: 75 f3 jne 10fca6 <_Watchdog_Adjust+0x5e> <== ALWAYS TAKEN case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 10fcb3: 01 5a 10 add %ebx,0x10(%edx) break; 10fcb6: eb ee jmp 10fca6 <_Watchdog_Adjust+0x5e> <== ALWAYS TAKEN case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; 10fcb8: 29 df sub %ebx,%edi 10fcba: 89 7a 10 mov %edi,0x10(%edx) break; 10fcbd: eb e7 jmp 10fca6 <_Watchdog_Adjust+0x5e> <== ALWAYS TAKEN 0011c5d4 <_Watchdog_Adjust_to_chain>: Chain_Control *header, Watchdog_Interval units_arg, Chain_Control *to_fire ) { 11c5d4: 55 push %ebp 11c5d5: 89 e5 mov %esp,%ebp 11c5d7: 57 push %edi 11c5d8: 56 push %esi 11c5d9: 53 push %ebx 11c5da: 83 ec 0c sub $0xc,%esp 11c5dd: 8b 75 08 mov 0x8(%ebp),%esi 11c5e0: 8b 55 0c mov 0xc(%ebp),%edx 11c5e3: 8b 5d 10 mov 0x10(%ebp),%ebx Watchdog_Interval units = units_arg; ISR_Level level; Watchdog_Control *first; if ( units <= 0 ) { 11c5e6: 85 d2 test %edx,%edx 11c5e8: 74 63 je 11c64d <_Watchdog_Adjust_to_chain+0x79> return; } _ISR_Disable( level ); 11c5ea: 9c pushf 11c5eb: fa cli 11c5ec: 8f 45 ec popl -0x14(%ebp) 11c5ef: 8b 06 mov (%esi),%eax */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 11c5f1: 8d 4e 04 lea 0x4(%esi),%ecx 11c5f4: 89 4d f0 mov %ecx,-0x10(%ebp) 11c5f7: 8d 7b 04 lea 0x4(%ebx),%edi 11c5fa: 89 55 e8 mov %edx,-0x18(%ebp) 11c5fd: 8d 76 00 lea 0x0(%esi),%esi while ( 1 ) { if ( units <= 0 ) { break; } if ( _Chain_Is_empty( header ) ) { 11c600: 39 45 f0 cmp %eax,-0x10(%ebp) 11c603: 74 44 je 11c649 <_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 ) { 11c605: 8b 50 10 mov 0x10(%eax),%edx 11c608: 3b 55 e8 cmp -0x18(%ebp),%edx 11c60b: 77 57 ja 11c664 <_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; 11c60d: 29 55 e8 sub %edx,-0x18(%ebp) first->delta_interval = 0; 11c610: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) 11c617: 90 nop ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 11c618: 8b 08 mov (%eax),%ecx previous = the_node->previous; 11c61a: 8b 50 04 mov 0x4(%eax),%edx next->previous = previous; 11c61d: 89 51 04 mov %edx,0x4(%ecx) previous->next = next; 11c620: 89 0a mov %ecx,(%edx) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 11c622: 89 38 mov %edi,(%eax) old_last_node = the_chain->last; 11c624: 8b 53 08 mov 0x8(%ebx),%edx the_chain->last = the_node; 11c627: 89 43 08 mov %eax,0x8(%ebx) old_last_node->next = the_node; 11c62a: 89 02 mov %eax,(%edx) the_node->previous = old_last_node; 11c62c: 89 50 04 mov %edx,0x4(%eax) while ( 1 ) { _Chain_Extract_unprotected( &first->Node ); _Chain_Append_unprotected( to_fire, &first->Node ); _ISR_Flash( level ); 11c62f: ff 75 ec pushl -0x14(%ebp) 11c632: 9d popf 11c633: fa cli */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 11c634: 8b 06 mov (%esi),%eax if ( _Chain_Is_empty( header ) ) 11c636: 39 45 f0 cmp %eax,-0x10(%ebp) 11c639: 74 1d je 11c658 <_Watchdog_Adjust_to_chain+0x84> break; first = _Watchdog_First( header ); if ( first->delta_interval != 0 ) 11c63b: 8b 50 10 mov 0x10(%eax),%edx 11c63e: 85 d2 test %edx,%edx 11c640: 74 d6 je 11c618 <_Watchdog_Adjust_to_chain+0x44> } _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) { 11c642: 8b 4d e8 mov -0x18(%ebp),%ecx 11c645: 85 c9 test %ecx,%ecx 11c647: 75 b7 jne 11c600 <_Watchdog_Adjust_to_chain+0x2c> if ( first->delta_interval != 0 ) break; } } _ISR_Enable( level ); 11c649: ff 75 ec pushl -0x14(%ebp) 11c64c: 9d popf } 11c64d: 83 c4 0c add $0xc,%esp 11c650: 5b pop %ebx 11c651: 5e pop %esi 11c652: 5f pop %edi 11c653: c9 leave 11c654: c3 ret 11c655: 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; 11c658: 8b 45 f0 mov -0x10(%ebp),%eax } _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) { 11c65b: 8b 4d e8 mov -0x18(%ebp),%ecx 11c65e: 85 c9 test %ecx,%ecx 11c660: 75 9e jne 11c600 <_Watchdog_Adjust_to_chain+0x2c> 11c662: eb e5 jmp 11c649 <_Watchdog_Adjust_to_chain+0x75> <== ALWAYS TAKEN /* * 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; 11c664: 2b 55 e8 sub -0x18(%ebp),%edx 11c667: 89 50 10 mov %edx,0x10(%eax) break; 11c66a: eb dd jmp 11c649 <_Watchdog_Adjust_to_chain+0x75> <== ALWAYS TAKEN 0010e290 <_Watchdog_Insert>: void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 10e290: 55 push %ebp 10e291: 89 e5 mov %esp,%ebp 10e293: 57 push %edi 10e294: 56 push %esi 10e295: 53 push %ebx 10e296: 83 ec 04 sub $0x4,%esp 10e299: 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; 10e29c: 8b 3d d4 53 12 00 mov 0x1253d4,%edi _ISR_Disable( level ); 10e2a2: 9c pushf 10e2a3: fa cli 10e2a4: 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 ) { 10e2a7: 8b 43 08 mov 0x8(%ebx),%eax 10e2aa: 85 c0 test %eax,%eax 10e2ac: 0f 85 9e 00 00 00 jne 10e350 <_Watchdog_Insert+0xc0> _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 10e2b2: c7 43 08 01 00 00 00 movl $0x1,0x8(%ebx) _Watchdog_Sync_count++; 10e2b9: a1 a0 54 12 00 mov 0x1254a0,%eax 10e2be: 40 inc %eax 10e2bf: a3 a0 54 12 00 mov %eax,0x1254a0 restart: delta_interval = the_watchdog->initial; 10e2c4: 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 ; 10e2c7: 8b 4d 08 mov 0x8(%ebp),%ecx 10e2ca: 8b 11 mov (%ecx),%edx ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 10e2cc: 85 c0 test %eax,%eax 10e2ce: 74 5d je 10e32d <_Watchdog_Insert+0x9d> 10e2d0: 8b 32 mov (%edx),%esi 10e2d2: 85 f6 test %esi,%esi 10e2d4: 74 57 je 10e32d <_Watchdog_Insert+0x9d> break; if ( delta_interval < after->delta_interval ) { 10e2d6: 8b 4a 10 mov 0x10(%edx),%ecx 10e2d9: 39 c8 cmp %ecx,%eax 10e2db: 73 22 jae 10e2ff <_Watchdog_Insert+0x6f> 10e2dd: eb 49 jmp 10e328 <_Watchdog_Insert+0x98> <== ALWAYS TAKEN 10e2df: 90 nop <== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 10e2e0: 8b 35 f4 53 12 00 mov 0x1253f4,%esi 10e2e6: 39 f7 cmp %esi,%edi 10e2e8: 72 72 jb 10e35c <_Watchdog_Insert+0xcc> if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 10e2ea: 29 c8 sub %ecx,%eax RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); 10e2ec: 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 ) ) 10e2ee: 85 c0 test %eax,%eax 10e2f0: 74 3b je 10e32d <_Watchdog_Insert+0x9d> 10e2f2: 8b 0a mov (%edx),%ecx 10e2f4: 85 c9 test %ecx,%ecx 10e2f6: 74 35 je 10e32d <_Watchdog_Insert+0x9d> break; if ( delta_interval < after->delta_interval ) { 10e2f8: 8b 4a 10 mov 0x10(%edx),%ecx 10e2fb: 39 c1 cmp %eax,%ecx 10e2fd: 77 29 ja 10e328 <_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 ); 10e2ff: ff 75 f0 pushl -0x10(%ebp) 10e302: 9d popf 10e303: fa cli if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 10e304: 83 7b 08 01 cmpl $0x1,0x8(%ebx) 10e308: 74 d6 je 10e2e0 <_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; 10e30a: 89 3d f4 53 12 00 mov %edi,0x1253f4 _Watchdog_Sync_count--; 10e310: a1 a0 54 12 00 mov 0x1254a0,%eax 10e315: 48 dec %eax 10e316: a3 a0 54 12 00 mov %eax,0x1254a0 _ISR_Enable( level ); 10e31b: ff 75 f0 pushl -0x10(%ebp) 10e31e: 9d popf } 10e31f: 58 pop %eax 10e320: 5b pop %ebx 10e321: 5e pop %esi 10e322: 5f pop %edi 10e323: c9 leave 10e324: c3 ret 10e325: 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; 10e328: 29 c1 sub %eax,%ecx 10e32a: 89 4a 10 mov %ecx,0x10(%edx) RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; 10e32d: c7 43 08 02 00 00 00 movl $0x2,0x8(%ebx) } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; 10e334: 89 43 10 mov %eax,0x10(%ebx) _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); 10e337: 8b 42 04 mov 0x4(%edx),%eax Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 10e33a: 89 43 04 mov %eax,0x4(%ebx) before_node = after_node->next; 10e33d: 8b 10 mov (%eax),%edx after_node->next = the_node; 10e33f: 89 18 mov %ebx,(%eax) the_node->next = before_node; 10e341: 89 13 mov %edx,(%ebx) before_node->previous = the_node; 10e343: 89 5a 04 mov %ebx,0x4(%edx) the_watchdog->start_time = _Watchdog_Ticks_since_boot; 10e346: a1 a4 54 12 00 mov 0x1254a4,%eax 10e34b: 89 43 14 mov %eax,0x14(%ebx) 10e34e: eb ba jmp 10e30a <_Watchdog_Insert+0x7a> <== ALWAYS TAKEN * 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 ); 10e350: ff 75 f0 pushl -0x10(%ebp) 10e353: 9d popf exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; _Watchdog_Sync_count--; _ISR_Enable( level ); } 10e354: 58 pop %eax 10e355: 5b pop %ebx 10e356: 5e pop %esi 10e357: 5f pop %edi 10e358: c9 leave 10e359: c3 ret 10e35a: 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; 10e35c: 89 3d f4 53 12 00 mov %edi,0x1253f4 goto restart; 10e362: e9 5d ff ff ff jmp 10e2c4 <_Watchdog_Insert+0x34> <== ALWAYS TAKEN 0010e3c8 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { 10e3c8: 55 push %ebp 10e3c9: 89 e5 mov %esp,%ebp 10e3cb: 56 push %esi 10e3cc: 53 push %ebx 10e3cd: 8b 55 08 mov 0x8(%ebp),%edx ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 10e3d0: 9c pushf 10e3d1: fa cli 10e3d2: 59 pop %ecx previous_state = the_watchdog->state; 10e3d3: 8b 42 08 mov 0x8(%edx),%eax switch ( previous_state ) { 10e3d6: 83 f8 01 cmp $0x1,%eax 10e3d9: 74 4d je 10e428 <_Watchdog_Remove+0x60> 10e3db: 73 0f jae 10e3ec <_Watchdog_Remove+0x24> _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 10e3dd: 8b 1d a4 54 12 00 mov 0x1254a4,%ebx 10e3e3: 89 5a 18 mov %ebx,0x18(%edx) _ISR_Enable( level ); 10e3e6: 51 push %ecx 10e3e7: 9d popf return( previous_state ); } 10e3e8: 5b pop %ebx 10e3e9: 5e pop %esi 10e3ea: c9 leave 10e3eb: c3 ret Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; switch ( previous_state ) { 10e3ec: 83 f8 03 cmp $0x3,%eax 10e3ef: 77 ec ja 10e3dd <_Watchdog_Remove+0x15> <== ALWAYS TAKEN break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; 10e3f1: 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 ); 10e3f8: 8b 1a mov (%edx),%ebx next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) 10e3fa: 8b 33 mov (%ebx),%esi 10e3fc: 85 f6 test %esi,%esi 10e3fe: 74 06 je 10e406 <_Watchdog_Remove+0x3e> next_watchdog->delta_interval += the_watchdog->delta_interval; 10e400: 8b 72 10 mov 0x10(%edx),%esi 10e403: 01 73 10 add %esi,0x10(%ebx) if ( _Watchdog_Sync_count ) 10e406: 8b 35 a0 54 12 00 mov 0x1254a0,%esi 10e40c: 85 f6 test %esi,%esi 10e40e: 74 0c je 10e41c <_Watchdog_Remove+0x54> _Watchdog_Sync_level = _ISR_Nest_level; 10e410: 8b 35 d4 53 12 00 mov 0x1253d4,%esi 10e416: 89 35 f4 53 12 00 mov %esi,0x1253f4 { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 10e41c: 8b 72 04 mov 0x4(%edx),%esi next->previous = previous; 10e41f: 89 73 04 mov %esi,0x4(%ebx) previous->next = next; 10e422: 89 1e mov %ebx,(%esi) 10e424: eb b7 jmp 10e3dd <_Watchdog_Remove+0x15> <== ALWAYS TAKEN 10e426: 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; 10e428: c7 42 08 00 00 00 00 movl $0x0,0x8(%edx) break; 10e42f: eb ac jmp 10e3dd <_Watchdog_Remove+0x15> <== ALWAYS TAKEN 0010f85c <_Watchdog_Report>: void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { 10f85c: 55 push %ebp 10f85d: 89 e5 mov %esp,%ebp 10f85f: 57 push %edi 10f860: 56 push %esi 10f861: 53 push %ebx 10f862: 83 ec 2c sub $0x2c,%esp 10f865: 8b 55 08 mov 0x8(%ebp),%edx 10f868: 8b 45 0c mov 0xc(%ebp),%eax printk( 10f86b: 8b 78 24 mov 0x24(%eax),%edi 10f86e: 8b 70 20 mov 0x20(%eax),%esi 10f871: 8b 58 1c mov 0x1c(%eax),%ebx 10f874: 8b 48 0c mov 0xc(%eax),%ecx 10f877: 89 4d d4 mov %ecx,-0x2c(%ebp) 10f87a: 8b 48 10 mov 0x10(%eax),%ecx 10f87d: 89 4d e0 mov %ecx,-0x20(%ebp) 10f880: 85 d2 test %edx,%edx 10f882: 74 2c je 10f8b0 <_Watchdog_Report+0x54> 10f884: b9 c3 15 12 00 mov $0x1215c3,%ecx 10f889: 83 ec 0c sub $0xc,%esp 10f88c: 57 push %edi 10f88d: 56 push %esi 10f88e: 53 push %ebx 10f88f: 50 push %eax 10f890: ff 75 d4 pushl -0x2c(%ebp) 10f893: ff 75 e0 pushl -0x20(%ebp) 10f896: 51 push %ecx 10f897: 52 push %edx 10f898: 68 c6 1e 12 00 push $0x121ec6 10f89d: e8 f2 9f ff ff call 109894 10f8a2: 83 c4 30 add $0x30,%esp watch, watch->routine, watch->id, watch->user_data ); } 10f8a5: 8d 65 f4 lea -0xc(%ebp),%esp 10f8a8: 5b pop %ebx 10f8a9: 5e pop %esi 10f8aa: 5f pop %edi 10f8ab: c9 leave 10f8ac: c3 ret 10f8ad: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { printk( 10f8b0: b9 27 1d 12 00 mov $0x121d27,%ecx 10f8b5: 89 ca mov %ecx,%edx 10f8b7: eb d0 jmp 10f889 <_Watchdog_Report+0x2d> <== ALWAYS TAKEN 0010f7ec <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) { 10f7ec: 55 push %ebp 10f7ed: 89 e5 mov %esp,%ebp 10f7ef: 57 push %edi 10f7f0: 56 push %esi 10f7f1: 53 push %ebx 10f7f2: 83 ec 20 sub $0x20,%esp 10f7f5: 8b 7d 08 mov 0x8(%ebp),%edi 10f7f8: 8b 75 0c mov 0xc(%ebp),%esi ISR_Level level; Chain_Node *node; _ISR_Disable( level ); 10f7fb: 9c pushf 10f7fc: fa cli 10f7fd: 8f 45 e4 popl -0x1c(%ebp) printk( "Watchdog Chain: %s %p\n", name, header ); 10f800: 56 push %esi 10f801: 57 push %edi 10f802: 68 90 1e 12 00 push $0x121e90 10f807: e8 88 a0 ff ff call 109894 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 10f80c: 8b 1e mov (%esi),%ebx */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10f80e: 83 c6 04 add $0x4,%esi if ( !_Chain_Is_empty( header ) ) { 10f811: 83 c4 10 add $0x10,%esp 10f814: 39 f3 cmp %esi,%ebx 10f816: 74 31 je 10f849 <_Watchdog_Report_chain+0x5d> node != _Chain_Tail(header) ; node = node->next ) { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); 10f818: 83 ec 08 sub $0x8,%esp 10f81b: 53 push %ebx 10f81c: 6a 00 push $0x0 10f81e: e8 39 00 00 00 call 10f85c <_Watchdog_Report> <== ALWAYS TAKEN _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 ) 10f823: 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 ; 10f825: 83 c4 10 add $0x10,%esp 10f828: 39 f3 cmp %esi,%ebx 10f82a: 75 ec jne 10f818 <_Watchdog_Report_chain+0x2c> <== ALWAYS TAKEN { Watchdog_Control *watch = (Watchdog_Control *) node; _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); 10f82c: 83 ec 08 sub $0x8,%esp 10f82f: 57 push %edi 10f830: 68 a7 1e 12 00 push $0x121ea7 10f835: e8 5a a0 ff ff call 109894 10f83a: 83 c4 10 add $0x10,%esp } else { printk( "Chain is empty\n" ); } _ISR_Enable( level ); 10f83d: ff 75 e4 pushl -0x1c(%ebp) 10f840: 9d popf } 10f841: 8d 65 f4 lea -0xc(%ebp),%esp 10f844: 5b pop %ebx 10f845: 5e pop %esi 10f846: 5f pop %edi 10f847: c9 leave 10f848: c3 ret _Watchdog_Report( NULL, watch ); } printk( "== end of %s \n", name ); } else { printk( "Chain is empty\n" ); 10f849: 83 ec 0c sub $0xc,%esp 10f84c: 68 b6 1e 12 00 push $0x121eb6 10f851: e8 3e a0 ff ff call 109894 10f856: 83 c4 10 add $0x10,%esp 10f859: eb e2 jmp 10f83d <_Watchdog_Report_chain+0x51> <== ALWAYS TAKEN 0010e434 <_Watchdog_Tickle>: */ void _Watchdog_Tickle( Chain_Control *header ) { 10e434: 55 push %ebp 10e435: 89 e5 mov %esp,%ebp 10e437: 57 push %edi 10e438: 56 push %esi 10e439: 53 push %ebx 10e43a: 83 ec 1c sub $0x1c,%esp 10e43d: 8b 7d 08 mov 0x8(%ebp),%edi * See the comment in watchdoginsert.c and watchdogadjust.c * about why it's safe not to declare header a pointer to * volatile data - till, 2003/7 */ _ISR_Disable( level ); 10e440: 9c pushf 10e441: fa cli 10e442: 5e pop %esi */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 10e443: 8b 1f mov (%edi),%ebx */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10e445: 8d 47 04 lea 0x4(%edi),%eax 10e448: 89 45 e4 mov %eax,-0x1c(%ebp) if ( _Chain_Is_empty( header ) ) 10e44b: 39 c3 cmp %eax,%ebx 10e44d: 74 11 je 10e460 <_Watchdog_Tickle+0x2c> * to be inserted has already had its delta_interval adjusted to 0, and * so is added to the head of the chain with a delta_interval of 0. * * Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc) */ if (the_watchdog->delta_interval != 0) { 10e44f: 8b 43 10 mov 0x10(%ebx),%eax 10e452: 85 c0 test %eax,%eax 10e454: 74 34 je 10e48a <_Watchdog_Tickle+0x56> the_watchdog->delta_interval--; 10e456: 48 dec %eax 10e457: 89 43 10 mov %eax,0x10(%ebx) if ( the_watchdog->delta_interval != 0 ) 10e45a: 85 c0 test %eax,%eax 10e45c: 74 2c je 10e48a <_Watchdog_Tickle+0x56> 10e45e: 66 90 xchg %ax,%ax the_watchdog = _Watchdog_First( header ); } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); leave: _ISR_Enable(level); 10e460: 56 push %esi 10e461: 9d popf } 10e462: 8d 65 f4 lea -0xc(%ebp),%esp 10e465: 5b pop %ebx 10e466: 5e pop %esi 10e467: 5f pop %edi 10e468: c9 leave 10e469: c3 ret _ISR_Enable( level ); switch( watchdog_state ) { case WATCHDOG_ACTIVE: (*the_watchdog->routine)( 10e46a: 83 ec 08 sub $0x8,%esp 10e46d: ff 73 24 pushl 0x24(%ebx) 10e470: ff 73 20 pushl 0x20(%ebx) 10e473: ff 53 1c call *0x1c(%ebx) 10e476: 83 c4 10 add $0x10,%esp case WATCHDOG_REMOVE_IT: break; } _ISR_Disable( level ); 10e479: 9c pushf 10e47a: fa cli 10e47b: 5e pop %esi RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); 10e47c: 8b 1f mov (%edi),%ebx the_watchdog = _Watchdog_First( header ); } while ( !_Chain_Is_empty( header ) && (the_watchdog->delta_interval == 0) ); 10e47e: 39 5d e4 cmp %ebx,-0x1c(%ebp) 10e481: 74 dd je 10e460 <_Watchdog_Tickle+0x2c> 10e483: 8b 43 10 mov 0x10(%ebx),%eax 10e486: 85 c0 test %eax,%eax 10e488: 75 d6 jne 10e460 <_Watchdog_Tickle+0x2c> if ( the_watchdog->delta_interval != 0 ) goto leave; } do { watchdog_state = _Watchdog_Remove( the_watchdog ); 10e48a: 83 ec 0c sub $0xc,%esp 10e48d: 53 push %ebx 10e48e: e8 35 ff ff ff call 10e3c8 <_Watchdog_Remove> <== ALWAYS TAKEN _ISR_Enable( level ); 10e493: 56 push %esi 10e494: 9d popf switch( watchdog_state ) { 10e495: 83 c4 10 add $0x10,%esp 10e498: 83 f8 02 cmp $0x2,%eax 10e49b: 75 dc jne 10e479 <_Watchdog_Tickle+0x45> 10e49d: eb cb jmp 10e46a <_Watchdog_Tickle+0x36> <== ALWAYS TAKEN 0010e500 <_Workspace_Handler_initialization>: /* * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { 10e500: 55 push %ebp 10e501: 89 e5 mov %esp,%ebp 10e503: 57 push %edi 10e504: 53 push %ebx uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; 10e505: 8b 1d 20 12 12 00 mov 0x121220,%ebx uintptr_t size = Configuration.work_space_size; 10e50b: 8b 15 24 12 12 00 mov 0x121224,%edx if ( Configuration.do_zero_of_workspace ) 10e511: 80 3d 48 12 12 00 00 cmpb $0x0,0x121248 10e518: 75 1e jne 10e538 <_Workspace_Handler_initialization+0x38> memset( starting_address, 0, size ); memory_available = _Heap_Initialize( 10e51a: 6a 04 push $0x4 10e51c: 52 push %edx 10e51d: 53 push %ebx 10e51e: 68 60 53 12 00 push $0x125360 10e523: e8 dc dd ff ff call 10c304 <_Heap_Initialize> starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) 10e528: 83 c4 10 add $0x10,%esp 10e52b: 85 c0 test %eax,%eax 10e52d: 74 13 je 10e542 <_Workspace_Handler_initialization+0x42> _Internal_error_Occurred( INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_TOO_LITTLE_WORKSPACE ); } 10e52f: 8d 65 f8 lea -0x8(%ebp),%esp 10e532: 5b pop %ebx 10e533: 5f pop %edi 10e534: c9 leave 10e535: c3 ret 10e536: 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 ); 10e538: 31 c0 xor %eax,%eax 10e53a: 89 df mov %ebx,%edi 10e53c: 89 d1 mov %edx,%ecx 10e53e: f3 aa rep stos %al,%es:(%edi) 10e540: eb d8 jmp 10e51a <_Workspace_Handler_initialization+0x1a> <== ALWAYS TAKEN size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) _Internal_error_Occurred( 10e542: 52 push %edx 10e543: 6a 03 push $0x3 10e545: 6a 01 push $0x1 10e547: 6a 00 push $0x0 10e549: e8 da e0 ff ff call 10c628 <_Internal_error_Occurred> 00107c88 <__assert_func>: const char *file, int line, const char *func, const char *failedexpr ) { 107c88: 55 push %ebp 107c89: 89 e5 mov %esp,%ebp 107c8b: 83 ec 08 sub $0x8,%esp 107c8e: 8b 45 10 mov 0x10(%ebp),%eax printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 107c91: 85 c0 test %eax,%eax 107c93: 74 27 je 107cbc <__assert_func+0x34> 107c95: ba eb f7 11 00 mov $0x11f7eb,%edx 107c9a: 83 ec 08 sub $0x8,%esp 107c9d: 50 push %eax 107c9e: 52 push %edx 107c9f: ff 75 0c pushl 0xc(%ebp) 107ca2: ff 75 08 pushl 0x8(%ebp) 107ca5: ff 75 14 pushl 0x14(%ebp) 107ca8: 68 f8 f7 11 00 push $0x11f7f8 107cad: e8 52 10 00 00 call 108d04 file, line, (func) ? ", function: " : "", (func) ? func : "" ); rtems_fatal_error_occurred(0); 107cb2: 83 c4 14 add $0x14,%esp 107cb5: 6a 00 push $0x0 107cb7: e8 dc 3e 00 00 call 10bb98 int line, const char *func, const char *failedexpr ) { printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n", 107cbc: b8 6f f8 11 00 mov $0x11f86f,%eax 107cc1: 89 c2 mov %eax,%edx 107cc3: eb d5 jmp 107c9a <__assert_func+0x12> <== ALWAYS TAKEN 00124488 <__kill>: #endif int __kill( pid_t pid, int sig ) { 124488: 55 push %ebp <== NOT EXECUTED 124489: 89 e5 mov %esp,%ebp <== NOT EXECUTED return 0; } 12448b: 31 c0 xor %eax,%eax <== NOT EXECUTED 12448d: c9 leave <== NOT EXECUTED 12448e: c3 ret <== NOT EXECUTED 0010f7cc <_close_r>: int _close_r( struct _reent *ptr __attribute__((unused)), int fd ) { 10f7cc: 55 push %ebp 10f7cd: 89 e5 mov %esp,%ebp 10f7cf: 83 ec 08 sub $0x8,%esp return close( fd ); 10f7d2: 8b 45 0c mov 0xc(%ebp),%eax 10f7d5: 89 45 08 mov %eax,0x8(%ebp) } 10f7d8: c9 leave int _close_r( struct _reent *ptr __attribute__((unused)), int fd ) { return close( fd ); 10f7d9: e9 72 ff ff ff jmp 10f750 <== ALWAYS TAKEN 0011d800 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 11d800: 55 push %ebp 11d801: 89 e5 mov %esp,%ebp 11d803: 83 ec 08 sub $0x8,%esp 11d806: e8 b2 06 00 00 call 11debd <_fini> <== ALWAYS TAKEN * 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(); 11d80b: e8 88 ff ff ff call 11d798 <== ALWAYS TAKEN rtems_shutdown_executive(status); 11d810: 83 ec 0c sub $0xc,%esp 11d813: ff 75 08 pushl 0x8(%ebp) 11d816: e8 fd 00 00 00 call 11d918 <== ALWAYS TAKEN 11d81b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11d81e: eb fe jmp 11d81e <_exit+0x1e> <== NOT EXECUTED 0013bfc8 <_fcntl_r>: struct _reent *ptr __attribute__((unused)), int fd, int cmd, int arg ) { 13bfc8: 55 push %ebp <== NOT EXECUTED 13bfc9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 13bfcb: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 13bfce: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 13bfd1: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED return fcntl( fd, cmd, arg ); 13bfd4: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED 13bfd7: 89 4d 10 mov %ecx,0x10(%ebp) <== NOT EXECUTED 13bfda: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 13bfdd: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 13bfe0: c9 leave <== NOT EXECUTED int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 13bfe1: e9 4a fe ff ff jmp 13be30 <== NOT EXECUTED 0011d634 <_fstat_r>: int _fstat_r( struct _reent *ptr __attribute__((unused)), int fd, struct stat *buf ) { 11d634: 55 push %ebp 11d635: 89 e5 mov %esp,%ebp 11d637: 83 ec 08 sub $0x8,%esp 11d63a: 8b 45 0c mov 0xc(%ebp),%eax return fstat( fd, buf ); 11d63d: 8b 55 10 mov 0x10(%ebp),%edx 11d640: 89 55 0c mov %edx,0xc(%ebp) 11d643: 89 45 08 mov %eax,0x8(%ebp) } 11d646: c9 leave struct _reent *ptr __attribute__((unused)), int fd, struct stat *buf ) { return fstat( fd, buf ); 11d647: e9 64 ff ff ff jmp 11d5b0 <== ALWAYS TAKEN 00124458 <_getpid_r>: #include pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { 124458: 55 push %ebp <== NOT EXECUTED 124459: 89 e5 mov %esp,%ebp <== NOT EXECUTED return getpid(); } 12445b: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED 124460: c9 leave <== NOT EXECUTED 124461: c3 ret <== NOT EXECUTED 0010f904 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { 10f904: 55 push %ebp <== NOT EXECUTED 10f905: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f907: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED return gettimeofday( tp, tzp ); } 10f90a: c9 leave <== NOT EXECUTED int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 10f90b: e9 90 ff ff ff jmp 10f8a0 <== NOT EXECUTED 0010f910 <_gettimeofday_r>: int _gettimeofday_r( struct _reent *ignored_reentrancy_stuff __attribute__((unused)), struct timeval *tp, struct timezone *tzp ) { 10f910: 55 push %ebp 10f911: 89 e5 mov %esp,%ebp 10f913: 83 ec 08 sub $0x8,%esp 10f916: 8b 45 0c mov 0xc(%ebp),%eax return gettimeofday( tp, tzp ); 10f919: 8b 55 10 mov 0x10(%ebp),%edx 10f91c: 89 55 0c mov %edx,0xc(%ebp) 10f91f: 89 45 08 mov %eax,0x8(%ebp) } 10f922: c9 leave struct _reent *ignored_reentrancy_stuff __attribute__((unused)), struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 10f923: e9 78 ff ff ff jmp 10f8a0 <== ALWAYS TAKEN 0011d64c <_isatty_r>: int _isatty_r( struct _reent *ptr __attribute__((unused)), int fd ) { 11d64c: 55 push %ebp 11d64d: 89 e5 mov %esp,%ebp 11d64f: 83 ec 08 sub $0x8,%esp return isatty( fd ); 11d652: 8b 45 0c mov 0xc(%ebp),%eax 11d655: 89 45 08 mov %eax,0x8(%ebp) } 11d658: c9 leave int _isatty_r( struct _reent *ptr __attribute__((unused)), int fd ) { return isatty( fd ); 11d659: e9 52 06 00 00 jmp 11dcb0 <== ALWAYS TAKEN 00124480 <_kill_r>: #if defined(RTEMS_NEWLIB) #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { 124480: 55 push %ebp <== NOT EXECUTED 124481: 89 e5 mov %esp,%ebp <== NOT EXECUTED return 0; } 124483: 31 c0 xor %eax,%eax <== NOT EXECUTED 124485: c9 leave <== NOT EXECUTED 124486: c3 ret <== NOT EXECUTED 0012c084 <_link_r>: int _link_r( struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { 12c084: 55 push %ebp <== NOT EXECUTED 12c085: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c087: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c08a: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED return link( existing, new ); 12c08d: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 12c090: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 12c093: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 12c096: c9 leave <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 12c097: e9 e8 fd ff ff jmp 12be84 <== NOT EXECUTED 0011d764 <_lseek_r>: struct _reent *ptr __attribute__((unused)), int fd, off_t offset, int whence ) { 11d764: 55 push %ebp 11d765: 89 e5 mov %esp,%ebp 11d767: 83 ec 08 sub $0x8,%esp 11d76a: 8b 45 0c mov 0xc(%ebp),%eax 11d76d: 8b 55 10 mov 0x10(%ebp),%edx return lseek( fd, offset, whence ); 11d770: 8b 4d 14 mov 0x14(%ebp),%ecx 11d773: 89 4d 10 mov %ecx,0x10(%ebp) 11d776: 89 55 0c mov %edx,0xc(%ebp) 11d779: 89 45 08 mov %eax,0x8(%ebp) } 11d77c: c9 leave int fd, off_t offset, int whence ) { return lseek( fd, offset, whence ); 11d77d: e9 de fe ff ff jmp 11d660 <== ALWAYS TAKEN 0012c290 <_lstat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { 12c290: 55 push %ebp <== NOT EXECUTED 12c291: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c293: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c296: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED return _STAT_NAME( path, buf ); 12c299: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 12c29c: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 12c29f: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 12c2a2: c9 leave <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 12c2a3: e9 18 ff ff ff jmp 12c1c0 <== NOT EXECUTED 00108ce4 <_open_r>: struct _reent *ptr __attribute__((unused)), const char *buf, int flags, int mode ) { 108ce4: 55 push %ebp 108ce5: 89 e5 mov %esp,%ebp 108ce7: 83 ec 08 sub $0x8,%esp 108cea: 8b 45 0c mov 0xc(%ebp),%eax 108ced: 8b 55 10 mov 0x10(%ebp),%edx return open( buf, flags, mode ); 108cf0: 8b 4d 14 mov 0x14(%ebp),%ecx 108cf3: 89 4d 10 mov %ecx,0x10(%ebp) 108cf6: 89 55 0c mov %edx,0xc(%ebp) 108cf9: 89 45 08 mov %eax,0x8(%ebp) } 108cfc: c9 leave const char *buf, int flags, int mode ) { return open( buf, flags, mode ); 108cfd: e9 a6 fd ff ff jmp 108aa8 <== ALWAYS TAKEN 0011d8c0 <_read_r>: struct _reent *ptr __attribute__((unused)), int fd, void *buf, size_t nbytes ) { 11d8c0: 55 push %ebp 11d8c1: 89 e5 mov %esp,%ebp 11d8c3: 83 ec 08 sub $0x8,%esp 11d8c6: 8b 45 0c mov 0xc(%ebp),%eax 11d8c9: 8b 55 10 mov 0x10(%ebp),%edx return read( fd, buf, nbytes ); 11d8cc: 8b 4d 14 mov 0x14(%ebp),%ecx 11d8cf: 89 4d 10 mov %ecx,0x10(%ebp) 11d8d2: 89 55 0c mov %edx,0xc(%ebp) 11d8d5: 89 45 08 mov %eax,0x8(%ebp) } 11d8d8: c9 leave int fd, void *buf, size_t nbytes ) { return read( fd, buf, nbytes ); 11d8d9: e9 42 ff ff ff jmp 11d820 <== ALWAYS TAKEN 0011d8e0 <_realloc_r>: void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { 11d8e0: 55 push %ebp <== NOT EXECUTED 11d8e1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 11d8e3: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11d8e6: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED return realloc( ptr, size ); 11d8e9: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 11d8ec: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 11d8ef: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 11d8f2: c9 leave <== NOT EXECUTED struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 11d8f3: e9 48 00 00 00 jmp 11d940 <== NOT EXECUTED 00156e14 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 156e14: 55 push %ebp <== NOT EXECUTED 156e15: 89 e5 mov %esp,%ebp <== NOT EXECUTED 156e17: 57 push %edi <== NOT EXECUTED 156e18: 56 push %esi <== NOT EXECUTED 156e19: 53 push %ebx <== NOT EXECUTED 156e1a: 83 ec 68 sub $0x68,%esp <== NOT EXECUTED 156e1d: 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 ); 156e20: 52 push %edx <== NOT EXECUTED 156e21: 89 55 9c mov %edx,-0x64(%ebp) <== NOT EXECUTED 156e24: e8 f3 5e fb ff call 10cd1c <== NOT EXECUTED 156e29: 89 c3 mov %eax,%ebx <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 156e2b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 156e2e: 85 c0 test %eax,%eax <== NOT EXECUTED 156e30: 8b 55 9c mov -0x64(%ebp),%edx <== NOT EXECUTED 156e33: 0f 85 fb 02 00 00 jne 157134 <_rename_r+0x320> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 156e39: 8a 02 mov (%edx),%al <== NOT EXECUTED 156e3b: 3c 2f cmp $0x2f,%al <== NOT EXECUTED 156e3d: 74 0c je 156e4b <_rename_r+0x37> <== NOT EXECUTED 156e3f: 3c 5c cmp $0x5c,%al <== NOT EXECUTED 156e41: 74 08 je 156e4b <_rename_r+0x37> <== NOT EXECUTED 156e43: 84 c0 test %al,%al <== NOT EXECUTED 156e45: 0f 85 75 01 00 00 jne 156fc0 <_rename_r+0x1ac> <== NOT EXECUTED 156e4b: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED 156e4e: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED 156e51: 8b 35 a4 7c 16 00 mov 0x167ca4,%esi <== NOT EXECUTED 156e57: 83 c6 18 add $0x18,%esi <== NOT EXECUTED 156e5a: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 156e5f: 89 c7 mov %eax,%edi <== NOT EXECUTED 156e61: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 156e63: 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; 156e67: 8d 7d d0 lea -0x30(%ebp),%edi <== NOT EXECUTED 156e6a: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 156e6f: 8b 75 a4 mov -0x5c(%ebp),%esi <== NOT EXECUTED 156e72: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED name = old + old_parent_pathlen; 156e74: 8d 1c 1a lea (%edx,%ebx,1),%ebx <== NOT EXECUTED 156e77: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 156e7a: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 156e7f: 89 f1 mov %esi,%ecx <== NOT EXECUTED 156e81: 89 df mov %ebx,%edi <== NOT EXECUTED 156e83: 31 c0 xor %eax,%eax <== NOT EXECUTED 156e85: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 156e87: f7 d1 not %ecx <== NOT EXECUTED 156e89: 49 dec %ecx <== NOT EXECUTED 156e8a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 156e8d: 51 push %ecx <== NOT EXECUTED 156e8e: 53 push %ebx <== NOT EXECUTED 156e8f: e8 4c 5e fb ff call 10cce0 <== NOT EXECUTED 156e94: 01 c3 add %eax,%ebx <== NOT EXECUTED 156e96: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 156e99: 89 f1 mov %esi,%ecx <== NOT EXECUTED 156e9b: 89 df mov %ebx,%edi <== NOT EXECUTED 156e9d: 31 c0 xor %eax,%eax <== NOT EXECUTED 156e9f: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 156ea1: 89 ce mov %ecx,%esi <== NOT EXECUTED 156ea3: f7 d6 not %esi <== NOT EXECUTED 156ea5: 4e dec %esi <== NOT EXECUTED 156ea6: c7 04 24 00 00 00 00 movl $0x0,(%esp) <== NOT EXECUTED 156ead: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED 156eb0: 50 push %eax <== NOT EXECUTED 156eb1: 6a 00 push $0x0 <== NOT EXECUTED 156eb3: 56 push %esi <== NOT EXECUTED 156eb4: 53 push %ebx <== NOT EXECUTED 156eb5: e8 b2 5e fb ff call 10cd6c <== NOT EXECUTED 156eba: 89 c3 mov %eax,%ebx <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 156ebc: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 156ebf: 85 c0 test %eax,%eax <== NOT EXECUTED 156ec1: 0f 85 89 01 00 00 jne 157050 <_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 ); 156ec7: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 156eca: 8a 02 mov (%edx),%al <== NOT EXECUTED 156ecc: 3c 2f cmp $0x2f,%al <== NOT EXECUTED 156ece: 74 24 je 156ef4 <_rename_r+0xe0> <== NOT EXECUTED 156ed0: 3c 5c cmp $0x5c,%al <== NOT EXECUTED 156ed2: 74 20 je 156ef4 <_rename_r+0xe0> <== NOT EXECUTED 156ed4: 84 c0 test %al,%al <== NOT EXECUTED 156ed6: 74 1c je 156ef4 <_rename_r+0xe0> <== NOT EXECUTED 156ed8: 8d 5d a8 lea -0x58(%ebp),%ebx <== NOT EXECUTED 156edb: 8b 35 a4 7c 16 00 mov 0x167ca4,%esi <== NOT EXECUTED 156ee1: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 156ee4: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 156ee9: 89 df mov %ebx,%edi <== NOT EXECUTED 156eeb: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 156eed: 31 d2 xor %edx,%edx <== NOT EXECUTED 156eef: eb 1d jmp 156f0e <_rename_r+0xfa> <== NOT EXECUTED 156ef1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 156ef4: 8d 5d a8 lea -0x58(%ebp),%ebx <== NOT EXECUTED 156ef7: 8b 35 a4 7c 16 00 mov 0x167ca4,%esi <== NOT EXECUTED 156efd: 83 c6 18 add $0x18,%esi <== NOT EXECUTED 156f00: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 156f05: 89 df mov %ebx,%edi <== NOT EXECUTED 156f07: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 156f09: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 156f0e: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 156f11: 8b 40 04 mov 0x4(%eax),%eax <== NOT EXECUTED 156f14: 85 c0 test %eax,%eax <== NOT EXECUTED 156f16: 0f 84 c8 01 00 00 je 1570e4 <_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 ); 156f1c: 51 push %ecx <== NOT EXECUTED 156f1d: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED 156f20: 51 push %ecx <== NOT EXECUTED 156f21: 53 push %ebx <== NOT EXECUTED 156f22: 03 55 10 add 0x10(%ebp),%edx <== NOT EXECUTED 156f25: 52 push %edx <== NOT EXECUTED 156f26: ff d0 call *%eax <== NOT EXECUTED 156f28: 89 c6 mov %eax,%esi <== NOT EXECUTED if ( result != 0 ) { 156f2a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 156f2d: 85 c0 test %eax,%eax <== NOT EXECUTED 156f2f: 0f 85 4b 01 00 00 jne 157080 <_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 ) { 156f35: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 156f38: 3b 45 b8 cmp -0x48(%ebp),%eax <== NOT EXECUTED 156f3b: 0f 85 a3 00 00 00 jne 156fe4 <_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 ) { 156f41: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED 156f44: 8b 42 40 mov 0x40(%edx),%eax <== NOT EXECUTED 156f47: 85 c0 test %eax,%eax <== NOT EXECUTED 156f49: 0f 84 15 02 00 00 je 157164 <_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 ); 156f4f: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 156f52: 53 push %ebx <== NOT EXECUTED 156f53: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED 156f56: 51 push %ecx <== NOT EXECUTED 156f57: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 156f5a: ff d0 call *%eax <== NOT EXECUTED 156f5c: 89 c6 mov %eax,%esi <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 156f5e: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 156f61: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 156f64: 85 c0 test %eax,%eax <== NOT EXECUTED 156f66: 74 10 je 156f78 <_rename_r+0x164> <== NOT EXECUTED 156f68: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 156f6b: 85 c0 test %eax,%eax <== NOT EXECUTED 156f6d: 74 09 je 156f78 <_rename_r+0x164> <== NOT EXECUTED 156f6f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 156f72: 53 push %ebx <== NOT EXECUTED 156f73: ff d0 call *%eax <== NOT EXECUTED 156f75: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_old_parentloc ) 156f78: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 156f7c: 75 26 jne 156fa4 <_rename_r+0x190> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); 156f7e: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 156f81: 85 c0 test %eax,%eax <== NOT EXECUTED 156f83: 74 13 je 156f98 <_rename_r+0x184> <== NOT EXECUTED 156f85: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 156f88: 85 c0 test %eax,%eax <== NOT EXECUTED 156f8a: 74 0c je 156f98 <_rename_r+0x184> <== NOT EXECUTED 156f8c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 156f8f: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 156f92: 52 push %edx <== NOT EXECUTED 156f93: ff d0 call *%eax <== NOT EXECUTED 156f95: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return result; } 156f98: 89 f0 mov %esi,%eax <== NOT EXECUTED 156f9a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 156f9d: 5b pop %ebx <== NOT EXECUTED 156f9e: 5e pop %esi <== NOT EXECUTED 156f9f: 5f pop %edi <== NOT EXECUTED 156fa0: c9 leave <== NOT EXECUTED 156fa1: c3 ret <== NOT EXECUTED 156fa2: 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 ); 156fa4: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 156fa7: 85 c0 test %eax,%eax <== NOT EXECUTED 156fa9: 74 d3 je 156f7e <_rename_r+0x16a> <== NOT EXECUTED 156fab: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 156fae: 85 c0 test %eax,%eax <== NOT EXECUTED 156fb0: 74 cc je 156f7e <_rename_r+0x16a> <== NOT EXECUTED 156fb2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 156fb5: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 156fb8: ff d0 call *%eax <== NOT EXECUTED 156fba: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 156fbd: eb bf jmp 156f7e <_rename_r+0x16a> <== NOT EXECUTED 156fbf: 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 ); 156fc0: 8d 4d bc lea -0x44(%ebp),%ecx <== NOT EXECUTED 156fc3: 89 4d a4 mov %ecx,-0x5c(%ebp) <== NOT EXECUTED 156fc6: 8b 35 a4 7c 16 00 mov 0x167ca4,%esi <== NOT EXECUTED 156fcc: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 156fcf: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 156fd4: 8b 7d a4 mov -0x5c(%ebp),%edi <== NOT EXECUTED 156fd7: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 156fd9: c6 45 a3 00 movb $0x0,-0x5d(%ebp) <== NOT EXECUTED 156fdd: e9 85 fe ff ff jmp 156e67 <_rename_r+0x53> <== NOT EXECUTED 156fe2: 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 ); 156fe4: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 156fe7: 85 c0 test %eax,%eax <== NOT EXECUTED 156fe9: 74 10 je 156ffb <_rename_r+0x1e7> <== NOT EXECUTED 156feb: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 156fee: 85 c0 test %eax,%eax <== NOT EXECUTED 156ff0: 74 09 je 156ffb <_rename_r+0x1e7> <== NOT EXECUTED 156ff2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 156ff5: 53 push %ebx <== NOT EXECUTED 156ff6: ff d0 call *%eax <== NOT EXECUTED 156ff8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_old_parentloc ) 156ffb: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 156fff: 74 19 je 15701a <_rename_r+0x206> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 157001: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 157004: 85 c0 test %eax,%eax <== NOT EXECUTED 157006: 74 12 je 15701a <_rename_r+0x206> <== NOT EXECUTED 157008: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 15700b: 85 c0 test %eax,%eax <== NOT EXECUTED 15700d: 74 0b je 15701a <_rename_r+0x206> <== NOT EXECUTED 15700f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157012: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 157015: ff d0 call *%eax <== NOT EXECUTED 157017: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 15701a: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 15701d: 85 c0 test %eax,%eax <== NOT EXECUTED 15701f: 74 13 je 157034 <_rename_r+0x220> <== NOT EXECUTED 157021: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 157024: 85 c0 test %eax,%eax <== NOT EXECUTED 157026: 74 0c je 157034 <_rename_r+0x220> <== NOT EXECUTED 157028: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 15702b: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED 15702e: 51 push %ecx <== NOT EXECUTED 15702f: ff d0 call *%eax <== NOT EXECUTED 157031: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 157034: e8 83 a0 fe ff call 1410bc <__errno> <== NOT EXECUTED 157039: c7 00 12 00 00 00 movl $0x12,(%eax) <== NOT EXECUTED 15703f: 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; } 157044: 89 f0 mov %esi,%eax <== NOT EXECUTED 157046: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 157049: 5b pop %ebx <== NOT EXECUTED 15704a: 5e pop %esi <== NOT EXECUTED 15704b: 5f pop %edi <== NOT EXECUTED 15704c: c9 leave <== NOT EXECUTED 15704d: c3 ret <== NOT EXECUTED 15704e: 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 ) 157050: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 157054: 74 19 je 15706f <_rename_r+0x25b> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 157056: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 157059: 85 c0 test %eax,%eax <== NOT EXECUTED 15705b: 74 12 je 15706f <_rename_r+0x25b> <== NOT EXECUTED 15705d: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 157060: 85 c0 test %eax,%eax <== NOT EXECUTED 157062: 74 0b je 15706f <_rename_r+0x25b> <== NOT EXECUTED 157064: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157067: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 15706a: ff d0 call *%eax <== NOT EXECUTED 15706c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 15706f: e8 48 a0 fe ff call 1410bc <__errno> <== NOT EXECUTED 157074: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 157076: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 15707b: e9 18 ff ff ff jmp 156f98 <_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 ); 157080: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 157083: 85 c0 test %eax,%eax <== NOT EXECUTED 157085: 74 10 je 157097 <_rename_r+0x283> <== NOT EXECUTED 157087: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 15708a: 85 c0 test %eax,%eax <== NOT EXECUTED 15708c: 74 09 je 157097 <_rename_r+0x283> <== NOT EXECUTED 15708e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157091: 53 push %ebx <== NOT EXECUTED 157092: ff d0 call *%eax <== NOT EXECUTED 157094: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_old_parentloc ) 157097: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 15709b: 74 19 je 1570b6 <_rename_r+0x2a2> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 15709d: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 1570a0: 85 c0 test %eax,%eax <== NOT EXECUTED 1570a2: 74 12 je 1570b6 <_rename_r+0x2a2> <== NOT EXECUTED 1570a4: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1570a7: 85 c0 test %eax,%eax <== NOT EXECUTED 1570a9: 74 0b je 1570b6 <_rename_r+0x2a2> <== NOT EXECUTED 1570ab: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1570ae: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 1570b1: ff d0 call *%eax <== NOT EXECUTED 1570b3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 1570b6: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 1570b9: 85 c0 test %eax,%eax <== NOT EXECUTED 1570bb: 74 13 je 1570d0 <_rename_r+0x2bc> <== NOT EXECUTED 1570bd: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1570c0: 85 c0 test %eax,%eax <== NOT EXECUTED 1570c2: 74 0c je 1570d0 <_rename_r+0x2bc> <== NOT EXECUTED 1570c4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1570c7: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 1570ca: 52 push %edx <== NOT EXECUTED 1570cb: ff d0 call *%eax <== NOT EXECUTED 1570cd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 1570d0: e8 e7 9f fe ff call 1410bc <__errno> <== NOT EXECUTED 1570d5: 89 30 mov %esi,(%eax) <== NOT EXECUTED 1570d7: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 1570dc: e9 b7 fe ff ff jmp 156f98 <_rename_r+0x184> <== NOT EXECUTED 1570e1: 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 ) 1570e4: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 1570e8: 74 19 je 157103 <_rename_r+0x2ef> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 1570ea: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 1570ed: 85 c0 test %eax,%eax <== NOT EXECUTED 1570ef: 74 12 je 157103 <_rename_r+0x2ef> <== NOT EXECUTED 1570f1: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1570f4: 85 c0 test %eax,%eax <== NOT EXECUTED 1570f6: 74 0b je 157103 <_rename_r+0x2ef> <== NOT EXECUTED 1570f8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1570fb: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 1570fe: ff d0 call *%eax <== NOT EXECUTED 157100: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 157103: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 157106: 85 c0 test %eax,%eax <== NOT EXECUTED 157108: 74 13 je 15711d <_rename_r+0x309> <== NOT EXECUTED 15710a: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 15710d: 85 c0 test %eax,%eax <== NOT EXECUTED 15710f: 74 0c je 15711d <_rename_r+0x309> <== NOT EXECUTED 157111: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157114: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED 157117: 51 push %ecx <== NOT EXECUTED 157118: ff d0 call *%eax <== NOT EXECUTED 15711a: 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 ); 15711d: e8 9a 9f fe ff call 1410bc <__errno> <== NOT EXECUTED 157122: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 157128: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 15712d: e9 66 fe ff ff jmp 156f98 <_rename_r+0x184> <== NOT EXECUTED 157132: 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, 157134: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157137: 6a 00 push $0x0 <== NOT EXECUTED 157139: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED 15713c: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED 15713f: 50 push %eax <== NOT EXECUTED 157140: 6a 02 push $0x2 <== NOT EXECUTED 157142: 53 push %ebx <== NOT EXECUTED 157143: 52 push %edx <== NOT EXECUTED 157144: 89 55 9c mov %edx,-0x64(%ebp) <== NOT EXECUTED 157147: e8 f4 5c fb ff call 10ce40 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 15714c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 15714f: 85 c0 test %eax,%eax <== NOT EXECUTED 157151: 8b 55 9c mov -0x64(%ebp),%edx <== NOT EXECUTED 157154: 0f 85 1c ff ff ff jne 157076 <_rename_r+0x262> <== NOT EXECUTED 15715a: c6 45 a3 01 movb $0x1,-0x5d(%ebp) <== NOT EXECUTED 15715e: e9 04 fd ff ff jmp 156e67 <_rename_r+0x53> <== NOT EXECUTED 157163: 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 ); 157164: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 157167: 85 c0 test %eax,%eax <== NOT EXECUTED 157169: 74 09 je 157174 <_rename_r+0x360> <== NOT EXECUTED 15716b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 15716e: 53 push %ebx <== NOT EXECUTED 15716f: ff d0 call *%eax <== NOT EXECUTED 157171: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_old_parentloc ) 157174: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 157178: 74 19 je 157193 <_rename_r+0x37f> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 15717a: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 15717d: 85 c0 test %eax,%eax <== NOT EXECUTED 15717f: 74 12 je 157193 <_rename_r+0x37f> <== NOT EXECUTED 157181: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 157184: 85 c0 test %eax,%eax <== NOT EXECUTED 157186: 74 0b je 157193 <_rename_r+0x37f> <== NOT EXECUTED 157188: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 15718b: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 15718e: ff d0 call *%eax <== NOT EXECUTED 157190: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 157193: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 157196: 85 c0 test %eax,%eax <== NOT EXECUTED 157198: 74 83 je 15711d <_rename_r+0x309> <== NOT EXECUTED 15719a: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 15719d: 85 c0 test %eax,%eax <== NOT EXECUTED 15719f: 0f 84 78 ff ff ff je 15711d <_rename_r+0x309> <== NOT EXECUTED 1571a5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1571a8: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 1571ab: 52 push %edx <== NOT EXECUTED 1571ac: ff d0 call *%eax <== NOT EXECUTED 1571ae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1571b1: e9 67 ff ff ff jmp 15711d <_rename_r+0x309> <== NOT EXECUTED 0010e4b0 <_stat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { 10e4b0: 55 push %ebp <== NOT EXECUTED 10e4b1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10e4b3: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10e4b6: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED return _STAT_NAME( path, buf ); 10e4b9: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 10e4bc: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 10e4bf: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 10e4c2: c9 leave <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 10e4c3: e9 18 ff ff ff jmp 10e3e0 <== NOT EXECUTED 0011230c <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { 11230c: 55 push %ebp <== NOT EXECUTED 11230d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 11230f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED return unlink( path ); 112312: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 112315: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 112318: c9 leave <== NOT EXECUTED int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 112319: e9 ae fd ff ff jmp 1120cc <== NOT EXECUTED 0011d8f8 <_write_r>: struct _reent *ptr __attribute__((unused)), int fd, const void *buf, size_t nbytes ) { 11d8f8: 55 push %ebp 11d8f9: 89 e5 mov %esp,%ebp 11d8fb: 83 ec 08 sub $0x8,%esp 11d8fe: 8b 45 0c mov 0xc(%ebp),%eax 11d901: 8b 55 10 mov 0x10(%ebp),%edx return write( fd, buf, nbytes ); 11d904: 8b 4d 14 mov 0x14(%ebp),%ecx 11d907: 89 4d 10 mov %ecx,0x10(%ebp) 11d90a: 89 55 0c mov %edx,0xc(%ebp) 11d90d: 89 45 08 mov %eax,0x8(%ebp) } 11d910: c9 leave int fd, const void *buf, size_t nbytes ) { return write( fd, buf, nbytes ); 11d911: e9 1a 01 00 00 jmp 11da30 <== ALWAYS TAKEN 0012ad14 : int access( const char *path, int amode ) { 12ad14: 55 push %ebp 12ad15: 89 e5 mov %esp,%ebp 12ad17: 53 push %ebx 12ad18: 83 ec 5c sub $0x5c,%esp 12ad1b: 8b 5d 0c mov 0xc(%ebp),%ebx struct stat statbuf; if ( stat(path, &statbuf) ) 12ad1e: 8d 45 b4 lea -0x4c(%ebp),%eax 12ad21: 50 push %eax 12ad22: ff 75 08 pushl 0x8(%ebp) 12ad25: e8 b6 36 fe ff call 10e3e0 12ad2a: 83 c4 10 add $0x10,%esp 12ad2d: 85 c0 test %eax,%eax 12ad2f: 75 1f jne 12ad50 return -1; if ( amode & R_OK ) { 12ad31: f6 c3 04 test $0x4,%bl 12ad34: 75 12 jne 12ad48 if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { 12ad36: f6 c3 02 test $0x2,%bl 12ad39: 75 29 jne 12ad64 if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { 12ad3b: 83 e3 01 and $0x1,%ebx 12ad3e: 75 1c jne 12ad5c if ( !( statbuf.st_mode & S_IEXEC ) ) 12ad40: 31 c0 xor %eax,%eax return -1; } return 0; } 12ad42: 8b 5d fc mov -0x4(%ebp),%ebx 12ad45: c9 leave 12ad46: c3 ret 12ad47: 90 nop <== NOT EXECUTED if ( stat(path, &statbuf) ) return -1; if ( amode & R_OK ) { if (!( statbuf.st_mode & S_IREAD )) 12ad48: f6 45 c1 01 testb $0x1,-0x3f(%ebp) 12ad4c: 75 e8 jne 12ad36 12ad4e: 66 90 xchg %ax,%ax if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) ) 12ad50: b8 ff ff ff ff mov $0xffffffff,%eax return -1; } return 0; } 12ad55: 8b 5d fc mov -0x4(%ebp),%ebx 12ad58: c9 leave 12ad59: c3 ret 12ad5a: 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 ) ) 12ad5c: f6 45 c0 40 testb $0x40,-0x40(%ebp) 12ad60: 75 de jne 12ad40 12ad62: eb ec jmp 12ad50 <== ALWAYS TAKEN if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { if ( !( statbuf.st_mode & S_IWRITE ) ) 12ad64: 80 7d c0 00 cmpb $0x0,-0x40(%ebp) 12ad68: 78 d1 js 12ad3b 12ad6a: eb e4 jmp 12ad50 <== ALWAYS TAKEN 0010f714 : ) { register char *cptr; size_t length; MSBUMP(calloc_calls, 1); 10f714: 55 push %ebp 10f715: 89 e5 mov %esp,%ebp 10f717: 57 push %edi 10f718: 53 push %ebx 10f719: 8b 5d 0c mov 0xc(%ebp),%ebx 10f71c: ff 05 d4 51 12 00 incl 0x1251d4 length = nelem * elsize; 10f722: 0f af 5d 08 imul 0x8(%ebp),%ebx cptr = malloc( length ); 10f726: 83 ec 0c sub $0xc,%esp 10f729: 53 push %ebx 10f72a: e8 fd 8a ff ff call 10822c <== ALWAYS TAKEN 10f72f: 89 c2 mov %eax,%edx if ( cptr ) 10f731: 83 c4 10 add $0x10,%esp 10f734: 85 c0 test %eax,%eax 10f736: 74 08 je 10f740 <== ALWAYS TAKEN memset( cptr, '\0', length ); 10f738: 31 c0 xor %eax,%eax 10f73a: 89 d7 mov %edx,%edi 10f73c: 89 d9 mov %ebx,%ecx 10f73e: f3 aa rep stos %al,%es:(%edi) MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 10f740: ff 0d c4 51 12 00 decl 0x1251c4 return cptr; } 10f746: 89 d0 mov %edx,%eax 10f748: 8d 65 f8 lea -0x8(%ebp),%esp 10f74b: 5b pop %ebx 10f74c: 5f pop %edi 10f74d: c9 leave 10f74e: c3 ret 0012ae34 : #include int chdir( const char *pathname ) { 12ae34: 55 push %ebp 12ae35: 89 e5 mov %esp,%ebp 12ae37: 57 push %edi 12ae38: 56 push %esi 12ae39: 83 ec 2c sub $0x2c,%esp 12ae3c: 8b 55 08 mov 0x8(%ebp),%edx /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 12ae3f: 31 c0 xor %eax,%eax 12ae41: b9 ff ff ff ff mov $0xffffffff,%ecx 12ae46: 89 d7 mov %edx,%edi 12ae48: f2 ae repnz scas %es:(%edi),%al 12ae4a: f7 d1 not %ecx 12ae4c: 49 dec %ecx /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 12ae4d: 6a 01 push $0x1 12ae4f: 8d 75 e4 lea -0x1c(%ebp),%esi 12ae52: 56 push %esi 12ae53: 6a 01 push $0x1 12ae55: 51 push %ecx 12ae56: 52 push %edx 12ae57: e8 e4 1f fe ff call 10ce40 <== ALWAYS TAKEN pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 12ae5c: 83 c4 20 add $0x20,%esp 12ae5f: 85 c0 test %eax,%eax 12ae61: 75 6d jne 12aed0 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 12ae63: 8b 55 f0 mov -0x10(%ebp),%edx 12ae66: 8b 42 10 mov 0x10(%edx),%eax 12ae69: 85 c0 test %eax,%eax 12ae6b: 74 47 je 12aeb4 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 12ae6d: 83 ec 0c sub $0xc,%esp 12ae70: 56 push %esi 12ae71: ff d0 call *%eax 12ae73: 83 c4 10 add $0x10,%esp 12ae76: 48 dec %eax 12ae77: 75 63 jne 12aedc rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); 12ae79: 8b 3d a4 7c 16 00 mov 0x167ca4,%edi 12ae7f: 8b 47 10 mov 0x10(%edi),%eax 12ae82: 85 c0 test %eax,%eax 12ae84: 74 19 je 12ae9f <== ALWAYS TAKEN 12ae86: 8b 40 1c mov 0x1c(%eax),%eax 12ae89: 85 c0 test %eax,%eax 12ae8b: 74 12 je 12ae9f <== ALWAYS TAKEN 12ae8d: 83 ec 0c sub $0xc,%esp 12ae90: 83 c7 04 add $0x4,%edi 12ae93: 57 push %edi 12ae94: ff d0 call *%eax 12ae96: 8b 3d a4 7c 16 00 mov 0x167ca4,%edi 12ae9c: 83 c4 10 add $0x10,%esp rtems_filesystem_current = loc; 12ae9f: 83 c7 04 add $0x4,%edi 12aea2: b9 05 00 00 00 mov $0x5,%ecx 12aea7: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12aea9: 31 c0 xor %eax,%eax return 0; } 12aeab: 8d 65 f8 lea -0x8(%ebp),%esp 12aeae: 5e pop %esi 12aeaf: 5f pop %edi 12aeb0: c9 leave 12aeb1: c3 ret 12aeb2: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 12aeb4: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12aeb7: 85 c0 test %eax,%eax <== NOT EXECUTED 12aeb9: 74 09 je 12aec4 <== NOT EXECUTED 12aebb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12aebe: 56 push %esi <== NOT EXECUTED 12aebf: ff d0 call *%eax <== NOT EXECUTED 12aec1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12aec4: e8 f3 61 01 00 call 1410bc <__errno> <== NOT EXECUTED 12aec9: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12aecf: 90 nop <== NOT EXECUTED 12aed0: b8 ff ff ff ff mov $0xffffffff,%eax rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 12aed5: 8d 65 f8 lea -0x8(%ebp),%esp 12aed8: 5e pop %esi 12aed9: 5f pop %edi 12aeda: c9 leave 12aedb: c3 ret 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 ); 12aedc: 8b 45 f0 mov -0x10(%ebp),%eax 12aedf: 85 c0 test %eax,%eax 12aee1: 74 10 je 12aef3 <== ALWAYS TAKEN 12aee3: 8b 40 1c mov 0x1c(%eax),%eax 12aee6: 85 c0 test %eax,%eax 12aee8: 74 09 je 12aef3 <== ALWAYS TAKEN 12aeea: 83 ec 0c sub $0xc,%esp 12aeed: 56 push %esi 12aeee: ff d0 call *%eax 12aef0: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( ENOTDIR ); 12aef3: e8 c4 61 01 00 call 1410bc <__errno> 12aef8: c7 00 14 00 00 00 movl $0x14,(%eax) 12aefe: b8 ff ff ff ff mov $0xffffffff,%eax 12af03: eb a6 jmp 12aeab <== ALWAYS TAKEN 0010cb84 : int chmod( const char *path, mode_t mode ) { 10cb84: 55 push %ebp 10cb85: 89 e5 mov %esp,%ebp 10cb87: 57 push %edi 10cb88: 56 push %esi 10cb89: 53 push %ebx 10cb8a: 83 ec 38 sub $0x38,%esp 10cb8d: 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 ); 10cb90: 31 c0 xor %eax,%eax 10cb92: b9 ff ff ff ff mov $0xffffffff,%ecx 10cb97: 89 d7 mov %edx,%edi 10cb99: f2 ae repnz scas %es:(%edi),%al 10cb9b: f7 d1 not %ecx 10cb9d: 49 dec %ecx 10cb9e: 6a 01 push $0x1 10cba0: 8d 5d d4 lea -0x2c(%ebp),%ebx 10cba3: 53 push %ebx 10cba4: 6a 00 push $0x0 10cba6: 51 push %ecx 10cba7: 52 push %edx 10cba8: e8 93 02 00 00 call 10ce40 if ( status != 0 ) 10cbad: 83 c4 20 add $0x20,%esp 10cbb0: 85 c0 test %eax,%eax 10cbb2: 75 60 jne 10cc14 return -1; if ( !loc.handlers ){ 10cbb4: 8b 45 dc mov -0x24(%ebp),%eax 10cbb7: 85 c0 test %eax,%eax 10cbb9: 74 36 je 10cbf1 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ 10cbbb: 8b 40 1c mov 0x1c(%eax),%eax 10cbbe: 85 c0 test %eax,%eax 10cbc0: 74 62 je 10cc24 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 10cbc2: 83 ec 08 sub $0x8,%esp 10cbc5: ff 75 0c pushl 0xc(%ebp) 10cbc8: 53 push %ebx 10cbc9: ff d0 call *%eax 10cbcb: 89 c6 mov %eax,%esi rtems_filesystem_freenode( &loc ); 10cbcd: 8b 45 e0 mov -0x20(%ebp),%eax 10cbd0: 83 c4 10 add $0x10,%esp 10cbd3: 85 c0 test %eax,%eax 10cbd5: 74 10 je 10cbe7 <== ALWAYS TAKEN 10cbd7: 8b 40 1c mov 0x1c(%eax),%eax 10cbda: 85 c0 test %eax,%eax 10cbdc: 74 09 je 10cbe7 <== ALWAYS TAKEN 10cbde: 83 ec 0c sub $0xc,%esp 10cbe1: 53 push %ebx 10cbe2: ff d0 call *%eax 10cbe4: 83 c4 10 add $0x10,%esp return result; } 10cbe7: 89 f0 mov %esi,%eax 10cbe9: 8d 65 f4 lea -0xc(%ebp),%esp 10cbec: 5b pop %ebx 10cbed: 5e pop %esi 10cbee: 5f pop %edi 10cbef: c9 leave 10cbf0: 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 ); 10cbf1: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10cbf4: 85 c0 test %eax,%eax <== NOT EXECUTED 10cbf6: 74 10 je 10cc08 <== NOT EXECUTED 10cbf8: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10cbfb: 85 c0 test %eax,%eax <== NOT EXECUTED 10cbfd: 74 09 je 10cc08 <== NOT EXECUTED 10cbff: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10cc02: 53 push %ebx <== NOT EXECUTED 10cc03: ff d0 call *%eax <== NOT EXECUTED 10cc05: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 10cc08: e8 af 44 03 00 call 1410bc <__errno> <== NOT EXECUTED 10cc0d: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 10cc13: 90 nop <== NOT EXECUTED 10cc14: be ff ff ff ff mov $0xffffffff,%esi result = (*loc.handlers->fchmod_h)( &loc, mode ); rtems_filesystem_freenode( &loc ); return result; } 10cc19: 89 f0 mov %esi,%eax 10cc1b: 8d 65 f4 lea -0xc(%ebp),%esp 10cc1e: 5b pop %ebx 10cc1f: 5e pop %esi 10cc20: 5f pop %edi 10cc21: c9 leave 10cc22: c3 ret 10cc23: 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 ); 10cc24: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10cc27: 85 c0 test %eax,%eax <== NOT EXECUTED 10cc29: 74 10 je 10cc3b <== NOT EXECUTED 10cc2b: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10cc2e: 85 c0 test %eax,%eax <== NOT EXECUTED 10cc30: 74 09 je 10cc3b <== NOT EXECUTED 10cc32: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10cc35: 53 push %ebx <== NOT EXECUTED 10cc36: ff d0 call *%eax <== NOT EXECUTED 10cc38: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 10cc3b: e8 7c 44 03 00 call 1410bc <__errno> <== NOT EXECUTED 10cc40: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10cc46: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 10cc4b: eb 9a jmp 10cbe7 <== NOT EXECUTED 0012af08 : int chown( const char *path, uid_t owner, gid_t group ) { 12af08: 55 push %ebp 12af09: 89 e5 mov %esp,%ebp 12af0b: 57 push %edi 12af0c: 56 push %esi 12af0d: 53 push %ebx 12af0e: 83 ec 38 sub $0x38,%esp 12af11: 8b 55 08 mov 0x8(%ebp),%edx 12af14: 8b 75 0c mov 0xc(%ebp),%esi 12af17: 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 ) ) 12af1a: 31 c0 xor %eax,%eax 12af1c: b9 ff ff ff ff mov $0xffffffff,%ecx 12af21: 89 d7 mov %edx,%edi 12af23: f2 ae repnz scas %es:(%edi),%al 12af25: f7 d1 not %ecx 12af27: 49 dec %ecx 12af28: 6a 01 push $0x1 12af2a: 8d 7d d4 lea -0x2c(%ebp),%edi 12af2d: 57 push %edi 12af2e: 6a 00 push $0x0 12af30: 51 push %ecx 12af31: 52 push %edx 12af32: e8 09 1f fe ff call 10ce40 12af37: 83 c4 20 add $0x20,%esp 12af3a: 85 c0 test %eax,%eax 12af3c: 75 5a jne 12af98 return -1; if ( !loc.ops->chown_h ) { 12af3e: 8b 55 e0 mov -0x20(%ebp),%edx 12af41: 8b 42 18 mov 0x18(%edx),%eax 12af44: 85 c0 test %eax,%eax 12af46: 74 34 je 12af7c <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 12af48: 52 push %edx 12af49: 0f b7 db movzwl %bx,%ebx 12af4c: 53 push %ebx 12af4d: 0f b7 f6 movzwl %si,%esi 12af50: 56 push %esi 12af51: 57 push %edi 12af52: ff d0 call *%eax 12af54: 89 c3 mov %eax,%ebx rtems_filesystem_freenode( &loc ); 12af56: 8b 45 e0 mov -0x20(%ebp),%eax 12af59: 83 c4 10 add $0x10,%esp 12af5c: 85 c0 test %eax,%eax 12af5e: 74 10 je 12af70 <== ALWAYS TAKEN 12af60: 8b 40 1c mov 0x1c(%eax),%eax 12af63: 85 c0 test %eax,%eax 12af65: 74 09 je 12af70 <== ALWAYS TAKEN 12af67: 83 ec 0c sub $0xc,%esp 12af6a: 57 push %edi 12af6b: ff d0 call *%eax 12af6d: 83 c4 10 add $0x10,%esp return result; } 12af70: 89 d8 mov %ebx,%eax 12af72: 8d 65 f4 lea -0xc(%ebp),%esp 12af75: 5b pop %ebx 12af76: 5e pop %esi 12af77: 5f pop %edi 12af78: c9 leave 12af79: c3 ret 12af7a: 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 ); 12af7c: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12af7f: 85 c0 test %eax,%eax <== NOT EXECUTED 12af81: 74 09 je 12af8c <== NOT EXECUTED 12af83: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12af86: 57 push %edi <== NOT EXECUTED 12af87: ff d0 call *%eax <== NOT EXECUTED 12af89: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12af8c: e8 2b 61 01 00 call 1410bc <__errno> <== NOT EXECUTED 12af91: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12af97: 90 nop <== NOT EXECUTED 12af98: bb ff ff ff ff mov $0xffffffff,%ebx result = (*loc.ops->chown_h)( &loc, owner, group ); rtems_filesystem_freenode( &loc ); return result; } 12af9d: 89 d8 mov %ebx,%eax 12af9f: 8d 65 f4 lea -0xc(%ebp),%esp 12afa2: 5b pop %ebx 12afa3: 5e pop %esi 12afa4: 5f pop %edi 12afa5: c9 leave 12afa6: c3 ret 0012afa8 : #include int chroot( const char *pathname ) { 12afa8: 55 push %ebp 12afa9: 89 e5 mov %esp,%ebp 12afab: 57 push %edi 12afac: 56 push %esi 12afad: 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) { 12afb0: 81 3d a4 7c 16 00 60 cmpl $0x16d760,0x167ca4 12afb7: d7 16 00 12afba: 74 6c je 12b028 <== 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); 12afbc: 83 ec 0c sub $0xc,%esp 12afbf: ff 75 08 pushl 0x8(%ebp) 12afc2: e8 6d fe ff ff call 12ae34 if (result) { 12afc7: 83 c4 10 add $0x10,%esp 12afca: 85 c0 test %eax,%eax 12afcc: 75 7e jne 12b04c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 12afce: 83 ec 0c sub $0xc,%esp 12afd1: 6a 00 push $0x0 12afd3: 8d 75 e4 lea -0x1c(%ebp),%esi 12afd6: 56 push %esi 12afd7: 6a 00 push $0x0 12afd9: 6a 01 push $0x1 12afdb: 68 fc a5 15 00 push $0x15a5fc 12afe0: e8 5b 1e fe ff call 10ce40 <== ALWAYS TAKEN 12afe5: 83 c4 20 add $0x20,%esp 12afe8: 85 c0 test %eax,%eax 12afea: 75 60 jne 12b04c <== 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); 12afec: 8b 3d a4 7c 16 00 mov 0x167ca4,%edi 12aff2: 8b 47 24 mov 0x24(%edi),%eax 12aff5: 85 c0 test %eax,%eax 12aff7: 74 19 je 12b012 <== ALWAYS TAKEN 12aff9: 8b 40 1c mov 0x1c(%eax),%eax 12affc: 85 c0 test %eax,%eax 12affe: 74 12 je 12b012 <== ALWAYS TAKEN 12b000: 83 ec 0c sub $0xc,%esp 12b003: 83 c7 18 add $0x18,%edi 12b006: 57 push %edi 12b007: ff d0 call *%eax 12b009: 8b 3d a4 7c 16 00 mov 0x167ca4,%edi 12b00f: 83 c4 10 add $0x10,%esp rtems_filesystem_root = loc; 12b012: 83 c7 18 add $0x18,%edi 12b015: b9 05 00 00 00 mov $0x5,%ecx 12b01a: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12b01c: 31 c0 xor %eax,%eax return 0; } 12b01e: 8d 65 f8 lea -0x8(%ebp),%esp 12b021: 5e pop %esi 12b022: 5f pop %edi 12b023: c9 leave 12b024: c3 ret 12b025: 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*/ 12b028: e8 2b 15 00 00 call 12c558 if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 12b02d: 81 3d a4 7c 16 00 60 cmpl $0x16d760,0x167ca4 12b034: d7 16 00 12b037: 75 83 jne 12afbc <== NEVER TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b039: e8 7e 60 01 00 call 1410bc <__errno> <== NOT EXECUTED 12b03e: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12b044: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 12b047: eb d5 jmp 12b01e <== NOT EXECUTED 12b049: 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 ); 12b04c: e8 6b 60 01 00 call 1410bc <__errno> <== NOT EXECUTED 12b051: 89 c6 mov %eax,%esi <== NOT EXECUTED 12b053: e8 64 60 01 00 call 1410bc <__errno> <== NOT EXECUTED 12b058: 8b 00 mov (%eax),%eax <== NOT EXECUTED 12b05a: 89 06 mov %eax,(%esi) <== NOT EXECUTED 12b05c: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 12b061: eb bb jmp 12b01e <== NOT EXECUTED 0010f750 : #include int close( int fd ) { 10f750: 55 push %ebp 10f751: 89 e5 mov %esp,%ebp 10f753: 56 push %esi 10f754: 53 push %ebx 10f755: 8b 5d 08 mov 0x8(%ebp),%ebx rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 10f758: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx 10f75e: 73 58 jae 10f7b8 iop = rtems_libio_iop(fd); 10f760: c1 e3 06 shl $0x6,%ebx 10f763: 03 1d a0 51 12 00 add 0x1251a0,%ebx rtems_libio_check_is_open(iop); 10f769: f6 43 15 01 testb $0x1,0x15(%ebx) 10f76d: 74 49 je 10f7b8 rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 10f76f: 8b 43 3c mov 0x3c(%ebx),%eax 10f772: 8b 40 04 mov 0x4(%eax),%eax 10f775: 85 c0 test %eax,%eax 10f777: 74 3b je 10f7b4 <== ALWAYS TAKEN rc = (*iop->handlers->close_h)( iop ); 10f779: 83 ec 0c sub $0xc,%esp 10f77c: 53 push %ebx 10f77d: ff d0 call *%eax 10f77f: 89 c6 mov %eax,%esi 10f781: 83 c4 10 add $0x10,%esp rtems_filesystem_freenode( &iop->pathinfo ); 10f784: 8b 43 24 mov 0x24(%ebx),%eax 10f787: 85 c0 test %eax,%eax 10f789: 74 13 je 10f79e <== ALWAYS TAKEN 10f78b: 8b 40 1c mov 0x1c(%eax),%eax 10f78e: 85 c0 test %eax,%eax 10f790: 74 0c je 10f79e 10f792: 83 ec 0c sub $0xc,%esp 10f795: 8d 53 18 lea 0x18(%ebx),%edx 10f798: 52 push %edx 10f799: ff d0 call *%eax 10f79b: 83 c4 10 add $0x10,%esp rtems_libio_free( iop ); 10f79e: 83 ec 0c sub $0xc,%esp 10f7a1: 53 push %ebx 10f7a2: e8 89 02 00 00 call 10fa30 <== ALWAYS TAKEN return rc; 10f7a7: 83 c4 10 add $0x10,%esp } 10f7aa: 89 f0 mov %esi,%eax 10f7ac: 8d 65 f8 lea -0x8(%ebp),%esp 10f7af: 5b pop %ebx 10f7b0: 5e pop %esi 10f7b1: c9 leave 10f7b2: c3 ret 10f7b3: 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 ) 10f7b4: 31 f6 xor %esi,%esi <== NOT EXECUTED 10f7b6: eb cc jmp 10f784 <== 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); 10f7b8: e8 e3 2b 00 00 call 1123a0 <__errno> 10f7bd: c7 00 09 00 00 00 movl $0x9,(%eax) 10f7c3: be ff ff ff ff mov $0xffffffff,%esi 10f7c8: eb e0 jmp 10f7aa <== ALWAYS TAKEN 0010ed30 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 10ed30: 55 push %ebp 10ed31: 89 e5 mov %esp,%ebp 10ed33: 83 ec 1c sub $0x1c,%esp 10ed36: 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; 10ed39: 8b 42 38 mov 0x38(%edx),%eax args.iop = iop; 10ed3c: 89 55 ec mov %edx,-0x14(%ebp) args.flags = 0; 10ed3f: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) args.mode = 0; 10ed46: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) status = rtems_io_close( 10ed4d: 8d 55 ec lea -0x14(%ebp),%edx 10ed50: 52 push %edx 10ed51: ff 70 0c pushl 0xc(%eax) 10ed54: ff 70 08 pushl 0x8(%eax) 10ed57: e8 10 09 00 00 call 10f66c <== ALWAYS TAKEN np->major, np->minor, (void *) &args ); if ( status ) { 10ed5c: 83 c4 10 add $0x10,%esp 10ed5f: 85 c0 test %eax,%eax 10ed61: 75 05 jne 10ed68 <== ALWAYS TAKEN return rtems_deviceio_errno(status); } return 0; } 10ed63: c9 leave 10ed64: c3 ret 10ed65: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status); 10ed68: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10ed6b: 50 push %eax <== NOT EXECUTED 10ed6c: e8 c7 00 00 00 call 10ee38 <== NOT EXECUTED 10ed71: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } return 0; } 10ed74: c9 leave <== NOT EXECUTED 10ed75: c3 ret <== NOT EXECUTED 0010ed88 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 10ed88: 55 push %ebp 10ed89: 89 e5 mov %esp,%ebp 10ed8b: 57 push %edi 10ed8c: 56 push %esi 10ed8d: 53 push %ebx 10ed8e: 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; 10ed91: 8b 45 14 mov 0x14(%ebp),%eax 10ed94: 8b 00 mov (%eax),%eax 10ed96: 89 45 e4 mov %eax,-0x1c(%ebp) if (!device_name_table) 10ed99: 85 c0 test %eax,%eax 10ed9b: 0f 84 87 00 00 00 je 10ee28 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 10eda1: 8b 15 50 f1 11 00 mov 0x11f150,%edx 10eda7: 89 55 e0 mov %edx,-0x20(%ebp) 10edaa: 85 d2 test %edx,%edx 10edac: 74 38 je 10ede6 <== 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 ); 10edae: 31 c0 xor %eax,%eax 10edb0: 31 db xor %ebx,%ebx for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) 10edb2: 8d 04 80 lea (%eax,%eax,4),%eax 10edb5: 8b 55 e4 mov -0x1c(%ebp),%edx 10edb8: 8d 3c 82 lea (%edx,%eax,4),%edi 10edbb: 8b 37 mov (%edi),%esi 10edbd: 85 f6 test %esi,%esi 10edbf: 74 1d je 10edde continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 10edc1: 50 push %eax 10edc2: ff 75 0c pushl 0xc(%ebp) 10edc5: 56 push %esi 10edc6: ff 75 08 pushl 0x8(%ebp) 10edc9: e8 5e 22 00 00 call 11102c 10edce: 83 c4 10 add $0x10,%esp 10edd1: 85 c0 test %eax,%eax 10edd3: 75 09 jne 10edde <== ALWAYS TAKEN continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 10edd5: 8b 45 0c mov 0xc(%ebp),%eax 10edd8: 80 3c 06 00 cmpb $0x0,(%esi,%eax,1) 10eddc: 74 22 je 10ee00 <== 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++) { 10edde: 43 inc %ebx 10eddf: 89 d8 mov %ebx,%eax 10ede1: 39 5d e0 cmp %ebx,-0x20(%ebp) 10ede4: 77 cc ja 10edb2 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); 10ede6: e8 b9 16 00 00 call 1104a4 <__errno> 10edeb: c7 00 02 00 00 00 movl $0x2,(%eax) 10edf1: b8 ff ff ff ff mov $0xffffffff,%eax } 10edf6: 8d 65 f4 lea -0xc(%ebp),%esp 10edf9: 5b pop %ebx 10edfa: 5e pop %esi 10edfb: 5f pop %edi 10edfc: c9 leave 10edfd: c3 ret 10edfe: 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]; 10ee00: 8b 55 14 mov 0x14(%ebp),%edx 10ee03: 89 3a mov %edi,(%edx) pathloc->handlers = &devFS_file_handlers; 10ee05: c7 42 08 60 10 12 00 movl $0x121060,0x8(%edx) pathloc->ops = &devFS_ops; 10ee0c: c7 42 0c 00 10 12 00 movl $0x121000,0xc(%edx) pathloc->mt_entry = rtems_filesystem_root.mt_entry; 10ee13: a1 ac 10 12 00 mov 0x1210ac,%eax 10ee18: 8b 40 28 mov 0x28(%eax),%eax 10ee1b: 89 42 10 mov %eax,0x10(%edx) 10ee1e: 31 c0 xor %eax,%eax return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); } 10ee20: 8d 65 f4 lea -0xc(%ebp),%esp 10ee23: 5b pop %ebx 10ee24: 5e pop %esi 10ee25: 5f pop %edi 10ee26: c9 leave 10ee27: 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 ); 10ee28: e8 77 16 00 00 call 1104a4 <__errno> <== NOT EXECUTED 10ee2d: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 10ee33: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 10ee36: eb e8 jmp 10ee20 <== NOT EXECUTED 00107aec : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 107aec: 55 push %ebp 107aed: 89 e5 mov %esp,%ebp 107aef: 57 push %edi 107af0: 53 push %ebx 107af1: 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( 107af4: 83 ec 0c sub $0xc,%esp 107af7: a1 50 f1 11 00 mov 0x11f150,%eax 107afc: 8d 04 80 lea (%eax,%eax,4),%eax 107aff: c1 e0 02 shl $0x2,%eax 107b02: 50 push %eax 107b03: e8 98 6d 00 00 call 10e8a0 <_Workspace_Allocate> 107b08: 89 c2 mov %eax,%edx sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) 107b0a: 83 c4 10 add $0x10,%esp 107b0d: 85 c0 test %eax,%eax 107b0f: 74 2b je 107b3c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOMEM ); memset( 107b11: a1 50 f1 11 00 mov 0x11f150,%eax 107b16: 8d 0c 80 lea (%eax,%eax,4),%ecx 107b19: c1 e1 02 shl $0x2,%ecx 107b1c: 31 c0 xor %eax,%eax 107b1e: 89 d7 mov %edx,%edi 107b20: 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; 107b22: c7 43 24 60 10 12 00 movl $0x121060,0x24(%ebx) temp_mt_entry->mt_fs_root.ops = &devFS_ops; 107b29: c7 43 28 00 10 12 00 movl $0x121000,0x28(%ebx) /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; 107b30: 89 53 1c mov %edx,0x1c(%ebx) 107b33: 31 c0 xor %eax,%eax return 0; } 107b35: 8d 65 f8 lea -0x8(%ebp),%esp 107b38: 5b pop %ebx 107b39: 5f pop %edi 107b3a: c9 leave 107b3b: 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 ); 107b3c: e8 63 89 00 00 call 1104a4 <__errno> <== NOT EXECUTED 107b41: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 107b47: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 107b4c: eb e7 jmp 107b35 <== NOT EXECUTED 00107ca8 : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 107ca8: 55 push %ebp 107ca9: 89 e5 mov %esp,%ebp 107cab: 83 ec 1c sub $0x1c,%esp 107cae: 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; 107cb1: 8b 42 38 mov 0x38(%edx),%eax args.iop = iop; 107cb4: 89 55 e8 mov %edx,-0x18(%ebp) args.command = command; 107cb7: 8b 55 0c mov 0xc(%ebp),%edx 107cba: 89 55 ec mov %edx,-0x14(%ebp) args.buffer = buffer; 107cbd: 8b 55 10 mov 0x10(%ebp),%edx 107cc0: 89 55 f0 mov %edx,-0x10(%ebp) status = rtems_io_control( 107cc3: 8d 55 e8 lea -0x18(%ebp),%edx 107cc6: 52 push %edx 107cc7: ff 70 0c pushl 0xc(%eax) 107cca: ff 70 08 pushl 0x8(%eax) 107ccd: e8 7e 41 00 00 call 10be50 np->major, np->minor, (void *) &args ); if ( status ) 107cd2: 83 c4 10 add $0x10,%esp 107cd5: 85 c0 test %eax,%eax 107cd7: 75 07 jne 107ce0 <== ALWAYS TAKEN return rtems_deviceio_errno(status); return args.ioctl_return; 107cd9: 8b 45 f4 mov -0xc(%ebp),%eax } 107cdc: c9 leave 107cdd: c3 ret 107cde: 66 90 xchg %ax,%ax <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 107ce0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107ce3: 50 push %eax <== NOT EXECUTED 107ce4: e8 4f 71 00 00 call 10ee38 <== NOT EXECUTED 107ce9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return args.ioctl_return; } 107cec: c9 leave <== NOT EXECUTED 107ced: c3 ret <== NOT EXECUTED 00107b50 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 107b50: 55 push %ebp 107b51: 89 e5 mov %esp,%ebp 107b53: 57 push %edi 107b54: 56 push %esi 107b55: 53 push %ebx 107b56: 83 ec 1c sub $0x1c,%esp 107b59: 8b 7d 08 mov 0x8(%ebp),%edi 107b5c: 8b 4d 10 mov 0x10(%ebp),%ecx 107b5f: 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') && 107b62: 80 3f 64 cmpb $0x64,(%edi) 107b65: 0f 84 dd 00 00 00 je 107c48 <== 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)) 107b6b: 8b 45 0c mov 0xc(%ebp),%eax 107b6e: 25 00 f0 00 00 and $0xf000,%eax 107b73: 3d 00 60 00 00 cmp $0x6000,%eax 107b78: 74 0b je 107b85 <== ALWAYS TAKEN 107b7a: 3d 00 20 00 00 cmp $0x2000,%eax 107b7f: 0f 85 e3 00 00 00 jne 107c68 <== ALWAYS TAKEN ) { union __rtems_dev_t temp; temp.device = device; return temp.__overlay.major; 107b85: 89 4d d8 mov %ecx,-0x28(%ebp) dev_t device ) { union __rtems_dev_t temp; temp.device = device; 107b88: 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; 107b8b: 8b 45 18 mov 0x18(%ebp),%eax 107b8e: 8b 30 mov (%eax),%esi if (!device_name_table) 107b90: 85 f6 test %esi,%esi 107b92: 0f 84 f2 00 00 00 je 107c8a <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 107b98: 8b 15 50 f1 11 00 mov 0x11f150,%edx 107b9e: 85 d2 test %edx,%edx 107ba0: 0f 84 d4 00 00 00 je 107c7a <== 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 ); 107ba6: 31 c0 xor %eax,%eax 107ba8: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) 107baf: 31 db xor %ebx,%ebx 107bb1: 89 7d e4 mov %edi,-0x1c(%ebp) 107bb4: 89 d7 mov %edx,%edi 107bb6: eb 1a jmp 107bd2 <== ALWAYS TAKEN 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) 107bb8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 107bbb: 50 push %eax <== NOT EXECUTED 107bbc: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 107bbf: e8 3c 93 00 00 call 110f00 <== NOT EXECUTED 107bc4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 107bc7: 85 c0 test %eax,%eax <== NOT EXECUTED 107bc9: 74 65 je 107c30 <== 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++){ 107bcb: 43 inc %ebx <== NOT EXECUTED 107bcc: 89 d8 mov %ebx,%eax <== NOT EXECUTED 107bce: 39 fb cmp %edi,%ebx <== NOT EXECUTED 107bd0: 73 16 jae 107be8 <== NOT EXECUTED if (device_name_table[i].device_name == NULL) 107bd2: 8d 04 80 lea (%eax,%eax,4),%eax 107bd5: 8b 04 86 mov (%esi,%eax,4),%eax 107bd8: 85 c0 test %eax,%eax 107bda: 75 dc jne 107bb8 <== ALWAYS TAKEN slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); 107bdc: 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++){ 107bdf: 43 inc %ebx 107be0: 89 d8 mov %ebx,%eax 107be2: 39 fb cmp %edi,%ebx 107be4: 72 ec jb 107bd2 107be6: 66 90 xchg %ax,%ax 107be8: 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) 107beb: 83 7d e0 ff cmpl $0xffffffff,-0x20(%ebp) 107bef: 0f 84 85 00 00 00 je 107c7a <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); 107bf5: 9c pushf 107bf6: fa cli 107bf7: 5b pop %ebx device_name_table[slot].device_name = (char *)path; 107bf8: 8b 55 e0 mov -0x20(%ebp),%edx 107bfb: 8d 04 92 lea (%edx,%edx,4),%eax 107bfe: 8d 14 86 lea (%esi,%eax,4),%edx 107c01: 89 3a mov %edi,(%edx) device_name_table[slot].device_name_length = strlen(path); 107c03: 31 c0 xor %eax,%eax 107c05: b9 ff ff ff ff mov $0xffffffff,%ecx 107c0a: f2 ae repnz scas %es:(%edi),%al 107c0c: f7 d1 not %ecx 107c0e: 49 dec %ecx 107c0f: 89 4a 04 mov %ecx,0x4(%edx) device_name_table[slot].major = major; 107c12: 8b 45 d8 mov -0x28(%ebp),%eax 107c15: 89 42 08 mov %eax,0x8(%edx) device_name_table[slot].minor = minor; 107c18: 8b 45 dc mov -0x24(%ebp),%eax 107c1b: 89 42 0c mov %eax,0xc(%edx) device_name_table[slot].mode = mode; 107c1e: 8b 45 0c mov 0xc(%ebp),%eax 107c21: 89 42 10 mov %eax,0x10(%edx) _ISR_Enable(level); 107c24: 53 push %ebx 107c25: 9d popf 107c26: 31 c0 xor %eax,%eax return 0; } 107c28: 8d 65 f4 lea -0xc(%ebp),%esp 107c2b: 5b pop %ebx 107c2c: 5e pop %esi 107c2d: 5f pop %edi 107c2e: c9 leave 107c2f: 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 ); 107c30: e8 6f 88 00 00 call 1104a4 <__errno> <== NOT EXECUTED 107c35: c7 00 11 00 00 00 movl $0x11,(%eax) <== NOT EXECUTED 107c3b: 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; } 107c40: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 107c43: 5b pop %ebx <== NOT EXECUTED 107c44: 5e pop %esi <== NOT EXECUTED 107c45: 5f pop %edi <== NOT EXECUTED 107c46: c9 leave <== NOT EXECUTED 107c47: 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') && 107c48: 80 7f 01 65 cmpb $0x65,0x1(%edi) 107c4c: 0f 85 19 ff ff ff jne 107b6b <== ALWAYS TAKEN (path[2] == 'v') && (path[3] == '\0')) 107c52: 80 7f 02 76 cmpb $0x76,0x2(%edi) 107c56: 0f 85 0f ff ff ff jne 107b6b <== ALWAYS TAKEN 107c5c: 80 7f 03 00 cmpb $0x0,0x3(%edi) 107c60: 0f 85 05 ff ff ff jne 107b6b 107c66: eb be jmp 107c26 <== ALWAYS TAKEN 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 ); 107c68: e8 37 88 00 00 call 1104a4 <__errno> <== NOT EXECUTED 107c6d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 107c73: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 107c78: eb ae jmp 107c28 <== 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 ); 107c7a: e8 25 88 00 00 call 1104a4 <__errno> <== NOT EXECUTED 107c7f: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 107c85: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 107c88: eb 9e jmp 107c28 <== 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 ); 107c8a: e8 15 88 00 00 call 1104a4 <__errno> <== NOT EXECUTED 107c8f: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 107c95: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 107c98: eb 8e jmp 107c28 <== NOT EXECUTED 00107cf0 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 107cf0: 55 push %ebp 107cf1: 89 e5 mov %esp,%ebp 107cf3: 83 ec 1c sub $0x1c,%esp 107cf6: 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; 107cf9: 8b 50 38 mov 0x38(%eax),%edx args.iop = iop; 107cfc: 89 45 ec mov %eax,-0x14(%ebp) args.flags = iop->flags; 107cff: 8b 40 14 mov 0x14(%eax),%eax 107d02: 89 45 f0 mov %eax,-0x10(%ebp) args.mode = mode; 107d05: 8b 45 14 mov 0x14(%ebp),%eax 107d08: 89 45 f4 mov %eax,-0xc(%ebp) status = rtems_io_open( 107d0b: 8d 45 ec lea -0x14(%ebp),%eax 107d0e: 50 push %eax 107d0f: ff 72 0c pushl 0xc(%edx) 107d12: ff 72 08 pushl 0x8(%edx) 107d15: e8 4a 42 00 00 call 10bf64 np->major, np->minor, (void *) &args ); if ( status ) 107d1a: 83 c4 10 add $0x10,%esp 107d1d: 85 c0 test %eax,%eax 107d1f: 75 03 jne 107d24 <== ALWAYS TAKEN return rtems_deviceio_errno(status); return 0; } 107d21: c9 leave 107d22: c3 ret 107d23: 90 nop <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 107d24: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107d27: 50 push %eax <== NOT EXECUTED 107d28: e8 0b 71 00 00 call 10ee38 <== NOT EXECUTED 107d2d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return 0; } 107d30: c9 leave <== NOT EXECUTED 107d31: c3 ret <== NOT EXECUTED 00107d34 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 107d34: 55 push %ebp <== NOT EXECUTED 107d35: 89 e5 mov %esp,%ebp <== NOT EXECUTED 107d37: 53 push %ebx <== NOT EXECUTED 107d38: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED 107d3b: 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; 107d3e: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED args.iop = iop; 107d41: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED args.offset = iop->offset; 107d44: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED 107d47: 8b 58 10 mov 0x10(%eax),%ebx <== NOT EXECUTED 107d4a: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 107d4d: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED args.buffer = buffer; 107d50: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 107d53: 89 4d e8 mov %ecx,-0x18(%ebp) <== NOT EXECUTED args.count = count; 107d56: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED 107d59: 89 4d ec mov %ecx,-0x14(%ebp) <== NOT EXECUTED args.flags = iop->flags; 107d5c: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED 107d5f: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED args.bytes_moved = 0; 107d62: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED status = rtems_io_read( 107d69: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED 107d6c: 50 push %eax <== NOT EXECUTED 107d6d: ff 72 0c pushl 0xc(%edx) <== NOT EXECUTED 107d70: ff 72 08 pushl 0x8(%edx) <== NOT EXECUTED 107d73: e8 38 42 00 00 call 10bfb0 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) 107d78: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 107d7b: 85 c0 test %eax,%eax <== NOT EXECUTED 107d7d: 75 09 jne 107d88 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 107d7f: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED } 107d82: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 107d85: c9 leave <== NOT EXECUTED 107d86: c3 ret <== NOT EXECUTED 107d87: 90 nop <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 107d88: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107d8b: 50 push %eax <== NOT EXECUTED 107d8c: e8 a7 70 00 00 call 10ee38 <== NOT EXECUTED 107d91: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 107d94: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 107d97: c9 leave <== NOT EXECUTED 107d98: c3 ret <== NOT EXECUTED 00107d9c : int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 107d9c: 55 push %ebp 107d9d: 89 e5 mov %esp,%ebp 107d9f: 53 push %ebx 107da0: 83 ec 04 sub $0x4,%esp 107da3: 8b 55 0c mov 0xc(%ebp),%edx rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; 107da6: 8b 45 08 mov 0x8(%ebp),%eax 107da9: 8b 00 mov (%eax),%eax if (!the_dev) 107dab: 85 c0 test %eax,%eax 107dad: 74 18 je 107dc7 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); 107daf: 8b 48 0c mov 0xc(%eax),%ecx rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 107db2: 8b 58 08 mov 0x8(%eax),%ebx 107db5: 89 5a 18 mov %ebx,0x18(%edx) 107db8: 89 4a 1c mov %ecx,0x1c(%edx) buf->st_mode = the_dev->mode; 107dbb: 8b 40 10 mov 0x10(%eax),%eax 107dbe: 89 42 0c mov %eax,0xc(%edx) 107dc1: 31 c0 xor %eax,%eax return 0; } 107dc3: 5a pop %edx 107dc4: 5b pop %ebx 107dc5: c9 leave 107dc6: 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 ); 107dc7: e8 d8 86 00 00 call 1104a4 <__errno> <== NOT EXECUTED 107dcc: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 107dd2: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 107dd7: eb ea jmp 107dc3 <== NOT EXECUTED 00107ddc : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 107ddc: 55 push %ebp 107ddd: 89 e5 mov %esp,%ebp 107ddf: 53 push %ebx 107de0: 83 ec 28 sub $0x28,%esp 107de3: 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; 107de6: 8b 50 38 mov 0x38(%eax),%edx args.iop = iop; 107de9: 89 45 dc mov %eax,-0x24(%ebp) args.offset = iop->offset; 107dec: 8b 48 0c mov 0xc(%eax),%ecx 107def: 8b 58 10 mov 0x10(%eax),%ebx 107df2: 89 4d e0 mov %ecx,-0x20(%ebp) 107df5: 89 5d e4 mov %ebx,-0x1c(%ebp) args.buffer = (void *) buffer; 107df8: 8b 4d 0c mov 0xc(%ebp),%ecx 107dfb: 89 4d e8 mov %ecx,-0x18(%ebp) args.count = count; 107dfe: 8b 4d 10 mov 0x10(%ebp),%ecx 107e01: 89 4d ec mov %ecx,-0x14(%ebp) args.flags = iop->flags; 107e04: 8b 40 14 mov 0x14(%eax),%eax 107e07: 89 45 f0 mov %eax,-0x10(%ebp) args.bytes_moved = 0; 107e0a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) status = rtems_io_write( 107e11: 8d 45 dc lea -0x24(%ebp),%eax 107e14: 50 push %eax 107e15: ff 72 0c pushl 0xc(%edx) 107e18: ff 72 08 pushl 0x8(%edx) 107e1b: e8 dc 41 00 00 call 10bffc np->major, np->minor, (void *) &args ); if ( status ) 107e20: 83 c4 10 add $0x10,%esp 107e23: 85 c0 test %eax,%eax 107e25: 75 09 jne 107e30 <== ALWAYS TAKEN return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 107e27: 8b 45 f4 mov -0xc(%ebp),%eax } 107e2a: 8b 5d fc mov -0x4(%ebp),%ebx 107e2d: c9 leave 107e2e: c3 ret 107e2f: 90 nop <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 107e30: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107e33: 50 push %eax <== NOT EXECUTED 107e34: e8 ff 6f 00 00 call 10ee38 <== NOT EXECUTED 107e39: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 107e3c: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 107e3f: c9 leave <== NOT EXECUTED 107e40: c3 ret <== NOT EXECUTED 00110b28 : */ int device_close( rtems_libio_t *iop ) { 110b28: 55 push %ebp 110b29: 89 e5 mov %esp,%ebp 110b2b: 83 ec 1c sub $0x1c,%esp 110b2e: 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; 110b31: 8b 42 38 mov 0x38(%edx),%eax args.iop = iop; 110b34: 89 55 ec mov %edx,-0x14(%ebp) args.flags = 0; 110b37: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) args.mode = 0; 110b3e: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) status = rtems_io_close( 110b45: 8d 55 ec lea -0x14(%ebp),%edx 110b48: 52 push %edx 110b49: ff 70 54 pushl 0x54(%eax) 110b4c: ff 70 50 pushl 0x50(%eax) 110b4f: e8 e0 0f 00 00 call 111b34 <== ALWAYS TAKEN the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 110b54: 83 c4 10 add $0x10,%esp 110b57: 85 c0 test %eax,%eax 110b59: 75 05 jne 110b60 <== ALWAYS TAKEN return rtems_deviceio_errno(status); } return 0; } 110b5b: c9 leave 110b5c: c3 ret 110b5d: 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); 110b60: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110b63: 50 push %eax <== NOT EXECUTED 110b64: e8 f7 14 00 00 call 112060 <== NOT EXECUTED 110b69: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } return 0; } 110b6c: c9 leave <== NOT EXECUTED 110b6d: c3 ret <== NOT EXECUTED 00110a10 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 110a10: 55 push %ebp 110a11: 89 e5 mov %esp,%ebp 110a13: 83 ec 1c sub $0x1c,%esp 110a16: 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; 110a19: 89 45 e8 mov %eax,-0x18(%ebp) args.command = command; 110a1c: 8b 55 0c mov 0xc(%ebp),%edx 110a1f: 89 55 ec mov %edx,-0x14(%ebp) args.buffer = buffer; 110a22: 8b 55 10 mov 0x10(%ebp),%edx 110a25: 89 55 f0 mov %edx,-0x10(%ebp) the_jnode = iop->file_info; 110a28: 8b 40 38 mov 0x38(%eax),%eax status = rtems_io_control( 110a2b: 8d 55 e8 lea -0x18(%ebp),%edx 110a2e: 52 push %edx 110a2f: ff 70 54 pushl 0x54(%eax) 110a32: ff 70 50 pushl 0x50(%eax) 110a35: e8 46 11 00 00 call 111b80 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 110a3a: 83 c4 10 add $0x10,%esp 110a3d: 85 c0 test %eax,%eax 110a3f: 75 07 jne 110a48 <== ALWAYS TAKEN return rtems_deviceio_errno(status); return args.ioctl_return; 110a41: 8b 45 f4 mov -0xc(%ebp),%eax } 110a44: c9 leave 110a45: c3 ret 110a46: 66 90 xchg %ax,%ax <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 110a48: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110a4b: 50 push %eax <== NOT EXECUTED 110a4c: e8 0f 16 00 00 call 112060 <== NOT EXECUTED 110a51: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return args.ioctl_return; } 110a54: c9 leave <== NOT EXECUTED 110a55: c3 ret <== NOT EXECUTED 00110b70 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 110b70: 55 push %ebp 110b71: 89 e5 mov %esp,%ebp 110b73: 83 ec 1c sub $0x1c,%esp 110b76: 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; 110b79: 8b 50 38 mov 0x38(%eax),%edx args.iop = iop; 110b7c: 89 45 ec mov %eax,-0x14(%ebp) args.flags = iop->flags; 110b7f: 8b 40 14 mov 0x14(%eax),%eax 110b82: 89 45 f0 mov %eax,-0x10(%ebp) args.mode = mode; 110b85: 8b 45 14 mov 0x14(%ebp),%eax 110b88: 89 45 f4 mov %eax,-0xc(%ebp) status = rtems_io_open( 110b8b: 8d 45 ec lea -0x14(%ebp),%eax 110b8e: 50 push %eax 110b8f: ff 72 54 pushl 0x54(%edx) 110b92: ff 72 50 pushl 0x50(%edx) 110b95: e8 32 10 00 00 call 111bcc <== ALWAYS TAKEN the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 110b9a: 83 c4 10 add $0x10,%esp 110b9d: 85 c0 test %eax,%eax 110b9f: 75 03 jne 110ba4 <== ALWAYS TAKEN return rtems_deviceio_errno(status); return 0; } 110ba1: c9 leave 110ba2: c3 ret 110ba3: 90 nop <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 110ba4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110ba7: 50 push %eax <== NOT EXECUTED 110ba8: e8 b3 14 00 00 call 112060 <== NOT EXECUTED 110bad: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return 0; } 110bb0: c9 leave <== NOT EXECUTED 110bb1: c3 ret <== NOT EXECUTED 00110ac0 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 110ac0: 55 push %ebp <== NOT EXECUTED 110ac1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 110ac3: 53 push %ebx <== NOT EXECUTED 110ac4: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED 110ac7: 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; 110aca: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED args.iop = iop; 110acd: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED args.offset = iop->offset; 110ad0: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED 110ad3: 8b 58 10 mov 0x10(%eax),%ebx <== NOT EXECUTED 110ad6: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 110ad9: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED args.buffer = buffer; 110adc: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 110adf: 89 4d e8 mov %ecx,-0x18(%ebp) <== NOT EXECUTED args.count = count; 110ae2: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED 110ae5: 89 4d ec mov %ecx,-0x14(%ebp) <== NOT EXECUTED args.flags = iop->flags; 110ae8: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED 110aeb: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED args.bytes_moved = 0; 110aee: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED status = rtems_io_read( 110af5: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED 110af8: 50 push %eax <== NOT EXECUTED 110af9: ff 72 54 pushl 0x54(%edx) <== NOT EXECUTED 110afc: ff 72 50 pushl 0x50(%edx) <== NOT EXECUTED 110aff: e8 14 11 00 00 call 111c18 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 110b04: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110b07: 85 c0 test %eax,%eax <== NOT EXECUTED 110b09: 75 09 jne 110b14 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 110b0b: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED } 110b0e: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 110b11: c9 leave <== NOT EXECUTED 110b12: c3 ret <== NOT EXECUTED 110b13: 90 nop <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 110b14: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110b17: 50 push %eax <== NOT EXECUTED 110b18: e8 43 15 00 00 call 112060 <== NOT EXECUTED 110b1d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 110b20: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 110b23: c9 leave <== NOT EXECUTED 110b24: c3 ret <== NOT EXECUTED 00110a58 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 110a58: 55 push %ebp 110a59: 89 e5 mov %esp,%ebp 110a5b: 53 push %ebx 110a5c: 83 ec 28 sub $0x28,%esp 110a5f: 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; 110a62: 8b 50 38 mov 0x38(%eax),%edx args.iop = iop; 110a65: 89 45 dc mov %eax,-0x24(%ebp) args.offset = iop->offset; 110a68: 8b 48 0c mov 0xc(%eax),%ecx 110a6b: 8b 58 10 mov 0x10(%eax),%ebx 110a6e: 89 4d e0 mov %ecx,-0x20(%ebp) 110a71: 89 5d e4 mov %ebx,-0x1c(%ebp) args.buffer = (void *) buffer; 110a74: 8b 4d 0c mov 0xc(%ebp),%ecx 110a77: 89 4d e8 mov %ecx,-0x18(%ebp) args.count = count; 110a7a: 8b 4d 10 mov 0x10(%ebp),%ecx 110a7d: 89 4d ec mov %ecx,-0x14(%ebp) args.flags = iop->flags; 110a80: 8b 40 14 mov 0x14(%eax),%eax 110a83: 89 45 f0 mov %eax,-0x10(%ebp) args.bytes_moved = 0; 110a86: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) status = rtems_io_write( 110a8d: 8d 45 dc lea -0x24(%ebp),%eax 110a90: 50 push %eax 110a91: ff 72 54 pushl 0x54(%edx) 110a94: ff 72 50 pushl 0x50(%edx) 110a97: e8 c8 11 00 00 call 111c64 <== ALWAYS TAKEN the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 110a9c: 83 c4 10 add $0x10,%esp 110a9f: 85 c0 test %eax,%eax 110aa1: 75 09 jne 110aac <== ALWAYS TAKEN return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 110aa3: 8b 45 f4 mov -0xc(%ebp),%eax } 110aa6: 8b 5d fc mov -0x4(%ebp),%ebx 110aa9: c9 leave 110aaa: c3 ret 110aab: 90 nop <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 110aac: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110aaf: 50 push %eax <== NOT EXECUTED 110ab0: e8 ab 15 00 00 call 112060 <== NOT EXECUTED 110ab5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 110ab8: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 110abb: c9 leave <== NOT EXECUTED 110abc: c3 ret <== NOT EXECUTED 00109b8c : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 109b8c: 55 push %ebp 109b8d: 89 e5 mov %esp,%ebp 109b8f: 53 push %ebx 109b90: 83 ec 04 sub $0x4,%esp 109b93: 89 c3 mov %eax,%ebx rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 109b95: 8b 90 b4 00 00 00 mov 0xb4(%eax),%edx 109b9b: 85 d2 test %edx,%edx 109b9d: 74 4d je 109bec rtems_interrupt_disable (level); 109b9f: 9c pushf 109ba0: fa cli 109ba1: 58 pop %eax while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 109ba2: 8b 8b 84 00 00 00 mov 0x84(%ebx),%ecx 109ba8: 8b 93 80 00 00 00 mov 0x80(%ebx),%edx 109bae: 39 d1 cmp %edx,%ecx 109bb0: 74 38 je 109bea 109bb2: 66 90 xchg %ax,%ax tty->rawOutBufState = rob_wait; 109bb4: c7 83 94 00 00 00 02 movl $0x2,0x94(%ebx) 109bbb: 00 00 00 rtems_interrupt_enable (level); 109bbe: 50 push %eax 109bbf: 9d popf sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 109bc0: 50 push %eax 109bc1: 6a 00 push $0x0 109bc3: 6a 00 push $0x0 109bc5: ff b3 8c 00 00 00 pushl 0x8c(%ebx) 109bcb: e8 90 19 00 00 call 10b560 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 109bd0: 83 c4 10 add $0x10,%esp 109bd3: 85 c0 test %eax,%eax 109bd5: 75 1a jne 109bf1 <== ALWAYS TAKEN rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 109bd7: 9c pushf 109bd8: fa cli 109bd9: 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) { 109bda: 8b 8b 84 00 00 00 mov 0x84(%ebx),%ecx 109be0: 8b 93 80 00 00 00 mov 0x80(%ebx),%edx 109be6: 39 d1 cmp %edx,%ecx 109be8: 75 ca jne 109bb4 <== ALWAYS TAKEN RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); 109bea: 50 push %eax 109beb: 9d popf } } 109bec: 8b 5d fc mov -0x4(%ebp),%ebx 109bef: c9 leave 109bf0: 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); 109bf1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109bf4: 50 push %eax <== NOT EXECUTED 109bf5: e8 9e 1f 00 00 call 10bb98 <== NOT EXECUTED 00108d0c : #include int dup( int fildes ) { 108d0c: 55 push %ebp 108d0d: 89 e5 mov %esp,%ebp 108d0f: 83 ec 0c sub $0xc,%esp return fcntl( fildes, F_DUPFD, 0 ); 108d12: 6a 00 push $0x0 108d14: 6a 00 push $0x0 108d16: ff 75 08 pushl 0x8(%ebp) 108d19: e8 16 02 00 00 call 108f34 <== ALWAYS TAKEN } 108d1e: c9 leave 108d1f: c3 ret 00108cc0 : int dup2( int fildes, int fildes2 ) { 108cc0: 55 push %ebp 108cc1: 89 e5 mov %esp,%ebp 108cc3: 57 push %edi 108cc4: 56 push %esi 108cc5: 53 push %ebx 108cc6: 83 ec 64 sub $0x64,%esp 108cc9: 8b 75 08 mov 0x8(%ebp),%esi 108ccc: 8b 7d 0c mov 0xc(%ebp),%edi /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 108ccf: 8d 5d a4 lea -0x5c(%ebp),%ebx 108cd2: 53 push %ebx 108cd3: 56 push %esi 108cd4: e8 bf 05 00 00 call 109298 if ( status == -1 ) 108cd9: 83 c4 10 add $0x10,%esp 108cdc: 40 inc %eax 108cdd: 75 0d jne 108cec <== NEVER TAKEN /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 108cdf: b8 ff ff ff ff mov $0xffffffff,%eax } 108ce4: 8d 65 f4 lea -0xc(%ebp),%esp 108ce7: 5b pop %ebx 108ce8: 5e pop %esi 108ce9: 5f pop %edi 108cea: c9 leave 108ceb: c3 ret /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 108cec: 83 ec 08 sub $0x8,%esp 108cef: 53 push %ebx 108cf0: 57 push %edi 108cf1: e8 a2 05 00 00 call 109298 if ( status == -1 ) 108cf6: 83 c4 10 add $0x10,%esp 108cf9: 40 inc %eax 108cfa: 74 e3 je 108cdf <== NEVER TAKEN /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 108cfc: 50 push %eax <== NOT EXECUTED 108cfd: 57 push %edi <== NOT EXECUTED 108cfe: 6a 00 push $0x0 <== NOT EXECUTED 108d00: 56 push %esi <== NOT EXECUTED 108d01: e8 2e 02 00 00 call 108f34 <== NOT EXECUTED 108d06: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108d09: eb d9 jmp 108ce4 <== NOT EXECUTED 00109700 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 109700: 55 push %ebp <== NOT EXECUTED 109701: 89 e5 mov %esp,%ebp <== NOT EXECUTED 109703: 53 push %ebx <== NOT EXECUTED 109704: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 109707: f6 42 3d 02 testb $0x2,0x3d(%edx) <== NOT EXECUTED 10970b: 74 1b je 109728 <== NOT EXECUTED 10970d: 0f b6 c8 movzbl %al,%ecx <== NOT EXECUTED 109710: 8b 1d 88 30 12 00 mov 0x123088,%ebx <== NOT EXECUTED 109716: f6 44 0b 01 20 testb $0x20,0x1(%ebx,%ecx,1) <== NOT EXECUTED 10971b: 74 0b je 109728 <== NOT EXECUTED 10971d: 3c 09 cmp $0x9,%al <== NOT EXECUTED 10971f: 74 07 je 109728 <== NOT EXECUTED 109721: 3c 0a cmp $0xa,%al <== NOT EXECUTED 109723: 75 13 jne 109738 <== NOT EXECUTED 109725: 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); 109728: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 10972b: e8 94 fe ff ff call 1095c4 <== NOT EXECUTED } } 109730: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 109733: c9 leave <== NOT EXECUTED 109734: c3 ret <== NOT EXECUTED 109735: 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] = '^'; 109738: c6 45 f6 5e movb $0x5e,-0xa(%ebp) <== NOT EXECUTED echobuf[1] = c ^ 0x40; 10973c: 83 f0 40 xor $0x40,%eax <== NOT EXECUTED 10973f: 88 45 f7 mov %al,-0x9(%ebp) <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 109742: 50 push %eax <== NOT EXECUTED 109743: 52 push %edx <== NOT EXECUTED 109744: 6a 02 push $0x2 <== NOT EXECUTED 109746: 8d 45 f6 lea -0xa(%ebp),%eax <== NOT EXECUTED 109749: 50 push %eax <== NOT EXECUTED 10974a: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 10974d: e8 3e fd ff ff call 109490 <== NOT EXECUTED tty->column += 2; 109752: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 109755: 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')) { 109759: 83 c4 10 add $0x10,%esp <== NOT EXECUTED tty->column += 2; } else { oproc (c, tty); } } 10975c: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10975f: c9 leave <== NOT EXECUTED 109760: c3 ret <== NOT EXECUTED 0012b550 : fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { 12b550: 55 push %ebp <== NOT EXECUTED 12b551: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b553: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED if (group_fp != NULL) 12b556: a1 c4 d2 16 00 mov 0x16d2c4,%eax <== NOT EXECUTED 12b55b: 85 c0 test %eax,%eax <== NOT EXECUTED 12b55d: 74 0c je 12b56b <== NOT EXECUTED fclose(group_fp); 12b55f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b562: 50 push %eax <== NOT EXECUTED 12b563: e8 a0 5c 01 00 call 141208 <== NOT EXECUTED 12b568: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 12b56b: c9 leave <== NOT EXECUTED 12b56c: c3 ret <== NOT EXECUTED 0012b570 : fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { 12b570: 55 push %ebp <== NOT EXECUTED 12b571: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b573: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED if (passwd_fp != NULL) 12b576: a1 c4 d1 16 00 mov 0x16d1c4,%eax <== NOT EXECUTED 12b57b: 85 c0 test %eax,%eax <== NOT EXECUTED 12b57d: 74 0c je 12b58b <== NOT EXECUTED fclose(passwd_fp); 12b57f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b582: 50 push %eax <== NOT EXECUTED 12b583: e8 80 5c 01 00 call 141208 <== NOT EXECUTED 12b588: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 12b58b: c9 leave <== NOT EXECUTED 12b58c: c3 ret <== NOT EXECUTED 00109764 : * 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) { 109764: 55 push %ebp <== NOT EXECUTED 109765: 89 e5 mov %esp,%ebp <== NOT EXECUTED 109767: 57 push %edi <== NOT EXECUTED 109768: 56 push %esi <== NOT EXECUTED 109769: 53 push %ebx <== NOT EXECUTED 10976a: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED 10976d: 89 c3 mov %eax,%ebx <== NOT EXECUTED 10976f: 89 d7 mov %edx,%edi <== NOT EXECUTED if (tty->ccount == 0) 109771: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED 109774: 85 c9 test %ecx,%ecx <== NOT EXECUTED 109776: 0f 84 84 00 00 00 je 109800 <== NOT EXECUTED return; if (lineFlag) { 10977c: 85 d2 test %edx,%edx <== NOT EXECUTED 10977e: 0f 85 84 00 00 00 jne 109808 <== NOT EXECUTED 109784: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED 109787: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED 10978a: eb 1d jmp 1097a9 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 10978c: 80 e6 02 and $0x2,%dh <== NOT EXECUTED 10978f: 0f 85 37 01 00 00 jne 1098cc <== NOT EXECUTED 109795: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 109798: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10979b: 85 d2 test %edx,%edx <== NOT EXECUTED 10979d: 74 61 je 109800 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 10979f: 8b 4b 20 mov 0x20(%ebx),%ecx <== NOT EXECUTED 1097a2: 85 c9 test %ecx,%ecx <== NOT EXECUTED 1097a4: 74 5a je 109800 <== NOT EXECUTED 1097a6: 8b 53 3c mov 0x3c(%ebx),%edx <== NOT EXECUTED unsigned char c = tty->cbuf[--tty->ccount]; 1097a9: 8b 7b 1c mov 0x1c(%ebx),%edi <== NOT EXECUTED 1097ac: 49 dec %ecx <== NOT EXECUTED 1097ad: 89 4b 20 mov %ecx,0x20(%ebx) <== NOT EXECUTED 1097b0: 8a 04 0f mov (%edi,%ecx,1),%al <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 1097b3: f6 c2 08 test $0x8,%dl <== NOT EXECUTED 1097b6: 74 e0 je 109798 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 1097b8: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED 1097bb: 85 f6 test %esi,%esi <== NOT EXECUTED 1097bd: 75 09 jne 1097c8 <== NOT EXECUTED 1097bf: f6 c2 10 test $0x10,%dl <== NOT EXECUTED 1097c2: 0f 84 f0 00 00 00 je 1098b8 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { 1097c8: 3c 09 cmp $0x9,%al <== NOT EXECUTED 1097ca: 74 58 je 109824 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 1097cc: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 1097cf: 8d 70 01 lea 0x1(%eax),%esi <== NOT EXECUTED 1097d2: a1 88 30 12 00 mov 0x123088,%eax <== NOT EXECUTED 1097d7: f6 04 30 20 testb $0x20,(%eax,%esi,1) <== NOT EXECUTED 1097db: 75 af jne 10978c <== 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); 1097dd: 51 push %ecx <== NOT EXECUTED 1097de: 53 push %ebx <== NOT EXECUTED 1097df: 6a 03 push $0x3 <== NOT EXECUTED 1097e1: 68 6c f8 11 00 push $0x11f86c <== NOT EXECUTED 1097e6: e8 a5 fc ff ff call 109490 <== NOT EXECUTED if (tty->column) 1097eb: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED 1097ee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1097f1: 85 c0 test %eax,%eax <== NOT EXECUTED 1097f3: 74 a3 je 109798 <== NOT EXECUTED tty->column--; 1097f5: 48 dec %eax <== NOT EXECUTED 1097f6: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED } } } if (!lineFlag) 1097f9: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 1097fc: 85 d2 test %edx,%edx <== NOT EXECUTED 1097fe: 75 9f jne 10979f <== NOT EXECUTED break; } } 109800: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109803: 5b pop %ebx <== NOT EXECUTED 109804: 5e pop %esi <== NOT EXECUTED 109805: 5f pop %edi <== NOT EXECUTED 109806: c9 leave <== NOT EXECUTED 109807: 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)) { 109808: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED 10980b: f6 c2 08 test $0x8,%dl <== NOT EXECUTED 10980e: 0f 84 94 00 00 00 je 1098a8 <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 109814: f6 c2 10 test $0x10,%dl <== NOT EXECUTED 109817: 0f 84 eb 00 00 00 je 109908 <== NOT EXECUTED 10981d: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED 109820: eb 87 jmp 1097a9 <== NOT EXECUTED 109822: 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; 109824: 8b 73 2c mov 0x2c(%ebx),%esi <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 109827: 85 c9 test %ecx,%ecx <== NOT EXECUTED 109829: 74 46 je 109871 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 10982b: a1 88 30 12 00 mov 0x123088,%eax <== NOT EXECUTED 109830: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED 109833: 31 c0 xor %eax,%eax <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 109835: 81 e2 00 02 00 00 and $0x200,%edx <== NOT EXECUTED 10983b: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED 10983e: 89 5d d8 mov %ebx,-0x28(%ebp) <== NOT EXECUTED 109841: 8b 5d dc mov -0x24(%ebp),%ebx <== NOT EXECUTED 109844: eb 10 jmp 109856 <== NOT EXECUTED 109846: 66 90 xchg %ax,%ax <== NOT EXECUTED 109848: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED 10984b: 85 d2 test %edx,%edx <== NOT EXECUTED 10984d: 74 03 je 109852 <== NOT EXECUTED col += 2; 10984f: 83 c6 02 add $0x2,%esi <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 109852: 39 c1 cmp %eax,%ecx <== NOT EXECUTED 109854: 74 18 je 10986e <== NOT EXECUTED c = tty->cbuf[i++]; 109856: 8a 14 07 mov (%edi,%eax,1),%dl <== NOT EXECUTED 109859: 40 inc %eax <== NOT EXECUTED if (c == '\t') { 10985a: 80 fa 09 cmp $0x9,%dl <== NOT EXECUTED 10985d: 74 41 je 1098a0 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 10985f: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED 109862: f6 44 13 01 20 testb $0x20,0x1(%ebx,%edx,1) <== NOT EXECUTED 109867: 75 df jne 109848 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; 109869: 46 inc %esi <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 10986a: 39 c1 cmp %eax,%ecx <== NOT EXECUTED 10986c: 75 e8 jne 109856 <== NOT EXECUTED 10986e: 8b 5d d8 mov -0x28(%ebp),%ebx <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 109871: 3b 73 28 cmp 0x28(%ebx),%esi <== NOT EXECUTED 109874: 0f 8d 1e ff ff ff jge 109798 <== NOT EXECUTED 10987a: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 10987c: 50 push %eax <== NOT EXECUTED 10987d: 53 push %ebx <== NOT EXECUTED 10987e: 6a 01 push $0x1 <== NOT EXECUTED 109880: 68 6e f8 11 00 push $0x11f86e <== NOT EXECUTED 109885: e8 06 fc ff ff call 109490 <== NOT EXECUTED tty->column--; 10988a: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED 10988d: 48 dec %eax <== NOT EXECUTED 10988e: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 109891: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109894: 39 c6 cmp %eax,%esi <== NOT EXECUTED 109896: 7c e4 jl 10987c <== NOT EXECUTED 109898: e9 fb fe ff ff jmp 109798 <== NOT EXECUTED 10989d: 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; 1098a0: 83 ce 07 or $0x7,%esi <== NOT EXECUTED 1098a3: 46 inc %esi <== NOT EXECUTED 1098a4: eb ac jmp 109852 <== NOT EXECUTED 1098a6: 66 90 xchg %ax,%ax <== NOT EXECUTED { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; 1098a8: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) <== NOT EXECUTED } } if (!lineFlag) break; } } 1098af: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1098b2: 5b pop %ebx <== NOT EXECUTED 1098b3: 5e pop %esi <== NOT EXECUTED 1098b4: 5f pop %edi <== NOT EXECUTED 1098b5: c9 leave <== NOT EXECUTED 1098b6: c3 ret <== NOT EXECUTED 1098b7: 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); 1098b8: 0f b6 43 43 movzbl 0x43(%ebx),%eax <== NOT EXECUTED 1098bc: 89 da mov %ebx,%edx <== NOT EXECUTED } } if (!lineFlag) break; } } 1098be: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1098c1: 5b pop %ebx <== NOT EXECUTED 1098c2: 5e pop %esi <== NOT EXECUTED 1098c3: 5f pop %edi <== NOT EXECUTED 1098c4: 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); 1098c5: e9 36 fe ff ff jmp 109700 <== NOT EXECUTED 1098ca: 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); 1098cc: 57 push %edi <== NOT EXECUTED 1098cd: 53 push %ebx <== NOT EXECUTED 1098ce: 6a 03 push $0x3 <== NOT EXECUTED 1098d0: 68 6c f8 11 00 push $0x11f86c <== NOT EXECUTED 1098d5: e8 b6 fb ff ff call 109490 <== NOT EXECUTED if (tty->column) 1098da: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED 1098dd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1098e0: 85 c0 test %eax,%eax <== NOT EXECUTED 1098e2: 74 04 je 1098e8 <== NOT EXECUTED tty->column--; 1098e4: 48 dec %eax <== NOT EXECUTED 1098e5: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 1098e8: a1 88 30 12 00 mov 0x123088,%eax <== NOT EXECUTED 1098ed: f6 04 30 20 testb $0x20,(%eax,%esi,1) <== NOT EXECUTED 1098f1: 0f 84 e6 fe ff ff je 1097dd <== NOT EXECUTED 1098f7: f6 43 3d 02 testb $0x2,0x3d(%ebx) <== NOT EXECUTED 1098fb: 0f 85 dc fe ff ff jne 1097dd <== NOT EXECUTED 109901: e9 92 fe ff ff jmp 109798 <== NOT EXECUTED 109906: 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; 109908: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 10990f: 0f b6 40 44 movzbl 0x44(%eax),%eax <== NOT EXECUTED 109913: 89 da mov %ebx,%edx <== NOT EXECUTED 109915: e8 e6 fd ff ff call 109700 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 10991a: f6 43 3c 20 testb $0x20,0x3c(%ebx) <== NOT EXECUTED 10991e: 0f 84 dc fe ff ff je 109800 <== NOT EXECUTED echo ('\n', tty); 109924: 89 da mov %ebx,%edx <== NOT EXECUTED 109926: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED 10992b: eb 91 jmp 1098be <== NOT EXECUTED 0013bcfc : #include int fchdir( int fd ) { 13bcfc: 55 push %ebp <== NOT EXECUTED 13bcfd: 89 e5 mov %esp,%ebp <== NOT EXECUTED 13bcff: 57 push %edi <== NOT EXECUTED 13bd00: 56 push %esi <== NOT EXECUTED 13bd01: 53 push %ebx <== NOT EXECUTED 13bd02: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED 13bd05: 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 ); 13bd08: 3b 1d 8c 5b 16 00 cmp 0x165b8c,%ebx <== NOT EXECUTED 13bd0e: 0f 83 c8 00 00 00 jae 13bddc <== NOT EXECUTED iop = rtems_libio_iop( fd ); 13bd14: c1 e3 06 shl $0x6,%ebx <== NOT EXECUTED 13bd17: 03 1d d8 d6 16 00 add 0x16d6d8,%ebx <== NOT EXECUTED rtems_libio_check_is_open(iop); 13bd1d: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 13bd20: f6 c4 01 test $0x1,%ah <== NOT EXECUTED 13bd23: 0f 84 b3 00 00 00 je 13bddc <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 13bd29: a8 02 test $0x2,%al <== NOT EXECUTED 13bd2b: 0f 84 db 00 00 00 je 13be0c <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 13bd31: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED 13bd34: 85 c0 test %eax,%eax <== NOT EXECUTED 13bd36: 0f 84 e2 00 00 00 je 13be1e <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 13bd3c: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED 13bd3f: 85 c0 test %eax,%eax <== NOT EXECUTED 13bd41: 0f 84 d7 00 00 00 je 13be1e <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 13bd47: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 13bd4a: 83 c3 18 add $0x18,%ebx <== NOT EXECUTED 13bd4d: 53 push %ebx <== NOT EXECUTED 13bd4e: ff d0 call *%eax <== NOT EXECUTED 13bd50: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 13bd53: 48 dec %eax <== NOT EXECUTED 13bd54: 75 72 jne 13bdc8 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 13bd56: a1 a4 7c 16 00 mov 0x167ca4,%eax <== NOT EXECUTED 13bd5b: 8d 55 c0 lea -0x40(%ebp),%edx <== NOT EXECUTED 13bd5e: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED 13bd61: 8d 70 04 lea 0x4(%eax),%esi <== NOT EXECUTED 13bd64: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 13bd69: 89 d7 mov %edx,%edi <== NOT EXECUTED 13bd6b: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 13bd6d: 8d 78 04 lea 0x4(%eax),%edi <== NOT EXECUTED 13bd70: b1 05 mov $0x5,%cl <== NOT EXECUTED 13bd72: 89 de mov %ebx,%esi <== NOT EXECUTED 13bd74: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 13bd76: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 13bd79: 6a 00 push $0x0 <== NOT EXECUTED 13bd7b: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED 13bd7e: 56 push %esi <== NOT EXECUTED 13bd7f: 6a 00 push $0x0 <== NOT EXECUTED 13bd81: 6a 01 push $0x1 <== NOT EXECUTED 13bd83: 68 fc a5 15 00 push $0x15a5fc <== NOT EXECUTED 13bd88: e8 b3 10 fd ff call 10ce40 <== NOT EXECUTED 13bd8d: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 13bd90: 85 c0 test %eax,%eax <== NOT EXECUTED 13bd92: 75 5c jne 13bdf0 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 13bd94: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 13bd97: 85 c0 test %eax,%eax <== NOT EXECUTED 13bd99: 74 13 je 13bdae <== NOT EXECUTED 13bd9b: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 13bd9e: 85 c0 test %eax,%eax <== NOT EXECUTED 13bda0: 74 0c je 13bdae <== NOT EXECUTED 13bda2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 13bda5: 8d 55 c0 lea -0x40(%ebp),%edx <== NOT EXECUTED 13bda8: 52 push %edx <== NOT EXECUTED 13bda9: ff d0 call *%eax <== NOT EXECUTED 13bdab: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_current = loc; 13bdae: 8b 3d a4 7c 16 00 mov 0x167ca4,%edi <== NOT EXECUTED 13bdb4: 83 c7 04 add $0x4,%edi <== NOT EXECUTED 13bdb7: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 13bdbc: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 13bdbe: 31 c0 xor %eax,%eax <== NOT EXECUTED return 0; } 13bdc0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 13bdc3: 5b pop %ebx <== NOT EXECUTED 13bdc4: 5e pop %esi <== NOT EXECUTED 13bdc5: 5f pop %edi <== NOT EXECUTED 13bdc6: c9 leave <== NOT EXECUTED 13bdc7: 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 ); 13bdc8: e8 ef 52 00 00 call 1410bc <__errno> <== NOT EXECUTED 13bdcd: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED 13bdd3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13bdd8: eb e6 jmp 13bdc0 <== NOT EXECUTED 13bdda: 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); 13bddc: e8 db 52 00 00 call 1410bc <__errno> <== NOT EXECUTED 13bde1: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 13bde7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13bdec: eb d2 jmp 13bdc0 <== NOT EXECUTED 13bdee: 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; 13bdf0: 8b 3d a4 7c 16 00 mov 0x167ca4,%edi <== NOT EXECUTED 13bdf6: 83 c7 04 add $0x4,%edi <== NOT EXECUTED 13bdf9: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 13bdfe: 8b 75 b4 mov -0x4c(%ebp),%esi <== NOT EXECUTED 13be01: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 13be03: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return -1; 13be08: eb b6 jmp 13bdc0 <== NOT EXECUTED 13be0a: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 13be0c: e8 ab 52 00 00 call 1410bc <__errno> <== NOT EXECUTED 13be11: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 13be17: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13be1c: eb a2 jmp 13bdc0 <== 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 ); 13be1e: e8 99 52 00 00 call 1410bc <__errno> <== NOT EXECUTED 13be23: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 13be29: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13be2e: eb 90 jmp 13bdc0 <== NOT EXECUTED 0012b24c : int fchmod( int fd, mode_t mode ) { 12b24c: 55 push %ebp <== NOT EXECUTED 12b24d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b24f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12b252: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 12b255: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 12b258: 3b 05 8c 5b 16 00 cmp 0x165b8c,%eax <== NOT EXECUTED 12b25e: 73 34 jae 12b294 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 12b260: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 12b263: 03 05 d8 d6 16 00 add 0x16d6d8,%eax <== NOT EXECUTED rtems_libio_check_is_open(iop); 12b269: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED 12b26c: f6 c6 01 test $0x1,%dh <== NOT EXECUTED 12b26f: 74 23 je 12b294 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 12b271: 83 e2 04 and $0x4,%edx <== NOT EXECUTED 12b274: 74 32 je 12b2a8 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 12b276: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED 12b279: 8b 52 1c mov 0x1c(%edx),%edx <== NOT EXECUTED 12b27c: 85 d2 test %edx,%edx <== NOT EXECUTED 12b27e: 74 35 je 12b2b5 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 12b280: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED 12b283: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED 12b286: 83 c0 18 add $0x18,%eax <== NOT EXECUTED 12b289: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 12b28c: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED } 12b28f: 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 ); 12b290: ff e0 jmp *%eax <== NOT EXECUTED 12b292: 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); 12b294: e8 23 5e 01 00 call 1410bc <__errno> <== NOT EXECUTED 12b299: 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 ); } 12b29f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 12b2a4: c9 leave <== NOT EXECUTED 12b2a5: c3 ret <== NOT EXECUTED 12b2a6: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 12b2a8: e8 0f 5e 01 00 call 1410bc <__errno> <== NOT EXECUTED 12b2ad: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12b2b3: eb ea jmp 12b29f <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b2b5: e8 02 5e 01 00 call 1410bc <__errno> <== NOT EXECUTED 12b2ba: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12b2c0: eb dd jmp 12b29f <== NOT EXECUTED 0012b2c4 : int fchown( int fd, uid_t owner, gid_t group ) { 12b2c4: 55 push %ebp <== NOT EXECUTED 12b2c5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b2c7: 53 push %ebx <== NOT EXECUTED 12b2c8: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12b2cb: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 12b2ce: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 12b2d1: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 12b2d4: 3b 05 8c 5b 16 00 cmp 0x165b8c,%eax <== NOT EXECUTED 12b2da: 73 38 jae 12b314 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 12b2dc: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 12b2df: 03 05 d8 d6 16 00 add 0x16d6d8,%eax <== NOT EXECUTED rtems_libio_check_is_open(iop); 12b2e5: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED 12b2e8: f6 c6 01 test $0x1,%dh <== NOT EXECUTED 12b2eb: 74 27 je 12b314 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 12b2ed: 83 e2 04 and $0x4,%edx <== NOT EXECUTED 12b2f0: 74 36 je 12b328 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 12b2f2: 8b 50 24 mov 0x24(%eax),%edx <== NOT EXECUTED 12b2f5: 8b 52 18 mov 0x18(%edx),%edx <== NOT EXECUTED 12b2f8: 85 d2 test %edx,%edx <== NOT EXECUTED 12b2fa: 74 39 je 12b335 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 12b2fc: 0f b7 db movzwl %bx,%ebx <== NOT EXECUTED 12b2ff: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED 12b302: 0f b7 c9 movzwl %cx,%ecx <== NOT EXECUTED 12b305: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED 12b308: 83 c0 18 add $0x18,%eax <== NOT EXECUTED 12b30b: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 12b30e: 59 pop %ecx <== NOT EXECUTED 12b30f: 5b pop %ebx <== NOT EXECUTED 12b310: 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 ); 12b311: ff e2 jmp *%edx <== NOT EXECUTED 12b313: 90 nop <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 12b314: e8 a3 5d 01 00 call 1410bc <__errno> <== NOT EXECUTED 12b319: 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 ); } 12b31f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 12b324: 5a pop %edx <== NOT EXECUTED 12b325: 5b pop %ebx <== NOT EXECUTED 12b326: c9 leave <== NOT EXECUTED 12b327: 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 ); 12b328: e8 8f 5d 01 00 call 1410bc <__errno> <== NOT EXECUTED 12b32d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12b333: eb ea jmp 12b31f <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b335: e8 82 5d 01 00 call 1410bc <__errno> <== NOT EXECUTED 12b33a: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12b340: eb dd jmp 12b31f <== NOT EXECUTED 0013be30 : int fcntl( int fd, int cmd, ... ) { 13be30: 55 push %ebp 13be31: 89 e5 mov %esp,%ebp 13be33: 57 push %edi 13be34: 56 push %esi 13be35: 53 push %ebx 13be36: 83 ec 1c sub $0x1c,%esp 13be39: 8b 5d 08 mov 0x8(%ebp),%ebx 13be3c: 8b 55 0c mov 0xc(%ebp),%edx #include #include /* 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, ...)); 13be3f: 8d 7d 10 lea 0x10(%ebp),%edi int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 13be42: 8b 35 8c 5b 16 00 mov 0x165b8c,%esi 13be48: 39 f3 cmp %esi,%ebx 13be4a: 0f 83 3c 01 00 00 jae 13bf8c <== ALWAYS TAKEN iop = rtems_libio_iop( fd ); 13be50: a1 d8 d6 16 00 mov 0x16d6d8,%eax 13be55: c1 e3 06 shl $0x6,%ebx 13be58: 8d 1c 18 lea (%eax,%ebx,1),%ebx rtems_libio_check_is_open(iop); 13be5b: 8b 4b 14 mov 0x14(%ebx),%ecx 13be5e: f6 c5 01 test $0x1,%ch 13be61: 0f 84 25 01 00 00 je 13bf8c <== ALWAYS TAKEN /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 13be67: 83 fa 09 cmp $0x9,%edx 13be6a: 76 14 jbe 13be80 errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; 13be6c: e8 4b 52 00 00 call 1410bc <__errno> 13be71: c7 00 16 00 00 00 movl $0x16,(%eax) 13be77: be ff ff ff ff mov $0xffffffff,%esi 13be7c: eb 1a jmp 13be98 <== ALWAYS TAKEN 13be7e: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 13be80: ff 24 95 ec 21 16 00 jmp *0x1621ec(,%edx,4) 13be87: 90 nop <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 13be88: e8 2f 52 00 00 call 1410bc <__errno> 13be8d: c7 00 86 00 00 00 movl $0x86,(%eax) 13be93: 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; } 13be98: 89 f0 mov %esi,%eax 13be9a: 8d 65 f4 lea -0xc(%ebp),%esp 13be9d: 5b pop %ebx 13be9e: 5e pop %esi 13be9f: 5f pop %edi 13bea0: c9 leave 13bea1: c3 ret 13bea2: 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 ) ); 13bea4: 83 ec 0c sub $0xc,%esp 13bea7: ff 37 pushl (%edi) 13bea9: 89 55 e0 mov %edx,-0x20(%ebp) 13beac: e8 fb 13 fd ff call 10d2ac <== ALWAYS TAKEN /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 13beb1: 25 01 02 00 00 and $0x201,%eax 13beb6: 8b 4b 14 mov 0x14(%ebx),%ecx 13beb9: 81 e1 fe fd ff ff and $0xfffffdfe,%ecx 13bebf: 09 c8 or %ecx,%eax 13bec1: 89 43 14 mov %eax,0x14(%ebx) 13bec4: 31 f6 xor %esi,%esi 13bec6: 83 c4 10 add $0x10,%esp 13bec9: 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) { 13becc: 8b 43 3c mov 0x3c(%ebx),%eax 13becf: 8b 40 30 mov 0x30(%eax),%eax 13bed2: 85 c0 test %eax,%eax 13bed4: 74 c2 je 13be98 <== ALWAYS TAKEN int err = (*iop->handlers->fcntl_h)( cmd, iop ); 13bed6: 83 ec 08 sub $0x8,%esp 13bed9: 53 push %ebx 13beda: 52 push %edx 13bedb: ff d0 call *%eax 13bedd: 89 c3 mov %eax,%ebx if (err) { 13bedf: 83 c4 10 add $0x10,%esp 13bee2: 85 c0 test %eax,%eax 13bee4: 74 b2 je 13be98 <== NEVER TAKEN errno = err; 13bee6: e8 d1 51 00 00 call 1410bc <__errno> <== NOT EXECUTED 13beeb: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 13beed: 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; } 13bef2: 89 f0 mov %esi,%eax <== NOT EXECUTED 13bef4: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 13bef7: 5b pop %ebx <== NOT EXECUTED 13bef8: 5e pop %esi <== NOT EXECUTED 13bef9: 5f pop %edi <== NOT EXECUTED 13befa: c9 leave <== NOT EXECUTED 13befb: 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 ); 13befc: 83 ec 0c sub $0xc,%esp 13beff: 51 push %ecx 13bf00: 89 55 e0 mov %edx,-0x20(%ebp) 13bf03: e8 b8 11 fd ff call 10d0c0 <== ALWAYS TAKEN 13bf08: 89 c6 mov %eax,%esi 13bf0a: 83 c4 10 add $0x10,%esp 13bf0d: 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) { 13bf10: 85 f6 test %esi,%esi 13bf12: 79 b8 jns 13becc <== NEVER TAKEN 13bf14: eb 82 jmp 13be98 <== NOT EXECUTED 13bf16: 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 ) ) 13bf18: 8b 07 mov (%edi),%eax 13bf1a: 85 c0 test %eax,%eax 13bf1c: 74 52 je 13bf70 <== ALWAYS TAKEN iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 13bf1e: 80 cd 08 or $0x8,%ch 13bf21: 89 4b 14 mov %ecx,0x14(%ebx) 13bf24: 31 f6 xor %esi,%esi 13bf26: eb a4 jmp 13becc <== ALWAYS TAKEN 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); 13bf28: 89 ce mov %ecx,%esi 13bf2a: c1 ee 0b shr $0xb,%esi 13bf2d: 83 e6 01 and $0x1,%esi 13bf30: eb 9a jmp 13becc <== ALWAYS TAKEN 13bf32: 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 ); 13bf34: 8b 3f mov (%edi),%edi if ( fd2 ) 13bf36: 85 ff test %edi,%edi 13bf38: 74 6a je 13bfa4 <== NEVER TAKEN diop = rtems_libio_iop( fd2 ); 13bf3a: 39 fe cmp %edi,%esi <== NOT EXECUTED 13bf3c: 77 42 ja 13bf80 <== NOT EXECUTED 13bf3e: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED 13bf45: 31 ff xor %edi,%edi <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 13bf47: 8b 73 3c mov 0x3c(%ebx),%esi 13bf4a: 89 77 3c mov %esi,0x3c(%edi) diop->file_info = iop->file_info; 13bf4d: 8b 73 38 mov 0x38(%ebx),%esi 13bf50: 89 77 38 mov %esi,0x38(%edi) diop->flags = iop->flags; 13bf53: 89 4f 14 mov %ecx,0x14(%edi) diop->pathinfo = iop->pathinfo; 13bf56: 83 c7 18 add $0x18,%edi 13bf59: 8d 73 18 lea 0x18(%ebx),%esi 13bf5c: b9 05 00 00 00 mov $0x5,%ecx 13bf61: f3 a5 rep movsl %ds:(%esi),%es:(%edi) ret = (int) (diop - rtems_libio_iops); 13bf63: 8b 75 e4 mov -0x1c(%ebp),%esi 13bf66: 29 c6 sub %eax,%esi 13bf68: c1 fe 06 sar $0x6,%esi 13bf6b: eb a3 jmp 13bf10 <== ALWAYS TAKEN 13bf6d: 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; 13bf70: 80 e5 f7 and $0xf7,%ch <== NOT EXECUTED 13bf73: 89 4b 14 mov %ecx,0x14(%ebx) <== NOT EXECUTED 13bf76: 31 f6 xor %esi,%esi <== NOT EXECUTED 13bf78: e9 4f ff ff ff jmp 13becc <== NOT EXECUTED 13bf7d: 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 ); 13bf80: c1 e7 06 shl $0x6,%edi <== NOT EXECUTED 13bf83: 8d 3c 38 lea (%eax,%edi,1),%edi <== NOT EXECUTED 13bf86: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED 13bf89: eb bc jmp 13bf47 <== NOT EXECUTED 13bf8b: 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); 13bf8c: e8 2b 51 00 00 call 1410bc <__errno> <== NOT EXECUTED 13bf91: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 13bf97: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 13bf9c: e9 f7 fe ff ff jmp 13be98 <== NOT EXECUTED 13bfa1: 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(); 13bfa4: 89 55 e0 mov %edx,-0x20(%ebp) 13bfa7: e8 74 12 fd ff call 10d220 <== ALWAYS TAKEN 13bfac: 89 c7 mov %eax,%edi if ( diop == 0 ) { 13bfae: 85 c0 test %eax,%eax 13bfb0: 8b 55 e0 mov -0x20(%ebp),%edx 13bfb3: 0f 84 34 ff ff ff je 13beed <== ALWAYS TAKEN 13bfb9: 89 45 e4 mov %eax,-0x1c(%ebp) 13bfbc: a1 d8 d6 16 00 mov 0x16d6d8,%eax 13bfc1: 8b 4b 14 mov 0x14(%ebx),%ecx 13bfc4: eb 81 jmp 13bf47 <== ALWAYS TAKEN 001090ec : #include int fdatasync( int fd ) { 1090ec: 55 push %ebp 1090ed: 89 e5 mov %esp,%ebp 1090ef: 83 ec 08 sub $0x8,%esp 1090f2: 8b 45 08 mov 0x8(%ebp),%eax rtems_libio_t *iop; rtems_libio_check_fd( fd ); 1090f5: 3b 05 4c 41 12 00 cmp 0x12414c,%eax 1090fb: 73 27 jae 109124 iop = rtems_libio_iop( fd ); 1090fd: c1 e0 06 shl $0x6,%eax 109100: 03 05 a0 81 12 00 add 0x1281a0,%eax rtems_libio_check_is_open(iop); 109106: 8b 50 14 mov 0x14(%eax),%edx 109109: f6 c6 01 test $0x1,%dh 10910c: 74 16 je 109124 <== ALWAYS TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 10910e: 83 e2 04 and $0x4,%edx 109111: 74 25 je 109138 /* * Now process the fdatasync(). */ if ( !iop->handlers->fdatasync_h ) 109113: 8b 50 3c mov 0x3c(%eax),%edx 109116: 8b 52 2c mov 0x2c(%edx),%edx 109119: 85 d2 test %edx,%edx 10911b: 74 28 je 109145 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fdatasync_h)( iop ); 10911d: 89 45 08 mov %eax,0x8(%ebp) } 109120: c9 leave */ if ( !iop->handlers->fdatasync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fdatasync_h)( iop ); 109121: ff e2 jmp *%edx 109123: 90 nop <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 109124: e8 7f b9 00 00 call 114aa8 <__errno> 109129: 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 ); } 10912f: b8 ff ff ff ff mov $0xffffffff,%eax 109134: c9 leave 109135: c3 ret 109136: 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 ); 109138: e8 6b b9 00 00 call 114aa8 <__errno> 10913d: c7 00 16 00 00 00 movl $0x16,(%eax) 109143: eb ea jmp 10912f <== ALWAYS TAKEN /* * Now process the fdatasync(). */ if ( !iop->handlers->fdatasync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 109145: e8 5e b9 00 00 call 114aa8 <__errno> 10914a: c7 00 86 00 00 00 movl $0x86,(%eax) 109150: eb dd jmp 10912f <== ALWAYS TAKEN 0011112c : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 11112c: 55 push %ebp 11112d: 89 e5 mov %esp,%ebp 11112f: 57 push %edi 111130: 56 push %esi 111131: 53 push %ebx 111132: 83 ec 30 sub $0x30,%esp 111135: 8b 75 08 mov 0x8(%ebp),%esi ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 111138: 6a 00 push $0x0 11113a: 6a 00 push $0x0 11113c: ff 35 6c 4f 12 00 pushl 0x124f6c 111142: e8 19 a4 ff ff call 10b560 111147: 83 c4 10 add $0x10,%esp 11114a: 85 c0 test %eax,%eax 11114c: 0f 85 82 00 00 00 jne 1111d4 <== NEVER TAKEN RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 111152: 8b 1e mov (%esi),%ebx <== NOT EXECUTED if (pipe == NULL) { 111154: 85 db test %ebx,%ebx <== NOT EXECUTED 111156: 0f 84 d0 01 00 00 je 11132c <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 11115c: 57 push %edi <== NOT EXECUTED 11115d: 6a 00 push $0x0 <== NOT EXECUTED 11115f: 6a 00 push $0x0 <== NOT EXECUTED 111161: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111164: e8 f7 a3 ff ff call 10b560 <== NOT EXECUTED 111169: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11116c: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED 11116f: 19 ff sbb %edi,%edi <== NOT EXECUTED 111171: f7 d7 not %edi <== NOT EXECUTED 111173: 83 e7 fc and $0xfffffffc,%edi <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 111176: 8b 0e mov (%esi),%ecx <== NOT EXECUTED 111178: 85 c9 test %ecx,%ecx <== NOT EXECUTED 11117a: 0f 84 d8 00 00 00 je 111258 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 111180: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111183: ff 35 6c 4f 12 00 pushl 0x124f6c <== NOT EXECUTED 111189: e8 ce a4 ff ff call 10b65c <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 11118e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111191: 85 ff test %edi,%edi <== NOT EXECUTED 111193: 75 34 jne 1111c9 <== NOT EXECUTED return err; pipe = *pipep; 111195: 8b 1e mov (%esi),%ebx <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { 111197: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 11119a: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED 11119d: 89 d0 mov %edx,%eax <== NOT EXECUTED 11119f: 83 e0 06 and $0x6,%eax <== NOT EXECUTED 1111a2: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED 1111a5: 74 3d je 1111e4 <== NOT EXECUTED 1111a7: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED 1111aa: 0f 84 3c 01 00 00 je 1112ec <== NOT EXECUTED 1111b0: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED 1111b3: 0f 84 bf 00 00 00 je 111278 <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); 1111b9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1111bc: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 1111bf: e8 98 a4 ff ff call 10b65c <== NOT EXECUTED 1111c4: 31 ff xor %edi,%edi <== NOT EXECUTED return 0; 1111c6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED out_error: pipe_release(pipep, iop); return err; } 1111c9: 89 f8 mov %edi,%eax <== NOT EXECUTED 1111cb: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1111ce: 5b pop %ebx <== NOT EXECUTED 1111cf: 5e pop %esi <== NOT EXECUTED 1111d0: 5f pop %edi <== NOT EXECUTED 1111d1: c9 leave <== NOT EXECUTED 1111d2: c3 ret <== NOT EXECUTED 1111d3: 90 nop <== NOT EXECUTED ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 1111d4: bf fc ff ff ff mov $0xfffffffc,%edi return 0; out_error: pipe_release(pipep, iop); return err; } 1111d9: 89 f8 mov %edi,%eax 1111db: 8d 65 f4 lea -0xc(%ebp),%esp 1111de: 5b pop %ebx 1111df: 5e pop %esi 1111e0: 5f pop %edi 1111e1: c9 leave 1111e2: c3 ret 1111e3: 90 nop <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 1111e4: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 1111e7: 85 c0 test %eax,%eax <== NOT EXECUTED 1111e9: 75 09 jne 1111f4 <== NOT EXECUTED 1111eb: 83 e2 01 and $0x1,%edx <== NOT EXECUTED 1111ee: 0f 85 70 02 00 00 jne 111464 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; 1111f4: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED if (pipe->Writers ++ == 0) 1111f7: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 1111fa: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 1111fd: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED 111200: 85 c0 test %eax,%eax <== NOT EXECUTED 111202: 0f 84 a8 02 00 00 je 1114b0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); if (pipe->Readers == 0) { 111208: 8b 7b 10 mov 0x10(%ebx),%edi <== NOT EXECUTED 11120b: 85 ff test %edi,%edi <== NOT EXECUTED 11120d: 75 aa jne 1111b9 <== NOT EXECUTED prevCounter = pipe->readerCounter; 11120f: 8b 7b 20 mov 0x20(%ebx),%edi <== NOT EXECUTED 111212: eb 19 jmp 11122d <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) 111214: 50 push %eax <== NOT EXECUTED 111215: 6a 00 push $0x0 <== NOT EXECUTED 111217: 6a 00 push $0x0 <== NOT EXECUTED 111219: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 11121c: e8 3f a3 ff ff call 10b560 <== NOT EXECUTED 111221: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111224: 85 c0 test %eax,%eax <== NOT EXECUTED 111226: 75 23 jne 11124b <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 111228: 39 7b 20 cmp %edi,0x20(%ebx) <== NOT EXECUTED 11122b: 75 8c jne 1111b9 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); 11122d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111230: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111233: e8 24 a4 ff ff call 10b65c <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 111238: 5a pop %edx <== NOT EXECUTED 111239: 59 pop %ecx <== NOT EXECUTED 11123a: 6a 00 push $0x0 <== NOT EXECUTED 11123c: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 11123f: e8 4c 07 00 00 call 111990 <== NOT EXECUTED 111244: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111247: 85 c0 test %eax,%eax <== NOT EXECUTED 111249: 74 c9 je 111214 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; 11124b: bf fc ff ff ff mov $0xfffffffc,%edi <== NOT EXECUTED 111250: e9 14 02 00 00 jmp 111469 <== NOT EXECUTED 111255: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) 111258: 85 ff test %edi,%edi <== NOT EXECUTED 11125a: 0f 85 68 02 00 00 jne 1114c8 <== NOT EXECUTED pipe_free(pipe); else *pipep = pipe; 111260: 89 1e mov %ebx,(%esi) <== NOT EXECUTED } out: rtems_semaphore_release(rtems_pipe_semaphore); 111262: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111265: ff 35 6c 4f 12 00 pushl 0x124f6c <== NOT EXECUTED 11126b: e8 ec a3 ff ff call 10b65c <== NOT EXECUTED 111270: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111273: e9 1d ff ff ff jmp 111195 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 111278: ff 43 20 incl 0x20(%ebx) <== NOT EXECUTED if (pipe->Readers ++ == 0) 11127b: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 11127e: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 111281: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED 111284: 85 c0 test %eax,%eax <== NOT EXECUTED 111286: 0f 84 0c 02 00 00 je 111498 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); if (pipe->Writers == 0) { 11128c: 8b 53 14 mov 0x14(%ebx),%edx <== NOT EXECUTED 11128f: 85 d2 test %edx,%edx <== NOT EXECUTED 111291: 0f 85 22 ff ff ff jne 1111b9 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 111297: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 11129a: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED 11129e: 0f 85 15 ff ff ff jne 1111b9 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 1112a4: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED 1112a7: eb 20 jmp 1112c9 <== NOT EXECUTED 1112a9: 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)) 1112ac: 52 push %edx <== NOT EXECUTED 1112ad: 6a 00 push $0x0 <== NOT EXECUTED 1112af: 6a 00 push $0x0 <== NOT EXECUTED 1112b1: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 1112b4: e8 a7 a2 ff ff call 10b560 <== NOT EXECUTED 1112b9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1112bc: 85 c0 test %eax,%eax <== NOT EXECUTED 1112be: 75 8b jne 11124b <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 1112c0: 39 7b 24 cmp %edi,0x24(%ebx) <== NOT EXECUTED 1112c3: 0f 85 f0 fe ff ff jne 1111b9 <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 1112c9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1112cc: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 1112cf: e8 88 a3 ff ff call 10b65c <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 1112d4: 59 pop %ecx <== NOT EXECUTED 1112d5: 58 pop %eax <== NOT EXECUTED 1112d6: 6a 00 push $0x0 <== NOT EXECUTED 1112d8: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 1112db: e8 b0 06 00 00 call 111990 <== NOT EXECUTED 1112e0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1112e3: 85 c0 test %eax,%eax <== NOT EXECUTED 1112e5: 74 c5 je 1112ac <== NOT EXECUTED 1112e7: e9 5f ff ff ff jmp 11124b <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 1112ec: ff 43 20 incl 0x20(%ebx) <== NOT EXECUTED if (pipe->Readers ++ == 0) 1112ef: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 1112f2: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 1112f5: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED 1112f8: 85 c0 test %eax,%eax <== NOT EXECUTED 1112fa: 0f 84 80 01 00 00 je 111480 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 111300: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED if (pipe->Writers ++ == 0) 111303: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 111306: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 111309: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED 11130c: 85 c0 test %eax,%eax <== NOT EXECUTED 11130e: 0f 85 a5 fe ff ff jne 1111b9 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 111314: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 111317: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 11131a: 50 push %eax <== NOT EXECUTED 11131b: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 11131e: e8 09 06 00 00 call 11192c <== NOT EXECUTED 111323: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111326: e9 8e fe ff ff jmp 1111b9 <== NOT EXECUTED 11132b: 90 nop <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 11132c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11132f: 6a 34 push $0x34 <== NOT EXECUTED 111331: e8 f6 6e ff ff call 10822c <== NOT EXECUTED 111336: 89 c2 mov %eax,%edx <== NOT EXECUTED 111338: 89 c3 mov %eax,%ebx <== NOT EXECUTED if (pipe == NULL) 11133a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11133d: 85 c0 test %eax,%eax <== NOT EXECUTED 11133f: 0f 84 c7 01 00 00 je 11150c <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 111345: b9 34 00 00 00 mov $0x34,%ecx <== NOT EXECUTED 11134a: 31 c0 xor %eax,%eax <== NOT EXECUTED 11134c: 89 d7 mov %edx,%edi <== NOT EXECUTED 11134e: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED pipe->Size = PIPE_BUF; 111350: c7 42 04 00 02 00 00 movl $0x200,0x4(%edx) <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 111357: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11135a: 68 00 02 00 00 push $0x200 <== NOT EXECUTED 11135f: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 111362: e8 c5 6e ff ff call 10822c <== NOT EXECUTED 111367: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 11136a: 89 02 mov %eax,(%edx) <== NOT EXECUTED if (! pipe->Buffer) 11136c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11136f: 85 c0 test %eax,%eax <== NOT EXECUTED 111371: 0f 84 a1 01 00 00 je 111518 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 111377: 8d 43 2c lea 0x2c(%ebx),%eax <== NOT EXECUTED 11137a: 50 push %eax <== NOT EXECUTED 11137b: 6a 00 push $0x0 <== NOT EXECUTED 11137d: 6a 00 push $0x0 <== NOT EXECUTED 11137f: 0f be 05 74 30 12 00 movsbl 0x123074,%eax <== NOT EXECUTED 111386: 0d 00 72 49 50 or $0x50497200,%eax <== NOT EXECUTED 11138b: 50 push %eax <== NOT EXECUTED 11138c: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 11138f: e8 48 04 00 00 call 1117dc <== NOT EXECUTED 111394: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111397: 85 c0 test %eax,%eax <== NOT EXECUTED 111399: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 11139c: 0f 85 97 00 00 00 jne 111439 <== 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( 1113a2: 8d 43 30 lea 0x30(%ebx),%eax <== NOT EXECUTED 1113a5: 50 push %eax <== NOT EXECUTED 1113a6: 6a 00 push $0x0 <== NOT EXECUTED 1113a8: 6a 00 push $0x0 <== NOT EXECUTED 1113aa: 0f be 05 74 30 12 00 movsbl 0x123074,%eax <== NOT EXECUTED 1113b1: 0d 00 77 49 50 or $0x50497700,%eax <== NOT EXECUTED 1113b6: 50 push %eax <== NOT EXECUTED 1113b7: e8 20 04 00 00 call 1117dc <== NOT EXECUTED 1113bc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1113bf: 85 c0 test %eax,%eax <== NOT EXECUTED 1113c1: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 1113c4: 75 5f jne 111425 <== 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( 1113c6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1113c9: 8d 43 28 lea 0x28(%ebx),%eax <== NOT EXECUTED 1113cc: 50 push %eax <== NOT EXECUTED 1113cd: 6a 00 push $0x0 <== NOT EXECUTED 1113cf: 6a 10 push $0x10 <== NOT EXECUTED 1113d1: 6a 01 push $0x1 <== NOT EXECUTED 1113d3: 0f be 05 74 30 12 00 movsbl 0x123074,%eax <== NOT EXECUTED 1113da: 0d 00 73 49 50 or $0x50497300,%eax <== NOT EXECUTED 1113df: 50 push %eax <== NOT EXECUTED 1113e0: e8 03 9f ff ff call 10b2e8 <== NOT EXECUTED 1113e5: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 1113e8: 85 c0 test %eax,%eax <== NOT EXECUTED 1113ea: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 1113ed: 75 22 jne 111411 <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 1113ef: a0 74 30 12 00 mov 0x123074,%al <== NOT EXECUTED 1113f4: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 1113f7: 88 15 74 30 12 00 mov %dl,0x123074 <== NOT EXECUTED 1113fd: 3c 7a cmp $0x7a,%al <== NOT EXECUTED 1113ff: 0f 85 57 fd ff ff jne 11115c <== NOT EXECUTED c = 'a'; 111405: c6 05 74 30 12 00 61 movb $0x61,0x123074 <== NOT EXECUTED 11140c: e9 4b fd ff ff jmp 11115c <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 111411: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111414: ff 72 30 pushl 0x30(%edx) <== NOT EXECUTED 111417: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 11141a: e8 a5 04 00 00 call 1118c4 <== NOT EXECUTED 11141f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111422: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 111425: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111428: ff 72 2c pushl 0x2c(%edx) <== NOT EXECUTED 11142b: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 11142e: e8 91 04 00 00 call 1118c4 <== NOT EXECUTED 111433: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111436: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED err_rbar: free(pipe->Buffer); 111439: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11143c: ff 32 pushl (%edx) <== NOT EXECUTED 11143e: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 111441: e8 96 6b ff ff call 107fdc <== NOT EXECUTED 111446: bf fc ff ff ff mov $0xfffffffc,%edi <== NOT EXECUTED 11144b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11144e: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED err_buf: free(pipe); 111451: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111454: 52 push %edx <== NOT EXECUTED 111455: e8 82 6b ff ff call 107fdc <== NOT EXECUTED 11145a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11145d: e9 1e fd ff ff jmp 111180 <== NOT EXECUTED 111462: 66 90 xchg %ax,%ax <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 111464: bf fa ff ff ff mov $0xfffffffa,%edi <== NOT EXECUTED PIPE_UNLOCK(pipe); return 0; out_error: pipe_release(pipep, iop); 111469: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11146c: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 11146f: 56 push %esi <== NOT EXECUTED 111470: e8 a3 fb ff ff call 111018 <== NOT EXECUTED return err; 111475: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111478: e9 4c fd ff ff jmp 1111c9 <== NOT EXECUTED 11147d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(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 30 pushl 0x30(%ebx) <== NOT EXECUTED 11148a: e8 9d 04 00 00 call 11192c <== NOT EXECUTED 11148f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111492: e9 69 fe ff ff jmp 111300 <== NOT EXECUTED 111497: 90 nop <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 111498: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11149b: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 11149e: 50 push %eax <== NOT EXECUTED 11149f: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 1114a2: e8 85 04 00 00 call 11192c <== NOT EXECUTED 1114a7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1114aa: e9 dd fd ff ff jmp 11128c <== NOT EXECUTED 1114af: 90 nop <== NOT EXECUTED goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); 1114b0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1114b3: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 1114b6: 50 push %eax <== NOT EXECUTED 1114b7: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 1114ba: e8 6d 04 00 00 call 11192c <== NOT EXECUTED 1114bf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1114c2: e9 41 fd ff ff jmp 111208 <== NOT EXECUTED 1114c7: 90 nop <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 1114c8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1114cb: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 1114ce: e8 f1 03 00 00 call 1118c4 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 1114d3: 5a pop %edx <== NOT EXECUTED 1114d4: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 1114d7: e8 e8 03 00 00 call 1118c4 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 1114dc: 58 pop %eax <== NOT EXECUTED 1114dd: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 1114e0: e8 d7 9f ff ff call 10b4bc <== NOT EXECUTED free(pipe->Buffer); 1114e5: 5e pop %esi <== NOT EXECUTED 1114e6: ff 33 pushl (%ebx) <== NOT EXECUTED 1114e8: e8 ef 6a ff ff call 107fdc <== NOT EXECUTED free(pipe); 1114ed: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED 1114f0: e8 e7 6a ff ff call 107fdc <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 1114f5: 59 pop %ecx <== NOT EXECUTED 1114f6: ff 35 6c 4f 12 00 pushl 0x124f6c <== NOT EXECUTED 1114fc: e8 5b a1 ff ff call 10b65c <== NOT EXECUTED 111501: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111504: e9 c0 fc ff ff jmp 1111c9 <== NOT EXECUTED 111509: 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)); if (pipe == NULL) 11150c: bf f4 ff ff ff mov $0xfffffff4,%edi <== NOT EXECUTED 111511: e9 6a fc ff ff jmp 111180 <== NOT EXECUTED 111516: 66 90 xchg %ax,%ax <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); pipe->Size = PIPE_BUF; pipe->Buffer = malloc(pipe->Size); if (! pipe->Buffer) 111518: bf f4 ff ff ff mov $0xfffffff4,%edi <== NOT EXECUTED 11151d: e9 2f ff ff ff jmp 111451 <== NOT EXECUTED 001104b8 : 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)) ) { 1104b8: 55 push %ebp <== NOT EXECUTED 1104b9: 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; 1104bb: a1 2c d7 16 00 mov 0x16d72c,%eax <== NOT EXECUTED 1104c0: 3d 30 d7 16 00 cmp $0x16d730,%eax <== NOT EXECUTED 1104c5: 74 1b je 1104e2 <== 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 ) { 1104c7: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 1104ca: 8b 52 10 mov 0x10(%edx),%edx <== NOT EXECUTED 1104cd: 39 50 18 cmp %edx,0x18(%eax) <== NOT EXECUTED 1104d0: 75 07 jne 1104d9 <== NOT EXECUTED 1104d2: eb 14 jmp 1104e8 <== NOT EXECUTED 1104d4: 39 50 18 cmp %edx,0x18(%eax) <== NOT EXECUTED 1104d7: 74 0f je 1104e8 <== 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 ) { 1104d9: 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; 1104db: 3d 30 d7 16 00 cmp $0x16d730,%eax <== NOT EXECUTED 1104e0: 75 f2 jne 1104d4 <== NOT EXECUTED 1104e2: 31 c0 xor %eax,%eax <== NOT EXECUTED return true; } } return false; } 1104e4: c9 leave <== NOT EXECUTED 1104e5: c3 ret <== NOT EXECUTED 1104e6: 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; 1104e8: b0 01 mov $0x1,%al <== NOT EXECUTED return true; } } return false; } 1104ea: c9 leave <== NOT EXECUTED 1104eb: c3 ret <== NOT EXECUTED 00109154 : long fpathconf( int fd, int name ) { 109154: 55 push %ebp 109155: 89 e5 mov %esp,%ebp 109157: 83 ec 08 sub $0x8,%esp 10915a: 8b 45 08 mov 0x8(%ebp),%eax 10915d: 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); 109160: 3b 05 4c 41 12 00 cmp 0x12414c,%eax 109166: 0f 83 9c 00 00 00 jae 109208 iop = rtems_libio_iop(fd); 10916c: c1 e0 06 shl $0x6,%eax 10916f: 03 05 a0 81 12 00 add 0x1281a0,%eax rtems_libio_check_is_open(iop); 109175: 8b 48 14 mov 0x14(%eax),%ecx 109178: f6 c5 01 test $0x1,%ch 10917b: 0f 84 87 00 00 00 je 109208 <== ALWAYS TAKEN rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 109181: 83 e1 02 and $0x2,%ecx 109184: 74 08 je 10918e <== ALWAYS TAKEN /* * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; 109186: 8b 40 28 mov 0x28(%eax),%eax switch ( name ) { 109189: 83 fa 0b cmp $0xb,%edx 10918c: 76 12 jbe 1091a0 break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 10918e: e8 15 b9 00 00 call 114aa8 <__errno> 109193: c7 00 16 00 00 00 movl $0x16,(%eax) 109199: b8 ff ff ff ff mov $0xffffffff,%eax break; } return return_value; } 10919e: c9 leave 10919f: c3 ret * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { 1091a0: ff 24 95 38 2a 12 00 jmp *0x122a38(,%edx,4) 1091a7: 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; 1091a8: 8b 40 5c mov 0x5c(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 1091ab: c9 leave 1091ac: c3 ret 1091ad: 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; 1091b0: 8b 40 50 mov 0x50(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 1091b3: c9 leave 1091b4: c3 ret 1091b5: 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; 1091b8: 8b 40 64 mov 0x64(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 1091bb: c9 leave 1091bc: c3 ret 1091bd: 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; 1091c0: 8b 40 58 mov 0x58(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 1091c3: c9 leave 1091c4: c3 ret 1091c5: 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; 1091c8: 8b 40 54 mov 0x54(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 1091cb: c9 leave 1091cc: c3 ret 1091cd: 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; 1091d0: 8b 40 4c mov 0x4c(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 1091d3: c9 leave 1091d4: c3 ret 1091d5: 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; 1091d8: 8b 40 48 mov 0x48(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 1091db: c9 leave 1091dc: c3 ret 1091dd: 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; 1091e0: 8b 40 44 mov 0x44(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 1091e3: c9 leave 1091e4: c3 ret 1091e5: 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; 1091e8: 8b 40 40 mov 0x40(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 1091eb: c9 leave 1091ec: c3 ret 1091ed: 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; 1091f0: 8b 40 3c mov 0x3c(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 1091f3: c9 leave 1091f4: c3 ret 1091f5: 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; 1091f8: 8b 40 38 mov 0x38(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 1091fb: c9 leave 1091fc: c3 ret 1091fd: 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; 109200: 8b 40 60 mov 0x60(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 109203: c9 leave 109204: c3 ret 109205: 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); 109208: e8 9b b8 00 00 call 114aa8 <__errno> 10920d: c7 00 09 00 00 00 movl $0x9,(%eax) 109213: b8 ff ff ff ff mov $0xffffffff,%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 109218: c9 leave 109219: c3 ret 00107fdc : void free( void *ptr ) { MSBUMP(free_calls, 1); 107fdc: 55 push %ebp 107fdd: 89 e5 mov %esp,%ebp 107fdf: 53 push %ebx 107fe0: 83 ec 04 sub $0x4,%esp 107fe3: 8b 5d 08 mov 0x8(%ebp),%ebx 107fe6: ff 05 cc 51 12 00 incl 0x1251cc if ( !ptr ) 107fec: 85 db test %ebx,%ebx 107fee: 74 4b je 10803b /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 107ff0: 83 3d 00 55 12 00 03 cmpl $0x3,0x125500 107ff7: 74 47 je 108040 <== NEVER TAKEN #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 107ff9: a1 a8 35 12 00 mov 0x1235a8,%eax 107ffe: 85 c0 test %eax,%eax 108000: 74 0a je 10800c <== NEVER TAKEN (*rtems_malloc_statistics_helpers->at_free)(ptr); 108002: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108005: 53 push %ebx <== NOT EXECUTED 108006: ff 50 08 call *0x8(%eax) <== NOT EXECUTED 108009: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 10800c: 83 ec 08 sub $0x8,%esp 10800f: 53 push %ebx 108010: ff 35 58 11 12 00 pushl 0x121158 108016: e8 29 4e 00 00 call 10ce44 <_Protected_heap_Free> 10801b: 83 c4 10 add $0x10,%esp 10801e: 84 c0 test %al,%al 108020: 75 19 jne 10803b <== 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 108022: 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", 108027: ff 70 1c pushl 0x1c(%eax) <== NOT EXECUTED 10802a: ff 70 18 pushl 0x18(%eax) <== NOT EXECUTED 10802d: 53 push %ebx <== NOT EXECUTED 10802e: 68 30 f8 11 00 push $0x11f830 <== NOT EXECUTED 108033: e8 cc 0c 00 00 call 108d04 <== NOT EXECUTED 108038: 83 c4 10 add $0x10,%esp <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 10803b: 8b 5d fc mov -0x4(%ebp),%ebx 10803e: c9 leave 10803f: c3 ret /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 108040: e8 b7 00 00 00 call 1080fc <== ALWAYS TAKEN 108045: 84 c0 test %al,%al 108047: 75 b0 jne 107ff9 <== NEVER TAKEN !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 108049: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 10804c: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10804f: 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); 108050: e9 e7 00 00 00 jmp 10813c <== NOT EXECUTED 0012c464 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 12c464: 55 push %ebp <== NOT EXECUTED 12c465: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c467: 53 push %ebx <== NOT EXECUTED 12c468: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12c46b: 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 12c46e: 81 fb 60 d7 16 00 cmp $0x16d760,%ebx <== NOT EXECUTED 12c474: 74 42 je 12c4b8 <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 12c476: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 12c479: 85 c0 test %eax,%eax <== NOT EXECUTED 12c47b: 74 13 je 12c490 <== NOT EXECUTED 12c47d: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c480: 85 c0 test %eax,%eax <== NOT EXECUTED 12c482: 74 0c je 12c490 <== NOT EXECUTED 12c484: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c487: 8d 53 04 lea 0x4(%ebx),%edx <== NOT EXECUTED 12c48a: 52 push %edx <== NOT EXECUTED 12c48b: ff d0 call *%eax <== NOT EXECUTED 12c48d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 12c490: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED 12c493: 85 c0 test %eax,%eax <== NOT EXECUTED 12c495: 74 13 je 12c4aa <== NOT EXECUTED 12c497: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c49a: 85 c0 test %eax,%eax <== NOT EXECUTED 12c49c: 74 0c je 12c4aa <== NOT EXECUTED 12c49e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c4a1: 8d 53 18 lea 0x18(%ebx),%edx <== NOT EXECUTED 12c4a4: 52 push %edx <== NOT EXECUTED 12c4a5: ff d0 call *%eax <== NOT EXECUTED 12c4a7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED free(env); 12c4aa: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED } } 12c4ad: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12c4b0: c9 leave <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 12c4b1: e9 3e 0a fe ff jmp 10cef4 <== NOT EXECUTED 12c4b6: 66 90 xchg %ax,%ax <== NOT EXECUTED } } 12c4b8: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12c4bb: c9 leave <== NOT EXECUTED 12c4bc: c3 ret <== NOT EXECUTED 0011d5b0 : int fstat( int fd, struct stat *sbuf ) { 11d5b0: 55 push %ebp 11d5b1: 89 e5 mov %esp,%ebp 11d5b3: 57 push %edi 11d5b4: 53 push %ebx 11d5b5: 8b 55 08 mov 0x8(%ebp),%edx 11d5b8: 8b 5d 0c mov 0xc(%ebp),%ebx /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 11d5bb: 85 db test %ebx,%ebx 11d5bd: 74 66 je 11d625 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 11d5bf: 3b 15 4c 11 12 00 cmp 0x12114c,%edx 11d5c5: 73 3d jae 11d604 11d5c7: c1 e2 06 shl $0x6,%edx 11d5ca: 03 15 a0 51 12 00 add 0x1251a0,%edx rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 11d5d0: f6 42 15 01 testb $0x1,0x15(%edx) 11d5d4: 74 2e je 11d604 <== ALWAYS TAKEN if ( !iop->handlers ) 11d5d6: 8b 42 3c mov 0x3c(%edx),%eax 11d5d9: 85 c0 test %eax,%eax 11d5db: 74 27 je 11d604 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 11d5dd: 8b 40 18 mov 0x18(%eax),%eax 11d5e0: 85 c0 test %eax,%eax 11d5e2: 74 34 je 11d618 <== ALWAYS TAKEN /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 11d5e4: b9 44 00 00 00 mov $0x44,%ecx 11d5e9: 31 c0 xor %eax,%eax 11d5eb: 89 df mov %ebx,%edi 11d5ed: f3 aa rep stos %al,%es:(%edi) return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 11d5ef: 8b 42 3c mov 0x3c(%edx),%eax 11d5f2: 89 5d 0c mov %ebx,0xc(%ebp) 11d5f5: 83 c2 18 add $0x18,%edx 11d5f8: 89 55 08 mov %edx,0x8(%ebp) 11d5fb: 8b 40 18 mov 0x18(%eax),%eax } 11d5fe: 5b pop %ebx 11d5ff: 5f pop %edi 11d600: 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 ); 11d601: ff e0 jmp *%eax 11d603: 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 ); 11d604: e8 97 4d ff ff call 1123a0 <__errno> 11d609: 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 ); } 11d60f: b8 ff ff ff ff mov $0xffffffff,%eax 11d614: 5b pop %ebx 11d615: 5f pop %edi 11d616: c9 leave 11d617: 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 ); 11d618: e8 83 4d ff ff call 1123a0 <__errno> <== NOT EXECUTED 11d61d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11d623: eb ea jmp 11d60f <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 11d625: e8 76 4d ff ff call 1123a0 <__errno> 11d62a: c7 00 0e 00 00 00 movl $0xe,(%eax) 11d630: eb dd jmp 11d60f <== ALWAYS TAKEN 0012b3e0 : #include int fsync( int fd ) { 12b3e0: 55 push %ebp 12b3e1: 89 e5 mov %esp,%ebp 12b3e3: 83 ec 08 sub $0x8,%esp 12b3e6: 8b 45 08 mov 0x8(%ebp),%eax rtems_libio_t *iop; rtems_libio_check_fd( fd ); 12b3e9: 3b 05 8c 5b 16 00 cmp 0x165b8c,%eax 12b3ef: 73 2b jae 12b41c <== ALWAYS TAKEN iop = rtems_libio_iop( fd ); 12b3f1: c1 e0 06 shl $0x6,%eax 12b3f4: 03 05 d8 d6 16 00 add 0x16d6d8,%eax rtems_libio_check_is_open(iop); 12b3fa: 8b 50 14 mov 0x14(%eax),%edx 12b3fd: f6 c6 01 test $0x1,%dh 12b400: 74 1a je 12b41c <== ALWAYS TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 12b402: 83 e2 04 and $0x4,%edx 12b405: 74 29 je 12b430 /* * Now process the fsync(). */ if ( !iop->handlers ) 12b407: 8b 50 3c mov 0x3c(%eax),%edx 12b40a: 85 d2 test %edx,%edx 12b40c: 74 0e je 12b41c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) 12b40e: 8b 52 28 mov 0x28(%edx),%edx 12b411: 85 d2 test %edx,%edx 12b413: 74 28 je 12b43d rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 12b415: 89 45 08 mov %eax,0x8(%ebp) } 12b418: 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 ); 12b419: ff e2 jmp *%edx 12b41b: 90 nop <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 12b41c: e8 9b 5c 01 00 call 1410bc <__errno> <== NOT EXECUTED 12b421: 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 ); } 12b427: b8 ff ff ff ff mov $0xffffffff,%eax 12b42c: c9 leave 12b42d: c3 ret 12b42e: 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 ); 12b430: e8 87 5c 01 00 call 1410bc <__errno> 12b435: c7 00 16 00 00 00 movl $0x16,(%eax) 12b43b: eb ea jmp 12b427 <== ALWAYS TAKEN if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b43d: e8 7a 5c 01 00 call 1410bc <__errno> 12b442: c7 00 86 00 00 00 movl $0x86,(%eax) 12b448: eb dd jmp 12b427 <== ALWAYS TAKEN 0010f7e0 : int ftruncate( int fd, off_t length ) { 10f7e0: 55 push %ebp 10f7e1: 89 e5 mov %esp,%ebp 10f7e3: 57 push %edi 10f7e4: 56 push %esi 10f7e5: 53 push %ebx 10f7e6: 83 ec 2c sub $0x2c,%esp 10f7e9: 8b 5d 08 mov 0x8(%ebp),%ebx rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 10f7ec: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx 10f7f2: 73 60 jae 10f854 <== ALWAYS TAKEN iop = rtems_libio_iop( fd ); 10f7f4: c1 e3 06 shl $0x6,%ebx 10f7f7: 03 1d a0 51 12 00 add 0x1251a0,%ebx rtems_libio_check_is_open(iop); 10f7fd: f6 43 15 01 testb $0x1,0x15(%ebx) 10f801: 74 51 je 10f854 <== ALWAYS TAKEN /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 10f803: 8d 45 d4 lea -0x2c(%ebp),%eax 10f806: 8d 73 18 lea 0x18(%ebx),%esi 10f809: b9 05 00 00 00 mov $0x5,%ecx 10f80e: 89 c7 mov %eax,%edi 10f810: f3 a5 rep movsl %ds:(%esi),%es:(%edi) if ( !loc.ops->node_type_h ) 10f812: 8b 55 e0 mov -0x20(%ebp),%edx 10f815: 8b 52 10 mov 0x10(%edx),%edx 10f818: 85 d2 test %edx,%edx 10f81a: 74 60 je 10f87c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 10f81c: 83 ec 0c sub $0xc,%esp 10f81f: 50 push %eax 10f820: ff d2 call *%edx 10f822: 83 c4 10 add $0x10,%esp 10f825: 48 dec %eax 10f826: 74 66 je 10f88e rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 10f828: f6 43 14 04 testb $0x4,0x14(%ebx) 10f82c: 74 3a je 10f868 <== ALWAYS TAKEN if ( !iop->handlers->ftruncate_h ) 10f82e: 8b 43 3c mov 0x3c(%ebx),%eax 10f831: 8b 40 20 mov 0x20(%eax),%eax 10f834: 85 c0 test %eax,%eax 10f836: 74 44 je 10f87c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 10f838: 52 push %edx 10f839: 8b 55 0c mov 0xc(%ebp),%edx 10f83c: 89 d1 mov %edx,%ecx 10f83e: c1 f9 1f sar $0x1f,%ecx 10f841: 51 push %ecx 10f842: 52 push %edx 10f843: 53 push %ebx 10f844: ff d0 call *%eax 10f846: 83 c4 10 add $0x10,%esp } 10f849: 8d 65 f4 lea -0xc(%ebp),%esp 10f84c: 5b pop %ebx 10f84d: 5e pop %esi 10f84e: 5f pop %edi 10f84f: c9 leave 10f850: c3 ret 10f851: 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); 10f854: e8 47 2b 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10f859: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 10f85f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f864: eb e3 jmp 10f849 <== NOT EXECUTED 10f866: 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 ); 10f868: e8 33 2b 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10f86d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 10f873: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f878: eb cf jmp 10f849 <== NOT EXECUTED 10f87a: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 10f87c: e8 1f 2b 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10f881: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10f887: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f88c: eb bb jmp 10f849 <== 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 ); 10f88e: e8 0d 2b 00 00 call 1123a0 <__errno> 10f893: c7 00 15 00 00 00 movl $0x15,(%eax) 10f899: b8 ff ff ff ff mov $0xffffffff,%eax 10f89e: eb a9 jmp 10f849 <== ALWAYS TAKEN 00156d14 : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 156d14: 55 push %ebp 156d15: 89 e5 mov %esp,%ebp 156d17: 57 push %edi 156d18: 56 push %esi 156d19: 53 push %ebx 156d1a: 83 ec 2c sub $0x2c,%esp 156d1d: 8b 5d 08 mov 0x8(%ebp),%ebx /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 156d20: 3b 1d 8c 5b 16 00 cmp 0x165b8c,%ebx 156d26: 72 48 jb 156d70 <== NEVER TAKEN 156d28: 31 db xor %ebx,%ebx <== NOT EXECUTED /* * Make sure we are working on a directory */ loc = iop->pathinfo; 156d2a: 8d 45 d4 lea -0x2c(%ebp),%eax 156d2d: 8d 73 18 lea 0x18(%ebx),%esi 156d30: b9 05 00 00 00 mov $0x5,%ecx 156d35: 89 c7 mov %eax,%edi 156d37: f3 a5 rep movsl %ds:(%esi),%es:(%edi) if ( !loc.ops->node_type_h ) 156d39: 8b 55 e0 mov -0x20(%ebp),%edx 156d3c: 8b 52 10 mov 0x10(%edx),%edx 156d3f: 85 d2 test %edx,%edx 156d41: 74 4d je 156d90 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 156d43: 83 ec 0c sub $0xc,%esp 156d46: 50 push %eax 156d47: ff d2 call *%edx 156d49: 83 c4 10 add $0x10,%esp 156d4c: 48 dec %eax 156d4d: 75 2d jne 156d7c /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 156d4f: 8b 43 3c mov 0x3c(%ebx),%eax 156d52: 8b 40 08 mov 0x8(%eax),%eax 156d55: 85 c0 test %eax,%eax 156d57: 74 37 je 156d90 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 156d59: 52 push %edx 156d5a: ff 75 10 pushl 0x10(%ebp) 156d5d: ff 75 0c pushl 0xc(%ebp) 156d60: 53 push %ebx 156d61: ff d0 call *%eax 156d63: 83 c4 10 add $0x10,%esp } 156d66: 8d 65 f4 lea -0xc(%ebp),%esp 156d69: 5b pop %ebx 156d6a: 5e pop %esi 156d6b: 5f pop %edi 156d6c: c9 leave 156d6d: c3 ret 156d6e: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 156d70: c1 e3 06 shl $0x6,%ebx 156d73: 03 1d d8 d6 16 00 add 0x16d6d8,%ebx 156d79: eb af jmp 156d2a <== ALWAYS TAKEN 156d7b: 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 ); 156d7c: e8 3b a3 fe ff call 1410bc <__errno> 156d81: c7 00 14 00 00 00 movl $0x14,(%eax) 156d87: b8 ff ff ff ff mov $0xffffffff,%eax 156d8c: eb d8 jmp 156d66 <== ALWAYS TAKEN 156d8e: 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 ); 156d90: e8 27 a3 fe ff call 1410bc <__errno> <== NOT EXECUTED 156d95: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 156d9b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 156da0: eb c4 jmp 156d66 <== NOT EXECUTED 0012b52c : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 12b52c: 55 push %ebp <== NOT EXECUTED 12b52d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b52f: a1 a4 7c 16 00 mov 0x167ca4,%eax <== NOT EXECUTED 12b534: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED return _POSIX_types_Gid; } 12b537: c9 leave <== NOT EXECUTED 12b538: c3 ret <== NOT EXECUTED 0012bac4 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 12bac4: 55 push %ebp 12bac5: 89 e5 mov %esp,%ebp 12bac7: 57 push %edi 12bac8: 56 push %esi 12bac9: 53 push %ebx 12baca: 83 ec 1c sub $0x1c,%esp 12bacd: 89 c3 mov %eax,%ebx 12bacf: 89 55 e4 mov %edx,-0x1c(%ebp) 12bad2: 89 ce mov %ecx,%esi FILE *fp; int match; init_etc_passwd_group(); 12bad4: e8 af fe ff ff call 12b988 <== ALWAYS TAKEN if ((fp = fopen("/etc/group", "r")) == NULL) { 12bad9: 83 ec 08 sub $0x8,%esp 12badc: 68 cd a7 15 00 push $0x15a7cd 12bae1: 68 17 75 15 00 push $0x157517 12bae6: e8 0d 5f 01 00 call 1419f8 12baeb: 89 c7 mov %eax,%edi 12baed: 83 c4 10 add $0x10,%esp 12baf0: 85 c0 test %eax,%eax 12baf2: 75 22 jne 12bb16 <== NEVER TAKEN 12baf4: e9 8b 00 00 00 jmp 12bb84 <== NOT EXECUTED 12baf9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 12bafc: 83 ec 08 sub $0x8,%esp 12baff: 53 push %ebx 12bb00: ff 36 pushl (%esi) 12bb02: e8 75 aa 01 00 call 14657c 12bb07: 83 c4 10 add $0x10,%esp 12bb0a: 85 c0 test %eax,%eax 12bb0c: 0f 94 c0 sete %al 12bb0f: 0f b6 c0 movzbl %al,%eax } else { match = (grp->gr_gid == gid); } if (match) { 12bb12: 85 c0 test %eax,%eax 12bb14: 75 2e jne 12bb44 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 12bb16: 83 ec 0c sub $0xc,%esp 12bb19: ff 75 0c pushl 0xc(%ebp) 12bb1c: 8b 4d 08 mov 0x8(%ebp),%ecx 12bb1f: 89 f2 mov %esi,%edx 12bb21: 89 f8 mov %edi,%eax 12bb23: e8 d4 fb ff ff call 12b6fc <== ALWAYS TAKEN 12bb28: 83 c4 10 add $0x10,%esp 12bb2b: 85 c0 test %eax,%eax 12bb2d: 74 31 je 12bb60 <== ALWAYS TAKEN errno = EINVAL; fclose(fp); return -1; } if (name) { 12bb2f: 85 db test %ebx,%ebx 12bb31: 75 c9 jne 12bafc <== NEVER TAKEN match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); 12bb33: 0f b7 46 08 movzwl 0x8(%esi),%eax <== NOT EXECUTED 12bb37: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED 12bb3a: 0f 94 c0 sete %al <== NOT EXECUTED 12bb3d: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED } if (match) { 12bb40: 85 c0 test %eax,%eax <== NOT EXECUTED 12bb42: 74 d2 je 12bb16 <== NOT EXECUTED fclose(fp); 12bb44: 83 ec 0c sub $0xc,%esp 12bb47: 57 push %edi 12bb48: e8 bb 56 01 00 call 141208 *result = grp; 12bb4d: 8b 45 10 mov 0x10(%ebp),%eax 12bb50: 89 30 mov %esi,(%eax) 12bb52: 31 c0 xor %eax,%eax return 0; 12bb54: 83 c4 10 add $0x10,%esp } } fclose(fp); errno = EINVAL; return -1; } 12bb57: 8d 65 f4 lea -0xc(%ebp),%esp 12bb5a: 5b pop %ebx 12bb5b: 5e pop %esi 12bb5c: 5f pop %edi 12bb5d: c9 leave 12bb5e: c3 ret 12bb5f: 90 nop <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; 12bb60: e8 57 55 01 00 call 1410bc <__errno> <== NOT EXECUTED 12bb65: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED fclose(fp); 12bb6b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bb6e: 57 push %edi <== NOT EXECUTED 12bb6f: e8 94 56 01 00 call 141208 <== NOT EXECUTED 12bb74: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return -1; 12bb79: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 12bb7c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12bb7f: 5b pop %ebx <== NOT EXECUTED 12bb80: 5e pop %esi <== NOT EXECUTED 12bb81: 5f pop %edi <== NOT EXECUTED 12bb82: c9 leave <== NOT EXECUTED 12bb83: c3 ret <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 12bb84: e8 33 55 01 00 call 1410bc <__errno> <== NOT EXECUTED 12bb89: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12bb8f: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED return -1; 12bb92: eb c3 jmp 12bb57 <== NOT EXECUTED 0012b814 : return NULL; return p; } struct group *getgrent(void) { 12b814: 55 push %ebp <== NOT EXECUTED 12b815: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b817: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED if (group_fp == NULL) 12b81a: a1 c4 d2 16 00 mov 0x16d2c4,%eax <== NOT EXECUTED 12b81f: 85 c0 test %eax,%eax <== NOT EXECUTED 12b821: 75 05 jne 12b828 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 12b823: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return &grent; } 12b825: c9 leave <== NOT EXECUTED 12b826: c3 ret <== NOT EXECUTED 12b827: 90 nop <== NOT EXECUTED struct group *getgrent(void) { if (group_fp == NULL) return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 12b828: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b82b: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12b830: b9 e0 d2 16 00 mov $0x16d2e0,%ecx <== NOT EXECUTED 12b835: ba a8 d3 16 00 mov $0x16d3a8,%edx <== NOT EXECUTED 12b83a: e8 bd fe ff ff call 12b6fc <== NOT EXECUTED 12b83f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12b842: 85 c0 test %eax,%eax <== NOT EXECUTED 12b844: 74 dd je 12b823 <== NOT EXECUTED 12b846: b8 a8 d3 16 00 mov $0x16d3a8,%eax <== NOT EXECUTED return NULL; return &grent; } 12b84b: c9 leave <== NOT EXECUTED 12b84c: c3 ret <== NOT EXECUTED 0012bbc0 : } struct group *getgrgid( gid_t gid ) { 12bbc0: 55 push %ebp <== NOT EXECUTED 12bbc1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bbc3: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 12bbc6: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 12bbc9: 50 push %eax <== NOT EXECUTED 12bbca: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12bbcf: 68 e0 d2 16 00 push $0x16d2e0 <== NOT EXECUTED 12bbd4: 68 a8 d3 16 00 push $0x16d3a8 <== NOT EXECUTED 12bbd9: 0f b7 45 08 movzwl 0x8(%ebp),%eax <== NOT EXECUTED 12bbdd: 50 push %eax <== NOT EXECUTED 12bbde: e8 b1 ff ff ff call 12bb94 <== NOT EXECUTED 12bbe3: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12bbe6: 85 c0 test %eax,%eax <== NOT EXECUTED 12bbe8: 75 06 jne 12bbf0 <== NOT EXECUTED return NULL; return p; 12bbea: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED } 12bbed: c9 leave <== NOT EXECUTED 12bbee: c3 ret <== NOT EXECUTED 12bbef: 90 nop <== NOT EXECUTED gid_t gid ) { struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 12bbf0: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return p; } 12bbf2: c9 leave <== NOT EXECUTED 12bbf3: c3 ret <== NOT EXECUTED 0012bb94 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 12bb94: 55 push %ebp <== NOT EXECUTED 12bb95: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bb97: 53 push %ebx <== NOT EXECUTED 12bb98: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12bb9b: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 12bb9e: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 12bba1: 0f b7 55 08 movzwl 0x8(%ebp),%edx <== NOT EXECUTED 12bba5: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED 12bba8: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED 12bbab: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED 12bbae: 89 5d 0c mov %ebx,0xc(%ebp) <== NOT EXECUTED 12bbb1: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 12bbb4: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12bbb6: 5b pop %ebx <== NOT EXECUTED 12bbb7: 5b pop %ebx <== NOT EXECUTED 12bbb8: c9 leave <== NOT EXECUTED char *buffer, size_t bufsize, struct group **result ) { return getgr_r(NULL, gid, grp, buffer, bufsize, result); 12bbb9: e9 06 ff ff ff jmp 12bac4 <== NOT EXECUTED 0012bc20 : } struct group *getgrnam( const char *name ) { 12bc20: 55 push %ebp 12bc21: 89 e5 mov %esp,%ebp 12bc23: 83 ec 24 sub $0x24,%esp struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 12bc26: 8d 45 f4 lea -0xc(%ebp),%eax 12bc29: 50 push %eax 12bc2a: 68 c8 00 00 00 push $0xc8 12bc2f: 68 e0 d2 16 00 push $0x16d2e0 12bc34: 68 a8 d3 16 00 push $0x16d3a8 12bc39: ff 75 08 pushl 0x8(%ebp) 12bc3c: e8 b3 ff ff ff call 12bbf4 <== ALWAYS TAKEN 12bc41: 83 c4 20 add $0x20,%esp 12bc44: 85 c0 test %eax,%eax 12bc46: 75 08 jne 12bc50 <== ALWAYS TAKEN return NULL; return p; 12bc48: 8b 45 f4 mov -0xc(%ebp),%eax } 12bc4b: c9 leave 12bc4c: c3 ret 12bc4d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED const char *name ) { struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 12bc50: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return p; } 12bc52: c9 leave <== NOT EXECUTED 12bc53: c3 ret <== NOT EXECUTED 0012bbf4 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 12bbf4: 55 push %ebp 12bbf5: 89 e5 mov %esp,%ebp 12bbf7: 53 push %ebx 12bbf8: 83 ec 04 sub $0x4,%esp 12bbfb: 8b 45 08 mov 0x8(%ebp),%eax 12bbfe: 8b 4d 0c mov 0xc(%ebp),%ecx 12bc01: 8b 55 10 mov 0x10(%ebp),%edx return getgr_r(name, 0, grp, buffer, bufsize, result); 12bc04: 8b 5d 18 mov 0x18(%ebp),%ebx 12bc07: 89 5d 10 mov %ebx,0x10(%ebp) 12bc0a: 8b 5d 14 mov 0x14(%ebp),%ebx 12bc0d: 89 5d 0c mov %ebx,0xc(%ebp) 12bc10: 89 55 08 mov %edx,0x8(%ebp) 12bc13: 31 d2 xor %edx,%edx } 12bc15: 5b pop %ebx 12bc16: 5b pop %ebx 12bc17: c9 leave char *buffer, size_t bufsize, struct group **result ) { return getgr_r(name, 0, grp, buffer, bufsize, result); 12bc18: e9 a7 fe ff ff jmp 12bac4 <== ALWAYS TAKEN 0012444c : * * 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83 */ pid_t getpid( void ) { 12444c: 55 push %ebp <== NOT EXECUTED 12444d: 89 e5 mov %esp,%ebp <== NOT EXECUTED return _Objects_Local_node; } 12444f: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED 124454: c9 leave <== NOT EXECUTED 124455: c3 ret <== NOT EXECUTED 0012bc90 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 12bc90: 55 push %ebp 12bc91: 89 e5 mov %esp,%ebp 12bc93: 57 push %edi 12bc94: 56 push %esi 12bc95: 53 push %ebx 12bc96: 83 ec 1c sub $0x1c,%esp 12bc99: 89 c3 mov %eax,%ebx 12bc9b: 89 55 e4 mov %edx,-0x1c(%ebp) 12bc9e: 89 ce mov %ecx,%esi FILE *fp; int match; init_etc_passwd_group(); 12bca0: e8 e3 fc ff ff call 12b988 <== ALWAYS TAKEN if ((fp = fopen("/etc/passwd", "r")) == NULL) { 12bca5: 83 ec 08 sub $0x8,%esp 12bca8: 68 cd a7 15 00 push $0x15a7cd 12bcad: 68 0b 75 15 00 push $0x15750b 12bcb2: e8 41 5d 01 00 call 1419f8 12bcb7: 89 c7 mov %eax,%edi 12bcb9: 83 c4 10 add $0x10,%esp 12bcbc: 85 c0 test %eax,%eax 12bcbe: 75 22 jne 12bce2 <== NEVER TAKEN 12bcc0: e9 8b 00 00 00 jmp 12bd50 <== NOT EXECUTED 12bcc5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 12bcc8: 83 ec 08 sub $0x8,%esp 12bccb: 53 push %ebx 12bccc: ff 36 pushl (%esi) 12bcce: e8 a9 a8 01 00 call 14657c 12bcd3: 83 c4 10 add $0x10,%esp 12bcd6: 85 c0 test %eax,%eax 12bcd8: 0f 94 c0 sete %al 12bcdb: 0f b6 c0 movzbl %al,%eax } else { match = (pwd->pw_uid == uid); } if (match) { 12bcde: 85 c0 test %eax,%eax 12bce0: 75 2e jne 12bd10 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 12bce2: 83 ec 0c sub $0xc,%esp 12bce5: ff 75 0c pushl 0xc(%ebp) 12bce8: 8b 4d 08 mov 0x8(%ebp),%ecx 12bceb: 89 f2 mov %esi,%edx 12bced: 89 f8 mov %edi,%eax 12bcef: e8 5c fb ff ff call 12b850 <== ALWAYS TAKEN 12bcf4: 83 c4 10 add $0x10,%esp 12bcf7: 85 c0 test %eax,%eax 12bcf9: 74 31 je 12bd2c <== ALWAYS TAKEN errno = EINVAL; fclose(fp); return -1; } if (name) { 12bcfb: 85 db test %ebx,%ebx 12bcfd: 75 c9 jne 12bcc8 <== NEVER TAKEN match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); 12bcff: 0f b7 46 08 movzwl 0x8(%esi),%eax <== NOT EXECUTED 12bd03: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED 12bd06: 0f 94 c0 sete %al <== NOT EXECUTED 12bd09: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED } if (match) { 12bd0c: 85 c0 test %eax,%eax <== NOT EXECUTED 12bd0e: 74 d2 je 12bce2 <== NOT EXECUTED fclose(fp); 12bd10: 83 ec 0c sub $0xc,%esp 12bd13: 57 push %edi 12bd14: e8 ef 54 01 00 call 141208 *result = pwd; 12bd19: 8b 45 10 mov 0x10(%ebp),%eax 12bd1c: 89 30 mov %esi,(%eax) 12bd1e: 31 c0 xor %eax,%eax return 0; 12bd20: 83 c4 10 add $0x10,%esp } } fclose(fp); errno = EINVAL; return -1; } 12bd23: 8d 65 f4 lea -0xc(%ebp),%esp 12bd26: 5b pop %ebx 12bd27: 5e pop %esi 12bd28: 5f pop %edi 12bd29: c9 leave 12bd2a: c3 ret 12bd2b: 90 nop <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; 12bd2c: e8 8b 53 01 00 call 1410bc <__errno> <== NOT EXECUTED 12bd31: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED fclose(fp); 12bd37: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bd3a: 57 push %edi <== NOT EXECUTED 12bd3b: e8 c8 54 01 00 call 141208 <== NOT EXECUTED 12bd40: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return -1; 12bd45: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 12bd48: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12bd4b: 5b pop %ebx <== NOT EXECUTED 12bd4c: 5e pop %esi <== NOT EXECUTED 12bd4d: 5f pop %edi <== NOT EXECUTED 12bd4e: c9 leave <== NOT EXECUTED 12bd4f: c3 ret <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; 12bd50: e8 67 53 01 00 call 1410bc <__errno> <== NOT EXECUTED 12bd55: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12bd5b: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED return -1; 12bd5e: eb c3 jmp 12bd23 <== NOT EXECUTED 0012b94c : return NULL; return p; } struct passwd *getpwent(void) { 12b94c: 55 push %ebp <== NOT EXECUTED 12b94d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b94f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED if (passwd_fp == NULL) 12b952: a1 c4 d1 16 00 mov 0x16d1c4,%eax <== NOT EXECUTED 12b957: 85 c0 test %eax,%eax <== NOT EXECUTED 12b959: 75 05 jne 12b960 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 12b95b: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return &pwent; } 12b95d: c9 leave <== NOT EXECUTED 12b95e: c3 ret <== NOT EXECUTED 12b95f: 90 nop <== NOT EXECUTED struct passwd *getpwent(void) { if (passwd_fp == NULL) return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 12b960: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b963: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12b968: b9 e0 d1 16 00 mov $0x16d1e0,%ecx <== NOT EXECUTED 12b96d: ba a8 d2 16 00 mov $0x16d2a8,%edx <== NOT EXECUTED 12b972: e8 d9 fe ff ff call 12b850 <== NOT EXECUTED 12b977: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12b97a: 85 c0 test %eax,%eax <== NOT EXECUTED 12b97c: 74 dd je 12b95b <== NOT EXECUTED 12b97e: b8 a8 d2 16 00 mov $0x16d2a8,%eax <== NOT EXECUTED return NULL; return &pwent; } 12b983: c9 leave <== NOT EXECUTED 12b984: c3 ret <== NOT EXECUTED 0012bdec : } struct passwd *getpwnam( const char *name ) { 12bdec: 55 push %ebp 12bded: 89 e5 mov %esp,%ebp 12bdef: 83 ec 24 sub $0x24,%esp struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 12bdf2: 8d 45 f4 lea -0xc(%ebp),%eax 12bdf5: 50 push %eax 12bdf6: 68 c8 00 00 00 push $0xc8 12bdfb: 68 e0 d1 16 00 push $0x16d1e0 12be00: 68 a8 d2 16 00 push $0x16d2a8 12be05: ff 75 08 pushl 0x8(%ebp) 12be08: e8 b3 ff ff ff call 12bdc0 <== ALWAYS TAKEN 12be0d: 83 c4 20 add $0x20,%esp 12be10: 85 c0 test %eax,%eax 12be12: 75 08 jne 12be1c <== ALWAYS TAKEN return NULL; return p; 12be14: 8b 45 f4 mov -0xc(%ebp),%eax } 12be17: c9 leave 12be18: c3 ret 12be19: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED const char *name ) { struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 12be1c: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return p; } 12be1e: c9 leave <== NOT EXECUTED 12be1f: c3 ret <== NOT EXECUTED 0012bdc0 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 12bdc0: 55 push %ebp 12bdc1: 89 e5 mov %esp,%ebp 12bdc3: 53 push %ebx 12bdc4: 83 ec 04 sub $0x4,%esp 12bdc7: 8b 45 08 mov 0x8(%ebp),%eax 12bdca: 8b 4d 0c mov 0xc(%ebp),%ecx 12bdcd: 8b 55 10 mov 0x10(%ebp),%edx return getpw_r(name, 0, pwd, buffer, bufsize, result); 12bdd0: 8b 5d 18 mov 0x18(%ebp),%ebx 12bdd3: 89 5d 10 mov %ebx,0x10(%ebp) 12bdd6: 8b 5d 14 mov 0x14(%ebp),%ebx 12bdd9: 89 5d 0c mov %ebx,0xc(%ebp) 12bddc: 89 55 08 mov %edx,0x8(%ebp) 12bddf: 31 d2 xor %edx,%edx } 12bde1: 5b pop %ebx 12bde2: 5b pop %ebx 12bde3: c9 leave char *buffer, size_t bufsize, struct passwd **result ) { return getpw_r(name, 0, pwd, buffer, bufsize, result); 12bde4: e9 a7 fe ff ff jmp 12bc90 <== ALWAYS TAKEN 0012bd8c : } struct passwd *getpwuid( uid_t uid ) { 12bd8c: 55 push %ebp <== NOT EXECUTED 12bd8d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bd8f: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 12bd92: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 12bd95: 50 push %eax <== NOT EXECUTED 12bd96: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12bd9b: 68 e0 d1 16 00 push $0x16d1e0 <== NOT EXECUTED 12bda0: 68 a8 d2 16 00 push $0x16d2a8 <== NOT EXECUTED 12bda5: 0f b7 45 08 movzwl 0x8(%ebp),%eax <== NOT EXECUTED 12bda9: 50 push %eax <== NOT EXECUTED 12bdaa: e8 b1 ff ff ff call 12bd60 <== NOT EXECUTED 12bdaf: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12bdb2: 85 c0 test %eax,%eax <== NOT EXECUTED 12bdb4: 75 06 jne 12bdbc <== NOT EXECUTED return NULL; return p; 12bdb6: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED } 12bdb9: c9 leave <== NOT EXECUTED 12bdba: c3 ret <== NOT EXECUTED 12bdbb: 90 nop <== NOT EXECUTED uid_t uid ) { struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 12bdbc: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return p; } 12bdbe: c9 leave <== NOT EXECUTED 12bdbf: c3 ret <== NOT EXECUTED 0012bd60 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 12bd60: 55 push %ebp <== NOT EXECUTED 12bd61: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bd63: 53 push %ebx <== NOT EXECUTED 12bd64: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12bd67: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 12bd6a: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 12bd6d: 0f b7 55 08 movzwl 0x8(%ebp),%edx <== NOT EXECUTED 12bd71: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED 12bd74: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED 12bd77: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED 12bd7a: 89 5d 0c mov %ebx,0xc(%ebp) <== NOT EXECUTED 12bd7d: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 12bd80: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12bd82: 5b pop %ebx <== NOT EXECUTED 12bd83: 5b pop %ebx <== NOT EXECUTED 12bd84: c9 leave <== NOT EXECUTED char *buffer, size_t bufsize, struct passwd **result ) { return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 12bd85: e9 06 ff ff ff jmp 12bc90 <== NOT EXECUTED 0010f8a0 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 10f8a0: 55 push %ebp 10f8a1: 89 e5 mov %esp,%ebp 10f8a3: 56 push %esi 10f8a4: 53 push %ebx 10f8a5: 83 ec 20 sub $0x20,%esp 10f8a8: 8b 5d 08 mov 0x8(%ebp),%ebx /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 10f8ab: 85 db test %ebx,%ebx 10f8ad: 74 42 je 10f8f1 <== ALWAYS TAKEN { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 10f8af: 9c pushf 10f8b0: fa cli 10f8b1: 5e pop %esi _TOD_Get( &now ); 10f8b2: 83 ec 0c sub $0xc,%esp 10f8b5: 8d 45 f0 lea -0x10(%ebp),%eax 10f8b8: 50 push %eax 10f8b9: e8 ae 08 00 00 call 11016c <_TOD_Get> <== ALWAYS TAKEN _ISR_Enable(level); 10f8be: 56 push %esi 10f8bf: 9d popf useconds = (suseconds_t)now.tv_nsec; 10f8c0: 8b 4d f4 mov -0xc(%ebp),%ecx useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 10f8c3: 8b 45 f0 mov -0x10(%ebp),%eax 10f8c6: 89 03 mov %eax,(%ebx) time->tv_usec = useconds; 10f8c8: be d3 4d 62 10 mov $0x10624dd3,%esi 10f8cd: 89 c8 mov %ecx,%eax 10f8cf: f7 ee imul %esi 10f8d1: 89 45 e0 mov %eax,-0x20(%ebp) 10f8d4: 89 55 e4 mov %edx,-0x1c(%ebp) 10f8d7: 8b 75 e4 mov -0x1c(%ebp),%esi 10f8da: c1 fe 06 sar $0x6,%esi 10f8dd: 89 c8 mov %ecx,%eax 10f8df: 99 cltd 10f8e0: 29 d6 sub %edx,%esi 10f8e2: 89 73 04 mov %esi,0x4(%ebx) 10f8e5: 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; 10f8e7: 83 c4 10 add $0x10,%esp } 10f8ea: 8d 65 f8 lea -0x8(%ebp),%esp 10f8ed: 5b pop %ebx 10f8ee: 5e pop %esi 10f8ef: c9 leave 10f8f0: c3 ret void * __tz __attribute__((unused)) ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 10f8f1: e8 aa 2a 00 00 call 1123a0 <__errno> <== NOT EXECUTED 10f8f6: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 10f8fc: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return -1; 10f901: eb e7 jmp 10f8ea <== NOT EXECUTED 0010cff8 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 10cff8: 55 push %ebp <== NOT EXECUTED 10cff9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10cffb: a1 a4 7c 16 00 mov 0x167ca4,%eax <== NOT EXECUTED 10d000: 66 8b 40 32 mov 0x32(%eax),%ax <== NOT EXECUTED return _POSIX_types_Uid; } 10d004: c9 leave <== NOT EXECUTED 10d005: c3 ret <== NOT EXECUTED 00116dc8 : rtems_off64_t imfs_dir_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 116dc8: 55 push %ebp 116dc9: 89 e5 mov %esp,%ebp 116dcb: 57 push %edi 116dcc: 56 push %esi 116dcd: 53 push %ebx 116dce: 83 ec 1c sub $0x1c,%esp 116dd1: 8b 5d 08 mov 0x8(%ebp),%ebx switch( whence ) { 116dd4: 83 7d 14 01 cmpl $0x1,0x14(%ebp) 116dd8: 76 1e jbe 116df8 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 ); 116dda: e8 39 07 00 00 call 117518 <__errno> <== ALWAYS TAKEN 116ddf: c7 00 16 00 00 00 movl $0x16,(%eax) 116de5: b8 ff ff ff ff mov $0xffffffff,%eax 116dea: ba ff ff ff ff mov $0xffffffff,%edx break; } return 0; } 116def: 8d 65 f4 lea -0xc(%ebp),%esp 116df2: 5b pop %ebx 116df3: 5e pop %esi 116df4: 5f pop %edi 116df5: c9 leave 116df6: c3 ret 116df7: 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)) * 116df8: 6a 00 push $0x0 116dfa: 68 0c 01 00 00 push $0x10c 116dff: ff 73 10 pushl 0x10(%ebx) 116e02: ff 73 0c pushl 0xc(%ebx) 116e05: e8 a2 b6 00 00 call 1224ac <__divdi3> 116e0a: 83 c4 10 add $0x10,%esp 116e0d: 69 f2 0c 01 00 00 imul $0x10c,%edx,%esi 116e13: b9 0c 01 00 00 mov $0x10c,%ecx 116e18: f7 e1 mul %ecx 116e1a: 89 45 e0 mov %eax,-0x20(%ebp) 116e1d: 01 f2 add %esi,%edx 116e1f: 89 55 e4 mov %edx,-0x1c(%ebp) 116e22: 8b 45 e0 mov -0x20(%ebp),%eax 116e25: 8b 55 e4 mov -0x1c(%ebp),%edx 116e28: 89 43 0c mov %eax,0xc(%ebx) 116e2b: 89 53 10 mov %edx,0x10(%ebx) 116e2e: 31 c0 xor %eax,%eax 116e30: 31 d2 xor %edx,%edx rtems_set_errno_and_return_minus_one( EINVAL ); break; } return 0; } 116e32: 8d 65 f4 lea -0xc(%ebp),%esp 116e35: 5b pop %ebx 116e36: 5e pop %esi 116e37: 5f pop %edi 116e38: c9 leave 116e39: c3 ret 00116cfc : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 116cfc: 55 push %ebp 116cfd: 89 e5 mov %esp,%ebp 116cff: 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; 116d02: 8b 50 38 mov 0x38(%eax),%edx 116d05: 83 7a 4c 01 cmpl $0x1,0x4c(%edx) 116d09: 74 09 je 116d14 <== NEVER TAKEN 116d0b: 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; } 116d10: c9 leave <== NOT EXECUTED 116d11: c3 ret <== NOT EXECUTED 116d12: 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; 116d14: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) 116d1b: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) 116d22: 31 c0 xor %eax,%eax return 0; } 116d24: c9 leave 116d25: c3 ret 00116f18 : ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 116f18: 55 push %ebp 116f19: 89 e5 mov %esp,%ebp 116f1b: 57 push %edi 116f1c: 56 push %esi 116f1d: 53 push %ebx 116f1e: 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; 116f24: 8b 55 08 mov 0x8(%ebp),%edx 116f27: 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)); 116f2a: 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; 116f2d: 83 c0 54 add $0x54,%eax 116f30: 89 85 cc fe ff ff mov %eax,-0x134(%ebp) the_chain = &the_jnode->info.directory.Entries; if ( rtems_chain_is_empty( the_chain ) ) 116f36: 39 c3 cmp %eax,%ebx 116f38: 0f 84 22 01 00 00 je 117060 /* Move to the first of the desired directory entries */ the_node = the_chain->first; bytes_transferred = 0; first_entry = iop->offset; 116f3e: 8b 45 08 mov 0x8(%ebp),%eax 116f41: 8b 40 0c mov 0xc(%eax),%eax 116f44: 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); 116f4a: ba 6b 4c a4 07 mov $0x7a44c6b,%edx 116f4f: 8b 45 10 mov 0x10(%ebp),%eax 116f52: f7 e2 mul %edx 116f54: c1 ea 03 shr $0x3,%edx 116f57: 89 d0 mov %edx,%eax 116f59: c1 e0 05 shl $0x5,%eax 116f5c: 01 d0 add %edx,%eax 116f5e: 8d 04 42 lea (%edx,%eax,2),%eax 116f61: 8b 95 d0 fe ff ff mov -0x130(%ebp),%edx 116f67: 8d 04 82 lea (%edx,%eax,4),%eax 116f6a: 89 85 d4 fe ff ff mov %eax,-0x12c(%ebp) /* The directory was not empty so try to move to the desired entry in chain*/ for ( 116f70: 85 c0 test %eax,%eax 116f72: 0f 8e e8 00 00 00 jle 117060 <== ALWAYS TAKEN 116f78: 31 d2 xor %edx,%edx 116f7a: c7 85 c8 fe ff ff 00 movl $0x0,-0x138(%ebp) 116f81: 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 ); 116f84: 8d 85 dc fe ff ff lea -0x124(%ebp),%eax 116f8a: 89 85 b4 fe ff ff mov %eax,-0x14c(%ebp) 116f90: eb 22 jmp 116fb4 <== ALWAYS TAKEN 116f92: 66 90 xchg %ax,%ax <== NOT EXECUTED ); iop->offset = iop->offset + sizeof(struct dirent); bytes_transferred = bytes_transferred + sizeof( struct dirent ); } the_node = the_node->next; 116f94: 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( 116f96: 81 c2 0c 01 00 00 add $0x10c,%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 ( 116f9c: 3b 95 d4 fe ff ff cmp -0x12c(%ebp),%edx 116fa2: 0f 8d a8 00 00 00 jge 117050 <== 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 ) ){ 116fa8: 3b 9d cc fe ff ff cmp -0x134(%ebp),%ebx 116fae: 0f 84 9c 00 00 00 je 117050 /* entry in the read */ return bytes_transferred; /* Indicate that there are no more */ /* entries to return */ } if( current_entry >= first_entry ) { 116fb4: 39 95 d0 fe ff ff cmp %edx,-0x130(%ebp) 116fba: 7f d8 jg 116f94 /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; 116fbc: 89 95 e0 fe ff ff mov %edx,-0x120(%ebp) tmp_dirent.d_reclen = sizeof( struct dirent ); 116fc2: 66 c7 85 e4 fe ff ff movw $0x10c,-0x11c(%ebp) 116fc9: 0c 01 the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; 116fcb: 8b 43 38 mov 0x38(%ebx),%eax 116fce: 89 85 dc fe ff ff mov %eax,-0x124(%ebp) tmp_dirent.d_namlen = strlen( the_jnode->name ); 116fd4: 8d 73 0c lea 0xc(%ebx),%esi 116fd7: 31 c0 xor %eax,%eax 116fd9: b9 ff ff ff ff mov $0xffffffff,%ecx 116fde: 89 f7 mov %esi,%edi 116fe0: f2 ae repnz scas %es:(%edi),%al 116fe2: f7 d1 not %ecx 116fe4: 49 dec %ecx 116fe5: 66 89 8d e6 fe ff ff mov %cx,-0x11a(%ebp) strcpy( tmp_dirent.d_name, the_jnode->name ); 116fec: 83 ec 08 sub $0x8,%esp 116fef: 56 push %esi 116ff0: 8d 85 e8 fe ff ff lea -0x118(%ebp),%eax 116ff6: 50 push %eax 116ff7: 89 95 c4 fe ff ff mov %edx,-0x13c(%ebp) 116ffd: e8 6e 0f 00 00 call 117f70 memcpy( 117002: 8b 45 0c mov 0xc(%ebp),%eax 117005: 03 85 c8 fe ff ff add -0x138(%ebp),%eax 11700b: b9 43 00 00 00 mov $0x43,%ecx 117010: 89 c7 mov %eax,%edi 117012: 8b b5 b4 fe ff ff mov -0x14c(%ebp),%esi 117018: f3 a5 rep movsl %ds:(%esi),%es:(%edi) buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 11701a: 8b 45 08 mov 0x8(%ebp),%eax 11701d: 81 40 0c 0c 01 00 00 addl $0x10c,0xc(%eax) 117024: 83 50 10 00 adcl $0x0,0x10(%eax) bytes_transferred = bytes_transferred + sizeof( struct dirent ); 117028: 81 85 c8 fe ff ff 0c addl $0x10c,-0x138(%ebp) 11702f: 01 00 00 117032: 83 c4 10 add $0x10,%esp 117035: 8b 95 c4 fe ff ff mov -0x13c(%ebp),%edx } the_node = the_node->next; 11703b: 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( 11703d: 81 c2 0c 01 00 00 add $0x10c,%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 ( 117043: 3b 95 d4 fe ff ff cmp -0x12c(%ebp),%edx 117049: 0f 8c 59 ff ff ff jl 116fa8 <== ALWAYS TAKEN 11704f: 90 nop the_node = the_node->next; } /* Success */ return bytes_transferred; } 117050: 8b 85 c8 fe ff ff mov -0x138(%ebp),%eax 117056: 8d 65 f4 lea -0xc(%ebp),%esp 117059: 5b pop %ebx 11705a: 5e pop %esi 11705b: 5f pop %edi 11705c: c9 leave 11705d: c3 ret 11705e: 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 ( 117060: c7 85 c8 fe ff ff 00 movl $0x0,-0x138(%ebp) 117067: 00 00 00 the_node = the_node->next; } /* Success */ return bytes_transferred; } 11706a: 8b 85 c8 fe ff ff mov -0x138(%ebp),%eax 117070: 8d 65 f4 lea -0xc(%ebp),%esp 117073: 5b pop %ebx 117074: 5e pop %esi 117075: 5f pop %edi 117076: c9 leave 117077: c3 ret 00116e3c : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 116e3c: 55 push %ebp 116e3d: 89 e5 mov %esp,%ebp 116e3f: 56 push %esi 116e40: 53 push %ebx 116e41: 83 ec 10 sub $0x10,%esp 116e44: 8b 75 0c mov 0xc(%ebp),%esi IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 116e47: 8b 1e mov (%esi),%ebx 116e49: 8d 43 54 lea 0x54(%ebx),%eax 116e4c: 39 43 50 cmp %eax,0x50(%ebx) 116e4f: 0f 85 8f 00 00 00 jne 116ee4 /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 116e55: 8b 46 10 mov 0x10(%esi),%eax 116e58: 3b 58 1c cmp 0x1c(%eax),%ebx 116e5b: 0f 84 97 00 00 00 je 116ef8 /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 116e61: 8b 53 5c mov 0x5c(%ebx),%edx 116e64: 85 d2 test %edx,%edx 116e66: 0f 85 8c 00 00 00 jne 116ef8 <== ALWAYS TAKEN /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 116e6c: 8b 43 08 mov 0x8(%ebx),%eax 116e6f: 85 c0 test %eax,%eax 116e71: 74 13 je 116e86 116e73: 83 ec 0c sub $0xc,%esp 116e76: 53 push %ebx 116e77: e8 90 68 ff ff call 10d70c <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 116e7c: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 116e83: 83 c4 10 add $0x10,%esp /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 116e86: 66 ff 4b 34 decw 0x34(%ebx) IMFS_update_ctime( the_jnode ); 116e8a: 83 ec 08 sub $0x8,%esp 116e8d: 6a 00 push $0x0 116e8f: 8d 45 f0 lea -0x10(%ebp),%eax 116e92: 50 push %eax 116e93: e8 50 25 ff ff call 1093e8 116e98: 8b 45 f0 mov -0x10(%ebp),%eax 116e9b: 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) ) { 116e9e: 89 1c 24 mov %ebx,(%esp) 116ea1: e8 3e d6 ff ff call 1144e4 116ea6: 83 c4 10 add $0x10,%esp 116ea9: 85 c0 test %eax,%eax 116eab: 75 2b jne 116ed8 116ead: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx) 116eb2: 75 24 jne 116ed8 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 116eb4: a1 b8 90 12 00 mov 0x1290b8,%eax 116eb9: 8b 50 04 mov 0x4(%eax),%edx 116ebc: 3b 16 cmp (%esi),%edx 116ebe: 74 4c je 116f0c <== ALWAYS TAKEN /* * Free memory associated with a memory file. */ free( the_jnode ); 116ec0: 83 ec 0c sub $0xc,%esp 116ec3: 53 push %ebx 116ec4: e8 a3 24 ff ff call 10936c 116ec9: 31 c0 xor %eax,%eax 116ecb: 83 c4 10 add $0x10,%esp } return 0; } 116ece: 8d 65 f8 lea -0x8(%ebp),%esp 116ed1: 5b pop %ebx 116ed2: 5e pop %esi 116ed3: c9 leave 116ed4: c3 ret 116ed5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 116ed8: 31 c0 xor %eax,%eax } return 0; } 116eda: 8d 65 f8 lea -0x8(%ebp),%esp 116edd: 5b pop %ebx 116ede: 5e pop %esi 116edf: c9 leave 116ee0: c3 ret 116ee1: 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 ); 116ee4: e8 2f 06 00 00 call 117518 <__errno> <== ALWAYS TAKEN 116ee9: c7 00 5a 00 00 00 movl $0x5a,(%eax) 116eef: b8 ff ff ff ff mov $0xffffffff,%eax 116ef4: eb e4 jmp 116eda <== ALWAYS TAKEN 116ef6: 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 ); 116ef8: e8 1b 06 00 00 call 117518 <__errno> 116efd: c7 00 10 00 00 00 movl $0x10,(%eax) 116f03: b8 ff ff ff ff mov $0xffffffff,%eax 116f08: eb d0 jmp 116eda <== ALWAYS TAKEN 116f0a: 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; 116f0c: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED 116f13: eb ab jmp 116ec0 <== NOT EXECUTED 0012b988 : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 12b988: 55 push %ebp 12b989: 89 e5 mov %esp,%ebp 12b98b: 53 push %ebx 12b98c: 83 ec 04 sub $0x4,%esp FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 12b98f: 80 3d c0 d1 16 00 00 cmpb $0x0,0x16d1c0 12b996: 74 08 je 12b9a0 fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); } } 12b998: 8b 5d fc mov -0x4(%ebp),%ebx 12b99b: c9 leave 12b99c: c3 ret 12b99d: 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; 12b9a0: c6 05 c0 d1 16 00 01 movb $0x1,0x16d1c0 mkdir("/etc", 0777); 12b9a7: 83 ec 08 sub $0x8,%esp 12b9aa: 68 ff 01 00 00 push $0x1ff 12b9af: 68 f5 74 15 00 push $0x1574f5 12b9b4: e8 df 1b fe ff call 10d598 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 12b9b9: 59 pop %ecx 12b9ba: 5b pop %ebx 12b9bb: 68 cd a7 15 00 push $0x15a7cd 12b9c0: 68 0b 75 15 00 push $0x15750b 12b9c5: e8 2e 60 01 00 call 1419f8 12b9ca: 83 c4 10 add $0x10,%esp 12b9cd: 85 c0 test %eax,%eax 12b9cf: 74 77 je 12ba48 <== NEVER TAKEN fclose(fp); 12b9d1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b9d4: 50 push %eax <== NOT EXECUTED 12b9d5: e8 2e 58 01 00 call 141208 <== NOT EXECUTED 12b9da: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 12b9dd: 83 ec 08 sub $0x8,%esp 12b9e0: 68 cd a7 15 00 push $0x15a7cd 12b9e5: 68 17 75 15 00 push $0x157517 12b9ea: e8 09 60 01 00 call 1419f8 12b9ef: 83 c4 10 add $0x10,%esp 12b9f2: 85 c0 test %eax,%eax 12b9f4: 74 12 je 12ba08 <== NEVER TAKEN fclose(fp); 12b9f6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b9f9: 50 push %eax <== NOT EXECUTED 12b9fa: e8 09 58 01 00 call 141208 <== NOT EXECUTED 12b9ff: 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); } } 12ba02: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12ba05: c9 leave <== NOT EXECUTED 12ba06: c3 ret <== NOT EXECUTED 12ba07: 90 nop <== NOT EXECUTED * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { 12ba08: 83 ec 08 sub $0x8,%esp 12ba0b: 68 50 a3 15 00 push $0x15a350 12ba10: 68 17 75 15 00 push $0x157517 12ba15: e8 de 5f 01 00 call 1419f8 12ba1a: 89 c3 mov %eax,%ebx 12ba1c: 83 c4 10 add $0x10,%esp 12ba1f: 85 c0 test %eax,%eax 12ba21: 0f 84 71 ff ff ff je 12b998 <== ALWAYS TAKEN fprintf( fp, "root:x:0:root\n" 12ba27: 50 push %eax 12ba28: 6a 2a push $0x2a 12ba2a: 6a 01 push $0x1 12ba2c: 68 90 e7 15 00 push $0x15e790 12ba31: e8 5a 70 01 00 call 142a90 "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 12ba36: 89 1c 24 mov %ebx,(%esp) 12ba39: e8 ca 57 01 00 call 141208 12ba3e: 83 c4 10 add $0x10,%esp 12ba41: e9 52 ff ff ff jmp 12b998 <== ALWAYS TAKEN 12ba46: 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) { 12ba48: 83 ec 08 sub $0x8,%esp 12ba4b: 68 50 a3 15 00 push $0x15a350 12ba50: 68 0b 75 15 00 push $0x15750b 12ba55: e8 9e 5f 01 00 call 1419f8 12ba5a: 89 c3 mov %eax,%ebx 12ba5c: 83 c4 10 add $0x10,%esp 12ba5f: 85 c0 test %eax,%eax 12ba61: 0f 84 76 ff ff ff je 12b9dd <== ALWAYS TAKEN fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 12ba67: 50 push %eax 12ba68: 6a 66 push $0x66 12ba6a: 6a 01 push $0x1 12ba6c: 68 28 e7 15 00 push $0x15e728 12ba71: e8 1a 70 01 00 call 142a90 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 12ba76: 89 1c 24 mov %ebx,(%esp) 12ba79: e8 8a 57 01 00 call 141208 12ba7e: 83 c4 10 add $0x10,%esp 12ba81: e9 57 ff ff ff jmp 12b9dd <== ALWAYS TAKEN 0010b6cc : int ioctl( int fd, ioctl_command_t command, ... ) { 10b6cc: 55 push %ebp 10b6cd: 89 e5 mov %esp,%ebp 10b6cf: 83 ec 08 sub $0x8,%esp 10b6d2: 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 ); 10b6d5: 3b 05 8c 74 12 00 cmp 0x12748c,%eax 10b6db: 73 2f jae 10b70c iop = rtems_libio_iop( fd ); 10b6dd: c1 e0 06 shl $0x6,%eax 10b6e0: 03 05 e0 b5 12 00 add 0x12b5e0,%eax rtems_libio_check_is_open(iop); 10b6e6: f6 40 15 01 testb $0x1,0x15(%eax) 10b6ea: 74 20 je 10b70c <== ALWAYS TAKEN va_start(ap, command); buffer = va_arg(ap, void *); 10b6ec: 8b 4d 10 mov 0x10(%ebp),%ecx /* * Now process the ioctl(). */ if ( !iop->handlers ) 10b6ef: 8b 50 3c mov 0x3c(%eax),%edx 10b6f2: 85 d2 test %edx,%edx 10b6f4: 74 16 je 10b70c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) 10b6f6: 8b 52 10 mov 0x10(%edx),%edx 10b6f9: 85 d2 test %edx,%edx 10b6fb: 74 21 je 10b71e <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 10b6fd: 83 ec 04 sub $0x4,%esp 10b700: 51 push %ecx 10b701: ff 75 0c pushl 0xc(%ebp) 10b704: 50 push %eax 10b705: ff d2 call *%edx return rc; 10b707: 83 c4 10 add $0x10,%esp } 10b70a: c9 leave 10b70b: c3 ret /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 10b70c: e8 1b c0 00 00 call 11772c <__errno> 10b711: c7 00 09 00 00 00 movl $0x9,(%eax) 10b717: 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; } 10b71c: c9 leave 10b71d: 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 ); 10b71e: e8 09 c0 00 00 call 11772c <__errno> <== NOT EXECUTED 10b723: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10b729: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); return rc; } 10b72e: c9 leave <== NOT EXECUTED 10b72f: c3 ret <== NOT EXECUTED 00109930 : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 109930: 55 push %ebp <== NOT EXECUTED 109931: 89 e5 mov %esp,%ebp <== NOT EXECUTED 109933: 56 push %esi <== NOT EXECUTED 109934: 53 push %ebx <== NOT EXECUTED 109935: 89 d6 mov %edx,%esi <== NOT EXECUTED 109937: 88 c3 mov %al,%bl <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 109939: 8b 42 30 mov 0x30(%edx),%eax <== NOT EXECUTED 10993c: a8 20 test $0x20,%al <== NOT EXECUTED 10993e: 74 03 je 109943 <== NOT EXECUTED c &= 0x7f; 109940: 83 e3 7f and $0x7f,%ebx <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 109943: f6 c4 02 test $0x2,%ah <== NOT EXECUTED 109946: 74 18 je 109960 <== NOT EXECUTED c = tolower (c); 109948: 0f b6 db movzbl %bl,%ebx <== NOT EXECUTED 10994b: 8b 15 88 30 12 00 mov 0x123088,%edx <== NOT EXECUTED 109951: 0f be 54 1a 01 movsbl 0x1(%edx,%ebx,1),%edx <== NOT EXECUTED 109956: 83 e2 03 and $0x3,%edx <== NOT EXECUTED 109959: 4a dec %edx <== NOT EXECUTED 10995a: 0f 84 98 00 00 00 je 1099f8 <== NOT EXECUTED if (c == '\r') { 109960: 80 fb 0d cmp $0xd,%bl <== NOT EXECUTED 109963: 74 33 je 109998 <== 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)) { 109965: 80 fb 0a cmp $0xa,%bl <== NOT EXECUTED 109968: 0f 84 82 00 00 00 je 1099f0 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 10996e: 84 db test %bl,%bl <== NOT EXECUTED 109970: 75 3a jne 1099ac <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 109972: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED 109975: 8b 15 e8 2f 12 00 mov 0x122fe8,%edx <== NOT EXECUTED 10997b: 4a dec %edx <== NOT EXECUTED 10997c: 39 d0 cmp %edx,%eax <== NOT EXECUTED 10997e: 7d 1c jge 10999c <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 109980: f6 46 3c 08 testb $0x8,0x3c(%esi) <== NOT EXECUTED 109984: 75 7a jne 109a00 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 109986: 8b 56 1c mov 0x1c(%esi),%edx <== NOT EXECUTED 109989: 88 1c 02 mov %bl,(%edx,%eax,1) <== NOT EXECUTED 10998c: 40 inc %eax <== NOT EXECUTED 10998d: 89 46 20 mov %eax,0x20(%esi) <== NOT EXECUTED 109990: 31 c0 xor %eax,%eax <== NOT EXECUTED } return 0; } 109992: 5b pop %ebx <== NOT EXECUTED 109993: 5e pop %esi <== NOT EXECUTED 109994: c9 leave <== NOT EXECUTED 109995: c3 ret <== NOT EXECUTED 109996: 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) 109998: 84 c0 test %al,%al <== NOT EXECUTED 10999a: 79 08 jns 1099a4 <== 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; 10999c: 31 c0 xor %eax,%eax <== NOT EXECUTED } return 0; } 10999e: 5b pop %ebx <== NOT EXECUTED 10999f: 5e pop %esi <== NOT EXECUTED 1099a0: c9 leave <== NOT EXECUTED 1099a1: c3 ret <== NOT EXECUTED 1099a2: 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) 1099a4: f6 c4 01 test $0x1,%ah <== NOT EXECUTED 1099a7: 74 03 je 1099ac <== NOT EXECUTED 1099a9: b3 0a mov $0xa,%bl <== NOT EXECUTED 1099ab: 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)) { 1099ac: 8b 46 3c mov 0x3c(%esi),%eax <== NOT EXECUTED 1099af: a8 02 test $0x2,%al <== NOT EXECUTED 1099b1: 74 bf je 109972 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 1099b3: 38 5e 43 cmp %bl,0x43(%esi) <== NOT EXECUTED 1099b6: 0f 84 a0 00 00 00 je 109a5c <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 1099bc: 38 5e 44 cmp %bl,0x44(%esi) <== NOT EXECUTED 1099bf: 74 5f je 109a20 <== NOT EXECUTED erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { 1099c1: 38 5e 45 cmp %bl,0x45(%esi) <== NOT EXECUTED 1099c4: 74 20 je 1099e6 <== NOT EXECUTED return 1; } else if (c == '\n') { 1099c6: 80 fb 0a cmp $0xa,%bl <== NOT EXECUTED 1099c9: 74 69 je 109a34 <== 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]) 1099cb: 38 5e 4c cmp %bl,0x4c(%esi) <== NOT EXECUTED 1099ce: 74 05 je 1099d5 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { 1099d0: 38 5e 51 cmp %bl,0x51(%esi) <== NOT EXECUTED 1099d3: 75 9d jne 109972 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 1099d5: a8 08 test $0x8,%al <== NOT EXECUTED 1099d7: 75 3b jne 109a14 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 1099d9: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED 1099dc: 8b 56 1c mov 0x1c(%esi),%edx <== NOT EXECUTED 1099df: 88 1c 02 mov %bl,(%edx,%eax,1) <== NOT EXECUTED 1099e2: 40 inc %eax <== NOT EXECUTED 1099e3: 89 46 20 mov %eax,0x20(%esi) <== NOT EXECUTED 1099e6: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED return 1; 1099eb: eb a5 jmp 109992 <== NOT EXECUTED 1099ed: 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)) { 1099f0: a8 40 test $0x40,%al <== NOT EXECUTED 1099f2: 74 b8 je 1099ac <== NOT EXECUTED 1099f4: b3 0d mov $0xd,%bl <== NOT EXECUTED 1099f6: eb b4 jmp 1099ac <== 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); 1099f8: 83 c3 20 add $0x20,%ebx <== NOT EXECUTED 1099fb: e9 60 ff ff ff jmp 109960 <== NOT EXECUTED /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 109a00: 0f b6 c3 movzbl %bl,%eax <== NOT EXECUTED 109a03: 89 f2 mov %esi,%edx <== NOT EXECUTED 109a05: e8 f6 fc ff ff call 109700 <== NOT EXECUTED 109a0a: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED 109a0d: e9 74 ff ff ff jmp 109986 <== NOT EXECUTED 109a12: 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); 109a14: 0f b6 c3 movzbl %bl,%eax <== NOT EXECUTED 109a17: 89 f2 mov %esi,%edx <== NOT EXECUTED 109a19: e8 e2 fc ff ff call 109700 <== NOT EXECUTED 109a1e: eb b9 jmp 1099d9 <== 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); 109a20: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED 109a25: 89 f0 mov %esi,%eax <== NOT EXECUTED 109a27: e8 38 fd ff ff call 109764 <== NOT EXECUTED 109a2c: 31 c0 xor %eax,%eax <== NOT EXECUTED return 0; 109a2e: e9 5f ff ff ff jmp 109992 <== NOT EXECUTED 109a33: 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)) 109a34: a8 48 test $0x48,%al <== NOT EXECUTED 109a36: 74 0c je 109a44 <== NOT EXECUTED echo (c, tty); 109a38: 89 f2 mov %esi,%edx <== NOT EXECUTED 109a3a: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED 109a3f: e8 bc fc ff ff call 109700 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 109a44: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED 109a47: 8b 56 1c mov 0x1c(%esi),%edx <== NOT EXECUTED 109a4a: c6 04 02 0a movb $0xa,(%edx,%eax,1) <== NOT EXECUTED 109a4e: 40 inc %eax <== NOT EXECUTED 109a4f: 89 46 20 mov %eax,0x20(%esi) <== NOT EXECUTED 109a52: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED return 1; 109a57: e9 36 ff ff ff jmp 109992 <== 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); 109a5c: 31 d2 xor %edx,%edx <== NOT EXECUTED 109a5e: 89 f0 mov %esi,%eax <== NOT EXECUTED 109a60: e8 ff fc ff ff call 109764 <== NOT EXECUTED 109a65: 31 c0 xor %eax,%eax <== NOT EXECUTED return 0; 109a67: e9 26 ff ff ff jmp 109992 <== NOT EXECUTED 00124478 : * These are directly supported (and completely correct) in the posix api. */ #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { 124478: 55 push %ebp <== NOT EXECUTED 124479: 89 e5 mov %esp,%ebp <== NOT EXECUTED return 0; } 12447b: 31 c0 xor %eax,%eax <== NOT EXECUTED 12447d: c9 leave <== NOT EXECUTED 12447e: c3 ret <== NOT EXECUTED 0011d798 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 11d798: 55 push %ebp 11d799: 89 e5 mov %esp,%ebp 11d79b: 53 push %ebx 11d79c: 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())) 11d79f: 83 3d 00 55 12 00 03 cmpl $0x3,0x125500 11d7a6: 74 08 je 11d7b0 */ fclose (stdin); fclose (stdout); fclose (stderr); } 11d7a8: 8b 5d fc mov -0x4(%ebp),%ebx 11d7ab: c9 leave 11d7ac: c3 ret 11d7ad: 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) { 11d7b0: 8b 1d 00 03 12 00 mov 0x120300,%ebx 11d7b6: 39 1d a0 30 12 00 cmp %ebx,0x1230a0 11d7bc: 74 12 je 11d7d0 _wrapup_reent(_global_impure_ptr); 11d7be: 83 ec 0c sub $0xc,%esp 11d7c1: 53 push %ebx 11d7c2: e8 f5 04 00 00 call 11dcbc <_wrapup_reent> <== ALWAYS TAKEN /* 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; 11d7c7: 89 1d a0 30 12 00 mov %ebx,0x1230a0 11d7cd: 83 c4 10 add $0x10,%esp * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 11d7d0: 83 ec 0c sub $0xc,%esp 11d7d3: ff 73 04 pushl 0x4(%ebx) 11d7d6: e8 11 4d ff ff call 1124ec fclose (stdout); 11d7db: 5a pop %edx 11d7dc: a1 a0 30 12 00 mov 0x1230a0,%eax 11d7e1: ff 70 08 pushl 0x8(%eax) 11d7e4: e8 03 4d ff ff call 1124ec fclose (stderr); 11d7e9: 58 pop %eax 11d7ea: a1 a0 30 12 00 mov 0x1230a0,%eax 11d7ef: ff 70 0c pushl 0xc(%eax) 11d7f2: e8 f5 4c ff ff call 1124ec 11d7f7: 83 c4 10 add $0x10,%esp } 11d7fa: 8b 5d fc mov -0x4(%ebp),%ebx 11d7fd: c9 leave 11d7fe: c3 ret 0012be84 : int link( const char *existing, const char *new ) { 12be84: 55 push %ebp 12be85: 89 e5 mov %esp,%ebp 12be87: 57 push %edi 12be88: 56 push %esi 12be89: 53 push %ebx 12be8a: 83 ec 48 sub $0x48,%esp 12be8d: 8b 55 08 mov 0x8(%ebp),%edx /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 12be90: 31 c0 xor %eax,%eax 12be92: b9 ff ff ff ff mov $0xffffffff,%ecx 12be97: 89 d7 mov %edx,%edi 12be99: f2 ae repnz scas %es:(%edi),%al 12be9b: f7 d1 not %ecx 12be9d: 49 dec %ecx 12be9e: 6a 01 push $0x1 12bea0: 8d 45 d0 lea -0x30(%ebp),%eax 12bea3: 50 push %eax 12bea4: 6a 00 push $0x0 12bea6: 51 push %ecx 12bea7: 52 push %edx 12bea8: e8 93 0f fe ff call 10ce40 <== ALWAYS TAKEN 0, &existing_loc, true ); if ( result != 0 ) 12bead: 83 c4 20 add $0x20,%esp 12beb0: 85 c0 test %eax,%eax 12beb2: 0f 85 e0 00 00 00 jne 12bf98 /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 12beb8: 8b 55 0c mov 0xc(%ebp),%edx 12bebb: 8a 02 mov (%edx),%al 12bebd: 3c 2f cmp $0x2f,%al 12bebf: 74 0c je 12becd 12bec1: 3c 5c cmp $0x5c,%al 12bec3: 74 08 je 12becd <== ALWAYS TAKEN 12bec5: 84 c0 test %al,%al 12bec7: 0f 85 db 00 00 00 jne 12bfa8 <== NEVER TAKEN 12becd: 8d 5d bc lea -0x44(%ebp),%ebx 12bed0: 8b 35 a4 7c 16 00 mov 0x167ca4,%esi 12bed6: 83 c6 18 add $0x18,%esi 12bed9: b9 05 00 00 00 mov $0x5,%ecx 12bede: 89 df mov %ebx,%edi 12bee0: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12bee2: ba 01 00 00 00 mov $0x1,%edx if ( !parent_loc.ops->evalformake_h ) { 12bee7: 8b 45 c8 mov -0x38(%ebp),%eax 12beea: 8b 40 04 mov 0x4(%eax),%eax 12beed: 85 c0 test %eax,%eax 12beef: 74 7f je 12bf70 <== 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 ); 12bef1: 51 push %ecx 12bef2: 8d 4d e4 lea -0x1c(%ebp),%ecx 12bef5: 51 push %ecx 12bef6: 53 push %ebx 12bef7: 03 55 0c add 0xc(%ebp),%edx 12befa: 52 push %edx 12befb: ff d0 call *%eax 12befd: 89 c6 mov %eax,%esi if ( result != 0 ) { 12beff: 83 c4 10 add $0x10,%esp 12bf02: 85 c0 test %eax,%eax 12bf04: 0f 85 06 01 00 00 jne 12c010 /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 12bf0a: 8b 45 cc mov -0x34(%ebp),%eax 12bf0d: 3b 45 e0 cmp -0x20(%ebp),%eax 12bf10: 0f 85 ae 00 00 00 jne 12bfc4 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { 12bf16: 8b 55 c8 mov -0x38(%ebp),%edx 12bf19: 8b 42 08 mov 0x8(%edx),%eax 12bf1c: 85 c0 test %eax,%eax 12bf1e: 0f 84 17 01 00 00 je 12c03b <== 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 ); 12bf24: 52 push %edx 12bf25: ff 75 e4 pushl -0x1c(%ebp) 12bf28: 53 push %ebx 12bf29: 8d 55 d0 lea -0x30(%ebp),%edx 12bf2c: 52 push %edx 12bf2d: ff d0 call *%eax 12bf2f: 89 c6 mov %eax,%esi rtems_filesystem_freenode( &existing_loc ); 12bf31: 8b 45 dc mov -0x24(%ebp),%eax 12bf34: 83 c4 10 add $0x10,%esp 12bf37: 85 c0 test %eax,%eax 12bf39: 74 13 je 12bf4e <== ALWAYS TAKEN 12bf3b: 8b 40 1c mov 0x1c(%eax),%eax 12bf3e: 85 c0 test %eax,%eax 12bf40: 74 0c je 12bf4e <== ALWAYS TAKEN 12bf42: 83 ec 0c sub $0xc,%esp 12bf45: 8d 55 d0 lea -0x30(%ebp),%edx 12bf48: 52 push %edx 12bf49: ff d0 call *%eax 12bf4b: 83 c4 10 add $0x10,%esp rtems_filesystem_freenode( &parent_loc ); 12bf4e: 8b 45 c8 mov -0x38(%ebp),%eax 12bf51: 85 c0 test %eax,%eax 12bf53: 74 10 je 12bf65 <== ALWAYS TAKEN 12bf55: 8b 40 1c mov 0x1c(%eax),%eax 12bf58: 85 c0 test %eax,%eax 12bf5a: 74 09 je 12bf65 <== ALWAYS TAKEN 12bf5c: 83 ec 0c sub $0xc,%esp 12bf5f: 53 push %ebx 12bf60: ff d0 call *%eax 12bf62: 83 c4 10 add $0x10,%esp return result; } 12bf65: 89 f0 mov %esi,%eax 12bf67: 8d 65 f4 lea -0xc(%ebp),%esp 12bf6a: 5b pop %ebx 12bf6b: 5e pop %esi 12bf6c: 5f pop %edi 12bf6d: c9 leave 12bf6e: c3 ret 12bf6f: 90 nop <== NOT EXECUTED */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); 12bf70: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 12bf73: 85 c0 test %eax,%eax <== NOT EXECUTED 12bf75: 74 13 je 12bf8a <== NOT EXECUTED 12bf77: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12bf7a: 85 c0 test %eax,%eax <== NOT EXECUTED 12bf7c: 74 0c je 12bf8a <== NOT EXECUTED 12bf7e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bf81: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 12bf84: 52 push %edx <== NOT EXECUTED 12bf85: ff d0 call *%eax <== NOT EXECUTED 12bf87: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12bf8a: e8 2d 51 01 00 call 1410bc <__errno> <== NOT EXECUTED 12bf8f: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12bf95: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 12bf98: be ff ff ff ff mov $0xffffffff,%esi rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 12bf9d: 89 f0 mov %esi,%eax 12bf9f: 8d 65 f4 lea -0xc(%ebp),%esp 12bfa2: 5b pop %ebx 12bfa3: 5e pop %esi 12bfa4: 5f pop %edi 12bfa5: c9 leave 12bfa6: c3 ret 12bfa7: 90 nop <== NOT EXECUTED /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 12bfa8: 8d 5d bc lea -0x44(%ebp),%ebx 12bfab: 8b 35 a4 7c 16 00 mov 0x167ca4,%esi 12bfb1: 83 c6 04 add $0x4,%esi 12bfb4: b9 05 00 00 00 mov $0x5,%ecx 12bfb9: 89 df mov %ebx,%edi 12bfbb: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12bfbd: 31 d2 xor %edx,%edx 12bfbf: e9 23 ff ff ff jmp 12bee7 <== ALWAYS TAKEN * 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 ); 12bfc4: 8b 45 dc mov -0x24(%ebp),%eax 12bfc7: 85 c0 test %eax,%eax 12bfc9: 74 13 je 12bfde <== ALWAYS TAKEN 12bfcb: 8b 40 1c mov 0x1c(%eax),%eax 12bfce: 85 c0 test %eax,%eax 12bfd0: 74 0c je 12bfde <== ALWAYS TAKEN 12bfd2: 83 ec 0c sub $0xc,%esp 12bfd5: 8d 55 d0 lea -0x30(%ebp),%edx 12bfd8: 52 push %edx 12bfd9: ff d0 call *%eax 12bfdb: 83 c4 10 add $0x10,%esp rtems_filesystem_freenode( &parent_loc ); 12bfde: 8b 45 c8 mov -0x38(%ebp),%eax 12bfe1: 85 c0 test %eax,%eax 12bfe3: 74 10 je 12bff5 <== ALWAYS TAKEN 12bfe5: 8b 40 1c mov 0x1c(%eax),%eax 12bfe8: 85 c0 test %eax,%eax 12bfea: 74 09 je 12bff5 <== ALWAYS TAKEN 12bfec: 83 ec 0c sub $0xc,%esp 12bfef: 53 push %ebx 12bff0: ff d0 call *%eax 12bff2: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( EXDEV ); 12bff5: e8 c2 50 01 00 call 1410bc <__errno> 12bffa: c7 00 12 00 00 00 movl $0x12,(%eax) 12c000: be ff ff ff ff mov $0xffffffff,%esi rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 12c005: 89 f0 mov %esi,%eax 12c007: 8d 65 f4 lea -0xc(%ebp),%esp 12c00a: 5b pop %ebx 12c00b: 5e pop %esi 12c00c: 5f pop %edi 12c00d: c9 leave 12c00e: c3 ret 12c00f: 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 ); 12c010: 8b 45 dc mov -0x24(%ebp),%eax 12c013: 85 c0 test %eax,%eax 12c015: 74 13 je 12c02a <== ALWAYS TAKEN 12c017: 8b 40 1c mov 0x1c(%eax),%eax 12c01a: 85 c0 test %eax,%eax 12c01c: 74 0c je 12c02a <== ALWAYS TAKEN 12c01e: 83 ec 0c sub $0xc,%esp 12c021: 8d 55 d0 lea -0x30(%ebp),%edx 12c024: 52 push %edx 12c025: ff d0 call *%eax 12c027: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( result ); 12c02a: e8 8d 50 01 00 call 1410bc <__errno> 12c02f: 89 30 mov %esi,(%eax) 12c031: be ff ff ff ff mov $0xffffffff,%esi 12c036: e9 2a ff ff ff jmp 12bf65 <== ALWAYS TAKEN rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); 12c03b: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 12c03e: 85 c0 test %eax,%eax <== NOT EXECUTED 12c040: 74 16 je 12c058 <== NOT EXECUTED 12c042: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c045: 85 c0 test %eax,%eax <== NOT EXECUTED 12c047: 74 0f je 12c058 <== NOT EXECUTED 12c049: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c04c: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 12c04f: 52 push %edx <== NOT EXECUTED 12c050: ff d0 call *%eax <== NOT EXECUTED 12c052: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED 12c055: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 12c058: 85 d2 test %edx,%edx <== NOT EXECUTED 12c05a: 74 10 je 12c06c <== NOT EXECUTED 12c05c: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12c05f: 85 c0 test %eax,%eax <== NOT EXECUTED 12c061: 74 09 je 12c06c <== NOT EXECUTED 12c063: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c066: 53 push %ebx <== NOT EXECUTED 12c067: ff d0 call *%eax <== NOT EXECUTED 12c069: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12c06c: e8 4b 50 01 00 call 1410bc <__errno> <== NOT EXECUTED 12c071: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c077: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 12c07c: e9 e4 fe ff ff jmp 12bf65 <== NOT EXECUTED 0011d660 : off_t lseek( int fd, off_t offset, int whence ) { 11d660: 55 push %ebp 11d661: 89 e5 mov %esp,%ebp 11d663: 57 push %edi 11d664: 56 push %esi 11d665: 53 push %ebx 11d666: 83 ec 2c sub $0x2c,%esp 11d669: 8b 5d 08 mov 0x8(%ebp),%ebx 11d66c: 8b 55 0c mov 0xc(%ebp),%edx 11d66f: 8b 45 10 mov 0x10(%ebp),%eax rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 11d672: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx 11d678: 0f 83 c2 00 00 00 jae 11d740 iop = rtems_libio_iop( fd ); 11d67e: c1 e3 06 shl $0x6,%ebx 11d681: 03 1d a0 51 12 00 add 0x1251a0,%ebx rtems_libio_check_is_open(iop); 11d687: f6 43 15 01 testb $0x1,0x15(%ebx) 11d68b: 0f 84 af 00 00 00 je 11d740 <== ALWAYS TAKEN /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 11d691: 8b 4b 3c mov 0x3c(%ebx),%ecx 11d694: 89 4d d4 mov %ecx,-0x2c(%ebp) 11d697: 8b 49 14 mov 0x14(%ecx),%ecx 11d69a: 85 c9 test %ecx,%ecx 11d69c: 0f 84 b0 00 00 00 je 11d752 <== ALWAYS TAKEN /* * Now process the lseek(). */ old_offset = iop->offset; 11d6a2: 8b 73 0c mov 0xc(%ebx),%esi 11d6a5: 8b 7b 10 mov 0x10(%ebx),%edi 11d6a8: 89 75 e0 mov %esi,-0x20(%ebp) 11d6ab: 89 7d e4 mov %edi,-0x1c(%ebp) switch ( whence ) { 11d6ae: 83 f8 01 cmp $0x1,%eax 11d6b1: 74 71 je 11d724 11d6b3: 83 f8 02 cmp $0x2,%eax 11d6b6: 74 3c je 11d6f4 11d6b8: 85 c0 test %eax,%eax 11d6ba: 75 50 jne 11d70c case SEEK_SET: iop->offset = offset; 11d6bc: 89 d6 mov %edx,%esi 11d6be: 89 d7 mov %edx,%edi 11d6c0: c1 ff 1f sar $0x1f,%edi 11d6c3: 89 53 0c mov %edx,0xc(%ebx) 11d6c6: 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 ); 11d6c9: 50 push %eax 11d6ca: 57 push %edi 11d6cb: 56 push %esi 11d6cc: 53 push %ebx 11d6cd: 8b 4d d4 mov -0x2c(%ebp),%ecx 11d6d0: ff 51 14 call *0x14(%ecx) if ( status == (off_t) -1 ) 11d6d3: 83 c4 10 add $0x10,%esp 11d6d6: 83 f8 ff cmp $0xffffffff,%eax 11d6d9: 75 0e jne 11d6e9 iop->offset = old_offset; 11d6db: 8b 55 e0 mov -0x20(%ebp),%edx 11d6de: 89 53 0c mov %edx,0xc(%ebx) 11d6e1: 89 d6 mov %edx,%esi 11d6e3: c1 fe 1f sar $0x1f,%esi 11d6e6: 89 73 10 mov %esi,0x10(%ebx) /* * So if the operation failed, we have to restore iop->offset. */ return status; } 11d6e9: 8d 65 f4 lea -0xc(%ebp),%esp 11d6ec: 5b pop %ebx 11d6ed: 5e pop %esi 11d6ee: 5f pop %edi 11d6ef: c9 leave 11d6f0: c3 ret 11d6f1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 11d6f4: 89 d6 mov %edx,%esi 11d6f6: 89 d7 mov %edx,%edi 11d6f8: c1 ff 1f sar $0x1f,%edi 11d6fb: 89 f9 mov %edi,%ecx 11d6fd: 03 53 04 add 0x4(%ebx),%edx 11d700: 13 4b 08 adc 0x8(%ebx),%ecx 11d703: 89 53 0c mov %edx,0xc(%ebx) 11d706: 89 4b 10 mov %ecx,0x10(%ebx) break; 11d709: eb be jmp 11d6c9 <== ALWAYS TAKEN 11d70b: 90 nop <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( EINVAL ); 11d70c: e8 8f 4c ff ff call 1123a0 <__errno> 11d711: c7 00 16 00 00 00 movl $0x16,(%eax) 11d717: b8 ff ff ff ff mov $0xffffffff,%eax /* * So if the operation failed, we have to restore iop->offset. */ return status; } 11d71c: 8d 65 f4 lea -0xc(%ebp),%esp 11d71f: 5b pop %ebx 11d720: 5e pop %esi 11d721: 5f pop %edi 11d722: c9 leave 11d723: c3 ret case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 11d724: 89 d6 mov %edx,%esi 11d726: 89 d7 mov %edx,%edi 11d728: c1 ff 1f sar $0x1f,%edi 11d72b: 8b 55 e0 mov -0x20(%ebp),%edx 11d72e: 8b 4d e4 mov -0x1c(%ebp),%ecx 11d731: 01 f2 add %esi,%edx 11d733: 11 f9 adc %edi,%ecx 11d735: 89 53 0c mov %edx,0xc(%ebx) 11d738: 89 4b 10 mov %ecx,0x10(%ebx) break; 11d73b: eb 8c jmp 11d6c9 <== ALWAYS TAKEN 11d73d: 8d 76 00 lea 0x0(%esi),%esi <== 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); 11d740: e8 5b 4c ff ff call 1123a0 <__errno> 11d745: c7 00 09 00 00 00 movl $0x9,(%eax) 11d74b: b8 ff ff ff ff mov $0xffffffff,%eax 11d750: eb 97 jmp 11d6e9 <== ALWAYS TAKEN /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 11d752: e8 49 4c ff ff call 1123a0 <__errno> <== NOT EXECUTED 11d757: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11d75d: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11d762: eb 85 jmp 11d6e9 <== NOT EXECUTED 0012c1c0 : int _STAT_NAME( const char *path, struct stat *buf ) { 12c1c0: 55 push %ebp <== NOT EXECUTED 12c1c1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c1c3: 57 push %edi <== NOT EXECUTED 12c1c4: 56 push %esi <== NOT EXECUTED 12c1c5: 53 push %ebx <== NOT EXECUTED 12c1c6: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED 12c1c9: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 12c1cc: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 12c1cf: 85 f6 test %esi,%esi <== NOT EXECUTED 12c1d1: 0f 84 9d 00 00 00 je 12c274 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 12c1d7: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 12c1dc: 89 d7 mov %edx,%edi <== NOT EXECUTED 12c1de: 31 c0 xor %eax,%eax <== NOT EXECUTED 12c1e0: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 12c1e2: f7 d1 not %ecx <== NOT EXECUTED 12c1e4: 49 dec %ecx <== NOT EXECUTED 12c1e5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c1e8: 6a 00 push $0x0 <== NOT EXECUTED 12c1ea: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED 12c1ed: 53 push %ebx <== NOT EXECUTED 12c1ee: 6a 00 push $0x0 <== NOT EXECUTED 12c1f0: 51 push %ecx <== NOT EXECUTED 12c1f1: 52 push %edx <== NOT EXECUTED 12c1f2: e8 49 0c fe ff call 10ce40 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 12c1f7: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12c1fa: 85 c0 test %eax,%eax <== NOT EXECUTED 12c1fc: 75 66 jne 12c264 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 12c1fe: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED 12c201: 8b 42 18 mov 0x18(%edx),%eax <== NOT EXECUTED 12c204: 85 c0 test %eax,%eax <== NOT EXECUTED 12c206: 74 39 je 12c241 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 12c208: b9 44 00 00 00 mov $0x44,%ecx <== NOT EXECUTED 12c20d: 89 f7 mov %esi,%edi <== NOT EXECUTED 12c20f: 31 c0 xor %eax,%eax <== NOT EXECUTED 12c211: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 12c213: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c216: 56 push %esi <== NOT EXECUTED 12c217: 53 push %ebx <== NOT EXECUTED 12c218: ff 52 18 call *0x18(%edx) <== NOT EXECUTED 12c21b: 89 c6 mov %eax,%esi <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 12c21d: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 12c220: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c223: 85 c0 test %eax,%eax <== NOT EXECUTED 12c225: 74 10 je 12c237 <== NOT EXECUTED 12c227: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c22a: 85 c0 test %eax,%eax <== NOT EXECUTED 12c22c: 74 09 je 12c237 <== NOT EXECUTED 12c22e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c231: 53 push %ebx <== NOT EXECUTED 12c232: ff d0 call *%eax <== NOT EXECUTED 12c234: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return status; } 12c237: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c239: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c23c: 5b pop %ebx <== NOT EXECUTED 12c23d: 5e pop %esi <== NOT EXECUTED 12c23e: 5f pop %edi <== NOT EXECUTED 12c23f: c9 leave <== NOT EXECUTED 12c240: c3 ret <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 12c241: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 12c244: 85 c0 test %eax,%eax <== NOT EXECUTED 12c246: 74 10 je 12c258 <== NOT EXECUTED 12c248: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c24b: 85 c0 test %eax,%eax <== NOT EXECUTED 12c24d: 74 09 je 12c258 <== NOT EXECUTED 12c24f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c252: 53 push %ebx <== NOT EXECUTED 12c253: ff d0 call *%eax <== NOT EXECUTED 12c255: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12c258: e8 5f 4e 01 00 call 1410bc <__errno> <== NOT EXECUTED 12c25d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c263: 90 nop <== NOT EXECUTED 12c264: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 12c269: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c26b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c26e: 5b pop %ebx <== NOT EXECUTED 12c26f: 5e pop %esi <== NOT EXECUTED 12c270: 5f pop %edi <== NOT EXECUTED 12c271: c9 leave <== NOT EXECUTED 12c272: c3 ret <== NOT EXECUTED 12c273: 90 nop <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 12c274: e8 43 4e 01 00 call 1410bc <__errno> <== NOT EXECUTED 12c279: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 12c27f: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 12c284: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c286: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c289: 5b pop %ebx <== NOT EXECUTED 12c28a: 5e pop %esi <== NOT EXECUTED 12c28b: 5f pop %edi <== NOT EXECUTED 12c28c: c9 leave <== NOT EXECUTED 12c28d: c3 ret <== NOT EXECUTED 0010822c : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 10822c: 55 push %ebp 10822d: 89 e5 mov %esp,%ebp 10822f: 57 push %edi 108230: 56 push %esi 108231: 53 push %ebx 108232: 83 ec 0c sub $0xc,%esp 108235: 8b 75 08 mov 0x8(%ebp),%esi 108238: ff 05 c4 51 12 00 incl 0x1251c4 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 10823e: e8 11 ff ff ff call 108154 <== ALWAYS TAKEN /* * Validate the parameters */ if ( !size ) 108243: 85 f6 test %esi,%esi 108245: 74 65 je 1082ac <== 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()) && 108247: 83 3d 00 55 12 00 03 cmpl $0x3,0x125500 10824e: 74 50 je 1082a0 RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 108250: 6a 00 push $0x0 108252: 6a 00 push $0x0 108254: 56 push %esi 108255: ff 35 58 11 12 00 pushl 0x121158 10825b: e8 ac 4b 00 00 call 10ce0c <_Protected_heap_Allocate_aligned_with_boundary> 108260: 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 ) { 108262: 83 c4 10 add $0x10,%esp 108265: 85 c0 test %eax,%eax 108267: 74 5b je 1082c4 if (rtems_malloc_sbrk_helpers) return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); if ( !return_this ) { errno = ENOMEM; return (void *) 0; 108269: 89 c7 mov %eax,%edi } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 10826b: a1 b0 35 12 00 mov 0x1235b0,%eax 108270: 85 c0 test %eax,%eax 108272: 74 0a je 10827e <== NEVER TAKEN (*rtems_malloc_dirty_helper)( return_this, size ); 108274: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 108277: 56 push %esi <== NOT EXECUTED 108278: 57 push %edi <== NOT EXECUTED 108279: ff 10 call *(%eax) <== NOT EXECUTED 10827b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 10827e: a1 a8 35 12 00 mov 0x1235a8,%eax 108283: 85 c0 test %eax,%eax 108285: 74 31 je 1082b8 <== NEVER TAKEN (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 108287: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10828a: 57 push %edi <== NOT EXECUTED 10828b: ff 50 04 call *0x4(%eax) <== NOT EXECUTED 10828e: 89 fb mov %edi,%ebx <== NOT EXECUTED 108290: 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; } 108293: 89 d8 mov %ebx,%eax 108295: 8d 65 f4 lea -0xc(%ebp),%esp 108298: 5b pop %ebx 108299: 5e pop %esi 10829a: 5f pop %edi 10829b: c9 leave 10829c: c3 ret 10829d: 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()) && 1082a0: e8 57 fe ff ff call 1080fc <== ALWAYS TAKEN 1082a5: 84 c0 test %al,%al 1082a7: 75 a7 jne 108250 <== NEVER TAKEN 1082a9: 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); 1082ac: 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; } 1082ae: 89 d8 mov %ebx,%eax <== NOT EXECUTED 1082b0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1082b3: 5b pop %ebx <== NOT EXECUTED 1082b4: 5e pop %esi <== NOT EXECUTED 1082b5: 5f pop %edi <== NOT EXECUTED 1082b6: c9 leave <== NOT EXECUTED 1082b7: c3 ret <== NOT EXECUTED (*rtems_malloc_dirty_helper)( return_this, size ); /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 1082b8: 89 fb mov %edi,%ebx if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 1082ba: 89 d8 mov %ebx,%eax 1082bc: 8d 65 f4 lea -0xc(%ebp),%esp 1082bf: 5b pop %ebx 1082c0: 5e pop %esi 1082c1: 5f pop %edi 1082c2: c9 leave 1082c3: c3 ret */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers) 1082c4: a1 ac 35 12 00 mov 0x1235ac,%eax 1082c9: 85 c0 test %eax,%eax 1082cb: 74 10 je 1082dd <== NEVER TAKEN return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 1082cd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1082d0: 56 push %esi <== NOT EXECUTED 1082d1: ff 50 04 call *0x4(%eax) <== NOT EXECUTED 1082d4: 89 c7 mov %eax,%edi <== NOT EXECUTED if ( !return_this ) { 1082d6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1082d9: 85 c0 test %eax,%eax <== NOT EXECUTED 1082db: 75 8e jne 10826b <== NOT EXECUTED errno = ENOMEM; 1082dd: e8 be a0 00 00 call 1123a0 <__errno> 1082e2: c7 00 0c 00 00 00 movl $0xc,(%eax) return (void *) 0; 1082e8: eb a9 jmp 108293 <== ALWAYS TAKEN 0010813c : } void malloc_deferred_free( void *pointer ) { 10813c: 55 push %ebp <== NOT EXECUTED 10813d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10813f: 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 ); 108142: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 108145: 68 ac 51 12 00 push $0x1251ac <== NOT EXECUTED 10814a: e8 dd 3c 00 00 call 10be2c <_Chain_Append> <== NOT EXECUTED 10814f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer); } 108152: c9 leave <== NOT EXECUTED 108153: c3 ret <== NOT EXECUTED 00108154 : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 108154: 55 push %ebp 108155: 89 e5 mov %esp,%ebp 108157: 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) 10815a: eb 0c jmp 108168 <== ALWAYS TAKEN free(to_be_freed); 10815c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10815f: 50 push %eax <== NOT EXECUTED 108160: e8 77 fe ff ff call 107fdc <== NOT EXECUTED 108165: 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 ); 108168: 83 ec 0c sub $0xc,%esp 10816b: 68 ac 51 12 00 push $0x1251ac 108170: e8 db 3c 00 00 call 10be50 <_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) 108175: 83 c4 10 add $0x10,%esp 108178: 85 c0 test %eax,%eax 10817a: 75 e0 jne 10815c <== ALWAYS TAKEN free(to_be_freed); } 10817c: c9 leave 10817d: c3 ret 0012c2a8 : */ int malloc_info( Heap_Information_block *the_info ) { 12c2a8: 55 push %ebp 12c2a9: 89 e5 mov %esp,%ebp 12c2ab: 83 ec 08 sub $0x8,%esp 12c2ae: 8b 45 08 mov 0x8(%ebp),%eax if ( !the_info ) 12c2b1: 85 c0 test %eax,%eax 12c2b3: 74 17 je 12c2cc return -1; _Protected_heap_Get_information( RTEMS_Malloc_Heap, the_info ); 12c2b5: 83 ec 08 sub $0x8,%esp 12c2b8: 50 push %eax 12c2b9: ff 35 98 5b 16 00 pushl 0x165b98 12c2bf: e8 cc 20 00 00 call 12e390 <_Protected_heap_Get_information> 12c2c4: 31 c0 xor %eax,%eax return 0; 12c2c6: 83 c4 10 add $0x10,%esp } 12c2c9: c9 leave 12c2ca: c3 ret 12c2cb: 90 nop <== NOT EXECUTED int malloc_info( Heap_Information_block *the_info ) { if ( !the_info ) 12c2cc: b8 ff ff ff ff mov $0xffffffff,%eax return -1; _Protected_heap_Get_information( RTEMS_Malloc_Heap, the_info ); return 0; } 12c2d1: c9 leave 12c2d2: c3 ret 001080fc : #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { 1080fc: 55 push %ebp 1080fd: 89 e5 mov %esp,%ebp if ( _Thread_Dispatch_disable_level > 0 ) 1080ff: a1 38 53 12 00 mov 0x125338,%eax 108104: 85 c0 test %eax,%eax 108106: 75 0c jne 108114 <== ALWAYS TAKEN return false; if ( _ISR_Nest_level > 0 ) 108108: a1 d4 53 12 00 mov 0x1253d4,%eax #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) 10810d: 85 c0 test %eax,%eax 10810f: 0f 94 c0 sete %al if ( _ISR_Nest_level > 0 ) return false; return true; } 108112: c9 leave 108113: c3 ret rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { if ( _Thread_Dispatch_disable_level > 0 ) 108114: 31 c0 xor %eax,%eax <== NOT EXECUTED if ( _ISR_Nest_level > 0 ) return false; return true; } 108116: c9 leave <== NOT EXECUTED 108117: c3 ret <== NOT EXECUTED 0010aaac : #ifdef RTEMS_NEWLIB #include "malloc_p.h" void malloc_report_statistics(void) { 10aaac: 55 push %ebp 10aaad: 89 e5 mov %esp,%ebp 10aaaf: 83 ec 10 sub $0x10,%esp malloc_report_statistics_with_plugin( NULL, printk_plugin ); 10aab2: 68 bc b6 10 00 push $0x10b6bc 10aab7: 6a 00 push $0x0 10aab9: e8 06 00 00 00 call 10aac4 <== ALWAYS TAKEN 10aabe: 83 c4 10 add $0x10,%esp } 10aac1: c9 leave 10aac2: c3 ret 00115bfc : */ int memfile_blocks_allocated = 0; void *memfile_alloc_block(void) { 115bfc: 55 push %ebp 115bfd: 89 e5 mov %esp,%ebp 115bff: 83 ec 10 sub $0x10,%esp void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK); 115c02: ff 35 70 af 12 00 pushl 0x12af70 115c08: 6a 01 push $0x1 115c0a: e8 0d 35 ff ff call 10911c if ( memory ) 115c0f: 83 c4 10 add $0x10,%esp 115c12: 85 c0 test %eax,%eax 115c14: 74 06 je 115c1c <== ALWAYS TAKEN memfile_blocks_allocated++; 115c16: ff 05 30 b1 12 00 incl 0x12b130 return memory; } 115c1c: c9 leave 115c1d: c3 ret 00116070 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 116070: 55 push %ebp 116071: 89 e5 mov %esp,%ebp 116073: 53 push %ebx 116074: 83 ec 10 sub $0x10,%esp 116077: 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) ) { 11607a: 53 push %ebx 11607b: e8 64 e4 ff ff call 1144e4 116080: 83 c4 10 add $0x10,%esp 116083: 85 c0 test %eax,%eax 116085: 75 2f jne 1160b6 116087: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx) 11608c: 75 28 jne 1160b6 <== ALWAYS TAKEN /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 11608e: a1 b8 90 12 00 mov 0x1290b8,%eax 116093: 39 58 04 cmp %ebx,0x4(%eax) 116096: 74 28 je 1160c0 <== ALWAYS TAKEN rtems_filesystem_current.node_access = NULL; /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 116098: 83 7b 4c 06 cmpl $0x6,0x4c(%ebx) 11609c: 74 0c je 1160aa <== ALWAYS TAKEN IMFS_memfile_remove( the_jnode ); 11609e: 83 ec 0c sub $0xc,%esp 1160a1: 53 push %ebx 1160a2: e8 21 fe ff ff call 115ec8 <== ALWAYS TAKEN 1160a7: 83 c4 10 add $0x10,%esp free( the_jnode ); 1160aa: 83 ec 0c sub $0xc,%esp 1160ad: 53 push %ebx 1160ae: e8 b9 32 ff ff call 10936c 1160b3: 83 c4 10 add $0x10,%esp } return 0; } 1160b6: 31 c0 xor %eax,%eax 1160b8: 8b 5d fc mov -0x4(%ebp),%ebx 1160bb: c9 leave 1160bc: c3 ret 1160bd: 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; 1160c0: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED 1160c7: eb cf jmp 116098 <== NOT EXECUTED 00116118 : */ int memfile_close( rtems_libio_t *iop ) { 116118: 55 push %ebp 116119: 89 e5 mov %esp,%ebp 11611b: 53 push %ebx 11611c: 83 ec 04 sub $0x4,%esp 11611f: 8b 45 08 mov 0x8(%ebp),%eax IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 116122: 8b 50 38 mov 0x38(%eax),%edx if (iop->flags & LIBIO_FLAGS_APPEND) 116125: f6 40 15 02 testb $0x2,0x15(%eax) 116129: 74 0c je 116137 iop->offset = the_jnode->info.file.size; 11612b: 8b 4a 50 mov 0x50(%edx),%ecx 11612e: 8b 5a 54 mov 0x54(%edx),%ebx 116131: 89 48 0c mov %ecx,0xc(%eax) 116134: 89 58 10 mov %ebx,0x10(%eax) memfile_check_rmnod( the_jnode ); 116137: 83 ec 0c sub $0xc,%esp 11613a: 52 push %edx 11613b: e8 30 ff ff ff call 116070 <== ALWAYS TAKEN return 0; } 116140: 31 c0 xor %eax,%eax 116142: 8b 5d fc mov -0x4(%ebp),%ebx 116145: c9 leave 116146: c3 ret 00115e00 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 115e00: 55 push %ebp 115e01: 89 e5 mov %esp,%ebp 115e03: 57 push %edi 115e04: 56 push %esi 115e05: 53 push %ebx 115e06: 83 ec 0c sub $0xc,%esp 115e09: 8b 7d 0c mov 0xc(%ebp),%edi /* * Perform internal consistency checks */ assert( block_table ); 115e0c: 8b 45 08 mov 0x8(%ebp),%eax 115e0f: 85 c0 test %eax,%eax 115e11: 74 4e je 115e61 <== ALWAYS TAKEN /* * Now go through all the slots in the table and free the memory. */ b = *block_table; 115e13: 8b 45 08 mov 0x8(%ebp),%eax 115e16: 8b 30 mov (%eax),%esi for ( i=0 ; i <== ALWAYS TAKEN 115e1c: 31 db xor %ebx,%ebx 115e1e: 66 90 xchg %ax,%ax if ( b[i] ) { 115e20: 8b 04 9e mov (%esi,%ebx,4),%eax 115e23: 85 c0 test %eax,%eax 115e25: 74 13 je 115e3a memfile_free_block( b[i] ); 115e27: 83 ec 0c sub $0xc,%esp 115e2a: 50 push %eax 115e2b: e8 b0 fd ff ff call 115be0 <== ALWAYS TAKEN b[i] = 0; 115e30: c7 04 9e 00 00 00 00 movl $0x0,(%esi,%ebx,4) 115e37: 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 115e3f: 8b 45 08 mov 0x8(%ebp),%eax 115e42: 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 ); 115e44: 83 ec 0c sub $0xc,%esp 115e47: 56 push %esi 115e48: e8 93 fd ff ff call 115be0 <== ALWAYS TAKEN *block_table = 0; 115e4d: 8b 45 08 mov 0x8(%ebp),%eax 115e50: c7 00 00 00 00 00 movl $0x0,(%eax) 115e56: 83 c4 10 add $0x10,%esp } 115e59: 8d 65 f4 lea -0xc(%ebp),%esp 115e5c: 5b pop %ebx 115e5d: 5e pop %esi 115e5e: 5f pop %edi 115e5f: c9 leave 115e60: c3 ret /* * Perform internal consistency checks */ assert( block_table ); 115e61: 68 6a 52 12 00 push $0x12526a <== NOT EXECUTED 115e66: 68 9c 53 12 00 push $0x12539c <== NOT EXECUTED 115e6b: 68 b3 01 00 00 push $0x1b3 <== NOT EXECUTED 115e70: 68 8c 52 12 00 push $0x12528c <== NOT EXECUTED 115e75: e8 62 31 ff ff call 108fdc <__assert_func> <== NOT EXECUTED 001162f0 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 1162f0: 55 push %ebp 1162f1: 89 e5 mov %esp,%ebp 1162f3: 53 push %ebx 1162f4: 83 ec 14 sub $0x14,%esp 1162f7: 8b 45 08 mov 0x8(%ebp),%eax 1162fa: 8b 4d 0c mov 0xc(%ebp),%ecx 1162fd: 8b 55 10 mov 0x10(%ebp),%edx IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 116300: 8b 58 38 mov 0x38(%eax),%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 ) 116303: 39 53 54 cmp %edx,0x54(%ebx) 116306: 7f 19 jg 116321 <== ALWAYS TAKEN 116308: 7d 12 jge 11631c <== NEVER TAKEN return IMFS_memfile_extend( the_jnode, length ); 11630a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11630d: 51 push %ecx <== NOT EXECUTED 11630e: 53 push %ebx <== NOT EXECUTED 11630f: e8 ac fe ff ff call 1161c0 <== NOT EXECUTED 116314: 83 c4 10 add $0x10,%esp <== NOT EXECUTED iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); return 0; } 116317: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 11631a: c9 leave <== NOT EXECUTED 11631b: c3 ret <== 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 ) 11631c: 39 4b 50 cmp %ecx,0x50(%ebx) 11631f: 72 e9 jb 11630a <== 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; 116321: 89 4b 50 mov %ecx,0x50(%ebx) 116324: 89 53 54 mov %edx,0x54(%ebx) iop->size = the_jnode->info.file.size; 116327: 89 48 04 mov %ecx,0x4(%eax) 11632a: 89 50 08 mov %edx,0x8(%eax) IMFS_update_atime( the_jnode ); 11632d: 83 ec 08 sub $0x8,%esp 116330: 6a 00 push $0x0 116332: 8d 45 f0 lea -0x10(%ebp),%eax 116335: 50 push %eax 116336: e8 ad 30 ff ff call 1093e8 11633b: 8b 45 f0 mov -0x10(%ebp),%eax 11633e: 89 43 40 mov %eax,0x40(%ebx) 116341: 31 c0 xor %eax,%eax return 0; 116343: 83 c4 10 add $0x10,%esp } 116346: 8b 5d fc mov -0x4(%ebp),%ebx 116349: c9 leave 11634a: c3 ret 0011634c : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 11634c: 55 push %ebp 11634d: 89 e5 mov %esp,%ebp 11634f: 57 push %edi 116350: 56 push %esi 116351: 53 push %ebx 116352: 83 ec 0c sub $0xc,%esp 116355: 8b 5d 08 mov 0x8(%ebp),%ebx IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 116358: 8b 73 38 mov 0x38(%ebx),%esi if (the_jnode->type == IMFS_LINEAR_FILE) { 11635b: 83 7e 4c 06 cmpl $0x6,0x4c(%esi) 11635f: 74 2f je 116390 <== 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 )) 116361: 83 ec 08 sub $0x8,%esp 116364: ff 73 0c pushl 0xc(%ebx) 116367: 56 push %esi 116368: e8 53 fe ff ff call 1161c0 <== ALWAYS TAKEN 11636d: 83 c4 10 add $0x10,%esp 116370: 85 c0 test %eax,%eax 116372: 75 4e jne 1163c2 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; 116374: 8b 46 50 mov 0x50(%esi),%eax 116377: 8b 56 54 mov 0x54(%esi),%edx 11637a: 89 43 04 mov %eax,0x4(%ebx) 11637d: 89 53 08 mov %edx,0x8(%ebx) 116380: 8b 43 0c mov 0xc(%ebx),%eax 116383: 8b 53 10 mov 0x10(%ebx),%edx } return iop->offset; } 116386: 8d 65 f4 lea -0xc(%ebp),%esp 116389: 5b pop %ebx 11638a: 5e pop %esi 11638b: 5f pop %edi 11638c: c9 leave 11638d: c3 ret 11638e: 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) 116390: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED 116393: 8b 4b 10 mov 0x10(%ebx),%ecx <== NOT EXECUTED 116396: 8b 46 50 mov 0x50(%esi),%eax <== NOT EXECUTED 116399: 8b 56 54 mov 0x54(%esi),%edx <== NOT EXECUTED 11639c: 39 d1 cmp %edx,%ecx <== NOT EXECUTED 11639e: 7f 14 jg 1163b4 <== NOT EXECUTED 1163a0: 7d 0e jge 1163b0 <== NOT EXECUTED 1163a2: 89 f8 mov %edi,%eax <== NOT EXECUTED 1163a4: 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; } 1163a6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1163a9: 5b pop %ebx <== NOT EXECUTED 1163aa: 5e pop %esi <== NOT EXECUTED 1163ab: 5f pop %edi <== NOT EXECUTED 1163ac: c9 leave <== NOT EXECUTED 1163ad: c3 ret <== NOT EXECUTED 1163ae: 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) 1163b0: 39 c7 cmp %eax,%edi <== NOT EXECUTED 1163b2: 76 ee jbe 1163a2 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 1163b4: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED 1163b7: 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; } 1163ba: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1163bd: 5b pop %ebx <== NOT EXECUTED 1163be: 5e pop %esi <== NOT EXECUTED 1163bf: 5f pop %edi <== NOT EXECUTED 1163c0: c9 leave <== NOT EXECUTED 1163c1: 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 ); 1163c2: e8 51 11 00 00 call 117518 <__errno> <== NOT EXECUTED 1163c7: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED 1163cd: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 1163d2: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED 1163d7: eb ad jmp 116386 <== NOT EXECUTED 00116654 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 116654: 55 push %ebp 116655: 89 e5 mov %esp,%ebp 116657: 56 push %esi 116658: 53 push %ebx 116659: 8b 5d 08 mov 0x8(%ebp),%ebx IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 11665c: 8b 73 38 mov 0x38(%ebx),%esi /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 11665f: 8b 43 14 mov 0x14(%ebx),%eax 116662: a9 04 02 00 00 test $0x204,%eax 116667: 74 06 je 11666f && (the_jnode->type == IMFS_LINEAR_FILE)) { 116669: 83 7e 4c 06 cmpl $0x6,0x4c(%esi) 11666d: 74 2d je 11669c <== 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) 11666f: 8b 56 50 mov 0x50(%esi),%edx 116672: 8b 4e 54 mov 0x54(%esi),%ecx && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 116675: f6 c4 02 test $0x2,%ah 116678: 75 12 jne 11668c iop->offset = the_jnode->info.file.size; iop->size = the_jnode->info.file.size; 11667a: 89 53 04 mov %edx,0x4(%ebx) 11667d: 89 4b 08 mov %ecx,0x8(%ebx) 116680: 31 c0 xor %eax,%eax return 0; } 116682: 8d 65 f8 lea -0x8(%ebp),%esp 116685: 5b pop %ebx 116686: 5e pop %esi 116687: c9 leave 116688: c3 ret 116689: 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; 11668c: 89 53 0c mov %edx,0xc(%ebx) 11668f: 89 4b 10 mov %ecx,0x10(%ebx) 116692: 8b 56 50 mov 0x50(%esi),%edx 116695: 8b 4e 54 mov 0x54(%esi),%ecx 116698: eb e0 jmp 11667a <== ALWAYS TAKEN 11669a: 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; 11669c: 8b 46 50 mov 0x50(%esi),%eax <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; 11669f: 8b 56 58 mov 0x58(%esi),%edx <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 1166a2: c7 46 4c 05 00 00 00 movl $0x5,0x4c(%esi) <== NOT EXECUTED the_jnode->info.file.size = 0; 1166a9: c7 46 50 00 00 00 00 movl $0x0,0x50(%esi) <== NOT EXECUTED 1166b0: c7 46 54 00 00 00 00 movl $0x0,0x54(%esi) <== NOT EXECUTED the_jnode->info.file.indirect = 0; 1166b7: c7 46 58 00 00 00 00 movl $0x0,0x58(%esi) <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; 1166be: c7 46 5c 00 00 00 00 movl $0x0,0x5c(%esi) <== NOT EXECUTED the_jnode->info.file.triply_indirect = 0; 1166c5: c7 46 60 00 00 00 00 movl $0x0,0x60(%esi) <== NOT EXECUTED if ((count != 0) 1166cc: 85 c0 test %eax,%eax <== NOT EXECUTED 1166ce: 75 09 jne 1166d9 <== NOT EXECUTED 1166d0: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 1166d3: 31 d2 xor %edx,%edx <== NOT EXECUTED 1166d5: 31 c9 xor %ecx,%ecx <== NOT EXECUTED 1166d7: eb 9c jmp 116675 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 1166d9: 50 push %eax <== NOT EXECUTED 1166da: 52 push %edx <== NOT EXECUTED 1166db: 6a 00 push $0x0 <== NOT EXECUTED 1166dd: 56 push %esi <== NOT EXECUTED 1166de: e8 f9 fc ff ff call 1163dc <== 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) 1166e3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1166e6: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED 1166e9: 74 97 je 116682 <== NOT EXECUTED 1166eb: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 1166ee: e9 7c ff ff ff jmp 11666f <== NOT EXECUTED 001169b0 : ssize_t memfile_read( rtems_libio_t *iop, void *buffer, size_t count ) { 1169b0: 55 push %ebp 1169b1: 89 e5 mov %esp,%ebp 1169b3: 83 ec 08 sub $0x8,%esp 1169b6: 8b 45 08 mov 0x8(%ebp),%eax IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; return IMFS_memfile_read( the_jnode, iop->offset, buffer, count ); 1169b9: ff 75 10 pushl 0x10(%ebp) 1169bc: ff 75 0c pushl 0xc(%ebp) 1169bf: ff 70 0c pushl 0xc(%eax) 1169c2: ff 70 38 pushl 0x38(%eax) 1169c5: e8 2a fd ff ff call 1166f4 <== ALWAYS TAKEN } 1169ca: c9 leave 1169cb: c3 ret 001160cc : int memfile_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 1160cc: 55 push %ebp 1160cd: 89 e5 mov %esp,%ebp 1160cf: 53 push %ebx 1160d0: 83 ec 14 sub $0x14,%esp IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 1160d3: 8b 45 0c mov 0xc(%ebp),%eax 1160d6: 8b 18 mov (%eax),%ebx /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 1160d8: 8b 4b 08 mov 0x8(%ebx),%ecx 1160db: 85 c9 test %ecx,%ecx 1160dd: 74 13 je 1160f2 <== ALWAYS TAKEN 1160df: 83 ec 0c sub $0xc,%esp 1160e2: 53 push %ebx 1160e3: e8 24 76 ff ff call 10d70c <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 1160e8: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 1160ef: 83 c4 10 add $0x10,%esp /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 1160f2: 66 ff 4b 34 decw 0x34(%ebx) IMFS_update_ctime( the_jnode ); 1160f6: 83 ec 08 sub $0x8,%esp 1160f9: 6a 00 push $0x0 1160fb: 8d 45 f0 lea -0x10(%ebp),%eax 1160fe: 50 push %eax 1160ff: e8 e4 32 ff ff call 1093e8 116104: 8b 45 f0 mov -0x10(%ebp),%eax 116107: 89 43 48 mov %eax,0x48(%ebx) return memfile_check_rmnod( the_jnode ); 11610a: 89 1c 24 mov %ebx,(%esp) 11610d: e8 5e ff ff ff call 116070 <== ALWAYS TAKEN } 116112: 8b 5d fc mov -0x4(%ebp),%ebx 116115: c9 leave 116116: c3 ret 00116624 : ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 116624: 55 push %ebp 116625: 89 e5 mov %esp,%ebp 116627: 56 push %esi 116628: 53 push %ebx 116629: 8b 5d 08 mov 0x8(%ebp),%ebx IMFS_jnode_t *the_jnode; ssize_t status; the_jnode = iop->file_info; 11662c: 8b 73 38 mov 0x38(%ebx),%esi status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count ); 11662f: ff 75 10 pushl 0x10(%ebp) 116632: ff 75 0c pushl 0xc(%ebp) 116635: ff 73 0c pushl 0xc(%ebx) 116638: 56 push %esi 116639: e8 9e fd ff ff call 1163dc <== ALWAYS TAKEN iop->size = the_jnode->info.file.size; 11663e: 8b 56 50 mov 0x50(%esi),%edx 116641: 8b 4e 54 mov 0x54(%esi),%ecx 116644: 89 53 04 mov %edx,0x4(%ebx) 116647: 89 4b 08 mov %ecx,0x8(%ebx) return status; } 11664a: 8d 65 f8 lea -0x8(%ebp),%esp 11664d: 5b pop %ebx 11664e: 5e pop %esi 11664f: c9 leave 116650: c3 ret 0010e950 : */ int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 10e950: 55 push %ebp 10e951: 89 e5 mov %esp,%ebp 10e953: 83 ec 08 sub $0x8,%esp return IMFS_initialize_support( 10e956: 68 a0 fd 11 00 push $0x11fda0 10e95b: 68 a0 fd 11 00 push $0x11fda0 10e960: 68 c0 fb 11 00 push $0x11fbc0 10e965: ff 75 08 pushl 0x8(%ebp) 10e968: e8 d7 0a 00 00 call 10f444 <== ALWAYS TAKEN temp_mt_entry, &miniIMFS_ops, &rtems_filesystem_null_handlers, /* for memfiles */ &rtems_filesystem_null_handlers /* for directories */ ); } 10e96d: c9 leave 10e96e: c3 ret 001082ec : int mkdir( const char *pathname, mode_t mode ) { 1082ec: 55 push %ebp 1082ed: 89 e5 mov %esp,%ebp 1082ef: 83 ec 08 sub $0x8,%esp 1082f2: 8b 45 0c mov 0xc(%ebp),%eax return mknod( pathname, mode | S_IFDIR, 0LL); 1082f5: 6a 00 push $0x0 1082f7: 6a 00 push $0x0 1082f9: 80 cc 40 or $0x40,%ah 1082fc: 50 push %eax 1082fd: ff 75 08 pushl 0x8(%ebp) 108300: e8 03 00 00 00 call 108308 <== ALWAYS TAKEN } 108305: c9 leave 108306: c3 ret 001120b0 : int mkfifo( const char *path, mode_t mode ) { 1120b0: 55 push %ebp 1120b1: 89 e5 mov %esp,%ebp 1120b3: 83 ec 08 sub $0x8,%esp 1120b6: 8b 45 0c mov 0xc(%ebp),%eax return mknod( path, mode | S_IFIFO, 0LL ); 1120b9: 6a 00 push $0x0 1120bb: 6a 00 push $0x0 1120bd: 80 cc 10 or $0x10,%ah 1120c0: 50 push %eax 1120c1: ff 75 08 pushl 0x8(%ebp) 1120c4: e8 3f 62 ff ff call 108308 <== ALWAYS TAKEN } 1120c9: c9 leave 1120ca: c3 ret 00108308 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 108308: 55 push %ebp 108309: 89 e5 mov %esp,%ebp 10830b: 57 push %edi 10830c: 56 push %esi 10830d: 53 push %ebx 10830e: 83 ec 3c sub $0x3c,%esp 108311: 8b 55 0c mov 0xc(%ebp),%edx 108314: 8b 4d 10 mov 0x10(%ebp),%ecx 108317: 8b 5d 14 mov 0x14(%ebp),%ebx 10831a: 89 4d c0 mov %ecx,-0x40(%ebp) 10831d: 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) ) ) 108320: f6 c6 f0 test $0xf0,%dh 108323: 0f 84 cb 00 00 00 je 1083f4 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 108329: 8b 5d 08 mov 0x8(%ebp),%ebx 10832c: 8a 03 mov (%ebx),%al 10832e: 3c 2f cmp $0x2f,%al 108330: 74 08 je 10833a 108332: 3c 5c cmp $0x5c,%al 108334: 74 04 je 10833a <== ALWAYS TAKEN 108336: 84 c0 test %al,%al 108338: 75 7e jne 1083b8 <== NEVER TAKEN 10833a: 8d 5d d0 lea -0x30(%ebp),%ebx 10833d: 8b 35 f8 2f 12 00 mov 0x122ff8,%esi 108343: 83 c6 18 add $0x18,%esi 108346: b9 05 00 00 00 mov $0x5,%ecx 10834b: 89 df mov %ebx,%edi 10834d: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 10834f: b1 01 mov $0x1,%cl if ( !temp_loc.ops->evalformake_h ) { 108351: 8b 45 dc mov -0x24(%ebp),%eax 108354: 8b 40 04 mov 0x4(%eax),%eax 108357: 85 c0 test %eax,%eax 108359: 74 7c je 1083d7 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 10835b: 56 push %esi 10835c: 8d 75 e4 lea -0x1c(%ebp),%esi 10835f: 56 push %esi 108360: 53 push %ebx 108361: 03 4d 08 add 0x8(%ebp),%ecx 108364: 51 push %ecx 108365: 89 55 bc mov %edx,-0x44(%ebp) 108368: ff d0 call *%eax &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 10836a: 83 c4 10 add $0x10,%esp 10836d: 85 c0 test %eax,%eax 10836f: 8b 55 bc mov -0x44(%ebp),%edx 108372: 75 6e jne 1083e2 return -1; if ( !temp_loc.ops->mknod_h ) { 108374: 8b 4d dc mov -0x24(%ebp),%ecx 108377: 8b 41 14 mov 0x14(%ecx),%eax 10837a: 85 c0 test %eax,%eax 10837c: 0f 84 84 00 00 00 je 108406 <== 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 ); 108382: 83 ec 0c sub $0xc,%esp 108385: 53 push %ebx 108386: ff 75 c4 pushl -0x3c(%ebp) 108389: ff 75 c0 pushl -0x40(%ebp) 10838c: 52 push %edx 10838d: ff 75 e4 pushl -0x1c(%ebp) 108390: ff d0 call *%eax 108392: 89 c6 mov %eax,%esi rtems_filesystem_freenode( &temp_loc ); 108394: 8b 45 dc mov -0x24(%ebp),%eax 108397: 83 c4 20 add $0x20,%esp 10839a: 85 c0 test %eax,%eax 10839c: 74 10 je 1083ae <== ALWAYS TAKEN 10839e: 8b 40 1c mov 0x1c(%eax),%eax 1083a1: 85 c0 test %eax,%eax 1083a3: 74 09 je 1083ae 1083a5: 83 ec 0c sub $0xc,%esp 1083a8: 53 push %ebx 1083a9: ff d0 call *%eax 1083ab: 83 c4 10 add $0x10,%esp return result; } 1083ae: 89 f0 mov %esi,%eax 1083b0: 8d 65 f4 lea -0xc(%ebp),%esp 1083b3: 5b pop %ebx 1083b4: 5e pop %esi 1083b5: 5f pop %edi 1083b6: c9 leave 1083b7: 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 ); 1083b8: 8d 5d d0 lea -0x30(%ebp),%ebx 1083bb: 8b 35 f8 2f 12 00 mov 0x122ff8,%esi 1083c1: 83 c6 04 add $0x4,%esi 1083c4: b9 05 00 00 00 mov $0x5,%ecx 1083c9: 89 df mov %ebx,%edi 1083cb: f3 a5 rep movsl %ds:(%esi),%es:(%edi) if ( !temp_loc.ops->evalformake_h ) { 1083cd: 8b 45 dc mov -0x24(%ebp),%eax 1083d0: 8b 40 04 mov 0x4(%eax),%eax 1083d3: 85 c0 test %eax,%eax 1083d5: 75 84 jne 10835b <== 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 ); 1083d7: e8 c4 9f 00 00 call 1123a0 <__errno> <== NOT EXECUTED 1083dc: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 1083e2: 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; } 1083e7: 89 f0 mov %esi,%eax 1083e9: 8d 65 f4 lea -0xc(%ebp),%esp 1083ec: 5b pop %ebx 1083ed: 5e pop %esi 1083ee: 5f pop %edi 1083ef: c9 leave 1083f0: c3 ret 1083f1: 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 ); 1083f4: e8 a7 9f 00 00 call 1123a0 <__errno> <== NOT EXECUTED 1083f9: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 1083ff: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 108404: eb a8 jmp 1083ae <== NOT EXECUTED ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); 108406: 8b 41 1c mov 0x1c(%ecx),%eax <== NOT EXECUTED 108409: 85 c0 test %eax,%eax <== NOT EXECUTED 10840b: 74 ca je 1083d7 <== NOT EXECUTED 10840d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108410: 53 push %ebx <== NOT EXECUTED 108411: ff d0 call *%eax <== NOT EXECUTED 108413: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108416: eb bf jmp 1083d7 <== NOT EXECUTED 00108440 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 108440: 55 push %ebp 108441: 89 e5 mov %esp,%ebp 108443: 57 push %edi 108444: 56 push %esi 108445: 53 push %ebx 108446: 83 ec 3c sub $0x3c,%esp 108449: 8b 75 14 mov 0x14(%ebp),%esi /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 10844c: 8b 5d 0c mov 0xc(%ebp),%ebx 10844f: 85 db test %ebx,%ebx 108451: 0f 84 1d 02 00 00 je 108674 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 108457: 83 7d 10 01 cmpl $0x1,0x10(%ebp) 10845b: 0f 87 13 02 00 00 ja 108674 errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 108461: 8b 45 0c mov 0xc(%ebp),%eax 108464: 8b 48 24 mov 0x24(%eax),%ecx 108467: 85 c9 test %ecx,%ecx 108469: 0f 84 32 02 00 00 je 1086a1 <== ALWAYS TAKEN /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 10846f: 85 f6 test %esi,%esi 108471: 0f 84 a9 01 00 00 je 108620 <== NEVER TAKEN size += strlen( device ) + 1; 108477: 31 c0 xor %eax,%eax <== NOT EXECUTED 108479: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 10847e: 89 f7 mov %esi,%edi <== NOT EXECUTED 108480: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 108482: f7 d1 not %ecx <== NOT EXECUTED 108484: 83 c1 6c add $0x6c,%ecx <== NOT EXECUTED temp_mt_entry = malloc( size ); 108487: 83 ec 0c sub $0xc,%esp 10848a: 51 push %ecx 10848b: e8 9c fd ff ff call 10822c <== ALWAYS TAKEN 108490: 89 c3 mov %eax,%ebx 108492: 89 45 c4 mov %eax,-0x3c(%ebp) if ( !temp_mt_entry ) { 108495: 83 c4 10 add $0x10,%esp 108498: 85 c0 test %eax,%eax 10849a: 0f 84 3b 02 00 00 je 1086db <== ALWAYS TAKEN errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; 1084a0: 89 43 2c mov %eax,0x2c(%ebx) temp_mt_entry->options = options; 1084a3: 8b 55 10 mov 0x10(%ebp),%edx 1084a6: 89 50 30 mov %edx,0x30(%eax) if ( device ) { 1084a9: 85 f6 test %esi,%esi 1084ab: 0f 84 63 01 00 00 je 108614 <== NEVER TAKEN temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); 1084b1: 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 = 1084b4: 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 ); 1084b7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1084ba: 56 push %esi <== NOT EXECUTED 1084bb: 50 push %eax <== NOT EXECUTED 1084bc: e8 cf a9 00 00 call 112e90 <== NOT EXECUTED 1084c1: 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 ) { 1084c4: 8b 55 18 mov 0x18(%ebp),%edx 1084c7: 85 d2 test %edx,%edx 1084c9: 0f 84 0d 01 00 00 je 1085dc if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 1084cf: 31 c0 xor %eax,%eax 1084d1: b9 ff ff ff ff mov $0xffffffff,%ecx 1084d6: 8b 7d 18 mov 0x18(%ebp),%edi 1084d9: f2 ae repnz scas %es:(%edi),%al 1084db: f7 d1 not %ecx 1084dd: 49 dec %ecx * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 1084de: 83 ec 0c sub $0xc,%esp 1084e1: 6a 01 push $0x1 1084e3: 8d 75 d4 lea -0x2c(%ebp),%esi 1084e6: 56 push %esi 1084e7: 6a 07 push $0x7 1084e9: 51 push %ecx 1084ea: ff 75 18 pushl 0x18(%ebp) 1084ed: e8 36 fa ff ff call 107f28 <== ALWAYS TAKEN 1084f2: 83 c4 20 add $0x20,%esp 1084f5: 40 inc %eax 1084f6: 0f 84 b7 01 00 00 je 1086b3 <== ALWAYS TAKEN /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 1084fc: 8b 45 e0 mov -0x20(%ebp),%eax 1084ff: 8b 40 10 mov 0x10(%eax),%eax 108502: 85 c0 test %eax,%eax 108504: 0f 84 c1 01 00 00 je 1086cb <== ALWAYS TAKEN /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 10850a: 83 ec 0c sub $0xc,%esp 10850d: 56 push %esi 10850e: ff d0 call *%eax 108510: 83 c4 10 add $0x10,%esp 108513: 48 dec %eax 108514: 0f 85 77 01 00 00 jne 108691 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 10851a: a1 ec 51 12 00 mov 0x1251ec,%eax 10851f: 3d f0 51 12 00 cmp $0x1251f0,%eax 108524: 0f 84 5f 01 00 00 je 108689 <== 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 ) 10852a: 8b 55 d4 mov -0x2c(%ebp),%edx 10852d: 39 50 1c cmp %edx,0x1c(%eax) 108530: 75 07 jne 108539 <== NEVER TAKEN 108532: eb 78 jmp 1085ac <== NOT EXECUTED 108534: 39 50 1c cmp %edx,0x1c(%eax) 108537: 74 73 je 1085ac * 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 ) { 108539: 8b 00 mov (%eax),%eax /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 10853b: 3d f0 51 12 00 cmp $0x1251f0,%eax 108540: 75 f2 jne 108534 * 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; 108542: 89 53 08 mov %edx,0x8(%ebx) temp_mt_entry->mt_point_node.handlers = loc.handlers; 108545: 8b 45 dc mov -0x24(%ebp),%eax 108548: 89 43 10 mov %eax,0x10(%ebx) temp_mt_entry->mt_point_node.ops = loc.ops; 10854b: 8b 45 e0 mov -0x20(%ebp),%eax 10854e: 89 43 14 mov %eax,0x14(%ebx) temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 108551: 8b 55 e4 mov -0x1c(%ebp),%edx 108554: 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 ){ 108557: 8b 40 20 mov 0x20(%eax),%eax 10855a: 85 c0 test %eax,%eax 10855c: 0f 84 69 01 00 00 je 1086cb <== ALWAYS TAKEN errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 108562: 83 ec 0c sub $0xc,%esp 108565: 53 push %ebx 108566: ff d0 call *%eax 108568: 83 c4 10 add $0x10,%esp 10856b: 85 c0 test %eax,%eax 10856d: 75 48 jne 1085b7 <== 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 ) ) { 10856f: 83 ec 0c sub $0xc,%esp 108572: 53 push %ebx 108573: 8b 55 0c mov 0xc(%ebp),%edx 108576: ff 52 24 call *0x24(%edx) 108579: 83 c4 10 add $0x10,%esp 10857c: 85 c0 test %eax,%eax 10857e: 0f 85 a8 00 00 00 jne 10862c <== 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 ); 108584: 83 ec 08 sub $0x8,%esp 108587: 53 push %ebx 108588: 68 ec 51 12 00 push $0x1251ec 10858d: e8 9a 38 00 00 call 10be2c <_Chain_Append> */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 108592: 83 c4 10 add $0x10,%esp 108595: 8b 45 08 mov 0x8(%ebp),%eax 108598: 85 c0 test %eax,%eax 10859a: 74 05 je 1085a1 <== ALWAYS TAKEN *mt_entry = temp_mt_entry; 10859c: 8b 45 08 mov 0x8(%ebp),%eax 10859f: 89 18 mov %ebx,(%eax) 1085a1: 31 c0 xor %eax,%eax if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 1085a3: 8d 65 f4 lea -0xc(%ebp),%esp 1085a6: 5b pop %ebx 1085a7: 5e pop %esi 1085a8: 5f pop %edi 1085a9: c9 leave 1085aa: c3 ret 1085ab: 90 nop <== NOT EXECUTED /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 1085ac: e8 ef 9d 00 00 call 1123a0 <__errno> 1085b1: c7 00 10 00 00 00 movl $0x10,(%eax) return 0; cleanup_and_bail: free( temp_mt_entry ); 1085b7: 83 ec 0c sub $0xc,%esp 1085ba: 53 push %ebx 1085bb: e8 1c fa ff ff call 107fdc <== ALWAYS TAKEN 1085c0: 83 c4 10 add $0x10,%esp if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 1085c3: 8b 46 0c mov 0xc(%esi),%eax 1085c6: 85 c0 test %eax,%eax 1085c8: 0f 85 8a 00 00 00 jne 108658 <== NEVER TAKEN 1085ce: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return -1; } 1085d3: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1085d6: 5b pop %ebx <== NOT EXECUTED 1085d7: 5e pop %esi <== NOT EXECUTED 1085d8: 5f pop %edi <== NOT EXECUTED 1085d9: c9 leave <== NOT EXECUTED 1085da: c3 ret <== NOT EXECUTED 1085db: 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; 1085dc: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx) temp_mt_entry->mt_fs_root.handlers = NULL; 1085e3: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) temp_mt_entry->mt_fs_root.ops = NULL; 1085ea: c7 43 28 00 00 00 00 movl $0x0,0x28(%ebx) temp_mt_entry->mt_point_node.node_access = NULL; 1085f1: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) temp_mt_entry->mt_point_node.handlers = NULL; 1085f8: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) temp_mt_entry->mt_point_node.ops = NULL; 1085ff: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) temp_mt_entry->mt_point_node.mt_entry = NULL; 108606: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) 10860d: 31 f6 xor %esi,%esi 10860f: e9 5b ff ff ff jmp 10856f <== ALWAYS TAKEN 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; 108614: c7 40 68 00 00 00 00 movl $0x0,0x68(%eax) 10861b: e9 a4 fe ff ff jmp 1084c4 <== ALWAYS TAKEN /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 108620: b9 6c 00 00 00 mov $0x6c,%ecx 108625: e9 5d fe ff ff jmp 108487 <== ALWAYS TAKEN 10862a: 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 ) { 10862c: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10862f: 8b 40 28 mov 0x28(%eax),%eax <== NOT EXECUTED 108632: 85 c0 test %eax,%eax <== NOT EXECUTED 108634: 74 09 je 10863f <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 108636: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108639: 53 push %ebx <== NOT EXECUTED 10863a: ff d0 call *%eax <== NOT EXECUTED 10863c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 10863f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108642: 53 push %ebx <== NOT EXECUTED 108643: e8 94 f9 ff ff call 107fdc <== NOT EXECUTED if ( loc_to_free ) 108648: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10864b: 85 f6 test %esi,%esi <== NOT EXECUTED 10864d: 0f 84 7b ff ff ff je 1085ce <== NOT EXECUTED 108653: e9 6b ff ff ff jmp 1085c3 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 108658: 8b 40 1c mov 0x1c(%eax),%eax 10865b: 85 c0 test %eax,%eax 10865d: 0f 84 6b ff ff ff je 1085ce <== ALWAYS TAKEN 108663: 83 ec 0c sub $0xc,%esp 108666: 56 push %esi 108667: ff d0 call *%eax 108669: 83 c8 ff or $0xffffffff,%eax 10866c: 83 c4 10 add $0x10,%esp 10866f: e9 2f ff ff ff jmp 1085a3 <== ALWAYS TAKEN * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 108674: e8 27 9d 00 00 call 1123a0 <__errno> 108679: c7 00 16 00 00 00 movl $0x16,(%eax) 10867f: b8 ff ff ff ff mov $0xffffffff,%eax return -1; 108684: e9 1a ff ff ff jmp 1085a3 <== ALWAYS TAKEN cleanup_and_bail: free( temp_mt_entry ); if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 108689: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 10868c: e9 b1 fe ff ff jmp 108542 <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { errno = ENOTDIR; 108691: e8 0a 9d 00 00 call 1123a0 <__errno> 108696: c7 00 14 00 00 00 movl $0x14,(%eax) goto cleanup_and_bail; 10869c: e9 16 ff ff ff jmp 1085b7 <== ALWAYS TAKEN return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; 1086a1: e8 fa 9c 00 00 call 1123a0 <__errno> <== NOT EXECUTED 1086a6: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 1086ac: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 1086b3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1086b6: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED 1086b9: e8 1e f9 ff ff call 107fdc <== NOT EXECUTED 1086be: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 1086c3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1086c6: e9 d8 fe ff ff jmp 1085a3 <== 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; 1086cb: e8 d0 9c 00 00 call 1123a0 <__errno> <== NOT EXECUTED 1086d0: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED goto cleanup_and_bail; 1086d6: e9 dc fe ff ff jmp 1085b7 <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; 1086db: e8 c0 9c 00 00 call 1123a0 <__errno> <== NOT EXECUTED 1086e0: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 1086e6: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED return -1; 1086e9: e9 b5 fe ff ff jmp 1085a3 <== NOT EXECUTED 001087c4 : */ bool newlib_create_hook( rtems_tcb *current_task __attribute__((unused)), rtems_tcb *creating_task ) { 1087c4: 55 push %ebp 1087c5: 89 e5 mov %esp,%ebp 1087c7: 57 push %edi 1087c8: 56 push %esi 1087c9: 53 push %ebx 1087ca: 83 ec 0c sub $0xc,%esp struct _reent *ptr; if (_Thread_libc_reent == 0) 1087cd: a1 c4 53 12 00 mov 0x1253c4,%eax 1087d2: 85 c0 test %eax,%eax 1087d4: 0f 84 52 02 00 00 je 108a2c 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)); 1087da: 83 ec 0c sub $0xc,%esp 1087dd: 68 24 04 00 00 push $0x424 1087e2: e8 e5 5c 00 00 call 10e4cc <_Workspace_Allocate> 1087e7: 89 c2 mov %eax,%edx #endif if (ptr) { 1087e9: 83 c4 10 add $0x10,%esp 1087ec: 85 c0 test %eax,%eax 1087ee: 0f 84 2c 02 00 00 je 108a20 _REENT_INIT_PTR((ptr)); /* GCC extension: structure constants */ 1087f4: c7 00 00 00 00 00 movl $0x0,(%eax) 1087fa: 8d 98 ec 02 00 00 lea 0x2ec(%eax),%ebx 108800: 89 58 04 mov %ebx,0x4(%eax) 108803: 8d 80 54 03 00 00 lea 0x354(%eax),%eax 108809: 89 42 08 mov %eax,0x8(%edx) 10880c: 8d 82 bc 03 00 00 lea 0x3bc(%edx),%eax 108812: 89 42 0c mov %eax,0xc(%edx) 108815: c7 42 10 00 00 00 00 movl $0x0,0x10(%edx) 10881c: 8d 72 14 lea 0x14(%edx),%esi 10881f: 31 c0 xor %eax,%eax 108821: b9 19 00 00 00 mov $0x19,%ecx 108826: 89 f7 mov %esi,%edi 108828: f3 aa rep stos %al,%es:(%edi) 10882a: c7 42 30 00 00 00 00 movl $0x0,0x30(%edx) 108831: c7 42 34 68 f8 11 00 movl $0x11f868,0x34(%edx) 108838: c7 42 38 00 00 00 00 movl $0x0,0x38(%edx) 10883f: c7 42 3c 00 00 00 00 movl $0x0,0x3c(%edx) 108846: c7 42 40 00 00 00 00 movl $0x0,0x40(%edx) 10884d: c7 42 44 00 00 00 00 movl $0x0,0x44(%edx) 108854: c7 42 48 00 00 00 00 movl $0x0,0x48(%edx) 10885b: c7 42 4c 00 00 00 00 movl $0x0,0x4c(%edx) 108862: c7 42 50 00 00 00 00 movl $0x0,0x50(%edx) 108869: c7 42 54 00 00 00 00 movl $0x0,0x54(%edx) 108870: c7 42 58 00 00 00 00 movl $0x0,0x58(%edx) 108877: c7 42 5c 00 00 00 00 movl $0x0,0x5c(%edx) 10887e: c6 42 60 00 movb $0x0,0x60(%edx) 108882: 8d 72 7c lea 0x7c(%edx),%esi 108885: b1 24 mov $0x24,%cl 108887: 89 f7 mov %esi,%edi 108889: f3 aa rep stos %al,%es:(%edi) 10888b: c7 82 a0 00 00 00 00 movl $0x0,0xa0(%edx) 108892: 00 00 00 108895: c7 82 a4 00 00 00 01 movl $0x1,0xa4(%edx) 10889c: 00 00 00 10889f: c7 82 a8 00 00 00 00 movl $0x0,0xa8(%edx) 1088a6: 00 00 00 1088a9: 66 c7 82 ac 00 00 00 movw $0x330e,0xac(%edx) 1088b0: 0e 33 1088b2: 66 c7 82 ae 00 00 00 movw $0xabcd,0xae(%edx) 1088b9: cd ab 1088bb: 66 c7 82 b0 00 00 00 movw $0x1234,0xb0(%edx) 1088c2: 34 12 1088c4: 66 c7 82 b2 00 00 00 movw $0xe66d,0xb2(%edx) 1088cb: 6d e6 1088cd: 66 c7 82 b4 00 00 00 movw $0xdeec,0xb4(%edx) 1088d4: ec de 1088d6: 66 c7 82 b6 00 00 00 movw $0x5,0xb6(%edx) 1088dd: 05 00 1088df: 66 c7 82 b8 00 00 00 movw $0xb,0xb8(%edx) 1088e6: 0b 00 1088e8: c7 82 bc 00 00 00 00 movl $0x0,0xbc(%edx) 1088ef: 00 00 00 1088f2: c7 82 c0 00 00 00 00 movl $0x0,0xc0(%edx) 1088f9: 00 00 00 1088fc: c7 82 c4 00 00 00 00 movl $0x0,0xc4(%edx) 108903: 00 00 00 108906: c7 82 c8 00 00 00 00 movl $0x0,0xc8(%edx) 10890d: 00 00 00 108910: c7 82 cc 00 00 00 00 movl $0x0,0xcc(%edx) 108917: 00 00 00 10891a: c7 82 d0 00 00 00 00 movl $0x0,0xd0(%edx) 108921: 00 00 00 108924: c7 82 f8 00 00 00 00 movl $0x0,0xf8(%edx) 10892b: 00 00 00 10892e: c7 82 fc 00 00 00 00 movl $0x0,0xfc(%edx) 108935: 00 00 00 108938: c7 82 00 01 00 00 00 movl $0x0,0x100(%edx) 10893f: 00 00 00 108942: c7 82 04 01 00 00 00 movl $0x0,0x104(%edx) 108949: 00 00 00 10894c: c7 82 08 01 00 00 00 movl $0x0,0x108(%edx) 108953: 00 00 00 108956: c7 82 0c 01 00 00 00 movl $0x0,0x10c(%edx) 10895d: 00 00 00 108960: c7 82 10 01 00 00 00 movl $0x0,0x110(%edx) 108967: 00 00 00 10896a: c7 82 14 01 00 00 00 movl $0x0,0x114(%edx) 108971: 00 00 00 108974: c7 82 18 01 00 00 00 movl $0x0,0x118(%edx) 10897b: 00 00 00 10897e: c7 82 1c 01 00 00 00 movl $0x0,0x11c(%edx) 108985: 00 00 00 108988: c6 82 d4 00 00 00 00 movb $0x0,0xd4(%edx) 10898f: c6 82 dc 00 00 00 00 movb $0x0,0xdc(%edx) 108996: c7 82 f4 00 00 00 00 movl $0x0,0xf4(%edx) 10899d: 00 00 00 1089a0: c7 82 48 01 00 00 00 movl $0x0,0x148(%edx) 1089a7: 00 00 00 1089aa: c7 82 4c 01 00 00 00 movl $0x0,0x14c(%edx) 1089b1: 00 00 00 1089b4: c7 82 50 01 00 00 00 movl $0x0,0x150(%edx) 1089bb: 00 00 00 1089be: c7 82 54 01 00 00 00 movl $0x0,0x154(%edx) 1089c5: 00 00 00 1089c8: c7 82 d4 02 00 00 00 movl $0x0,0x2d4(%edx) 1089cf: 00 00 00 1089d2: c7 82 d4 01 00 00 00 movl $0x0,0x1d4(%edx) 1089d9: 00 00 00 1089dc: c7 82 dc 02 00 00 00 movl $0x0,0x2dc(%edx) 1089e3: 00 00 00 1089e6: c7 82 e0 02 00 00 00 movl $0x0,0x2e0(%edx) 1089ed: 00 00 00 1089f0: c7 82 e4 02 00 00 00 movl $0x0,0x2e4(%edx) 1089f7: 00 00 00 1089fa: c7 82 e8 02 00 00 00 movl $0x0,0x2e8(%edx) 108a01: 00 00 00 108a04: 66 b9 38 01 mov $0x138,%cx 108a08: 89 df mov %ebx,%edi 108a0a: f3 aa rep stos %al,%es:(%edi) creating_task->libc_reent = ptr; 108a0c: 8b 45 0c mov 0xc(%ebp),%eax 108a0f: 89 90 ec 00 00 00 mov %edx,0xec(%eax) 108a15: b0 01 mov $0x1,%al return TRUE; } return FALSE; } 108a17: 8d 65 f4 lea -0xc(%ebp),%esp 108a1a: 5b pop %ebx 108a1b: 5e pop %esi 108a1c: 5f pop %edi 108a1d: c9 leave 108a1e: c3 ret 108a1f: 90 nop <== NOT EXECUTED * hooks run with thread dispatching disabled. */ ptr = (struct _reent *) _Workspace_Allocate(sizeof(struct _reent)); #endif if (ptr) { 108a20: 31 c0 xor %eax,%eax creating_task->libc_reent = ptr; return TRUE; } return FALSE; } 108a22: 8d 65 f4 lea -0xc(%ebp),%esp 108a25: 5b pop %ebx 108a26: 5e pop %esi 108a27: 5f pop %edi 108a28: c9 leave 108a29: c3 ret 108a2a: 66 90 xchg %ax,%ax <== NOT EXECUTED { struct _reent *ptr; if (_Thread_libc_reent == 0) { _REENT = _global_impure_ptr; 108a2c: a1 00 03 12 00 mov 0x120300,%eax 108a31: a3 a0 30 12 00 mov %eax,0x1230a0 RTEMS_INLINE_ROUTINE void _Thread_Set_libc_reent ( struct _reent **libc_reent ) { _Thread_libc_reent = libc_reent; 108a36: c7 05 c4 53 12 00 a0 movl $0x1230a0,0x1253c4 108a3d: 30 12 00 108a40: e9 95 fd ff ff jmp 1087da <== ALWAYS TAKEN 001086f8 : void newlib_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) { 1086f8: 55 push %ebp 1086f9: 89 e5 mov %esp,%ebp 1086fb: 57 push %edi 1086fc: 56 push %esi 1086fd: 53 push %ebx 1086fe: 83 ec 0c sub $0xc,%esp 108701: 8b 7d 08 mov 0x8(%ebp),%edi 108704: 8b 5d 0c mov 0xc(%ebp),%ebx /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) { 108707: 39 df cmp %ebx,%edi 108709: 74 55 je 108760 ptr = _REENT; } else { ptr = deleted_task->libc_reent; 10870b: 8b b3 ec 00 00 00 mov 0xec(%ebx),%esi } if (ptr && ptr != _global_impure_ptr) { 108711: 85 f6 test %esi,%esi 108713: 74 21 je 108736 <== ALWAYS TAKEN 108715: 3b 35 00 03 12 00 cmp 0x120300,%esi 10871b: 74 19 je 108736 _reclaim_reent(ptr); */ /* * Just in case there are some buffers lying around. */ _fwalk(ptr, newlib_free_buffers); 10871d: 83 ec 08 sub $0x8,%esp 108720: 68 68 87 10 00 push $0x108768 108725: 56 push %esi 108726: e8 fd a3 00 00 call 112b28 <_fwalk> #if REENT_MALLOCED free(ptr); #else _Workspace_Free(ptr); 10872b: 89 34 24 mov %esi,(%esp) 10872e: e8 b5 5d 00 00 call 10e4e8 <_Workspace_Free> 108733: 83 c4 10 add $0x10,%esp #endif } deleted_task->libc_reent = NULL; 108736: c7 83 ec 00 00 00 00 movl $0x0,0xec(%ebx) 10873d: 00 00 00 /* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) { 108740: 39 df cmp %ebx,%edi 108742: 74 08 je 10874c _REENT = 0; } } 108744: 8d 65 f4 lea -0xc(%ebp),%esp 108747: 5b pop %ebx 108748: 5e pop %esi 108749: 5f pop %edi 10874a: c9 leave 10874b: c3 ret /* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) { _REENT = 0; 10874c: c7 05 a0 30 12 00 00 movl $0x0,0x1230a0 108753: 00 00 00 } } 108756: 8d 65 f4 lea -0xc(%ebp),%esp 108759: 5b pop %ebx 10875a: 5e pop %esi 10875b: 5f pop %edi 10875c: c9 leave 10875d: c3 ret 10875e: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) { ptr = _REENT; 108760: 8b 35 a0 30 12 00 mov 0x1230a0,%esi 108766: eb a9 jmp 108711 <== ALWAYS TAKEN 00108768 : */ int newlib_free_buffers( FILE *fp ) { 108768: 55 push %ebp 108769: 89 e5 mov %esp,%ebp 10876b: 53 push %ebx 10876c: 83 ec 10 sub $0x10,%esp 10876f: 8b 5d 08 mov 0x8(%ebp),%ebx switch ( fileno(fp) ) { 108772: 53 push %ebx 108773: e8 b8 9f 00 00 call 112730 108778: 83 c4 10 add $0x10,%esp 10877b: 83 f8 02 cmp $0x2,%eax 10877e: 76 14 jbe 108794 <== NEVER TAKEN fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 108780: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108783: 53 push %ebx <== NOT EXECUTED 108784: e8 63 9d 00 00 call 1124ec <== NOT EXECUTED 108789: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } return 0; } 10878c: 31 c0 xor %eax,%eax 10878e: 8b 5d fc mov -0x4(%ebp),%ebx 108791: c9 leave 108792: c3 ret 108793: 90 nop <== NOT EXECUTED { switch ( fileno(fp) ) { case 0: case 1: case 2: if (fp->_flags & __SMBF) { 108794: 80 7b 0c 00 cmpb $0x0,0xc(%ebx) 108798: 79 f2 jns 10878c <== NEVER TAKEN free( fp->_bf._base ); 10879a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10879d: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 1087a0: e8 37 f8 ff ff call 107fdc <== NOT EXECUTED fp->_flags &= ~__SMBF; 1087a5: 66 81 63 0c 7f ff andw $0xff7f,0xc(%ebx) <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 1087ab: c7 03 00 00 00 00 movl $0x0,(%ebx) <== NOT EXECUTED 1087b1: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED 1087b8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED break; default: fclose(fp); } return 0; } 1087bb: 31 c0 xor %eax,%eax <== NOT EXECUTED 1087bd: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 1087c0: c9 leave <== NOT EXECUTED 1087c1: c3 ret <== NOT EXECUTED 00108660 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { 108660: 55 push %ebp 108661: 89 e5 mov %esp,%ebp 108663: 53 push %ebx 108664: 83 ec 04 sub $0x4,%esp 108667: 8b 5d 08 mov 0x8(%ebp),%ebx rtems_device_driver status; if ( !initialized ) { 10866a: 80 3d b8 7f 12 00 00 cmpb $0x0,0x127fb8 108671: 74 09 je 10867c NULL_major = major; } return RTEMS_SUCCESSFUL; } 108673: 31 c0 xor %eax,%eax 108675: 8b 5d fc mov -0x4(%ebp),%ebx 108678: c9 leave 108679: c3 ret 10867a: 66 90 xchg %ax,%ax <== NOT EXECUTED ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 10867c: c6 05 b8 7f 12 00 01 movb $0x1,0x127fb8 status = rtems_io_register_name( 108683: 50 push %eax 108684: 6a 00 push $0x0 108686: 53 push %ebx 108687: 68 4b 10 12 00 push $0x12104b 10868c: e8 1f 01 00 00 call 1087b0 <== ALWAYS TAKEN "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 108691: 83 c4 10 add $0x10,%esp 108694: 85 c0 test %eax,%eax 108696: 75 0d jne 1086a5 <== ALWAYS TAKEN rtems_fatal_error_occurred(status); NULL_major = major; 108698: 89 1d 20 83 12 00 mov %ebx,0x128320 } return RTEMS_SUCCESSFUL; } 10869e: 31 c0 xor %eax,%eax 1086a0: 8b 5d fc mov -0x4(%ebp),%ebx 1086a3: c9 leave 1086a4: c3 ret major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); 1086a5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1086a8: 50 push %eax <== NOT EXECUTED 1086a9: e8 92 42 00 00 call 10c940 <== NOT EXECUTED 00108644 : rtems_device_driver null_write( rtems_device_major_number major __attribute__((unused)), rtems_device_minor_number minor __attribute__((unused)), void *pargp ) { 108644: 55 push %ebp 108645: 89 e5 mov %esp,%ebp 108647: 8b 45 10 mov 0x10(%ebp),%eax rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) 10864a: 85 c0 test %eax,%eax 10864c: 74 06 je 108654 <== NEVER TAKEN rw_args->bytes_moved = rw_args->count; 10864e: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED 108651: 89 50 18 mov %edx,0x18(%eax) <== NOT EXECUTED return NULL_SUCCESSFUL; } 108654: 31 c0 xor %eax,%eax 108656: c9 leave 108657: c3 ret 00108aa8 : int open( const char *pathname, int flags, ... ) { 108aa8: 55 push %ebp 108aa9: 89 e5 mov %esp,%ebp 108aab: 57 push %edi 108aac: 56 push %esi 108aad: 53 push %ebx 108aae: 83 ec 4c sub $0x4c,%esp /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 108ab1: 8b 45 0c mov 0xc(%ebp),%eax 108ab4: 40 inc %eax if ( ( status & _FREAD ) == _FREAD ) 108ab5: 89 c6 mov %eax,%esi 108ab7: 83 e6 01 and $0x1,%esi 108aba: f7 de neg %esi 108abc: 83 e6 04 and $0x4,%esi eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 108abf: a8 02 test $0x2,%al 108ac1: 74 03 je 108ac6 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 108ac3: 83 ce 02 or $0x2,%esi va_start(ap, flags); mode = va_arg( ap, int ); 108ac6: 8b 45 10 mov 0x10(%ebp),%eax 108ac9: 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(); 108acc: e8 b7 6f 00 00 call 10fa88 <== ALWAYS TAKEN 108ad1: 89 c3 mov %eax,%ebx if ( iop == 0 ) { 108ad3: 85 c0 test %eax,%eax 108ad5: 0f 84 bd 00 00 00 je 108b98 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); 108adb: b9 ff ff ff ff mov $0xffffffff,%ecx 108ae0: 8b 7d 08 mov 0x8(%ebp),%edi 108ae3: 31 c0 xor %eax,%eax 108ae5: f2 ae repnz scas %es:(%edi),%al 108ae7: f7 d1 not %ecx 108ae9: 49 dec %ecx /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 108aea: 83 ec 0c sub $0xc,%esp 108aed: 6a 01 push $0x1 108aef: 8d 45 d4 lea -0x2c(%ebp),%eax 108af2: 89 45 b4 mov %eax,-0x4c(%ebp) 108af5: 50 push %eax 108af6: 56 push %esi 108af7: 51 push %ecx 108af8: ff 75 08 pushl 0x8(%ebp) 108afb: e8 28 f4 ff ff call 107f28 <== ALWAYS TAKEN 108b00: 89 c6 mov %eax,%esi pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { 108b02: 83 c4 20 add $0x20,%esp 108b05: 83 f8 ff cmp $0xffffffff,%eax 108b08: 0f 84 f2 00 00 00 je 108c00 if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 108b0e: 8b 45 0c mov 0xc(%ebp),%eax 108b11: 25 00 0a 00 00 and $0xa00,%eax 108b16: 3d 00 0a 00 00 cmp $0xa00,%eax 108b1b: 0f 84 8b 00 00 00 je 108bac <== ALWAYS TAKEN /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 108b21: 8b 45 dc mov -0x24(%ebp),%eax 108b24: 89 43 3c mov %eax,0x3c(%ebx) iop->file_info = loc.node_access; 108b27: 8b 45 d4 mov -0x2c(%ebp),%eax 108b2a: 89 43 38 mov %eax,0x38(%ebx) iop->flags |= rtems_libio_fcntl_flags( flags ); 108b2d: 8b 73 14 mov 0x14(%ebx),%esi 108b30: 83 ec 0c sub $0xc,%esp 108b33: ff 75 0c pushl 0xc(%ebp) 108b36: e8 d9 6f 00 00 call 10fb14 <== ALWAYS TAKEN 108b3b: 09 f0 or %esi,%eax 108b3d: 89 43 14 mov %eax,0x14(%ebx) iop->pathinfo = loc; 108b40: 8d 7b 18 lea 0x18(%ebx),%edi 108b43: b9 05 00 00 00 mov $0x5,%ecx 108b48: 8b 75 b4 mov -0x4c(%ebp),%esi 108b4b: f3 a5 rep movsl %ds:(%esi),%es:(%edi) if ( !iop->handlers || !iop->handlers->open_h ) { 108b4d: 8b 43 3c mov 0x3c(%ebx),%eax 108b50: 83 c4 10 add $0x10,%esp 108b53: 85 c0 test %eax,%eax 108b55: 0f 84 99 00 00 00 je 108bf4 <== ALWAYS TAKEN 108b5b: 8b 00 mov (%eax),%eax 108b5d: 85 c0 test %eax,%eax 108b5f: 0f 84 8f 00 00 00 je 108bf4 <== ALWAYS TAKEN rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 108b65: ff 75 c4 pushl -0x3c(%ebp) 108b68: ff 75 0c pushl 0xc(%ebp) 108b6b: ff 75 08 pushl 0x8(%ebp) 108b6e: 53 push %ebx 108b6f: ff d0 call *%eax if ( rc ) { 108b71: 83 c4 10 add $0x10,%esp 108b74: 85 c0 test %eax,%eax 108b76: 75 6c jne 108be4 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 108b78: f7 45 0c 00 04 00 00 testl $0x400,0xc(%ebp) 108b7f: 0f 85 93 00 00 00 jne 108c18 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 108b85: 89 d8 mov %ebx,%eax 108b87: 2b 05 a0 51 12 00 sub 0x1251a0,%eax 108b8d: c1 f8 06 sar $0x6,%eax } 108b90: 8d 65 f4 lea -0xc(%ebp),%esp 108b93: 5b pop %ebx 108b94: 5e pop %esi 108b95: 5f pop %edi 108b96: c9 leave 108b97: c3 ret * descriptors are obtained using socket(), not open(). */ /* allocate a file control block */ iop = rtems_libio_allocate(); if ( iop == 0 ) { 108b98: 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 ); 108b9d: e8 fe 97 00 00 call 1123a0 <__errno> 108ba2: 89 30 mov %esi,(%eax) 108ba4: b8 ff ff ff ff mov $0xffffffff,%eax 108ba9: eb e5 jmp 108b90 <== ALWAYS TAKEN 108bab: 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)) { 108bac: 8d 7d d4 lea -0x2c(%ebp),%edi 108baf: be 11 00 00 00 mov $0x11,%esi done: va_end(ap); if ( rc ) { if ( iop ) 108bb4: 85 db test %ebx,%ebx 108bb6: 74 0c je 108bc4 <== ALWAYS TAKEN rtems_libio_free( iop ); 108bb8: 83 ec 0c sub $0xc,%esp 108bbb: 53 push %ebx 108bbc: e8 6f 6e 00 00 call 10fa30 108bc1: 83 c4 10 add $0x10,%esp if ( loc_to_free ) 108bc4: 85 ff test %edi,%edi 108bc6: 74 d5 je 108b9d rtems_filesystem_freenode( loc_to_free ); 108bc8: 8b 47 0c mov 0xc(%edi),%eax 108bcb: 85 c0 test %eax,%eax 108bcd: 74 ce je 108b9d <== ALWAYS TAKEN 108bcf: 8b 40 1c mov 0x1c(%eax),%eax 108bd2: 85 c0 test %eax,%eax 108bd4: 74 c7 je 108b9d <== ALWAYS TAKEN 108bd6: 83 ec 0c sub $0xc,%esp 108bd9: 57 push %edi 108bda: ff d0 call *%eax 108bdc: 83 c4 10 add $0x10,%esp 108bdf: eb bc jmp 108b9d <== ALWAYS TAKEN 108be1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); if ( rc ) { rc = errno; 108be4: e8 b7 97 00 00 call 1123a0 <__errno> 108be9: 8b 30 mov (%eax),%esi 108beb: 8d 7d d4 lea -0x2c(%ebp),%edi */ done: va_end(ap); if ( rc ) { 108bee: 85 f6 test %esi,%esi 108bf0: 74 93 je 108b85 <== ALWAYS TAKEN 108bf2: eb c0 jmp 108bb4 <== ALWAYS TAKEN if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 108bf4: 8d 7d d4 lea -0x2c(%ebp),%edi <== NOT EXECUTED 108bf7: be 86 00 00 00 mov $0x86,%esi <== NOT EXECUTED 108bfc: eb b6 jmp 108bb4 <== NOT EXECUTED 108bfe: 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 ) { 108c00: e8 9b 97 00 00 call 1123a0 <__errno> 108c05: 83 38 02 cmpl $0x2,(%eax) 108c08: 74 5e je 108c68 } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); if ( rc ) { rc = errno; 108c0a: e8 91 97 00 00 call 1123a0 <__errno> 108c0f: 8b 30 mov (%eax),%esi 108c11: 31 ff xor %edi,%edi goto done; 108c13: eb d9 jmp 108bee <== ALWAYS TAKEN 108c15: 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 ); 108c18: 83 ec 08 sub $0x8,%esp 108c1b: 6a 00 push $0x0 108c1d: 89 d8 mov %ebx,%eax 108c1f: 2b 05 a0 51 12 00 sub 0x1251a0,%eax 108c25: c1 f8 06 sar $0x6,%eax 108c28: 50 push %eax 108c29: e8 b2 6b 00 00 call 10f7e0 108c2e: 89 c6 mov %eax,%esi if ( rc ) { 108c30: 83 c4 10 add $0x10,%esp 108c33: 85 c0 test %eax,%eax 108c35: 0f 84 4a ff ff ff je 108b85 <== NEVER TAKEN if(errno) rc = errno; 108c3b: e8 60 97 00 00 call 1123a0 <__errno> <== NOT EXECUTED 108c40: 8b 00 mov (%eax),%eax <== NOT EXECUTED 108c42: 85 c0 test %eax,%eax <== NOT EXECUTED 108c44: 0f 85 8b 00 00 00 jne 108cd5 <== NOT EXECUTED close( iop - rtems_libio_iops ); 108c4a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108c4d: 2b 1d a0 51 12 00 sub 0x1251a0,%ebx <== NOT EXECUTED 108c53: c1 fb 06 sar $0x6,%ebx <== NOT EXECUTED 108c56: 53 push %ebx <== NOT EXECUTED 108c57: e8 f4 6a 00 00 call 10f750 <== NOT EXECUTED 108c5c: 31 ff xor %edi,%edi <== NOT EXECUTED 108c5e: 31 db xor %ebx,%ebx <== NOT EXECUTED 108c60: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108c63: eb 89 jmp 108bee <== NOT EXECUTED 108c65: 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) ) { 108c68: f7 45 0c 00 02 00 00 testl $0x200,0xc(%ebp) 108c6f: 75 0f jne 108c80 108c71: 31 ff xor %edi,%edi 108c73: be 02 00 00 00 mov $0x2,%esi 108c78: e9 37 ff ff ff jmp 108bb4 <== ALWAYS TAKEN 108c7d: 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 ); 108c80: 6a 00 push $0x0 108c82: 6a 00 push $0x0 108c84: 8b 45 c4 mov -0x3c(%ebp),%eax 108c87: 80 cc 80 or $0x80,%ah 108c8a: 50 push %eax 108c8b: ff 75 08 pushl 0x8(%ebp) 108c8e: e8 75 f6 ff ff call 108308 <== ALWAYS TAKEN if ( rc ) { 108c93: 83 c4 10 add $0x10,%esp 108c96: 85 c0 test %eax,%eax 108c98: 0f 85 6c ff ff ff jne 108c0a <== 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 ); 108c9e: 89 f1 mov %esi,%ecx 108ca0: 8b 7d 08 mov 0x8(%ebp),%edi 108ca3: 31 c0 xor %eax,%eax 108ca5: f2 ae repnz scas %es:(%edi),%al 108ca7: f7 d1 not %ecx 108ca9: 49 dec %ecx 108caa: 83 ec 0c sub $0xc,%esp 108cad: 6a 01 push $0x1 108caf: 8d 45 d4 lea -0x2c(%ebp),%eax 108cb2: 50 push %eax 108cb3: 6a 00 push $0x0 108cb5: 51 push %ecx 108cb6: ff 75 08 pushl 0x8(%ebp) 108cb9: e8 6a f2 ff ff call 107f28 if ( status != 0 ) { /* The file did not exist */ 108cbe: 83 c4 20 add $0x20,%esp 108cc1: 85 c0 test %eax,%eax 108cc3: 0f 84 58 fe ff ff je 108b21 <== NEVER TAKEN 108cc9: 31 ff xor %edi,%edi <== NOT EXECUTED 108ccb: be 0d 00 00 00 mov $0xd,%esi <== NOT EXECUTED 108cd0: e9 df fe ff ff jmp 108bb4 <== NOT EXECUTED */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; 108cd5: e8 c6 96 00 00 call 1123a0 <__errno> <== NOT EXECUTED 108cda: 8b 30 mov (%eax),%esi <== NOT EXECUTED 108cdc: e9 69 ff ff ff jmp 108c4a <== NOT EXECUTED 00108a48 : /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { 108a48: 55 push %ebp 108a49: 89 e5 mov %esp,%ebp 108a4b: 83 ec 0c sub $0xc,%esp int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 108a4e: 6a 00 push $0x0 108a50: 6a 00 push $0x0 108a52: 68 70 e0 11 00 push $0x11e070 108a57: e8 4c 00 00 00 call 108aa8 <== ALWAYS TAKEN 108a5c: 83 c4 10 add $0x10,%esp 108a5f: 40 inc %eax 108a60: 74 2a je 108a8c /* * 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) 108a62: 52 push %edx 108a63: 6a 00 push $0x0 108a65: 6a 01 push $0x1 108a67: 68 70 e0 11 00 push $0x11e070 108a6c: e8 37 00 00 00 call 108aa8 <== ALWAYS TAKEN 108a71: 83 c4 10 add $0x10,%esp 108a74: 40 inc %eax 108a75: 74 24 je 108a9b <== ALWAYS TAKEN rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 108a77: 50 push %eax 108a78: 6a 00 push $0x0 108a7a: 6a 01 push $0x1 108a7c: 68 70 e0 11 00 push $0x11e070 108a81: e8 22 00 00 00 call 108aa8 <== ALWAYS TAKEN 108a86: 83 c4 10 add $0x10,%esp 108a89: 40 inc %eax 108a8a: 74 02 je 108a8e <== ALWAYS TAKEN rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ } 108a8c: c9 leave 108a8d: 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 */ 108a8e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108a91: 68 32 44 54 55 push $0x55544432 <== NOT EXECUTED 108a96: e8 fd 30 00 00 call 10bb98 <== 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 */ 108a9b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108a9e: 68 31 44 54 55 push $0x55544431 <== NOT EXECUTED 108aa3: e8 f0 30 00 00 call 10bb98 <== NOT EXECUTED 001095c4 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 1095c4: 55 push %ebp 1095c5: 89 e5 mov %esp,%ebp 1095c7: 56 push %esi 1095c8: 53 push %ebx 1095c9: 83 ec 10 sub $0x10,%esp 1095cc: 88 45 f4 mov %al,-0xc(%ebp) int i; if (tty->termios.c_oflag & OPOST) { 1095cf: 8b 4a 34 mov 0x34(%edx),%ecx 1095d2: f6 c1 01 test $0x1,%cl 1095d5: 74 31 je 109608 <== ALWAYS TAKEN switch (c) { 1095d7: 3c 09 cmp $0x9,%al 1095d9: 0f 84 b1 00 00 00 je 109690 1095df: 76 3f jbe 109620 <== ALWAYS TAKEN 1095e1: 3c 0a cmp $0xa,%al 1095e3: 74 4f je 109634 1095e5: 3c 0d cmp $0xd,%al 1095e7: 74 7f je 109668 <== ALWAYS TAKEN if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 1095e9: 83 e1 02 and $0x2,%ecx 1095ec: 0f 85 c6 00 00 00 jne 1096b8 <== ALWAYS TAKEN 1095f2: 8b 0d 88 30 12 00 mov 0x123088,%ecx c = toupper(c); if (!iscntrl(c)) 1095f8: 0f b6 c0 movzbl %al,%eax 1095fb: f6 44 01 01 20 testb $0x20,0x1(%ecx,%eax,1) 109600: 75 06 jne 109608 <== ALWAYS TAKEN tty->column++; 109602: ff 42 28 incl 0x28(%edx) 109605: 8d 76 00 lea 0x0(%esi),%esi break; } } rtems_termios_puts (&c, 1, tty); 109608: 50 push %eax 109609: 52 push %edx 10960a: 6a 01 push $0x1 10960c: 8d 45 f4 lea -0xc(%ebp),%eax 10960f: 50 push %eax 109610: e8 7b fe ff ff call 109490 <== ALWAYS TAKEN 109615: 83 c4 10 add $0x10,%esp } 109618: 8d 65 f8 lea -0x8(%ebp),%esp 10961b: 5b pop %ebx 10961c: 5e pop %esi 10961d: c9 leave 10961e: c3 ret 10961f: 90 nop <== NOT EXECUTED oproc (unsigned char c, struct rtems_termios_tty *tty) { int i; if (tty->termios.c_oflag & OPOST) { switch (c) { 109620: 3c 08 cmp $0x8,%al <== NOT EXECUTED 109622: 75 c5 jne 1095e9 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 109624: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED 109627: 85 c0 test %eax,%eax <== NOT EXECUTED 109629: 7e dd jle 109608 <== NOT EXECUTED tty->column--; 10962b: 48 dec %eax <== NOT EXECUTED 10962c: 89 42 28 mov %eax,0x28(%edx) <== NOT EXECUTED 10962f: eb d7 jmp 109608 <== NOT EXECUTED 109631: 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) 109634: f6 c1 20 test $0x20,%cl 109637: 74 07 je 109640 <== NEVER TAKEN tty->column = 0; 109639: c7 42 28 00 00 00 00 movl $0x0,0x28(%edx) <== NOT EXECUTED if (tty->termios.c_oflag & ONLCR) { 109640: 83 e1 04 and $0x4,%ecx 109643: 74 c3 je 109608 <== ALWAYS TAKEN rtems_termios_puts ("\r", 1, tty); 109645: 56 push %esi 109646: 52 push %edx 109647: 6a 01 push $0x1 109649: 68 6a f8 11 00 push $0x11f86a 10964e: 89 55 f0 mov %edx,-0x10(%ebp) 109651: e8 3a fe ff ff call 109490 <== ALWAYS TAKEN tty->column = 0; 109656: 8b 55 f0 mov -0x10(%ebp),%edx 109659: c7 42 28 00 00 00 00 movl $0x0,0x28(%edx) 109660: 83 c4 10 add $0x10,%esp 109663: eb a3 jmp 109608 <== ALWAYS TAKEN 109665: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 109668: f6 c1 10 test $0x10,%cl <== NOT EXECUTED 10966b: 74 07 je 109674 <== NOT EXECUTED 10966d: 8b 5a 28 mov 0x28(%edx),%ebx <== NOT EXECUTED 109670: 85 db test %ebx,%ebx <== NOT EXECUTED 109672: 74 a4 je 109618 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 109674: f6 c1 08 test $0x8,%cl <== NOT EXECUTED 109677: 74 09 je 109682 <== NOT EXECUTED c = '\n'; 109679: c6 45 f4 0a movb $0xa,-0xc(%ebp) <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 10967d: 83 e1 20 and $0x20,%ecx <== NOT EXECUTED 109680: 74 86 je 109608 <== NOT EXECUTED tty->column = 0; break; } tty->column = 0; 109682: c7 42 28 00 00 00 00 movl $0x0,0x28(%edx) <== NOT EXECUTED break; 109689: e9 7a ff ff ff jmp 109608 <== NOT EXECUTED 10968e: 66 90 xchg %ax,%ax <== NOT EXECUTED case '\t': i = 8 - (tty->column & 7); 109690: 8b 5a 28 mov 0x28(%edx),%ebx 109693: 89 de mov %ebx,%esi 109695: 83 e6 07 and $0x7,%esi 109698: b8 08 00 00 00 mov $0x8,%eax 10969d: 29 f0 sub %esi,%eax if ((tty->termios.c_oflag & TABDLY) == XTABS) { 10969f: 81 e1 00 18 00 00 and $0x1800,%ecx 1096a5: 81 f9 00 18 00 00 cmp $0x1800,%ecx 1096ab: 74 37 je 1096e4 <== NEVER TAKEN tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; 1096ad: 01 d8 add %ebx,%eax <== NOT EXECUTED 1096af: 89 42 28 mov %eax,0x28(%edx) <== NOT EXECUTED break; 1096b2: e9 51 ff ff ff jmp 109608 <== NOT EXECUTED 1096b7: 90 nop <== NOT EXECUTED tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) c = toupper(c); 1096b8: 8b 0d 88 30 12 00 mov 0x123088,%ecx <== NOT EXECUTED 1096be: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 1096c1: 0f be 5c 01 01 movsbl 0x1(%ecx,%eax,1),%ebx <== NOT EXECUTED 1096c6: 83 e3 03 and $0x3,%ebx <== NOT EXECUTED 1096c9: 83 fb 02 cmp $0x2,%ebx <== NOT EXECUTED 1096cc: 74 0e je 1096dc <== NOT EXECUTED 1096ce: 89 c3 mov %eax,%ebx <== NOT EXECUTED 1096d0: 88 d8 mov %bl,%al <== NOT EXECUTED 1096d2: 88 5d f4 mov %bl,-0xc(%ebp) <== NOT EXECUTED 1096d5: e9 1e ff ff ff jmp 1095f8 <== NOT EXECUTED 1096da: 66 90 xchg %ax,%ax <== NOT EXECUTED 1096dc: 8d 58 e0 lea -0x20(%eax),%ebx <== NOT EXECUTED 1096df: eb ef jmp 1096d0 <== NOT EXECUTED 1096e1: 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; 1096e4: 8d 1c 18 lea (%eax,%ebx,1),%ebx 1096e7: 89 5a 28 mov %ebx,0x28(%edx) rtems_termios_puts ( " ", i, tty); 1096ea: 51 push %ecx 1096eb: 52 push %edx 1096ec: 50 push %eax 1096ed: 68 7c f5 11 00 push $0x11f57c 1096f2: e8 99 fd ff ff call 109490 <== ALWAYS TAKEN return; 1096f7: 83 c4 10 add $0x10,%esp 1096fa: e9 19 ff ff ff jmp 109618 <== ALWAYS TAKEN 0010a41c : long pathconf( const char *path, int name ) { 10a41c: 55 push %ebp 10a41d: 89 e5 mov %esp,%ebp 10a41f: 56 push %esi 10a420: 53 push %ebx int status; int fd; fd = open( path, O_RDONLY ); 10a421: 83 ec 08 sub $0x8,%esp 10a424: 6a 00 push $0x0 10a426: ff 75 08 pushl 0x8(%ebp) 10a429: e8 92 fd ff ff call 10a1c0 <== ALWAYS TAKEN 10a42e: 89 c3 mov %eax,%ebx if ( fd == -1 ) 10a430: 83 c4 10 add $0x10,%esp 10a433: 83 f8 ff cmp $0xffffffff,%eax 10a436: 74 24 je 10a45c return -1; status = fpathconf( fd, name ); 10a438: 83 ec 08 sub $0x8,%esp 10a43b: ff 75 0c pushl 0xc(%ebp) 10a43e: 50 push %eax 10a43f: e8 10 ed ff ff call 109154 10a444: 89 c6 mov %eax,%esi (void) close( fd ); 10a446: 89 1c 24 mov %ebx,(%esp) 10a449: e8 e2 e7 ff ff call 108c30 return status; 10a44e: 83 c4 10 add $0x10,%esp } 10a451: 89 f0 mov %esi,%eax 10a453: 8d 65 f8 lea -0x8(%ebp),%esp 10a456: 5b pop %ebx 10a457: 5e pop %esi 10a458: c9 leave 10a459: c3 ret 10a45a: 66 90 xchg %ax,%ax <== NOT EXECUTED { int status; int fd; fd = open( path, O_RDONLY ); if ( fd == -1 ) 10a45c: be ff ff ff ff mov $0xffffffff,%esi status = fpathconf( fd, name ); (void) close( fd ); return status; } 10a461: 89 f0 mov %esi,%eax 10a463: 8d 65 f8 lea -0x8(%ebp),%esp 10a466: 5b pop %ebx 10a467: 5e pop %esi 10a468: c9 leave 10a469: c3 ret 00111ee8 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 111ee8: 55 push %ebp 111ee9: 89 e5 mov %esp,%ebp 111eeb: 57 push %edi 111eec: 56 push %esi 111eed: 53 push %ebx 111eee: 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) 111ef1: 6a 01 push $0x1 111ef3: 8d 5d c4 lea -0x3c(%ebp),%ebx 111ef6: 53 push %ebx 111ef7: 6a 07 push $0x7 111ef9: 6a 03 push $0x3 111efb: 68 37 ff 11 00 push $0x11ff37 111f00: e8 23 60 ff ff call 107f28 111f05: 83 c4 20 add $0x20,%esp 111f08: 85 c0 test %eax,%eax 111f0a: 0f 85 e0 00 00 00 jne 111ff0 <== NEVER TAKEN return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) return -1; } else rtems_filesystem_freenode(&loc); 111f10: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED 111f13: 85 c0 test %eax,%eax <== NOT EXECUTED 111f15: 74 10 je 111f27 <== NOT EXECUTED 111f17: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 111f1a: 85 c0 test %eax,%eax <== NOT EXECUTED 111f1c: 74 09 je 111f27 <== NOT EXECUTED 111f1e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111f21: 53 push %ebx <== NOT EXECUTED 111f22: ff d0 call *%eax <== NOT EXECUTED 111f24: 83 c4 10 add $0x10,%esp <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 111f27: 8d 5d d9 lea -0x27(%ebp),%ebx 111f2a: be 3c ff 11 00 mov $0x11ff3c,%esi 111f2f: b9 0a 00 00 00 mov $0xa,%ecx 111f34: 89 df mov %ebx,%edi 111f36: f3 a4 rep movsb %ds:(%esi),%es:(%edi) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 111f38: 0f b7 05 74 4f 12 00 movzwl 0x124f74,%eax 111f3f: 8d 50 01 lea 0x1(%eax),%edx 111f42: 66 89 15 74 4f 12 00 mov %dx,0x124f74 111f49: 51 push %ecx 111f4a: 50 push %eax 111f4b: 68 47 ff 11 00 push $0x11ff47 111f50: 8d 45 e3 lea -0x1d(%ebp),%eax 111f53: 50 push %eax 111f54: e8 5f 0d 00 00 call 112cb8 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 111f59: 58 pop %eax 111f5a: 5a pop %edx 111f5b: 68 80 01 00 00 push $0x180 111f60: 53 push %ebx 111f61: e8 4a 01 00 00 call 1120b0 111f66: 83 c4 10 add $0x10,%esp 111f69: 85 c0 test %eax,%eax 111f6b: 75 6f jne 111fdc <== 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); 111f6d: 83 ec 08 sub $0x8,%esp 111f70: 68 00 40 00 00 push $0x4000 111f75: 53 push %ebx 111f76: e8 2d 6b ff ff call 108aa8 111f7b: 8b 55 08 mov 0x8(%ebp),%edx 111f7e: 89 02 mov %eax,(%edx) if (filsdes[0] < 0) { 111f80: 83 c4 10 add $0x10,%esp 111f83: 85 c0 test %eax,%eax 111f85: 0f 88 a1 00 00 00 js 11202c <== 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]); 111f8b: 3b 05 4c 11 12 00 cmp 0x12114c,%eax <== NOT EXECUTED 111f91: 0f 82 85 00 00 00 jb 11201c <== NOT EXECUTED 111f97: 31 c0 xor %eax,%eax <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 111f99: 83 60 14 fe andl $0xfffffffe,0x14(%eax) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 111f9d: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 111fa0: 6a 01 push $0x1 <== NOT EXECUTED 111fa2: 53 push %ebx <== NOT EXECUTED 111fa3: e8 00 6b ff ff call 108aa8 <== NOT EXECUTED 111fa8: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 111fab: 89 42 04 mov %eax,0x4(%edx) <== NOT EXECUTED if (filsdes[1] < 0) { 111fae: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111fb1: 85 c0 test %eax,%eax <== NOT EXECUTED 111fb3: 0f 88 8b 00 00 00 js 112044 <== NOT EXECUTED 111fb9: 31 f6 xor %esi,%esi <== NOT EXECUTED err = errno; close(filsdes[0]); } unlink(fifopath); 111fbb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111fbe: 53 push %ebx <== NOT EXECUTED 111fbf: e8 08 01 00 00 call 1120cc <== NOT EXECUTED 111fc4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } rtems_set_errno_and_return_minus_one(err); 111fc7: e8 d4 03 00 00 call 1123a0 <__errno> 111fcc: 89 30 mov %esi,(%eax) } 111fce: b8 ff ff ff ff mov $0xffffffff,%eax 111fd3: 8d 65 f4 lea -0xc(%ebp),%esp 111fd6: 5b pop %ebx 111fd7: 5e pop %esi 111fd8: 5f pop %edi 111fd9: c9 leave 111fda: c3 ret 111fdb: 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){ 111fdc: e8 bf 03 00 00 call 1123a0 <__errno> <== NOT EXECUTED } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); } 111fe1: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 111fe6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 111fe9: 5b pop %ebx <== NOT EXECUTED 111fea: 5e pop %esi <== NOT EXECUTED 111feb: 5f pop %edi <== NOT EXECUTED 111fec: c9 leave <== NOT EXECUTED 111fed: c3 ret <== NOT EXECUTED 111fee: 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) 111ff0: e8 ab 03 00 00 call 1123a0 <__errno> 111ff5: 83 38 02 cmpl $0x2,(%eax) 111ff8: 75 e7 jne 111fe1 <== ALWAYS TAKEN return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 111ffa: 83 ec 08 sub $0x8,%esp 111ffd: 68 ff 03 00 00 push $0x3ff 112002: 68 37 ff 11 00 push $0x11ff37 112007: e8 e0 62 ff ff call 1082ec 11200c: 83 c4 10 add $0x10,%esp 11200f: 85 c0 test %eax,%eax 112011: 0f 84 10 ff ff ff je 111f27 <== NEVER TAKEN 112017: eb c8 jmp 111fe1 <== NOT EXECUTED 112019: 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]); 11201c: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 11201f: 03 05 a0 51 12 00 add 0x1251a0,%eax <== NOT EXECUTED 112025: e9 6f ff ff ff jmp 111f99 <== NOT EXECUTED 11202a: 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; 11202c: e8 6f 03 00 00 call 1123a0 <__errno> 112031: 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); 112033: 83 ec 0c sub $0xc,%esp 112036: 53 push %ebx 112037: e8 90 00 00 00 call 1120cc 11203c: 83 c4 10 add $0x10,%esp 11203f: eb 86 jmp 111fc7 <== ALWAYS TAKEN 112041: 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; 112044: e8 57 03 00 00 call 1123a0 <__errno> <== NOT EXECUTED 112049: 8b 30 mov (%eax),%esi <== NOT EXECUTED close(filsdes[0]); 11204b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11204e: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 112051: ff 30 pushl (%eax) <== NOT EXECUTED 112053: e8 f8 d6 ff ff call 10f750 <== NOT EXECUTED 112058: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11205b: e9 5b ff ff ff jmp 111fbb <== NOT EXECUTED 00110c14 : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 110c14: 55 push %ebp <== NOT EXECUTED 110c15: 89 e5 mov %esp,%ebp <== NOT EXECUTED 110c17: 56 push %esi <== NOT EXECUTED 110c18: 53 push %ebx <== NOT EXECUTED 110c19: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED 110c1c: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED if (cmd == FIONREAD) { 110c1f: 81 7d 0c 7f 66 04 40 cmpl $0x4004667f,0xc(%ebp) <== NOT EXECUTED 110c26: 74 0c je 110c34 <== NOT EXECUTED 110c28: b8 ea ff ff ff mov $0xffffffea,%eax <== NOT EXECUTED PIPE_UNLOCK(pipe); return 0; } return -EINVAL; } 110c2d: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 110c30: 5b pop %ebx <== NOT EXECUTED 110c31: 5e pop %esi <== NOT EXECUTED 110c32: c9 leave <== NOT EXECUTED 110c33: c3 ret <== NOT EXECUTED void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) { if (buffer == NULL) 110c34: 85 db test %ebx,%ebx <== NOT EXECUTED 110c36: 75 07 jne 110c3f <== NOT EXECUTED 110c38: b8 f2 ff ff ff mov $0xfffffff2,%eax <== NOT EXECUTED 110c3d: eb ee jmp 110c2d <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 110c3f: 52 push %edx <== NOT EXECUTED 110c40: 6a 00 push $0x0 <== NOT EXECUTED 110c42: 6a 00 push $0x0 <== NOT EXECUTED 110c44: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED 110c47: e8 14 a9 ff ff call 10b560 <== NOT EXECUTED 110c4c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110c4f: 85 c0 test %eax,%eax <== NOT EXECUTED 110c51: 74 07 je 110c5a <== NOT EXECUTED 110c53: b8 fc ff ff ff mov $0xfffffffc,%eax <== NOT EXECUTED 110c58: eb d3 jmp 110c2d <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 110c5a: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED 110c5d: 89 03 mov %eax,(%ebx) <== NOT EXECUTED PIPE_UNLOCK(pipe); 110c5f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110c62: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED 110c65: e8 f2 a9 ff ff call 10b65c <== NOT EXECUTED 110c6a: 31 c0 xor %eax,%eax <== NOT EXECUTED return 0; 110c6c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110c6f: eb bc jmp 110c2d <== NOT EXECUTED 00110bb4 : pipe_control_t *pipe, off_t offset, int whence, rtems_libio_t *iop ) { 110bb4: 55 push %ebp <== NOT EXECUTED 110bb5: 89 e5 mov %esp,%ebp <== NOT EXECUTED /* Seek on pipe is not supported */ return -ESPIPE; } 110bb7: b8 e3 ff ff ff mov $0xffffffe3,%eax <== NOT EXECUTED 110bbc: c9 leave <== NOT EXECUTED 110bbd: c3 ret <== NOT EXECUTED 00110e58 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 110e58: 55 push %ebp <== NOT EXECUTED 110e59: 89 e5 mov %esp,%ebp <== NOT EXECUTED 110e5b: 57 push %edi <== NOT EXECUTED 110e5c: 56 push %esi <== NOT EXECUTED 110e5d: 53 push %ebx <== NOT EXECUTED 110e5e: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED 110e61: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 110e64: 6a 00 push $0x0 <== NOT EXECUTED 110e66: 6a 00 push $0x0 <== NOT EXECUTED 110e68: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110e6b: e8 f0 a6 ff ff call 10b560 <== NOT EXECUTED 110e70: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110e73: 85 c0 test %eax,%eax <== NOT EXECUTED 110e75: 0f 85 b1 00 00 00 jne 110f2c <== NOT EXECUTED return -EINTR; while (read < count) { 110e7b: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED 110e7e: 85 ff test %edi,%edi <== NOT EXECUTED 110e80: 0f 84 82 01 00 00 je 111008 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) 110e86: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED 110e8d: 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)) { 110e94: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED 110e97: 85 d2 test %edx,%edx <== NOT EXECUTED 110e99: 0f 85 a1 00 00 00 jne 110f40 <== NOT EXECUTED /* Not an error */ if (pipe->Writers == 0) 110e9f: 8b 73 14 mov 0x14(%ebx),%esi <== NOT EXECUTED 110ea2: 85 f6 test %esi,%esi <== NOT EXECUTED 110ea4: 0f 84 06 01 00 00 je 110fb0 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 110eaa: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED 110ead: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED 110eb1: 0f 85 01 01 00 00 jne 110fb8 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; 110eb7: ff 43 18 incl 0x18(%ebx) <== NOT EXECUTED PIPE_UNLOCK(pipe); 110eba: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110ebd: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110ec0: e8 97 a7 ff ff call 10b65c <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 110ec5: 5a pop %edx <== NOT EXECUTED 110ec6: 59 pop %ecx <== NOT EXECUTED 110ec7: 6a 00 push $0x0 <== NOT EXECUTED 110ec9: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 110ecc: e8 bf 0a 00 00 call 111990 <== NOT EXECUTED 110ed1: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 110ed4: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED 110ed7: 19 f6 sbb %esi,%esi <== NOT EXECUTED 110ed9: f7 d6 not %esi <== NOT EXECUTED 110edb: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 110ede: 6a 00 push $0x0 <== NOT EXECUTED 110ee0: 6a 00 push $0x0 <== NOT EXECUTED 110ee2: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110ee5: e8 76 a6 ff ff call 10b560 <== NOT EXECUTED 110eea: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110eed: 85 c0 test %eax,%eax <== NOT EXECUTED 110eef: 0f 85 cf 00 00 00 jne 110fc4 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 110ef5: ff 4b 18 decl 0x18(%ebx) <== NOT EXECUTED if (ret != 0) 110ef8: 85 f6 test %esi,%esi <== NOT EXECUTED 110efa: 74 98 je 110e94 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 110efc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110eff: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110f02: e8 55 a7 ff ff call 10b65c <== NOT EXECUTED 110f07: 83 c4 10 add $0x10,%esp <== NOT EXECUTED out_nolock: if (read > 0) 110f0a: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED 110f0d: 85 ff test %edi,%edi <== NOT EXECUTED 110f0f: 7e 0b jle 110f1c <== NOT EXECUTED return read; return ret; } 110f11: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 110f14: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 110f17: 5b pop %ebx <== NOT EXECUTED 110f18: 5e pop %esi <== NOT EXECUTED 110f19: 5f pop %edi <== NOT EXECUTED 110f1a: c9 leave <== NOT EXECUTED 110f1b: c3 ret <== NOT EXECUTED out_locked: PIPE_UNLOCK(pipe); out_nolock: if (read > 0) 110f1c: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED return read; return ret; } 110f1f: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 110f22: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 110f25: 5b pop %ebx <== NOT EXECUTED 110f26: 5e pop %esi <== NOT EXECUTED 110f27: 5f pop %edi <== NOT EXECUTED 110f28: c9 leave <== NOT EXECUTED 110f29: c3 ret <== NOT EXECUTED 110f2a: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_libio_t *iop ) { int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 110f2c: c7 45 d4 fc ff ff ff movl $0xfffffffc,-0x2c(%ebp) <== NOT EXECUTED out_nolock: if (read > 0) return read; return ret; } 110f33: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 110f36: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 110f39: 5b pop %ebx <== NOT EXECUTED 110f3a: 5e pop %esi <== NOT EXECUTED 110f3b: 5f pop %edi <== NOT EXECUTED 110f3c: c9 leave <== NOT EXECUTED 110f3d: c3 ret <== NOT EXECUTED 110f3e: 66 90 xchg %ax,%ax <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); 110f40: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 110f43: 2b 45 d0 sub -0x30(%ebp),%eax <== NOT EXECUTED 110f46: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED 110f49: 39 c2 cmp %eax,%edx <== NOT EXECUTED 110f4b: 76 03 jbe 110f50 <== NOT EXECUTED 110f4d: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 110f50: 8b 73 08 mov 0x8(%ebx),%esi <== NOT EXECUTED 110f53: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED 110f56: 29 f0 sub %esi,%eax <== NOT EXECUTED if (chunk > chunk1) { 110f58: 39 45 cc cmp %eax,-0x34(%ebp) <== NOT EXECUTED 110f5b: 7f 71 jg 110fce <== 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); 110f5d: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 110f60: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED 110f63: 03 33 add (%ebx),%esi <== NOT EXECUTED 110f65: 89 c7 mov %eax,%edi <== NOT EXECUTED 110f67: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 110f6a: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED pipe->Start += chunk; 110f6c: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 110f6f: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED pipe->Start %= pipe->Size; 110f72: 31 d2 xor %edx,%edx <== NOT EXECUTED 110f74: f7 73 04 divl 0x4(%ebx) <== NOT EXECUTED 110f77: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED pipe->Length -= chunk; 110f7a: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED 110f7d: 2b 45 cc sub -0x34(%ebp),%eax <== NOT EXECUTED 110f80: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 110f83: 85 c0 test %eax,%eax <== NOT EXECUTED 110f85: 75 07 jne 110f8e <== NOT EXECUTED pipe->Start = 0; 110f87: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED if (pipe->waitingWriters > 0) 110f8e: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED 110f91: 85 c0 test %eax,%eax <== NOT EXECUTED 110f93: 75 5f jne 110ff4 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; 110f95: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 110f98: 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) { 110f9b: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 110f9e: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED 110fa1: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 110fa4: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED 110fa7: 0f 82 e7 fe ff ff jb 110e94 <== NOT EXECUTED 110fad: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 110fb0: 31 f6 xor %esi,%esi <== NOT EXECUTED 110fb2: e9 45 ff ff ff jmp 110efc <== NOT EXECUTED 110fb7: 90 nop <== NOT EXECUTED while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) goto out_locked; if (LIBIO_NODELAY(iop)) { 110fb8: be f5 ff ff ff mov $0xfffffff5,%esi <== NOT EXECUTED 110fbd: e9 3a ff ff ff jmp 110efc <== NOT EXECUTED 110fc2: 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)) { 110fc4: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED 110fc9: e9 3c ff ff ff jmp 110f0a <== 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); 110fce: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 110fd1: 03 55 d0 add -0x30(%ebp),%edx <== NOT EXECUTED 110fd4: 03 33 add (%ebx),%esi <== NOT EXECUTED 110fd6: 89 d7 mov %edx,%edi <== NOT EXECUTED 110fd8: 89 c1 mov %eax,%ecx <== NOT EXECUTED 110fda: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 110fdc: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED 110fdf: 01 c2 add %eax,%edx <== NOT EXECUTED 110fe1: 03 55 0c add 0xc(%ebp),%edx <== NOT EXECUTED 110fe4: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 110fe7: 29 c1 sub %eax,%ecx <== NOT EXECUTED 110fe9: 8b 33 mov (%ebx),%esi <== NOT EXECUTED 110feb: 89 d7 mov %edx,%edi <== NOT EXECUTED 110fed: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED 110fef: e9 78 ff ff ff jmp 110f6c <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); 110ff4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 110ff7: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 110ffa: 50 push %eax <== NOT EXECUTED 110ffb: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 110ffe: e8 29 09 00 00 call 11192c <== NOT EXECUTED 111003: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111006: eb 8d jmp 110f95 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { 111008: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED 11100f: 31 f6 xor %esi,%esi 111011: e9 e6 fe ff ff jmp 110efc <== NOT EXECUTED 00111018 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 111018: 55 push %ebp <== NOT EXECUTED 111019: 89 e5 mov %esp,%ebp <== NOT EXECUTED 11101b: 57 push %edi <== NOT EXECUTED 11101c: 56 push %esi <== NOT EXECUTED 11101d: 53 push %ebx <== NOT EXECUTED 11101e: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED 111021: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED pipe_control_t *pipe = *pipep; 111024: 8b 1f mov (%edi),%ebx <== NOT EXECUTED uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 111026: 6a 00 push $0x0 <== NOT EXECUTED 111028: 6a 00 push $0x0 <== NOT EXECUTED 11102a: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 11102d: e8 2e a5 ff ff call 10b560 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 111032: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111035: 85 c0 test %eax,%eax <== NOT EXECUTED 111037: 0f 85 e3 00 00 00 jne 111120 <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 11103d: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 111040: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED 111043: 89 c6 mov %eax,%esi <== NOT EXECUTED 111045: 83 e6 06 and $0x6,%esi <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) 111048: a8 02 test $0x2,%al <== NOT EXECUTED 11104a: 74 03 je 11104f <== NOT EXECUTED pipe->Readers --; 11104c: ff 4b 10 decl 0x10(%ebx) <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 11104f: f7 c6 04 00 00 00 test $0x4,%esi <== NOT EXECUTED 111055: 75 69 jne 1110c0 <== NOT EXECUTED pipe->Writers --; sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 111057: 51 push %ecx <== NOT EXECUTED 111058: 6a 00 push $0x0 <== NOT EXECUTED 11105a: 6a 00 push $0x0 <== NOT EXECUTED 11105c: ff 35 6c 4f 12 00 pushl 0x124f6c <== NOT EXECUTED 111062: e8 f9 a4 ff ff call 10b560 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) 111067: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11106a: 85 c0 test %eax,%eax <== NOT EXECUTED 11106c: 0f 85 ae 00 00 00 jne 111120 <== NOT EXECUTED rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); 111072: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111075: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111078: e8 df a5 ff ff call 10b65c <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 11107d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111080: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED 111083: 85 d2 test %edx,%edx <== NOT EXECUTED 111085: 74 41 je 1110c8 <== 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) 111087: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 11108a: 85 c0 test %eax,%eax <== NOT EXECUTED 11108c: 75 17 jne 1110a5 <== NOT EXECUTED 11108e: 83 fe 02 cmp $0x2,%esi <== NOT EXECUTED 111091: 74 12 je 1110a5 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 111093: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 111096: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 111099: 50 push %eax <== NOT EXECUTED 11109a: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 11109d: e8 8a 08 00 00 call 11192c <== NOT EXECUTED 1110a2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 1110a5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1110a8: ff 35 6c 4f 12 00 pushl 0x124f6c <== NOT EXECUTED 1110ae: e8 a9 a5 ff ff call 10b65c <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 1110b3: 31 c0 xor %eax,%eax <== NOT EXECUTED 1110b5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1110b8: 5b pop %ebx <== NOT EXECUTED 1110b9: 5e pop %esi <== NOT EXECUTED 1110ba: 5f pop %edi <== NOT EXECUTED 1110bb: c9 leave <== NOT EXECUTED 1110bc: c3 ret <== NOT EXECUTED 1110bd: 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 --; 1110c0: ff 4b 14 decl 0x14(%ebx) <== NOT EXECUTED 1110c3: eb 92 jmp 111057 <== NOT EXECUTED 1110c5: 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) { 1110c8: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 1110cb: 85 c0 test %eax,%eax <== NOT EXECUTED 1110cd: 74 19 je 1110e8 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 1110cf: 83 fe 04 cmp $0x4,%esi <== NOT EXECUTED 1110d2: 74 d1 je 1110a5 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 1110d4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1110d7: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 1110da: 50 push %eax <== NOT EXECUTED 1110db: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 1110de: e8 49 08 00 00 call 11192c <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 1110e3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1110e6: eb bd jmp 1110a5 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 1110e8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1110eb: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 1110ee: e8 d1 07 00 00 call 1118c4 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 1110f3: 5e pop %esi <== NOT EXECUTED 1110f4: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 1110f7: e8 c8 07 00 00 call 1118c4 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 1110fc: 59 pop %ecx <== NOT EXECUTED 1110fd: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111100: e8 b7 a3 ff ff call 10b4bc <== NOT EXECUTED free(pipe->Buffer); 111105: 5a pop %edx <== NOT EXECUTED 111106: ff 33 pushl (%ebx) <== NOT EXECUTED 111108: e8 cf 6e ff ff call 107fdc <== NOT EXECUTED free(pipe); 11110d: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED 111110: e8 c7 6e ff ff call 107fdc <== NOT EXECUTED /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; 111115: 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) { 11111b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11111e: eb 85 jmp 1110a5 <== 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); 111120: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111123: 50 push %eax <== NOT EXECUTED 111124: e8 6f aa ff ff call 10bb98 <== NOT EXECUTED 00110c74 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 110c74: 55 push %ebp <== NOT EXECUTED 110c75: 89 e5 mov %esp,%ebp <== NOT EXECUTED 110c77: 57 push %edi <== NOT EXECUTED 110c78: 56 push %esi <== NOT EXECUTED 110c79: 53 push %ebx <== NOT EXECUTED 110c7a: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 110c7d: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED 110c80: 85 f6 test %esi,%esi <== NOT EXECUTED 110c82: 75 0c jne 110c90 <== NOT EXECUTED 110c84: 31 db xor %ebx,%ebx <== NOT EXECUTED #endif if (written > 0) return written; return ret; } 110c86: 89 d8 mov %ebx,%eax <== NOT EXECUTED 110c88: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 110c8b: 5b pop %ebx <== NOT EXECUTED 110c8c: 5e pop %esi <== NOT EXECUTED 110c8d: 5f pop %edi <== NOT EXECUTED 110c8e: c9 leave <== NOT EXECUTED 110c8f: c3 ret <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) 110c90: 53 push %ebx <== NOT EXECUTED 110c91: 6a 00 push $0x0 <== NOT EXECUTED 110c93: 6a 00 push $0x0 <== NOT EXECUTED 110c95: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 110c98: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED 110c9b: e8 c0 a8 ff ff call 10b560 <== NOT EXECUTED 110ca0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110ca3: 85 c0 test %eax,%eax <== NOT EXECUTED 110ca5: 0f 85 1d 01 00 00 jne 110dc8 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 110cab: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 110cae: 8b 48 10 mov 0x10(%eax),%ecx <== NOT EXECUTED 110cb1: 85 c9 test %ecx,%ecx <== NOT EXECUTED 110cb3: 0f 84 4b 01 00 00 je 110e04 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; 110cb9: 8b 48 04 mov 0x4(%eax),%ecx <== NOT EXECUTED 110cbc: 39 4d 10 cmp %ecx,0x10(%ebp) <== NOT EXECUTED 110cbf: 0f 87 35 01 00 00 ja 110dfa <== NOT EXECUTED 110cc5: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 110cc8: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED 110ccf: 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); 110cd1: 89 5d d4 mov %ebx,-0x2c(%ebp) <== NOT EXECUTED 110cd4: 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) { 110cd7: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED 110cda: 89 ca mov %ecx,%edx <== NOT EXECUTED 110cdc: 29 c2 sub %eax,%edx <== NOT EXECUTED 110cde: 39 fa cmp %edi,%edx <== NOT EXECUTED 110ce0: 73 6f jae 110d51 <== NOT EXECUTED if (LIBIO_NODELAY(iop)) { 110ce2: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED 110ce5: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED 110ce9: 0f 85 28 01 00 00 jne 110e17 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; 110cef: ff 43 1c incl 0x1c(%ebx) <== NOT EXECUTED PIPE_UNLOCK(pipe); 110cf2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110cf5: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110cf8: e8 5f a9 ff ff call 10b65c <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 110cfd: 58 pop %eax <== NOT EXECUTED 110cfe: 5a pop %edx <== NOT EXECUTED 110cff: 6a 00 push $0x0 <== NOT EXECUTED 110d01: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 110d04: e8 87 0c 00 00 call 111990 <== NOT EXECUTED 110d09: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 110d0c: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED 110d0f: 19 f6 sbb %esi,%esi <== NOT EXECUTED 110d11: f7 d6 not %esi <== NOT EXECUTED 110d13: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 110d16: 6a 00 push $0x0 <== NOT EXECUTED 110d18: 6a 00 push $0x0 <== NOT EXECUTED 110d1a: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110d1d: e8 3e a8 ff ff call 10b560 <== NOT EXECUTED 110d22: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110d25: 85 c0 test %eax,%eax <== NOT EXECUTED 110d27: 0f 85 e0 00 00 00 jne 110e0d <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 110d2d: ff 4b 1c decl 0x1c(%ebx) <== NOT EXECUTED if (ret != 0) 110d30: 85 f6 test %esi,%esi <== NOT EXECUTED 110d32: 0f 85 e9 00 00 00 jne 110e21 <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 110d38: 8b 73 10 mov 0x10(%ebx),%esi <== NOT EXECUTED 110d3b: 85 f6 test %esi,%esi <== NOT EXECUTED 110d3d: 0f 84 8f 00 00 00 je 110dd2 <== NOT EXECUTED 110d43: 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) { 110d46: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED 110d49: 89 ca mov %ecx,%edx <== NOT EXECUTED 110d4b: 29 c2 sub %eax,%edx <== NOT EXECUTED 110d4d: 39 fa cmp %edi,%edx <== NOT EXECUTED 110d4f: 72 91 jb 110ce2 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 110d51: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED 110d54: 2b 75 d0 sub -0x30(%ebp),%esi <== NOT EXECUTED 110d57: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED 110d5a: 39 f2 cmp %esi,%edx <== NOT EXECUTED 110d5c: 76 03 jbe 110d61 <== NOT EXECUTED 110d5e: 89 75 cc mov %esi,-0x34(%ebp) <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 110d61: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED 110d64: 31 d2 xor %edx,%edx <== NOT EXECUTED 110d66: f7 f1 div %ecx <== NOT EXECUTED 110d68: 89 c8 mov %ecx,%eax <== NOT EXECUTED 110d6a: 29 d0 sub %edx,%eax <== NOT EXECUTED if (chunk > chunk1) { 110d6c: 39 45 cc cmp %eax,-0x34(%ebp) <== NOT EXECUTED 110d6f: 0f 8e b1 00 00 00 jle 110e26 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 110d75: 03 13 add (%ebx),%edx <== NOT EXECUTED 110d77: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 110d7a: 03 75 d0 add -0x30(%ebp),%esi <== NOT EXECUTED 110d7d: 89 d7 mov %edx,%edi <== NOT EXECUTED 110d7f: 89 c1 mov %eax,%ecx <== NOT EXECUTED 110d81: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 110d83: 8b 13 mov (%ebx),%edx <== NOT EXECUTED 110d85: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 110d88: 29 c1 sub %eax,%ecx <== NOT EXECUTED 110d8a: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED 110d8d: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 110d90: 01 c6 add %eax,%esi <== NOT EXECUTED 110d92: 89 d7 mov %edx,%edi <== NOT EXECUTED 110d94: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; 110d96: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 110d99: 01 43 0c add %eax,0xc(%ebx) <== NOT EXECUTED if (pipe->waitingReaders > 0) 110d9c: 83 7b 18 00 cmpl $0x0,0x18(%ebx) <== NOT EXECUTED 110da0: 0f 85 94 00 00 00 jne 110e3a <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); written += chunk; 110da6: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 110da9: 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) { 110dac: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 110daf: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED 110db2: 39 45 10 cmp %eax,0x10(%ebp) <== NOT EXECUTED 110db5: 0f 86 95 00 00 00 jbe 110e50 <== NOT EXECUTED 110dbb: 8b 4b 04 mov 0x4(%ebx),%ecx <== NOT EXECUTED 110dbe: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED 110dc3: e9 0f ff ff ff jmp 110cd7 <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) 110dc8: bb fc ff ff ff mov $0xfffffffc,%ebx <== NOT EXECUTED 110dcd: e9 b4 fe ff ff jmp 110c86 <== NOT EXECUTED 110dd2: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 110dd5: 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); 110dda: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110ddd: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 110de0: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED 110de3: e8 74 a8 ff ff call 10b65c <== NOT EXECUTED 110de8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); #endif if (written > 0) 110deb: 85 db test %ebx,%ebx <== NOT EXECUTED 110ded: 0f 8f 93 fe ff ff jg 110c86 <== NOT EXECUTED 110df3: 89 f3 mov %esi,%ebx <== NOT EXECUTED 110df5: e9 8c fe ff ff jmp 110c86 <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 110dfa: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED 110dff: e9 c4 fe ff ff jmp 110cc8 <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { 110e04: be e0 ff ff ff mov $0xffffffe0,%esi <== NOT EXECUTED 110e09: 31 db xor %ebx,%ebx <== NOT EXECUTED 110e0b: eb cd jmp 110dda <== NOT EXECUTED 110e0d: 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)) { 110e10: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED 110e15: eb d4 jmp 110deb <== NOT EXECUTED 110e17: 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)) { 110e1a: be f5 ff ff ff mov $0xfffffff5,%esi <== NOT EXECUTED 110e1f: eb b9 jmp 110dda <== NOT EXECUTED 110e21: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED 110e24: eb b4 jmp 110dda <== 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); 110e26: 03 13 add (%ebx),%edx <== NOT EXECUTED 110e28: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 110e2b: 03 75 d0 add -0x30(%ebp),%esi <== NOT EXECUTED 110e2e: 89 d7 mov %edx,%edi <== NOT EXECUTED 110e30: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 110e33: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED 110e35: e9 5c ff ff ff jmp 110d96 <== NOT EXECUTED pipe->Length += chunk; if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); 110e3a: 51 push %ecx <== NOT EXECUTED 110e3b: 51 push %ecx <== NOT EXECUTED 110e3c: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 110e3f: 50 push %eax <== NOT EXECUTED 110e40: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 110e43: e8 e4 0a 00 00 call 11192c <== NOT EXECUTED 110e48: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110e4b: e9 56 ff ff ff jmp 110da6 <== NOT EXECUTED 110e50: 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) { 110e52: 31 f6 xor %esi,%esi 110e54: eb 84 jmp 110dda <== NOT EXECUTED 0010b674 : int posix_memalign( void **pointer, size_t alignment, size_t size ) { 10b674: 55 push %ebp 10b675: 89 e5 mov %esp,%ebp 10b677: 53 push %ebx 10b678: 83 ec 04 sub $0x4,%esp 10b67b: 8b 45 0c mov 0xc(%ebp),%eax /* * Update call statistics */ MSBUMP(memalign_calls, 1); 10b67e: ff 05 e8 c7 12 00 incl 0x12c7e8 if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *))) 10b684: 8d 50 ff lea -0x1(%eax),%edx 10b687: 85 c2 test %eax,%edx 10b689: 75 05 jne 10b690 <== ALWAYS TAKEN 10b68b: 83 f8 03 cmp $0x3,%eax 10b68e: 77 0c ja 10b69c /* * rtems_memalign does all of the error checking work EXCEPT * for adding restrictionso on the alignment. */ return rtems_memalign( pointer, alignment, size ); } 10b690: b8 16 00 00 00 mov $0x16,%eax 10b695: 5a pop %edx 10b696: 5b pop %ebx 10b697: c9 leave 10b698: c3 ret 10b699: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10b69c: 59 pop %ecx 10b69d: 5b pop %ebx 10b69e: c9 leave /* * rtems_memalign does all of the error checking work EXCEPT * for adding restrictionso on the alignment. */ return rtems_memalign( pointer, alignment, size ); 10b69f: e9 20 01 00 00 jmp 10b7c4 <== ALWAYS TAKEN 00108e0c : * putk * * Kernel putk (e.g. puts) function requiring minimal infrastrure. */ void putk(const char *s) { 108e0c: 55 push %ebp 108e0d: 89 e5 mov %esp,%ebp 108e0f: 53 push %ebx 108e10: 83 ec 04 sub $0x4,%esp 108e13: 8b 5d 08 mov 0x8(%ebp),%ebx const char *p = s; for (p=s ; *p ; p++ ) 108e16: 8a 03 mov (%ebx),%al 108e18: 84 c0 test %al,%al 108e1a: 74 17 je 108e33 <== ALWAYS TAKEN BSP_output_char(*p); 108e1c: 83 ec 0c sub $0xc,%esp 108e1f: 0f be c0 movsbl %al,%eax 108e22: 50 push %eax 108e23: ff 15 44 12 12 00 call *0x121244 */ void putk(const char *s) { const char *p = s; for (p=s ; *p ; p++ ) 108e29: 43 inc %ebx 108e2a: 8a 03 mov (%ebx),%al 108e2c: 83 c4 10 add $0x10,%esp 108e2f: 84 c0 test %al,%al 108e31: 75 e9 jne 108e1c BSP_output_char(*p); BSP_output_char('\n'); 108e33: c7 45 08 0a 00 00 00 movl $0xa,0x8(%ebp) 108e3a: a1 44 12 12 00 mov 0x121244,%eax } 108e3f: 8b 5d fc mov -0x4(%ebp),%ebx 108e42: c9 leave { const char *p = s; for (p=s ; *p ; p++ ) BSP_output_char(*p); BSP_output_char('\n'); 108e43: ff e0 jmp *%eax 0011d820 : ssize_t read( int fd, void *buffer, size_t count ) { 11d820: 55 push %ebp 11d821: 89 e5 mov %esp,%ebp 11d823: 53 push %ebx 11d824: 83 ec 04 sub $0x4,%esp 11d827: 8b 5d 08 mov 0x8(%ebp),%ebx 11d82a: 8b 45 0c mov 0xc(%ebp),%eax 11d82d: 8b 55 10 mov 0x10(%ebp),%edx ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 11d830: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx 11d836: 73 50 jae 11d888 <== ALWAYS TAKEN iop = rtems_libio_iop( fd ); 11d838: c1 e3 06 shl $0x6,%ebx 11d83b: 03 1d a0 51 12 00 add 0x1251a0,%ebx rtems_libio_check_is_open( iop ); 11d841: 8b 4b 14 mov 0x14(%ebx),%ecx 11d844: f6 c5 01 test $0x1,%ch 11d847: 74 3f je 11d888 rtems_libio_check_buffer( buffer ); 11d849: 85 c0 test %eax,%eax 11d84b: 74 4f je 11d89c <== ALWAYS TAKEN rtems_libio_check_count( count ); 11d84d: 85 d2 test %edx,%edx 11d84f: 74 2f je 11d880 <== ALWAYS TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 11d851: 83 e1 02 and $0x2,%ecx 11d854: 74 46 je 11d89c <== ALWAYS TAKEN /* * Now process the read(). */ if ( !iop->handlers->read_h ) 11d856: 8b 4b 3c mov 0x3c(%ebx),%ecx 11d859: 8b 49 08 mov 0x8(%ecx),%ecx 11d85c: 85 c9 test %ecx,%ecx 11d85e: 74 4e je 11d8ae <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); 11d860: 83 ec 04 sub $0x4,%esp 11d863: 52 push %edx 11d864: 50 push %eax 11d865: 53 push %ebx 11d866: ff d1 call *%ecx if ( rc > 0 ) 11d868: 83 c4 10 add $0x10,%esp 11d86b: 85 c0 test %eax,%eax 11d86d: 7e 0b jle 11d87a iop->offset += rc; 11d86f: 89 c1 mov %eax,%ecx 11d871: c1 f9 1f sar $0x1f,%ecx 11d874: 01 43 0c add %eax,0xc(%ebx) 11d877: 11 4b 10 adc %ecx,0x10(%ebx) return rc; } 11d87a: 8b 5d fc mov -0x4(%ebp),%ebx 11d87d: c9 leave 11d87e: c3 ret 11d87f: 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 ); 11d880: 31 c0 xor %eax,%eax <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 11d882: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 11d885: c9 leave <== NOT EXECUTED 11d886: c3 ret <== NOT EXECUTED 11d887: 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 ); 11d888: e8 13 4b ff ff call 1123a0 <__errno> 11d88d: c7 00 09 00 00 00 movl $0x9,(%eax) 11d893: b8 ff ff ff ff mov $0xffffffff,%eax 11d898: eb e0 jmp 11d87a <== ALWAYS TAKEN 11d89a: 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 ); 11d89c: e8 ff 4a ff ff call 1123a0 <__errno> <== NOT EXECUTED 11d8a1: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 11d8a7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11d8ac: eb cc jmp 11d87a <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 11d8ae: e8 ed 4a ff ff call 1123a0 <__errno> <== NOT EXECUTED 11d8b3: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11d8b9: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11d8be: eb ba jmp 11d87a <== NOT EXECUTED 0012c660 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 12c660: 55 push %ebp 12c661: 89 e5 mov %esp,%ebp 12c663: 57 push %edi 12c664: 56 push %esi 12c665: 53 push %ebx 12c666: 83 ec 2c sub $0x2c,%esp 12c669: 8b 55 08 mov 0x8(%ebp),%edx 12c66c: 8b 5d 0c mov 0xc(%ebp),%ebx rtems_filesystem_location_info_t loc; int result; if (!buf) 12c66f: 85 db test %ebx,%ebx 12c671: 0f 84 ad 00 00 00 je 12c724 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 12c677: 31 c0 xor %eax,%eax 12c679: b9 ff ff ff ff mov $0xffffffff,%ecx 12c67e: 89 d7 mov %edx,%edi 12c680: f2 ae repnz scas %es:(%edi),%al 12c682: f7 d1 not %ecx 12c684: 49 dec %ecx 12c685: 83 ec 0c sub $0xc,%esp 12c688: 6a 00 push $0x0 12c68a: 8d 75 d4 lea -0x2c(%ebp),%esi 12c68d: 56 push %esi 12c68e: 6a 00 push $0x0 12c690: 51 push %ecx 12c691: 52 push %edx 12c692: e8 a9 07 fe ff call 10ce40 0, &loc, false ); if ( result != 0 ) 12c697: 83 c4 20 add $0x20,%esp 12c69a: 85 c0 test %eax,%eax 12c69c: 75 76 jne 12c714 <== ALWAYS TAKEN return -1; if ( !loc.ops->node_type_h ){ 12c69e: 8b 55 e0 mov -0x20(%ebp),%edx 12c6a1: 8b 42 10 mov 0x10(%edx),%eax 12c6a4: 85 c0 test %eax,%eax 12c6a6: 74 4e je 12c6f6 <== 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 ){ 12c6a8: 83 ec 0c sub $0xc,%esp 12c6ab: 56 push %esi 12c6ac: ff d0 call *%eax 12c6ae: 83 c4 10 add $0x10,%esp 12c6b1: 83 f8 04 cmp $0x4,%eax 12c6b4: 0f 85 86 00 00 00 jne 12c740 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ 12c6ba: 8b 55 e0 mov -0x20(%ebp),%edx 12c6bd: 8b 42 3c mov 0x3c(%edx),%eax 12c6c0: 85 c0 test %eax,%eax 12c6c2: 0f 84 a1 00 00 00 je 12c769 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 12c6c8: 52 push %edx 12c6c9: ff 75 10 pushl 0x10(%ebp) 12c6cc: 53 push %ebx 12c6cd: 56 push %esi 12c6ce: ff d0 call *%eax 12c6d0: 89 c3 mov %eax,%ebx rtems_filesystem_freenode( &loc ); 12c6d2: 8b 45 e0 mov -0x20(%ebp),%eax 12c6d5: 83 c4 10 add $0x10,%esp 12c6d8: 85 c0 test %eax,%eax 12c6da: 74 10 je 12c6ec <== ALWAYS TAKEN 12c6dc: 8b 40 1c mov 0x1c(%eax),%eax 12c6df: 85 c0 test %eax,%eax 12c6e1: 74 09 je 12c6ec <== ALWAYS TAKEN 12c6e3: 83 ec 0c sub $0xc,%esp 12c6e6: 56 push %esi 12c6e7: ff d0 call *%eax 12c6e9: 83 c4 10 add $0x10,%esp return result; } 12c6ec: 89 d8 mov %ebx,%eax 12c6ee: 8d 65 f4 lea -0xc(%ebp),%esp 12c6f1: 5b pop %ebx 12c6f2: 5e pop %esi 12c6f3: 5f pop %edi 12c6f4: c9 leave 12c6f5: c3 ret 0, &loc, false ); if ( result != 0 ) return -1; if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 12c6f6: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12c6f9: 85 c0 test %eax,%eax <== NOT EXECUTED 12c6fb: 74 09 je 12c706 <== NOT EXECUTED 12c6fd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c700: 56 push %esi <== NOT EXECUTED 12c701: ff d0 call *%eax <== NOT EXECUTED 12c703: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12c706: e8 b1 49 01 00 call 1410bc <__errno> <== NOT EXECUTED 12c70b: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c711: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 12c714: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 12c719: 89 d8 mov %ebx,%eax <== NOT EXECUTED 12c71b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c71e: 5b pop %ebx <== NOT EXECUTED 12c71f: 5e pop %esi <== NOT EXECUTED 12c720: 5f pop %edi <== NOT EXECUTED 12c721: c9 leave <== NOT EXECUTED 12c722: c3 ret <== NOT EXECUTED 12c723: 90 nop <== NOT EXECUTED { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 12c724: e8 93 49 01 00 call 1410bc <__errno> <== NOT EXECUTED 12c729: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 12c72f: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 12c734: 89 d8 mov %ebx,%eax <== NOT EXECUTED 12c736: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c739: 5b pop %ebx <== NOT EXECUTED 12c73a: 5e pop %esi <== NOT EXECUTED 12c73b: 5f pop %edi <== NOT EXECUTED 12c73c: c9 leave <== NOT EXECUTED 12c73d: c3 ret <== NOT EXECUTED 12c73e: 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 ); 12c740: 8b 45 e0 mov -0x20(%ebp),%eax 12c743: 85 c0 test %eax,%eax 12c745: 74 10 je 12c757 <== ALWAYS TAKEN 12c747: 8b 40 1c mov 0x1c(%eax),%eax 12c74a: 85 c0 test %eax,%eax 12c74c: 74 09 je 12c757 <== ALWAYS TAKEN 12c74e: 83 ec 0c sub $0xc,%esp 12c751: 56 push %esi 12c752: ff d0 call *%eax 12c754: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( EINVAL ); 12c757: e8 60 49 01 00 call 1410bc <__errno> 12c75c: c7 00 16 00 00 00 movl $0x16,(%eax) 12c762: bb ff ff ff ff mov $0xffffffff,%ebx 12c767: eb 83 jmp 12c6ec <== ALWAYS TAKEN } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); 12c769: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12c76c: 85 c0 test %eax,%eax <== NOT EXECUTED 12c76e: 74 09 je 12c779 <== NOT EXECUTED 12c770: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c773: 56 push %esi <== NOT EXECUTED 12c774: ff d0 call *%eax <== NOT EXECUTED 12c776: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12c779: e8 3e 49 01 00 call 1410bc <__errno> <== NOT EXECUTED 12c77e: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c784: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 12c789: e9 5e ff ff ff jmp 12c6ec <== NOT EXECUTED 00109d9c : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 109d9c: 55 push %ebp 109d9d: 89 e5 mov %esp,%ebp 109d9f: 57 push %edi 109da0: 56 push %esi 109da1: 53 push %ebx 109da2: 83 ec 1c sub $0x1c,%esp 109da5: 8b 7d 08 mov 0x8(%ebp),%edi 109da8: 8b 5d 0c mov 0xc(%ebp),%ebx int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 109dab: 3b 3d cc 57 12 00 cmp 0x1257cc,%edi 109db1: 0f 83 e2 00 00 00 jae 109e99 <== ALWAYS TAKEN iop = rtems_libio_iop( fd ); 109db7: c1 e7 06 shl $0x6,%edi 109dba: 03 3d 20 a0 12 00 add 0x12a020,%edi rtems_libio_check_is_open( iop ); 109dc0: 8b 47 14 mov 0x14(%edi),%eax 109dc3: f6 c4 01 test $0x1,%ah 109dc6: 0f 84 cd 00 00 00 je 109e99 <== ALWAYS TAKEN rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 109dcc: a8 02 test $0x2,%al 109dce: 0f 84 a8 00 00 00 je 109e7c <== ALWAYS TAKEN /* * Argument validation on IO vector */ if ( !iov ) 109dd4: 85 db test %ebx,%ebx 109dd6: 0f 84 a0 00 00 00 je 109e7c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 109ddc: 8b 75 10 mov 0x10(%ebp),%esi 109ddf: 85 f6 test %esi,%esi 109de1: 0f 8e 95 00 00 00 jle 109e7c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 109de7: 81 7d 10 00 04 00 00 cmpl $0x400,0x10(%ebp) 109dee: 0f 8f 88 00 00 00 jg 109e7c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) 109df4: 8b 47 3c mov 0x3c(%edi),%eax 109df7: 8b 40 08 mov 0x8(%eax),%eax 109dfa: 89 45 e0 mov %eax,-0x20(%ebp) 109dfd: 85 c0 test %eax,%eax 109dff: 0f 84 a8 00 00 00 je 109ead <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); 109e05: 31 c0 xor %eax,%eax 109e07: 31 d2 xor %edx,%edx 109e09: 8b 75 10 mov 0x10(%ebp),%esi 109e0c: eb 04 jmp 109e12 <== ALWAYS TAKEN 109e0e: 66 90 xchg %ax,%ax <== 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++ ) { 109e10: 89 ca mov %ecx,%edx ssize_t old; if ( !iov[v].iov_base ) 109e12: 8b 0c c3 mov (%ebx,%eax,8),%ecx 109e15: 85 c9 test %ecx,%ecx 109e17: 74 63 je 109e7c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 109e19: 8b 4c c3 04 mov 0x4(%ebx,%eax,8),%ecx 109e1d: 85 c9 test %ecx,%ecx 109e1f: 74 5b je 109e7c <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; 109e21: 8d 0c 0a lea (%edx,%ecx,1),%ecx if ( total < old ) 109e24: 39 ca cmp %ecx,%edx 109e26: 7f 54 jg 109e7c * 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++ ) { 109e28: 40 inc %eax 109e29: 39 c6 cmp %eax,%esi 109e2b: 7f e3 jg 109e10 109e2d: 31 f6 xor %esi,%esi 109e2f: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 109e36: 8b 45 e0 mov -0x20(%ebp),%eax 109e39: eb 23 jmp 109e5e <== ALWAYS TAKEN 109e3b: 90 nop <== NOT EXECUTED bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) return -1; if ( bytes > 0 ) { 109e3c: 74 0e je 109e4c <== NEVER TAKEN iop->offset += bytes; 109e3e: 89 c1 mov %eax,%ecx <== NOT EXECUTED 109e40: c1 f9 1f sar $0x1f,%ecx <== NOT EXECUTED 109e43: 01 47 0c add %eax,0xc(%edi) <== NOT EXECUTED 109e46: 11 4f 10 adc %ecx,0x10(%edi) <== NOT EXECUTED total += bytes; 109e49: 01 45 e4 add %eax,-0x1c(%ebp) <== NOT EXECUTED } if (bytes != iov[ v ].iov_len) 109e4c: 3b 44 f3 04 cmp 0x4(%ebx,%esi,8),%eax 109e50: 75 3c jne 109e8e <== NEVER TAKEN } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 109e52: 46 inc %esi <== NOT EXECUTED 109e53: 39 75 10 cmp %esi,0x10(%ebp) <== NOT EXECUTED 109e56: 7e 36 jle 109e8e <== NOT EXECUTED 109e58: 8b 47 3c mov 0x3c(%edi),%eax <== NOT EXECUTED 109e5b: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); 109e5e: 52 push %edx 109e5f: ff 74 f3 04 pushl 0x4(%ebx,%esi,8) 109e63: ff 34 f3 pushl (%ebx,%esi,8) 109e66: 57 push %edi 109e67: ff d0 call *%eax if ( bytes < 0 ) 109e69: 83 c4 10 add $0x10,%esp 109e6c: 83 f8 00 cmp $0x0,%eax 109e6f: 7d cb jge 109e3c <== NEVER TAKEN } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 109e71: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp) <== NOT EXECUTED 109e78: eb 14 jmp 109e8e <== NOT EXECUTED 109e7a: 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 ); 109e7c: e8 87 a7 00 00 call 114608 <__errno> 109e81: c7 00 16 00 00 00 movl $0x16,(%eax) 109e87: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp) if (bytes != iov[ v ].iov_len) break; } return total; } 109e8e: 8b 45 e4 mov -0x1c(%ebp),%eax 109e91: 8d 65 f4 lea -0xc(%ebp),%esp 109e94: 5b pop %ebx 109e95: 5e pop %esi 109e96: 5f pop %edi 109e97: c9 leave 109e98: 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 ); 109e99: e8 6a a7 00 00 call 114608 <__errno> <== NOT EXECUTED 109e9e: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 109ea4: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp) <== NOT EXECUTED 109eab: eb e1 jmp 109e8e <== 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 ); 109ead: e8 56 a7 00 00 call 114608 <__errno> <== NOT EXECUTED 109eb2: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 109eb8: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp) <== NOT EXECUTED 109ebf: eb cd jmp 109e8e <== NOT EXECUTED 0011d940 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 11d940: 55 push %ebp 11d941: 89 e5 mov %esp,%ebp 11d943: 57 push %edi 11d944: 56 push %esi 11d945: 53 push %ebx 11d946: 83 ec 2c sub $0x2c,%esp 11d949: 8b 5d 08 mov 0x8(%ebp),%ebx 11d94c: 8b 75 0c mov 0xc(%ebp),%esi 11d94f: ff 05 d0 51 12 00 incl 0x1251d0 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 11d955: 83 3d 00 55 12 00 03 cmpl $0x3,0x125500 11d95c: 74 72 je 11d9d0 <== NEVER TAKEN } /* * Continue with realloc(). */ if ( !ptr ) 11d95e: 85 db test %ebx,%ebx 11d960: 74 5e je 11d9c0 return malloc( size ); if ( !size ) { 11d962: 85 f6 test %esi,%esi 11d964: 74 3a je 11d9a0 <== ALWAYS TAKEN free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 11d966: 52 push %edx 11d967: 8d 45 e4 lea -0x1c(%ebp),%eax 11d96a: 50 push %eax 11d96b: 53 push %ebx 11d96c: ff 35 58 11 12 00 pushl 0x121158 11d972: e8 59 01 00 00 call 11dad0 <_Protected_heap_Get_block_size> 11d977: 83 c4 10 add $0x10,%esp 11d97a: 84 c0 test %al,%al 11d97c: 74 32 je 11d9b0 #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 ) ) { 11d97e: 50 push %eax 11d97f: 56 push %esi 11d980: 53 push %ebx 11d981: ff 35 58 11 12 00 pushl 0x121158 11d987: e8 7c 01 00 00 call 11db08 <_Protected_heap_Resize_block> 11d98c: 83 c4 10 add $0x10,%esp 11d98f: 84 c0 test %al,%al 11d991: 74 5d je 11d9f0 memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 11d993: 89 d8 mov %ebx,%eax 11d995: 8d 65 f4 lea -0xc(%ebp),%esp 11d998: 5b pop %ebx 11d999: 5e pop %esi 11d99a: 5f pop %edi 11d99b: c9 leave 11d99c: c3 ret 11d99d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED */ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr ); 11d9a0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11d9a3: 53 push %ebx <== NOT EXECUTED 11d9a4: e8 33 a6 fe ff call 107fdc <== NOT EXECUTED 11d9a9: 31 db xor %ebx,%ebx <== NOT EXECUTED return (void *) 0; 11d9ab: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11d9ae: eb e3 jmp 11d993 <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; 11d9b0: e8 eb 49 ff ff call 1123a0 <__errno> 11d9b5: c7 00 16 00 00 00 movl $0x16,(%eax) 11d9bb: 31 db xor %ebx,%ebx return (void *) 0; 11d9bd: eb d4 jmp 11d993 <== ALWAYS TAKEN 11d9bf: 90 nop <== NOT EXECUTED /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); 11d9c0: 83 ec 0c sub $0xc,%esp 11d9c3: 56 push %esi 11d9c4: e8 63 a8 fe ff call 10822c <== ALWAYS TAKEN 11d9c9: 89 c3 mov %eax,%ebx 11d9cb: 83 c4 10 add $0x10,%esp 11d9ce: eb c3 jmp 11d993 <== ALWAYS TAKEN /* * 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) 11d9d0: a1 38 53 12 00 mov 0x125338,%eax 11d9d5: 85 c0 test %eax,%eax 11d9d7: 74 04 je 11d9dd <== NEVER TAKEN } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 11d9d9: 31 db xor %ebx,%ebx 11d9db: eb b6 jmp 11d993 <== ALWAYS TAKEN if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) return (void *) 0; if (_ISR_Nest_level > 0) 11d9dd: a1 d4 53 12 00 mov 0x1253d4,%eax 11d9e2: 85 c0 test %eax,%eax 11d9e4: 0f 84 74 ff ff ff je 11d95e <== NEVER TAKEN } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 11d9ea: 31 db xor %ebx,%ebx <== NOT EXECUTED 11d9ec: eb a5 jmp 11d993 <== NOT EXECUTED 11d9ee: 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 ); 11d9f0: 83 ec 0c sub $0xc,%esp 11d9f3: 56 push %esi 11d9f4: e8 33 a8 fe ff call 10822c MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 11d9f9: ff 0d c4 51 12 00 decl 0x1251c4 if ( !new_area ) { 11d9ff: 83 c4 10 add $0x10,%esp 11da02: 85 c0 test %eax,%eax 11da04: 74 d3 je 11d9d9 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 11da06: 8b 55 e4 mov -0x1c(%ebp),%edx 11da09: 89 f1 mov %esi,%ecx 11da0b: 39 d6 cmp %edx,%esi 11da0d: 76 02 jbe 11da11 <== ALWAYS TAKEN 11da0f: 89 d1 mov %edx,%ecx 11da11: 89 c7 mov %eax,%edi 11da13: 89 de mov %ebx,%esi 11da15: f3 a4 rep movsb %ds:(%esi),%es:(%edi) free( ptr ); 11da17: 83 ec 0c sub $0xc,%esp 11da1a: 53 push %ebx 11da1b: 89 45 d4 mov %eax,-0x2c(%ebp) 11da1e: e8 b9 a5 fe ff call 107fdc 11da23: 8b 45 d4 mov -0x2c(%ebp),%eax 11da26: 89 c3 mov %eax,%ebx return new_area; 11da28: 83 c4 10 add $0x10,%esp 11da2b: e9 63 ff ff ff jmp 11d993 <== ALWAYS TAKEN 0010e190 : #include int rmdir( const char *pathname ) { 10e190: 55 push %ebp 10e191: 89 e5 mov %esp,%ebp 10e193: 57 push %edi 10e194: 56 push %esi 10e195: 53 push %ebx 10e196: 83 ec 58 sub $0x58,%esp 10e199: 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 ); 10e19c: 52 push %edx 10e19d: 89 55 ac mov %edx,-0x54(%ebp) 10e1a0: e8 77 eb ff ff call 10cd1c 10e1a5: 89 c3 mov %eax,%ebx if ( parentpathlen == 0 ) 10e1a7: 83 c4 10 add $0x10,%esp 10e1aa: 85 c0 test %eax,%eax 10e1ac: 8b 55 ac mov -0x54(%ebp),%edx 10e1af: 0f 85 7f 01 00 00 jne 10e334 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 10e1b5: 8a 02 mov (%edx),%al 10e1b7: 3c 2f cmp $0x2f,%al 10e1b9: 74 0c je 10e1c7 <== NEVER TAKEN 10e1bb: 3c 5c cmp $0x5c,%al <== NOT EXECUTED 10e1bd: 74 08 je 10e1c7 <== NOT EXECUTED 10e1bf: 84 c0 test %al,%al <== NOT EXECUTED 10e1c1: 0f 85 ed 00 00 00 jne 10e2b4 <== NOT EXECUTED 10e1c7: 8d 45 d4 lea -0x2c(%ebp),%eax 10e1ca: 89 45 b4 mov %eax,-0x4c(%ebp) 10e1cd: 8b 35 a4 7c 16 00 mov 0x167ca4,%esi 10e1d3: 83 c6 18 add $0x18,%esi 10e1d6: b9 05 00 00 00 mov $0x5,%ecx 10e1db: 89 c7 mov %eax,%edi 10e1dd: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 10e1df: c6 45 b3 00 movb $0x0,-0x4d(%ebp) /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 10e1e3: 8d 7d c0 lea -0x40(%ebp),%edi 10e1e6: b9 05 00 00 00 mov $0x5,%ecx 10e1eb: 8b 75 b4 mov -0x4c(%ebp),%esi 10e1ee: f3 a5 rep movsl %ds:(%esi),%es:(%edi) name = pathname + parentpathlen; 10e1f0: 8d 1c 1a lea (%edx,%ebx,1),%ebx name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 10e1f3: be ff ff ff ff mov $0xffffffff,%esi 10e1f8: 89 f1 mov %esi,%ecx 10e1fa: 89 df mov %ebx,%edi 10e1fc: 31 c0 xor %eax,%eax 10e1fe: f2 ae repnz scas %es:(%edi),%al 10e200: f7 d1 not %ecx 10e202: 49 dec %ecx 10e203: 83 ec 08 sub $0x8,%esp 10e206: 51 push %ecx 10e207: 53 push %ebx 10e208: e8 d3 ea ff ff call 10cce0 10e20d: 01 c3 add %eax,%ebx result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 10e20f: 89 f1 mov %esi,%ecx 10e211: 89 df mov %ebx,%edi 10e213: 31 c0 xor %eax,%eax 10e215: f2 ae repnz scas %es:(%edi),%al 10e217: f7 d1 not %ecx 10e219: 49 dec %ecx 10e21a: c7 04 24 00 00 00 00 movl $0x0,(%esp) 10e221: 8d 75 c0 lea -0x40(%ebp),%esi 10e224: 56 push %esi 10e225: 6a 00 push $0x0 10e227: 51 push %ecx 10e228: 53 push %ebx 10e229: e8 3e eb ff ff call 10cd6c 0, &loc, false ); if ( result != 0 ) { 10e22e: 83 c4 20 add $0x20,%esp 10e231: 85 c0 test %eax,%eax 10e233: 0f 85 e7 00 00 00 jne 10e320 /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 10e239: 8b 55 cc mov -0x34(%ebp),%edx 10e23c: 8b 42 10 mov 0x10(%edx),%eax 10e23f: 85 c0 test %eax,%eax 10e241: 0f 84 65 01 00 00 je 10e3ac <== 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 ){ 10e247: 83 ec 0c sub $0xc,%esp 10e24a: 56 push %esi 10e24b: ff d0 call *%eax 10e24d: 83 c4 10 add $0x10,%esp 10e250: 48 dec %eax 10e251: 0f 85 81 00 00 00 jne 10e2d8 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 10e257: 8b 45 c8 mov -0x38(%ebp),%eax 10e25a: 8b 40 34 mov 0x34(%eax),%eax 10e25d: 85 c0 test %eax,%eax 10e25f: 0f 84 fb 00 00 00 je 10e360 <== ALWAYS TAKEN if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 10e265: 83 ec 08 sub $0x8,%esp 10e268: 56 push %esi 10e269: ff 75 b4 pushl -0x4c(%ebp) 10e26c: ff d0 call *%eax 10e26e: 89 c3 mov %eax,%ebx rtems_filesystem_freenode( &loc ); 10e270: 8b 45 cc mov -0x34(%ebp),%eax 10e273: 83 c4 10 add $0x10,%esp 10e276: 85 c0 test %eax,%eax 10e278: 74 10 je 10e28a <== ALWAYS TAKEN 10e27a: 8b 40 1c mov 0x1c(%eax),%eax 10e27d: 85 c0 test %eax,%eax 10e27f: 74 09 je 10e28a <== ALWAYS TAKEN 10e281: 83 ec 0c sub $0xc,%esp 10e284: 56 push %esi 10e285: ff d0 call *%eax 10e287: 83 c4 10 add $0x10,%esp if ( free_parentloc ) 10e28a: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 10e28e: 74 19 je 10e2a9 rtems_filesystem_freenode( &parentloc ); 10e290: 8b 45 e0 mov -0x20(%ebp),%eax 10e293: 85 c0 test %eax,%eax 10e295: 74 12 je 10e2a9 <== ALWAYS TAKEN 10e297: 8b 40 1c mov 0x1c(%eax),%eax 10e29a: 85 c0 test %eax,%eax 10e29c: 74 0b je 10e2a9 <== ALWAYS TAKEN 10e29e: 83 ec 0c sub $0xc,%esp 10e2a1: ff 75 b4 pushl -0x4c(%ebp) 10e2a4: ff d0 call *%eax 10e2a6: 83 c4 10 add $0x10,%esp return result; } 10e2a9: 89 d8 mov %ebx,%eax 10e2ab: 8d 65 f4 lea -0xc(%ebp),%esp 10e2ae: 5b pop %ebx 10e2af: 5e pop %esi 10e2b0: 5f pop %edi 10e2b1: c9 leave 10e2b2: c3 ret 10e2b3: 90 nop <== NOT EXECUTED */ parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 10e2b4: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED 10e2b7: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED 10e2ba: 8b 35 a4 7c 16 00 mov 0x167ca4,%esi <== NOT EXECUTED 10e2c0: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 10e2c3: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 10e2c8: 89 c7 mov %eax,%edi <== NOT EXECUTED 10e2ca: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 10e2cc: c6 45 b3 00 movb $0x0,-0x4d(%ebp) <== NOT EXECUTED 10e2d0: e9 0e ff ff ff jmp 10e1e3 <== NOT EXECUTED 10e2d5: 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 ); 10e2d8: 8b 45 cc mov -0x34(%ebp),%eax 10e2db: 85 c0 test %eax,%eax 10e2dd: 74 10 je 10e2ef <== ALWAYS TAKEN 10e2df: 8b 40 1c mov 0x1c(%eax),%eax 10e2e2: 85 c0 test %eax,%eax 10e2e4: 74 09 je 10e2ef <== ALWAYS TAKEN 10e2e6: 83 ec 0c sub $0xc,%esp 10e2e9: 56 push %esi 10e2ea: ff d0 call *%eax 10e2ec: 83 c4 10 add $0x10,%esp if ( free_parentloc ) 10e2ef: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 10e2f3: 74 19 je 10e30e <== ALWAYS TAKEN rtems_filesystem_freenode( &parentloc ); 10e2f5: 8b 45 e0 mov -0x20(%ebp),%eax 10e2f8: 85 c0 test %eax,%eax 10e2fa: 74 12 je 10e30e <== ALWAYS TAKEN 10e2fc: 8b 40 1c mov 0x1c(%eax),%eax 10e2ff: 85 c0 test %eax,%eax 10e301: 74 0b je 10e30e <== ALWAYS TAKEN 10e303: 83 ec 0c sub $0xc,%esp 10e306: ff 75 b4 pushl -0x4c(%ebp) 10e309: ff d0 call *%eax 10e30b: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( ENOTDIR ); 10e30e: e8 a9 2d 03 00 call 1410bc <__errno> 10e313: c7 00 14 00 00 00 movl $0x14,(%eax) 10e319: bb ff ff ff ff mov $0xffffffff,%ebx 10e31e: eb 89 jmp 10e2a9 <== ALWAYS TAKEN 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 ) 10e320: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 10e324: 0f 85 8b 00 00 00 jne 10e3b5 <== ALWAYS TAKEN result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 10e32a: bb ff ff ff ff mov $0xffffffff,%ebx 10e32f: e9 75 ff ff ff jmp 10e2a9 <== ALWAYS TAKEN parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, 10e334: 83 ec 0c sub $0xc,%esp 10e337: 6a 00 push $0x0 10e339: 8d 45 d4 lea -0x2c(%ebp),%eax 10e33c: 89 45 b4 mov %eax,-0x4c(%ebp) 10e33f: 50 push %eax 10e340: 6a 02 push $0x2 10e342: 53 push %ebx 10e343: 52 push %edx 10e344: 89 55 ac mov %edx,-0x54(%ebp) 10e347: e8 f4 ea ff ff call 10ce40 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 10e34c: 83 c4 20 add $0x20,%esp 10e34f: 85 c0 test %eax,%eax 10e351: 8b 55 ac mov -0x54(%ebp),%edx 10e354: 75 d4 jne 10e32a <== ALWAYS TAKEN 10e356: c6 45 b3 01 movb $0x1,-0x4d(%ebp) 10e35a: e9 84 fe ff ff jmp 10e1e3 <== ALWAYS TAKEN 10e35f: 90 nop <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 10e360: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 10e363: 85 c0 test %eax,%eax <== NOT EXECUTED 10e365: 74 10 je 10e377 <== NOT EXECUTED 10e367: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10e36a: 85 c0 test %eax,%eax <== NOT EXECUTED 10e36c: 74 09 je 10e377 <== NOT EXECUTED 10e36e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10e371: 56 push %esi <== NOT EXECUTED 10e372: ff d0 call *%eax <== NOT EXECUTED 10e374: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_parentloc ) 10e377: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) <== NOT EXECUTED 10e37b: 74 19 je 10e396 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 10e37d: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10e380: 85 c0 test %eax,%eax <== NOT EXECUTED 10e382: 74 12 je 10e396 <== NOT EXECUTED 10e384: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10e387: 85 c0 test %eax,%eax <== NOT EXECUTED 10e389: 74 0b je 10e396 <== NOT EXECUTED 10e38b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10e38e: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED 10e391: ff d0 call *%eax <== NOT EXECUTED 10e393: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 10e396: e8 21 2d 03 00 call 1410bc <__errno> <== NOT EXECUTED 10e39b: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10e3a1: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 10e3a6: e9 fe fe ff ff jmp 10e2a9 <== NOT EXECUTED 10e3ab: 90 nop <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 10e3ac: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 10e3af: 85 c0 test %eax,%eax <== NOT EXECUTED 10e3b1: 75 bb jne 10e36e <== NOT EXECUTED 10e3b3: eb c2 jmp 10e377 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 10e3b5: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10e3b8: 85 c0 test %eax,%eax <== NOT EXECUTED 10e3ba: 0f 84 6a ff ff ff je 10e32a <== NOT EXECUTED 10e3c0: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10e3c3: 85 c0 test %eax,%eax <== NOT EXECUTED 10e3c5: 0f 84 5f ff ff ff je 10e32a <== NOT EXECUTED 10e3cb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10e3ce: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED 10e3d1: ff d0 call *%eax <== NOT EXECUTED 10e3d3: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED 10e3d6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10e3d9: e9 cb fe ff ff jmp 10e2a9 <== NOT EXECUTED 00111764 : uint32_t rtems_assoc_local_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 111764: 55 push %ebp 111765: 89 e5 mov %esp,%ebp 111767: 83 ec 10 sub $0x10,%esp const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_remote(ap, remote_value); 11176a: ff 75 0c pushl 0xc(%ebp) 11176d: ff 75 08 pushl 0x8(%ebp) 111770: e8 0f 00 00 00 call 111784 <== ALWAYS TAKEN if (nap) 111775: 83 c4 10 add $0x10,%esp 111778: 85 c0 test %eax,%eax 11177a: 74 03 je 11177f return nap->local_value; 11177c: 8b 40 04 mov 0x4(%eax),%eax return 0; } 11177f: c9 leave 111780: c3 ret 00111714 : uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) { 111714: 55 push %ebp 111715: 89 e5 mov %esp,%ebp 111717: 57 push %edi 111718: 56 push %esi 111719: 53 push %ebx 11171a: 83 ec 1c sub $0x1c,%esp 11171d: 8b 7d 0c mov 0xc(%ebp),%edi 111720: 31 f6 xor %esi,%esi 111722: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 111729: bb 01 00 00 00 mov $0x1,%ebx 11172e: eb 08 jmp 111738 <== ALWAYS TAKEN uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 111730: d1 e3 shl %ebx 111732: 46 inc %esi 111733: 83 fe 20 cmp $0x20,%esi 111736: 74 1e je 111756 if (b & remote_value) 111738: 85 fb test %edi,%ebx 11173a: 74 f4 je 111730 local_value |= rtems_assoc_local_by_remote(ap, b); 11173c: 83 ec 08 sub $0x8,%esp 11173f: 53 push %ebx 111740: ff 75 08 pushl 0x8(%ebp) 111743: e8 1c 00 00 00 call 111764 <== ALWAYS TAKEN 111748: 09 45 e4 or %eax,-0x1c(%ebp) 11174b: 83 c4 10 add $0x10,%esp ) { uint32_t b; uint32_t local_value = 0; for (b = 1; b; b <<= 1) { 11174e: d1 e3 shl %ebx 111750: 46 inc %esi 111751: 83 fe 20 cmp $0x20,%esi 111754: 75 e2 jne 111738 <== NEVER TAKEN if (b & remote_value) local_value |= rtems_assoc_local_by_remote(ap, b); } return local_value; } 111756: 8b 45 e4 mov -0x1c(%ebp),%eax 111759: 8d 65 f4 lea -0xc(%ebp),%esp 11175c: 5b pop %ebx 11175d: 5e pop %esi 11175e: 5f pop %edi 11175f: c9 leave 111760: c3 ret 00118600 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { 118600: 55 push %ebp <== NOT EXECUTED 118601: 89 e5 mov %esp,%ebp <== NOT EXECUTED sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 118603: b8 00 b1 12 00 mov $0x12b100,%eax <== NOT EXECUTED 118608: c9 leave <== NOT EXECUTED 118609: c3 ret <== NOT EXECUTED 00115a08 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 115a08: 55 push %ebp 115a09: 89 e5 mov %esp,%ebp 115a0b: 53 push %ebx 115a0c: 83 ec 0c sub $0xc,%esp 115a0f: 8b 5d 0c mov 0xc(%ebp),%ebx const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 115a12: 53 push %ebx 115a13: ff 75 08 pushl 0x8(%ebp) 115a16: e8 1d 00 00 00 call 115a38 <== ALWAYS TAKEN if (nap) 115a1b: 83 c4 10 add $0x10,%esp 115a1e: 85 c0 test %eax,%eax 115a20: 74 0a je 115a2c <== ALWAYS TAKEN return nap->name; 115a22: 8b 00 mov (%eax),%eax return rtems_assoc_name_bad(local_value); } 115a24: 8b 5d fc mov -0x4(%ebp),%ebx 115a27: c9 leave 115a28: c3 ret 115a29: 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); 115a2c: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED } 115a2f: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 115a32: 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); 115a33: e9 c8 2b 00 00 jmp 118600 <== NOT EXECUTED 00112330 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 112330: 55 push %ebp 112331: 89 e5 mov %esp,%ebp 112333: 57 push %edi 112334: 56 push %esi 112335: 53 push %ebx 112336: 8b 45 08 mov 0x8(%ebp),%eax 112339: 8b 55 0c mov 0xc(%ebp),%edx const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 11233c: 8b 30 mov (%eax),%esi 11233e: 85 f6 test %esi,%esi 112340: 74 3e je 112380 <== ALWAYS TAKEN 112342: bf 2d ff 11 00 mov $0x11ff2d,%edi 112347: b9 0a 00 00 00 mov $0xa,%ecx 11234c: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) <== NEVER TAKEN 11234e: 74 18 je 112368 <== ALWAYS TAKEN 112350: 31 c9 xor %ecx,%ecx 112352: eb 09 jmp 11235d <== ALWAYS TAKEN default_ap = ap++; for ( ; ap->name; ap++) 112354: 83 c0 0c add $0xc,%eax 112357: 8b 18 mov (%eax),%ebx 112359: 85 db test %ebx,%ebx 11235b: 74 1b je 112378 if (ap->local_value == local_value) 11235d: 39 50 04 cmp %edx,0x4(%eax) 112360: 75 f2 jne 112354 return ap; return default_ap; } 112362: 5b pop %ebx 112363: 5e pop %esi 112364: 5f pop %edi 112365: c9 leave 112366: c3 ret 112367: 90 nop <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; 112368: 8d 58 0c lea 0xc(%eax),%ebx <== NOT EXECUTED for ( ; ap->name; ap++) 11236b: 8b 70 0c mov 0xc(%eax),%esi <== NOT EXECUTED 11236e: 85 f6 test %esi,%esi <== NOT EXECUTED 112370: 74 f0 je 112362 <== NOT EXECUTED 112372: 89 c1 mov %eax,%ecx <== NOT EXECUTED 112374: 89 d8 mov %ebx,%eax <== NOT EXECUTED 112376: eb e5 jmp 11235d <== NOT EXECUTED 112378: 89 c8 mov %ecx,%eax if (ap->local_value == local_value) return ap; return default_ap; } 11237a: 5b pop %ebx 11237b: 5e pop %esi 11237c: 5f pop %edi 11237d: c9 leave 11237e: c3 ret 11237f: 90 nop <== NOT EXECUTED uint32_t local_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 112380: 31 c0 xor %eax,%eax <== NOT EXECUTED for ( ; ap->name; ap++) if (ap->local_value == local_value) return ap; return default_ap; } 112382: 5b pop %ebx <== NOT EXECUTED 112383: 5e pop %esi <== NOT EXECUTED 112384: 5f pop %edi <== NOT EXECUTED 112385: c9 leave <== NOT EXECUTED 112386: c3 ret <== NOT EXECUTED 00111784 : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 111784: 55 push %ebp 111785: 89 e5 mov %esp,%ebp 111787: 57 push %edi 111788: 56 push %esi 111789: 53 push %ebx 11178a: 8b 45 08 mov 0x8(%ebp),%eax 11178d: 8b 55 0c mov 0xc(%ebp),%edx const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 111790: 8b 30 mov (%eax),%esi 111792: 85 f6 test %esi,%esi 111794: 74 3e je 1117d4 <== ALWAYS TAKEN 111796: bf 2d ff 11 00 mov $0x11ff2d,%edi 11179b: b9 0a 00 00 00 mov $0xa,%ecx 1117a0: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) <== NEVER TAKEN 1117a2: 74 18 je 1117bc <== ALWAYS TAKEN 1117a4: 31 c9 xor %ecx,%ecx 1117a6: eb 09 jmp 1117b1 <== ALWAYS TAKEN default_ap = ap++; for ( ; ap->name; ap++) 1117a8: 83 c0 0c add $0xc,%eax 1117ab: 8b 18 mov (%eax),%ebx 1117ad: 85 db test %ebx,%ebx 1117af: 74 1b je 1117cc if (ap->remote_value == remote_value) 1117b1: 39 50 08 cmp %edx,0x8(%eax) 1117b4: 75 f2 jne 1117a8 return ap; return default_ap; } 1117b6: 5b pop %ebx 1117b7: 5e pop %esi 1117b8: 5f pop %edi 1117b9: c9 leave 1117ba: c3 ret 1117bb: 90 nop <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; 1117bc: 8d 58 0c lea 0xc(%eax),%ebx <== NOT EXECUTED for ( ; ap->name; ap++) 1117bf: 8b 70 0c mov 0xc(%eax),%esi <== NOT EXECUTED 1117c2: 85 f6 test %esi,%esi <== NOT EXECUTED 1117c4: 74 f0 je 1117b6 <== NOT EXECUTED 1117c6: 89 c1 mov %eax,%ecx <== NOT EXECUTED 1117c8: 89 d8 mov %ebx,%eax <== NOT EXECUTED 1117ca: eb e5 jmp 1117b1 <== NOT EXECUTED 1117cc: 89 c8 mov %ecx,%eax if (ap->remote_value == remote_value) return ap; return default_ap; } 1117ce: 5b pop %ebx 1117cf: 5e pop %esi 1117d0: 5f pop %edi 1117d1: c9 leave 1117d2: c3 ret 1117d3: 90 nop <== NOT EXECUTED uint32_t remote_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 1117d4: 31 c0 xor %eax,%eax <== NOT EXECUTED for ( ; ap->name; ap++) if (ap->remote_value == remote_value) return ap; return default_ap; } 1117d6: 5b pop %ebx <== NOT EXECUTED 1117d7: 5e pop %esi <== NOT EXECUTED 1117d8: 5f pop %edi <== NOT EXECUTED 1117d9: c9 leave <== NOT EXECUTED 1117da: c3 ret <== NOT EXECUTED 00112090 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 112090: 55 push %ebp <== NOT EXECUTED 112091: 89 e5 mov %esp,%ebp <== NOT EXECUTED 112093: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 112096: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 112099: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 11209c: e8 8f 02 00 00 call 112330 <== NOT EXECUTED if (nap) 1120a1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1120a4: 85 c0 test %eax,%eax <== NOT EXECUTED 1120a6: 74 03 je 1120ab <== NOT EXECUTED return nap->remote_value; 1120a8: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED return 0; } 1120ab: c9 leave <== NOT EXECUTED 1120ac: c3 ret <== NOT EXECUTED 001117dc : rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { 1117dc: 55 push %ebp 1117dd: 89 e5 mov %esp,%ebp 1117df: 57 push %edi 1117e0: 56 push %esi 1117e1: 53 push %ebx 1117e2: 83 ec 2c sub $0x2c,%esp 1117e5: 8b 5d 08 mov 0x8(%ebp),%ebx 1117e8: 8b 7d 0c mov 0xc(%ebp),%edi 1117eb: 8b 45 10 mov 0x10(%ebp),%eax 1117ee: 8b 75 14 mov 0x14(%ebp),%esi Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) 1117f1: 85 db test %ebx,%ebx 1117f3: 0f 84 87 00 00 00 je 111880 return RTEMS_INVALID_NAME; if ( !id ) 1117f9: 85 f6 test %esi,%esi 1117fb: 0f 84 bb 00 00 00 je 1118bc return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { 111801: f7 c7 10 00 00 00 test $0x10,%edi 111807: 0f 84 83 00 00 00 je 111890 the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 ) 11180d: 85 c0 test %eax,%eax 11180f: 0f 84 87 00 00 00 je 11189c if ( !id ) return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; 111815: 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; 11181c: 89 45 e4 mov %eax,-0x1c(%ebp) 11181f: a1 38 53 12 00 mov 0x125338,%eax 111824: 40 inc %eax 111825: a3 38 53 12 00 mov %eax,0x125338 * 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 ); 11182a: 83 ec 0c sub $0xc,%esp 11182d: 68 a0 56 12 00 push $0x1256a0 111832: e8 89 ae ff ff call 10c6c0 <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { 111837: 83 c4 10 add $0x10,%esp 11183a: 85 c0 test %eax,%eax 11183c: 74 6a je 1118a8 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_barrier->attribute_set = attribute_set; 11183e: 89 78 10 mov %edi,0x10(%eax) _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 111841: 83 ec 08 sub $0x8,%esp 111844: 8d 55 e0 lea -0x20(%ebp),%edx 111847: 52 push %edx 111848: 8d 50 14 lea 0x14(%eax),%edx 11184b: 52 push %edx 11184c: 89 45 d4 mov %eax,-0x2c(%ebp) 11184f: e8 5c 04 00 00 call 111cb0 <_CORE_barrier_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 111854: 8b 45 d4 mov -0x2c(%ebp),%eax 111857: 8b 50 08 mov 0x8(%eax),%edx 11185a: 0f b7 fa movzwl %dx,%edi 11185d: 8b 0d bc 56 12 00 mov 0x1256bc,%ecx 111863: 89 04 b9 mov %eax,(%ecx,%edi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 111866: 89 58 0c mov %ebx,0xc(%eax) &_Barrier_Information, &the_barrier->Object, (Objects_Name) name ); *id = the_barrier->Object.id; 111869: 89 16 mov %edx,(%esi) _Thread_Enable_dispatch(); 11186b: e8 48 bb ff ff call 10d3b8 <_Thread_Enable_dispatch> 111870: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 111872: 83 c4 10 add $0x10,%esp } 111875: 8d 65 f4 lea -0xc(%ebp),%esp 111878: 5b pop %ebx 111879: 5e pop %esi 11187a: 5f pop %edi 11187b: c9 leave 11187c: c3 ret 11187d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) 111880: b8 03 00 00 00 mov $0x3,%eax *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 111885: 8d 65 f4 lea -0xc(%ebp),%esp 111888: 5b pop %ebx 111889: 5e pop %esi 11188a: 5f pop %edi 11188b: c9 leave 11188c: c3 ret 11188d: 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; 111890: c7 45 e0 01 00 00 00 movl $0x1,-0x20(%ebp) 111897: eb 83 jmp 11181c <== ALWAYS TAKEN 111899: 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 ) 11189c: b0 0a mov $0xa,%al *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 11189e: 8d 65 f4 lea -0xc(%ebp),%esp 1118a1: 5b pop %ebx 1118a2: 5e pop %esi 1118a3: 5f pop %edi 1118a4: c9 leave 1118a5: c3 ret 1118a6: 66 90 xchg %ax,%ax <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { _Thread_Enable_dispatch(); 1118a8: e8 0b bb ff ff call 10d3b8 <_Thread_Enable_dispatch> 1118ad: b8 05 00 00 00 mov $0x5,%eax *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 1118b2: 8d 65 f4 lea -0xc(%ebp),%esp 1118b5: 5b pop %ebx 1118b6: 5e pop %esi 1118b7: 5f pop %edi 1118b8: c9 leave 1118b9: c3 ret 1118ba: 66 90 xchg %ax,%ax <== NOT EXECUTED CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 1118bc: b8 09 00 00 00 mov $0x9,%eax 1118c1: eb b2 jmp 111875 <== ALWAYS TAKEN 001118c4 : */ rtems_status_code rtems_barrier_delete( rtems_id id ) { 1118c4: 55 push %ebp 1118c5: 89 e5 mov %esp,%ebp 1118c7: 53 push %ebx 1118c8: 83 ec 18 sub $0x18,%esp RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 1118cb: 8d 45 f4 lea -0xc(%ebp),%eax 1118ce: 50 push %eax 1118cf: ff 75 08 pushl 0x8(%ebp) 1118d2: 68 a0 56 12 00 push $0x1256a0 1118d7: e8 94 b2 ff ff call 10cb70 <_Objects_Get> 1118dc: 89 c3 mov %eax,%ebx Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 1118de: 83 c4 10 add $0x10,%esp 1118e1: 8b 4d f4 mov -0xc(%ebp),%ecx 1118e4: 85 c9 test %ecx,%ecx 1118e6: 75 38 jne 111920 case OBJECTS_LOCAL: _CORE_barrier_Flush( 1118e8: 52 push %edx 1118e9: 6a 02 push $0x2 1118eb: 6a 00 push $0x0 1118ed: 8d 40 14 lea 0x14(%eax),%eax 1118f0: 50 push %eax 1118f1: e8 ca c1 ff ff call 10dac0 <_Thread_queue_Flush> &the_barrier->Barrier, NULL, CORE_BARRIER_WAS_DELETED ); _Objects_Close( &_Barrier_Information, &the_barrier->Object ); 1118f6: 59 pop %ecx 1118f7: 58 pop %eax 1118f8: 53 push %ebx 1118f9: 68 a0 56 12 00 push $0x1256a0 1118fe: e8 39 ae ff ff call 10c73c <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Barrier_Free ( Barrier_Control *the_barrier ) { _Objects_Free( &_Barrier_Information, &the_barrier->Object ); 111903: 58 pop %eax 111904: 5a pop %edx 111905: 53 push %ebx 111906: 68 a0 56 12 00 push $0x1256a0 11190b: e8 30 b1 ff ff call 10ca40 <_Objects_Free> _Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); 111910: e8 a3 ba ff ff call 10d3b8 <_Thread_Enable_dispatch> 111915: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 111917: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11191a: 8b 5d fc mov -0x4(%ebp),%ebx 11191d: c9 leave 11191e: c3 ret 11191f: 90 nop <== NOT EXECUTED { Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 111920: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 111925: 8b 5d fc mov -0x4(%ebp),%ebx 111928: c9 leave 111929: c3 ret 00111990 : rtems_status_code rtems_barrier_wait( rtems_id id, rtems_interval timeout ) { 111990: 55 push %ebp 111991: 89 e5 mov %esp,%ebp 111993: 53 push %ebx 111994: 83 ec 18 sub $0x18,%esp 111997: 8b 5d 08 mov 0x8(%ebp),%ebx 11199a: 8d 45 f4 lea -0xc(%ebp),%eax 11199d: 50 push %eax 11199e: 53 push %ebx 11199f: 68 a0 56 12 00 push $0x1256a0 1119a4: e8 c7 b1 ff ff call 10cb70 <_Objects_Get> Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 1119a9: 83 c4 10 add $0x10,%esp 1119ac: 8b 55 f4 mov -0xc(%ebp),%edx 1119af: 85 d2 test %edx,%edx 1119b1: 75 35 jne 1119e8 <== ALWAYS TAKEN case OBJECTS_LOCAL: _CORE_barrier_Wait( 1119b3: 83 ec 0c sub $0xc,%esp 1119b6: 6a 00 push $0x0 1119b8: ff 75 0c pushl 0xc(%ebp) 1119bb: 6a 01 push $0x1 1119bd: 53 push %ebx 1119be: 83 c0 14 add $0x14,%eax 1119c1: 50 push %eax 1119c2: e8 4d 03 00 00 call 111d14 <_CORE_barrier_Wait> id, true, timeout, NULL ); _Thread_Enable_dispatch(); 1119c7: 83 c4 20 add $0x20,%esp 1119ca: e8 e9 b9 ff ff call 10d3b8 <_Thread_Enable_dispatch> return _Barrier_Translate_core_barrier_return_code( 1119cf: 83 ec 0c sub $0xc,%esp 1119d2: a1 f8 53 12 00 mov 0x1253f8,%eax 1119d7: ff 70 34 pushl 0x34(%eax) 1119da: e8 41 09 00 00 call 112320 <_Barrier_Translate_core_barrier_return_code> 1119df: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1119e2: 8b 5d fc mov -0x4(%ebp),%ebx 1119e5: c9 leave 1119e6: c3 ret 1119e7: 90 nop <== NOT EXECUTED { Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 1119e8: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1119ed: 8b 5d fc mov -0x4(%ebp),%ebx 1119f0: c9 leave 1119f1: c3 ret 00107ff8 : const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) { 107ff8: 55 push %ebp 107ff9: 89 e5 mov %esp,%ebp 107ffb: 57 push %edi 107ffc: 56 push %esi 107ffd: 53 push %ebx 107ffe: 83 ec 1c sub $0x1c,%esp 108001: 8b 45 08 mov 0x8(%ebp),%eax 108004: 8b 5d 0c mov 0xc(%ebp),%ebx 108007: 8b 75 10 mov 0x10(%ebp),%esi const char *p; if ( !name ) 10800a: 85 c0 test %eax,%eax 10800c: 75 0e jne 10801c int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i return NULL; if ( !length ) 108020: 85 f6 test %esi,%esi 108022: 74 ea je 10800e return NULL; value[0] = '\0'; 108024: c6 03 00 movb $0x0,(%ebx) p = rtems_bsp_cmdline_get_param_raw( name ); 108027: 83 ec 0c sub $0xc,%esp 10802a: 50 push %eax 10802b: e8 48 00 00 00 call 108078 <== ALWAYS TAKEN if ( !p ) 108030: 83 c4 10 add $0x10,%esp 108033: 85 c0 test %eax,%eax 108035: 74 d7 je 10800e int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i <== ALWAYS TAKEN 10803d: 4e dec %esi 10803e: 89 75 e4 mov %esi,-0x1c(%ebp) 108041: 74 cd je 108010 <== ALWAYS TAKEN 108043: 31 f6 xor %esi,%esi 108045: 31 d2 xor %edx,%edx 108047: 31 ff xor %edi,%edi 108049: eb 24 jmp 10806f <== ALWAYS TAKEN 10804b: 90 nop <== NOT EXECUTED if ( *p == '\"' ) { quotes++; } else if ( ((quotes % 2) == 0) && *p == ' ' ) 10804c: f7 c7 01 00 00 00 test $0x1,%edi 108052: 75 05 jne 108059 <== ALWAYS TAKEN 108054: 80 f9 20 cmp $0x20,%cl 108057: 74 b7 je 108010 <== ALWAYS TAKEN break; value[i++] = *p++; 108059: 88 0c 33 mov %cl,(%ebx,%esi,1) 10805c: 42 inc %edx 10805d: 89 d6 mov %edx,%esi value[i] = '\0'; 10805f: c6 04 13 00 movb $0x0,(%ebx,%edx,1) int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i 10806a: 3b 55 e4 cmp -0x1c(%ebp),%edx 10806d: 73 a1 jae 108010 <== ALWAYS TAKEN if ( *p == '\"' ) { 10806f: 80 f9 22 cmp $0x22,%cl 108072: 75 d8 jne 10804c <== NEVER TAKEN quotes++; 108074: 47 inc %edi <== NOT EXECUTED 108075: eb e2 jmp 108059 <== NOT EXECUTED 00108078 : extern const char *bsp_boot_cmdline; const char *rtems_bsp_cmdline_get_param_raw( const char *name ) { 108078: 55 push %ebp 108079: 89 e5 mov %esp,%ebp 10807b: 83 ec 08 sub $0x8,%esp 10807e: 8b 45 08 mov 0x8(%ebp),%eax const char *p; if ( !name ) 108081: 85 c0 test %eax,%eax 108083: 75 07 jne 10808c if ( !bsp_boot_cmdline ) return NULL; p = strstr(bsp_boot_cmdline, name); /* printf( "raw: %p (%s)\n", p, p ); */ return p; 108085: 31 c0 xor %eax,%eax } 108087: c9 leave 108088: c3 ret 108089: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED const char *p; if ( !name ) return NULL; if ( !bsp_boot_cmdline ) 10808c: 8b 15 58 65 12 00 mov 0x126558,%edx 108092: 85 d2 test %edx,%edx 108094: 74 ef je 108085 return NULL; p = strstr(bsp_boot_cmdline, name); 108096: 83 ec 08 sub $0x8,%esp 108099: 50 push %eax 10809a: 52 push %edx 10809b: e8 20 b9 00 00 call 1139c0 1080a0: 83 c4 10 add $0x10,%esp /* printf( "raw: %p (%s)\n", p, p ); */ return p; } 1080a3: c9 leave 1080a4: c3 ret 001080a8 : const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { 1080a8: 55 push %ebp <== NOT EXECUTED 1080a9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 1080ab: 57 push %edi <== NOT EXECUTED 1080ac: 53 push %ebx <== NOT EXECUTED 1080ad: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED 1080b0: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); 1080b3: 50 push %eax <== NOT EXECUTED 1080b4: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 1080b7: 53 push %ebx <== NOT EXECUTED 1080b8: 57 push %edi <== NOT EXECUTED 1080b9: e8 3a ff ff ff call 107ff8 <== NOT EXECUTED 1080be: 89 c2 mov %eax,%edx <== NOT EXECUTED if ( !p ) 1080c0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1080c3: 85 c0 test %eax,%eax <== NOT EXECUTED 1080c5: 75 0d jne 1080d4 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) d--; *d = '\0'; return value; 1080c7: 31 db xor %ebx,%ebx <== NOT EXECUTED } 1080c9: 89 d8 mov %ebx,%eax <== NOT EXECUTED 1080cb: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 1080ce: 5b pop %ebx <== NOT EXECUTED 1080cf: 5f pop %edi <== NOT EXECUTED 1080d0: c9 leave <== NOT EXECUTED 1080d1: c3 ret <== NOT EXECUTED 1080d2: 66 90 xchg %ax,%ax <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; 1080d4: 31 c0 xor %eax,%eax <== NOT EXECUTED 1080d6: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 1080db: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 1080dd: f7 d1 not %ecx <== NOT EXECUTED 1080df: 8d 44 0a ff lea -0x1(%edx,%ecx,1),%eax <== NOT EXECUTED if ( *rhs != '=' ) 1080e3: 80 38 3d cmpb $0x3d,(%eax) <== NOT EXECUTED 1080e6: 75 df jne 1080c7 <== NOT EXECUTED return NULL; rhs++; 1080e8: 8d 48 01 lea 0x1(%eax),%ecx <== NOT EXECUTED if ( *rhs == '\"' ) 1080eb: 8a 50 01 mov 0x1(%eax),%dl <== NOT EXECUTED 1080ee: 80 fa 22 cmp $0x22,%dl <== NOT EXECUTED 1080f1: 74 2d je 108120 <== NOT EXECUTED rhs++; for ( d=value ; *rhs ; ) 1080f3: 84 d2 test %dl,%dl <== NOT EXECUTED 1080f5: 74 31 je 108128 <== NOT EXECUTED 1080f7: 89 d8 mov %ebx,%eax <== NOT EXECUTED 1080f9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED *d++ = *rhs++; 1080fc: 88 10 mov %dl,(%eax) <== NOT EXECUTED 1080fe: 40 inc %eax <== NOT EXECUTED 1080ff: 41 inc %ecx <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) 108100: 8a 11 mov (%ecx),%dl <== NOT EXECUTED 108102: 84 d2 test %dl,%dl <== NOT EXECUTED 108104: 75 f6 jne 1080fc <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) 108106: 8d 50 ff lea -0x1(%eax),%edx <== NOT EXECUTED 108109: 80 78 ff 22 cmpb $0x22,-0x1(%eax) <== NOT EXECUTED 10810d: 74 02 je 108111 <== NOT EXECUTED 10810f: 89 c2 mov %eax,%edx <== NOT EXECUTED d--; *d = '\0'; 108111: c6 02 00 movb $0x0,(%edx) <== NOT EXECUTED return value; } 108114: 89 d8 mov %ebx,%eax <== NOT EXECUTED 108116: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 108119: 5b pop %ebx <== NOT EXECUTED 10811a: 5f pop %edi <== NOT EXECUTED 10811b: c9 leave <== NOT EXECUTED 10811c: c3 ret <== NOT EXECUTED 10811d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if ( *rhs != '=' ) return NULL; rhs++; if ( *rhs == '\"' ) rhs++; 108120: 8d 48 02 lea 0x2(%eax),%ecx <== NOT EXECUTED 108123: 8a 50 02 mov 0x2(%eax),%dl <== NOT EXECUTED 108126: eb cb jmp 1080f3 <== NOT EXECUTED for ( d=value ; *rhs ; ) 108128: 89 d8 mov %ebx,%eax <== NOT EXECUTED 10812a: eb da jmp 108106 <== NOT EXECUTED 00110ad4 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { 110ad4: 55 push %ebp 110ad5: 89 e5 mov %esp,%ebp 110ad7: 53 push %ebx 110ad8: 83 ec 04 sub $0x4,%esp 110adb: 8b 45 08 mov 0x8(%ebp),%eax 110ade: 8b 5d 0c mov 0xc(%ebp),%ebx if ( !time_buffer ) 110ae1: 85 db test %ebx,%ebx 110ae3: 74 3b je 110b20 return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) 110ae5: 85 c0 test %eax,%eax 110ae7: 74 2b je 110b14 return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH ) 110ae9: 83 f8 01 cmp $0x1,%eax 110aec: 74 3e je 110b2c return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { 110aee: 83 f8 02 cmp $0x2,%eax 110af1: 74 45 je 110b38 *interval = rtems_clock_get_ticks_since_boot(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { 110af3: 83 f8 03 cmp $0x3,%eax 110af6: 74 4c je 110b44 *interval = rtems_clock_get_ticks_per_second(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) 110af8: 83 f8 04 cmp $0x4,%eax 110afb: 74 0b je 110b08 110afd: b8 0a 00 00 00 mov $0xa,%eax return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } 110b02: 5a pop %edx 110b03: 5b pop %ebx 110b04: c9 leave 110b05: c3 ret 110b06: 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 ); 110b08: 89 5d 08 mov %ebx,0x8(%ebp) return RTEMS_INVALID_NUMBER; } 110b0b: 59 pop %ecx 110b0c: 5b pop %ebx 110b0d: 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 ); 110b0e: e9 49 01 00 00 jmp 110c5c <== ALWAYS TAKEN 110b13: 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 ); 110b14: 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; } 110b17: 58 pop %eax 110b18: 5b pop %ebx 110b19: 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 ); 110b1a: e9 7d 00 00 00 jmp 110b9c <== ALWAYS TAKEN 110b1f: 90 nop <== NOT EXECUTED rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { if ( !time_buffer ) 110b20: 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; } 110b25: 5a pop %edx 110b26: 5b pop %ebx 110b27: c9 leave 110b28: c3 ret 110b29: 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); 110b2c: 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; } 110b2f: 5b pop %ebx 110b30: 5b pop %ebx 110b31: 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); 110b32: e9 19 00 00 00 jmp 110b50 <== ALWAYS TAKEN 110b37: 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(); 110b38: e8 53 00 00 00 call 110b90 <== ALWAYS TAKEN 110b3d: 89 03 mov %eax,(%ebx) 110b3f: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 110b41: eb bf jmp 110b02 <== ALWAYS TAKEN 110b43: 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(); 110b44: e8 33 00 00 00 call 110b7c <== ALWAYS TAKEN 110b49: 89 03 mov %eax,(%ebx) 110b4b: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 110b4d: eb b3 jmp 110b02 <== ALWAYS TAKEN 0010be34 : #include rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { 10be34: 55 push %ebp 10be35: 89 e5 mov %esp,%ebp 10be37: 8b 45 08 mov 0x8(%ebp),%eax if ( !the_interval ) 10be3a: 85 c0 test %eax,%eax 10be3c: 74 1e je 10be5c return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 10be3e: 80 3d 8c 01 13 00 00 cmpb $0x0,0x13018c 10be45: 74 0d je 10be54 return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); 10be47: 8b 15 0c 02 13 00 mov 0x13020c,%edx 10be4d: 89 10 mov %edx,(%eax) 10be4f: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 10be51: c9 leave 10be52: c3 ret 10be53: 90 nop <== NOT EXECUTED ) { if ( !the_interval ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 10be54: b8 0b 00 00 00 mov $0xb,%eax return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); return RTEMS_SUCCESSFUL; } 10be59: c9 leave 10be5a: c3 ret 10be5b: 90 nop <== NOT EXECUTED rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { if ( !the_interval ) 10be5c: b0 09 mov $0x9,%al if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); return RTEMS_SUCCESSFUL; } 10be5e: c9 leave 10be5f: c3 ret 0010be80 : #include rtems_status_code rtems_clock_get_tod( rtems_time_of_day *time_buffer ) { 10be80: 55 push %ebp 10be81: 89 e5 mov %esp,%ebp 10be83: 56 push %esi 10be84: 53 push %ebx 10be85: 83 ec 50 sub $0x50,%esp 10be88: 8b 5d 08 mov 0x8(%ebp),%ebx rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) 10be8b: 85 db test %ebx,%ebx 10be8d: 0f 84 a1 00 00 00 je 10bf34 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 10be93: 80 3d 8c 01 13 00 00 cmpb $0x0,0x13018c 10be9a: 75 0c jne 10bea8 10be9c: 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; } 10bea1: 8d 65 f8 lea -0x8(%ebp),%esp 10bea4: 5b pop %ebx 10bea5: 5e pop %esi 10bea6: c9 leave 10bea7: c3 ret { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 10bea8: 9c pushf 10bea9: fa cli 10beaa: 5e pop %esi _TOD_Get( &now ); 10beab: 83 ec 0c sub $0xc,%esp 10beae: 8d 45 e8 lea -0x18(%ebp),%eax 10beb1: 50 push %eax 10beb2: e8 61 18 00 00 call 10d718 <_TOD_Get> _ISR_Enable(level); 10beb7: 56 push %esi 10beb8: 9d popf useconds = (suseconds_t)now.tv_nsec; 10beb9: 8b 4d ec mov -0x14(%ebp),%ecx useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 10bebc: 8b 45 e8 mov -0x18(%ebp),%eax 10bebf: 89 45 f0 mov %eax,-0x10(%ebp) time->tv_usec = useconds; 10bec2: be d3 4d 62 10 mov $0x10624dd3,%esi 10bec7: 89 c8 mov %ecx,%eax 10bec9: f7 ee imul %esi 10becb: 89 45 b0 mov %eax,-0x50(%ebp) 10bece: 89 55 b4 mov %edx,-0x4c(%ebp) 10bed1: 8b 75 b4 mov -0x4c(%ebp),%esi 10bed4: c1 fe 06 sar $0x6,%esi 10bed7: 89 c8 mov %ecx,%eax 10bed9: 99 cltd 10beda: 29 d6 sub %edx,%esi 10bedc: 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 ); 10bedf: 58 pop %eax 10bee0: 5a pop %edx 10bee1: 8d 45 c4 lea -0x3c(%ebp),%eax 10bee4: 50 push %eax 10bee5: 8d 45 f0 lea -0x10(%ebp),%eax 10bee8: 50 push %eax 10bee9: e8 aa 83 00 00 call 114298 /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; 10beee: 8b 45 d8 mov -0x28(%ebp),%eax 10bef1: 05 6c 07 00 00 add $0x76c,%eax 10bef6: 89 03 mov %eax,(%ebx) tmbuf->month = time.tm_mon + 1; 10bef8: 8b 45 d4 mov -0x2c(%ebp),%eax 10befb: 40 inc %eax 10befc: 89 43 04 mov %eax,0x4(%ebx) tmbuf->day = time.tm_mday; 10beff: 8b 45 d0 mov -0x30(%ebp),%eax 10bf02: 89 43 08 mov %eax,0x8(%ebx) tmbuf->hour = time.tm_hour; 10bf05: 8b 45 cc mov -0x34(%ebp),%eax 10bf08: 89 43 0c mov %eax,0xc(%ebx) tmbuf->minute = time.tm_min; 10bf0b: 8b 45 c8 mov -0x38(%ebp),%eax 10bf0e: 89 43 10 mov %eax,0x10(%ebx) tmbuf->second = time.tm_sec; 10bf11: 8b 45 c4 mov -0x3c(%ebp),%eax 10bf14: 89 43 14 mov %eax,0x14(%ebx) tmbuf->ticks = now.tv_usec / 10bf17: 8b 45 f4 mov -0xc(%ebp),%eax 10bf1a: 31 d2 xor %edx,%edx 10bf1c: f7 35 2c 42 12 00 divl 0x12422c 10bf22: 89 43 18 mov %eax,0x18(%ebx) 10bf25: 31 c0 xor %eax,%eax rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL; 10bf27: 83 c4 10 add $0x10,%esp } 10bf2a: 8d 65 f8 lea -0x8(%ebp),%esp 10bf2d: 5b pop %ebx 10bf2e: 5e pop %esi 10bf2f: c9 leave 10bf30: c3 ret 10bf31: 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 ) 10bf34: b8 09 00 00 00 mov $0x9,%eax 10bf39: e9 63 ff ff ff jmp 10bea1 <== ALWAYS TAKEN 00110c5c : #include rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { 110c5c: 55 push %ebp 110c5d: 89 e5 mov %esp,%ebp 110c5f: 56 push %esi 110c60: 53 push %ebx 110c61: 83 ec 20 sub $0x20,%esp 110c64: 8b 5d 08 mov 0x8(%ebp),%ebx if ( !time ) 110c67: 85 db test %ebx,%ebx 110c69: 74 59 je 110cc4 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 110c6b: 80 3d 8c d8 16 00 00 cmpb $0x0,0x16d88c 110c72: 75 0c jne 110c80 110c74: b8 0b 00 00 00 mov $0xb,%eax return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; } 110c79: 8d 65 f8 lea -0x8(%ebp),%esp 110c7c: 5b pop %ebx 110c7d: 5e pop %esi 110c7e: c9 leave 110c7f: c3 ret { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 110c80: 9c pushf 110c81: fa cli 110c82: 5e pop %esi _TOD_Get( &now ); 110c83: 83 ec 0c sub $0xc,%esp 110c86: 8d 45 f0 lea -0x10(%ebp),%eax 110c89: 50 push %eax 110c8a: e8 05 18 00 00 call 112494 <_TOD_Get> _ISR_Enable(level); 110c8f: 56 push %esi 110c90: 9d popf useconds = (suseconds_t)now.tv_nsec; 110c91: 8b 4d f4 mov -0xc(%ebp),%ecx useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 110c94: 8b 45 f0 mov -0x10(%ebp),%eax 110c97: 89 03 mov %eax,(%ebx) time->tv_usec = useconds; 110c99: be d3 4d 62 10 mov $0x10624dd3,%esi 110c9e: 89 c8 mov %ecx,%eax 110ca0: f7 ee imul %esi 110ca2: 89 45 e0 mov %eax,-0x20(%ebp) 110ca5: 89 55 e4 mov %edx,-0x1c(%ebp) 110ca8: 8b 75 e4 mov -0x1c(%ebp),%esi 110cab: c1 fe 06 sar $0x6,%esi 110cae: 89 c8 mov %ecx,%eax 110cb0: 99 cltd 110cb1: 29 d6 sub %edx,%esi 110cb3: 89 73 04 mov %esi,0x4(%ebx) 110cb6: 31 c0 xor %eax,%eax if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; 110cb8: 83 c4 10 add $0x10,%esp } 110cbb: 8d 65 f8 lea -0x8(%ebp),%esp 110cbe: 5b pop %ebx 110cbf: 5e pop %esi 110cc0: c9 leave 110cc1: c3 ret 110cc2: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { if ( !time ) 110cc4: b8 09 00 00 00 mov $0x9,%eax 110cc9: eb ae jmp 110c79 <== ALWAYS TAKEN 0012ce78 : * error code - if unsuccessful */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { 12ce78: 55 push %ebp 12ce79: 89 e5 mov %esp,%ebp 12ce7b: 83 ec 08 sub $0x8,%esp 12ce7e: 8b 45 08 mov 0x8(%ebp),%eax if ( !uptime ) 12ce81: 85 c0 test %eax,%eax 12ce83: 74 13 je 12ce98 return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime ); 12ce85: 83 ec 0c sub $0xc,%esp 12ce88: 50 push %eax 12ce89: e8 7a 0f 00 00 call 12de08 <_TOD_Get_uptime_as_timespec> 12ce8e: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 12ce90: 83 c4 10 add $0x10,%esp } 12ce93: c9 leave 12ce94: c3 ret 12ce95: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { if ( !uptime ) 12ce98: b0 09 mov $0x9,%al return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime ); return RTEMS_SUCCESSFUL; } 12ce9a: c9 leave 12ce9b: c3 ret 0010bf58 : */ rtems_status_code rtems_clock_set( rtems_time_of_day *time_buffer ) { 10bf58: 55 push %ebp 10bf59: 89 e5 mov %esp,%ebp 10bf5b: 53 push %ebx 10bf5c: 83 ec 14 sub $0x14,%esp 10bf5f: 8b 5d 08 mov 0x8(%ebp),%ebx struct timespec newtime; if ( !time_buffer ) 10bf62: 85 db test %ebx,%ebx 10bf64: 74 66 je 10bfcc return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { 10bf66: 83 ec 0c sub $0xc,%esp 10bf69: 53 push %ebx 10bf6a: e8 39 01 00 00 call 10c0a8 <_TOD_Validate> <== ALWAYS TAKEN 10bf6f: 83 c4 10 add $0x10,%esp 10bf72: 84 c0 test %al,%al 10bf74: 75 0a jne 10bf80 10bf76: b8 14 00 00 00 mov $0x14,%eax _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 10bf7b: 8b 5d fc mov -0x4(%ebp),%ebx 10bf7e: c9 leave 10bf7f: c3 ret if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { newtime.tv_sec = _TOD_To_seconds( time_buffer ); 10bf80: 83 ec 0c sub $0xc,%esp 10bf83: 53 push %ebx 10bf84: e8 93 00 00 00 call 10c01c <_TOD_To_seconds> <== ALWAYS TAKEN 10bf89: 89 45 f0 mov %eax,-0x10(%ebp) newtime.tv_nsec = time_buffer->ticks * 10bf8c: 8b 43 18 mov 0x18(%ebx),%eax 10bf8f: 0f af 05 2c 42 12 00 imul 0x12422c,%eax 10bf96: 8d 04 80 lea (%eax,%eax,4),%eax 10bf99: 8d 04 80 lea (%eax,%eax,4),%eax 10bf9c: 8d 04 80 lea (%eax,%eax,4),%eax 10bf9f: c1 e0 03 shl $0x3,%eax 10bfa2: 89 45 f4 mov %eax,-0xc(%ebp) rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10bfa5: a1 78 01 13 00 mov 0x130178,%eax 10bfaa: 40 inc %eax 10bfab: a3 78 01 13 00 mov %eax,0x130178 rtems_configuration_get_nanoseconds_per_tick(); _Thread_Disable_dispatch(); _TOD_Set( &newtime ); 10bfb0: 8d 45 f0 lea -0x10(%ebp),%eax 10bfb3: 89 04 24 mov %eax,(%esp) 10bfb6: e8 41 18 00 00 call 10d7fc <_TOD_Set> _Thread_Enable_dispatch(); 10bfbb: e8 04 2b 00 00 call 10eac4 <_Thread_Enable_dispatch> 10bfc0: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10bfc2: 83 c4 10 add $0x10,%esp } return RTEMS_INVALID_CLOCK; } 10bfc5: 8b 5d fc mov -0x4(%ebp),%ebx 10bfc8: c9 leave 10bfc9: c3 ret 10bfca: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_time_of_day *time_buffer ) { struct timespec newtime; if ( !time_buffer ) 10bfcc: b8 09 00 00 00 mov $0x9,%eax _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 10bfd1: 8b 5d fc mov -0x4(%ebp),%ebx 10bfd4: c9 leave 10bfd5: c3 ret 0010ae70 : * error code - if unsuccessful */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { 10ae70: 55 push %ebp 10ae71: 89 e5 mov %esp,%ebp 10ae73: 8b 45 08 mov 0x8(%ebp),%eax if ( !routine ) 10ae76: 85 c0 test %eax,%eax 10ae78: 74 0a je 10ae84 return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine; 10ae7a: a3 04 55 12 00 mov %eax,0x125504 10ae7f: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 10ae81: c9 leave 10ae82: c3 ret 10ae83: 90 nop <== NOT EXECUTED */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { if ( !routine ) 10ae84: b0 09 mov $0x9,%al return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine; return RTEMS_SUCCESSFUL; } 10ae86: c9 leave 10ae87: c3 ret 0010ae88 : * * NOTE: This routine only works for leap-years through 2099. */ rtems_status_code rtems_clock_tick( void ) { 10ae88: 55 push %ebp 10ae89: 89 e5 mov %esp,%ebp 10ae8b: 83 ec 08 sub $0x8,%esp _TOD_Tickle_ticks(); 10ae8e: e8 f5 13 00 00 call 10c288 <_TOD_Tickle_ticks> */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void ) { _Watchdog_Tickle( &_Watchdog_Ticks_chain ); 10ae93: 83 ec 0c sub $0xc,%esp 10ae96: 68 18 54 12 00 push $0x125418 10ae9b: e8 94 35 00 00 call 10e434 <_Watchdog_Tickle> _Watchdog_Tickle_ticks(); _Thread_Tickle_timeslice(); 10aea0: e8 3b 30 00 00 call 10dee0 <_Thread_Tickle_timeslice> * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) { return ( _Context_Switch_necessary ); 10aea5: a0 08 54 12 00 mov 0x125408,%al if ( _Thread_Is_context_switch_necessary() && 10aeaa: 83 c4 10 add $0x10,%esp 10aead: 84 c0 test %al,%al 10aeaf: 74 09 je 10aeba * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void ) { return ( _Thread_Dispatch_disable_level == 0 ); 10aeb1: a1 38 53 12 00 mov 0x125338,%eax 10aeb6: 85 c0 test %eax,%eax 10aeb8: 74 06 je 10aec0 _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); return RTEMS_SUCCESSFUL; } 10aeba: 31 c0 xor %eax,%eax 10aebc: c9 leave 10aebd: c3 ret 10aebe: 66 90 xchg %ax,%ax <== NOT EXECUTED _Thread_Tickle_timeslice(); if ( _Thread_Is_context_switch_necessary() && _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); 10aec0: e8 97 23 00 00 call 10d25c <_Thread_Dispatch> return RTEMS_SUCCESSFUL; } 10aec5: 31 c0 xor %eax,%eax 10aec7: c9 leave 10aec8: c3 ret 0010884c : void rtems_cpu_usage_report( void ) { 10884c: 55 push %ebp 10884d: 89 e5 mov %esp,%ebp 10884f: 83 ec 10 sub $0x10,%esp rtems_cpu_usage_report_with_plugin( NULL, printk_plugin ); 108852: 68 e8 9c 10 00 push $0x109ce8 108857: 6a 00 push $0x0 108859: e8 6e fe ff ff call 1086cc <== ALWAYS TAKEN 10885e: 83 c4 10 add $0x10,%esp } 108861: c9 leave 108862: c3 ret 001086cc : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 1086cc: 55 push %ebp 1086cd: 89 e5 mov %esp,%ebp 1086cf: 57 push %edi 1086d0: 56 push %esi 1086d1: 53 push %ebx 1086d2: 83 ec 6c sub $0x6c,%esp 1086d5: 8b 7d 08 mov 0x8(%ebp),%edi Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 1086d8: 8b 45 0c mov 0xc(%ebp),%eax 1086db: 85 c0 test %eax,%eax 1086dd: 0f 84 5f 01 00 00 je 108842 <== 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 ); 1086e3: 83 ec 0c sub $0xc,%esp 1086e6: 8d 45 d8 lea -0x28(%ebp),%eax 1086e9: 50 push %eax 1086ea: e8 81 50 00 00 call 10d770 <_TOD_Get_uptime> _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 1086ef: 83 c4 0c add $0xc,%esp 1086f2: 8d 55 d0 lea -0x30(%ebp),%edx 1086f5: 52 push %edx 1086f6: 8d 4d d8 lea -0x28(%ebp),%ecx 1086f9: 51 push %ecx 1086fa: 68 6c 04 13 00 push $0x13046c 1086ff: e8 38 72 00 00 call 10f93c <_Timespec_Subtract> } } } #endif (*print)( 108704: 5b pop %ebx 108705: 5e pop %esi 108706: 68 e8 1a 12 00 push $0x121ae8 10870b: 57 push %edi 10870c: ff 55 0c call *0xc(%ebp) 10870f: c7 45 a4 01 00 00 00 movl $0x1,-0x5c(%ebp) 108716: 83 c4 10 add $0x10,%esp ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 108719: 8b 5d a4 mov -0x5c(%ebp),%ebx 10871c: 8b 04 9d 4c 01 13 00 mov 0x13014c(,%ebx,4),%eax 108723: 85 c0 test %eax,%eax 108725: 0f 84 ed 00 00 00 je 108818 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 10872b: 8b 70 04 mov 0x4(%eax),%esi if ( information ) { 10872e: 85 f6 test %esi,%esi 108730: 0f 84 e2 00 00 00 je 108818 <== ALWAYS TAKEN for ( i=1 ; i <= information->maximum ; i++ ) { 108736: 66 83 7e 10 00 cmpw $0x0,0x10(%esi) 10873b: 0f 84 d7 00 00 00 je 108818 <== ALWAYS TAKEN 108741: 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 ); 108746: 89 5d 94 mov %ebx,-0x6c(%ebp) 108749: eb 4b jmp 108796 <== ALWAYS TAKEN 10874b: 90 nop <== NOT EXECUTED }; _Timestamp_Divide( &ran, &total, &ival, &fval ); 10874c: 8d 5d e0 lea -0x20(%ebp),%ebx 10874f: 53 push %ebx 108750: 8d 45 e4 lea -0x1c(%ebp),%eax 108753: 50 push %eax 108754: 8d 55 d0 lea -0x30(%ebp),%edx 108757: 52 push %edx 108758: 8d 4d c8 lea -0x38(%ebp),%ecx 10875b: 51 push %ecx 10875c: e8 07 71 00 00 call 10f868 <_Timespec_Divide> /* * Print the information */ (*print)( context, 108761: 58 pop %eax 108762: 5a pop %edx 108763: ff 75 e0 pushl -0x20(%ebp) 108766: ff 75 e4 pushl -0x1c(%ebp) 108769: ba d3 4d 62 10 mov $0x10624dd3,%edx 10876e: 8b 45 cc mov -0x34(%ebp),%eax 108771: f7 e2 mul %edx 108773: c1 ea 06 shr $0x6,%edx 108776: 52 push %edx 108777: ff 75 c8 pushl -0x38(%ebp) 10877a: 68 5b 1d 12 00 push $0x121d5b 10877f: 57 push %edi 108780: ff 55 0c call *0xc(%ebp) 108783: 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++ ) { 108786: ff 45 94 incl -0x6c(%ebp) 108789: 0f b7 46 10 movzwl 0x10(%esi),%eax 10878d: 3b 45 94 cmp -0x6c(%ebp),%eax 108790: 0f 82 82 00 00 00 jb 108818 the_thread = (Thread_Control *)information->local_table[ i ]; 108796: 8b 46 1c mov 0x1c(%esi),%eax 108799: 8b 4d 94 mov -0x6c(%ebp),%ecx 10879c: 8b 14 88 mov (%eax,%ecx,4),%edx if ( !the_thread ) 10879f: 85 d2 test %edx,%edx 1087a1: 74 e3 je 108786 <== ALWAYS TAKEN continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 1087a3: 51 push %ecx 1087a4: 8d 5d b3 lea -0x4d(%ebp),%ebx 1087a7: 53 push %ebx 1087a8: 6a 0d push $0xd 1087aa: ff 72 08 pushl 0x8(%edx) 1087ad: 89 55 a0 mov %edx,-0x60(%ebp) 1087b0: e8 83 3d 00 00 call 10c538 (*print)( 1087b5: 53 push %ebx 1087b6: 8b 55 a0 mov -0x60(%ebp),%edx 1087b9: ff 72 08 pushl 0x8(%edx) 1087bc: 68 48 1d 12 00 push $0x121d48 1087c1: 57 push %edi 1087c2: 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; 1087c5: 8b 55 a0 mov -0x60(%ebp),%edx 1087c8: 8b 8a 84 00 00 00 mov 0x84(%edx),%ecx 1087ce: 8b 9a 88 00 00 00 mov 0x88(%edx),%ebx 1087d4: 89 4d c8 mov %ecx,-0x38(%ebp) 1087d7: 89 5d cc mov %ebx,-0x34(%ebp) if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 1087da: 83 c4 20 add $0x20,%esp 1087dd: a1 38 02 13 00 mov 0x130238,%eax 1087e2: 8b 40 08 mov 0x8(%eax),%eax 1087e5: 3b 42 08 cmp 0x8(%edx),%eax 1087e8: 0f 85 5e ff ff ff jne 10874c Timestamp_Control used; _Timestamp_Subtract( 1087ee: 52 push %edx 1087ef: 8d 5d c0 lea -0x40(%ebp),%ebx 1087f2: 53 push %ebx 1087f3: 8d 45 d8 lea -0x28(%ebp),%eax 1087f6: 50 push %eax 1087f7: 68 40 02 13 00 push $0x130240 1087fc: e8 3b 71 00 00 call 10f93c <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); 108801: 59 pop %ecx 108802: 58 pop %eax 108803: 53 push %ebx 108804: 8d 4d c8 lea -0x38(%ebp),%ecx 108807: 51 push %ecx 108808: e8 1f 70 00 00 call 10f82c <_Timespec_Add_to> 10880d: 83 c4 10 add $0x10,%esp 108810: e9 37 ff ff ff jmp 10874c <== ALWAYS TAKEN 108815: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { 108818: ff 45 a4 incl -0x5c(%ebp) " ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; 10881b: 83 7d a4 05 cmpl $0x5,-0x5c(%ebp) 10881f: 0f 85 f4 fe ff ff jne 108719 } } } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( 108825: ba d3 4d 62 10 mov $0x10624dd3,%edx 10882a: 8b 45 d4 mov -0x2c(%ebp),%eax 10882d: f7 e2 mul %edx 10882f: c1 ea 06 shr $0x6,%edx 108832: 52 push %edx 108833: ff 75 d0 pushl -0x30(%ebp) 108836: 68 5c 1c 12 00 push $0x121c5c 10883b: 57 push %edi 10883c: ff 55 0c call *0xc(%ebp) 10883f: 83 c4 10 add $0x10,%esp "-------------------------------------------------------------------------------\n", _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset, total_units ); #endif } 108842: 8d 65 f4 lea -0xc(%ebp),%esp 108845: 5b pop %ebx 108846: 5e pop %esi 108847: 5f pop %edi 108848: c9 leave 108849: c3 ret 00112060 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 112060: 55 push %ebp <== NOT EXECUTED 112061: 89 e5 mov %esp,%ebp <== NOT EXECUTED 112063: 53 push %ebx <== NOT EXECUTED 112064: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 112067: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 11206a: 68 c0 ff 11 00 push $0x11ffc0 <== NOT EXECUTED 11206f: e8 1c 00 00 00 call 112090 <== NOT EXECUTED 112074: 89 c3 mov %eax,%ebx <== NOT EXECUTED 112076: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 112079: 85 c0 test %eax,%eax <== NOT EXECUTED 11207b: 74 07 je 112084 <== NOT EXECUTED { errno = rc; 11207d: e8 1e 03 00 00 call 1123a0 <__errno> <== NOT EXECUTED 112082: 89 18 mov %ebx,(%eax) <== NOT EXECUTED return -1; } return -1; } 112084: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 112089: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 11208c: c9 leave <== NOT EXECUTED 11208d: c3 ret <== NOT EXECUTED 0010ccf8 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { 10ccf8: 55 push %ebp <== NOT EXECUTED 10ccf9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10ccfb: 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( 10ccfe: 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); 10cd01: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 10cd04: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 10cd07: e8 34 fe ff ff call 10cb40 <== NOT EXECUTED va_end(arglist); return chars_written; } 10cd0c: c9 leave <== NOT EXECUTED 10cd0d: c3 ret <== NOT EXECUTED 0010aecc : rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 10aecc: 55 push %ebp 10aecd: 89 e5 mov %esp,%ebp 10aecf: 83 ec 08 sub $0x8,%esp 10aed2: 8b 55 08 mov 0x8(%ebp),%edx 10aed5: 8b 45 14 mov 0x14(%ebp),%eax RTEMS_API_Control *api; if ( !event_out ) 10aed8: 85 c0 test %eax,%eax 10aeda: 74 44 je 10af20 return RTEMS_INVALID_ADDRESS; api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; 10aedc: 8b 0d f8 53 12 00 mov 0x1253f8,%ecx 10aee2: 8b 89 f0 00 00 00 mov 0xf0(%ecx),%ecx if ( _Event_sets_Is_empty( event_in ) ) { 10aee8: 85 d2 test %edx,%edx 10aeea: 75 08 jne 10aef4 *event_out = api->pending_events; 10aeec: 8b 11 mov (%ecx),%edx 10aeee: 89 10 mov %edx,(%eax) 10aef0: 31 c0 xor %eax,%eax _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); _Thread_Enable_dispatch(); return( _Thread_Executing->Wait.return_code ); } 10aef2: c9 leave 10aef3: c3 ret rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10aef4: 8b 0d 38 53 12 00 mov 0x125338,%ecx 10aefa: 41 inc %ecx 10aefb: 89 0d 38 53 12 00 mov %ecx,0x125338 *event_out = api->pending_events; return RTEMS_SUCCESSFUL; } _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); 10af01: 50 push %eax 10af02: ff 75 10 pushl 0x10(%ebp) 10af05: ff 75 0c pushl 0xc(%ebp) 10af08: 52 push %edx 10af09: e8 16 00 00 00 call 10af24 <_Event_Seize> <== ALWAYS TAKEN _Thread_Enable_dispatch(); 10af0e: e8 a5 24 00 00 call 10d3b8 <_Thread_Enable_dispatch> return( _Thread_Executing->Wait.return_code ); 10af13: a1 f8 53 12 00 mov 0x1253f8,%eax 10af18: 8b 40 34 mov 0x34(%eax),%eax 10af1b: 83 c4 10 add $0x10,%esp } 10af1e: c9 leave 10af1f: c3 ret rtems_event_set *event_out ) { RTEMS_API_Control *api; if ( !event_out ) 10af20: b0 09 mov $0x9,%al _Thread_Disable_dispatch(); _Event_Seize( event_in, option_set, ticks, event_out ); _Thread_Enable_dispatch(); return( _Thread_Executing->Wait.return_code ); } 10af22: c9 leave 10af23: c3 ret 0010b050 : rtems_status_code rtems_event_send( rtems_id id, rtems_event_set event_in ) { 10b050: 55 push %ebp 10b051: 89 e5 mov %esp,%ebp 10b053: 53 push %ebx 10b054: 83 ec 1c sub $0x1c,%esp register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location ); 10b057: 8d 45 f4 lea -0xc(%ebp),%eax 10b05a: 50 push %eax 10b05b: ff 75 08 pushl 0x8(%ebp) 10b05e: e8 79 23 00 00 call 10d3dc <_Thread_Get> switch ( location ) { 10b063: 83 c4 10 add $0x10,%esp 10b066: 8b 55 f4 mov -0xc(%ebp),%edx 10b069: 85 d2 test %edx,%edx 10b06b: 75 2b jne 10b098 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 10b06d: 8b 90 f0 00 00 00 mov 0xf0(%eax),%edx rtems_event_set *the_event_set ) { ISR_Level level; _ISR_Disable( level ); 10b073: 9c pushf 10b074: fa cli 10b075: 59 pop %ecx *the_event_set |= the_new_events; 10b076: 8b 5d 0c mov 0xc(%ebp),%ebx 10b079: 09 1a or %ebx,(%edx) _ISR_Enable( level ); 10b07b: 51 push %ecx 10b07c: 9d popf _Event_sets_Post( event_in, &api->pending_events ); _Event_Surrender( the_thread ); 10b07d: 83 ec 0c sub $0xc,%esp 10b080: 50 push %eax 10b081: e8 1e 00 00 00 call 10b0a4 <_Event_Surrender> <== ALWAYS TAKEN _Thread_Enable_dispatch(); 10b086: e8 2d 23 00 00 call 10d3b8 <_Thread_Enable_dispatch> 10b08b: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10b08d: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b090: 8b 5d fc mov -0x4(%ebp),%ebx 10b093: c9 leave 10b094: c3 ret 10b095: 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 ) { 10b098: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b09d: 8b 5d fc mov -0x4(%ebp),%ebx 10b0a0: c9 leave 10b0a1: c3 ret 00110764 : rtems_status_code rtems_extension_create( rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id ) { 110764: 55 push %ebp 110765: 89 e5 mov %esp,%ebp 110767: 57 push %edi 110768: 56 push %esi 110769: 53 push %ebx 11076a: 83 ec 1c sub $0x1c,%esp 11076d: 8b 75 0c mov 0xc(%ebp),%esi 110770: 8b 5d 10 mov 0x10(%ebp),%ebx Extension_Control *the_extension; if ( !id ) 110773: 85 db test %ebx,%ebx 110775: 0f 84 85 00 00 00 je 110800 return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 11077b: 8b 45 08 mov 0x8(%ebp),%eax 11077e: 85 c0 test %eax,%eax 110780: 75 0e jne 110790 110782: b8 03 00 00 00 mov $0x3,%eax ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 110787: 8d 65 f4 lea -0xc(%ebp),%esp 11078a: 5b pop %ebx 11078b: 5e pop %esi 11078c: 5f pop %edi 11078d: c9 leave 11078e: c3 ret 11078f: 90 nop <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 110790: a1 58 38 13 00 mov 0x133858,%eax 110795: 40 inc %eax 110796: a3 58 38 13 00 mov %eax,0x133858 #ifndef __EXTENSION_MANAGER_inl #define __EXTENSION_MANAGER_inl RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void ) { return (Extension_Control *) _Objects_Allocate( &_Extension_Information ); 11079b: 83 ec 0c sub $0xc,%esp 11079e: 68 e0 3a 13 00 push $0x133ae0 1107a3: e8 18 0c 00 00 call 1113c0 <_Objects_Allocate> _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { 1107a8: 83 c4 10 add $0x10,%esp 1107ab: 85 c0 test %eax,%eax 1107ad: 74 45 je 1107f4 RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table( User_extensions_Control *extension, const User_extensions_Table *extension_table ) { extension->Callouts = *extension_table; 1107af: 8d 78 24 lea 0x24(%eax),%edi 1107b2: b9 08 00 00 00 mov $0x8,%ecx 1107b7: f3 a5 rep movsl %ds:(%esi),%es:(%edi) _User_extensions_Add_set( extension ); 1107b9: 83 ec 0c sub $0xc,%esp 1107bc: 8d 50 10 lea 0x10(%eax),%edx 1107bf: 52 push %edx 1107c0: 89 45 e4 mov %eax,-0x1c(%ebp) 1107c3: e8 c8 25 00 00 call 112d90 <_User_extensions_Add_set> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 1107c8: 8b 45 e4 mov -0x1c(%ebp),%eax 1107cb: 8b 50 08 mov 0x8(%eax),%edx 1107ce: 0f b7 f2 movzwl %dx,%esi 1107d1: 8b 0d fc 3a 13 00 mov 0x133afc,%ecx 1107d7: 89 04 b1 mov %eax,(%ecx,%esi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 1107da: 8b 4d 08 mov 0x8(%ebp),%ecx 1107dd: 89 48 0c mov %ecx,0xc(%eax) &_Extension_Information, &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id; 1107e0: 89 13 mov %edx,(%ebx) _Thread_Enable_dispatch(); 1107e2: e8 39 19 00 00 call 112120 <_Thread_Enable_dispatch> 1107e7: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 1107e9: 83 c4 10 add $0x10,%esp } 1107ec: 8d 65 f4 lea -0xc(%ebp),%esp 1107ef: 5b pop %ebx 1107f0: 5e pop %esi 1107f1: 5f pop %edi 1107f2: c9 leave 1107f3: c3 ret _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { _Thread_Enable_dispatch(); 1107f4: e8 27 19 00 00 call 112120 <_Thread_Enable_dispatch> 1107f9: b8 05 00 00 00 mov $0x5,%eax return RTEMS_TOO_MANY; 1107fe: eb 87 jmp 110787 <== ALWAYS TAKEN rtems_id *id ) { Extension_Control *the_extension; if ( !id ) 110800: b8 09 00 00 00 mov $0x9,%eax 110805: eb 80 jmp 110787 <== ALWAYS TAKEN 00110808 : #include rtems_status_code rtems_extension_delete( rtems_id id ) { 110808: 55 push %ebp 110809: 89 e5 mov %esp,%ebp 11080b: 53 push %ebx 11080c: 83 ec 18 sub $0x18,%esp RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get ( Objects_Id id, Objects_Locations *location ) { return (Extension_Control *) 11080f: 8d 45 f4 lea -0xc(%ebp),%eax 110812: 50 push %eax 110813: ff 75 08 pushl 0x8(%ebp) 110816: 68 e0 3a 13 00 push $0x133ae0 11081b: e8 50 10 00 00 call 111870 <_Objects_Get> 110820: 89 c3 mov %eax,%ebx Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { 110822: 83 c4 10 add $0x10,%esp 110825: 8b 55 f4 mov -0xc(%ebp),%edx 110828: 85 d2 test %edx,%edx 11082a: 75 38 jne 110864 case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension ); 11082c: 83 ec 0c sub $0xc,%esp 11082f: 8d 40 10 lea 0x10(%eax),%eax 110832: 50 push %eax 110833: e8 58 26 00 00 call 112e90 <_User_extensions_Remove_set> _Objects_Close( &_Extension_Information, &the_extension->Object ); 110838: 59 pop %ecx 110839: 58 pop %eax 11083a: 53 push %ebx 11083b: 68 e0 3a 13 00 push $0x133ae0 110840: e8 f7 0b 00 00 call 11143c <_Objects_Close> RTEMS_INLINE_ROUTINE void _Extension_Free ( Extension_Control *the_extension ) { _Objects_Free( &_Extension_Information, &the_extension->Object ); 110845: 58 pop %eax 110846: 5a pop %edx 110847: 53 push %ebx 110848: 68 e0 3a 13 00 push $0x133ae0 11084d: e8 ee 0e 00 00 call 111740 <_Objects_Free> <== ALWAYS TAKEN _Extension_Free( the_extension ); _Thread_Enable_dispatch(); 110852: e8 c9 18 00 00 call 112120 <_Thread_Enable_dispatch> 110857: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 110859: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11085c: 8b 5d fc mov -0x4(%ebp),%ebx 11085f: c9 leave 110860: c3 ret 110861: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED { Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { 110864: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 110869: 8b 5d fc mov -0x4(%ebp),%ebx 11086c: c9 leave 11086d: c3 ret 00107e04 : } int rtems_filesystem_dirname( const char *pathname ) { 107e04: 55 push %ebp 107e05: 89 e5 mov %esp,%ebp 107e07: 57 push %edi 107e08: 8b 55 08 mov 0x8(%ebp),%edx int len = strlen( pathname ); 107e0b: 31 c0 xor %eax,%eax 107e0d: b9 ff ff ff ff mov $0xffffffff,%ecx 107e12: 89 d7 mov %edx,%edi 107e14: f2 ae repnz scas %es:(%edi),%al 107e16: f7 d1 not %ecx 107e18: 8d 79 ff lea -0x1(%ecx),%edi 107e1b: 89 f8 mov %edi,%eax while ( len ) { 107e1d: 85 ff test %edi,%edi 107e1f: 74 2e je 107e4f <== ALWAYS TAKEN len--; 107e21: 8d 41 fe lea -0x2(%ecx),%eax if ( rtems_filesystem_is_separator( pathname[len] ) ) 107e24: 8a 0c 02 mov (%edx,%eax,1),%cl 107e27: 80 f9 2f cmp $0x2f,%cl 107e2a: 74 23 je 107e4f <== ALWAYS TAKEN 107e2c: 80 f9 5c cmp $0x5c,%cl 107e2f: 74 1e je 107e4f <== ALWAYS TAKEN 107e31: 84 c9 test %cl,%cl 107e33: 74 1a je 107e4f <== ALWAYS TAKEN 107e35: 01 fa add %edi,%edx 107e37: 90 nop const char *pathname ) { int len = strlen( pathname ); while ( len ) { 107e38: 85 c0 test %eax,%eax 107e3a: 74 13 je 107e4f <== ALWAYS TAKEN len--; 107e3c: 48 dec %eax if ( rtems_filesystem_is_separator( pathname[len] ) ) 107e3d: 8a 4a fe mov -0x2(%edx),%cl 107e40: 80 f9 2f cmp $0x2f,%cl 107e43: 74 0a je 107e4f 107e45: 80 f9 5c cmp $0x5c,%cl 107e48: 74 05 je 107e4f <== ALWAYS TAKEN 107e4a: 4a dec %edx 107e4b: 84 c9 test %cl,%cl 107e4d: 75 e9 jne 107e38 <== NEVER TAKEN break; } return len; } 107e4f: 5f pop %edi 107e50: c9 leave 107e51: c3 ret 00107f28 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 107f28: 55 push %ebp 107f29: 89 e5 mov %esp,%ebp 107f2b: 57 push %edi 107f2c: 56 push %esi 107f2d: 53 push %ebx 107f2e: 83 ec 1c sub $0x1c,%esp 107f31: 8b 55 08 mov 0x8(%ebp),%edx 107f34: 8b 45 0c mov 0xc(%ebp),%eax 107f37: 89 45 e4 mov %eax,-0x1c(%ebp) 107f3a: 8b 45 10 mov 0x10(%ebp),%eax 107f3d: 89 45 e0 mov %eax,-0x20(%ebp) 107f40: 8b 45 14 mov 0x14(%ebp),%eax 107f43: 8b 5d 18 mov 0x18(%ebp),%ebx /* * Verify Input parameters. */ if ( !pathname ) 107f46: 85 d2 test %edx,%edx 107f48: 0f 84 80 00 00 00 je 107fce <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 107f4e: 85 c0 test %eax,%eax 107f50: 74 64 je 107fb6 <== ALWAYS TAKEN /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 107f52: 8a 0a mov (%edx),%cl 107f54: 80 f9 2f cmp $0x2f,%cl 107f57: 74 09 je 107f62 107f59: 80 f9 5c cmp $0x5c,%cl 107f5c: 74 04 je 107f62 <== ALWAYS TAKEN 107f5e: 84 c9 test %cl,%cl 107f60: 75 3e jne 107fa0 <== NEVER TAKEN 107f62: 8b 35 f8 2f 12 00 mov 0x122ff8,%esi 107f68: 83 c6 18 add $0x18,%esi 107f6b: b9 05 00 00 00 mov $0x5,%ecx 107f70: 89 c7 mov %eax,%edi 107f72: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 107f74: b1 01 mov $0x1,%cl 107f76: 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], 107f7b: 89 5d 18 mov %ebx,0x18(%ebp) 107f7e: 89 45 14 mov %eax,0x14(%ebp) 107f81: 8b 45 e0 mov -0x20(%ebp),%eax 107f84: 89 45 10 mov %eax,0x10(%ebp) 107f87: 8b 45 e4 mov -0x1c(%ebp),%eax 107f8a: 29 f0 sub %esi,%eax 107f8c: 89 45 0c mov %eax,0xc(%ebp) 107f8f: 01 ca add %ecx,%edx 107f91: 89 55 08 mov %edx,0x8(%ebp) pathnamelen - i, flags, pathloc, follow_link ); } 107f94: 83 c4 1c add $0x1c,%esp 107f97: 5b pop %ebx 107f98: 5e pop %esi 107f99: 5f pop %edi 107f9a: 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], 107f9b: e9 b4 fe ff ff jmp 107e54 <== ALWAYS TAKEN /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 107fa0: 8b 35 f8 2f 12 00 mov 0x122ff8,%esi 107fa6: 83 c6 04 add $0x4,%esi 107fa9: b9 05 00 00 00 mov $0x5,%ecx 107fae: 89 c7 mov %eax,%edi 107fb0: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 107fb2: 31 f6 xor %esi,%esi 107fb4: eb c5 jmp 107f7b <== ALWAYS TAKEN if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 107fb6: e8 e5 a3 00 00 call 1123a0 <__errno> <== NOT EXECUTED 107fbb: 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 ); } 107fc1: b8 ff ff ff ff mov $0xffffffff,%eax 107fc6: 83 c4 1c add $0x1c,%esp 107fc9: 5b pop %ebx 107fca: 5e pop %esi 107fcb: 5f pop %edi 107fcc: c9 leave 107fcd: c3 ret /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 107fce: e8 cd a3 00 00 call 1123a0 <__errno> 107fd3: c7 00 0e 00 00 00 movl $0xe,(%eax) 107fd9: eb e6 jmp 107fc1 <== ALWAYS TAKEN 00107e54 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 107e54: 55 push %ebp 107e55: 89 e5 mov %esp,%ebp 107e57: 57 push %edi 107e58: 56 push %esi 107e59: 53 push %ebx 107e5a: 83 ec 1c sub $0x1c,%esp 107e5d: 8b 45 08 mov 0x8(%ebp),%eax 107e60: 8b 4d 0c mov 0xc(%ebp),%ecx 107e63: 8b 7d 10 mov 0x10(%ebp),%edi 107e66: 8b 5d 14 mov 0x14(%ebp),%ebx 107e69: 8b 55 18 mov 0x18(%ebp),%edx 107e6c: 89 55 e4 mov %edx,-0x1c(%ebp) /* * Verify Input parameters. */ if ( !pathname ) 107e6f: 85 c0 test %eax,%eax 107e71: 0f 84 8c 00 00 00 je 107f03 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 107e77: 85 db test %ebx,%ebx 107e79: 0f 84 96 00 00 00 je 107f15 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) 107e7f: 8b 53 0c mov 0xc(%ebx),%edx 107e82: 8b 12 mov (%edx),%edx 107e84: 85 d2 test %edx,%edx 107e86: 74 69 je 107ef1 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); 107e88: 53 push %ebx 107e89: 57 push %edi 107e8a: 51 push %ecx 107e8b: 50 push %eax 107e8c: ff d2 call *%edx 107e8e: 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 ) { 107e90: 83 c4 10 add $0x10,%esp 107e93: 85 c0 test %eax,%eax 107e95: 75 25 jne 107ebc 107e97: 8b 45 e4 mov -0x1c(%ebp),%eax 107e9a: 85 c0 test %eax,%eax 107e9c: 74 1e je 107ebc if ( !pathloc->ops->node_type_h ){ 107e9e: 8b 53 0c mov 0xc(%ebx),%edx 107ea1: 8b 42 10 mov 0x10(%edx),%eax 107ea4: 85 c0 test %eax,%eax 107ea6: 74 39 je 107ee1 <== ALWAYS TAKEN rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 107ea8: 83 ec 0c sub $0xc,%esp 107eab: 53 push %ebx 107eac: ff d0 call *%eax if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 107eae: 83 e8 03 sub $0x3,%eax 107eb1: 83 c4 10 add $0x10,%esp 107eb4: 83 f8 01 cmp $0x1,%eax 107eb7: 76 0f jbe 107ec8 107eb9: 8d 76 00 lea 0x0(%esi),%esi result = (*pathloc->ops->eval_link_h)( pathloc, flags ); } } return result; } 107ebc: 89 f0 mov %esi,%eax 107ebe: 8d 65 f4 lea -0xc(%ebp),%esp 107ec1: 5b pop %ebx 107ec2: 5e pop %esi 107ec3: 5f pop %edi 107ec4: c9 leave 107ec5: c3 ret 107ec6: 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 ){ 107ec8: 8b 53 0c mov 0xc(%ebx),%edx 107ecb: 8b 42 34 mov 0x34(%edx),%eax 107ece: 85 c0 test %eax,%eax 107ed0: 74 0f je 107ee1 <== 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 ); 107ed2: 89 7d 0c mov %edi,0xc(%ebp) 107ed5: 89 5d 08 mov %ebx,0x8(%ebp) } } return result; } 107ed8: 8d 65 f4 lea -0xc(%ebp),%esp 107edb: 5b pop %ebx 107edc: 5e pop %esi 107edd: 5f pop %edi 107ede: 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 ); 107edf: 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 ); 107ee1: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 107ee4: 85 c0 test %eax,%eax <== NOT EXECUTED 107ee6: 74 09 je 107ef1 <== NOT EXECUTED 107ee8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107eeb: 53 push %ebx <== NOT EXECUTED 107eec: ff d0 call *%eax <== NOT EXECUTED 107eee: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 107ef1: e8 aa a4 00 00 call 1123a0 <__errno> <== NOT EXECUTED 107ef6: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 107efc: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 107f01: eb b9 jmp 107ebc <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 107f03: e8 98 a4 00 00 call 1123a0 <__errno> <== NOT EXECUTED 107f08: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 107f0e: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 107f13: eb a7 jmp 107ebc <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 107f15: e8 86 a4 00 00 call 1123a0 <__errno> <== NOT EXECUTED 107f1a: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED 107f20: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 107f25: eb 95 jmp 107ebc <== NOT EXECUTED 00107cc8 : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 107cc8: 55 push %ebp 107cc9: 89 e5 mov %esp,%ebp 107ccb: 57 push %edi 107ccc: 56 push %esi 107ccd: 53 push %ebx 107cce: 83 ec 2c sub $0x2c,%esp /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 107cd1: a1 f8 2f 12 00 mov 0x122ff8,%eax 107cd6: c7 40 2c 12 00 00 00 movl $0x12,0x2c(%eax) init_fs_mount_table(); 107cdd: e8 36 07 00 00 call 108418 <== ALWAYS TAKEN /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 107ce2: a1 4c df 11 00 mov 0x11df4c,%eax 107ce7: 85 c0 test %eax,%eax 107ce9: 0f 84 b2 00 00 00 je 107da1 <== ALWAYS TAKEN rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 107cef: a1 54 11 12 00 mov 0x121154,%eax status = mount( 107cf4: 83 ec 0c sub $0xc,%esp 107cf7: ff 70 0c pushl 0xc(%eax) 107cfa: ff 70 08 pushl 0x8(%eax) 107cfd: ff 70 04 pushl 0x4(%eax) 107d00: ff 30 pushl (%eax) 107d02: 8d 45 e4 lea -0x1c(%ebp),%eax 107d05: 50 push %eax 107d06: e8 35 07 00 00 call 108440 <== ALWAYS TAKEN &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 107d0b: 83 c4 20 add $0x20,%esp 107d0e: 40 inc %eax 107d0f: 0f 84 a6 00 00 00 je 107dbb <== ALWAYS TAKEN rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 107d15: 8b 3d f8 2f 12 00 mov 0x122ff8,%edi 107d1b: 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; 107d21: 83 c7 18 add $0x18,%edi 107d24: 8b 75 e4 mov -0x1c(%ebp),%esi 107d27: 83 c6 1c add $0x1c,%esi 107d2a: b9 05 00 00 00 mov $0x5,%ecx 107d2f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 107d31: 83 ec 0c sub $0xc,%esp 107d34: 6a 00 push $0x0 107d36: 8d 5d d0 lea -0x30(%ebp),%ebx 107d39: 53 push %ebx 107d3a: 6a 00 push $0x0 107d3c: 6a 01 push $0x1 107d3e: 68 27 f8 11 00 push $0x11f827 107d43: e8 e0 01 00 00 call 107f28 <== ALWAYS TAKEN rtems_filesystem_root = loc; 107d48: 8b 3d f8 2f 12 00 mov 0x122ff8,%edi 107d4e: 83 c7 18 add $0x18,%edi 107d51: b9 05 00 00 00 mov $0x5,%ecx 107d56: 89 de mov %ebx,%esi 107d58: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 107d5a: 83 c4 14 add $0x14,%esp 107d5d: 6a 00 push $0x0 107d5f: 53 push %ebx 107d60: 6a 00 push $0x0 107d62: 6a 01 push $0x1 107d64: 68 27 f8 11 00 push $0x11f827 107d69: e8 ba 01 00 00 call 107f28 <== ALWAYS TAKEN rtems_filesystem_current = loc; 107d6e: 8b 3d f8 2f 12 00 mov 0x122ff8,%edi 107d74: 83 c7 04 add $0x4,%edi 107d77: b9 05 00 00 00 mov $0x5,%ecx 107d7c: 89 de mov %ebx,%esi 107d7e: 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); 107d80: 83 c4 18 add $0x18,%esp 107d83: 68 ff 01 00 00 push $0x1ff 107d88: 68 29 f8 11 00 push $0x11f829 107d8d: e8 5a 05 00 00 call 1082ec <== ALWAYS TAKEN if ( status != 0 ) 107d92: 83 c4 10 add $0x10,%esp 107d95: 85 c0 test %eax,%eax 107d97: 75 15 jne 107dae <== 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. */ } 107d99: 8d 65 f4 lea -0xc(%ebp),%esp 107d9c: 5b pop %ebx 107d9d: 5e pop %esi 107d9e: 5f pop %edi 107d9f: c9 leave 107da0: c3 ret /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); 107da1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107da4: 68 01 00 cd ab push $0xabcd0001 <== NOT EXECUTED 107da9: e8 ea 3d 00 00 call 10bb98 <== NOT EXECUTED * created that way by the IMFS. */ status = mkdir( "/dev", 0777); if ( status != 0 ) rtems_fatal_error_occurred( 0xABCD0003 ); 107dae: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107db1: 68 03 00 cd ab push $0xabcd0003 <== NOT EXECUTED 107db6: e8 dd 3d 00 00 call 10bb98 <== NOT EXECUTED status = mount( &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); 107dbb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107dbe: 68 02 00 cd ab push $0xabcd0002 <== NOT EXECUTED 107dc3: e8 d0 3d 00 00 call 10bb98 <== NOT EXECUTED 001104a4 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 1104a4: 55 push %ebp <== NOT EXECUTED 1104a5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 1104a7: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 1104aa: 8b 10 mov (%eax),%edx <== NOT EXECUTED 1104ac: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 1104af: 3b 10 cmp (%eax),%edx <== NOT EXECUTED 1104b1: 0f 94 c0 sete %al <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 1104b4: c9 leave <== NOT EXECUTED 1104b5: c3 ret <== NOT EXECUTED 00107dc8 : int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) { 107dc8: 55 push %ebp 107dc9: 89 e5 mov %esp,%ebp 107dcb: 53 push %ebx 107dcc: 8b 4d 08 mov 0x8(%ebp),%ecx 107dcf: 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 ) ) 107dd2: 8a 11 mov (%ecx),%dl 107dd4: 84 d2 test %dl,%dl 107dd6: 74 27 je 107dff <== ALWAYS TAKEN 107dd8: 85 db test %ebx,%ebx 107dda: 74 23 je 107dff <== ALWAYS TAKEN 107ddc: 31 c0 xor %eax,%eax 107dde: 66 90 xchg %ax,%ax 107de0: 80 fa 2f cmp $0x2f,%dl 107de3: 74 0b je 107df0 107de5: 80 fa 5c cmp $0x5c,%dl 107de8: 74 06 je 107df0 <== ALWAYS TAKEN pathname++; pathnamelen--; stripped++; } return stripped; } 107dea: 5b pop %ebx 107deb: c9 leave 107dec: c3 ret 107ded: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) { pathname++; pathnamelen--; stripped++; 107df0: 40 inc %eax { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 107df1: 8a 14 01 mov (%ecx,%eax,1),%dl 107df4: 84 d2 test %dl,%dl 107df6: 74 f2 je 107dea <== ALWAYS TAKEN 107df8: 39 c3 cmp %eax,%ebx 107dfa: 75 e4 jne 107de0 <== NEVER TAKEN pathname++; pathnamelen--; stripped++; } return stripped; } 107dfc: 5b pop %ebx <== NOT EXECUTED 107dfd: c9 leave <== NOT EXECUTED 107dfe: c3 ret <== NOT EXECUTED { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 107dff: 31 c0 xor %eax,%eax 107e01: eb e7 jmp 107dea <== NOT EXECUTED 0010bac8 : #endif Objects_Information *_Internal_Objects[ OBJECTS_INTERNAL_CLASSES_LAST + 1 ]; void rtems_initialize_data_structures(void) { 10bac8: 55 push %ebp 10bac9: 89 e5 mov %esp,%ebp 10bacb: 83 ec 08 sub $0x8,%esp 10bace: c7 05 00 55 12 00 00 movl $0x0,0x125500 10bad5: 00 00 00 #endif /* * Initialize any target architecture specific support as early as possible */ _CPU_Initialize(); 10bad8: e8 43 2c 00 00 call 10e720 <_CPU_Initialize> /* * Do this as early as possible to ensure no debugging output * is even attempted to be printed. */ _Debug_Manager_initialization(); 10badd: e8 5a 44 00 00 call 10ff3c <_Debug_Manager_initialization> <== ALWAYS TAKEN _API_extensions_Initialization(); 10bae2: e8 d5 01 00 00 call 10bcbc <_API_extensions_Initialization> <== ALWAYS TAKEN * This routine initializes the thread dispatching subsystem. */ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_initialization( void ) { _Thread_Dispatch_disable_level = 1; 10bae7: c7 05 38 53 12 00 01 movl $0x1,0x125338 10baee: 00 00 00 /* * Before this is called, we are not allowed to allocate memory * from the Workspace because it is not initialized. */ _Workspace_Handler_initialization(); 10baf1: e8 0a 2a 00 00 call 10e500 <_Workspace_Handler_initialization> _User_extensions_Handler_initialization(); 10baf6: e8 01 25 00 00 call 10dffc <_User_extensions_Handler_initialization> _ISR_Handler_initialization(); 10bafb: e8 68 0b 00 00 call 10c668 <_ISR_Handler_initialization> <== ALWAYS TAKEN /* * Initialize the internal support API and allocator Mutex */ _Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects; 10bb00: c7 05 10 53 12 00 50 movl $0x125350,0x125310 10bb07: 53 12 00 _API_Mutex_Initialization( 1 ); 10bb0a: 83 ec 0c sub $0xc,%esp 10bb0d: 6a 01 push $0x1 10bb0f: e8 c4 02 00 00 call 10bdd8 <_API_Mutex_Initialization> <== ALWAYS TAKEN _API_Mutex_Allocate( &_RTEMS_Allocator_Mutex ); 10bb14: c7 04 24 f0 53 12 00 movl $0x1253f0,(%esp) 10bb1b: e8 3c 02 00 00 call 10bd5c <_API_Mutex_Allocate> <== ALWAYS TAKEN RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void ) { int index; _Priority_Major_bit_map = 0; 10bb20: 66 c7 05 ec 53 12 00 movw $0x0,0x1253ec 10bb27: 00 00 10bb29: 31 c0 xor %eax,%eax 10bb2b: 83 c4 10 add $0x10,%esp 10bb2e: 66 90 xchg %ax,%ax for ( index=0 ; index <16 ; index++ ) _Priority_Bit_map[ index ] = 0; 10bb30: 66 c7 84 00 80 54 12 movw $0x0,0x125480(%eax,%eax,1) 10bb37: 00 00 00 RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void ) { int index; _Priority_Major_bit_map = 0; for ( index=0 ; index <16 ; index++ ) 10bb3a: 40 inc %eax 10bb3b: 83 f8 10 cmp $0x10,%eax 10bb3e: 75 f0 jne 10bb30 _Priority_Handler_initialization(); _Watchdog_Handler_initialization(); 10bb40: e8 23 28 00 00 call 10e368 <_Watchdog_Handler_initialization> _TOD_Handler_initialization(); 10bb45: e8 0a 07 00 00 call 10c254 <_TOD_Handler_initialization> <== ALWAYS TAKEN _Thread_Handler_initialization(); 10bb4a: e8 45 1b 00 00 call 10d694 <_Thread_Handler_initialization> _MPCI_Handler_initialization( RTEMS_TIMEOUT ); #endif /* MANAGERS */ _RTEMS_API_Initialize(); 10bb4f: e8 20 01 00 00 call 10bc74 <_RTEMS_API_Initialize> <== ALWAYS TAKEN _Extension_Manager_initialization(); 10bb54: e8 17 00 00 00 call 10bb70 <_Extension_Manager_initialization> <== ALWAYS TAKEN _IO_Manager_initialization(); 10bb59: e8 7e 00 00 00 call 10bbdc <_IO_Manager_initialization> <== ALWAYS TAKEN 10bb5e: c7 05 00 55 12 00 01 movl $0x1,0x125500 10bb65: 00 00 00 _Thread_Create_idle(); /* * Scheduling can properly occur now as long as we avoid dispatching. */ } 10bb68: c9 leave * _Thread_Executing and _Thread_Heir are not set. * * At this point all API extensions are in place. After the call to * _Thread_Create_idle() _Thread_Executing and _Thread_Heir will be set. */ _Thread_Create_idle(); 10bb69: e9 1e 16 00 00 jmp 10d18c <_Thread_Create_idle> 0010bab4 : _API_extensions_Run_predriver(); #endif } void rtems_initialize_device_drivers(void) { 10bab4: 55 push %ebp 10bab5: 89 e5 mov %esp,%ebp 10bab7: 83 ec 08 sub $0x8,%esp * Initialize all the device drivers and initialize the MPCI layer. * * NOTE: The MPCI may be build upon a device driver. */ _IO_Initialize_all_drivers(); 10baba: e8 ed 00 00 00 call 10bbac <_IO_Initialize_all_drivers> <== ALWAYS TAKEN * Run the APIs and BSPs postdriver hooks. * * The API extensions are supposed to create user initialization tasks. */ _API_extensions_Run_postdriver(); } 10babf: c9 leave /* * Run the APIs and BSPs postdriver hooks. * * The API extensions are supposed to create user initialization tasks. */ _API_extensions_Run_postdriver(); 10bac0: e9 1b 02 00 00 jmp 10bce0 <_API_extensions_Run_postdriver> <== ALWAYS TAKEN 00111b34 : rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 111b34: 55 push %ebp 111b35: 89 e5 mov %esp,%ebp 111b37: 56 push %esi 111b38: 53 push %ebx 111b39: 8b 45 08 mov 0x8(%ebp),%eax 111b3c: 8b 4d 0c mov 0xc(%ebp),%ecx 111b3f: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111b42: 39 05 80 56 12 00 cmp %eax,0x125680 111b48: 76 22 jbe 111b6c return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; 111b4a: 8d 34 40 lea (%eax,%eax,2),%esi 111b4d: 8b 15 84 56 12 00 mov 0x125684,%edx 111b53: 8b 54 f2 08 mov 0x8(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 111b57: 85 d2 test %edx,%edx 111b59: 74 1d je 111b78 111b5b: 89 5d 10 mov %ebx,0x10(%ebp) 111b5e: 89 4d 0c mov %ecx,0xc(%ebp) 111b61: 89 45 08 mov %eax,0x8(%ebp) } 111b64: 5b pop %ebx 111b65: 5e pop %esi 111b66: 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; 111b67: ff e2 jmp *%edx 111b69: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111b6c: 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; } 111b71: 5b pop %ebx 111b72: 5e pop %esi 111b73: c9 leave 111b74: c3 ret 111b75: 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; 111b78: 31 c0 xor %eax,%eax } 111b7a: 5b pop %ebx 111b7b: 5e pop %esi 111b7c: c9 leave 111b7d: c3 ret 00111b80 : rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 111b80: 55 push %ebp 111b81: 89 e5 mov %esp,%ebp 111b83: 56 push %esi 111b84: 53 push %ebx 111b85: 8b 45 08 mov 0x8(%ebp),%eax 111b88: 8b 4d 0c mov 0xc(%ebp),%ecx 111b8b: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111b8e: 39 05 80 56 12 00 cmp %eax,0x125680 111b94: 76 22 jbe 111bb8 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; 111b96: 8d 34 40 lea (%eax,%eax,2),%esi 111b99: 8b 15 84 56 12 00 mov 0x125684,%edx 111b9f: 8b 54 f2 14 mov 0x14(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 111ba3: 85 d2 test %edx,%edx 111ba5: 74 1d je 111bc4 111ba7: 89 5d 10 mov %ebx,0x10(%ebp) 111baa: 89 4d 0c mov %ecx,0xc(%ebp) 111bad: 89 45 08 mov %eax,0x8(%ebp) } 111bb0: 5b pop %ebx 111bb1: 5e pop %esi 111bb2: 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; 111bb3: ff e2 jmp *%edx 111bb5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111bb8: 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; } 111bbd: 5b pop %ebx 111bbe: 5e pop %esi 111bbf: c9 leave 111bc0: c3 ret 111bc1: 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; 111bc4: 31 c0 xor %eax,%eax } 111bc6: 5b pop %ebx 111bc7: 5e pop %esi 111bc8: c9 leave 111bc9: c3 ret 0010ff80 : rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 10ff80: 55 push %ebp 10ff81: 89 e5 mov %esp,%ebp 10ff83: 56 push %esi 10ff84: 53 push %ebx 10ff85: 8b 45 08 mov 0x8(%ebp),%eax 10ff88: 8b 4d 0c mov 0xc(%ebp),%ecx 10ff8b: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 10ff8e: 39 05 80 56 12 00 cmp %eax,0x125680 10ff94: 76 1e jbe 10ffb4 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].initialization_entry; 10ff96: 8d 34 40 lea (%eax,%eax,2),%esi 10ff99: 8b 15 84 56 12 00 mov 0x125684,%edx 10ff9f: 8b 14 f2 mov (%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 10ffa2: 85 d2 test %edx,%edx 10ffa4: 74 1a je 10ffc0 10ffa6: 89 5d 10 mov %ebx,0x10(%ebp) 10ffa9: 89 4d 0c mov %ecx,0xc(%ebp) 10ffac: 89 45 08 mov %eax,0x8(%ebp) } 10ffaf: 5b pop %ebx 10ffb0: 5e pop %esi 10ffb1: 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; 10ffb2: ff e2 jmp *%edx void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 10ffb4: 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; } 10ffb9: 5b pop %ebx 10ffba: 5e pop %esi 10ffbb: c9 leave 10ffbc: c3 ret 10ffbd: 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; 10ffc0: 31 c0 xor %eax,%eax } 10ffc2: 5b pop %ebx 10ffc3: 5e pop %esi 10ffc4: c9 leave 10ffc5: c3 ret 00107b5c : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 107b5c: 55 push %ebp <== NOT EXECUTED 107b5d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 107b5f: 57 push %edi <== NOT EXECUTED 107b60: 56 push %esi <== NOT EXECUTED 107b61: 53 push %ebx <== NOT EXECUTED 107b62: 83 ec 48 sub $0x48,%esp <== NOT EXECUTED 107b65: 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 ); 107b68: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 107b6d: 89 f7 mov %esi,%edi <== NOT EXECUTED 107b6f: 31 c0 xor %eax,%eax <== NOT EXECUTED 107b71: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 107b73: f7 d1 not %ecx <== NOT EXECUTED 107b75: 49 dec %ecx <== NOT EXECUTED 107b76: 6a 01 push $0x1 <== NOT EXECUTED 107b78: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED 107b7b: 53 push %ebx <== NOT EXECUTED 107b7c: 6a 00 push $0x0 <== NOT EXECUTED 107b7e: 51 push %ecx <== NOT EXECUTED 107b7f: 56 push %esi <== NOT EXECUTED 107b80: e8 a3 03 00 00 call 107f28 <== NOT EXECUTED 107b85: 89 c7 mov %eax,%edi <== NOT EXECUTED the_jnode = loc.node_access; 107b87: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED if ( !loc.ops->node_type_h ) { 107b8a: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 107b8d: 8b 41 10 mov 0x10(%ecx),%eax <== NOT EXECUTED 107b90: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 107b93: 85 c0 test %eax,%eax <== NOT EXECUTED 107b95: 74 41 je 107bd8 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } node_type = (*loc.ops->node_type_h)( &loc ); 107b97: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107b9a: 53 push %ebx <== NOT EXECUTED 107b9b: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED 107b9e: ff d0 call *%eax <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 107ba0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 107ba3: 85 ff test %edi,%edi <== NOT EXECUTED 107ba5: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED 107ba8: 74 56 je 107c00 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 107baa: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 107bad: 85 c0 test %eax,%eax <== NOT EXECUTED 107baf: 0f 84 93 00 00 00 je 107c48 <== NOT EXECUTED 107bb5: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 107bb8: 85 c0 test %eax,%eax <== NOT EXECUTED 107bba: 0f 84 88 00 00 00 je 107c48 <== NOT EXECUTED 107bc0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107bc3: 53 push %ebx <== NOT EXECUTED 107bc4: ff d0 call *%eax <== NOT EXECUTED 107bc6: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED 107bcb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); return RTEMS_SUCCESSFUL; } 107bce: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 107bd1: 5b pop %ebx <== NOT EXECUTED 107bd2: 5e pop %esi <== NOT EXECUTED 107bd3: 5f pop %edi <== NOT EXECUTED 107bd4: c9 leave <== NOT EXECUTED 107bd5: c3 ret <== NOT EXECUTED 107bd6: 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 ); 107bd8: 8b 41 1c mov 0x1c(%ecx),%eax <== NOT EXECUTED 107bdb: 85 c0 test %eax,%eax <== NOT EXECUTED 107bdd: 74 09 je 107be8 <== NOT EXECUTED 107bdf: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107be2: 53 push %ebx <== NOT EXECUTED 107be3: ff d0 call *%eax <== NOT EXECUTED 107be5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 107be8: e8 b3 a7 00 00 call 1123a0 <__errno> <== NOT EXECUTED 107bed: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 107bf3: 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; } 107bf8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 107bfb: 5b pop %ebx <== NOT EXECUTED 107bfc: 5e pop %esi <== NOT EXECUTED 107bfd: 5f pop %edi <== NOT EXECUTED 107bfe: c9 leave <== NOT EXECUTED 107bff: 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 ) { 107c00: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED 107c03: 75 a5 jne 107baa <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; 107c05: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 107c08: 89 31 mov %esi,(%ecx) <== NOT EXECUTED device_info->device_name_length = strlen( name ); 107c0a: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 107c0f: 89 f7 mov %esi,%edi <== NOT EXECUTED 107c11: 31 c0 xor %eax,%eax <== NOT EXECUTED 107c13: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 107c15: f7 d1 not %ecx <== NOT EXECUTED 107c17: 49 dec %ecx <== NOT EXECUTED 107c18: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 107c1b: 89 48 04 mov %ecx,0x4(%eax) <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 107c1e: 8b 42 50 mov 0x50(%edx),%eax <== NOT EXECUTED 107c21: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 107c24: 89 41 08 mov %eax,0x8(%ecx) <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 107c27: 8b 42 54 mov 0x54(%edx),%eax <== NOT EXECUTED 107c2a: 89 41 0c mov %eax,0xc(%ecx) <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 107c2d: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 107c30: 85 c0 test %eax,%eax <== NOT EXECUTED 107c32: 74 21 je 107c55 <== NOT EXECUTED 107c34: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 107c37: 85 c0 test %eax,%eax <== NOT EXECUTED 107c39: 74 1a je 107c55 <== NOT EXECUTED 107c3b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107c3e: 53 push %ebx <== NOT EXECUTED 107c3f: ff d0 call *%eax <== NOT EXECUTED 107c41: 31 c0 xor %eax,%eax <== NOT EXECUTED 107c43: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 107c46: eb 86 jmp 107bce <== NOT EXECUTED 107c48: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 107c4d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 107c50: 5b pop %ebx <== NOT EXECUTED 107c51: 5e pop %esi <== NOT EXECUTED 107c52: 5f pop %edi <== NOT EXECUTED 107c53: c9 leave <== NOT EXECUTED 107c54: 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 ); 107c55: 31 c0 xor %eax,%eax <== NOT EXECUTED 107c57: e9 72 ff ff ff jmp 107bce <== NOT EXECUTED 00111bcc : rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 111bcc: 55 push %ebp 111bcd: 89 e5 mov %esp,%ebp 111bcf: 56 push %esi 111bd0: 53 push %ebx 111bd1: 8b 45 08 mov 0x8(%ebp),%eax 111bd4: 8b 4d 0c mov 0xc(%ebp),%ecx 111bd7: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111bda: 39 05 80 56 12 00 cmp %eax,0x125680 111be0: 76 22 jbe 111c04 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; 111be2: 8d 34 40 lea (%eax,%eax,2),%esi 111be5: 8b 15 84 56 12 00 mov 0x125684,%edx 111beb: 8b 54 f2 04 mov 0x4(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 111bef: 85 d2 test %edx,%edx 111bf1: 74 1d je 111c10 111bf3: 89 5d 10 mov %ebx,0x10(%ebp) 111bf6: 89 4d 0c mov %ecx,0xc(%ebp) 111bf9: 89 45 08 mov %eax,0x8(%ebp) } 111bfc: 5b pop %ebx 111bfd: 5e pop %esi 111bfe: 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; 111bff: ff e2 jmp *%edx 111c01: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111c04: 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; } 111c09: 5b pop %ebx 111c0a: 5e pop %esi 111c0b: c9 leave 111c0c: c3 ret 111c0d: 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; 111c10: 31 c0 xor %eax,%eax } 111c12: 5b pop %ebx 111c13: 5e pop %esi 111c14: c9 leave 111c15: c3 ret 00111c18 : rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 111c18: 55 push %ebp 111c19: 89 e5 mov %esp,%ebp 111c1b: 56 push %esi 111c1c: 53 push %ebx 111c1d: 8b 45 08 mov 0x8(%ebp),%eax 111c20: 8b 4d 0c mov 0xc(%ebp),%ecx 111c23: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111c26: 39 05 80 56 12 00 cmp %eax,0x125680 111c2c: 76 22 jbe 111c50 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; 111c2e: 8d 34 40 lea (%eax,%eax,2),%esi 111c31: 8b 15 84 56 12 00 mov 0x125684,%edx 111c37: 8b 54 f2 0c mov 0xc(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 111c3b: 85 d2 test %edx,%edx 111c3d: 74 1d je 111c5c 111c3f: 89 5d 10 mov %ebx,0x10(%ebp) 111c42: 89 4d 0c mov %ecx,0xc(%ebp) 111c45: 89 45 08 mov %eax,0x8(%ebp) } 111c48: 5b pop %ebx 111c49: 5e pop %esi 111c4a: 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; 111c4b: ff e2 jmp *%edx 111c4d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111c50: 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; } 111c55: 5b pop %ebx 111c56: 5e pop %esi 111c57: c9 leave 111c58: c3 ret 111c59: 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; 111c5c: 31 c0 xor %eax,%eax } 111c5e: 5b pop %ebx 111c5f: 5e pop %esi 111c60: c9 leave 111c61: c3 ret 0010d38c : 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 ) { 10d38c: 55 push %ebp 10d38d: 89 e5 mov %esp,%ebp 10d38f: 57 push %edi 10d390: 56 push %esi 10d391: 53 push %ebx 10d392: 83 ec 0c sub $0xc,%esp 10d395: 8b 5d 08 mov 0x8(%ebp),%ebx 10d398: 8b 75 0c mov 0xc(%ebp),%esi 10d39b: 8b 55 10 mov 0x10(%ebp),%edx rtems_device_major_number major_limit = _IO_Number_of_drivers; 10d39e: a1 a0 b8 12 00 mov 0x12b8a0,%eax if ( rtems_interrupt_is_in_progress() ) 10d3a3: 8b 0d 94 b5 12 00 mov 0x12b594,%ecx 10d3a9: 85 c9 test %ecx,%ecx 10d3ab: 0f 85 ab 00 00 00 jne 10d45c return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) 10d3b1: 85 d2 test %edx,%edx 10d3b3: 0f 84 e3 00 00 00 je 10d49c return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; 10d3b9: 89 02 mov %eax,(%edx) if ( driver_table == NULL ) 10d3bb: 85 f6 test %esi,%esi 10d3bd: 0f 84 d9 00 00 00 je 10d49c static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 10d3c3: 8b 3e mov (%esi),%edi 10d3c5: 85 ff test %edi,%edi 10d3c7: 0f 84 c3 00 00 00 je 10d490 return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) 10d3cd: 39 d8 cmp %ebx,%eax 10d3cf: 76 7b jbe 10d44c rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10d3d1: a1 f8 b4 12 00 mov 0x12b4f8,%eax 10d3d6: 40 inc %eax 10d3d7: a3 f8 b4 12 00 mov %eax,0x12b4f8 return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { 10d3dc: 85 db test %ebx,%ebx 10d3de: 0f 85 88 00 00 00 jne 10d46c static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; 10d3e4: 8b 0d a0 b8 12 00 mov 0x12b8a0,%ecx rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { 10d3ea: 85 c9 test %ecx,%ecx 10d3ec: 0f 84 b7 00 00 00 je 10d4a9 <== ALWAYS TAKEN 10d3f2: 8b 3d a4 b8 12 00 mov 0x12b8a4,%edi 10d3f8: 89 f8 mov %edi,%eax 10d3fa: eb 08 jmp 10d404 <== ALWAYS TAKEN 10d3fc: 43 inc %ebx 10d3fd: 83 c0 18 add $0x18,%eax 10d400: 39 d9 cmp %ebx,%ecx 10d402: 76 0b jbe 10d40f static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 10d404: 83 38 00 cmpl $0x0,(%eax) 10d407: 75 f3 jne 10d3fc 10d409: 83 78 04 00 cmpl $0x0,0x4(%eax) 10d40d: 75 ed jne 10d3fc if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 10d40f: 89 1a mov %ebx,(%edx) if ( m != n ) 10d411: 39 d9 cmp %ebx,%ecx 10d413: 0f 84 97 00 00 00 je 10d4b0 10d419: 8d 04 5b lea (%ebx,%ebx,2),%eax 10d41c: 8d 04 c7 lea (%edi,%eax,8),%eax } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 10d41f: b9 06 00 00 00 mov $0x6,%ecx 10d424: 89 c7 mov %eax,%edi 10d426: f3 a5 rep movsl %ds:(%esi),%es:(%edi) _Thread_Enable_dispatch(); 10d428: e8 37 19 00 00 call 10ed64 <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); 10d42d: c7 45 10 00 00 00 00 movl $0x0,0x10(%ebp) 10d434: c7 45 0c 00 00 00 00 movl $0x0,0xc(%ebp) 10d43b: 89 5d 08 mov %ebx,0x8(%ebp) } 10d43e: 83 c4 0c add $0xc,%esp 10d441: 5b pop %ebx 10d442: 5e pop %esi 10d443: 5f pop %edi 10d444: c9 leave _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 10d445: e9 ee 7a 00 00 jmp 114f38 <== ALWAYS TAKEN 10d44a: 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 ) 10d44c: 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 ); } 10d451: 83 c4 0c add $0xc,%esp 10d454: 5b pop %ebx 10d455: 5e pop %esi 10d456: 5f pop %edi 10d457: c9 leave 10d458: c3 ret 10d459: 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() ) 10d45c: 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 ); } 10d461: 83 c4 0c add $0xc,%esp 10d464: 5b pop %ebx 10d465: 5e pop %esi 10d466: 5f pop %edi 10d467: c9 leave 10d468: c3 ret 10d469: 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; 10d46c: 8d 04 5b lea (%ebx,%ebx,2),%eax 10d46f: c1 e0 03 shl $0x3,%eax 10d472: 03 05 a4 b8 12 00 add 0x12b8a4,%eax static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 10d478: 8b 38 mov (%eax),%edi 10d47a: 85 ff test %edi,%edi 10d47c: 74 3e je 10d4bc 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(); 10d47e: e8 e1 18 00 00 call 10ed64 <_Thread_Enable_dispatch> 10d483: 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 ); } 10d488: 83 c4 0c add $0xc,%esp 10d48b: 5b pop %ebx 10d48c: 5e pop %esi 10d48d: 5f pop %edi 10d48e: c9 leave 10d48f: 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; 10d490: 8b 4e 04 mov 0x4(%esi),%ecx 10d493: 85 c9 test %ecx,%ecx 10d495: 0f 85 32 ff ff ff jne 10d3cd 10d49b: 90 nop _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 10d49c: b8 09 00 00 00 mov $0x9,%eax } 10d4a1: 83 c4 0c add $0xc,%esp 10d4a4: 5b pop %ebx 10d4a5: 5e pop %esi 10d4a6: 5f pop %edi 10d4a7: c9 leave 10d4a8: c3 ret if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 10d4a9: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED 10d4af: 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(); 10d4b0: e8 af 18 00 00 call 10ed64 <_Thread_Enable_dispatch> 10d4b5: b8 05 00 00 00 mov $0x5,%eax return sc; 10d4ba: eb 95 jmp 10d451 <== ALWAYS TAKEN static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 10d4bc: 8b 48 04 mov 0x4(%eax),%ecx 10d4bf: 85 c9 test %ecx,%ecx 10d4c1: 75 bb jne 10d47e if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; 10d4c3: 89 1a mov %ebx,(%edx) 10d4c5: e9 55 ff ff ff jmp 10d41f <== ALWAYS TAKEN 00107c5c : rtems_status_code rtems_io_register_name( const char *device_name, rtems_device_major_number major, rtems_device_minor_number minor ) { 107c5c: 55 push %ebp 107c5d: 89 e5 mov %esp,%ebp 107c5f: 83 ec 08 sub $0x8,%esp rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 107c62: 8b 45 0c mov 0xc(%ebp),%eax temp.__overlay.minor = _minor; 107c65: 8b 55 10 mov 0x10(%ebp),%edx int status; dev_t dev; dev = rtems_filesystem_make_dev_t( major, minor ); status = mknod( device_name, 0777 | S_IFCHR, dev ); 107c68: 52 push %edx 107c69: 50 push %eax 107c6a: 68 ff 21 00 00 push $0x21ff 107c6f: ff 75 08 pushl 0x8(%ebp) 107c72: e8 91 06 00 00 call 108308 <== ALWAYS TAKEN /* this is the only error returned by the old version */ if ( status ) 107c77: 83 c4 10 add $0x10,%esp 107c7a: 83 f8 01 cmp $0x1,%eax 107c7d: 19 c0 sbb %eax,%eax 107c7f: f7 d0 not %eax 107c81: 83 e0 05 and $0x5,%eax return RTEMS_TOO_MANY; return RTEMS_SUCCESSFUL; } 107c84: c9 leave 107c85: c3 ret 0010d4cc : */ rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { 10d4cc: 55 push %ebp 10d4cd: 89 e5 mov %esp,%ebp 10d4cf: 57 push %edi 10d4d0: 83 ec 04 sub $0x4,%esp 10d4d3: 8b 45 08 mov 0x8(%ebp),%eax if ( rtems_interrupt_is_in_progress() ) 10d4d6: 8b 15 94 b5 12 00 mov 0x12b594,%edx 10d4dc: 85 d2 test %edx,%edx 10d4de: 75 44 jne 10d524 return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { 10d4e0: 39 05 a0 b8 12 00 cmp %eax,0x12b8a0 10d4e6: 77 0c ja 10d4f4 10d4e8: b8 0d 00 00 00 mov $0xd,%eax return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } 10d4ed: 5a pop %edx 10d4ee: 5f pop %edi 10d4ef: c9 leave 10d4f0: c3 ret 10d4f1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10d4f4: 8b 15 f8 b4 12 00 mov 0x12b4f8,%edx 10d4fa: 42 inc %edx 10d4fb: 89 15 f8 b4 12 00 mov %edx,0x12b4f8 if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { _Thread_Disable_dispatch(); memset( 10d501: 8d 14 40 lea (%eax,%eax,2),%edx 10d504: c1 e2 03 shl $0x3,%edx 10d507: 03 15 a4 b8 12 00 add 0x12b8a4,%edx 10d50d: b9 18 00 00 00 mov $0x18,%ecx 10d512: 31 c0 xor %eax,%eax 10d514: 89 d7 mov %edx,%edi 10d516: f3 aa rep stos %al,%es:(%edi) &_IO_Driver_address_table[major], 0, sizeof( rtems_driver_address_table ) ); _Thread_Enable_dispatch(); 10d518: e8 47 18 00 00 call 10ed64 <_Thread_Enable_dispatch> 10d51d: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } 10d51f: 5a pop %edx 10d520: 5f pop %edi 10d521: c9 leave 10d522: c3 ret 10d523: 90 nop <== NOT EXECUTED rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { if ( rtems_interrupt_is_in_progress() ) 10d524: b8 12 00 00 00 mov $0x12,%eax return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } 10d529: 5a pop %edx 10d52a: 5f pop %edi 10d52b: c9 leave 10d52c: c3 ret 00111c64 : rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 111c64: 55 push %ebp 111c65: 89 e5 mov %esp,%ebp 111c67: 56 push %esi 111c68: 53 push %ebx 111c69: 8b 45 08 mov 0x8(%ebp),%eax 111c6c: 8b 4d 0c mov 0xc(%ebp),%ecx 111c6f: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111c72: 39 05 80 56 12 00 cmp %eax,0x125680 111c78: 76 22 jbe 111c9c return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; 111c7a: 8d 34 40 lea (%eax,%eax,2),%esi 111c7d: 8b 15 84 56 12 00 mov 0x125684,%edx 111c83: 8b 54 f2 10 mov 0x10(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 111c87: 85 d2 test %edx,%edx 111c89: 74 1d je 111ca8 111c8b: 89 5d 10 mov %ebx,0x10(%ebp) 111c8e: 89 4d 0c mov %ecx,0xc(%ebp) 111c91: 89 45 08 mov %eax,0x8(%ebp) } 111c94: 5b pop %ebx 111c95: 5e pop %esi 111c96: 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; 111c97: ff e2 jmp *%edx 111c99: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111c9c: 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; } 111ca1: 5b pop %ebx 111ca2: 5e pop %esi 111ca3: c9 leave 111ca4: c3 ret 111ca5: 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; 111ca8: 31 c0 xor %eax,%eax } 111caa: 5b pop %ebx 111cab: 5e pop %esi 111cac: c9 leave 111cad: c3 ret 0010dca0 : #include #include void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) { 10dca0: 55 push %ebp 10dca1: 89 e5 mov %esp,%ebp 10dca3: 57 push %edi 10dca4: 56 push %esi 10dca5: 53 push %ebx 10dca6: 83 ec 1c sub $0x1c,%esp 10dca9: 8b 7d 08 mov 0x8(%ebp),%edi uint32_t i; uint32_t api_index; Thread_Control *the_thread; Objects_Information *information; if ( !routine ) 10dcac: 85 ff test %edi,%edi 10dcae: 74 4d je 10dcfd <== ALWAYS TAKEN 10dcb0: 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 ] ) 10dcb7: 8b 55 e4 mov -0x1c(%ebp),%edx 10dcba: 8b 04 95 4c 01 13 00 mov 0x13014c(,%edx,4),%eax 10dcc1: 85 c0 test %eax,%eax 10dcc3: 74 2f je 10dcf4 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 10dcc5: 8b 70 04 mov 0x4(%eax),%esi if ( !information ) 10dcc8: 85 f6 test %esi,%esi 10dcca: 74 28 je 10dcf4 continue; for ( i=1 ; i <= information->maximum ; i++ ) { 10dccc: 66 83 7e 10 00 cmpw $0x0,0x10(%esi) 10dcd1: 74 21 je 10dcf4 <== ALWAYS TAKEN 10dcd3: bb 01 00 00 00 mov $0x1,%ebx the_thread = (Thread_Control *)information->local_table[ i ]; 10dcd8: 8b 46 1c mov 0x1c(%esi),%eax 10dcdb: 8b 04 98 mov (%eax,%ebx,4),%eax if ( !the_thread ) 10dcde: 85 c0 test %eax,%eax 10dce0: 74 09 je 10dceb <== ALWAYS TAKEN continue; (*routine)(the_thread); 10dce2: 83 ec 0c sub $0xc,%esp 10dce5: 50 push %eax 10dce6: ff d7 call *%edi 10dce8: 83 c4 10 add $0x10,%esp information = _Objects_Information_table[ api_index ][ 1 ]; if ( !information ) continue; for ( i=1 ; i <= information->maximum ; i++ ) { 10dceb: 43 inc %ebx 10dcec: 0f b7 46 10 movzwl 0x10(%esi),%eax 10dcf0: 39 d8 cmp %ebx,%eax 10dcf2: 73 e4 jae 10dcd8 Objects_Information *information; if ( !routine ) return; for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { 10dcf4: ff 45 e4 incl -0x1c(%ebp) 10dcf7: 83 7d e4 05 cmpl $0x5,-0x1c(%ebp) 10dcfb: 75 ba jne 10dcb7 (*routine)(the_thread); } } } 10dcfd: 8d 65 f4 lea -0xc(%ebp),%esp 10dd00: 5b pop %ebx 10dd01: 5e pop %esi 10dd02: 5f pop %edi 10dd03: c9 leave 10dd04: c3 ret 0010fa88 : * 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 ) { 10fa88: 55 push %ebp 10fa89: 89 e5 mov %esp,%ebp 10fa8b: 57 push %edi 10fa8c: 53 push %ebx 10fa8d: 83 ec 14 sub $0x14,%esp rtems_libio_t *iop, *next; rtems_status_code rc; rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 10fa90: 6a 00 push $0x0 10fa92: 6a 00 push $0x0 10fa94: ff 35 a8 51 12 00 pushl 0x1251a8 10fa9a: e8 c1 ba ff ff call 10b560 if (rtems_libio_iop_freelist) { 10fa9f: a1 a4 51 12 00 mov 0x1251a4,%eax 10faa4: 83 c4 10 add $0x10,%esp 10faa7: 85 c0 test %eax,%eax 10faa9: 75 19 jne 10fac4 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; 10faab: 31 db xor %ebx,%ebx failed: iop = 0; done: rtems_semaphore_release( rtems_libio_semaphore ); 10faad: 83 ec 0c sub $0xc,%esp 10fab0: ff 35 a8 51 12 00 pushl 0x1251a8 10fab6: e8 a1 bb ff ff call 10b65c return iop; } 10fabb: 89 d8 mov %ebx,%eax 10fabd: 8d 65 f8 lea -0x8(%ebp),%esp 10fac0: 5b pop %ebx 10fac1: 5f pop %edi 10fac2: c9 leave 10fac3: c3 ret rtems_id sema; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); if (rtems_libio_iop_freelist) { rc = rtems_semaphore_create( 10fac4: 83 ec 0c sub $0xc,%esp 10fac7: 8d 55 f4 lea -0xc(%ebp),%edx 10faca: 52 push %edx 10facb: 6a 00 push $0x0 10facd: 6a 54 push $0x54 10facf: 6a 01 push $0x1 10fad1: 2b 05 a0 51 12 00 sub 0x1251a0,%eax 10fad7: c1 f8 06 sar $0x6,%eax 10fada: 0d 00 49 42 4c or $0x4c424900,%eax 10fadf: 50 push %eax 10fae0: e8 03 b8 ff ff call 10b2e8 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &sema ); if (rc != RTEMS_SUCCESSFUL) 10fae5: 83 c4 20 add $0x20,%esp 10fae8: 85 c0 test %eax,%eax 10faea: 75 bf jne 10faab <== ALWAYS TAKEN goto failed; iop = rtems_libio_iop_freelist; 10faec: 8b 1d a4 51 12 00 mov 0x1251a4,%ebx next = iop->data1; 10faf2: 8b 53 34 mov 0x34(%ebx),%edx (void) memset( iop, 0, sizeof(rtems_libio_t) ); 10faf5: b9 40 00 00 00 mov $0x40,%ecx 10fafa: 89 df mov %ebx,%edi 10fafc: f3 aa rep stos %al,%es:(%edi) iop->flags = LIBIO_FLAGS_OPEN; 10fafe: c7 43 14 00 01 00 00 movl $0x100,0x14(%ebx) iop->sem = sema; 10fb05: 8b 45 f4 mov -0xc(%ebp),%eax 10fb08: 89 43 2c mov %eax,0x2c(%ebx) rtems_libio_iop_freelist = next; 10fb0b: 89 15 a4 51 12 00 mov %edx,0x1251a4 goto done; 10fb11: eb 9a jmp 10faad <== ALWAYS TAKEN 0010fa30 : */ void rtems_libio_free( rtems_libio_t *iop ) { 10fa30: 55 push %ebp 10fa31: 89 e5 mov %esp,%ebp 10fa33: 53 push %ebx 10fa34: 83 ec 08 sub $0x8,%esp 10fa37: 8b 5d 08 mov 0x8(%ebp),%ebx rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 10fa3a: 6a 00 push $0x0 10fa3c: 6a 00 push $0x0 10fa3e: ff 35 a8 51 12 00 pushl 0x1251a8 10fa44: e8 17 bb ff ff call 10b560 if (iop->sem) 10fa49: 8b 43 2c mov 0x2c(%ebx),%eax 10fa4c: 83 c4 10 add $0x10,%esp 10fa4f: 85 c0 test %eax,%eax 10fa51: 74 0c je 10fa5f <== ALWAYS TAKEN rtems_semaphore_delete(iop->sem); 10fa53: 83 ec 0c sub $0xc,%esp 10fa56: 50 push %eax 10fa57: e8 60 ba ff ff call 10b4bc 10fa5c: 83 c4 10 add $0x10,%esp iop->flags &= ~LIBIO_FLAGS_OPEN; 10fa5f: 81 63 14 ff fe ff ff andl $0xfffffeff,0x14(%ebx) iop->data1 = rtems_libio_iop_freelist; 10fa66: a1 a4 51 12 00 mov 0x1251a4,%eax 10fa6b: 89 43 34 mov %eax,0x34(%ebx) rtems_libio_iop_freelist = iop; 10fa6e: 89 1d a4 51 12 00 mov %ebx,0x1251a4 rtems_semaphore_release(rtems_libio_semaphore); 10fa74: a1 a8 51 12 00 mov 0x1251a8,%eax 10fa79: 89 45 08 mov %eax,0x8(%ebp) } 10fa7c: 8b 5d fc mov -0x4(%ebp),%ebx 10fa7f: c9 leave iop->flags &= ~LIBIO_FLAGS_OPEN; iop->data1 = rtems_libio_iop_freelist; rtems_libio_iop_freelist = iop; rtems_semaphore_release(rtems_libio_semaphore); 10fa80: e9 d7 bb ff ff jmp 10b65c 00108058 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 108058: 55 push %ebp 108059: 89 e5 mov %esp,%ebp 10805b: 53 push %ebx 10805c: 83 ec 04 sub $0x4,%esp rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 10805f: a1 4c 11 12 00 mov 0x12114c,%eax 108064: 85 c0 test %eax,%eax 108066: 74 4d je 1080b5 <== ALWAYS TAKEN { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 108068: 83 ec 08 sub $0x8,%esp 10806b: 6a 40 push $0x40 10806d: 50 push %eax 10806e: e8 a1 76 00 00 call 10f714 <== ALWAYS TAKEN 108073: 89 c2 mov %eax,%edx 108075: a3 a0 51 12 00 mov %eax,0x1251a0 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 10807a: 83 c4 10 add $0x10,%esp 10807d: 85 c0 test %eax,%eax 10807f: 74 71 je 1080f2 <== ALWAYS TAKEN rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; 108081: a3 a4 51 12 00 mov %eax,0x1251a4 for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 108086: 8b 1d 4c 11 12 00 mov 0x12114c,%ebx 10808c: 83 fb 01 cmp $0x1,%ebx 10808f: 76 1d jbe 1080ae <== ALWAYS TAKEN 108091: 8d 50 40 lea 0x40(%eax),%edx 108094: b9 01 00 00 00 mov $0x1,%ecx 108099: 8d 76 00 lea 0x0(%esi),%esi iop->data1 = iop + 1; 10809c: 89 52 f4 mov %edx,-0xc(%edx) 10809f: 83 c2 40 add $0x40,%edx 1080a2: 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++) 1080a3: 39 d9 cmp %ebx,%ecx 1080a5: 75 f5 jne 10809c 1080a7: c1 e1 06 shl $0x6,%ecx 1080aa: 8d 54 01 c0 lea -0x40(%ecx,%eax,1),%edx iop->data1 = iop + 1; iop->data1 = NULL; 1080ae: 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( 1080b5: 83 ec 0c sub $0xc,%esp 1080b8: 68 a8 51 12 00 push $0x1251a8 1080bd: 6a 00 push $0x0 1080bf: 6a 54 push $0x54 1080c1: 6a 01 push $0x1 1080c3: 68 4f 49 42 4c push $0x4c42494f 1080c8: e8 1b 32 00 00 call 10b2e8 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 1080cd: 83 c4 20 add $0x20,%esp 1080d0: 85 c0 test %eax,%eax 1080d2: 75 15 jne 1080e9 <== ALWAYS TAKEN /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) 1080d4: a1 48 11 12 00 mov 0x121148,%eax 1080d9: 85 c0 test %eax,%eax 1080db: 74 07 je 1080e4 <== ALWAYS TAKEN (* rtems_fs_init_helper)(); } 1080dd: 8b 5d fc mov -0x4(%ebp),%ebx 1080e0: c9 leave /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) (* rtems_fs_init_helper)(); 1080e1: ff e0 jmp *%eax 1080e3: 90 nop <== NOT EXECUTED } 1080e4: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 1080e7: c9 leave <== NOT EXECUTED 1080e8: 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 ); 1080e9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1080ec: 50 push %eax <== NOT EXECUTED 1080ed: e8 a6 3a 00 00 call 10bb98 <== 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); 1080f2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1080f5: 6a 1a push $0x1a <== NOT EXECUTED 1080f7: e8 9c 3a 00 00 call 10bb98 <== NOT EXECUTED 0010f968 : */ int rtems_libio_is_file_open( void *node_access ) { 10f968: 55 push %ebp 10f969: 89 e5 mov %esp,%ebp 10f96b: 53 push %ebx 10f96c: 83 ec 08 sub $0x8,%esp 10f96f: 8b 5d 08 mov 0x8(%ebp),%ebx rtems_libio_t *iop; int result=0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 10f972: 6a 00 push $0x0 10f974: 6a 00 push $0x0 10f976: ff 35 a8 51 12 00 pushl 0x1251a8 10f97c: e8 df bb ff ff call 10b560 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 10f981: a1 a0 51 12 00 mov 0x1251a0,%eax 10f986: 8b 0d 4c 11 12 00 mov 0x12114c,%ecx 10f98c: 83 c4 10 add $0x10,%esp 10f98f: 85 c9 test %ecx,%ecx 10f991: 74 18 je 10f9ab <== ALWAYS TAKEN 10f993: 31 d2 xor %edx,%edx 10f995: eb 04 jmp 10f99b <== ALWAYS TAKEN 10f997: 90 nop <== NOT EXECUTED 10f998: 83 c0 40 add $0x40,%eax if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 10f99b: f6 40 15 01 testb $0x1,0x15(%eax) 10f99f: 74 05 je 10f9a6 /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { 10f9a1: 39 58 18 cmp %ebx,0x18(%eax) 10f9a4: 74 1e je 10f9c4 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 10f9a6: 42 inc %edx 10f9a7: 39 ca cmp %ecx,%edx 10f9a9: 72 ed jb 10f998 10f9ab: 31 db xor %ebx,%ebx break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 10f9ad: 83 ec 0c sub $0xc,%esp 10f9b0: ff 35 a8 51 12 00 pushl 0x1251a8 10f9b6: e8 a1 bc ff ff call 10b65c return result; } 10f9bb: 89 d8 mov %ebx,%eax 10f9bd: 8b 5d fc mov -0x4(%ebp),%ebx 10f9c0: c9 leave 10f9c1: c3 ret 10f9c2: 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++){ 10f9c4: bb 01 00 00 00 mov $0x1,%ebx 10f9c9: eb e2 jmp 10f9ad <== ALWAYS TAKEN 0010f9cc : */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { 10f9cc: 55 push %ebp 10f9cd: 89 e5 mov %esp,%ebp 10f9cf: 53 push %ebx 10f9d0: 83 ec 08 sub $0x8,%esp 10f9d3: 8b 5d 08 mov 0x8(%ebp),%ebx rtems_libio_t *iop; int result = 0; uint32_t i; rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT ); 10f9d6: 6a 00 push $0x0 10f9d8: 6a 00 push $0x0 10f9da: ff 35 a8 51 12 00 pushl 0x1251a8 10f9e0: e8 7b bb ff ff call 10b560 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 10f9e5: a1 a0 51 12 00 mov 0x1251a0,%eax 10f9ea: 8b 0d 4c 11 12 00 mov 0x12114c,%ecx 10f9f0: 83 c4 10 add $0x10,%esp 10f9f3: 85 c9 test %ecx,%ecx 10f9f5: 74 18 je 10fa0f <== ALWAYS TAKEN 10f9f7: 31 d2 xor %edx,%edx 10f9f9: eb 04 jmp 10f9ff <== ALWAYS TAKEN 10f9fb: 90 nop <== NOT EXECUTED 10f9fc: 83 c0 40 add $0x40,%eax if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 10f9ff: f6 40 15 01 testb $0x1,0x15(%eax) 10fa03: 74 05 je 10fa0a /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.mt_entry == fs_mt_entry ) { 10fa05: 39 58 28 cmp %ebx,0x28(%eax) 10fa08: 74 1e je 10fa28 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 10fa0a: 42 inc %edx 10fa0b: 39 ca cmp %ecx,%edx 10fa0d: 72 ed jb 10f9fc 10fa0f: 31 db xor %ebx,%ebx break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 10fa11: 83 ec 0c sub $0xc,%esp 10fa14: ff 35 a8 51 12 00 pushl 0x1251a8 10fa1a: e8 3d bc ff ff call 10b65c return result; } 10fa1f: 89 d8 mov %ebx,%eax 10fa21: 8b 5d fc mov -0x4(%ebp),%ebx 10fa24: c9 leave 10fa25: c3 ret 10fa26: 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++){ 10fa28: bb 01 00 00 00 mov $0x1,%ebx 10fa2d: eb e2 jmp 10fa11 <== ALWAYS TAKEN 0012c558 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 12c558: 55 push %ebp 12c559: 89 e5 mov %esp,%ebp 12c55b: 57 push %edi 12c55c: 56 push %esi 12c55d: 53 push %ebx 12c55e: 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); 12c561: 8d 45 e4 lea -0x1c(%ebp),%eax 12c564: 50 push %eax 12c565: 6a 00 push $0x0 12c567: 6a 00 push $0x0 12c569: e8 fe 0e 00 00 call 12d46c if (sc != RTEMS_SUCCESSFUL) return sc; 12c56e: 83 c4 10 add $0x10,%esp 12c571: 85 c0 test %eax,%eax 12c573: 0f 85 89 00 00 00 jne 12c602 <== ALWAYS TAKEN /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 12c579: 8b 1d a4 7c 16 00 mov 0x167ca4,%ebx 12c57f: 81 fb 60 d7 16 00 cmp $0x16d760,%ebx 12c585: 0f 84 81 00 00 00 je 12c60c return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 12c58b: be 60 d7 16 00 mov $0x16d760,%esi 12c590: b9 12 00 00 00 mov $0x12,%ecx 12c595: 89 df mov %ebx,%edi 12c597: f3 a5 rep movsl %ds:(%esi),%es:(%edi) rtems_current_user_env->task_id=task_id; /* mark the local values*/ 12c599: 8b 45 e4 mov -0x1c(%ebp),%eax 12c59c: 89 03 mov %eax,(%ebx) /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 12c59e: 8d 7b 18 lea 0x18(%ebx),%edi 12c5a1: 8b 35 2c d7 16 00 mov 0x16d72c,%esi 12c5a7: 83 c6 1c add $0x1c,%esi 12c5aa: b1 05 mov $0x5,%cl 12c5ac: 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); 12c5ae: 83 ec 0c sub $0xc,%esp 12c5b1: 6a 00 push $0x0 12c5b3: 8d 5d d0 lea -0x30(%ebp),%ebx 12c5b6: 53 push %ebx 12c5b7: 6a 00 push $0x0 12c5b9: 6a 01 push $0x1 12c5bb: 68 e6 3d 16 00 push $0x163de6 12c5c0: e8 7b 08 fe ff call 10ce40 rtems_filesystem_root = loc; 12c5c5: 8b 3d a4 7c 16 00 mov 0x167ca4,%edi 12c5cb: 83 c7 18 add $0x18,%edi 12c5ce: b9 05 00 00 00 mov $0x5,%ecx 12c5d3: 89 de mov %ebx,%esi 12c5d5: f3 a5 rep movsl %ds:(%esi),%es:(%edi) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 12c5d7: 83 c4 14 add $0x14,%esp 12c5da: 6a 00 push $0x0 12c5dc: 53 push %ebx 12c5dd: 6a 00 push $0x0 12c5df: 6a 01 push $0x1 12c5e1: 68 e6 3d 16 00 push $0x163de6 12c5e6: e8 55 08 fe ff call 10ce40 rtems_filesystem_current = loc; 12c5eb: 8b 3d a4 7c 16 00 mov 0x167ca4,%edi 12c5f1: 83 c7 04 add $0x4,%edi 12c5f4: b9 05 00 00 00 mov $0x5,%ecx 12c5f9: 89 de mov %ebx,%esi 12c5fb: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12c5fd: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 12c5ff: 83 c4 20 add $0x20,%esp } 12c602: 8d 65 f4 lea -0xc(%ebp),%esp 12c605: 5b pop %ebx 12c606: 5e pop %esi 12c607: 5f pop %edi 12c608: c9 leave 12c609: c3 ret 12c60a: 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)); 12c60c: 83 ec 0c sub $0xc,%esp 12c60f: 6a 48 push $0x48 12c611: e8 1a 0e fe ff call 10d430 12c616: 89 c3 mov %eax,%ebx if (!tmp) 12c618: 83 c4 10 add $0x10,%esp 12c61b: 85 c0 test %eax,%eax 12c61d: 74 25 je 12c644 <== 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); 12c61f: 51 push %ecx 12c620: 68 64 c4 12 00 push $0x12c464 12c625: 68 a4 7c 16 00 push $0x167ca4 12c62a: 6a 00 push $0x0 12c62c: e8 1f 12 00 00 call 12d850 if (sc != RTEMS_SUCCESSFUL) { 12c631: 83 c4 10 add $0x10,%esp 12c634: 85 c0 test %eax,%eax 12c636: 75 14 jne 12c64c <== ALWAYS TAKEN * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 12c638: 89 1d a4 7c 16 00 mov %ebx,0x167ca4 12c63e: e9 48 ff ff ff jmp 12c58b <== ALWAYS TAKEN 12c643: 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) 12c644: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED 12c649: eb b7 jmp 12c602 <== NOT EXECUTED 12c64b: 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); 12c64c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c64f: 53 push %ebx <== NOT EXECUTED 12c650: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED 12c653: e8 9c 08 fe ff call 10cef4 <== NOT EXECUTED return sc; 12c658: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c65b: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED 12c65e: eb a2 jmp 12c602 <== NOT EXECUTED 0012c4c0 : * 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) { 12c4c0: 55 push %ebp <== NOT EXECUTED 12c4c1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c4c3: 53 push %ebx <== NOT EXECUTED 12c4c4: 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); 12c4c7: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 12c4ca: 50 push %eax <== NOT EXECUTED 12c4cb: 6a 00 push $0x0 <== NOT EXECUTED 12c4cd: 6a 00 push $0x0 <== NOT EXECUTED 12c4cf: e8 98 0f 00 00 call 12d46c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 12c4d4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c4d7: 85 c0 test %eax,%eax <== NOT EXECUTED 12c4d9: 75 30 jne 12c50b <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 12c4db: 8b 1d a4 7c 16 00 mov 0x167ca4,%ebx <== NOT EXECUTED 12c4e1: 8b 03 mov (%ebx),%eax <== NOT EXECUTED 12c4e3: 3b 45 f0 cmp -0x10(%ebp),%eax <== NOT EXECUTED 12c4e6: 74 28 je 12c510 <== 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, 12c4e8: 52 push %edx <== NOT EXECUTED 12c4e9: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 12c4ec: 50 push %eax <== NOT EXECUTED 12c4ed: 68 a4 7c 16 00 push $0x167ca4 <== NOT EXECUTED 12c4f2: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 12c4f5: e8 a6 14 00 00 call 12d9a0 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 12c4fa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c4fd: 85 c0 test %eax,%eax <== NOT EXECUTED 12c4ff: 74 33 je 12c534 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 12c501: c7 05 a4 7c 16 00 60 movl $0x16d760,0x167ca4 <== NOT EXECUTED 12c508: d7 16 00 <== NOT EXECUTED return sc; } 12c50b: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12c50e: c9 leave <== NOT EXECUTED 12c50f: 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); 12c510: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c513: 68 a4 7c 16 00 push $0x167ca4 <== NOT EXECUTED 12c518: 6a 00 push $0x0 <== NOT EXECUTED 12c51a: e8 f5 13 00 00 call 12d914 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 12c51f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c522: 85 c0 test %eax,%eax <== NOT EXECUTED 12c524: 75 e5 jne 12c50b <== NOT EXECUTED free_user_env(tmp); 12c526: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c529: 53 push %ebx <== NOT EXECUTED 12c52a: e8 35 ff ff ff call 12c464 <== NOT EXECUTED 12c52f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c532: eb b4 jmp 12c4e8 <== 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); 12c534: 50 push %eax <== NOT EXECUTED 12c535: 68 64 c4 12 00 push $0x12c464 <== NOT EXECUTED 12c53a: 68 a4 7c 16 00 push $0x167ca4 <== NOT EXECUTED 12c53f: 6a 00 push $0x0 <== NOT EXECUTED 12c541: e8 0a 13 00 00 call 12d850 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 12c546: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c549: 85 c0 test %eax,%eax <== NOT EXECUTED 12c54b: 75 b4 jne 12c501 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 12c54d: 8b 55 f4 mov -0xc(%ebp),%edx <== NOT EXECUTED 12c550: 89 15 a4 7c 16 00 mov %edx,0x167ca4 <== NOT EXECUTED /* increase the reference count */ #ifdef HAVE_USERENV_REFCNT rtems_current_user_env->refcnt++; #endif return RTEMS_SUCCESSFUL; 12c556: eb b3 jmp 12c50b <== NOT EXECUTED 0010f928 : */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 10f928: 55 push %ebp 10f929: 89 e5 mov %esp,%ebp 10f92b: 8b 55 08 mov 0x8(%ebp),%edx uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 10f92e: 89 d0 mov %edx,%eax 10f930: 83 e0 06 and $0x6,%eax 10f933: 83 f8 06 cmp $0x6,%eax 10f936: 74 2c je 10f964 <== ALWAYS TAKEN fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 10f938: f6 c2 02 test $0x2,%dl 10f93b: 75 23 jne 10f960 <== NEVER TAKEN 10f93d: 89 d0 mov %edx,%eax <== NOT EXECUTED 10f93f: c1 e8 02 shr $0x2,%eax <== NOT EXECUTED 10f942: 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 ) { 10f945: f6 c2 01 test $0x1,%dl 10f948: 74 03 je 10f94d fcntl_flags |= O_NONBLOCK; 10f94a: 80 cc 40 or $0x40,%ah } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { 10f94d: f6 c6 02 test $0x2,%dh 10f950: 74 03 je 10f955 fcntl_flags |= O_APPEND; 10f952: 83 c8 08 or $0x8,%eax } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { 10f955: 80 e6 04 and $0x4,%dh 10f958: 74 03 je 10f95d fcntl_flags |= O_CREAT; 10f95a: 80 cc 02 or $0x2,%ah } return fcntl_flags; } 10f95d: c9 leave 10f95e: c3 ret 10f95f: 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) { 10f960: 31 c0 xor %eax,%eax 10f962: eb e1 jmp 10f945 <== ALWAYS TAKEN uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 10f964: b0 02 mov $0x2,%al <== NOT EXECUTED 10f966: eb dd jmp 10f945 <== NOT EXECUTED 0010d4f0 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 10d4f0: 55 push %ebp <== NOT EXECUTED 10d4f1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10d4f3: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 10d4f6: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 10d4f9: 50 push %eax <== NOT EXECUTED 10d4fa: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 10d4fd: ff 35 98 5b 16 00 pushl 0x165b98 <== NOT EXECUTED 10d503: e8 34 5d 00 00 call 11323c <_Protected_heap_Get_block_size> <== NOT EXECUTED 10d508: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10d50b: 84 c0 test %al,%al <== NOT EXECUTED 10d50d: 74 11 je 10d520 <== NOT EXECUTED MSBUMP(lifetime_freed, size); 10d50f: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED 10d512: 31 d2 xor %edx,%edx <== NOT EXECUTED 10d514: 01 05 24 d7 16 00 add %eax,0x16d724 <== NOT EXECUTED 10d51a: 11 15 28 d7 16 00 adc %edx,0x16d728 <== NOT EXECUTED } } 10d520: c9 leave <== NOT EXECUTED 10d521: c3 ret <== NOT EXECUTED 0010d524 : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 10d524: 55 push %ebp <== NOT EXECUTED 10d525: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10d527: 83 ec 18 sub $0x18,%esp <== NOT EXECUTED 10d52a: 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 ) 10d52d: 85 c0 test %eax,%eax <== NOT EXECUTED 10d52f: 74 4a je 10d57b <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 10d531: 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); 10d538: 52 push %edx <== NOT EXECUTED 10d539: 8d 55 f4 lea -0xc(%ebp),%edx <== NOT EXECUTED 10d53c: 52 push %edx <== NOT EXECUTED 10d53d: 50 push %eax <== NOT EXECUTED 10d53e: ff 35 98 5b 16 00 pushl 0x165b98 <== NOT EXECUTED 10d544: e8 f3 5c 00 00 call 11323c <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 10d549: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED 10d54c: 31 d2 xor %edx,%edx <== NOT EXECUTED 10d54e: 03 05 1c d7 16 00 add 0x16d71c,%eax <== NOT EXECUTED 10d554: 13 15 20 d7 16 00 adc 0x16d720,%edx <== NOT EXECUTED 10d55a: a3 1c d7 16 00 mov %eax,0x16d71c <== NOT EXECUTED 10d55f: 89 15 20 d7 16 00 mov %edx,0x16d720 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 10d565: 2b 05 24 d7 16 00 sub 0x16d724,%eax <== NOT EXECUTED if (current_depth > s->max_depth) 10d56b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10d56e: 3b 05 18 d7 16 00 cmp 0x16d718,%eax <== NOT EXECUTED 10d574: 76 05 jbe 10d57b <== NOT EXECUTED s->max_depth = current_depth; 10d576: a3 18 d7 16 00 mov %eax,0x16d718 <== NOT EXECUTED } 10d57b: c9 leave <== NOT EXECUTED 10d57c: c3 ret <== NOT EXECUTED 0010d580 : #include #include static void rtems_malloc_statistics_initialize( void ) { 10d580: 55 push %ebp <== NOT EXECUTED 10d581: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10d583: 57 push %edi <== NOT EXECUTED /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 10d584: ba 00 d7 16 00 mov $0x16d700,%edx <== NOT EXECUTED 10d589: b9 2c 00 00 00 mov $0x2c,%ecx <== NOT EXECUTED 10d58e: 31 c0 xor %eax,%eax <== NOT EXECUTED 10d590: 89 d7 mov %edx,%edi <== NOT EXECUTED 10d592: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED } 10d594: 5f pop %edi <== NOT EXECUTED 10d595: c9 leave <== NOT EXECUTED 10d596: c3 ret <== NOT EXECUTED 001146c8 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 1146c8: 55 push %ebp 1146c9: 89 e5 mov %esp,%ebp 1146cb: 53 push %ebx 1146cc: 83 ec 14 sub $0x14,%esp 1146cf: 8b 5d 08 mov 0x8(%ebp),%ebx void *return_this; /* * Parameter error checks */ if ( !pointer ) 1146d2: 85 db test %ebx,%ebx 1146d4: 74 5b je 114731 return EINVAL; *pointer = NULL; 1146d6: 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()) && 1146dc: 83 3d c0 b6 12 00 03 cmpl $0x3,0x12b6c0 1146e3: 74 43 je 114728 <== NEVER TAKEN /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 1146e5: e8 82 4e ff ff call 10956c <== ALWAYS TAKEN uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); 1146ea: 6a 00 push $0x0 1146ec: ff 75 0c pushl 0xc(%ebp) 1146ef: ff 75 10 pushl 0x10(%ebp) 1146f2: ff 35 18 72 12 00 pushl 0x127218 1146f8: e8 3b a0 ff ff call 10e738 <_Protected_heap_Allocate_aligned_with_boundary> return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 1146fd: 83 c4 10 add $0x10,%esp 114700: 85 c0 test %eax,%eax 114702: 74 38 je 11473c return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 114704: 8b 15 a8 96 12 00 mov 0x1296a8,%edx 11470a: 85 d2 test %edx,%edx 11470c: 74 10 je 11471e <== NEVER TAKEN (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 11470e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 114711: 53 push %ebx <== NOT EXECUTED 114712: 89 45 f4 mov %eax,-0xc(%ebp) <== NOT EXECUTED 114715: ff 52 04 call *0x4(%edx) <== NOT EXECUTED 114718: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11471b: 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; 11471e: 89 03 mov %eax,(%ebx) 114720: 31 c0 xor %eax,%eax return 0; } 114722: 8b 5d fc mov -0x4(%ebp),%ebx 114725: c9 leave 114726: c3 ret 114727: 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()) && 114728: e8 e7 4d ff ff call 109514 <== ALWAYS TAKEN 11472d: 84 c0 test %al,%al 11472f: 75 b4 jne 1146e5 <== NEVER TAKEN if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; 114731: b8 16 00 00 00 mov $0x16,%eax } 114736: 8b 5d fc mov -0x4(%ebp),%ebx 114739: c9 leave 11473a: c3 ret 11473b: 90 nop <== NOT EXECUTED return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 11473c: b0 0c mov $0xc,%al 11473e: eb e2 jmp 114722 <== ALWAYS TAKEN 00115f10 : rtems_id id, const void *buffer, size_t size, uint32_t *count ) { 115f10: 55 push %ebp 115f11: 89 e5 mov %esp,%ebp 115f13: 57 push %edi 115f14: 56 push %esi 115f15: 53 push %ebx 115f16: 83 ec 1c sub $0x1c,%esp 115f19: 8b 7d 08 mov 0x8(%ebp),%edi 115f1c: 8b 5d 0c mov 0xc(%ebp),%ebx 115f1f: 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 ) 115f22: 85 db test %ebx,%ebx 115f24: 74 62 je 115f88 return RTEMS_INVALID_ADDRESS; if ( !count ) 115f26: 85 f6 test %esi,%esi 115f28: 74 5e je 115f88 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 115f2a: 51 push %ecx 115f2b: 8d 45 e4 lea -0x1c(%ebp),%eax 115f2e: 50 push %eax 115f2f: 57 push %edi 115f30: 68 20 fa 13 00 push $0x13fa20 115f35: e8 ea 4b 00 00 call 11ab24 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 115f3a: 83 c4 10 add $0x10,%esp 115f3d: 8b 55 e4 mov -0x1c(%ebp),%edx 115f40: 85 d2 test %edx,%edx 115f42: 74 10 je 115f54 115f44: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115f49: 8d 65 f4 lea -0xc(%ebp),%esp 115f4c: 5b pop %ebx 115f4d: 5e pop %esi 115f4e: 5f pop %edi 115f4f: c9 leave 115f50: c3 ret 115f51: 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( 115f54: 83 ec 08 sub $0x8,%esp 115f57: 56 push %esi 115f58: 6a 00 push $0x0 115f5a: 57 push %edi 115f5b: ff 75 10 pushl 0x10(%ebp) 115f5e: 53 push %ebx 115f5f: 83 c0 14 add $0x14,%eax 115f62: 50 push %eax 115f63: e8 88 34 00 00 call 1193f0 <_CORE_message_queue_Broadcast> 115f68: 89 c3 mov %eax,%ebx NULL, #endif count ); _Thread_Enable_dispatch(); 115f6a: 83 c4 20 add $0x20,%esp 115f6d: e8 62 54 00 00 call 11b3d4 <_Thread_Enable_dispatch> return _Message_queue_Translate_core_message_queue_return_code( core_status ); 115f72: 83 ec 0c sub $0xc,%esp 115f75: 53 push %ebx 115f76: e8 69 03 00 00 call 1162e4 <_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN #endif count ); _Thread_Enable_dispatch(); return 115f7b: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115f7e: 8d 65 f4 lea -0xc(%ebp),%esp 115f81: 5b pop %ebx 115f82: 5e pop %esi 115f83: 5f pop %edi 115f84: c9 leave 115f85: c3 ret 115f86: 66 90 xchg %ax,%ax <== NOT EXECUTED #endif count ); _Thread_Enable_dispatch(); return 115f88: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115f8d: 8d 65 f4 lea -0xc(%ebp),%esp 115f90: 5b pop %ebx 115f91: 5e pop %esi 115f92: 5f pop %edi 115f93: c9 leave 115f94: c3 ret 00113ab8 : uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) { 113ab8: 55 push %ebp 113ab9: 89 e5 mov %esp,%ebp 113abb: 57 push %edi 113abc: 56 push %esi 113abd: 53 push %ebx 113abe: 83 ec 2c sub $0x2c,%esp 113ac1: 8b 5d 08 mov 0x8(%ebp),%ebx 113ac4: 8b 75 0c mov 0xc(%ebp),%esi 113ac7: 8b 4d 10 mov 0x10(%ebp),%ecx 113aca: 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 ) ) 113acd: 85 db test %ebx,%ebx 113acf: 74 2f je 113b00 return RTEMS_INVALID_NAME; if ( !id ) 113ad1: 85 ff test %edi,%edi 113ad3: 0f 84 a3 00 00 00 je 113b7c <== ALWAYS TAKEN if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) 113ad9: 85 f6 test %esi,%esi 113adb: 74 13 je 113af0 return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) 113add: 85 c9 test %ecx,%ecx 113adf: 75 2f jne 113b10 113ae1: b8 08 00 00 00 mov $0x8,%eax ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 113ae6: 8d 65 f4 lea -0xc(%ebp),%esp 113ae9: 5b pop %ebx 113aea: 5e pop %esi 113aeb: 5f pop %edi 113aec: c9 leave 113aed: c3 ret 113aee: 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 ) 113af0: b8 0a 00 00 00 mov $0xa,%eax ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 113af5: 8d 65 f4 lea -0xc(%ebp),%esp 113af8: 5b pop %ebx 113af9: 5e pop %esi 113afa: 5f pop %edi 113afb: c9 leave 113afc: c3 ret 113afd: 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 ) ) 113b00: b8 03 00 00 00 mov $0x3,%eax ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 113b05: 8d 65 f4 lea -0xc(%ebp),%esp 113b08: 5b pop %ebx 113b09: 5e pop %esi 113b0a: 5f pop %edi 113b0b: c9 leave 113b0c: c3 ret 113b0d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 113b10: a1 b8 f9 12 00 mov 0x12f9b8,%eax 113b15: 40 inc %eax 113b16: a3 b8 f9 12 00 mov %eax,0x12f9b8 #endif #endif _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); 113b1b: 89 4d d4 mov %ecx,-0x2c(%ebp) 113b1e: e8 35 50 00 00 call 118b58 <_Message_queue_Allocate> 113b23: 89 c2 mov %eax,%edx if ( !the_message_queue ) { 113b25: 85 c0 test %eax,%eax 113b27: 8b 4d d4 mov -0x2c(%ebp),%ecx 113b2a: 74 7c je 113ba8 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_message_queue->attribute_set = attribute_set; 113b2c: 8b 45 14 mov 0x14(%ebp),%eax 113b2f: 89 42 10 mov %eax,0x10(%edx) if (_Attributes_Is_priority( attribute_set ) ) the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; 113b32: a8 04 test $0x4,%al 113b34: 0f 95 c0 setne %al 113b37: 0f b6 c0 movzbl %al,%eax 113b3a: 89 45 e4 mov %eax,-0x1c(%ebp) else the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; if ( ! _CORE_message_queue_Initialize( 113b3d: 51 push %ecx 113b3e: 56 push %esi 113b3f: 8d 45 e4 lea -0x1c(%ebp),%eax 113b42: 50 push %eax 113b43: 8d 42 14 lea 0x14(%edx),%eax 113b46: 50 push %eax 113b47: 89 55 d4 mov %edx,-0x2c(%ebp) 113b4a: e8 a5 10 00 00 call 114bf4 <_CORE_message_queue_Initialize> 113b4f: 83 c4 10 add $0x10,%esp 113b52: 84 c0 test %al,%al 113b54: 8b 55 d4 mov -0x2c(%ebp),%edx 113b57: 75 2f jne 113b88 */ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); 113b59: 83 ec 08 sub $0x8,%esp 113b5c: 52 push %edx 113b5d: 68 80 fc 12 00 push $0x12fc80 113b62: e8 e1 1d 00 00 call 115948 <_Objects_Free> _Objects_MP_Close( &_Message_queue_Information, the_message_queue->Object.id); #endif _Message_queue_Free( the_message_queue ); _Thread_Enable_dispatch(); 113b67: e8 d4 27 00 00 call 116340 <_Thread_Enable_dispatch> 113b6c: b8 0d 00 00 00 mov $0xd,%eax return RTEMS_UNSATISFIED; 113b71: 83 c4 10 add $0x10,%esp 113b74: e9 6d ff ff ff jmp 113ae6 113b79: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED #endif if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 113b7c: b8 09 00 00 00 mov $0x9,%eax 113b81: e9 60 ff ff ff jmp 113ae6 113b86: 66 90 xchg %ax,%ax <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 113b88: 8b 42 08 mov 0x8(%edx),%eax 113b8b: 0f b7 f0 movzwl %ax,%esi 113b8e: 8b 0d 9c fc 12 00 mov 0x12fc9c,%ecx 113b94: 89 14 b1 mov %edx,(%ecx,%esi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 113b97: 89 5a 0c mov %ebx,0xc(%edx) &_Message_queue_Information, &the_message_queue->Object, (Objects_Name) name ); *id = the_message_queue->Object.id; 113b9a: 89 07 mov %eax,(%edi) name, 0 ); #endif _Thread_Enable_dispatch(); 113b9c: e8 9f 27 00 00 call 116340 <_Thread_Enable_dispatch> 113ba1: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 113ba3: e9 3e ff ff ff jmp 113ae6 <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); if ( !the_message_queue ) { _Thread_Enable_dispatch(); 113ba8: e8 93 27 00 00 call 116340 <_Thread_Enable_dispatch> 113bad: b8 05 00 00 00 mov $0x5,%eax return RTEMS_TOO_MANY; 113bb2: e9 2f ff ff ff jmp 113ae6 0011711c : */ rtems_status_code rtems_message_queue_delete( rtems_id id ) { 11711c: 55 push %ebp 11711d: 89 e5 mov %esp,%ebp 11711f: 53 push %ebx 117120: 83 ec 18 sub $0x18,%esp 117123: 8d 45 f4 lea -0xc(%ebp),%eax 117126: 50 push %eax 117127: ff 75 08 pushl 0x8(%ebp) 11712a: 68 80 3b 13 00 push $0x133b80 11712f: e8 3c a7 ff ff call 111870 <_Objects_Get> 117134: 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 ) { 117136: 83 c4 10 add $0x10,%esp 117139: 8b 4d f4 mov -0xc(%ebp),%ecx 11713c: 85 c9 test %ecx,%ecx 11713e: 75 3c jne 11717c case OBJECTS_LOCAL: _Objects_Close( &_Message_queue_Information, 117140: 83 ec 08 sub $0x8,%esp 117143: 50 push %eax 117144: 68 80 3b 13 00 push $0x133b80 117149: e8 ee a2 ff ff call 11143c <_Objects_Close> &the_message_queue->Object ); _CORE_message_queue_Close( 11714e: 83 c4 0c add $0xc,%esp 117151: 6a 05 push $0x5 117153: 6a 00 push $0x0 117155: 8d 43 14 lea 0x14(%ebx),%eax 117158: 50 push %eax 117159: e8 0e 05 00 00 call 11766c <_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 ); 11715e: 58 pop %eax 11715f: 5a pop %edx 117160: 53 push %ebx 117161: 68 80 3b 13 00 push $0x133b80 117166: e8 d5 a5 ff ff call 111740 <_Objects_Free> 0, /* Not used */ 0 ); } #endif _Thread_Enable_dispatch(); 11716b: e8 b0 af ff ff call 112120 <_Thread_Enable_dispatch> 117170: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 117172: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 117175: 8b 5d fc mov -0x4(%ebp),%ebx 117178: c9 leave 117179: c3 ret 11717a: 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 ) { 11717c: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 117181: 8b 5d fc mov -0x4(%ebp),%ebx 117184: c9 leave 117185: c3 ret 00116104 : rtems_status_code rtems_message_queue_flush( rtems_id id, uint32_t *count ) { 116104: 55 push %ebp 116105: 89 e5 mov %esp,%ebp 116107: 53 push %ebx 116108: 83 ec 14 sub $0x14,%esp 11610b: 8b 5d 0c mov 0xc(%ebp),%ebx register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 11610e: 85 db test %ebx,%ebx 116110: 74 46 je 116158 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 116112: 51 push %ecx 116113: 8d 45 f4 lea -0xc(%ebp),%eax 116116: 50 push %eax 116117: ff 75 08 pushl 0x8(%ebp) 11611a: 68 20 fa 13 00 push $0x13fa20 11611f: e8 00 4a 00 00 call 11ab24 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 116124: 83 c4 10 add $0x10,%esp 116127: 8b 55 f4 mov -0xc(%ebp),%edx 11612a: 85 d2 test %edx,%edx 11612c: 74 0a je 116138 11612e: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116133: 8b 5d fc mov -0x4(%ebp),%ebx 116136: c9 leave 116137: 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 ); 116138: 83 ec 0c sub $0xc,%esp 11613b: 83 c0 14 add $0x14,%eax 11613e: 50 push %eax 11613f: e8 6c 33 00 00 call 1194b0 <_CORE_message_queue_Flush> 116144: 89 03 mov %eax,(%ebx) _Thread_Enable_dispatch(); 116146: e8 89 52 00 00 call 11b3d4 <_Thread_Enable_dispatch> 11614b: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 11614d: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116150: 8b 5d fc mov -0x4(%ebp),%ebx 116153: c9 leave 116154: c3 ret 116155: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 116158: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11615d: 8b 5d fc mov -0x4(%ebp),%ebx 116160: c9 leave 116161: c3 ret 00116164 : rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) { 116164: 55 push %ebp 116165: 89 e5 mov %esp,%ebp 116167: 53 push %ebx 116168: 83 ec 14 sub $0x14,%esp 11616b: 8b 5d 0c mov 0xc(%ebp),%ebx register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 11616e: 85 db test %ebx,%ebx 116170: 74 3a je 1161ac 116172: 51 push %ecx 116173: 8d 45 f4 lea -0xc(%ebp),%eax 116176: 50 push %eax 116177: ff 75 08 pushl 0x8(%ebp) 11617a: 68 20 fa 13 00 push $0x13fa20 11617f: e8 a0 49 00 00 call 11ab24 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 116184: 83 c4 10 add $0x10,%esp 116187: 8b 55 f4 mov -0xc(%ebp),%edx 11618a: 85 d2 test %edx,%edx 11618c: 74 0a je 116198 11618e: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116193: 8b 5d fc mov -0x4(%ebp),%ebx 116196: c9 leave 116197: 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; 116198: 8b 40 5c mov 0x5c(%eax),%eax 11619b: 89 03 mov %eax,(%ebx) _Thread_Enable_dispatch(); 11619d: e8 32 52 00 00 call 11b3d4 <_Thread_Enable_dispatch> 1161a2: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1161a4: 8b 5d fc mov -0x4(%ebp),%ebx 1161a7: c9 leave 1161a8: c3 ret 1161a9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 1161ac: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1161b1: 8b 5d fc mov -0x4(%ebp),%ebx 1161b4: c9 leave 1161b5: c3 ret 00113bdc : void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { 113bdc: 55 push %ebp 113bdd: 89 e5 mov %esp,%ebp 113bdf: 56 push %esi 113be0: 53 push %ebx 113be1: 83 ec 10 sub $0x10,%esp 113be4: 8b 5d 0c mov 0xc(%ebp),%ebx 113be7: 8b 75 10 mov 0x10(%ebp),%esi register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) 113bea: 85 db test %ebx,%ebx 113bec: 74 6e je 113c5c return RTEMS_INVALID_ADDRESS; if ( !size ) 113bee: 85 f6 test %esi,%esi 113bf0: 74 6a je 113c5c RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 113bf2: 51 push %ecx 113bf3: 8d 45 f4 lea -0xc(%ebp),%eax 113bf6: 50 push %eax 113bf7: ff 75 08 pushl 0x8(%ebp) 113bfa: 68 80 fc 12 00 push $0x12fc80 113bff: e8 74 1e 00 00 call 115a78 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 113c04: 83 c4 10 add $0x10,%esp 113c07: 8b 55 f4 mov -0xc(%ebp),%edx 113c0a: 85 d2 test %edx,%edx 113c0c: 75 42 jne 113c50 if ( _Options_Is_no_wait( option_set ) ) wait = false; else wait = true; _CORE_message_queue_Seize( 113c0e: 83 ec 08 sub $0x8,%esp 113c11: ff 75 18 pushl 0x18(%ebp) 113c14: 8b 55 14 mov 0x14(%ebp),%edx 113c17: 83 e2 01 and $0x1,%edx 113c1a: 83 f2 01 xor $0x1,%edx 113c1d: 52 push %edx 113c1e: 56 push %esi 113c1f: 53 push %ebx 113c20: ff 70 08 pushl 0x8(%eax) 113c23: 83 c0 14 add $0x14,%eax 113c26: 50 push %eax 113c27: e8 78 10 00 00 call 114ca4 <_CORE_message_queue_Seize> buffer, size, wait, timeout ); _Thread_Enable_dispatch(); 113c2c: 83 c4 20 add $0x20,%esp 113c2f: e8 0c 27 00 00 call 116340 <_Thread_Enable_dispatch> return _Message_queue_Translate_core_message_queue_return_code( 113c34: 83 ec 0c sub $0xc,%esp 113c37: a1 78 fa 12 00 mov 0x12fa78,%eax 113c3c: ff 70 34 pushl 0x34(%eax) 113c3f: e8 a0 00 00 00 call 113ce4 <_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN 113c44: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 113c47: 8d 65 f8 lea -0x8(%ebp),%esp 113c4a: 5b pop %ebx 113c4b: 5e pop %esi 113c4c: c9 leave 113c4d: c3 ret 113c4e: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( !size ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 113c50: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 113c55: 8d 65 f8 lea -0x8(%ebp),%esp 113c58: 5b pop %ebx 113c59: 5e pop %esi 113c5a: c9 leave 113c5b: c3 ret size, wait, timeout ); _Thread_Enable_dispatch(); return _Message_queue_Translate_core_message_queue_return_code( 113c5c: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 113c61: 8d 65 f8 lea -0x8(%ebp),%esp 113c64: 5b pop %ebx 113c65: 5e pop %esi 113c66: c9 leave 113c67: c3 ret 0010b25c : rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) { 10b25c: 55 push %ebp 10b25d: 89 e5 mov %esp,%ebp 10b25f: 56 push %esi 10b260: 53 push %ebx 10b261: 83 ec 10 sub $0x10,%esp 10b264: 8b 75 08 mov 0x8(%ebp),%esi 10b267: 8b 5d 0c mov 0xc(%ebp),%ebx register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 10b26a: 85 db test %ebx,%ebx 10b26c: 74 5e je 10b2cc RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 10b26e: 51 push %ecx 10b26f: 8d 45 f4 lea -0xc(%ebp),%eax 10b272: 50 push %eax 10b273: 56 push %esi 10b274: 68 00 56 12 00 push $0x125600 10b279: e8 f2 18 00 00 call 10cb70 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 10b27e: 83 c4 10 add $0x10,%esp 10b281: 8b 55 f4 mov -0xc(%ebp),%edx 10b284: 85 d2 test %edx,%edx 10b286: 74 0c je 10b294 10b288: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b28d: 8d 65 f8 lea -0x8(%ebp),%esp 10b290: 5b pop %ebx 10b291: 5e pop %esi 10b292: c9 leave 10b293: c3 ret CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( 10b294: 6a 00 push $0x0 10b296: 6a 00 push $0x0 10b298: 68 ff ff ff 7f push $0x7fffffff 10b29d: 6a 00 push $0x0 10b29f: 56 push %esi 10b2a0: ff 75 10 pushl 0x10(%ebp) 10b2a3: 53 push %ebx 10b2a4: 83 c0 14 add $0x14,%eax 10b2a7: 50 push %eax 10b2a8: e8 c7 0b 00 00 call 10be74 <_CORE_message_queue_Submit> 10b2ad: 89 c3 mov %eax,%ebx MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); 10b2af: 83 c4 20 add $0x20,%esp 10b2b2: e8 01 21 00 00 call 10d3b8 <_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); 10b2b7: 83 ec 0c sub $0xc,%esp 10b2ba: 53 push %ebx 10b2bb: e8 18 00 00 00 call 10b2d8 <_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN 10b2c0: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b2c3: 8d 65 f8 lea -0x8(%ebp),%esp 10b2c6: 5b pop %ebx 10b2c7: 5e pop %esi 10b2c8: c9 leave 10b2c9: c3 ret 10b2ca: 66 90 xchg %ax,%ax <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 10b2cc: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b2d1: 8d 65 f8 lea -0x8(%ebp),%esp 10b2d4: 5b pop %ebx 10b2d5: 5e pop %esi 10b2d6: c9 leave 10b2d7: c3 ret 001162f4 : rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) { 1162f4: 55 push %ebp 1162f5: 89 e5 mov %esp,%ebp 1162f7: 56 push %esi 1162f8: 53 push %ebx 1162f9: 83 ec 10 sub $0x10,%esp 1162fc: 8b 75 08 mov 0x8(%ebp),%esi 1162ff: 8b 5d 0c mov 0xc(%ebp),%ebx register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 116302: 85 db test %ebx,%ebx 116304: 74 5e je 116364 116306: 51 push %ecx 116307: 8d 45 f4 lea -0xc(%ebp),%eax 11630a: 50 push %eax 11630b: 56 push %esi 11630c: 68 20 fa 13 00 push $0x13fa20 116311: e8 0e 48 00 00 call 11ab24 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 116316: 83 c4 10 add $0x10,%esp 116319: 8b 55 f4 mov -0xc(%ebp),%edx 11631c: 85 d2 test %edx,%edx 11631e: 74 0c je 11632c 116320: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116325: 8d 65 f8 lea -0x8(%ebp),%esp 116328: 5b pop %ebx 116329: 5e pop %esi 11632a: c9 leave 11632b: c3 ret CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( 11632c: 6a 00 push $0x0 11632e: 6a 00 push $0x0 116330: 68 00 00 00 80 push $0x80000000 116335: 6a 00 push $0x0 116337: 56 push %esi 116338: ff 75 10 pushl 0x10(%ebp) 11633b: 53 push %ebx 11633c: 83 c0 14 add $0x14,%eax 11633f: 50 push %eax 116340: e8 5b 33 00 00 call 1196a0 <_CORE_message_queue_Submit> 116345: 89 c3 mov %eax,%ebx id, MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); 116347: 83 c4 20 add $0x20,%esp 11634a: e8 85 50 00 00 call 11b3d4 <_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); 11634f: 83 ec 0c sub $0xc,%esp 116352: 53 push %ebx 116353: e8 8c ff ff ff call 1162e4 <_Message_queue_Translate_core_message_queue_return_code> <== ALWAYS TAKEN 116358: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11635b: 8d 65 f8 lea -0x8(%ebp),%esp 11635e: 5b pop %ebx 11635f: 5e pop %esi 116360: c9 leave 116361: c3 ret 116362: 66 90 xchg %ax,%ax <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 116364: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116369: 8d 65 f8 lea -0x8(%ebp),%esp 11636c: 5b pop %ebx 11636d: 5e pop %esi 11636e: c9 leave 11636f: c3 ret 0010cc7c : const char *rtems_object_get_api_class_name( int the_api, int the_class ) { 10cc7c: 55 push %ebp 10cc7d: 89 e5 mov %esp,%ebp 10cc7f: 83 ec 08 sub $0x8,%esp 10cc82: 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 ) 10cc85: 83 f8 01 cmp $0x1,%eax 10cc88: 74 2a je 10ccb4 api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) 10cc8a: 83 f8 02 cmp $0x2,%eax 10cc8d: 74 09 je 10cc98 10cc8f: b8 19 2c 12 00 mov $0x122c19,%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"; } 10cc94: c9 leave 10cc95: c3 ret 10cc96: 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 ) 10cc98: b8 40 70 12 00 mov $0x127040,%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 ); 10cc9d: 83 ec 08 sub $0x8,%esp 10cca0: ff 75 0c pushl 0xc(%ebp) 10cca3: 50 push %eax 10cca4: e8 9b 48 00 00 call 111544 if ( class_assoc ) 10cca9: 83 c4 10 add $0x10,%esp 10ccac: 85 c0 test %eax,%eax 10ccae: 74 0c je 10ccbc return class_assoc->name; 10ccb0: 8b 00 mov (%eax),%eax return "BAD CLASS"; } 10ccb2: c9 leave 10ccb3: c3 ret ) { const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) 10ccb4: b8 20 70 12 00 mov $0x127020,%eax 10ccb9: eb e2 jmp 10cc9d <== ALWAYS TAKEN 10ccbb: 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 ) 10ccbc: b8 21 2c 12 00 mov $0x122c21,%eax return class_assoc->name; return "BAD CLASS"; } 10ccc1: c9 leave 10ccc2: c3 ret 0010ccc4 : }; const char *rtems_object_get_api_name( int api ) { 10ccc4: 55 push %ebp 10ccc5: 89 e5 mov %esp,%ebp 10ccc7: 83 ec 10 sub $0x10,%esp const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); 10ccca: ff 75 08 pushl 0x8(%ebp) 10cccd: 68 c0 70 12 00 push $0x1270c0 10ccd2: e8 6d 48 00 00 call 111544 if ( api_assoc ) 10ccd7: 83 c4 10 add $0x10,%esp 10ccda: 85 c0 test %eax,%eax 10ccdc: 74 06 je 10cce4 return api_assoc->name; 10ccde: 8b 00 mov (%eax),%eax return "BAD CLASS"; } 10cce0: c9 leave 10cce1: c3 ret 10cce2: 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 ) 10cce4: b8 21 2c 12 00 mov $0x122c21,%eax return api_assoc->name; return "BAD CLASS"; } 10cce9: c9 leave 10ccea: c3 ret 0010cd2c : rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) { 10cd2c: 55 push %ebp 10cd2d: 89 e5 mov %esp,%ebp 10cd2f: 57 push %edi 10cd30: 56 push %esi 10cd31: 53 push %ebx 10cd32: 83 ec 0c sub $0xc,%esp 10cd35: 8b 5d 10 mov 0x10(%ebp),%ebx int i; /* * Validate parameters and look up information structure. */ if ( !info ) 10cd38: 85 db test %ebx,%ebx 10cd3a: 74 5c je 10cd98 return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); 10cd3c: 83 ec 08 sub $0x8,%esp 10cd3f: ff 75 0c pushl 0xc(%ebp) 10cd42: ff 75 08 pushl 0x8(%ebp) 10cd45: e8 d2 19 00 00 call 10e71c <_Objects_Get_information> if ( !obj_info ) 10cd4a: 83 c4 10 add $0x10,%esp 10cd4d: 85 c0 test %eax,%eax 10cd4f: 74 57 je 10cda8 return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; 10cd51: 8b 50 08 mov 0x8(%eax),%edx 10cd54: 89 13 mov %edx,(%ebx) info->maximum_id = obj_info->maximum_id; 10cd56: 8b 50 0c mov 0xc(%eax),%edx 10cd59: 89 53 04 mov %edx,0x4(%ebx) info->auto_extend = obj_info->auto_extend; 10cd5c: 8a 50 12 mov 0x12(%eax),%dl 10cd5f: 88 53 0c mov %dl,0xc(%ebx) info->maximum = obj_info->maximum; 10cd62: 0f b7 70 10 movzwl 0x10(%eax),%esi 10cd66: 89 73 08 mov %esi,0x8(%ebx) for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) 10cd69: 85 f6 test %esi,%esi 10cd6b: 74 3f je 10cdac <== ALWAYS TAKEN 10cd6d: 8b 78 1c mov 0x1c(%eax),%edi 10cd70: b9 01 00 00 00 mov $0x1,%ecx 10cd75: b8 01 00 00 00 mov $0x1,%eax 10cd7a: 31 d2 xor %edx,%edx if ( !obj_info->local_table[i] ) unallocated++; 10cd7c: 83 3c 8f 01 cmpl $0x1,(%edi,%ecx,4) 10cd80: 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++ ) 10cd83: 40 inc %eax 10cd84: 89 c1 mov %eax,%ecx 10cd86: 39 c6 cmp %eax,%esi 10cd88: 73 f2 jae 10cd7c if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; 10cd8a: 89 53 10 mov %edx,0x10(%ebx) 10cd8d: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 10cd8f: 8d 65 f4 lea -0xc(%ebp),%esp 10cd92: 5b pop %ebx 10cd93: 5e pop %esi 10cd94: 5f pop %edi 10cd95: c9 leave 10cd96: c3 ret 10cd97: 90 nop <== NOT EXECUTED int i; /* * Validate parameters and look up information structure. */ if ( !info ) 10cd98: b8 09 00 00 00 mov $0x9,%eax unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 10cd9d: 8d 65 f4 lea -0xc(%ebp),%esp 10cda0: 5b pop %ebx 10cda1: 5e pop %esi 10cda2: 5f pop %edi 10cda3: c9 leave 10cda4: c3 ret 10cda5: 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 ) 10cda8: b0 0a mov $0xa,%al 10cdaa: eb e3 jmp 10cd8f <== ALWAYS TAKEN 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++ ) 10cdac: 31 d2 xor %edx,%edx <== NOT EXECUTED 10cdae: eb da jmp 10cd8a <== NOT EXECUTED 0010fca0 : rtems_status_code rtems_object_get_classic_name( rtems_id id, rtems_name *name ) { 10fca0: 55 push %ebp 10fca1: 89 e5 mov %esp,%ebp 10fca3: 53 push %ebx 10fca4: 83 ec 14 sub $0x14,%esp 10fca7: 8b 5d 0c mov 0xc(%ebp),%ebx Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) 10fcaa: 85 db test %ebx,%ebx 10fcac: 74 26 je 10fcd4 return RTEMS_INVALID_ADDRESS; status = _Objects_Id_to_name( id, &name_u ); 10fcae: 83 ec 08 sub $0x8,%esp 10fcb1: 8d 45 f4 lea -0xc(%ebp),%eax 10fcb4: 50 push %eax 10fcb5: ff 75 08 pushl 0x8(%ebp) 10fcb8: e8 1b 1c 00 00 call 1118d8 <_Objects_Id_to_name> *name = name_u.name_u32; 10fcbd: 8b 55 f4 mov -0xc(%ebp),%edx 10fcc0: 89 13 mov %edx,(%ebx) return _Status_Object_name_errors_to_status[ status ]; 10fcc2: 8b 04 85 ac aa 12 00 mov 0x12aaac(,%eax,4),%eax 10fcc9: 83 c4 10 add $0x10,%esp } 10fccc: 8b 5d fc mov -0x4(%ebp),%ebx 10fccf: c9 leave 10fcd0: c3 ret 10fcd1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) 10fcd4: 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 ]; } 10fcd9: 8b 5d fc mov -0x4(%ebp),%ebx 10fcdc: c9 leave 10fcdd: c3 ret 0010ce08 : */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { 10ce08: 55 push %ebp 10ce09: 89 e5 mov %esp,%ebp 10ce0b: 57 push %edi 10ce0c: 56 push %esi 10ce0d: 53 push %ebx 10ce0e: 83 ec 1c sub $0x1c,%esp 10ce11: 8b 75 08 mov 0x8(%ebp),%esi 10ce14: 8b 7d 0c mov 0xc(%ebp),%edi Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) 10ce17: 85 ff test %edi,%edi 10ce19: 74 61 je 10ce7c return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 10ce1b: 85 f6 test %esi,%esi 10ce1d: 74 35 je 10ce54 information = _Objects_Get_information_id( tmpId ); 10ce1f: 83 ec 0c sub $0xc,%esp 10ce22: 56 push %esi 10ce23: e8 d4 18 00 00 call 10e6fc <_Objects_Get_information_id> 10ce28: 89 c3 mov %eax,%ebx if ( !information ) 10ce2a: 83 c4 10 add $0x10,%esp 10ce2d: 85 c0 test %eax,%eax 10ce2f: 74 16 je 10ce47 return RTEMS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &location ); 10ce31: 50 push %eax 10ce32: 8d 45 e4 lea -0x1c(%ebp),%eax 10ce35: 50 push %eax 10ce36: 56 push %esi 10ce37: 53 push %ebx 10ce38: e8 43 1a 00 00 call 10e880 <_Objects_Get> switch ( location ) { 10ce3d: 83 c4 10 add $0x10,%esp 10ce40: 8b 4d e4 mov -0x1c(%ebp),%ecx 10ce43: 85 c9 test %ecx,%ecx 10ce45: 74 19 je 10ce60 case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 10ce47: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10ce4c: 8d 65 f4 lea -0xc(%ebp),%esp 10ce4f: 5b pop %ebx 10ce50: 5e pop %esi 10ce51: 5f pop %edi 10ce52: c9 leave 10ce53: c3 ret Objects_Id tmpId; if ( !name ) return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 10ce54: a1 18 95 12 00 mov 0x129518,%eax 10ce59: 8b 70 08 mov 0x8(%eax),%esi 10ce5c: eb c1 jmp 10ce1f <== ALWAYS TAKEN 10ce5e: 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 ); 10ce60: 52 push %edx 10ce61: 57 push %edi 10ce62: 50 push %eax 10ce63: 53 push %ebx 10ce64: e8 4f 1c 00 00 call 10eab8 <_Objects_Set_name> _Thread_Enable_dispatch(); 10ce69: e8 42 23 00 00 call 10f1b0 <_Thread_Enable_dispatch> 10ce6e: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10ce70: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10ce73: 8d 65 f4 lea -0xc(%ebp),%esp 10ce76: 5b pop %ebx 10ce77: 5e pop %esi 10ce78: 5f pop %edi 10ce79: c9 leave 10ce7a: c3 ret 10ce7b: 90 nop <== NOT EXECUTED Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) 10ce7c: b8 09 00 00 00 mov $0x9,%eax 10ce81: eb c9 jmp 10ce4c <== ALWAYS TAKEN 0010cce0 : void rtems_panic( const char *printf_format, ... ) { 10cce0: 55 push %ebp <== NOT EXECUTED 10cce1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10cce3: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED /* * rtems_panic is shorthand for rtems_error(RTEMS_ERROR_PANIC, ...) */ void rtems_panic( 10cce6: 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); 10cce9: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 10ccec: b8 00 00 00 20 mov $0x20000000,%eax <== NOT EXECUTED 10ccf1: e8 4a fe ff ff call 10cb40 <== NOT EXECUTED va_end(arglist); } 10ccf6: c9 leave <== NOT EXECUTED 10ccf7: c3 ret <== NOT EXECUTED 00116370 : uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { 116370: 55 push %ebp 116371: 89 e5 mov %esp,%ebp 116373: 57 push %edi 116374: 56 push %esi 116375: 53 push %ebx 116376: 83 ec 1c sub $0x1c,%esp 116379: 8b 5d 08 mov 0x8(%ebp),%ebx 11637c: 8b 75 0c mov 0xc(%ebp),%esi 11637f: 8b 55 10 mov 0x10(%ebp),%edx 116382: 8b 7d 14 mov 0x14(%ebp),%edi register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) 116385: 85 db test %ebx,%ebx 116387: 74 47 je 1163d0 return RTEMS_INVALID_NAME; if ( !starting_address ) 116389: 85 f6 test %esi,%esi 11638b: 74 23 je 1163b0 return RTEMS_INVALID_ADDRESS; if ( !id ) 11638d: 8b 45 1c mov 0x1c(%ebp),%eax 116390: 85 c0 test %eax,%eax 116392: 74 1c je 1163b0 <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size || 116394: 85 d2 test %edx,%edx 116396: 74 28 je 1163c0 116398: 85 ff test %edi,%edi 11639a: 74 24 je 1163c0 11639c: 39 fa cmp %edi,%edx 11639e: 72 20 jb 1163c0 1163a0: f7 c7 03 00 00 00 test $0x3,%edi 1163a6: 75 18 jne 1163c0 !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; if ( !_Addresses_Is_aligned( starting_address ) ) 1163a8: f7 c6 03 00 00 00 test $0x3,%esi 1163ae: 74 30 je 1163e0 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 1163b0: b8 09 00 00 00 mov $0x9,%eax } 1163b5: 8d 65 f4 lea -0xc(%ebp),%esp 1163b8: 5b pop %ebx 1163b9: 5e pop %esi 1163ba: 5f pop %edi 1163bb: c9 leave 1163bc: c3 ret 1163bd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 1163c0: b8 08 00 00 00 mov $0x8,%eax } 1163c5: 8d 65 f4 lea -0xc(%ebp),%esp 1163c8: 5b pop %ebx 1163c9: 5e pop %esi 1163ca: 5f pop %edi 1163cb: c9 leave 1163cc: c3 ret 1163cd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED rtems_id *id ) { register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) 1163d0: b8 03 00 00 00 mov $0x3,%eax ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 1163d5: 8d 65 f4 lea -0xc(%ebp),%esp 1163d8: 5b pop %ebx 1163d9: 5e pop %esi 1163da: 5f pop %edi 1163db: c9 leave 1163dc: c3 ret 1163dd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 1163e0: a1 58 f7 13 00 mov 0x13f758,%eax 1163e5: 40 inc %eax 1163e6: a3 58 f7 13 00 mov %eax,0x13f758 * 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 ); 1163eb: 83 ec 0c sub $0xc,%esp 1163ee: 68 e0 f5 13 00 push $0x13f5e0 1163f3: 89 55 e0 mov %edx,-0x20(%ebp) 1163f6: e8 3d 42 00 00 call 11a638 <_Objects_Allocate> 1163fb: 89 45 e4 mov %eax,-0x1c(%ebp) _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { 1163fe: 83 c4 10 add $0x10,%esp 116401: 85 c0 test %eax,%eax 116403: 8b 55 e0 mov -0x20(%ebp),%edx 116406: 74 58 je 116460 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; 116408: 8b 45 e4 mov -0x1c(%ebp),%eax 11640b: 89 70 10 mov %esi,0x10(%eax) the_partition->length = length; 11640e: 89 50 14 mov %edx,0x14(%eax) the_partition->buffer_size = buffer_size; 116411: 89 78 18 mov %edi,0x18(%eax) the_partition->attribute_set = attribute_set; 116414: 8b 4d 18 mov 0x18(%ebp),%ecx 116417: 89 48 1c mov %ecx,0x1c(%eax) the_partition->number_of_used_blocks = 0; 11641a: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) _Chain_Initialize( &the_partition->Memory, starting_address, 116421: 57 push %edi 116422: 89 d0 mov %edx,%eax 116424: 31 d2 xor %edx,%edx 116426: f7 f7 div %edi 116428: 50 push %eax 116429: 56 push %esi 11642a: 8b 45 e4 mov -0x1c(%ebp),%eax 11642d: 83 c0 24 add $0x24,%eax 116430: 50 push %eax 116431: e8 7a 2f 00 00 call 1193b0 <_Chain_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 116436: 8b 7d e4 mov -0x1c(%ebp),%edi 116439: 8b 47 08 mov 0x8(%edi),%eax 11643c: 0f b7 f0 movzwl %ax,%esi 11643f: 8b 15 fc f5 13 00 mov 0x13f5fc,%edx 116445: 89 3c b2 mov %edi,(%edx,%esi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 116448: 89 5f 0c mov %ebx,0xc(%edi) &_Partition_Information, &the_partition->Object, (Objects_Name) name ); *id = the_partition->Object.id; 11644b: 8b 55 1c mov 0x1c(%ebp),%edx 11644e: 89 02 mov %eax,(%edx) name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 116450: e8 7f 4f 00 00 call 11b3d4 <_Thread_Enable_dispatch> 116455: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 116457: 83 c4 10 add $0x10,%esp 11645a: e9 66 ff ff ff jmp 1163c5 <== ALWAYS TAKEN 11645f: 90 nop <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { _Thread_Enable_dispatch(); 116460: e8 6f 4f 00 00 call 11b3d4 <_Thread_Enable_dispatch> 116465: b8 05 00 00 00 mov $0x5,%eax return RTEMS_TOO_MANY; 11646a: e9 56 ff ff ff jmp 1163c5 <== ALWAYS TAKEN 00116470 : */ rtems_status_code rtems_partition_delete( rtems_id id ) { 116470: 55 push %ebp 116471: 89 e5 mov %esp,%ebp 116473: 83 ec 2c sub $0x2c,%esp RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) 116476: 8d 45 f4 lea -0xc(%ebp),%eax 116479: 50 push %eax 11647a: ff 75 08 pushl 0x8(%ebp) 11647d: 68 e0 f5 13 00 push $0x13f5e0 116482: e8 9d 46 00 00 call 11ab24 <_Objects_Get> register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 116487: 83 c4 10 add $0x10,%esp 11648a: 8b 55 f4 mov -0xc(%ebp),%edx 11648d: 85 d2 test %edx,%edx 11648f: 74 07 je 116498 116491: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116496: c9 leave 116497: c3 ret the_partition = _Partition_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { 116498: 8b 48 20 mov 0x20(%eax),%ecx 11649b: 85 c9 test %ecx,%ecx 11649d: 74 0d je 1164ac #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 11649f: e8 30 4f 00 00 call 11b3d4 <_Thread_Enable_dispatch> 1164a4: b8 0c 00 00 00 mov $0xc,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1164a9: c9 leave 1164aa: c3 ret 1164ab: 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 ); 1164ac: 83 ec 08 sub $0x8,%esp 1164af: 50 push %eax 1164b0: 68 e0 f5 13 00 push $0x13f5e0 1164b5: 89 45 e4 mov %eax,-0x1c(%ebp) 1164b8: e8 f7 41 00 00 call 11a6b4 <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Partition_Free ( Partition_Control *the_partition ) { _Objects_Free( &_Partition_Information, &the_partition->Object ); 1164bd: 58 pop %eax 1164be: 5a pop %edx 1164bf: 8b 45 e4 mov -0x1c(%ebp),%eax 1164c2: 50 push %eax 1164c3: 68 e0 f5 13 00 push $0x13f5e0 1164c8: e8 eb 44 00 00 call 11a9b8 <_Objects_Free> 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 1164cd: e8 02 4f 00 00 call 11b3d4 <_Thread_Enable_dispatch> 1164d2: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 1164d4: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1164d7: c9 leave 1164d8: c3 ret 001164dc : rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) { 1164dc: 55 push %ebp 1164dd: 89 e5 mov %esp,%ebp 1164df: 56 push %esi 1164e0: 53 push %ebx 1164e1: 83 ec 20 sub $0x20,%esp 1164e4: 8b 5d 0c mov 0xc(%ebp),%ebx register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) 1164e7: 85 db test %ebx,%ebx 1164e9: 74 59 je 116544 RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) 1164eb: 52 push %edx 1164ec: 8d 45 f4 lea -0xc(%ebp),%eax 1164ef: 50 push %eax 1164f0: ff 75 08 pushl 0x8(%ebp) 1164f3: 68 e0 f5 13 00 push $0x13f5e0 1164f8: e8 27 46 00 00 call 11ab24 <_Objects_Get> 1164fd: 89 c6 mov %eax,%esi return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { 1164ff: 83 c4 10 add $0x10,%esp 116502: 8b 45 f4 mov -0xc(%ebp),%eax 116505: 85 c0 test %eax,%eax 116507: 75 2f jne 116538 */ RTEMS_INLINE_ROUTINE void *_Partition_Allocate_buffer ( Partition_Control *the_partition ) { return _Chain_Get( &the_partition->Memory ); 116509: 83 ec 0c sub $0xc,%esp 11650c: 8d 46 24 lea 0x24(%esi),%eax 11650f: 50 push %eax 116510: e8 77 2e 00 00 call 11938c <_Chain_Get> case OBJECTS_LOCAL: the_buffer = _Partition_Allocate_buffer( the_partition ); if ( the_buffer ) { 116515: 83 c4 10 add $0x10,%esp 116518: 85 c0 test %eax,%eax 11651a: 74 34 je 116550 the_partition->number_of_used_blocks += 1; 11651c: ff 46 20 incl 0x20(%esi) _Thread_Enable_dispatch(); 11651f: 89 45 e4 mov %eax,-0x1c(%ebp) 116522: e8 ad 4e 00 00 call 11b3d4 <_Thread_Enable_dispatch> *buffer = the_buffer; 116527: 8b 45 e4 mov -0x1c(%ebp),%eax 11652a: 89 03 mov %eax,(%ebx) 11652c: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11652e: 8d 65 f8 lea -0x8(%ebp),%esp 116531: 5b pop %ebx 116532: 5e pop %esi 116533: c9 leave 116534: c3 ret 116535: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { 116538: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11653d: 8d 65 f8 lea -0x8(%ebp),%esp 116540: 5b pop %ebx 116541: 5e pop %esi 116542: c9 leave 116543: c3 ret { register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) 116544: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116549: 8d 65 f8 lea -0x8(%ebp),%esp 11654c: 5b pop %ebx 11654d: 5e pop %esi 11654e: c9 leave 11654f: c3 ret the_partition->number_of_used_blocks += 1; _Thread_Enable_dispatch(); *buffer = the_buffer; return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 116550: e8 7f 4e 00 00 call 11b3d4 <_Thread_Enable_dispatch> 116555: b8 0d 00 00 00 mov $0xd,%eax return RTEMS_UNSATISFIED; 11655a: eb e1 jmp 11653d <== ALWAYS TAKEN 00116580 : rtems_status_code rtems_partition_return_buffer( rtems_id id, void *buffer ) { 116580: 55 push %ebp 116581: 89 e5 mov %esp,%ebp 116583: 56 push %esi 116584: 53 push %ebx 116585: 83 ec 14 sub $0x14,%esp 116588: 8b 75 0c mov 0xc(%ebp),%esi RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) 11658b: 8d 45 f4 lea -0xc(%ebp),%eax 11658e: 50 push %eax 11658f: ff 75 08 pushl 0x8(%ebp) 116592: 68 e0 f5 13 00 push $0x13f5e0 116597: e8 88 45 00 00 call 11ab24 <_Objects_Get> 11659c: 89 c3 mov %eax,%ebx register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 11659e: 83 c4 10 add $0x10,%esp 1165a1: 8b 45 f4 mov -0xc(%ebp),%eax 1165a4: 85 c0 test %eax,%eax 1165a6: 74 0c je 1165b4 1165a8: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1165ad: 8d 65 f8 lea -0x8(%ebp),%esp 1165b0: 5b pop %ebx 1165b1: 5e pop %esi 1165b2: c9 leave 1165b3: c3 ret ) { void *starting; void *ending; starting = the_partition->starting_address; 1165b4: 8b 43 10 mov 0x10(%ebx),%eax ending = _Addresses_Add_offset( starting, the_partition->length ); 1165b7: 8b 53 14 mov 0x14(%ebx),%edx const void *address, const void *base, const void *limit ) { return (address >= base && address <= limit); 1165ba: 39 c6 cmp %eax,%esi 1165bc: 72 3a jb 1165f8 1165be: 8d 14 10 lea (%eax,%edx,1),%edx 1165c1: 39 d6 cmp %edx,%esi 1165c3: 77 33 ja 1165f8 <== ALWAYS TAKEN return ( 1165c5: 89 f2 mov %esi,%edx 1165c7: 29 c2 sub %eax,%edx 1165c9: 89 d0 mov %edx,%eax 1165cb: 31 d2 xor %edx,%edx 1165cd: f7 73 18 divl 0x18(%ebx) 1165d0: 85 d2 test %edx,%edx 1165d2: 75 24 jne 1165f8 RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( Partition_Control *the_partition, Chain_Node *the_buffer ) { _Chain_Append( &the_partition->Memory, the_buffer ); 1165d4: 83 ec 08 sub $0x8,%esp 1165d7: 56 push %esi 1165d8: 8d 43 24 lea 0x24(%ebx),%eax 1165db: 50 push %eax 1165dc: e8 87 2d 00 00 call 119368 <_Chain_Append> <== ALWAYS TAKEN 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; 1165e1: ff 4b 20 decl 0x20(%ebx) _Thread_Enable_dispatch(); 1165e4: e8 eb 4d 00 00 call 11b3d4 <_Thread_Enable_dispatch> 1165e9: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 1165eb: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1165ee: 8d 65 f8 lea -0x8(%ebp),%esp 1165f1: 5b pop %ebx 1165f2: 5e pop %esi 1165f3: c9 leave 1165f4: c3 ret 1165f5: 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(); 1165f8: e8 d7 4d 00 00 call 11b3d4 <_Thread_Enable_dispatch> 1165fd: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116602: 8d 65 f8 lea -0x8(%ebp),%esp 116605: 5b pop %ebx 116606: 5e pop %esi 116607: c9 leave 116608: c3 ret 00110bc0 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 110bc0: 55 push %ebp 110bc1: 89 e5 mov %esp,%ebp 110bc3: 83 ec 08 sub $0x8,%esp if (!rtems_pipe_configured) 110bc6: 80 3d a4 35 12 00 00 cmpb $0x0,0x1235a4 110bcd: 74 09 je 110bd8 <== NEVER TAKEN return; if (rtems_pipe_semaphore) 110bcf: a1 6c 4f 12 00 mov 0x124f6c,%eax <== NOT EXECUTED 110bd4: 85 c0 test %eax,%eax <== NOT EXECUTED 110bd6: 74 04 je 110bdc <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); rtems_pipe_no = now; } 110bd8: c9 leave 110bd9: c3 ret 110bda: 66 90 xchg %ax,%ax <== NOT EXECUTED if (rtems_pipe_semaphore) return; rtems_status_code sc; sc = rtems_semaphore_create( 110bdc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110bdf: 68 6c 4f 12 00 push $0x124f6c <== NOT EXECUTED 110be4: 6a 00 push $0x0 <== NOT EXECUTED 110be6: 6a 54 push $0x54 <== NOT EXECUTED 110be8: 6a 01 push $0x1 <== NOT EXECUTED 110bea: 68 45 50 49 50 push $0x50495045 <== NOT EXECUTED 110bef: e8 f4 a6 ff ff call 10b2e8 <== 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) 110bf4: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 110bf7: 85 c0 test %eax,%eax <== NOT EXECUTED 110bf9: 75 0d jne 110c08 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 110bfb: e8 64 a2 ff ff call 10ae64 <== NOT EXECUTED rtems_pipe_no = now; 110c00: 66 a3 74 4f 12 00 mov %ax,0x124f74 <== NOT EXECUTED } 110c06: c9 leave <== NOT EXECUTED 110c07: 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); 110c08: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110c0b: 50 push %eax <== NOT EXECUTED 110c0c: e8 87 af ff ff call 10bb98 <== NOT EXECUTED 001159a8 : void *internal_start, void *external_start, uint32_t length, rtems_id *id ) { 1159a8: 55 push %ebp 1159a9: 89 e5 mov %esp,%ebp 1159ab: 57 push %edi 1159ac: 56 push %esi 1159ad: 53 push %ebx 1159ae: 83 ec 1c sub $0x1c,%esp 1159b1: 8b 5d 08 mov 0x8(%ebp),%ebx 1159b4: 8b 55 0c mov 0xc(%ebp),%edx 1159b7: 8b 7d 10 mov 0x10(%ebp),%edi 1159ba: 8b 75 18 mov 0x18(%ebp),%esi register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) 1159bd: 85 db test %ebx,%ebx 1159bf: 74 1b je 1159dc return RTEMS_INVALID_NAME; if ( !id ) 1159c1: 85 f6 test %esi,%esi 1159c3: 74 08 je 1159cd return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( internal_start ) || 1159c5: 89 f8 mov %edi,%eax 1159c7: 09 d0 or %edx,%eax 1159c9: a8 03 test $0x3,%al 1159cb: 74 1f je 1159ec (Objects_Name) name ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 1159cd: b8 09 00 00 00 mov $0x9,%eax } 1159d2: 8d 65 f4 lea -0xc(%ebp),%esp 1159d5: 5b pop %ebx 1159d6: 5e pop %esi 1159d7: 5f pop %edi 1159d8: c9 leave 1159d9: c3 ret 1159da: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_id *id ) { register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) 1159dc: b8 03 00 00 00 mov $0x3,%eax ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 1159e1: 8d 65 f4 lea -0xc(%ebp),%esp 1159e4: 5b pop %ebx 1159e5: 5e pop %esi 1159e6: 5f pop %edi 1159e7: c9 leave 1159e8: c3 ret 1159e9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 1159ec: a1 58 f7 13 00 mov 0x13f758,%eax 1159f1: 40 inc %eax 1159f2: a3 58 f7 13 00 mov %eax,0x13f758 * of free port control blocks. */ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Allocate ( void ) { return (Dual_ported_memory_Control *) 1159f7: 83 ec 0c sub $0xc,%esp 1159fa: 68 a0 f5 13 00 push $0x13f5a0 1159ff: 89 55 e4 mov %edx,-0x1c(%ebp) 115a02: e8 31 4c 00 00 call 11a638 <_Objects_Allocate> _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { 115a07: 83 c4 10 add $0x10,%esp 115a0a: 85 c0 test %eax,%eax 115a0c: 8b 55 e4 mov -0x1c(%ebp),%edx 115a0f: 74 33 je 115a44 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; 115a11: 89 50 10 mov %edx,0x10(%eax) the_port->external_base = external_start; 115a14: 89 78 14 mov %edi,0x14(%eax) the_port->length = length - 1; 115a17: 8b 55 14 mov 0x14(%ebp),%edx 115a1a: 4a dec %edx 115a1b: 89 50 18 mov %edx,0x18(%eax) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 115a1e: 8b 50 08 mov 0x8(%eax),%edx 115a21: 0f b7 fa movzwl %dx,%edi 115a24: 8b 0d bc f5 13 00 mov 0x13f5bc,%ecx 115a2a: 89 04 b9 mov %eax,(%ecx,%edi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 115a2d: 89 58 0c mov %ebx,0xc(%eax) &_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; 115a30: 89 16 mov %edx,(%esi) _Thread_Enable_dispatch(); 115a32: e8 9d 59 00 00 call 11b3d4 <_Thread_Enable_dispatch> 115a37: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 115a39: 8d 65 f4 lea -0xc(%ebp),%esp 115a3c: 5b pop %ebx 115a3d: 5e pop %esi 115a3e: 5f pop %edi 115a3f: c9 leave 115a40: c3 ret 115a41: 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(); 115a44: e8 8b 59 00 00 call 11b3d4 <_Thread_Enable_dispatch> 115a49: b8 05 00 00 00 mov $0x5,%eax return RTEMS_TOO_MANY; 115a4e: eb 82 jmp 1159d2 <== ALWAYS TAKEN 00115a50 : */ rtems_status_code rtems_port_delete( rtems_id id ) { 115a50: 55 push %ebp 115a51: 89 e5 mov %esp,%ebp 115a53: 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 *) 115a56: 8d 45 f4 lea -0xc(%ebp),%eax 115a59: 50 push %eax 115a5a: ff 75 08 pushl 0x8(%ebp) 115a5d: 68 a0 f5 13 00 push $0x13f5a0 115a62: e8 bd 50 00 00 call 11ab24 <_Objects_Get> register Dual_ported_memory_Control *the_port; Objects_Locations location; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 115a67: 83 c4 10 add $0x10,%esp 115a6a: 8b 4d f4 mov -0xc(%ebp),%ecx 115a6d: 85 c9 test %ecx,%ecx 115a6f: 75 2f jne 115aa0 case OBJECTS_LOCAL: _Objects_Close( &_Dual_ported_memory_Information, &the_port->Object ); 115a71: 83 ec 08 sub $0x8,%esp 115a74: 50 push %eax 115a75: 68 a0 f5 13 00 push $0x13f5a0 115a7a: 89 45 e4 mov %eax,-0x1c(%ebp) 115a7d: e8 32 4c 00 00 call 11a6b4 <_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 ); 115a82: 58 pop %eax 115a83: 5a pop %edx 115a84: 8b 45 e4 mov -0x1c(%ebp),%eax 115a87: 50 push %eax 115a88: 68 a0 f5 13 00 push $0x13f5a0 115a8d: e8 26 4f 00 00 call 11a9b8 <_Objects_Free> _Dual_ported_memory_Free( the_port ); _Thread_Enable_dispatch(); 115a92: e8 3d 59 00 00 call 11b3d4 <_Thread_Enable_dispatch> 115a97: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 115a99: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115a9c: c9 leave 115a9d: c3 ret 115a9e: 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 ) { 115aa0: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115aa5: c9 leave 115aa6: c3 ret 00115aa8 : rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) { 115aa8: 55 push %ebp 115aa9: 89 e5 mov %esp,%ebp 115aab: 56 push %esi 115aac: 53 push %ebx 115aad: 83 ec 10 sub $0x10,%esp 115ab0: 8b 75 0c mov 0xc(%ebp),%esi 115ab3: 8b 5d 10 mov 0x10(%ebp),%ebx register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) 115ab6: 85 db test %ebx,%ebx 115ab8: 74 4e je 115b08 RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get ( Objects_Id id, Objects_Locations *location ) { return (Dual_ported_memory_Control *) 115aba: 51 push %ecx 115abb: 8d 45 f4 lea -0xc(%ebp),%eax 115abe: 50 push %eax 115abf: ff 75 08 pushl 0x8(%ebp) 115ac2: 68 a0 f5 13 00 push $0x13f5a0 115ac7: e8 58 50 00 00 call 11ab24 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 115acc: 83 c4 10 add $0x10,%esp 115acf: 8b 55 f4 mov -0xc(%ebp),%edx 115ad2: 85 d2 test %edx,%edx 115ad4: 74 0e je 115ae4 115ad6: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115adb: 8d 65 f8 lea -0x8(%ebp),%esp 115ade: 5b pop %ebx 115adf: 5e pop %esi 115ae0: c9 leave 115ae1: c3 ret 115ae2: 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 ); 115ae4: 89 f2 mov %esi,%edx 115ae6: 2b 50 14 sub 0x14(%eax),%edx if ( ending > the_port->length ) 115ae9: 3b 50 18 cmp 0x18(%eax),%edx 115aec: 77 16 ja 115b04 *internal = external; else *internal = _Addresses_Add_offset( the_port->internal_base, 115aee: 03 50 10 add 0x10(%eax),%edx 115af1: 89 13 mov %edx,(%ebx) ending ); _Thread_Enable_dispatch(); 115af3: e8 dc 58 00 00 call 11b3d4 <_Thread_Enable_dispatch> 115af8: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115afa: 8d 65 f8 lea -0x8(%ebp),%esp 115afd: 5b pop %ebx 115afe: 5e pop %esi 115aff: c9 leave 115b00: c3 ret 115b01: 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; 115b04: 89 33 mov %esi,(%ebx) 115b06: eb eb jmp 115af3 <== ALWAYS TAKEN { register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) 115b08: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115b0d: 8d 65 f8 lea -0x8(%ebp),%esp 115b10: 5b pop %ebx 115b11: 5e pop %esi 115b12: c9 leave 115b13: c3 ret 00115b38 : rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) { 115b38: 55 push %ebp 115b39: 89 e5 mov %esp,%ebp 115b3b: 56 push %esi 115b3c: 53 push %ebx 115b3d: 83 ec 10 sub $0x10,%esp 115b40: 8b 75 0c mov 0xc(%ebp),%esi 115b43: 8b 5d 10 mov 0x10(%ebp),%ebx register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) 115b46: 85 db test %ebx,%ebx 115b48: 74 4e je 115b98 115b4a: 51 push %ecx 115b4b: 8d 45 f4 lea -0xc(%ebp),%eax 115b4e: 50 push %eax 115b4f: ff 75 08 pushl 0x8(%ebp) 115b52: 68 a0 f5 13 00 push $0x13f5a0 115b57: e8 c8 4f 00 00 call 11ab24 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 115b5c: 83 c4 10 add $0x10,%esp 115b5f: 8b 55 f4 mov -0xc(%ebp),%edx 115b62: 85 d2 test %edx,%edx 115b64: 74 0e je 115b74 115b66: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115b6b: 8d 65 f8 lea -0x8(%ebp),%esp 115b6e: 5b pop %ebx 115b6f: 5e pop %esi 115b70: c9 leave 115b71: c3 ret 115b72: 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 ); 115b74: 89 f2 mov %esi,%edx 115b76: 2b 50 10 sub 0x10(%eax),%edx if ( ending > the_port->length ) 115b79: 3b 50 18 cmp 0x18(%eax),%edx 115b7c: 77 16 ja 115b94 *external = internal; else *external = _Addresses_Add_offset( the_port->external_base, 115b7e: 03 50 14 add 0x14(%eax),%edx 115b81: 89 13 mov %edx,(%ebx) ending ); _Thread_Enable_dispatch(); 115b83: e8 4c 58 00 00 call 11b3d4 <_Thread_Enable_dispatch> 115b88: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115b8a: 8d 65 f8 lea -0x8(%ebp),%esp 115b8d: 5b pop %ebx 115b8e: 5e pop %esi 115b8f: c9 leave 115b90: c3 ret 115b91: 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; 115b94: 89 33 mov %esi,(%ebx) 115b96: eb eb jmp 115b83 <== ALWAYS TAKEN { register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) 115b98: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115b9d: 8d 65 f8 lea -0x8(%ebp),%esp 115ba0: 5b pop %ebx 115ba1: 5e pop %esi 115ba2: c9 leave 115ba3: c3 ret 0011660c : */ rtems_status_code rtems_rate_monotonic_cancel( rtems_id id ) { 11660c: 55 push %ebp 11660d: 89 e5 mov %esp,%ebp 11660f: 53 push %ebx 116610: 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 *) 116613: 8d 45 f4 lea -0xc(%ebp),%eax 116616: 50 push %eax 116617: ff 75 08 pushl 0x8(%ebp) 11661a: 68 20 f6 13 00 push $0x13f620 11661f: e8 00 45 00 00 call 11ab24 <_Objects_Get> 116624: 89 c3 mov %eax,%ebx Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 116626: 83 c4 10 add $0x10,%esp 116629: 8b 45 f4 mov -0xc(%ebp),%eax 11662c: 85 c0 test %eax,%eax 11662e: 74 0c je 11663c 116630: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116635: 8b 5d fc mov -0x4(%ebp),%ebx 116638: c9 leave 116639: c3 ret 11663a: 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 ) ) { 11663c: 8b 43 40 mov 0x40(%ebx),%eax 11663f: 3b 05 18 f8 13 00 cmp 0x13f818,%eax 116645: 74 11 je 116658 _Thread_Enable_dispatch(); 116647: e8 88 4d 00 00 call 11b3d4 <_Thread_Enable_dispatch> 11664c: b8 17 00 00 00 mov $0x17,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116651: 8b 5d fc mov -0x4(%ebp),%ebx 116654: c9 leave 116655: c3 ret 116656: 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 ); 116658: 83 ec 0c sub $0xc,%esp 11665b: 8d 43 10 lea 0x10(%ebx),%eax 11665e: 50 push %eax 11665f: e8 40 61 00 00 call 11c7a4 <_Watchdog_Remove> the_period->state = RATE_MONOTONIC_INACTIVE; 116664: c7 43 38 00 00 00 00 movl $0x0,0x38(%ebx) _Thread_Enable_dispatch(); 11666b: e8 64 4d 00 00 call 11b3d4 <_Thread_Enable_dispatch> 116670: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 116672: 83 c4 10 add $0x10,%esp 116675: eb be jmp 116635 <== ALWAYS TAKEN 0010c1a8 : rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) { 10c1a8: 55 push %ebp 10c1a9: 89 e5 mov %esp,%ebp 10c1ab: 57 push %edi 10c1ac: 56 push %esi 10c1ad: 53 push %ebx 10c1ae: 83 ec 1c sub $0x1c,%esp 10c1b1: 8b 5d 08 mov 0x8(%ebp),%ebx 10c1b4: 8b 75 0c mov 0xc(%ebp),%esi Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) 10c1b7: 85 db test %ebx,%ebx 10c1b9: 0f 84 a9 00 00 00 je 10c268 return RTEMS_INVALID_NAME; if ( !id ) 10c1bf: 85 f6 test %esi,%esi 10c1c1: 0f 84 c5 00 00 00 je 10c28c rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10c1c7: a1 58 84 12 00 mov 0x128458,%eax 10c1cc: 40 inc %eax 10c1cd: a3 58 84 12 00 mov %eax,0x128458 * 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 *) 10c1d2: 83 ec 0c sub $0xc,%esp 10c1d5: 68 60 83 12 00 push $0x128360 10c1da: e8 81 1d 00 00 call 10df60 <_Objects_Allocate> 10c1df: 89 c2 mov %eax,%edx _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { 10c1e1: 83 c4 10 add $0x10,%esp 10c1e4: 85 c0 test %eax,%eax 10c1e6: 0f 84 8c 00 00 00 je 10c278 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; 10c1ec: a1 18 85 12 00 mov 0x128518,%eax 10c1f1: 89 42 40 mov %eax,0x40(%edx) the_period->state = RATE_MONOTONIC_INACTIVE; 10c1f4: 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; 10c1fb: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx) the_watchdog->routine = routine; 10c202: c7 42 2c 00 00 00 00 movl $0x0,0x2c(%edx) the_watchdog->id = id; 10c209: c7 42 30 00 00 00 00 movl $0x0,0x30(%edx) the_watchdog->user_data = user_data; 10c210: 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 ); 10c217: 8d 42 54 lea 0x54(%edx),%eax 10c21a: 89 45 e4 mov %eax,-0x1c(%ebp) 10c21d: b9 38 00 00 00 mov $0x38,%ecx 10c222: 31 c0 xor %eax,%eax 10c224: 8b 7d e4 mov -0x1c(%ebp),%edi 10c227: f3 aa rep stos %al,%es:(%edi) 10c229: c7 42 5c ff ff ff 7f movl $0x7fffffff,0x5c(%edx) 10c230: c7 42 60 ff ff ff 7f movl $0x7fffffff,0x60(%edx) 10c237: c7 42 74 ff ff ff 7f movl $0x7fffffff,0x74(%edx) 10c23e: 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; 10c245: 8b 42 08 mov 0x8(%edx),%eax 10c248: 0f b7 f8 movzwl %ax,%edi 10c24b: 8b 0d 7c 83 12 00 mov 0x12837c,%ecx 10c251: 89 14 b9 mov %edx,(%ecx,%edi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 10c254: 89 5a 0c mov %ebx,0xc(%edx) &_Rate_monotonic_Information, &the_period->Object, (Objects_Name) name ); *id = the_period->Object.id; 10c257: 89 06 mov %eax,(%esi) _Thread_Enable_dispatch(); 10c259: e8 be 2a 00 00 call 10ed1c <_Thread_Enable_dispatch> 10c25e: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 10c260: 8d 65 f4 lea -0xc(%ebp),%esp 10c263: 5b pop %ebx 10c264: 5e pop %esi 10c265: 5f pop %edi 10c266: c9 leave 10c267: c3 ret rtems_id *id ) { Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) 10c268: b8 03 00 00 00 mov $0x3,%eax ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10c26d: 8d 65 f4 lea -0xc(%ebp),%esp 10c270: 5b pop %ebx 10c271: 5e pop %esi 10c272: 5f pop %edi 10c273: c9 leave 10c274: c3 ret 10c275: 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(); 10c278: e8 9f 2a 00 00 call 10ed1c <_Thread_Enable_dispatch> 10c27d: b8 05 00 00 00 mov $0x5,%eax ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10c282: 8d 65 f4 lea -0xc(%ebp),%esp 10c285: 5b pop %ebx 10c286: 5e pop %esi 10c287: 5f pop %edi 10c288: c9 leave 10c289: c3 ret 10c28a: 66 90 xchg %ax,%ax <== NOT EXECUTED Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 10c28c: b8 09 00 00 00 mov $0x9,%eax ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10c291: 8d 65 f4 lea -0xc(%ebp),%esp 10c294: 5b pop %ebx 10c295: 5e pop %esi 10c296: 5f pop %edi 10c297: c9 leave 10c298: c3 ret 0013c0c0 : rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { 13c0c0: 55 push %ebp 13c0c1: 89 e5 mov %esp,%ebp 13c0c3: 53 push %ebx 13c0c4: 83 ec 24 sub $0x24,%esp 13c0c7: 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 ) 13c0ca: 85 db test %ebx,%ebx 13c0cc: 0f 84 92 00 00 00 je 13c164 13c0d2: 50 push %eax 13c0d3: 8d 45 f4 lea -0xc(%ebp),%eax 13c0d6: 50 push %eax 13c0d7: ff 75 08 pushl 0x8(%ebp) 13c0da: 68 00 de 16 00 push $0x16de00 13c0df: e8 50 6e fd ff call 112f34 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 13c0e4: 83 c4 10 add $0x10,%esp 13c0e7: 8b 4d f4 mov -0xc(%ebp),%ecx 13c0ea: 85 c9 test %ecx,%ecx 13c0ec: 74 0a je 13c0f8 13c0ee: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13c0f3: 8b 5d fc mov -0x4(%ebp),%ebx 13c0f6: c9 leave 13c0f7: c3 ret the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; 13c0f8: 8b 50 40 mov 0x40(%eax),%edx 13c0fb: 8b 52 08 mov 0x8(%edx),%edx 13c0fe: 89 13 mov %edx,(%ebx) status->state = the_period->state; 13c100: 8b 50 38 mov 0x38(%eax),%edx 13c103: 89 53 04 mov %edx,0x4(%ebx) /* * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) { 13c106: 85 d2 test %edx,%edx 13c108: 75 2a jne 13c134 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timespec_Set_to_zero( &status->since_last_period ); 13c10a: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 13c111: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) _Timespec_Set_to_zero( &status->executed_since_last_period ); 13c118: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) 13c11f: 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(); 13c126: e8 01 77 fd ff call 11382c <_Thread_Enable_dispatch> 13c12b: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13c12d: 8b 5d fc mov -0x4(%ebp),%ebx 13c130: c9 leave 13c131: c3 ret 13c132: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Grab the current status. */ valid_status = _Rate_monotonic_Get_status( 13c134: 52 push %edx 13c135: 8d 55 ec lea -0x14(%ebp),%edx 13c138: 52 push %edx 13c139: 8d 55 e4 lea -0x1c(%ebp),%edx 13c13c: 52 push %edx 13c13d: 50 push %eax 13c13e: e8 b1 00 00 00 call 13c1f4 <_Rate_monotonic_Get_status> <== ALWAYS TAKEN the_period, &since_last_period, &executed ); if (!valid_status) { 13c143: 83 c4 10 add $0x10,%esp 13c146: 84 c0 test %al,%al 13c148: 74 26 je 13c170 _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( 13c14a: 8b 45 e4 mov -0x1c(%ebp),%eax 13c14d: 8b 55 e8 mov -0x18(%ebp),%edx 13c150: 89 43 08 mov %eax,0x8(%ebx) 13c153: 89 53 0c mov %edx,0xc(%ebx) &since_last_period, &status->since_last_period ); _Timestamp_To_timespec( 13c156: 8b 45 ec mov -0x14(%ebp),%eax 13c159: 8b 55 f0 mov -0x10(%ebp),%edx 13c15c: 89 43 10 mov %eax,0x10(%ebx) 13c15f: 89 53 14 mov %edx,0x14(%ebx) 13c162: eb c2 jmp 13c126 <== ALWAYS TAKEN Objects_Locations location; Rate_monotonic_Period_time_t since_last_period; Rate_monotonic_Control *the_period; bool valid_status; if ( !status ) 13c164: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13c169: 8b 5d fc mov -0x4(%ebp),%ebx 13c16c: c9 leave 13c16d: c3 ret 13c16e: 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(); 13c170: e8 b7 76 fd ff call 11382c <_Thread_Enable_dispatch> 13c175: b8 0b 00 00 00 mov $0xb,%eax return RTEMS_NOT_DEFINED; 13c17a: e9 74 ff ff ff jmp 13c0f3 <== ALWAYS TAKEN 0013c37c : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { 13c37c: 55 push %ebp 13c37d: 89 e5 mov %esp,%ebp 13c37f: 57 push %edi 13c380: 56 push %esi 13c381: 53 push %ebx 13c382: 83 ec 30 sub $0x30,%esp 13c385: 8b 5d 08 mov 0x8(%ebp),%ebx 13c388: 8b 75 0c mov 0xc(%ebp),%esi 13c38b: 8d 45 e4 lea -0x1c(%ebp),%eax 13c38e: 50 push %eax 13c38f: 53 push %ebx 13c390: 68 00 de 16 00 push $0x16de00 13c395: e8 9a 6b fd ff call 112f34 <_Objects_Get> rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 13c39a: 83 c4 10 add $0x10,%esp 13c39d: 8b 7d e4 mov -0x1c(%ebp),%edi 13c3a0: 85 ff test %edi,%edi 13c3a2: 74 10 je 13c3b4 the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_TIMEOUT; 13c3a4: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13c3a9: 8d 65 f4 lea -0xc(%ebp),%esp 13c3ac: 5b pop %ebx 13c3ad: 5e pop %esi 13c3ae: 5f pop %edi 13c3af: c9 leave 13c3b0: c3 ret 13c3b1: 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 ) ) { 13c3b4: 8b 50 40 mov 0x40(%eax),%edx 13c3b7: 3b 15 38 d9 16 00 cmp 0x16d938,%edx 13c3bd: 74 15 je 13c3d4 _Thread_Enable_dispatch(); 13c3bf: e8 68 74 fd ff call 11382c <_Thread_Enable_dispatch> 13c3c4: b8 17 00 00 00 mov $0x17,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13c3c9: 8d 65 f4 lea -0xc(%ebp),%esp 13c3cc: 5b pop %ebx 13c3cd: 5e pop %esi 13c3ce: 5f pop %edi 13c3cf: c9 leave 13c3d0: c3 ret 13c3d1: 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 ) { 13c3d4: 85 f6 test %esi,%esi 13c3d6: 0f 84 b0 00 00 00 je 13c48c } _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); 13c3dc: 9c pushf 13c3dd: fa cli 13c3de: 5f pop %edi switch ( the_period->state ) { 13c3df: 8b 50 38 mov 0x38(%eax),%edx 13c3e2: 83 fa 02 cmp $0x2,%edx 13c3e5: 0f 84 bd 00 00 00 je 13c4a8 13c3eb: 83 fa 04 cmp $0x4,%edx 13c3ee: 74 5c je 13c44c 13c3f0: 85 d2 test %edx,%edx 13c3f2: 75 b0 jne 13c3a4 <== ALWAYS TAKEN case RATE_MONOTONIC_INACTIVE: { _ISR_Enable( level ); 13c3f4: 57 push %edi 13c3f5: 9d popf /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 13c3f6: 83 ec 0c sub $0xc,%esp 13c3f9: 50 push %eax 13c3fa: 89 45 d4 mov %eax,-0x2c(%ebp) 13c3fd: e8 7e fd ff ff call 13c180 <_Rate_monotonic_Initiate_statistics> <== ALWAYS TAKEN the_period->state = RATE_MONOTONIC_ACTIVE; 13c402: 8b 45 d4 mov -0x2c(%ebp),%eax 13c405: 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; 13c40c: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) the_watchdog->routine = routine; 13c413: c7 40 2c 2c c5 13 00 movl $0x13c52c,0x2c(%eax) the_watchdog->id = id; 13c41a: 89 58 30 mov %ebx,0x30(%eax) the_watchdog->user_data = user_data; 13c41d: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; 13c424: 89 70 3c mov %esi,0x3c(%eax) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 13c427: 89 70 1c mov %esi,0x1c(%eax) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 13c42a: 5a pop %edx 13c42b: 59 pop %ecx 13c42c: 83 c0 10 add $0x10,%eax 13c42f: 50 push %eax 13c430: 68 58 d9 16 00 push $0x16d958 13c435: e8 ca 82 fd ff call 114704 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 13c43a: e8 ed 73 fd ff call 11382c <_Thread_Enable_dispatch> 13c43f: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 13c441: 83 c4 10 add $0x10,%esp 13c444: e9 60 ff ff ff jmp 13c3a9 <== ALWAYS TAKEN 13c449: 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 ); 13c44c: 83 ec 0c sub $0xc,%esp 13c44f: 50 push %eax 13c450: 89 45 d4 mov %eax,-0x2c(%ebp) 13c453: e8 34 fe ff ff call 13c28c <_Rate_monotonic_Update_statistics> <== ALWAYS TAKEN _ISR_Enable( level ); 13c458: 57 push %edi 13c459: 9d popf the_period->state = RATE_MONOTONIC_ACTIVE; 13c45a: 8b 45 d4 mov -0x2c(%ebp),%eax 13c45d: c7 40 38 02 00 00 00 movl $0x2,0x38(%eax) the_period->next_length = length; 13c464: 89 70 3c mov %esi,0x3c(%eax) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 13c467: 89 70 1c mov %esi,0x1c(%eax) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 13c46a: 59 pop %ecx 13c46b: 5b pop %ebx 13c46c: 83 c0 10 add $0x10,%eax 13c46f: 50 push %eax 13c470: 68 58 d9 16 00 push $0x16d958 13c475: e8 8a 82 fd ff call 114704 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 13c47a: e8 ad 73 fd ff call 11382c <_Thread_Enable_dispatch> 13c47f: b8 06 00 00 00 mov $0x6,%eax return RTEMS_TIMEOUT; 13c484: 83 c4 10 add $0x10,%esp 13c487: e9 1d ff ff ff jmp 13c3a9 <== ALWAYS TAKEN _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { switch ( the_period->state ) { 13c48c: 8b 40 38 mov 0x38(%eax),%eax 13c48f: 83 f8 04 cmp $0x4,%eax 13c492: 76 74 jbe 13c508 <== NEVER TAKEN 13c494: 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(); 13c496: 89 45 d4 mov %eax,-0x2c(%ebp) 13c499: e8 8e 73 fd ff call 11382c <_Thread_Enable_dispatch> return( return_value ); 13c49e: 8b 45 d4 mov -0x2c(%ebp),%eax 13c4a1: e9 03 ff ff ff jmp 13c3a9 <== ALWAYS TAKEN 13c4a6: 66 90 xchg %ax,%ax <== NOT EXECUTED case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); 13c4a8: 83 ec 0c sub $0xc,%esp 13c4ab: 50 push %eax 13c4ac: 89 45 d4 mov %eax,-0x2c(%ebp) 13c4af: e8 d8 fd ff ff call 13c28c <_Rate_monotonic_Update_statistics> <== ALWAYS TAKEN /* * 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; 13c4b4: 8b 45 d4 mov -0x2c(%ebp),%eax 13c4b7: c7 40 38 01 00 00 00 movl $0x1,0x38(%eax) the_period->next_length = length; 13c4be: 89 70 3c mov %esi,0x3c(%eax) _ISR_Enable( level ); 13c4c1: 57 push %edi 13c4c2: 9d popf _Thread_Executing->Wait.id = the_period->Object.id; 13c4c3: 8b 15 38 d9 16 00 mov 0x16d938,%edx 13c4c9: 8b 48 08 mov 0x8(%eax),%ecx 13c4cc: 89 4a 20 mov %ecx,0x20(%edx) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 13c4cf: 5e pop %esi 13c4d0: 5f pop %edi 13c4d1: 68 00 40 00 00 push $0x4000 13c4d6: 52 push %edx 13c4d7: 89 45 d4 mov %eax,-0x2c(%ebp) 13c4da: e8 d5 7b fd ff call 1140b4 <_Thread_Set_state> /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); 13c4df: 9c pushf 13c4e0: fa cli 13c4e1: 59 pop %ecx local_state = the_period->state; 13c4e2: 8b 45 d4 mov -0x2c(%ebp),%eax 13c4e5: 8b 50 38 mov 0x38(%eax),%edx the_period->state = RATE_MONOTONIC_ACTIVE; 13c4e8: c7 40 38 02 00 00 00 movl $0x2,0x38(%eax) _ISR_Enable( level ); 13c4ef: 51 push %ecx 13c4f0: 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 ) 13c4f1: 83 c4 10 add $0x10,%esp 13c4f4: 83 fa 03 cmp $0x3,%edx 13c4f7: 74 18 je 13c511 _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); _Thread_Enable_dispatch(); 13c4f9: e8 2e 73 fd ff call 11382c <_Thread_Enable_dispatch> 13c4fe: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 13c500: e9 a4 fe ff ff jmp 13c3a9 <== ALWAYS TAKEN 13c505: 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 ) { 13c508: 8b 04 85 14 22 16 00 mov 0x162214(,%eax,4),%eax 13c50f: eb 85 jmp 13c496 <== ALWAYS TAKEN /* * 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 ); 13c511: 83 ec 08 sub $0x8,%esp 13c514: 68 00 40 00 00 push $0x4000 13c519: ff 35 38 d9 16 00 pushl 0x16d938 13c51f: e8 60 6f fd ff call 113484 <_Thread_Clear_state> 13c524: 83 c4 10 add $0x10,%esp 13c527: eb d0 jmp 13c4f9 <== ALWAYS TAKEN 0012d2c4 : } } } void rtems_rate_monotonic_report_statistics( void ) { 12d2c4: 55 push %ebp 12d2c5: 89 e5 mov %esp,%ebp 12d2c7: 83 ec 10 sub $0x10,%esp rtems_rate_monotonic_report_statistics_with_plugin( NULL, printk_plugin ); 12d2ca: 68 c8 df 10 00 push $0x10dfc8 12d2cf: 6a 00 push $0x0 12d2d1: e8 0a fe ff ff call 12d0e0 <== ALWAYS TAKEN 12d2d6: 83 c4 10 add $0x10,%esp } 12d2d9: c9 leave 12d2da: c3 ret 0012d0e0 : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 12d0e0: 55 push %ebp 12d0e1: 89 e5 mov %esp,%ebp 12d0e3: 57 push %edi 12d0e4: 56 push %esi 12d0e5: 53 push %ebx 12d0e6: 83 ec 7c sub $0x7c,%esp 12d0e9: 8b 7d 08 mov 0x8(%ebp),%edi 12d0ec: 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 ) 12d0ef: 85 f6 test %esi,%esi 12d0f1: 0f 84 bd 00 00 00 je 12d1b4 <== ALWAYS TAKEN return; (*print)( context, "Period information by period\n" ); 12d0f7: 83 ec 08 sub $0x8,%esp 12d0fa: 68 28 e9 15 00 push $0x15e928 12d0ff: 57 push %edi 12d100: ff d6 call *%esi #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); 12d102: 59 pop %ecx 12d103: 5b pop %ebx 12d104: 68 60 e9 15 00 push $0x15e960 12d109: 57 push %edi 12d10a: ff d6 call *%esi (*print)( context, "--- Wall times are in seconds ---\n" ); 12d10c: 58 pop %eax 12d10d: 5a pop %edx 12d10e: 68 84 e9 15 00 push $0x15e984 12d113: 57 push %edi 12d114: ff d6 call *%esi Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " 12d116: 59 pop %ecx 12d117: 5b pop %ebx 12d118: 68 a8 e9 15 00 push $0x15e9a8 12d11d: 57 push %edi 12d11e: ff d6 call *%esi #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " 12d120: 58 pop %eax 12d121: 5a pop %edx 12d122: 68 f4 e9 15 00 push $0x15e9f4 12d127: 57 push %edi 12d128: 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 ; 12d12a: 8b 1d 08 de 16 00 mov 0x16de08,%ebx 12d130: 83 c4 10 add $0x10,%esp 12d133: 3b 1d 0c de 16 00 cmp 0x16de0c,%ebx 12d139: 77 79 ja 12d1b4 <== 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); 12d13b: 89 75 84 mov %esi,-0x7c(%ebp) 12d13e: eb 09 jmp 12d149 <== ALWAYS TAKEN * 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++ ) { 12d140: 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 ; 12d141: 39 1d 0c de 16 00 cmp %ebx,0x16de0c 12d147: 72 6b jb 12d1b4 id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); 12d149: 83 ec 08 sub $0x8,%esp 12d14c: 8d 45 88 lea -0x78(%ebp),%eax 12d14f: 50 push %eax 12d150: 53 push %ebx 12d151: e8 be ee 00 00 call 13c014 if ( status != RTEMS_SUCCESSFUL ) 12d156: 83 c4 10 add $0x10,%esp 12d159: 85 c0 test %eax,%eax 12d15b: 75 e3 jne 12d140 continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); 12d15d: 83 ec 08 sub $0x8,%esp 12d160: 8d 55 c0 lea -0x40(%ebp),%edx 12d163: 52 push %edx 12d164: 53 push %ebx 12d165: e8 56 ef 00 00 call 13c0c0 #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); 12d16a: 83 c4 0c add $0xc,%esp 12d16d: 8d 45 e3 lea -0x1d(%ebp),%eax 12d170: 50 push %eax 12d171: 6a 05 push $0x5 12d173: ff 75 c0 pushl -0x40(%ebp) 12d176: e8 c1 41 fe ff call 11133c <== ALWAYS TAKEN /* * Print part of report line that is not dependent on granularity */ (*print)( context, 12d17b: 59 pop %ecx 12d17c: 5e pop %esi 12d17d: ff 75 8c pushl -0x74(%ebp) 12d180: ff 75 88 pushl -0x78(%ebp) 12d183: 8d 55 e3 lea -0x1d(%ebp),%edx 12d186: 52 push %edx 12d187: 53 push %ebx 12d188: 68 46 e9 15 00 push $0x15e946 12d18d: 57 push %edi 12d18e: ff 55 84 call *-0x7c(%ebp) ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 12d191: 8b 45 88 mov -0x78(%ebp),%eax 12d194: 83 c4 20 add $0x20,%esp 12d197: 85 c0 test %eax,%eax 12d199: 75 21 jne 12d1bc (*print)( context, "\n" ); 12d19b: 83 ec 08 sub $0x8,%esp 12d19e: 68 21 07 16 00 push $0x160721 12d1a3: 57 push %edi 12d1a4: ff 55 84 call *-0x7c(%ebp) continue; 12d1a7: 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++ ) { 12d1aa: 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 ; 12d1ab: 39 1d 0c de 16 00 cmp %ebx,0x16de0c 12d1b1: 73 96 jae 12d149 <== NEVER TAKEN 12d1b3: 90 nop <== NOT EXECUTED the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } 12d1b4: 8d 65 f4 lea -0xc(%ebp),%esp 12d1b7: 5b pop %ebx 12d1b8: 5e pop %esi 12d1b9: 5f pop %edi 12d1ba: c9 leave 12d1bb: 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 ); 12d1bc: 52 push %edx 12d1bd: 8d 55 d8 lea -0x28(%ebp),%edx 12d1c0: 52 push %edx 12d1c1: 50 push %eax 12d1c2: 8d 45 a0 lea -0x60(%ebp),%eax 12d1c5: 50 push %eax 12d1c6: e8 a5 16 00 00 call 12e870 <_Timespec_Divide_by_integer> (*print)( context, 12d1cb: 8b 4d dc mov -0x24(%ebp),%ecx 12d1ce: be d3 4d 62 10 mov $0x10624dd3,%esi 12d1d3: 89 c8 mov %ecx,%eax 12d1d5: f7 ee imul %esi 12d1d7: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d1dd: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d1e3: c1 f8 06 sar $0x6,%eax 12d1e6: c1 f9 1f sar $0x1f,%ecx 12d1e9: 29 c8 sub %ecx,%eax 12d1eb: 50 push %eax 12d1ec: ff 75 d8 pushl -0x28(%ebp) 12d1ef: 8b 4d 9c mov -0x64(%ebp),%ecx 12d1f2: 89 c8 mov %ecx,%eax 12d1f4: f7 ee imul %esi 12d1f6: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d1fc: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d202: c1 f8 06 sar $0x6,%eax 12d205: c1 f9 1f sar $0x1f,%ecx 12d208: 29 c8 sub %ecx,%eax 12d20a: 50 push %eax 12d20b: ff 75 98 pushl -0x68(%ebp) 12d20e: 8b 4d 94 mov -0x6c(%ebp),%ecx 12d211: 89 c8 mov %ecx,%eax 12d213: f7 ee imul %esi 12d215: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) 12d21b: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d221: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d227: c1 f8 06 sar $0x6,%eax 12d22a: c1 f9 1f sar $0x1f,%ecx 12d22d: 29 c8 sub %ecx,%eax 12d22f: 50 push %eax 12d230: ff 75 90 pushl -0x70(%ebp) 12d233: 68 40 ea 15 00 push $0x15ea40 12d238: 57 push %edi 12d239: 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); 12d23c: 83 c4 2c add $0x2c,%esp 12d23f: 8d 55 d8 lea -0x28(%ebp),%edx 12d242: 52 push %edx 12d243: ff 75 88 pushl -0x78(%ebp) 12d246: 8d 45 b8 lea -0x48(%ebp),%eax 12d249: 50 push %eax 12d24a: e8 21 16 00 00 call 12e870 <_Timespec_Divide_by_integer> (*print)( context, 12d24f: 8b 4d dc mov -0x24(%ebp),%ecx 12d252: 89 c8 mov %ecx,%eax 12d254: f7 ee imul %esi 12d256: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d25c: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d262: c1 f8 06 sar $0x6,%eax 12d265: c1 f9 1f sar $0x1f,%ecx 12d268: 29 c8 sub %ecx,%eax 12d26a: 50 push %eax 12d26b: ff 75 d8 pushl -0x28(%ebp) 12d26e: 8b 4d b4 mov -0x4c(%ebp),%ecx 12d271: 89 c8 mov %ecx,%eax 12d273: f7 ee imul %esi 12d275: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d27b: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d281: c1 f8 06 sar $0x6,%eax 12d284: c1 f9 1f sar $0x1f,%ecx 12d287: 29 c8 sub %ecx,%eax 12d289: 50 push %eax 12d28a: ff 75 b0 pushl -0x50(%ebp) 12d28d: 8b 4d ac mov -0x54(%ebp),%ecx 12d290: 89 c8 mov %ecx,%eax 12d292: f7 ee imul %esi 12d294: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) 12d29a: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d2a0: 8b b5 7c ff ff ff mov -0x84(%ebp),%esi 12d2a6: c1 fe 06 sar $0x6,%esi 12d2a9: 89 c8 mov %ecx,%eax 12d2ab: 99 cltd 12d2ac: 29 d6 sub %edx,%esi 12d2ae: 56 push %esi 12d2af: ff 75 a8 pushl -0x58(%ebp) 12d2b2: 68 60 ea 15 00 push $0x15ea60 12d2b7: 57 push %edi 12d2b8: ff 55 84 call *-0x7c(%ebp) 12d2bb: 83 c4 30 add $0x30,%esp 12d2be: e9 7d fe ff ff jmp 12d140 <== ALWAYS TAKEN 0012d2dc : /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) { 12d2dc: 55 push %ebp 12d2dd: 89 e5 mov %esp,%ebp 12d2df: 53 push %ebx 12d2e0: 83 ec 04 sub $0x4,%esp 12d2e3: a1 78 d8 16 00 mov 0x16d878,%eax 12d2e8: 40 inc %eax 12d2e9: a3 78 d8 16 00 mov %eax,0x16d878 /* * 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 ; 12d2ee: 8b 1d 08 de 16 00 mov 0x16de08,%ebx 12d2f4: 3b 1d 0c de 16 00 cmp 0x16de0c,%ebx 12d2fa: 77 15 ja 12d311 <== ALWAYS TAKEN id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_reset_statistics( id ); 12d2fc: 83 ec 0c sub $0xc,%esp 12d2ff: 53 push %ebx 12d300: e8 17 00 00 00 call 12d31c <== ALWAYS TAKEN * 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++ ) { 12d305: 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 ; 12d306: 83 c4 10 add $0x10,%esp 12d309: 39 1d 0c de 16 00 cmp %ebx,0x16de0c 12d30f: 73 eb jae 12d2fc /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); } 12d311: 8b 5d fc mov -0x4(%ebp),%ebx 12d314: c9 leave } /* * Done so exit thread dispatching disabled critical section. */ _Thread_Enable_dispatch(); 12d315: e9 12 65 fe ff jmp 11382c <_Thread_Enable_dispatch> 0012d31c : */ rtems_status_code rtems_rate_monotonic_reset_statistics( rtems_id id ) { 12d31c: 55 push %ebp 12d31d: 89 e5 mov %esp,%ebp 12d31f: 57 push %edi 12d320: 53 push %ebx 12d321: 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 *) 12d324: 8d 45 f4 lea -0xc(%ebp),%eax 12d327: 50 push %eax 12d328: ff 75 08 pushl 0x8(%ebp) 12d32b: 68 00 de 16 00 push $0x16de00 12d330: e8 ff 5b fe ff call 112f34 <_Objects_Get> 12d335: 89 c2 mov %eax,%edx Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 12d337: 83 c4 10 add $0x10,%esp 12d33a: 8b 45 f4 mov -0xc(%ebp),%eax 12d33d: 85 c0 test %eax,%eax 12d33f: 75 3b jne 12d37c case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period ); 12d341: 8d 5a 54 lea 0x54(%edx),%ebx 12d344: b9 38 00 00 00 mov $0x38,%ecx 12d349: 31 c0 xor %eax,%eax 12d34b: 89 df mov %ebx,%edi 12d34d: f3 aa rep stos %al,%es:(%edi) 12d34f: c7 42 5c ff ff ff 7f movl $0x7fffffff,0x5c(%edx) 12d356: c7 42 60 ff ff ff 7f movl $0x7fffffff,0x60(%edx) 12d35d: c7 42 74 ff ff ff 7f movl $0x7fffffff,0x74(%edx) 12d364: c7 42 78 ff ff ff 7f movl $0x7fffffff,0x78(%edx) _Thread_Enable_dispatch(); 12d36b: e8 bc 64 fe ff call 11382c <_Thread_Enable_dispatch> 12d370: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12d372: 8d 65 f8 lea -0x8(%ebp),%esp 12d375: 5b pop %ebx 12d376: 5f pop %edi 12d377: c9 leave 12d378: c3 ret 12d379: 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 ) { 12d37c: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12d381: 8d 65 f8 lea -0x8(%ebp),%esp 12d384: 5b pop %ebx 12d385: 5f pop %edi 12d386: c9 leave 12d387: c3 ret 00116db0 : uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { 116db0: 55 push %ebp 116db1: 89 e5 mov %esp,%ebp 116db3: 57 push %edi 116db4: 56 push %esi 116db5: 53 push %ebx 116db6: 83 ec 1c sub $0x1c,%esp 116db9: 8b 75 08 mov 0x8(%ebp),%esi 116dbc: 8b 5d 0c mov 0xc(%ebp),%ebx 116dbf: 8b 7d 1c mov 0x1c(%ebp),%edi rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) 116dc2: 85 f6 test %esi,%esi 116dc4: 0f 84 92 00 00 00 je 116e5c return RTEMS_INVALID_NAME; if ( !starting_address ) 116dca: 85 db test %ebx,%ebx 116dcc: 74 09 je 116dd7 return RTEMS_INVALID_ADDRESS; if ( !id ) 116dce: 85 ff test %edi,%edi 116dd0: 74 05 je 116dd7 return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( starting_address ) ) 116dd2: f6 c3 03 test $0x3,%bl 116dd5: 74 0d je 116de4 return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); return return_status; 116dd7: b8 09 00 00 00 mov $0x9,%eax } 116ddc: 8d 65 f4 lea -0xc(%ebp),%esp 116ddf: 5b pop %ebx 116de0: 5e pop %esi 116de1: 5f pop %edi 116de2: c9 leave 116de3: c3 ret return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( starting_address ) ) return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 116de4: 83 ec 0c sub $0xc,%esp 116de7: ff 35 10 f8 13 00 pushl 0x13f810 116ded: e8 fe 24 00 00 call 1192f0 <_API_Mutex_Lock> <== ALWAYS TAKEN * 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 ); 116df2: c7 04 24 60 f6 13 00 movl $0x13f660,(%esp) 116df9: e8 3a 38 00 00 call 11a638 <_Objects_Allocate> 116dfe: 89 c2 mov %eax,%edx the_region = _Region_Allocate(); if ( !the_region ) 116e00: 83 c4 10 add $0x10,%esp 116e03: 85 c0 test %eax,%eax 116e05: 74 65 je 116e6c return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( 116e07: ff 75 14 pushl 0x14(%ebp) 116e0a: ff 75 10 pushl 0x10(%ebp) 116e0d: 53 push %ebx 116e0e: 8d 40 68 lea 0x68(%eax),%eax 116e11: 50 push %eax 116e12: 89 55 e4 mov %edx,-0x1c(%ebp) 116e15: e8 02 33 00 00 call 11a11c <_Heap_Initialize> 116e1a: 8b 55 e4 mov -0x1c(%ebp),%edx 116e1d: 89 42 5c mov %eax,0x5c(%edx) &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { 116e20: 83 c4 10 add $0x10,%esp 116e23: 85 c0 test %eax,%eax 116e25: 75 4d jne 116e74 */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); 116e27: 83 ec 08 sub $0x8,%esp 116e2a: 52 push %edx 116e2b: 68 60 f6 13 00 push $0x13f660 116e30: e8 83 3b 00 00 call 11a9b8 <_Objects_Free> 116e35: b8 08 00 00 00 mov $0x8,%eax 116e3a: 83 c4 10 add $0x10,%esp *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); 116e3d: 83 ec 0c sub $0xc,%esp 116e40: ff 35 10 f8 13 00 pushl 0x13f810 116e46: 89 45 e4 mov %eax,-0x1c(%ebp) 116e49: e8 ea 24 00 00 call 119338 <_API_Mutex_Unlock> <== ALWAYS TAKEN return return_status; 116e4e: 83 c4 10 add $0x10,%esp 116e51: 8b 45 e4 mov -0x1c(%ebp),%eax } 116e54: 8d 65 f4 lea -0xc(%ebp),%esp 116e57: 5b pop %ebx 116e58: 5e pop %esi 116e59: 5f pop %edi 116e5a: c9 leave 116e5b: c3 ret ) { rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) 116e5c: b8 03 00 00 00 mov $0x3,%eax } } _RTEMS_Unlock_allocator(); return return_status; } 116e61: 8d 65 f4 lea -0xc(%ebp),%esp 116e64: 5b pop %ebx 116e65: 5e pop %esi 116e66: 5f pop %edi 116e67: c9 leave 116e68: c3 ret 116e69: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Allocate(); if ( !the_region ) 116e6c: b8 05 00 00 00 mov $0x5,%eax 116e71: eb ca jmp 116e3d <== ALWAYS TAKEN 116e73: 90 nop <== NOT EXECUTED return_status = RTEMS_INVALID_SIZE; } else { the_region->starting_address = starting_address; 116e74: 89 5a 50 mov %ebx,0x50(%edx) the_region->length = length; 116e77: 8b 45 10 mov 0x10(%ebp),%eax 116e7a: 89 42 54 mov %eax,0x54(%edx) the_region->page_size = page_size; 116e7d: 8b 45 14 mov 0x14(%ebp),%eax 116e80: 89 42 58 mov %eax,0x58(%edx) the_region->attribute_set = attribute_set; 116e83: 8b 45 18 mov 0x18(%ebp),%eax 116e86: 89 42 60 mov %eax,0x60(%edx) the_region->number_of_used_blocks = 0; 116e89: c7 42 64 00 00 00 00 movl $0x0,0x64(%edx) _Thread_queue_Initialize( 116e90: 6a 06 push $0x6 116e92: 6a 40 push $0x40 116e94: 8b 45 18 mov 0x18(%ebp),%eax 116e97: c1 e8 02 shr $0x2,%eax 116e9a: 83 e0 01 and $0x1,%eax 116e9d: 50 push %eax 116e9e: 8d 42 10 lea 0x10(%edx),%eax 116ea1: 50 push %eax 116ea2: 89 55 e4 mov %edx,-0x1c(%ebp) 116ea5: e8 8a 4c 00 00 call 11bb34 <_Thread_queue_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 116eaa: 8b 55 e4 mov -0x1c(%ebp),%edx 116ead: 8b 42 08 mov 0x8(%edx),%eax 116eb0: 0f b7 d8 movzwl %ax,%ebx 116eb3: 8b 0d 7c f6 13 00 mov 0x13f67c,%ecx 116eb9: 89 14 99 mov %edx,(%ecx,%ebx,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 116ebc: 89 72 0c mov %esi,0xc(%edx) &_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; 116ebf: 89 07 mov %eax,(%edi) 116ec1: 31 c0 xor %eax,%eax 116ec3: 83 c4 10 add $0x10,%esp 116ec6: e9 72 ff ff ff jmp 116e3d <== ALWAYS TAKEN 00116ecc : */ rtems_status_code rtems_region_delete( rtems_id id ) { 116ecc: 55 push %ebp 116ecd: 89 e5 mov %esp,%ebp 116ecf: 53 push %ebx 116ed0: 83 ec 30 sub $0x30,%esp Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator(); 116ed3: ff 35 10 f8 13 00 pushl 0x13f810 116ed9: e8 12 24 00 00 call 1192f0 <_API_Mutex_Lock> RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 116ede: 83 c4 0c add $0xc,%esp 116ee1: 8d 45 f4 lea -0xc(%ebp),%eax 116ee4: 50 push %eax 116ee5: ff 75 08 pushl 0x8(%ebp) 116ee8: 68 60 f6 13 00 push $0x13f660 116eed: e8 f6 3b 00 00 call 11aae8 <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 116ef2: 83 c4 10 add $0x10,%esp 116ef5: 8b 5d f4 mov -0xc(%ebp),%ebx 116ef8: 85 db test %ebx,%ebx 116efa: 74 1c je 116f18 116efc: bb 04 00 00 00 mov $0x4,%ebx default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 116f01: 83 ec 0c sub $0xc,%esp 116f04: ff 35 10 f8 13 00 pushl 0x13f810 116f0a: e8 29 24 00 00 call 119338 <_API_Mutex_Unlock> return return_status; } 116f0f: 89 d8 mov %ebx,%eax 116f11: 8b 5d fc mov -0x4(%ebp),%ebx 116f14: c9 leave 116f15: c3 ret 116f16: 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 ) 116f18: 8b 48 64 mov 0x64(%eax),%ecx 116f1b: 85 c9 test %ecx,%ecx 116f1d: 74 09 je 116f28 116f1f: bb 0c 00 00 00 mov $0xc,%ebx 116f24: eb db jmp 116f01 <== ALWAYS TAKEN 116f26: 66 90 xchg %ax,%ax <== NOT EXECUTED return_status = RTEMS_RESOURCE_IN_USE; else { _Objects_Close( &_Region_Information, &the_region->Object ); 116f28: 83 ec 08 sub $0x8,%esp 116f2b: 50 push %eax 116f2c: 68 60 f6 13 00 push $0x13f660 116f31: 89 45 e4 mov %eax,-0x1c(%ebp) 116f34: e8 7b 37 00 00 call 11a6b4 <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); 116f39: 58 pop %eax 116f3a: 5a pop %edx 116f3b: 8b 45 e4 mov -0x1c(%ebp),%eax 116f3e: 50 push %eax 116f3f: 68 60 f6 13 00 push $0x13f660 116f44: e8 6f 3a 00 00 call 11a9b8 <_Objects_Free> 116f49: 31 db xor %ebx,%ebx 116f4b: 83 c4 10 add $0x10,%esp 116f4e: eb b1 jmp 116f01 <== ALWAYS TAKEN 00116f50 : rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { 116f50: 55 push %ebp 116f51: 89 e5 mov %esp,%ebp 116f53: 56 push %esi 116f54: 53 push %ebx 116f55: 83 ec 10 sub $0x10,%esp 116f58: 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 ) 116f5b: 85 db test %ebx,%ebx 116f5d: 74 71 je 116fd0 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 116f5f: 83 ec 0c sub $0xc,%esp 116f62: ff 35 10 f8 13 00 pushl 0x13f810 116f68: e8 83 23 00 00 call 1192f0 <_API_Mutex_Lock> RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 116f6d: 83 c4 0c add $0xc,%esp 116f70: 8d 45 f0 lea -0x10(%ebp),%eax 116f73: 50 push %eax 116f74: ff 75 08 pushl 0x8(%ebp) 116f77: 68 60 f6 13 00 push $0x13f660 116f7c: e8 67 3b 00 00 call 11aae8 <_Objects_Get_no_protection> 116f81: 89 c6 mov %eax,%esi the_region = _Region_Get( id, &location ); switch ( location ) { 116f83: 83 c4 10 add $0x10,%esp 116f86: 8b 45 f0 mov -0x10(%ebp),%eax 116f89: 85 c0 test %eax,%eax 116f8b: 74 1f je 116fac 116f8d: bb 04 00 00 00 mov $0x4,%ebx default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 116f92: 83 ec 0c sub $0xc,%esp 116f95: ff 35 10 f8 13 00 pushl 0x13f810 116f9b: e8 98 23 00 00 call 119338 <_API_Mutex_Unlock> return return_status; 116fa0: 83 c4 10 add $0x10,%esp } 116fa3: 89 d8 mov %ebx,%eax 116fa5: 8d 65 f8 lea -0x8(%ebp),%esp 116fa8: 5b pop %ebx 116fa9: 5e pop %esi 116faa: c9 leave 116fab: c3 ret the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: heap_status = _Heap_Extend( 116fac: 8d 45 f4 lea -0xc(%ebp),%eax 116faf: 50 push %eax 116fb0: ff 75 10 pushl 0x10(%ebp) 116fb3: 53 push %ebx 116fb4: 8d 46 68 lea 0x68(%esi),%eax 116fb7: 50 push %eax 116fb8: e8 67 2e 00 00 call 119e24 <_Heap_Extend> starting_address, length, &amount_extended ); if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) { 116fbd: 83 c4 10 add $0x10,%esp 116fc0: 85 c0 test %eax,%eax 116fc2: 74 18 je 116fdc the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; } else if ( heap_status == HEAP_EXTEND_ERROR ) { 116fc4: 48 dec %eax 116fc5: 74 25 je 116fec 116fc7: bb 18 00 00 00 mov $0x18,%ebx 116fcc: eb c4 jmp 116f92 <== ALWAYS TAKEN 116fce: 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 ) 116fd0: b3 09 mov $0x9,%bl break; } _RTEMS_Unlock_allocator(); return return_status; } 116fd2: 89 d8 mov %ebx,%eax 116fd4: 8d 65 f8 lea -0x8(%ebp),%esp 116fd7: 5b pop %ebx 116fd8: 5e pop %esi 116fd9: c9 leave 116fda: c3 ret 116fdb: 90 nop <== NOT EXECUTED length, &amount_extended ); if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) { the_region->length += amount_extended; 116fdc: 8b 45 f4 mov -0xc(%ebp),%eax 116fdf: 01 46 54 add %eax,0x54(%esi) the_region->maximum_segment_size += amount_extended; 116fe2: 01 46 5c add %eax,0x5c(%esi) 116fe5: 31 db xor %ebx,%ebx 116fe7: eb a9 jmp 116f92 <== ALWAYS TAKEN 116fe9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; } else if ( heap_status == HEAP_EXTEND_ERROR ) { 116fec: bb 09 00 00 00 mov $0x9,%ebx 116ff1: eb 9f jmp 116f92 <== ALWAYS TAKEN 00116ff4 : rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { 116ff4: 55 push %ebp 116ff5: 89 e5 mov %esp,%ebp 116ff7: 53 push %ebx 116ff8: 83 ec 14 sub $0x14,%esp 116ffb: 8b 5d 0c mov 0xc(%ebp),%ebx Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) 116ffe: 85 db test %ebx,%ebx 117000: 74 76 je 117078 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 117002: 83 ec 0c sub $0xc,%esp 117005: ff 35 10 f8 13 00 pushl 0x13f810 11700b: e8 e0 22 00 00 call 1192f0 <_API_Mutex_Lock> 117010: 83 c4 0c add $0xc,%esp 117013: 8d 45 f4 lea -0xc(%ebp),%eax 117016: 50 push %eax 117017: ff 75 08 pushl 0x8(%ebp) 11701a: 68 60 f6 13 00 push $0x13f660 11701f: e8 c4 3a 00 00 call 11aae8 <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 117024: 83 c4 10 add $0x10,%esp 117027: 8b 55 f4 mov -0xc(%ebp),%edx 11702a: 85 d2 test %edx,%edx 11702c: 74 1e je 11704c 11702e: bb 04 00 00 00 mov $0x4,%ebx default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 117033: 83 ec 0c sub $0xc,%esp 117036: ff 35 10 f8 13 00 pushl 0x13f810 11703c: e8 f7 22 00 00 call 119338 <_API_Mutex_Unlock> return return_status; 117041: 83 c4 10 add $0x10,%esp } 117044: 89 d8 mov %ebx,%eax 117046: 8b 5d fc mov -0x4(%ebp),%ebx 117049: c9 leave 11704a: c3 ret 11704b: 90 nop <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->Used.number = 0; 11704c: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) the_info->Used.total = 0; 117053: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) the_info->Used.largest = 0; 11705a: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); 117061: 83 ec 08 sub $0x8,%esp 117064: 53 push %ebx 117065: 83 c0 68 add $0x68,%eax 117068: 50 push %eax 117069: e8 c6 2f 00 00 call 11a034 <_Heap_Get_free_information> 11706e: 31 db xor %ebx,%ebx return_status = RTEMS_SUCCESSFUL; break; 117070: 83 c4 10 add $0x10,%esp 117073: eb be jmp 117033 <== ALWAYS TAKEN 117075: 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 ) 117078: b3 09 mov $0x9,%bl break; } _RTEMS_Unlock_allocator(); return return_status; } 11707a: 89 d8 mov %ebx,%eax 11707c: 8b 5d fc mov -0x4(%ebp),%ebx 11707f: c9 leave 117080: c3 ret 00117084 : rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { 117084: 55 push %ebp 117085: 89 e5 mov %esp,%ebp 117087: 53 push %ebx 117088: 83 ec 14 sub $0x14,%esp 11708b: 8b 5d 0c mov 0xc(%ebp),%ebx Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) 11708e: 85 db test %ebx,%ebx 117090: 74 5e je 1170f0 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 117092: 83 ec 0c sub $0xc,%esp 117095: ff 35 10 f8 13 00 pushl 0x13f810 11709b: e8 50 22 00 00 call 1192f0 <_API_Mutex_Lock> 1170a0: 83 c4 0c add $0xc,%esp 1170a3: 8d 45 f4 lea -0xc(%ebp),%eax 1170a6: 50 push %eax 1170a7: ff 75 08 pushl 0x8(%ebp) 1170aa: 68 60 f6 13 00 push $0x13f660 1170af: e8 34 3a 00 00 call 11aae8 <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 1170b4: 83 c4 10 add $0x10,%esp 1170b7: 8b 55 f4 mov -0xc(%ebp),%edx 1170ba: 85 d2 test %edx,%edx 1170bc: 74 1e je 1170dc 1170be: bb 04 00 00 00 mov $0x4,%ebx default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 1170c3: 83 ec 0c sub $0xc,%esp 1170c6: ff 35 10 f8 13 00 pushl 0x13f810 1170cc: e8 67 22 00 00 call 119338 <_API_Mutex_Unlock> return return_status; 1170d1: 83 c4 10 add $0x10,%esp } 1170d4: 89 d8 mov %ebx,%eax 1170d6: 8b 5d fc mov -0x4(%ebp),%ebx 1170d9: c9 leave 1170da: c3 ret 1170db: 90 nop <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: _Heap_Get_information( &the_region->Memory, the_info ); 1170dc: 83 ec 08 sub $0x8,%esp 1170df: 53 push %ebx 1170e0: 83 c0 68 add $0x68,%eax 1170e3: 50 push %eax 1170e4: e8 a3 2f 00 00 call 11a08c <_Heap_Get_information> 1170e9: 31 db xor %ebx,%ebx return_status = RTEMS_SUCCESSFUL; break; 1170eb: 83 c4 10 add $0x10,%esp 1170ee: eb d3 jmp 1170c3 <== ALWAYS TAKEN { Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) 1170f0: b3 09 mov $0x9,%bl break; } _RTEMS_Unlock_allocator(); return return_status; } 1170f2: 89 d8 mov %ebx,%eax 1170f4: 8b 5d fc mov -0x4(%ebp),%ebx 1170f7: c9 leave 1170f8: c3 ret 001170fc : uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { 1170fc: 55 push %ebp 1170fd: 89 e5 mov %esp,%ebp 1170ff: 57 push %edi 117100: 56 push %esi 117101: 53 push %ebx 117102: 83 ec 2c sub $0x2c,%esp 117105: 8b 75 0c mov 0xc(%ebp),%esi 117108: 8b 5d 18 mov 0x18(%ebp),%ebx Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) 11710b: 85 db test %ebx,%ebx 11710d: 0f 84 a1 00 00 00 je 1171b4 return RTEMS_INVALID_ADDRESS; *segment = NULL; 117113: c7 03 00 00 00 00 movl $0x0,(%ebx) if ( size == 0 ) 117119: 85 f6 test %esi,%esi 11711b: 75 0f jne 11712c 11711d: b8 08 00 00 00 mov $0x8,%eax break; } _RTEMS_Unlock_allocator(); return return_status; } 117122: 8d 65 f4 lea -0xc(%ebp),%esp 117125: 5b pop %ebx 117126: 5e pop %esi 117127: 5f pop %edi 117128: c9 leave 117129: c3 ret 11712a: 66 90 xchg %ax,%ax <== NOT EXECUTED *segment = NULL; if ( size == 0 ) return RTEMS_INVALID_SIZE; _RTEMS_Lock_allocator(); 11712c: 83 ec 0c sub $0xc,%esp 11712f: ff 35 10 f8 13 00 pushl 0x13f810 117135: e8 b6 21 00 00 call 1192f0 <_API_Mutex_Lock> executing = _Thread_Executing; 11713a: a1 18 f8 13 00 mov 0x13f818,%eax 11713f: 89 45 d4 mov %eax,-0x2c(%ebp) 117142: 83 c4 0c add $0xc,%esp 117145: 8d 45 e4 lea -0x1c(%ebp),%eax 117148: 50 push %eax 117149: ff 75 08 pushl 0x8(%ebp) 11714c: 68 60 f6 13 00 push $0x13f660 117151: e8 92 39 00 00 call 11aae8 <_Objects_Get_no_protection> 117156: 89 c7 mov %eax,%edi the_region = _Region_Get( id, &location ); switch ( location ) { 117158: 83 c4 10 add $0x10,%esp 11715b: 8b 45 e4 mov -0x1c(%ebp),%eax 11715e: 85 c0 test %eax,%eax 117160: 75 2a jne 11718c case OBJECTS_LOCAL: if ( size > the_region->maximum_segment_size ) 117162: 3b 77 5c cmp 0x5c(%edi),%esi 117165: 76 2d jbe 117194 117167: b8 08 00 00 00 mov $0x8,%eax default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 11716c: 83 ec 0c sub $0xc,%esp 11716f: ff 35 10 f8 13 00 pushl 0x13f810 117175: 89 45 d0 mov %eax,-0x30(%ebp) 117178: e8 bb 21 00 00 call 119338 <_API_Mutex_Unlock> return return_status; 11717d: 83 c4 10 add $0x10,%esp 117180: 8b 45 d0 mov -0x30(%ebp),%eax } 117183: 8d 65 f4 lea -0xc(%ebp),%esp 117186: 5b pop %ebx 117187: 5e pop %esi 117188: 5f pop %edi 117189: c9 leave 11718a: c3 ret 11718b: 90 nop <== NOT EXECUTED _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); _Thread_Enable_dispatch(); return (rtems_status_code) executing->Wait.return_code; 11718c: b8 04 00 00 00 mov $0x4,%eax 117191: eb d9 jmp 11716c <== ALWAYS TAKEN 117193: 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 ); 117194: 6a 00 push $0x0 117196: 6a 00 push $0x0 117198: 56 push %esi 117199: 8d 47 68 lea 0x68(%edi),%eax 11719c: 50 push %eax 11719d: e8 ce 2a 00 00 call 119c70 <_Heap_Allocate_aligned_with_boundary> the_segment = _Region_Allocate_segment( the_region, size ); _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) { 1171a2: 83 c4 10 add $0x10,%esp 1171a5: 85 c0 test %eax,%eax 1171a7: 74 17 je 1171c0 the_region->number_of_used_blocks += 1; 1171a9: ff 47 64 incl 0x64(%edi) *segment = the_segment; 1171ac: 89 03 mov %eax,(%ebx) 1171ae: 31 c0 xor %eax,%eax 1171b0: eb ba jmp 11716c <== ALWAYS TAKEN 1171b2: 66 90 xchg %ax,%ax <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) 1171b4: b8 09 00 00 00 mov $0x9,%eax 1171b9: e9 64 ff ff ff jmp 117122 <== ALWAYS TAKEN 1171be: 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 ) ) { 1171c0: f6 45 10 01 testb $0x1,0x10(%ebp) 1171c4: 74 07 je 1171cd 1171c6: b8 0d 00 00 00 mov $0xd,%eax 1171cb: eb 9f jmp 11716c <== ALWAYS TAKEN rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 1171cd: a1 58 f7 13 00 mov 0x13f758,%eax 1171d2: 40 inc %eax 1171d3: a3 58 f7 13 00 mov %eax,0x13f758 * 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(); 1171d8: 83 ec 0c sub $0xc,%esp 1171db: ff 35 10 f8 13 00 pushl 0x13f810 1171e1: e8 52 21 00 00 call 119338 <_API_Mutex_Unlock> executing->Wait.queue = &the_region->Wait_queue; 1171e6: 8d 47 10 lea 0x10(%edi),%eax 1171e9: 8b 55 d4 mov -0x2c(%ebp),%edx 1171ec: 89 42 44 mov %eax,0x44(%edx) executing->Wait.id = id; 1171ef: 8b 4d 08 mov 0x8(%ebp),%ecx 1171f2: 89 4a 20 mov %ecx,0x20(%edx) executing->Wait.count = size; 1171f5: 89 72 24 mov %esi,0x24(%edx) executing->Wait.return_argument = segment; 1171f8: 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; 1171fb: 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 ); 117202: 83 c4 0c add $0xc,%esp 117205: 68 e4 bb 11 00 push $0x11bbe4 11720a: ff 75 14 pushl 0x14(%ebp) 11720d: 50 push %eax 11720e: e8 c1 46 00 00 call 11b8d4 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); 117213: e8 bc 41 00 00 call 11b3d4 <_Thread_Enable_dispatch> return (rtems_status_code) executing->Wait.return_code; 117218: 8b 55 d4 mov -0x2c(%ebp),%edx 11721b: 8b 42 34 mov 0x34(%edx),%eax 11721e: 83 c4 10 add $0x10,%esp 117221: e9 fc fe ff ff jmp 117122 <== ALWAYS TAKEN 00117228 : rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { 117228: 55 push %ebp 117229: 89 e5 mov %esp,%ebp 11722b: 56 push %esi 11722c: 53 push %ebx 11722d: 83 ec 20 sub $0x20,%esp 117230: 8b 5d 0c mov 0xc(%ebp),%ebx 117233: 8b 75 10 mov 0x10(%ebp),%esi Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) 117236: 85 db test %ebx,%ebx 117238: 74 72 je 1172ac return RTEMS_INVALID_ADDRESS; if ( !size ) 11723a: 85 f6 test %esi,%esi 11723c: 74 6e je 1172ac return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 11723e: 83 ec 0c sub $0xc,%esp 117241: ff 35 10 f8 13 00 pushl 0x13f810 117247: e8 a4 20 00 00 call 1192f0 <_API_Mutex_Lock> 11724c: 83 c4 0c add $0xc,%esp 11724f: 8d 45 f4 lea -0xc(%ebp),%eax 117252: 50 push %eax 117253: ff 75 08 pushl 0x8(%ebp) 117256: 68 60 f6 13 00 push $0x13f660 11725b: e8 88 38 00 00 call 11aae8 <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 117260: 83 c4 10 add $0x10,%esp 117263: 8b 55 f4 mov -0xc(%ebp),%edx 117266: 85 d2 test %edx,%edx 117268: 75 36 jne 1172a0 case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) 11726a: 52 push %edx 11726b: 56 push %esi 11726c: 53 push %ebx 11726d: 83 c0 68 add $0x68,%eax 117270: 50 push %eax 117271: e8 d6 32 00 00 call 11a54c <_Heap_Size_of_alloc_area> 117276: 83 c4 10 add $0x10,%esp 117279: 84 c0 test %al,%al 11727b: 74 3b je 1172b8 <== ALWAYS TAKEN 11727d: 31 c0 xor %eax,%eax case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 11727f: 83 ec 0c sub $0xc,%esp 117282: ff 35 10 f8 13 00 pushl 0x13f810 117288: 89 45 e4 mov %eax,-0x1c(%ebp) 11728b: e8 a8 20 00 00 call 119338 <_API_Mutex_Unlock> return return_status; 117290: 83 c4 10 add $0x10,%esp 117293: 8b 45 e4 mov -0x1c(%ebp),%eax } 117296: 8d 65 f8 lea -0x8(%ebp),%esp 117299: 5b pop %ebx 11729a: 5e pop %esi 11729b: c9 leave 11729c: c3 ret 11729d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 1172a0: 4a dec %edx 1172a1: 75 da jne 11727d <== ALWAYS TAKEN 1172a3: b8 04 00 00 00 mov $0x4,%eax 1172a8: eb d5 jmp 11727f <== ALWAYS TAKEN 1172aa: 66 90 xchg %ax,%ax <== NOT EXECUTED return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status; 1172ac: b8 09 00 00 00 mov $0x9,%eax } 1172b1: 8d 65 f8 lea -0x8(%ebp),%esp 1172b4: 5b pop %ebx 1172b5: 5e pop %esi 1172b6: c9 leave 1172b7: c3 ret the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) 1172b8: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED 1172bd: eb c0 jmp 11727f <== NOT EXECUTED 001172e4 : rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) { 1172e4: 55 push %ebp 1172e5: 89 e5 mov %esp,%ebp 1172e7: 56 push %esi 1172e8: 53 push %ebx 1172e9: 83 ec 20 sub $0x20,%esp 1172ec: 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 ) 1172ef: 85 db test %ebx,%ebx 1172f1: 0f 84 a5 00 00 00 je 11739c return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 1172f7: 83 ec 0c sub $0xc,%esp 1172fa: ff 35 10 f8 13 00 pushl 0x13f810 117300: e8 eb 1f 00 00 call 1192f0 <_API_Mutex_Lock> 117305: 83 c4 0c add $0xc,%esp 117308: 8d 45 f0 lea -0x10(%ebp),%eax 11730b: 50 push %eax 11730c: ff 75 08 pushl 0x8(%ebp) 11730f: 68 60 f6 13 00 push $0x13f660 117314: e8 cf 37 00 00 call 11aae8 <_Objects_Get_no_protection> 117319: 89 c6 mov %eax,%esi the_region = _Region_Get( id, &location ); switch ( location ) { 11731b: 83 c4 10 add $0x10,%esp 11731e: 8b 45 f0 mov -0x10(%ebp),%eax 117321: 85 c0 test %eax,%eax 117323: 74 1f je 117344 default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 117325: 83 ec 0c sub $0xc,%esp 117328: ff 35 10 f8 13 00 pushl 0x13f810 11732e: e8 05 20 00 00 call 119338 <_API_Mutex_Unlock> 117333: b8 04 00 00 00 mov $0x4,%eax return return_status; 117338: 83 c4 10 add $0x10,%esp } 11733b: 8d 65 f8 lea -0x8(%ebp),%esp 11733e: 5b pop %ebx 11733f: 5e pop %esi 117340: c9 leave 117341: c3 ret 117342: 66 90 xchg %ax,%ax <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( 117344: 83 ec 0c sub $0xc,%esp 117347: 8d 45 f4 lea -0xc(%ebp),%eax 11734a: 50 push %eax 11734b: 8d 45 ec lea -0x14(%ebp),%eax 11734e: 50 push %eax 11734f: ff 75 10 pushl 0x10(%ebp) 117352: ff 75 0c pushl 0xc(%ebp) 117355: 8d 46 68 lea 0x68(%esi),%eax 117358: 50 push %eax 117359: e8 e2 30 00 00 call 11a440 <_Heap_Resize_block> segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; 11735e: 8b 55 ec mov -0x14(%ebp),%edx 117361: 89 13 mov %edx,(%ebx) _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) 117363: 83 c4 20 add $0x20,%esp 117366: 85 c0 test %eax,%eax 117368: 75 16 jne 117380 _Region_Process_queue( the_region ); /* unlocks allocator */ 11736a: 83 ec 0c sub $0xc,%esp 11736d: 56 push %esi 11736e: e8 55 6d 00 00 call 11e0c8 <_Region_Process_queue> 117373: 31 c0 xor %eax,%eax 117375: 83 c4 10 add $0x10,%esp break; } _RTEMS_Unlock_allocator(); return return_status; } 117378: 8d 65 f8 lea -0x8(%ebp),%esp 11737b: 5b pop %ebx 11737c: 5e pop %esi 11737d: c9 leave 11737e: c3 ret 11737f: 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(); 117380: 83 ec 0c sub $0xc,%esp 117383: ff 35 10 f8 13 00 pushl 0x13f810 117389: 89 45 e4 mov %eax,-0x1c(%ebp) 11738c: e8 a7 1f 00 00 call 119338 <_API_Mutex_Unlock> if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED) 117391: 83 c4 10 add $0x10,%esp 117394: 8b 45 e4 mov -0x1c(%ebp),%eax 117397: 83 f8 01 cmp $0x1,%eax 11739a: 74 0c je 1173a8 return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status; 11739c: b8 09 00 00 00 mov $0x9,%eax } 1173a1: 8d 65 f8 lea -0x8(%ebp),%esp 1173a4: 5b pop %ebx 1173a5: 5e pop %esi 1173a6: c9 leave 1173a7: c3 ret _RTEMS_Unlock_allocator(); if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED) 1173a8: b0 0d mov $0xd,%al 1173aa: eb 8f jmp 11733b <== ALWAYS TAKEN 001173ac : rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { 1173ac: 55 push %ebp 1173ad: 89 e5 mov %esp,%ebp 1173af: 53 push %ebx 1173b0: 83 ec 20 sub $0x20,%esp uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); 1173b3: ff 35 10 f8 13 00 pushl 0x13f810 1173b9: e8 32 1f 00 00 call 1192f0 <_API_Mutex_Lock> 1173be: 83 c4 0c add $0xc,%esp 1173c1: 8d 45 f4 lea -0xc(%ebp),%eax 1173c4: 50 push %eax 1173c5: ff 75 08 pushl 0x8(%ebp) 1173c8: 68 60 f6 13 00 push $0x13f660 1173cd: e8 16 37 00 00 call 11aae8 <_Objects_Get_no_protection> 1173d2: 89 c3 mov %eax,%ebx the_region = _Region_Get( id, &location ); switch ( location ) { 1173d4: 83 c4 10 add $0x10,%esp 1173d7: 8b 45 f4 mov -0xc(%ebp),%eax 1173da: 85 c0 test %eax,%eax 1173dc: 74 1e je 1173fc 1173de: bb 04 00 00 00 mov $0x4,%ebx default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 1173e3: 83 ec 0c sub $0xc,%esp 1173e6: ff 35 10 f8 13 00 pushl 0x13f810 1173ec: e8 47 1f 00 00 call 119338 <_API_Mutex_Unlock> return return_status; 1173f1: 83 c4 10 add $0x10,%esp } 1173f4: 89 d8 mov %ebx,%eax 1173f6: 8b 5d fc mov -0x4(%ebp),%ebx 1173f9: c9 leave 1173fa: c3 ret 1173fb: 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 ); 1173fc: 83 ec 08 sub $0x8,%esp 1173ff: ff 75 0c pushl 0xc(%ebp) 117402: 8d 43 68 lea 0x68(%ebx),%eax 117405: 50 push %eax 117406: e8 b9 2a 00 00 call 119ec4 <_Heap_Free> #endif status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) 11740b: 83 c4 10 add $0x10,%esp 11740e: 84 c0 test %al,%al 117410: 75 0a jne 11741c else { the_region->number_of_used_blocks -= 1; _Region_Process_queue(the_region); /* unlocks allocator */ return RTEMS_SUCCESSFUL; 117412: bb 09 00 00 00 mov $0x9,%ebx 117417: eb ca jmp 1173e3 <== ALWAYS TAKEN 117419: 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; 11741c: ff 4b 64 decl 0x64(%ebx) _Region_Process_queue(the_region); /* unlocks allocator */ 11741f: 83 ec 0c sub $0xc,%esp 117422: 53 push %ebx 117423: e8 a0 6c 00 00 call 11e0c8 <_Region_Process_queue> 117428: 31 db xor %ebx,%ebx return RTEMS_SUCCESSFUL; 11742a: 83 c4 10 add $0x10,%esp break; } _RTEMS_Unlock_allocator(); return return_status; } 11742d: 89 d8 mov %ebx,%eax 11742f: 8b 5d fc mov -0x4(%ebp),%ebx 117432: c9 leave 117433: c3 ret 0010b2e8 : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 10b2e8: 55 push %ebp 10b2e9: 89 e5 mov %esp,%ebp 10b2eb: 57 push %edi 10b2ec: 56 push %esi 10b2ed: 53 push %ebx 10b2ee: 83 ec 3c sub $0x3c,%esp 10b2f1: 8b 75 08 mov 0x8(%ebp),%esi 10b2f4: 8b 5d 10 mov 0x10(%ebp),%ebx 10b2f7: 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 ) ) 10b2fa: 85 f6 test %esi,%esi 10b2fc: 74 4a je 10b348 return RTEMS_INVALID_NAME; if ( !id ) 10b2fe: 85 ff test %edi,%edi 10b300: 0f 84 f6 00 00 00 je 10b3fc return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || 10b306: 89 da mov %ebx,%edx 10b308: 81 e2 c0 00 00 00 and $0xc0,%edx 10b30e: 74 48 je 10b358 _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) && 10b310: 89 d8 mov %ebx,%eax 10b312: 83 e0 30 and $0x30,%eax 10b315: 83 f8 10 cmp $0x10,%eax 10b318: 74 0e je 10b328 name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 10b31a: b8 0b 00 00 00 mov $0xb,%eax } 10b31f: 8d 65 f4 lea -0xc(%ebp),%esp 10b322: 5b pop %ebx 10b323: 5e pop %esi 10b324: 5f pop %edi 10b325: c9 leave 10b326: c3 ret 10b327: 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 ) && 10b328: f6 c3 04 test $0x4,%bl 10b32b: 74 ed je 10b31a _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && 10b32d: 81 fa c0 00 00 00 cmp $0xc0,%edx 10b333: 74 e5 je 10b31a 10b335: 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 ) ) 10b33a: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) 10b33e: 76 1f jbe 10b35f 10b340: b8 0a 00 00 00 mov $0xa,%eax 10b345: eb d8 jmp 10b31f <== ALWAYS TAKEN 10b347: 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 ) ) 10b348: b8 03 00 00 00 mov $0x3,%eax 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10b34d: 8d 65 f4 lea -0xc(%ebp),%esp 10b350: 5b pop %ebx 10b351: 5e pop %esi 10b352: 5f pop %edi 10b353: c9 leave 10b354: c3 ret 10b355: 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 ) ) 10b358: 89 d9 mov %ebx,%ecx 10b35a: 83 e1 30 and $0x30,%ecx 10b35d: 75 db jne 10b33a rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10b35f: a1 38 53 12 00 mov 0x125338,%eax 10b364: 40 inc %eax 10b365: a3 38 53 12 00 mov %eax,0x125338 * 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 ); 10b36a: 83 ec 0c sub $0xc,%esp 10b36d: 68 80 52 12 00 push $0x125280 10b372: 89 4d c4 mov %ecx,-0x3c(%ebp) 10b375: e8 46 13 00 00 call 10c6c0 <_Objects_Allocate> 10b37a: 89 c2 mov %eax,%edx _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { 10b37c: 83 c4 10 add $0x10,%esp 10b37f: 85 c0 test %eax,%eax 10b381: 8b 4d c4 mov -0x3c(%ebp),%ecx 10b384: 0f 84 ba 00 00 00 je 10b444 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set; 10b38a: 89 58 10 mov %ebx,0x10(%eax) /* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { 10b38d: 85 c9 test %ecx,%ecx 10b38f: 74 77 je 10b408 /* * 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; 10b391: 31 c0 xor %eax,%eax 10b393: f6 c3 04 test $0x4,%bl 10b396: 0f 95 c0 setne %al 10b399: 89 45 d8 mov %eax,-0x28(%ebp) else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { 10b39c: 83 f9 10 cmp $0x10,%ecx 10b39f: 0f 84 ae 00 00 00 je 10b453 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; 10b3a5: c7 45 d0 02 00 00 00 movl $0x2,-0x30(%ebp) the_mutex_attr.only_owner_release = false; 10b3ac: c6 45 d4 00 movb $0x0,-0x2c(%ebp) } mutex_status = _CORE_mutex_Initialize( 10b3b0: 50 push %eax 10b3b1: 31 c0 xor %eax,%eax 10b3b3: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) 10b3b7: 0f 94 c0 sete %al 10b3ba: 50 push %eax 10b3bb: 8d 45 d0 lea -0x30(%ebp),%eax 10b3be: 50 push %eax 10b3bf: 8d 42 14 lea 0x14(%edx),%eax 10b3c2: 50 push %eax 10b3c3: 89 55 c4 mov %edx,-0x3c(%ebp) 10b3c6: e8 65 0b 00 00 call 10bf30 <_CORE_mutex_Initialize> <== ALWAYS TAKEN &the_semaphore->Core_control.mutex, &the_mutex_attr, (count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED ); if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) { 10b3cb: 83 c4 10 add $0x10,%esp 10b3ce: 83 f8 06 cmp $0x6,%eax 10b3d1: 8b 55 c4 mov -0x3c(%ebp),%edx 10b3d4: 0f 84 a9 00 00 00 je 10b483 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 10b3da: 8b 42 08 mov 0x8(%edx),%eax 10b3dd: 0f b7 d8 movzwl %ax,%ebx 10b3e0: 8b 0d 9c 52 12 00 mov 0x12529c,%ecx 10b3e6: 89 14 99 mov %edx,(%ecx,%ebx,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 10b3e9: 89 72 0c mov %esi,0xc(%edx) &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; 10b3ec: 89 07 mov %eax,(%edi) the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 10b3ee: e8 c5 1f 00 00 call 10d3b8 <_Thread_Enable_dispatch> 10b3f3: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10b3f5: e9 25 ff ff ff jmp 10b31f <== ALWAYS TAKEN 10b3fa: 66 90 xchg %ax,%ax <== NOT EXECUTED CORE_mutex_Status mutex_status; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 10b3fc: b8 09 00 00 00 mov $0x9,%eax 10b401: e9 19 ff ff ff jmp 10b31f <== ALWAYS TAKEN 10b406: 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; 10b408: 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; 10b40f: 31 c0 xor %eax,%eax 10b411: f6 c3 04 test $0x4,%bl 10b414: 0f 95 c0 setne %al 10b417: 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; 10b41a: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; 10b421: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) _CORE_semaphore_Initialize( 10b428: 51 push %ecx 10b429: ff 75 0c pushl 0xc(%ebp) 10b42c: 8d 45 e0 lea -0x20(%ebp),%eax 10b42f: 50 push %eax 10b430: 8d 42 14 lea 0x14(%edx),%eax 10b433: 50 push %eax 10b434: 89 55 c4 mov %edx,-0x3c(%ebp) 10b437: e8 98 0d 00 00 call 10c1d4 <_CORE_semaphore_Initialize> 10b43c: 83 c4 10 add $0x10,%esp 10b43f: 8b 55 c4 mov -0x3c(%ebp),%edx 10b442: eb 96 jmp 10b3da <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { _Thread_Enable_dispatch(); 10b444: e8 6f 1f 00 00 call 10d3b8 <_Thread_Enable_dispatch> 10b449: b8 05 00 00 00 mov $0x5,%eax return RTEMS_TOO_MANY; 10b44e: e9 cc fe ff ff jmp 10b31f <== ALWAYS TAKEN 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; 10b453: 8b 45 14 mov 0x14(%ebp),%eax 10b456: 89 45 dc mov %eax,-0x24(%ebp) the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 10b459: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) the_mutex_attr.only_owner_release = false; 10b460: c6 45 d4 00 movb $0x0,-0x2c(%ebp) if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { 10b464: 83 7d d8 01 cmpl $0x1,-0x28(%ebp) 10b468: 0f 85 42 ff ff ff jne 10b3b0 if ( _Attributes_Is_inherit_priority( attribute_set ) ) { 10b46e: f6 c3 40 test $0x40,%bl 10b471: 74 30 je 10b4a3 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 10b473: c7 45 d8 02 00 00 00 movl $0x2,-0x28(%ebp) the_mutex_attr.only_owner_release = true; 10b47a: c6 45 d4 01 movb $0x1,-0x2c(%ebp) 10b47e: e9 2d ff ff ff jmp 10b3b0 <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 10b483: 83 ec 08 sub $0x8,%esp 10b486: 52 push %edx 10b487: 68 80 52 12 00 push $0x125280 10b48c: e8 af 15 00 00 call 10ca40 <_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(); 10b491: e8 22 1f 00 00 call 10d3b8 <_Thread_Enable_dispatch> 10b496: b8 13 00 00 00 mov $0x13,%eax return RTEMS_INVALID_PRIORITY; 10b49b: 83 c4 10 add $0x10,%esp 10b49e: e9 7c fe ff ff jmp 10b31f <== ALWAYS TAKEN 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 ) ) { 10b4a3: 84 db test %bl,%bl 10b4a5: 0f 89 05 ff ff ff jns 10b3b0 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; 10b4ab: c7 45 d8 03 00 00 00 movl $0x3,-0x28(%ebp) the_mutex_attr.only_owner_release = true; 10b4b2: c6 45 d4 01 movb $0x1,-0x2c(%ebp) 10b4b6: e9 f5 fe ff ff jmp 10b3b0 <== ALWAYS TAKEN 0010b4bc : #endif rtems_status_code rtems_semaphore_delete( rtems_id id ) { 10b4bc: 55 push %ebp 10b4bd: 89 e5 mov %esp,%ebp 10b4bf: 53 push %ebx 10b4c0: 83 ec 18 sub $0x18,%esp RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) 10b4c3: 8d 45 f4 lea -0xc(%ebp),%eax 10b4c6: 50 push %eax 10b4c7: ff 75 08 pushl 0x8(%ebp) 10b4ca: 68 80 52 12 00 push $0x125280 10b4cf: e8 9c 16 00 00 call 10cb70 <_Objects_Get> 10b4d4: 89 c3 mov %eax,%ebx register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 10b4d6: 83 c4 10 add $0x10,%esp 10b4d9: 8b 4d f4 mov -0xc(%ebp),%ecx 10b4dc: 85 c9 test %ecx,%ecx 10b4de: 74 0c je 10b4ec 10b4e0: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b4e5: 8b 5d fc mov -0x4(%ebp),%ebx 10b4e8: c9 leave 10b4e9: c3 ret 10b4ea: 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); 10b4ec: 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) ) { 10b4ef: 83 e0 30 and $0x30,%eax 10b4f2: 74 58 je 10b54c if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) && 10b4f4: 8b 53 64 mov 0x64(%ebx),%edx 10b4f7: 85 d2 test %edx,%edx 10b4f9: 75 15 jne 10b510 10b4fb: 83 f8 20 cmp $0x20,%eax 10b4fe: 74 10 je 10b510 !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); 10b500: e8 b3 1e 00 00 call 10d3b8 <_Thread_Enable_dispatch> 10b505: b8 0c 00 00 00 mov $0xc,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b50a: 8b 5d fc mov -0x4(%ebp),%ebx 10b50d: c9 leave 10b50e: c3 ret 10b50f: 90 nop <== NOT EXECUTED !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } _CORE_mutex_Flush( 10b510: 50 push %eax 10b511: 6a 04 push $0x4 10b513: 6a 00 push $0x0 10b515: 8d 43 14 lea 0x14(%ebx),%eax 10b518: 50 push %eax 10b519: e8 06 0a 00 00 call 10bf24 <_CORE_mutex_Flush> <== ALWAYS TAKEN 10b51e: 83 c4 10 add $0x10,%esp SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); } _Objects_Close( &_Semaphore_Information, &the_semaphore->Object ); 10b521: 83 ec 08 sub $0x8,%esp 10b524: 53 push %ebx 10b525: 68 80 52 12 00 push $0x125280 10b52a: e8 0d 12 00 00 call 10c73c <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 10b52f: 58 pop %eax 10b530: 5a pop %edx 10b531: 53 push %ebx 10b532: 68 80 52 12 00 push $0x125280 10b537: e8 04 15 00 00 call 10ca40 <_Objects_Free> 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 10b53c: e8 77 1e 00 00 call 10d3b8 <_Thread_Enable_dispatch> 10b541: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10b543: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b546: 8b 5d fc mov -0x4(%ebp),%ebx 10b549: c9 leave 10b54a: c3 ret 10b54b: 90 nop <== NOT EXECUTED &the_semaphore->Core_control.mutex, SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_MUTEX_WAS_DELETED ); } else { _CORE_semaphore_Flush( 10b54c: 51 push %ecx 10b54d: 6a 02 push $0x2 10b54f: 6a 00 push $0x0 10b551: 8d 43 14 lea 0x14(%ebx),%eax 10b554: 50 push %eax 10b555: e8 6e 0c 00 00 call 10c1c8 <_CORE_semaphore_Flush> 10b55a: 83 c4 10 add $0x10,%esp 10b55d: eb c2 jmp 10b521 <== ALWAYS TAKEN 00114a88 : #endif rtems_status_code rtems_semaphore_flush( rtems_id id ) { 114a88: 55 push %ebp 114a89: 89 e5 mov %esp,%ebp 114a8b: 83 ec 1c sub $0x1c,%esp 114a8e: 8d 45 f4 lea -0xc(%ebp),%eax 114a91: 50 push %eax 114a92: ff 75 08 pushl 0x8(%ebp) 114a95: 68 40 b4 12 00 push $0x12b440 114a9a: e8 fd 99 ff ff call 10e49c <_Objects_Get> register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 114a9f: 83 c4 10 add $0x10,%esp 114aa2: 8b 55 f4 mov -0xc(%ebp),%edx 114aa5: 85 d2 test %edx,%edx 114aa7: 74 07 je 114ab0 114aa9: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 114aae: c9 leave 114aaf: c3 ret the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 114ab0: f6 40 10 30 testb $0x30,0x10(%eax) 114ab4: 75 1a jne 114ad0 &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( 114ab6: 52 push %edx 114ab7: 6a 01 push $0x1 114ab9: 6a 00 push $0x0 114abb: 83 c0 14 add $0x14,%eax 114abe: 50 push %eax 114abf: e8 d8 8f ff ff call 10da9c <_CORE_semaphore_Flush> 114ac4: 83 c4 10 add $0x10,%esp &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); } _Thread_Enable_dispatch(); 114ac7: e8 98 a2 ff ff call 10ed64 <_Thread_Enable_dispatch> 114acc: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 114ace: c9 leave 114acf: c3 ret the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { _CORE_mutex_Flush( 114ad0: 51 push %ecx 114ad1: 6a 01 push $0x1 114ad3: 6a 00 push $0x0 114ad5: 83 c0 14 add $0x14,%eax 114ad8: 50 push %eax 114ad9: e8 1a 8d ff ff call 10d7f8 <_CORE_mutex_Flush> <== ALWAYS TAKEN 114ade: 83 c4 10 add $0x10,%esp 114ae1: eb e4 jmp 114ac7 <== ALWAYS TAKEN 0010b560 : rtems_status_code rtems_semaphore_obtain( rtems_id id, rtems_option option_set, rtems_interval timeout ) { 10b560: 55 push %ebp 10b561: 89 e5 mov %esp,%ebp 10b563: 57 push %edi 10b564: 56 push %esi 10b565: 53 push %ebx 10b566: 83 ec 1c sub $0x1c,%esp 10b569: 8b 5d 08 mov 0x8(%ebp),%ebx 10b56c: 8b 75 0c mov 0xc(%ebp),%esi 10b56f: 8b 7d 10 mov 0x10(%ebp),%edi Objects_Id id, Objects_Locations *location, ISR_Level *level ) { return (Semaphore_Control *) 10b572: 8d 45 e0 lea -0x20(%ebp),%eax 10b575: 50 push %eax 10b576: 8d 45 e4 lea -0x1c(%ebp),%eax 10b579: 50 push %eax 10b57a: 53 push %ebx 10b57b: 68 80 52 12 00 push $0x125280 10b580: e8 93 15 00 00 call 10cb18 <_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 ) { 10b585: 83 c4 10 add $0x10,%esp 10b588: 8b 4d e4 mov -0x1c(%ebp),%ecx 10b58b: 85 c9 test %ecx,%ecx 10b58d: 74 0d je 10b59c 10b58f: b8 04 00 00 00 mov $0x4,%eax break; } return RTEMS_INVALID_ID; } 10b594: 8d 65 f4 lea -0xc(%ebp),%esp 10b597: 5b pop %ebx 10b598: 5e pop %esi 10b599: 5f pop %edi 10b59a: c9 leave 10b59b: 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) ) { 10b59c: f6 40 10 30 testb $0x30,0x10(%eax) 10b5a0: 74 36 je 10b5d8 _CORE_mutex_Seize( 10b5a2: 83 ec 0c sub $0xc,%esp 10b5a5: ff 75 e0 pushl -0x20(%ebp) 10b5a8: 57 push %edi 10b5a9: 83 e6 01 and $0x1,%esi 10b5ac: 83 f6 01 xor $0x1,%esi 10b5af: 56 push %esi 10b5b0: 53 push %ebx 10b5b1: 83 c0 14 add $0x14,%eax 10b5b4: 50 push %eax 10b5b5: e8 6e 0a 00 00 call 10c028 <_CORE_mutex_Seize> <== ALWAYS TAKEN id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, level ); return _Semaphore_Translate_core_mutex_return_code( 10b5ba: 83 c4 14 add $0x14,%esp 10b5bd: a1 f8 53 12 00 mov 0x1253f8,%eax 10b5c2: ff 70 34 pushl 0x34(%eax) 10b5c5: e8 12 01 00 00 call 10b6dc <_Semaphore_Translate_core_mutex_return_code> <== ALWAYS TAKEN 10b5ca: 83 c4 10 add $0x10,%esp break; } return RTEMS_INVALID_ID; } 10b5cd: 8d 65 f4 lea -0xc(%ebp),%esp 10b5d0: 5b pop %ebx 10b5d1: 5e pop %esi 10b5d2: 5f pop %edi 10b5d3: c9 leave 10b5d4: c3 ret 10b5d5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 10b5d8: 8b 15 f8 53 12 00 mov 0x1253f8,%edx executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; 10b5de: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx) if ( the_semaphore->count != 0 ) { 10b5e5: 8b 48 5c mov 0x5c(%eax),%ecx 10b5e8: 85 c9 test %ecx,%ecx 10b5ea: 75 2c jne 10b618 the_semaphore->count -= 1; _ISR_Enable( *level_p ); return; } if ( !wait ) { 10b5ec: 83 e6 01 and $0x1,%esi 10b5ef: 74 33 je 10b624 _ISR_Enable( *level_p ); 10b5f1: ff 75 e0 pushl -0x20(%ebp) 10b5f4: 9d popf executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; 10b5f5: 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( 10b5fc: 83 ec 0c sub $0xc,%esp 10b5ff: a1 f8 53 12 00 mov 0x1253f8,%eax 10b604: ff 70 34 pushl 0x34(%eax) 10b607: e8 e0 00 00 00 call 10b6ec <_Semaphore_Translate_core_semaphore_return_code> <== ALWAYS TAKEN 10b60c: 83 c4 10 add $0x10,%esp break; } return RTEMS_INVALID_ID; } 10b60f: 8d 65 f4 lea -0xc(%ebp),%esp 10b612: 5b pop %ebx 10b613: 5e pop %esi 10b614: 5f pop %edi 10b615: c9 leave 10b616: c3 ret 10b617: 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; 10b618: 49 dec %ecx 10b619: 89 48 5c mov %ecx,0x5c(%eax) _ISR_Enable( *level_p ); 10b61c: ff 75 e0 pushl -0x20(%ebp) 10b61f: 9d popf 10b620: eb da jmp 10b5fc <== ALWAYS TAKEN 10b622: 66 90 xchg %ax,%ax <== NOT EXECUTED 10b624: 8b 0d 38 53 12 00 mov 0x125338,%ecx 10b62a: 41 inc %ecx 10b62b: 89 0d 38 53 12 00 mov %ecx,0x125338 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; 10b631: 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; 10b638: 83 c0 14 add $0x14,%eax 10b63b: 89 42 44 mov %eax,0x44(%edx) executing->Wait.id = id; 10b63e: 89 5a 20 mov %ebx,0x20(%edx) _ISR_Enable( *level_p ); 10b641: ff 75 e0 pushl -0x20(%ebp) 10b644: 9d popf _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); 10b645: 52 push %edx 10b646: 68 9c db 10 00 push $0x10db9c 10b64b: 57 push %edi 10b64c: 50 push %eax 10b64d: e8 3a 22 00 00 call 10d88c <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); 10b652: e8 61 1d 00 00 call 10d3b8 <_Thread_Enable_dispatch> 10b657: 83 c4 10 add $0x10,%esp 10b65a: eb a0 jmp 10b5fc <== ALWAYS TAKEN 0010b65c : #endif rtems_status_code rtems_semaphore_release( rtems_id id ) { 10b65c: 55 push %ebp 10b65d: 89 e5 mov %esp,%ebp 10b65f: 53 push %ebx 10b660: 83 ec 18 sub $0x18,%esp 10b663: 8b 5d 08 mov 0x8(%ebp),%ebx RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) 10b666: 8d 45 f4 lea -0xc(%ebp),%eax 10b669: 50 push %eax 10b66a: 53 push %ebx 10b66b: 68 80 52 12 00 push $0x125280 10b670: e8 fb 14 00 00 call 10cb70 <_Objects_Get> Objects_Locations location; CORE_mutex_Status mutex_status; CORE_semaphore_Status semaphore_status; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 10b675: 83 c4 10 add $0x10,%esp 10b678: 8b 55 f4 mov -0xc(%ebp),%edx 10b67b: 85 d2 test %edx,%edx 10b67d: 74 0d je 10b68c 10b67f: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b684: 8b 5d fc mov -0x4(%ebp),%ebx 10b687: c9 leave 10b688: c3 ret 10b689: 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) ) { 10b68c: f6 40 10 30 testb $0x30,0x10(%eax) 10b690: 75 26 jne 10b6b8 MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return _Semaphore_Translate_core_mutex_return_code( mutex_status ); } else { semaphore_status = _CORE_semaphore_Surrender( 10b692: 52 push %edx 10b693: 6a 00 push $0x0 10b695: 53 push %ebx 10b696: 83 c0 14 add $0x14,%eax 10b699: 50 push %eax 10b69a: e8 75 0b 00 00 call 10c214 <_CORE_semaphore_Surrender> 10b69f: 89 c3 mov %eax,%ebx &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); 10b6a1: e8 12 1d 00 00 call 10d3b8 <_Thread_Enable_dispatch> return _Semaphore_Translate_core_semaphore_return_code( semaphore_status ); 10b6a6: 89 1c 24 mov %ebx,(%esp) 10b6a9: e8 3e 00 00 00 call 10b6ec <_Semaphore_Translate_core_semaphore_return_code> <== ALWAYS TAKEN &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return 10b6ae: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b6b1: 8b 5d fc mov -0x4(%ebp),%ebx 10b6b4: c9 leave 10b6b5: c3 ret 10b6b6: 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( 10b6b8: 51 push %ecx 10b6b9: 6a 00 push $0x0 10b6bb: 53 push %ebx 10b6bc: 83 c0 14 add $0x14,%eax 10b6bf: 50 push %eax 10b6c0: e8 03 0a 00 00 call 10c0c8 <_CORE_mutex_Surrender> <== ALWAYS TAKEN 10b6c5: 89 c3 mov %eax,%ebx &the_semaphore->Core_control.mutex, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); 10b6c7: e8 ec 1c 00 00 call 10d3b8 <_Thread_Enable_dispatch> return _Semaphore_Translate_core_mutex_return_code( mutex_status ); 10b6cc: 89 1c 24 mov %ebx,(%esp) 10b6cf: e8 08 00 00 00 call 10b6dc <_Semaphore_Translate_core_mutex_return_code> <== ALWAYS TAKEN 10b6d4: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b6d7: 8b 5d fc mov -0x4(%ebp),%ebx 10b6da: c9 leave 10b6db: c3 ret 0010c5ec : rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) { 10c5ec: 55 push %ebp 10c5ed: 89 e5 mov %esp,%ebp 10c5ef: 83 ec 08 sub $0x8,%esp 10c5f2: 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 ]; 10c5f5: a1 98 85 12 00 mov 0x128598,%eax 10c5fa: 8b 80 f0 00 00 00 mov 0xf0(%eax),%eax 10c600: 8b 0d d8 84 12 00 mov 0x1284d8,%ecx 10c606: 41 inc %ecx 10c607: 89 0d d8 84 12 00 mov %ecx,0x1284d8 asr = &api->Signal; _Thread_Disable_dispatch(); /* cannot reschedule while */ /* the thread is inconsistent */ if ( !_ASR_Is_null_handler( asr_handler ) ) { 10c60d: 85 d2 test %edx,%edx 10c60f: 74 13 je 10c624 asr->mode_set = mode_set; 10c611: 8b 4d 0c mov 0xc(%ebp),%ecx 10c614: 89 48 10 mov %ecx,0x10(%eax) asr->handler = asr_handler; 10c617: 89 50 0c mov %edx,0xc(%eax) } else _ASR_Initialize( asr ); _Thread_Enable_dispatch(); 10c61a: e8 45 20 00 00 call 10e664 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; } 10c61f: 31 c0 xor %eax,%eax 10c621: c9 leave 10c622: c3 ret 10c623: 90 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; 10c624: c6 40 08 00 movb $0x0,0x8(%eax) information->handler = NULL; 10c628: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) information->mode_set = RTEMS_DEFAULT_MODES; 10c62f: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) information->signals_posted = 0; 10c636: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) information->signals_pending = 0; 10c63d: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) information->nest_level = 0; 10c644: 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(); 10c64b: e8 14 20 00 00 call 10e664 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; } 10c650: 31 c0 xor %eax,%eax 10c652: c9 leave 10c653: c3 ret 00117908 : rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) { 117908: 55 push %ebp 117909: 89 e5 mov %esp,%ebp 11790b: 53 push %ebx 11790c: 83 ec 14 sub $0x14,%esp 11790f: 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 ) 117912: 85 db test %ebx,%ebx 117914: 75 0a jne 117920 117916: b8 0a 00 00 00 mov $0xa,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11791b: 8b 5d fc mov -0x4(%ebp),%ebx 11791e: c9 leave 11791f: c3 ret ASR_Information *asr; if ( !signal_set ) return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); 117920: 83 ec 08 sub $0x8,%esp 117923: 8d 45 f4 lea -0xc(%ebp),%eax 117926: 50 push %eax 117927: ff 75 08 pushl 0x8(%ebp) 11792a: e8 f5 3a 00 00 call 11b424 <_Thread_Get> switch ( location ) { 11792f: 83 c4 10 add $0x10,%esp 117932: 8b 55 f4 mov -0xc(%ebp),%edx 117935: 85 d2 test %edx,%edx 117937: 74 0b je 117944 117939: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11793e: 8b 5d fc mov -0x4(%ebp),%ebx 117941: c9 leave 117942: c3 ret 117943: 90 nop <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 117944: 8b 90 f0 00 00 00 mov 0xf0(%eax),%edx asr = &api->Signal; 11794a: 8b 4a 0c mov 0xc(%edx),%ecx 11794d: 85 c9 test %ecx,%ecx 11794f: 74 43 je 117994 if ( ! _ASR_Is_null_handler( asr->handler ) ) { if ( asr->is_enabled ) { 117951: 80 7a 08 00 cmpb $0x0,0x8(%edx) 117955: 74 29 je 117980 rtems_signal_set *signal_set ) { ISR_Level _level; _ISR_Disable( _level ); 117957: 9c pushf 117958: fa cli 117959: 59 pop %ecx *signal_set |= signals; 11795a: 09 5a 14 or %ebx,0x14(%edx) _ISR_Enable( _level ); 11795d: 51 push %ecx 11795e: 9d popf _ASR_Post_signals( signal_set, &asr->signals_posted ); the_thread->do_post_task_switch_extension = true; 11795f: c6 40 74 01 movb $0x1,0x74(%eax) if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 117963: 8b 15 f4 f7 13 00 mov 0x13f7f4,%edx 117969: 85 d2 test %edx,%edx 11796b: 74 1b je 117988 11796d: 3b 05 18 f8 13 00 cmp 0x13f818,%eax 117973: 75 13 jne 117988 <== ALWAYS TAKEN _ISR_Signals_to_thread_executing = true; 117975: c6 05 c8 f8 13 00 01 movb $0x1,0x13f8c8 11797c: eb 0a jmp 117988 <== ALWAYS TAKEN 11797e: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_signal_set *signal_set ) { ISR_Level _level; _ISR_Disable( _level ); 117980: 9c pushf 117981: fa cli 117982: 58 pop %eax *signal_set |= signals; 117983: 09 5a 18 or %ebx,0x18(%edx) _ISR_Enable( _level ); 117986: 50 push %eax 117987: 9d popf } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); 117988: e8 47 3a 00 00 call 11b3d4 <_Thread_Enable_dispatch> 11798d: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11798f: 8b 5d fc mov -0x4(%ebp),%ebx 117992: c9 leave 117993: c3 ret _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 117994: e8 3b 3a 00 00 call 11b3d4 <_Thread_Enable_dispatch> 117999: b8 0b 00 00 00 mov $0xb,%eax return RTEMS_NOT_DEFINED; 11799e: e9 78 ff ff ff jmp 11791b <== ALWAYS TAKEN 0010b43c : * rtems_stack_checker_Begin_extension */ void rtems_stack_checker_begin_extension( Thread_Control *the_thread ) { 10b43c: 55 push %ebp 10b43d: 89 e5 mov %esp,%ebp 10b43f: 57 push %edi 10b440: 56 push %esi 10b441: 8b 45 08 mov 0x8(%ebp),%eax Stack_check_Control *the_pattern; if ( the_thread->Object.id == 0 ) /* skip system tasks */ 10b444: 8b 50 08 mov 0x8(%eax),%edx 10b447: 85 d2 test %edx,%edx 10b449: 74 15 je 10b460 <== ALWAYS TAKEN return; the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack); *the_pattern = Stack_check_Pattern; 10b44b: 8b b8 c4 00 00 00 mov 0xc4(%eax),%edi 10b451: 83 c7 08 add $0x8,%edi 10b454: be c0 d6 16 00 mov $0x16d6c0,%esi 10b459: b9 04 00 00 00 mov $0x4,%ecx 10b45e: f3 a5 rep movsl %ds:(%esi),%es:(%edi) } 10b460: 5e pop %esi 10b461: 5f pop %edi 10b462: c9 leave 10b463: c3 ret 0010b854 : */ bool rtems_stack_checker_create_extension( Thread_Control *running __attribute__((unused)), Thread_Control *the_thread ) { 10b854: 55 push %ebp 10b855: 89 e5 mov %esp,%ebp 10b857: 57 push %edi 10b858: 8b 7d 0c mov 0xc(%ebp),%edi Stack_check_Initialize(); 10b85b: e8 94 ff ff ff call 10b7f4 <== ALWAYS TAKEN if (the_thread) 10b860: 85 ff test %edi,%edi 10b862: 74 12 je 10b876 <== ALWAYS TAKEN Stack_check_Dope_stack(&the_thread->Start.Initial_stack); 10b864: 8b 8f c0 00 00 00 mov 0xc0(%edi),%ecx 10b86a: 8b 97 c4 00 00 00 mov 0xc4(%edi),%edx 10b870: b0 a5 mov $0xa5,%al 10b872: 89 d7 mov %edx,%edi 10b874: f3 aa rep stos %al,%es:(%edi) return true; } 10b876: b0 01 mov $0x1,%al 10b878: 5f pop %edi 10b879: c9 leave 10b87a: c3 ret 0010b724 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 10b724: 55 push %ebp 10b725: 89 e5 mov %esp,%ebp 10b727: 57 push %edi 10b728: 56 push %esi Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 10b729: a1 38 d9 16 00 mov 0x16d938,%eax ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 10b72e: 8b b0 c4 00 00 00 mov 0xc4(%eax),%esi 10b734: 39 f5 cmp %esi,%ebp 10b736: 73 48 jae 10b780 <== NEVER TAKEN 10b738: 31 c0 xor %eax,%eax <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 10b73a: 8b 0d 58 a9 16 00 mov 0x16a958,%ecx 10b740: 85 c9 test %ecx,%ecx 10b742: 75 28 jne 10b76c <== NEVER TAKEN 10b744: b2 01 mov $0x1,%dl <== NOT EXECUTED } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 10b746: 84 c0 test %al,%al 10b748: 74 04 je 10b74e <== ALWAYS TAKEN 10b74a: 84 d2 test %dl,%dl 10b74c: 75 42 jne 10b790 <== NEVER TAKEN return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 10b74e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10b751: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED 10b754: 52 push %edx <== NOT EXECUTED 10b755: ff 35 38 d9 16 00 pushl 0x16d938 <== NOT EXECUTED 10b75b: e8 08 ff ff ff call 10b668 <== NOT EXECUTED 10b760: b0 01 mov $0x1,%al <== NOT EXECUTED return true; 10b762: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 10b765: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10b768: 5e pop %esi <== NOT EXECUTED 10b769: 5f pop %edi <== NOT EXECUTED 10b76a: c9 leave <== NOT EXECUTED 10b76b: c3 ret <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { pattern_ok = (!memcmp( 10b76c: 83 c6 08 add $0x8,%esi 10b76f: bf c0 d6 16 00 mov $0x16d6c0,%edi 10b774: b9 10 00 00 00 mov $0x10,%ecx 10b779: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10b77b: 0f 94 c2 sete %dl 10b77e: eb c6 jmp 10b746 <== ALWAYS TAKEN } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) 10b780: 8b 90 c0 00 00 00 mov 0xc0(%eax),%edx 10b786: 8d 04 16 lea (%esi,%edx,1),%eax 10b789: 39 c5 cmp %eax,%ebp 10b78b: 0f 96 c0 setbe %al 10b78e: eb aa jmp 10b73a <== ALWAYS TAKEN } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 10b790: 31 c0 xor %eax,%eax /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); return true; } 10b792: 8d 65 f8 lea -0x8(%ebp),%esp 10b795: 5e pop %esi 10b796: 5f pop %edi 10b797: c9 leave 10b798: c3 ret 0010b650 : void rtems_stack_checker_report_usage( void ) { 10b650: 55 push %ebp <== NOT EXECUTED 10b651: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10b653: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 10b656: 68 c8 df 10 00 push $0x10dfc8 <== NOT EXECUTED 10b65b: 6a 00 push $0x0 <== NOT EXECUTED 10b65d: e8 8a ff ff ff call 10b5ec <== NOT EXECUTED 10b662: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 10b665: c9 leave <== NOT EXECUTED 10b666: c3 ret <== NOT EXECUTED 0010b5ec : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 10b5ec: 55 push %ebp <== NOT EXECUTED 10b5ed: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10b5ef: 56 push %esi <== NOT EXECUTED 10b5f0: 53 push %ebx <== NOT EXECUTED 10b5f1: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED 10b5f4: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED print_context = context; 10b5f7: 89 35 5c a9 16 00 mov %esi,0x16a95c <== NOT EXECUTED print_handler = print; 10b5fd: 89 1d 60 a9 16 00 mov %ebx,0x16a960 <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 10b603: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10b606: 68 08 98 15 00 push $0x159808 <== NOT EXECUTED 10b60b: 56 push %esi <== NOT EXECUTED 10b60c: ff d3 call *%ebx <== NOT EXECUTED (*print)( context, 10b60e: 58 pop %eax <== NOT EXECUTED 10b60f: 5a pop %edx <== NOT EXECUTED 10b610: 68 88 98 15 00 push $0x159888 <== NOT EXECUTED 10b615: 56 push %esi <== NOT EXECUTED 10b616: 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 ); 10b618: c7 04 24 9c b4 10 00 movl $0x10b49c,(%esp) <== NOT EXECUTED 10b61f: e8 34 73 00 00 call 112958 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 10b624: c7 04 24 ff ff ff ff movl $0xffffffff,(%esp) <== NOT EXECUTED 10b62b: e8 6c fe ff ff call 10b49c <== NOT EXECUTED print_context = NULL; 10b630: c7 05 5c a9 16 00 00 movl $0x0,0x16a95c <== NOT EXECUTED 10b637: 00 00 00 <== NOT EXECUTED print_handler = NULL; 10b63a: c7 05 60 a9 16 00 00 movl $0x0,0x16a960 <== NOT EXECUTED 10b641: 00 00 00 <== NOT EXECUTED 10b644: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 10b647: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10b64a: 5b pop %ebx <== NOT EXECUTED 10b64b: 5e pop %esi <== NOT EXECUTED 10b64c: c9 leave <== NOT EXECUTED 10b64d: c3 ret <== NOT EXECUTED 0010b79c : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 10b79c: 55 push %ebp 10b79d: 89 e5 mov %esp,%ebp 10b79f: 57 push %edi 10b7a0: 56 push %esi 10b7a1: 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; 10b7a4: 8b 90 c4 00 00 00 mov 0xc4(%eax),%edx 10b7aa: 8d 72 08 lea 0x8(%edx),%esi ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 10b7ad: 39 d5 cmp %edx,%ebp 10b7af: 72 0a jb 10b7bb <== 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; 10b7b1: 03 90 c0 00 00 00 add 0xc0(%eax),%edx 10b7b7: 39 d5 cmp %edx,%ebp 10b7b9: 76 21 jbe 10b7dc <== 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, 10b7bb: bf c0 d6 16 00 mov $0x16d6c0,%edi <== NOT EXECUTED 10b7c0: b9 10 00 00 00 mov $0x10,%ecx <== NOT EXECUTED 10b7c5: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) <== NOT EXECUTED 10b7c7: 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 ); 10b7ca: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED 10b7cd: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 10b7d0: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } } 10b7d3: 5e pop %esi <== NOT EXECUTED 10b7d4: 5f pop %edi <== NOT EXECUTED 10b7d5: 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 ); 10b7d6: e9 8d fe ff ff jmp 10b668 <== NOT EXECUTED 10b7db: 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, 10b7dc: bf c0 d6 16 00 mov $0x16d6c0,%edi 10b7e1: b9 10 00 00 00 mov $0x10,%ecx (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 10b7e6: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10b7e8: 74 06 je 10b7f0 <== NEVER TAKEN 10b7ea: 31 d2 xor %edx,%edx <== NOT EXECUTED 10b7ec: eb dc jmp 10b7ca <== NOT EXECUTED 10b7ee: 66 90 xchg %ax,%ax <== NOT EXECUTED Stack_check_report_blown_task( running, pattern_ok ); } } 10b7f0: 5e pop %esi 10b7f1: 5f pop %edi 10b7f2: c9 leave 10b7f3: c3 ret 00110b80 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 110b80: 55 push %ebp 110b81: 89 e5 mov %esp,%ebp 110b83: 57 push %edi 110b84: 56 push %esi 110b85: 53 push %ebx 110b86: 83 ec 2c sub $0x2c,%esp 110b89: 8b 75 08 mov 0x8(%ebp),%esi 110b8c: 8b 5d 0c mov 0xc(%ebp),%ebx 110b8f: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110b92: 85 db test %ebx,%ebx 110b94: 74 72 je 110c08 return RTEMS_INVALID_ADDRESS; errno = 0; 110b96: e8 61 1d 00 00 call 1128fc <__errno> 110b9b: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 110ba1: c7 03 00 00 00 00 movl $0x0,(%ebx) 110ba7: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 110bae: 83 ec 08 sub $0x8,%esp 110bb1: 8d 45 e4 lea -0x1c(%ebp),%eax 110bb4: 50 push %eax 110bb5: 56 push %esi 110bb6: e8 ad 47 00 00 call 115368 #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 ) 110bbb: 83 c4 10 add $0x10,%esp 110bbe: 85 ff test %edi,%edi 110bc0: 74 05 je 110bc7 *endptr = end; 110bc2: 8b 45 e4 mov -0x1c(%ebp),%eax 110bc5: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 110bc7: 39 75 e4 cmp %esi,-0x1c(%ebp) 110bca: 74 4c je 110c18 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110bcc: dd 05 f0 41 12 00 fldl 0x1241f0 110bd2: d9 c9 fxch %st(1) 110bd4: dd e1 fucom %st(1) 110bd6: df e0 fnstsw %ax 110bd8: dd d9 fstp %st(1) 110bda: f6 c4 45 test $0x45,%ah 110bdd: 74 0d je 110bec /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 110bdf: dd 1b fstpl (%ebx) 110be1: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 110be3: 8d 65 f4 lea -0xc(%ebp),%esp 110be6: 5b pop %ebx 110be7: 5e pop %esi 110be8: 5f pop %edi 110be9: c9 leave 110bea: c3 ret 110beb: 90 nop <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110bec: dd 5d c8 fstpl -0x38(%ebp) 110bef: e8 08 1d 00 00 call 1128fc <__errno> 110bf4: 83 38 22 cmpl $0x22,(%eax) 110bf7: dd 45 c8 fldl -0x38(%ebp) 110bfa: 75 e3 jne 110bdf <== ALWAYS TAKEN 110bfc: dd d8 fstp %st(0) 110bfe: b8 0a 00 00 00 mov $0xa,%eax 110c03: eb de jmp 110be3 <== ALWAYS TAKEN 110c05: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110c08: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 110c0d: 8d 65 f4 lea -0xc(%ebp),%esp 110c10: 5b pop %ebx 110c11: 5e pop %esi 110c12: 5f pop %edi 110c13: c9 leave 110c14: c3 ret 110c15: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 110c18: 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 ) 110c1a: b8 0b 00 00 00 mov $0xb,%eax 110c1f: eb c2 jmp 110be3 <== ALWAYS TAKEN 00110c24 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 110c24: 55 push %ebp 110c25: 89 e5 mov %esp,%ebp 110c27: 57 push %edi 110c28: 56 push %esi 110c29: 53 push %ebx 110c2a: 83 ec 2c sub $0x2c,%esp 110c2d: 8b 75 08 mov 0x8(%ebp),%esi 110c30: 8b 5d 0c mov 0xc(%ebp),%ebx 110c33: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110c36: 85 db test %ebx,%ebx 110c38: 74 6a je 110ca4 return RTEMS_INVALID_ADDRESS; errno = 0; 110c3a: e8 bd 1c 00 00 call 1128fc <__errno> 110c3f: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 110c45: c7 03 00 00 00 00 movl $0x0,(%ebx) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 110c4b: 83 ec 08 sub $0x8,%esp 110c4e: 8d 45 e4 lea -0x1c(%ebp),%eax 110c51: 50 push %eax 110c52: 56 push %esi 110c53: e8 cc 46 00 00 call 115324 #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 ) 110c58: 83 c4 10 add $0x10,%esp 110c5b: 85 ff test %edi,%edi 110c5d: 74 05 je 110c64 *endptr = end; 110c5f: 8b 45 e4 mov -0x1c(%ebp),%eax 110c62: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 110c64: 39 75 e4 cmp %esi,-0x1c(%ebp) 110c67: 74 4b je 110cb4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110c69: d9 05 f8 41 12 00 flds 0x1241f8 110c6f: d9 c9 fxch %st(1) 110c71: dd e1 fucom %st(1) 110c73: df e0 fnstsw %ax 110c75: dd d9 fstp %st(1) 110c77: f6 c4 45 test $0x45,%ah 110c7a: 74 0c je 110c88 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 110c7c: d9 1b fstps (%ebx) 110c7e: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 110c80: 8d 65 f4 lea -0xc(%ebp),%esp 110c83: 5b pop %ebx 110c84: 5e pop %esi 110c85: 5f pop %edi 110c86: c9 leave 110c87: c3 ret return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110c88: d9 5d c8 fstps -0x38(%ebp) 110c8b: e8 6c 1c 00 00 call 1128fc <__errno> 110c90: 83 38 22 cmpl $0x22,(%eax) 110c93: d9 45 c8 flds -0x38(%ebp) 110c96: 75 e4 jne 110c7c <== ALWAYS TAKEN 110c98: dd d8 fstp %st(0) 110c9a: b8 0a 00 00 00 mov $0xa,%eax 110c9f: eb df jmp 110c80 <== ALWAYS TAKEN 110ca1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110ca4: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 110ca9: 8d 65 f4 lea -0xc(%ebp),%esp 110cac: 5b pop %ebx 110cad: 5e pop %esi 110cae: 5f pop %edi 110caf: c9 leave 110cb0: c3 ret 110cb1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 110cb4: 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 ) 110cb6: b8 0b 00 00 00 mov $0xb,%eax 110cbb: eb c3 jmp 110c80 <== ALWAYS TAKEN 00122b64 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 122b64: 55 push %ebp 122b65: 89 e5 mov %esp,%ebp 122b67: 57 push %edi 122b68: 56 push %esi 122b69: 53 push %ebx 122b6a: 83 ec 2c sub $0x2c,%esp 122b6d: 8b 75 08 mov 0x8(%ebp),%esi 122b70: 8b 5d 0c mov 0xc(%ebp),%ebx 122b73: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122b76: 85 db test %ebx,%ebx 122b78: 74 5e je 122bd8 return RTEMS_INVALID_ADDRESS; errno = 0; 122b7a: e8 3d e5 01 00 call 1410bc <__errno> 122b7f: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 122b85: 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 ); 122b8b: 50 push %eax 122b8c: ff 75 14 pushl 0x14(%ebp) 122b8f: 8d 45 e4 lea -0x1c(%ebp),%eax 122b92: 50 push %eax 122b93: 56 push %esi 122b94: e8 af 50 02 00 call 147c48 122b99: 89 c2 mov %eax,%edx #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 122b9b: 83 c4 10 add $0x10,%esp 122b9e: 85 ff test %edi,%edi 122ba0: 74 05 je 122ba7 *endptr = end; 122ba2: 8b 45 e4 mov -0x1c(%ebp),%eax 122ba5: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 122ba7: 39 75 e4 cmp %esi,-0x1c(%ebp) 122baa: 74 3c je 122be8 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122bac: 81 fa ff ff ff 7f cmp $0x7fffffff,%edx 122bb2: 74 0c je 122bc0 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 122bb4: 89 13 mov %edx,(%ebx) 122bb6: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 122bb8: 8d 65 f4 lea -0xc(%ebp),%esp 122bbb: 5b pop %ebx 122bbc: 5e pop %esi 122bbd: 5f pop %edi 122bbe: c9 leave 122bbf: c3 ret return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122bc0: 89 55 d4 mov %edx,-0x2c(%ebp) 122bc3: e8 f4 e4 01 00 call 1410bc <__errno> 122bc8: 83 38 22 cmpl $0x22,(%eax) 122bcb: 8b 55 d4 mov -0x2c(%ebp),%edx 122bce: 75 e4 jne 122bb4 <== ALWAYS TAKEN 122bd0: b8 0a 00 00 00 mov $0xa,%eax 122bd5: eb e1 jmp 122bb8 <== ALWAYS TAKEN 122bd7: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122bd8: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 122bdd: 8d 65 f4 lea -0xc(%ebp),%esp 122be0: 5b pop %ebx 122be1: 5e pop %esi 122be2: 5f pop %edi 122be3: c9 leave 122be4: c3 ret 122be5: 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 ) 122be8: b8 0b 00 00 00 mov $0xb,%eax 122bed: eb c9 jmp 122bb8 <== ALWAYS TAKEN 00110dfc : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 110dfc: 55 push %ebp 110dfd: 89 e5 mov %esp,%ebp 110dff: 57 push %edi 110e00: 56 push %esi 110e01: 53 push %ebx 110e02: 83 ec 1c sub $0x1c,%esp 110e05: 8b 7d 08 mov 0x8(%ebp),%edi 110e08: 8b 5d 0c mov 0xc(%ebp),%ebx STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110e0b: 85 db test %ebx,%ebx 110e0d: 74 69 je 110e78 return RTEMS_INVALID_ADDRESS; errno = 0; 110e0f: e8 e8 1a 00 00 call 1128fc <__errno> 110e14: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 110e1a: 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 ); 110e20: 52 push %edx 110e21: ff 75 14 pushl 0x14(%ebp) 110e24: 8d 45 e4 lea -0x1c(%ebp),%eax 110e27: 50 push %eax 110e28: 57 push %edi 110e29: e8 d6 46 00 00 call 115504 110e2e: 89 c6 mov %eax,%esi #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 110e30: 83 c4 10 add $0x10,%esp 110e33: 8b 45 10 mov 0x10(%ebp),%eax 110e36: 85 c0 test %eax,%eax 110e38: 74 08 je 110e42 *endptr = end; 110e3a: 8b 45 e4 mov -0x1c(%ebp),%eax 110e3d: 8b 55 10 mov 0x10(%ebp),%edx 110e40: 89 02 mov %eax,(%edx) /* nothing was converted */ if ( end == s ) 110e42: 39 7d e4 cmp %edi,-0x1c(%ebp) 110e45: 74 41 je 110e88 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110e47: 81 fe ff ff ff 7f cmp $0x7fffffff,%esi 110e4d: 74 15 je 110e64 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 110e4f: 81 fe 00 00 00 80 cmp $0x80000000,%esi 110e55: 74 0d je 110e64 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 110e57: 89 33 mov %esi,(%ebx) 110e59: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 110e5b: 8d 65 f4 lea -0xc(%ebp),%esp 110e5e: 5b pop %ebx 110e5f: 5e pop %esi 110e60: 5f pop %edi 110e61: c9 leave 110e62: c3 ret 110e63: 90 nop <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 110e64: e8 93 1a 00 00 call 1128fc <__errno> 110e69: 83 38 22 cmpl $0x22,(%eax) 110e6c: 75 e9 jne 110e57 <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; 110e6e: b8 0a 00 00 00 mov $0xa,%eax 110e73: eb e6 jmp 110e5b <== ALWAYS TAKEN 110e75: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110e78: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 110e7d: 8d 65 f4 lea -0xc(%ebp),%esp 110e80: 5b pop %ebx 110e81: 5e pop %esi 110e82: 5f pop %edi 110e83: c9 leave 110e84: c3 ret 110e85: 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 ) 110e88: b8 0b 00 00 00 mov $0xb,%eax 110e8d: eb cc jmp 110e5b <== ALWAYS TAKEN 00110d4c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 110d4c: 55 push %ebp 110d4d: 89 e5 mov %esp,%ebp 110d4f: 57 push %edi 110d50: 56 push %esi 110d51: 53 push %ebx 110d52: 83 ec 2c sub $0x2c,%esp 110d55: 8b 7d 08 mov 0x8(%ebp),%edi 110d58: 8b 5d 0c mov 0xc(%ebp),%ebx STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110d5b: 85 db test %ebx,%ebx 110d5d: 0f 84 81 00 00 00 je 110de4 return RTEMS_INVALID_ADDRESS; errno = 0; 110d63: e8 94 1b 00 00 call 1128fc <__errno> 110d68: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 110d6e: c7 03 00 00 00 00 movl $0x0,(%ebx) 110d74: 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 ); 110d7b: 52 push %edx 110d7c: ff 75 14 pushl 0x14(%ebp) 110d7f: 8d 45 e4 lea -0x1c(%ebp),%eax 110d82: 50 push %eax 110d83: 57 push %edi 110d84: e8 97 47 00 00 call 115520 110d89: 89 c6 mov %eax,%esi #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 110d8b: 83 c4 10 add $0x10,%esp 110d8e: 8b 45 10 mov 0x10(%ebp),%eax 110d91: 85 c0 test %eax,%eax 110d93: 74 08 je 110d9d *endptr = end; 110d95: 8b 45 e4 mov -0x1c(%ebp),%eax 110d98: 8b 4d 10 mov 0x10(%ebp),%ecx 110d9b: 89 01 mov %eax,(%ecx) /* nothing was converted */ if ( end == s ) 110d9d: 39 7d e4 cmp %edi,-0x1c(%ebp) 110da0: 74 52 je 110df4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110da2: 89 d1 mov %edx,%ecx 110da4: 81 f1 ff ff ff 7f xor $0x7fffffff,%ecx 110daa: 89 f0 mov %esi,%eax 110dac: f7 d0 not %eax 110dae: 09 c1 or %eax,%ecx 110db0: 74 1a je 110dcc return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 110db2: 8d 82 00 00 00 80 lea -0x80000000(%edx),%eax 110db8: 09 f0 or %esi,%eax 110dba: 74 10 je 110dcc return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 110dbc: 89 33 mov %esi,(%ebx) 110dbe: 89 53 04 mov %edx,0x4(%ebx) 110dc1: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 110dc3: 8d 65 f4 lea -0xc(%ebp),%esp 110dc6: 5b pop %ebx 110dc7: 5e pop %esi 110dc8: 5f pop %edi 110dc9: c9 leave 110dca: c3 ret 110dcb: 90 nop <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 110dcc: 89 55 d4 mov %edx,-0x2c(%ebp) 110dcf: e8 28 1b 00 00 call 1128fc <__errno> 110dd4: 83 38 22 cmpl $0x22,(%eax) 110dd7: 8b 55 d4 mov -0x2c(%ebp),%edx 110dda: 75 e0 jne 110dbc <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; 110ddc: b8 0a 00 00 00 mov $0xa,%eax 110de1: eb e0 jmp 110dc3 <== ALWAYS TAKEN 110de3: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110de4: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 110de9: 8d 65 f4 lea -0xc(%ebp),%esp 110dec: 5b pop %ebx 110ded: 5e pop %esi 110dee: 5f pop %edi 110def: c9 leave 110df0: c3 ret 110df1: 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 ) 110df4: b8 0b 00 00 00 mov $0xb,%eax 110df9: eb c8 jmp 110dc3 <== ALWAYS TAKEN 00122bf0 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 122bf0: 55 push %ebp 122bf1: 89 e5 mov %esp,%ebp 122bf3: 57 push %edi 122bf4: 56 push %esi 122bf5: 53 push %ebx 122bf6: 83 ec 2c sub $0x2c,%esp 122bf9: 8b 75 08 mov 0x8(%ebp),%esi 122bfc: 8b 5d 0c mov 0xc(%ebp),%ebx 122bff: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122c02: 85 db test %ebx,%ebx 122c04: 74 5a je 122c60 return RTEMS_INVALID_ADDRESS; errno = 0; 122c06: e8 b1 e4 01 00 call 1410bc <__errno> 122c0b: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 122c11: 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 ); 122c17: 50 push %eax 122c18: 6a 10 push $0x10 122c1a: 8d 45 e4 lea -0x1c(%ebp),%eax 122c1d: 50 push %eax 122c1e: 56 push %esi 122c1f: e8 a0 54 02 00 call 1480c4 122c24: 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 ) 122c26: 83 c4 10 add $0x10,%esp 122c29: 85 ff test %edi,%edi 122c2b: 74 05 je 122c32 *endptr = end; 122c2d: 8b 45 e4 mov -0x1c(%ebp),%eax 122c30: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 122c32: 39 75 e4 cmp %esi,-0x1c(%ebp) 122c35: 74 39 je 122c70 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122c37: 83 fa ff cmp $0xffffffff,%edx 122c3a: 74 0c je 122c48 <== ALWAYS TAKEN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 122c3c: 89 13 mov %edx,(%ebx) 122c3e: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 122c40: 8d 65 f4 lea -0xc(%ebp),%esp 122c43: 5b pop %ebx 122c44: 5e pop %esi 122c45: 5f pop %edi 122c46: c9 leave 122c47: c3 ret return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122c48: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 122c4b: e8 6c e4 01 00 call 1410bc <__errno> <== NOT EXECUTED 122c50: 83 38 22 cmpl $0x22,(%eax) <== NOT EXECUTED 122c53: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 122c56: 75 e4 jne 122c3c <== NOT EXECUTED 122c58: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED 122c5d: eb e1 jmp 122c40 <== NOT EXECUTED 122c5f: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122c60: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 122c65: 8d 65 f4 lea -0xc(%ebp),%esp 122c68: 5b pop %ebx 122c69: 5e pop %esi 122c6a: 5f pop %edi 122c6b: c9 leave 122c6c: c3 ret 122c6d: 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 ) 122c70: b8 0b 00 00 00 mov $0xb,%eax 122c75: eb c9 jmp 122c40 <== ALWAYS TAKEN 00122c78 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 122c78: 55 push %ebp 122c79: 89 e5 mov %esp,%ebp 122c7b: 57 push %edi 122c7c: 56 push %esi 122c7d: 53 push %ebx 122c7e: 83 ec 1c sub $0x1c,%esp 122c81: 8b 75 08 mov 0x8(%ebp),%esi 122c84: 8b 5d 0c mov 0xc(%ebp),%ebx 122c87: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122c8a: 85 db test %ebx,%ebx 122c8c: 74 3a je 122cc8 return RTEMS_INVALID_ADDRESS; errno = 0; 122c8e: e8 29 e4 01 00 call 1410bc <__errno> 122c93: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 122c99: 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 ); 122c9c: 50 push %eax 122c9d: ff 75 14 pushl 0x14(%ebp) 122ca0: 8d 45 e4 lea -0x1c(%ebp),%eax 122ca3: 50 push %eax 122ca4: 56 push %esi 122ca5: e8 1a 54 02 00 call 1480c4 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 122caa: 83 c4 10 add $0x10,%esp 122cad: 85 ff test %edi,%edi 122caf: 74 05 je 122cb6 *endptr = end; 122cb1: 8b 55 e4 mov -0x1c(%ebp),%edx 122cb4: 89 17 mov %edx,(%edi) /* nothing was converted */ if ( end == s ) 122cb6: 39 75 e4 cmp %esi,-0x1c(%ebp) 122cb9: 74 1d je 122cd8 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 122cbb: 88 03 mov %al,(%ebx) 122cbd: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 122cbf: 8d 65 f4 lea -0xc(%ebp),%esp 122cc2: 5b pop %ebx 122cc3: 5e pop %esi 122cc4: 5f pop %edi 122cc5: c9 leave 122cc6: c3 ret 122cc7: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122cc8: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 122ccd: 8d 65 f4 lea -0xc(%ebp),%esp 122cd0: 5b pop %ebx 122cd1: 5e pop %esi 122cd2: 5f pop %edi 122cd3: c9 leave 122cd4: c3 ret 122cd5: 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 ) 122cd8: b8 0b 00 00 00 mov $0xb,%eax 122cdd: eb e0 jmp 122cbf <== ALWAYS TAKEN 00110f80 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 110f80: 55 push %ebp 110f81: 89 e5 mov %esp,%ebp 110f83: 57 push %edi 110f84: 56 push %esi 110f85: 53 push %ebx 110f86: 83 ec 2c sub $0x2c,%esp 110f89: 8b 75 08 mov 0x8(%ebp),%esi 110f8c: 8b 5d 0c mov 0xc(%ebp),%ebx 110f8f: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110f92: 85 db test %ebx,%ebx 110f94: 74 5e je 110ff4 return RTEMS_INVALID_ADDRESS; errno = 0; 110f96: e8 61 19 00 00 call 1128fc <__errno> 110f9b: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 110fa1: 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 ); 110fa7: 50 push %eax 110fa8: ff 75 14 pushl 0x14(%ebp) 110fab: 8d 45 e4 lea -0x1c(%ebp),%eax 110fae: 50 push %eax 110faf: 56 push %esi 110fb0: e8 cb 49 00 00 call 115980 110fb5: 89 c2 mov %eax,%edx #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 110fb7: 83 c4 10 add $0x10,%esp 110fba: 85 ff test %edi,%edi 110fbc: 74 05 je 110fc3 *endptr = end; 110fbe: 8b 45 e4 mov -0x1c(%ebp),%eax 110fc1: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 110fc3: 39 75 e4 cmp %esi,-0x1c(%ebp) 110fc6: 74 3c je 111004 <== ALWAYS TAKEN return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110fc8: 83 fa ff cmp $0xffffffff,%edx 110fcb: 74 0f je 110fdc /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 110fcd: 89 13 mov %edx,(%ebx) 110fcf: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 110fd1: 8d 65 f4 lea -0xc(%ebp),%esp 110fd4: 5b pop %ebx 110fd5: 5e pop %esi 110fd6: 5f pop %edi 110fd7: c9 leave 110fd8: c3 ret 110fd9: 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)) 110fdc: 89 55 d4 mov %edx,-0x2c(%ebp) 110fdf: e8 18 19 00 00 call 1128fc <__errno> 110fe4: 83 38 22 cmpl $0x22,(%eax) 110fe7: 8b 55 d4 mov -0x2c(%ebp),%edx 110fea: 75 e1 jne 110fcd <== ALWAYS TAKEN 110fec: b8 0a 00 00 00 mov $0xa,%eax 110ff1: eb de jmp 110fd1 <== ALWAYS TAKEN 110ff3: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110ff4: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 110ff9: 8d 65 f4 lea -0xc(%ebp),%esp 110ffc: 5b pop %ebx 110ffd: 5e pop %esi 110ffe: 5f pop %edi 110fff: c9 leave 111000: c3 ret 111001: 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 ) 111004: b8 0b 00 00 00 mov $0xb,%eax 111009: eb c6 jmp 110fd1 00122ce0 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 122ce0: 55 push %ebp 122ce1: 89 e5 mov %esp,%ebp 122ce3: 57 push %edi 122ce4: 56 push %esi 122ce5: 53 push %ebx 122ce6: 83 ec 2c sub $0x2c,%esp 122ce9: 8b 75 08 mov 0x8(%ebp),%esi 122cec: 8b 5d 0c mov 0xc(%ebp),%ebx 122cef: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122cf2: 85 db test %ebx,%ebx 122cf4: 74 5e je 122d54 return RTEMS_INVALID_ADDRESS; errno = 0; 122cf6: e8 c1 e3 01 00 call 1410bc <__errno> 122cfb: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 122d01: 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 ); 122d07: 50 push %eax 122d08: ff 75 14 pushl 0x14(%ebp) 122d0b: 8d 45 e4 lea -0x1c(%ebp),%eax 122d0e: 50 push %eax 122d0f: 56 push %esi 122d10: e8 af 53 02 00 call 1480c4 122d15: 89 c2 mov %eax,%edx #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 122d17: 83 c4 10 add $0x10,%esp 122d1a: 85 ff test %edi,%edi 122d1c: 74 05 je 122d23 *endptr = end; 122d1e: 8b 45 e4 mov -0x1c(%ebp),%eax 122d21: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 122d23: 39 75 e4 cmp %esi,-0x1c(%ebp) 122d26: 74 3c je 122d64 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122d28: 83 fa ff cmp $0xffffffff,%edx 122d2b: 74 0f je 122d3c /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 122d2d: 89 13 mov %edx,(%ebx) 122d2f: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 122d31: 8d 65 f4 lea -0xc(%ebp),%esp 122d34: 5b pop %ebx 122d35: 5e pop %esi 122d36: 5f pop %edi 122d37: c9 leave 122d38: c3 ret 122d39: 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)) 122d3c: 89 55 d4 mov %edx,-0x2c(%ebp) 122d3f: e8 78 e3 01 00 call 1410bc <__errno> 122d44: 83 38 22 cmpl $0x22,(%eax) 122d47: 8b 55 d4 mov -0x2c(%ebp),%edx 122d4a: 75 e1 jne 122d2d <== ALWAYS TAKEN 122d4c: b8 0a 00 00 00 mov $0xa,%eax 122d51: eb de jmp 122d31 <== ALWAYS TAKEN 122d53: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122d54: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 122d59: 8d 65 f4 lea -0xc(%ebp),%esp 122d5c: 5b pop %ebx 122d5d: 5e pop %esi 122d5e: 5f pop %edi 122d5f: c9 leave 122d60: c3 ret 122d61: 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 ) 122d64: b8 0b 00 00 00 mov $0xb,%eax 122d69: eb c6 jmp 122d31 <== ALWAYS TAKEN 0011100c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 11100c: 55 push %ebp 11100d: 89 e5 mov %esp,%ebp 11100f: 57 push %edi 111010: 56 push %esi 111011: 53 push %ebx 111012: 83 ec 2c sub $0x2c,%esp 111015: 8b 7d 08 mov 0x8(%ebp),%edi 111018: 8b 5d 0c mov 0xc(%ebp),%ebx STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 11101b: 85 db test %ebx,%ebx 11101d: 74 6d je 11108c return RTEMS_INVALID_ADDRESS; errno = 0; 11101f: e8 d8 18 00 00 call 1128fc <__errno> 111024: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 11102a: c7 03 00 00 00 00 movl $0x0,(%ebx) 111030: 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 ); 111037: 52 push %edx 111038: ff 75 14 pushl 0x14(%ebp) 11103b: 8d 45 e4 lea -0x1c(%ebp),%eax 11103e: 50 push %eax 11103f: 57 push %edi 111040: e8 57 49 00 00 call 11599c 111045: 89 c6 mov %eax,%esi #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 111047: 83 c4 10 add $0x10,%esp 11104a: 8b 45 10 mov 0x10(%ebp),%eax 11104d: 85 c0 test %eax,%eax 11104f: 74 08 je 111059 *endptr = end; 111051: 8b 45 e4 mov -0x1c(%ebp),%eax 111054: 8b 4d 10 mov 0x10(%ebp),%ecx 111057: 89 01 mov %eax,(%ecx) /* nothing was converted */ if ( end == s ) 111059: 39 7d e4 cmp %edi,-0x1c(%ebp) 11105c: 74 3e je 11109c return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 11105e: 89 f0 mov %esi,%eax 111060: 21 d0 and %edx,%eax 111062: 40 inc %eax 111063: 74 0f je 111074 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 111065: 89 33 mov %esi,(%ebx) 111067: 89 53 04 mov %edx,0x4(%ebx) 11106a: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 11106c: 8d 65 f4 lea -0xc(%ebp),%esp 11106f: 5b pop %ebx 111070: 5e pop %esi 111071: 5f pop %edi 111072: c9 leave 111073: c3 ret return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 111074: 89 55 d4 mov %edx,-0x2c(%ebp) 111077: e8 80 18 00 00 call 1128fc <__errno> 11107c: 83 38 22 cmpl $0x22,(%eax) 11107f: 8b 55 d4 mov -0x2c(%ebp),%edx 111082: 75 e1 jne 111065 <== ALWAYS TAKEN 111084: b8 0a 00 00 00 mov $0xa,%eax 111089: eb e1 jmp 11106c <== ALWAYS TAKEN 11108b: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 11108c: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 111091: 8d 65 f4 lea -0xc(%ebp),%esp 111094: 5b pop %ebx 111095: 5e pop %esi 111096: 5f pop %edi 111097: c9 leave 111098: c3 ret 111099: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s ) 11109c: b8 0b 00 00 00 mov $0xb,%eax 1110a1: eb c9 jmp 11106c <== ALWAYS TAKEN 0010b6fc : size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) { 10b6fc: 55 push %ebp 10b6fd: 89 e5 mov %esp,%ebp 10b6ff: 57 push %edi 10b700: 56 push %esi 10b701: 53 push %ebx 10b702: 83 ec 1c sub $0x1c,%esp 10b705: 8b 5d 08 mov 0x8(%ebp),%ebx 10b708: 8b 4d 0c mov 0xc(%ebp),%ecx 10b70b: 8b 7d 18 mov 0x18(%ebp),%edi 10b70e: 8b 75 1c mov 0x1c(%ebp),%esi Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) 10b711: 85 f6 test %esi,%esi 10b713: 0f 84 37 01 00 00 je 10b850 return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 10b719: 85 db test %ebx,%ebx 10b71b: 0f 84 cb 00 00 00 je 10b7ec /* * Validate the RTEMS API priority and convert it to the core priority range. */ if ( !_Attributes_Is_system_task( the_attribute_set ) ) { 10b721: 66 85 ff test %di,%di 10b724: 78 1d js 10b743 */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 10b726: 85 c9 test %ecx,%ecx 10b728: 75 0e jne 10b738 } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; 10b72a: b8 13 00 00 00 mov $0x13,%eax } 10b72f: 8d 65 f4 lea -0xc(%ebp),%esp 10b732: 5b pop %ebx 10b733: 5e pop %esi 10b734: 5f pop %edi 10b735: c9 leave 10b736: c3 ret 10b737: 90 nop <== NOT EXECUTED 10b738: 0f b6 05 14 12 12 00 movzbl 0x121214,%eax 10b73f: 39 c1 cmp %eax,%ecx 10b741: 77 e7 ja 10b72a */ /* * Lock the allocator mutex for protection */ _RTEMS_Lock_allocator(); 10b743: 83 ec 0c sub $0xc,%esp 10b746: ff 35 f0 53 12 00 pushl 0x1253f0 10b74c: 89 4d e4 mov %ecx,-0x1c(%ebp) 10b74f: e8 60 06 00 00 call 10bdb4 <_API_Mutex_Lock> <== ALWAYS TAKEN * 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 ); 10b754: c7 04 24 c0 52 12 00 movl $0x1252c0,(%esp) 10b75b: e8 60 0f 00 00 call 10c6c0 <_Objects_Allocate> <== ALWAYS TAKEN 10b760: 89 c2 mov %eax,%edx * the event of an error. */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { 10b762: 83 c4 10 add $0x10,%esp 10b765: 85 c0 test %eax,%eax 10b767: 8b 4d e4 mov -0x1c(%ebp),%ecx 10b76a: 0f 84 c0 00 00 00 je 10b830 /* * Initialize the core thread for this task. */ status = _Thread_Initialize( 10b770: 50 push %eax 10b771: 53 push %ebx 10b772: 8b 45 14 mov 0x14(%ebp),%eax 10b775: 83 e0 01 and $0x1,%eax 10b778: 50 push %eax 10b779: 6a 00 push $0x0 10b77b: 8b 45 14 mov 0x14(%ebp),%eax 10b77e: c1 e8 09 shr $0x9,%eax 10b781: 83 e0 01 and $0x1,%eax 10b784: 50 push %eax 10b785: 8b 45 14 mov 0x14(%ebp),%eax 10b788: c1 e8 08 shr $0x8,%eax 10b78b: 83 f0 01 xor $0x1,%eax 10b78e: 83 e0 01 and $0x1,%eax 10b791: 50 push %eax 10b792: 51 push %ecx 10b793: 83 e7 01 and $0x1,%edi 10b796: 57 push %edi 10b797: ff 75 10 pushl 0x10(%ebp) 10b79a: 6a 00 push $0x0 10b79c: 52 push %edx 10b79d: 68 c0 52 12 00 push $0x1252c0 10b7a2: 89 55 e4 mov %edx,-0x1c(%ebp) 10b7a5: e8 aa 1c 00 00 call 10d454 <_Thread_Initialize> NULL, /* no budget algorithm callout */ _Modes_Get_interrupt_level(initial_modes), (Objects_Name) name ); if ( !status ) { 10b7aa: 83 c4 30 add $0x30,%esp 10b7ad: 84 c0 test %al,%al 10b7af: 8b 55 e4 mov -0x1c(%ebp),%edx 10b7b2: 74 48 je 10b7fc } api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true; 10b7b4: 8b 8a f0 00 00 00 mov 0xf0(%edx),%ecx 10b7ba: 8b 45 14 mov 0x14(%ebp),%eax 10b7bd: c1 e8 0a shr $0xa,%eax 10b7c0: 83 f0 01 xor $0x1,%eax 10b7c3: 83 e0 01 and $0x1,%eax 10b7c6: 88 41 08 mov %al,0x8(%ecx) *id = the_thread->Object.id; 10b7c9: 8b 42 08 mov 0x8(%edx),%eax 10b7cc: 89 06 mov %eax,(%esi) ); } #endif _RTEMS_Unlock_allocator(); 10b7ce: 83 ec 0c sub $0xc,%esp 10b7d1: ff 35 f0 53 12 00 pushl 0x1253f0 10b7d7: e8 20 06 00 00 call 10bdfc <_API_Mutex_Unlock> <== ALWAYS TAKEN 10b7dc: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10b7de: 83 c4 10 add $0x10,%esp } 10b7e1: 8d 65 f4 lea -0xc(%ebp),%esp 10b7e4: 5b pop %ebx 10b7e5: 5e pop %esi 10b7e6: 5f pop %edi 10b7e7: c9 leave 10b7e8: c3 ret 10b7e9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 10b7ec: b8 03 00 00 00 mov $0x3,%eax } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 10b7f1: 8d 65 f4 lea -0xc(%ebp),%esp 10b7f4: 5b pop %ebx 10b7f5: 5e pop %esi 10b7f6: 5f pop %edi 10b7f7: c9 leave 10b7f8: c3 ret 10b7f9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _RTEMS_tasks_Free ( Thread_Control *the_task ) { _Objects_Free( 10b7fc: 83 ec 0c sub $0xc,%esp 10b7ff: ff 72 08 pushl 0x8(%edx) 10b802: e8 a9 12 00 00 call 10cab0 <_Objects_Get_information_id> 10b807: 5a pop %edx 10b808: 59 pop %ecx 10b809: 8b 55 e4 mov -0x1c(%ebp),%edx 10b80c: 52 push %edx 10b80d: 50 push %eax 10b80e: e8 2d 12 00 00 call 10ca40 <_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(); 10b813: 58 pop %eax 10b814: ff 35 f0 53 12 00 pushl 0x1253f0 10b81a: e8 dd 05 00 00 call 10bdfc <_API_Mutex_Unlock> <== ALWAYS TAKEN 10b81f: b8 0d 00 00 00 mov $0xd,%eax return RTEMS_UNSATISFIED; 10b824: 83 c4 10 add $0x10,%esp } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 10b827: 8d 65 f4 lea -0xc(%ebp),%esp 10b82a: 5b pop %ebx 10b82b: 5e pop %esi 10b82c: 5f pop %edi 10b82d: c9 leave 10b82e: c3 ret 10b82f: 90 nop <== NOT EXECUTED */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { _RTEMS_Unlock_allocator(); 10b830: 83 ec 0c sub $0xc,%esp 10b833: ff 35 f0 53 12 00 pushl 0x1253f0 10b839: e8 be 05 00 00 call 10bdfc <_API_Mutex_Unlock> <== ALWAYS TAKEN 10b83e: b8 05 00 00 00 mov $0x5,%eax return RTEMS_TOO_MANY; 10b843: 83 c4 10 add $0x10,%esp } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 10b846: 8d 65 f4 lea -0xc(%ebp),%esp 10b849: 5b pop %ebx 10b84a: 5e pop %esi 10b84b: 5f pop %edi 10b84c: c9 leave 10b84d: c3 ret 10b84e: 66 90 xchg %ax,%ax <== NOT EXECUTED Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) 10b850: b8 09 00 00 00 mov $0x9,%eax 10b855: e9 d5 fe ff ff jmp 10b72f <== ALWAYS TAKEN 0010b85c : */ rtems_status_code rtems_task_delete( rtems_id id ) { 10b85c: 55 push %ebp 10b85d: 89 e5 mov %esp,%ebp 10b85f: 53 push %ebx 10b860: 83 ec 20 sub $0x20,%esp register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); 10b863: ff 35 f0 53 12 00 pushl 0x1253f0 10b869: e8 46 05 00 00 call 10bdb4 <_API_Mutex_Lock> <== ALWAYS TAKEN the_thread = _Thread_Get( id, &location ); 10b86e: 5a pop %edx 10b86f: 59 pop %ecx 10b870: 8d 45 f4 lea -0xc(%ebp),%eax 10b873: 50 push %eax 10b874: ff 75 08 pushl 0x8(%ebp) 10b877: e8 60 1b 00 00 call 10d3dc <_Thread_Get> 10b87c: 89 c3 mov %eax,%ebx switch ( location ) { 10b87e: 83 c4 10 add $0x10,%esp 10b881: 8b 45 f4 mov -0xc(%ebp),%eax 10b884: 85 c0 test %eax,%eax 10b886: 75 44 jne 10b8cc case OBJECTS_LOCAL: the_information = _Objects_Get_information_id( the_thread->Object.id ); 10b888: 83 ec 0c sub $0xc,%esp 10b88b: ff 73 08 pushl 0x8(%ebx) 10b88e: e8 1d 12 00 00 call 10cab0 <_Objects_Get_information_id> 0 /* Not used */ ); } #endif _Thread_Close( the_information, the_thread ); 10b893: 5a pop %edx 10b894: 59 pop %ecx 10b895: 53 push %ebx 10b896: 50 push %eax 10b897: e8 08 18 00 00 call 10d0a4 <_Thread_Close> 10b89c: 58 pop %eax 10b89d: ff 73 08 pushl 0x8(%ebx) 10b8a0: e8 0b 12 00 00 call 10cab0 <_Objects_Get_information_id> 10b8a5: 5a pop %edx 10b8a6: 59 pop %ecx 10b8a7: 53 push %ebx 10b8a8: 50 push %eax 10b8a9: e8 92 11 00 00 call 10ca40 <_Objects_Free> _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); 10b8ae: 58 pop %eax 10b8af: ff 35 f0 53 12 00 pushl 0x1253f0 10b8b5: e8 42 05 00 00 call 10bdfc <_API_Mutex_Unlock> <== ALWAYS TAKEN _Thread_Enable_dispatch(); 10b8ba: e8 f9 1a 00 00 call 10d3b8 <_Thread_Enable_dispatch> 10b8bf: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10b8c1: 83 c4 10 add $0x10,%esp break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; } 10b8c4: 8b 5d fc mov -0x4(%ebp),%ebx 10b8c7: c9 leave 10b8c8: c3 ret 10b8c9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator(); 10b8cc: 83 ec 0c sub $0xc,%esp 10b8cf: ff 35 f0 53 12 00 pushl 0x1253f0 10b8d5: e8 22 05 00 00 call 10bdfc <_API_Mutex_Unlock> 10b8da: b8 04 00 00 00 mov $0x4,%eax return RTEMS_INVALID_ID; 10b8df: 83 c4 10 add $0x10,%esp } 10b8e2: 8b 5d fc mov -0x4(%ebp),%ebx 10b8e5: c9 leave 10b8e6: c3 ret 0010d2a8 : rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { 10d2a8: 55 push %ebp 10d2a9: 89 e5 mov %esp,%ebp 10d2ab: 56 push %esi 10d2ac: 53 push %ebx 10d2ad: 83 ec 10 sub $0x10,%esp 10d2b0: 8b 45 08 mov 0x8(%ebp),%eax 10d2b3: 8b 75 0c mov 0xc(%ebp),%esi 10d2b6: 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() ) 10d2b9: 80 3d 84 56 12 00 00 cmpb $0x0,0x125684 10d2c0: 74 6e je 10d330 return RTEMS_NOT_CONFIGURED; if ( !note ) 10d2c2: 85 db test %ebx,%ebx 10d2c4: 74 7e je 10d344 /* * 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 ) 10d2c6: 83 fe 0f cmp $0xf,%esi 10d2c9: 77 3d ja 10d308 /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 10d2cb: 85 c0 test %eax,%eax 10d2cd: 74 45 je 10d314 _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { 10d2cf: 8b 15 78 9b 12 00 mov 0x129b78,%edx /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 10d2d5: 3b 42 08 cmp 0x8(%edx),%eax 10d2d8: 74 40 je 10d31a api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); 10d2da: 83 ec 08 sub $0x8,%esp 10d2dd: 8d 55 f4 lea -0xc(%ebp),%edx 10d2e0: 52 push %edx 10d2e1: 50 push %eax 10d2e2: e8 49 1e 00 00 call 10f130 <_Thread_Get> switch ( location ) { 10d2e7: 83 c4 10 add $0x10,%esp 10d2ea: 8b 55 f4 mov -0xc(%ebp),%edx 10d2ed: 85 d2 test %edx,%edx 10d2ef: 75 4b jne 10d33c case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; 10d2f1: 8b 80 f0 00 00 00 mov 0xf0(%eax),%eax 10d2f7: 8b 44 b0 20 mov 0x20(%eax,%esi,4),%eax 10d2fb: 89 03 mov %eax,(%ebx) _Thread_Enable_dispatch(); 10d2fd: e8 0a 1e 00 00 call 10f10c <_Thread_Enable_dispatch> 10d302: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10d304: eb 07 jmp 10d30d <== ALWAYS TAKEN 10d306: 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 ) 10d308: b8 0a 00 00 00 mov $0xa,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10d30d: 8d 65 f8 lea -0x8(%ebp),%esp 10d310: 5b pop %ebx 10d311: 5e pop %esi 10d312: c9 leave 10d313: c3 ret /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 10d314: 8b 15 78 9b 12 00 mov 0x129b78,%edx _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; 10d31a: 8b 82 f0 00 00 00 mov 0xf0(%edx),%eax 10d320: 8b 44 b0 20 mov 0x20(%eax,%esi,4),%eax 10d324: 89 03 mov %eax,(%ebx) 10d326: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10d328: 8d 65 f8 lea -0x8(%ebp),%esp 10d32b: 5b pop %ebx 10d32c: 5e pop %esi 10d32d: c9 leave 10d32e: c3 ret 10d32f: 90 nop <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) 10d330: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10d335: 8d 65 f8 lea -0x8(%ebp),%esp 10d338: 5b pop %ebx 10d339: 5e pop %esi 10d33a: c9 leave 10d33b: c3 ret *note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) { 10d33c: b8 04 00 00 00 mov $0x4,%eax 10d341: eb ca jmp 10d30d <== ALWAYS TAKEN 10d343: 90 nop <== NOT EXECUTED RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) return RTEMS_NOT_CONFIGURED; if ( !note ) 10d344: b8 09 00 00 00 mov $0x9,%eax 10d349: eb c2 jmp 10d30d <== ALWAYS TAKEN 0010b8e8 : rtems_status_code rtems_task_ident( rtems_name name, uint32_t node, rtems_id *id ) { 10b8e8: 55 push %ebp 10b8e9: 89 e5 mov %esp,%ebp 10b8eb: 83 ec 08 sub $0x8,%esp 10b8ee: 8b 55 08 mov 0x8(%ebp),%edx 10b8f1: 8b 45 10 mov 0x10(%ebp),%eax Objects_Name_or_id_lookup_errors status; if ( !id ) 10b8f4: 85 c0 test %eax,%eax 10b8f6: 74 30 je 10b928 return RTEMS_INVALID_ADDRESS; if ( name == OBJECTS_ID_OF_SELF ) { 10b8f8: 85 d2 test %edx,%edx 10b8fa: 75 10 jne 10b90c *id = _Thread_Executing->Object.id; 10b8fc: 8b 15 f8 53 12 00 mov 0x1253f8,%edx 10b902: 8b 52 08 mov 0x8(%edx),%edx 10b905: 89 10 mov %edx,(%eax) 10b907: 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 ]; } 10b909: c9 leave 10b90a: c3 ret 10b90b: 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 ); 10b90c: 50 push %eax 10b90d: ff 75 0c pushl 0xc(%ebp) 10b910: 52 push %edx 10b911: 68 c0 52 12 00 push $0x1252c0 10b916: e8 ad 13 00 00 call 10ccc8 <_Objects_Name_to_id_u32> return _Status_Object_name_errors_to_status[ status ]; 10b91b: 8b 04 85 0c f9 11 00 mov 0x11f90c(,%eax,4),%eax 10b922: 83 c4 10 add $0x10,%esp } 10b925: c9 leave 10b926: c3 ret 10b927: 90 nop <== NOT EXECUTED rtems_id *id ) { Objects_Name_or_id_lookup_errors status; if ( !id ) 10b928: 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 ]; } 10b92a: c9 leave 10b92b: c3 ret 00117cec : */ rtems_status_code rtems_task_is_suspended( rtems_id id ) { 117cec: 55 push %ebp 117ced: 89 e5 mov %esp,%ebp 117cef: 83 ec 20 sub $0x20,%esp register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 117cf2: 8d 45 f4 lea -0xc(%ebp),%eax 117cf5: 50 push %eax 117cf6: ff 75 08 pushl 0x8(%ebp) 117cf9: e8 26 37 00 00 call 11b424 <_Thread_Get> switch ( location ) { 117cfe: 83 c4 10 add $0x10,%esp 117d01: 8b 55 f4 mov -0xc(%ebp),%edx 117d04: 85 d2 test %edx,%edx 117d06: 74 08 je 117d10 117d08: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 117d0d: c9 leave 117d0e: c3 ret 117d0f: 90 nop <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { 117d10: f6 40 10 02 testb $0x2,0x10(%eax) 117d14: 74 0e je 117d24 _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 117d16: e8 b9 36 00 00 call 11b3d4 <_Thread_Enable_dispatch> 117d1b: b8 0f 00 00 00 mov $0xf,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 117d20: c9 leave 117d21: c3 ret 117d22: 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(); 117d24: e8 ab 36 00 00 call 11b3d4 <_Thread_Enable_dispatch> 117d29: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 117d2b: c9 leave 117d2c: c3 ret 001119f4 : rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) { 1119f4: 55 push %ebp 1119f5: 89 e5 mov %esp,%ebp 1119f7: 57 push %edi 1119f8: 56 push %esi 1119f9: 53 push %ebx 1119fa: 83 ec 1c sub $0x1c,%esp 1119fd: 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 ) 111a00: 85 c9 test %ecx,%ecx 111a02: 0f 84 1c 01 00 00 je 111b24 return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; 111a08: 8b 1d f8 53 12 00 mov 0x1253f8,%ebx api = executing->API_Extensions[ THREAD_API_RTEMS ]; 111a0e: 8b bb f0 00 00 00 mov 0xf0(%ebx),%edi asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; 111a14: 80 7b 75 01 cmpb $0x1,0x75(%ebx) 111a18: 19 f6 sbb %esi,%esi 111a1a: 81 e6 00 01 00 00 and $0x100,%esi if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) 111a20: 8b 53 7c mov 0x7c(%ebx),%edx 111a23: 85 d2 test %edx,%edx 111a25: 0f 85 b5 00 00 00 jne 111ae0 if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; 111a2b: 80 7f 08 01 cmpb $0x1,0x8(%edi) 111a2f: 19 d2 sbb %edx,%edx 111a31: 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(); 111a37: 89 55 e4 mov %edx,-0x1c(%ebp) 111a3a: 89 4d e0 mov %ecx,-0x20(%ebp) 111a3d: e8 fa cc ff ff call 10e73c <_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; 111a42: 8b 55 e4 mov -0x1c(%ebp),%edx 111a45: 09 d0 or %edx,%eax old_mode |= _ISR_Get_level(); *previous_mode_set = old_mode; 111a47: 09 f0 or %esi,%eax 111a49: 8b 4d e0 mov -0x20(%ebp),%ecx 111a4c: 89 01 mov %eax,(%ecx) /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) 111a4e: f7 45 0c 00 01 00 00 testl $0x100,0xc(%ebp) 111a55: 74 0f je 111a66 executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false; 111a57: 8b 45 08 mov 0x8(%ebp),%eax 111a5a: c1 e8 08 shr $0x8,%eax 111a5d: 83 f0 01 xor $0x1,%eax 111a60: 83 e0 01 and $0x1,%eax 111a63: 88 43 75 mov %al,0x75(%ebx) if ( mask & RTEMS_TIMESLICE_MASK ) { 111a66: f7 45 0c 00 02 00 00 testl $0x200,0xc(%ebp) 111a6d: 74 18 je 111a87 if ( _Modes_Is_timeslice(mode_set) ) { 111a6f: f7 45 08 00 02 00 00 testl $0x200,0x8(%ebp) 111a76: 74 74 je 111aec executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; 111a78: c7 43 7c 01 00 00 00 movl $0x1,0x7c(%ebx) executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 111a7f: a1 04 53 12 00 mov 0x125304,%eax 111a84: 89 43 78 mov %eax,0x78(%ebx) /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 111a87: f6 45 0c 01 testb $0x1,0xc(%ebp) 111a8b: 74 07 je 111a94 */ RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level ( Modes_Control mode_set ) { _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) ); 111a8d: f6 45 08 01 testb $0x1,0x8(%ebp) 111a91: 74 69 je 111afc 111a93: fa cli */ is_asr_enabled = false; needs_asr_dispatching = false; if ( mask & RTEMS_ASR_MASK ) { 111a94: f7 45 0c 00 04 00 00 testl $0x400,0xc(%ebp) 111a9b: 74 2c je 111ac9 * Output: * *previous_mode_set - previous mode set * always return RTEMS_SUCCESSFUL; */ rtems_status_code rtems_task_mode( 111a9d: 8b 45 08 mov 0x8(%ebp),%eax 111aa0: c1 e8 0a shr $0xa,%eax 111aa3: 83 f0 01 xor $0x1,%eax 111aa6: 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; 111aa9: 38 47 08 cmp %al,0x8(%edi) 111aac: 74 1b je 111ac9 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; 111aae: 88 47 08 mov %al,0x8(%edi) ) { rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); 111ab1: 9c pushf 111ab2: fa cli 111ab3: 58 pop %eax _signals = information->signals_pending; 111ab4: 8b 57 18 mov 0x18(%edi),%edx information->signals_pending = information->signals_posted; 111ab7: 8b 4f 14 mov 0x14(%edi),%ecx 111aba: 89 4f 18 mov %ecx,0x18(%edi) information->signals_posted = _signals; 111abd: 89 57 14 mov %edx,0x14(%edi) _ISR_Enable( _level ); 111ac0: 50 push %eax 111ac1: 9d popf if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; 111ac2: 8b 47 14 mov 0x14(%edi),%eax 111ac5: 85 c0 test %eax,%eax 111ac7: 75 53 jne 111b1c 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; 111ac9: 31 db xor %ebx,%ebx } } } if ( _System_state_Is_up( _System_state_Get() ) ) 111acb: 83 3d 00 55 12 00 03 cmpl $0x3,0x125500 111ad2: 74 2c je 111b00 <== NEVER TAKEN if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) _Thread_Dispatch(); 111ad4: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 111ad6: 83 c4 1c add $0x1c,%esp 111ad9: 5b pop %ebx 111ada: 5e pop %esi 111adb: 5f pop %edi 111adc: c9 leave 111add: c3 ret 111ade: 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; 111ae0: 81 ce 00 02 00 00 or $0x200,%esi 111ae6: e9 40 ff ff ff jmp 111a2b <== ALWAYS TAKEN 111aeb: 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; 111aec: c7 43 7c 00 00 00 00 movl $0x0,0x7c(%ebx) /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 111af3: f6 45 0c 01 testb $0x1,0xc(%ebp) 111af7: 74 9b je 111a94 111af9: eb 92 jmp 111a8d <== ALWAYS TAKEN 111afb: 90 nop <== NOT EXECUTED 111afc: fb sti 111afd: eb 95 jmp 111a94 111aff: 90 nop <== NOT EXECUTED } } } if ( _System_state_Is_up( _System_state_Get() ) ) if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) 111b00: e8 93 02 00 00 call 111d98 <_Thread_Evaluate_mode> <== ALWAYS TAKEN 111b05: 84 c0 test %al,%al 111b07: 75 04 jne 111b0d 111b09: 84 db test %bl,%bl 111b0b: 74 c7 je 111ad4 _Thread_Dispatch(); 111b0d: e8 4a b7 ff ff call 10d25c <_Thread_Dispatch> 111b12: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 111b14: 83 c4 1c add $0x1c,%esp 111b17: 5b pop %ebx 111b18: 5e pop %esi 111b19: 5f pop %edi 111b1a: c9 leave 111b1b: 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; 111b1c: c6 43 74 01 movb $0x1,0x74(%ebx) 111b20: b3 01 mov $0x1,%bl 111b22: eb a7 jmp 111acb <== ALWAYS TAKEN ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) 111b24: 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; } 111b29: 83 c4 1c add $0x1c,%esp 111b2c: 5b pop %ebx 111b2d: 5e pop %esi 111b2e: 5f pop %edi 111b2f: c9 leave 111b30: c3 ret 0010c36c : rtems_status_code rtems_task_restart( rtems_id id, uint32_t argument ) { 10c36c: 55 push %ebp 10c36d: 89 e5 mov %esp,%ebp 10c36f: 83 ec 20 sub $0x20,%esp register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 10c372: 8d 45 f4 lea -0xc(%ebp),%eax 10c375: 50 push %eax 10c376: ff 75 08 pushl 0x8(%ebp) 10c379: e8 36 1b 00 00 call 10deb4 <_Thread_Get> switch ( location ) { 10c37e: 83 c4 10 add $0x10,%esp 10c381: 8b 4d f4 mov -0xc(%ebp),%ecx 10c384: 85 c9 test %ecx,%ecx 10c386: 75 20 jne 10c3a8 case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { 10c388: 52 push %edx 10c389: ff 75 0c pushl 0xc(%ebp) 10c38c: 6a 00 push $0x0 10c38e: 50 push %eax 10c38f: e8 18 23 00 00 call 10e6ac <_Thread_Restart> 10c394: 83 c4 10 add $0x10,%esp 10c397: 84 c0 test %al,%al 10c399: 75 15 jne 10c3b0 _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 10c39b: e8 f0 1a 00 00 call 10de90 <_Thread_Enable_dispatch> 10c3a0: b8 0e 00 00 00 mov $0xe,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10c3a5: c9 leave 10c3a6: c3 ret 10c3a7: 90 nop <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { 10c3a8: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10c3ad: c9 leave 10c3ae: c3 ret 10c3af: 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(); 10c3b0: e8 db 1a 00 00 call 10de90 <_Thread_Enable_dispatch> 10c3b5: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10c3b7: c9 leave 10c3b8: c3 ret 0010f0e8 : */ rtems_status_code rtems_task_resume( rtems_id id ) { 10f0e8: 55 push %ebp 10f0e9: 89 e5 mov %esp,%ebp 10f0eb: 83 ec 20 sub $0x20,%esp register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 10f0ee: 8d 45 f4 lea -0xc(%ebp),%eax 10f0f1: 50 push %eax 10f0f2: ff 75 08 pushl 0x8(%ebp) 10f0f5: e8 16 1c 00 00 call 110d10 <_Thread_Get> switch ( location ) { 10f0fa: 83 c4 10 add $0x10,%esp 10f0fd: 8b 55 f4 mov -0xc(%ebp),%edx 10f100: 85 d2 test %edx,%edx 10f102: 74 08 je 10f10c 10f104: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10f109: c9 leave 10f10a: c3 ret 10f10b: 90 nop <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { 10f10c: f6 40 10 02 testb $0x2,0x10(%eax) 10f110: 75 0e jne 10f120 _Thread_Resume( the_thread, true ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 10f112: e8 a9 1b 00 00 call 110cc0 <_Thread_Enable_dispatch> 10f117: b8 0e 00 00 00 mov $0xe,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10f11c: c9 leave 10f11d: c3 ret 10f11e: 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 ); 10f120: 83 ec 08 sub $0x8,%esp 10f123: 6a 01 push $0x1 10f125: 50 push %eax 10f126: e8 dd 23 00 00 call 111508 <_Thread_Resume> _Thread_Enable_dispatch(); 10f12b: e8 90 1b 00 00 call 110cc0 <_Thread_Enable_dispatch> 10f130: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10f132: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10f135: c9 leave 10f136: c3 ret 0010d420 : rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { 10d420: 55 push %ebp 10d421: 89 e5 mov %esp,%ebp 10d423: 56 push %esi 10d424: 53 push %ebx 10d425: 83 ec 10 sub $0x10,%esp 10d428: 8b 45 08 mov 0x8(%ebp),%eax 10d42b: 8b 5d 0c mov 0xc(%ebp),%ebx 10d42e: 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() ) 10d431: 80 3d 84 56 12 00 00 cmpb $0x0,0x125684 10d438: 74 66 je 10d4a0 /* * 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 ) 10d43a: 83 fb 0f cmp $0xf,%ebx 10d43d: 77 39 ja 10d478 /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 10d43f: 85 c0 test %eax,%eax 10d441: 74 41 je 10d484 _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { 10d443: 8b 15 78 9b 12 00 mov 0x129b78,%edx /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 10d449: 3b 42 08 cmp 0x8(%edx),%eax 10d44c: 74 3c je 10d48a api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); 10d44e: 83 ec 08 sub $0x8,%esp 10d451: 8d 55 f4 lea -0xc(%ebp),%edx 10d454: 52 push %edx 10d455: 50 push %eax 10d456: e8 d5 1c 00 00 call 10f130 <_Thread_Get> switch ( location ) { 10d45b: 83 c4 10 add $0x10,%esp 10d45e: 8b 55 f4 mov -0xc(%ebp),%edx 10d461: 85 d2 test %edx,%edx 10d463: 75 47 jne 10d4ac case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; 10d465: 8b 80 f0 00 00 00 mov 0xf0(%eax),%eax 10d46b: 89 74 98 20 mov %esi,0x20(%eax,%ebx,4) _Thread_Enable_dispatch(); 10d46f: e8 98 1c 00 00 call 10f10c <_Thread_Enable_dispatch> 10d474: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10d476: eb 05 jmp 10d47d <== ALWAYS TAKEN /* * 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 78 9b 12 00 mov 0x129b78,%edx _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; 10d48a: 8b 82 f0 00 00 00 mov 0xf0(%edx),%eax 10d490: 89 74 98 20 mov %esi,0x20(%eax,%ebx,4) 10d494: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10d496: 8d 65 f8 lea -0x8(%ebp),%esp 10d499: 5b pop %ebx 10d49a: 5e pop %esi 10d49b: c9 leave 10d49c: c3 ret 10d49d: 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() ) 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 api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) { 10d4ac: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10d4b1: 8d 65 f8 lea -0x8(%ebp),%esp 10d4b4: 5b pop %ebx 10d4b5: 5e pop %esi 10d4b6: c9 leave 10d4b7: c3 ret 0010fe6c : rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { 10fe6c: 55 push %ebp 10fe6d: 89 e5 mov %esp,%ebp 10fe6f: 56 push %esi 10fe70: 53 push %ebx 10fe71: 83 ec 10 sub $0x10,%esp 10fe74: 8b 5d 0c mov 0xc(%ebp),%ebx 10fe77: 8b 75 10 mov 0x10(%ebp),%esi register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && 10fe7a: 85 db test %ebx,%ebx 10fe7c: 74 0b je 10fe89 */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 10fe7e: 0f b6 05 f4 76 12 00 movzbl 0x1276f4,%eax 10fe85: 39 c3 cmp %eax,%ebx 10fe87: 77 5f ja 10fee8 <== ALWAYS TAKEN !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) 10fe89: 85 f6 test %esi,%esi 10fe8b: 74 67 je 10fef4 <== ALWAYS TAKEN return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); 10fe8d: 83 ec 08 sub $0x8,%esp 10fe90: 8d 45 f4 lea -0xc(%ebp),%eax 10fe93: 50 push %eax 10fe94: ff 75 08 pushl 0x8(%ebp) 10fe97: e8 6c 1d 00 00 call 111c08 <_Thread_Get> switch ( location ) { 10fe9c: 83 c4 10 add $0x10,%esp 10fe9f: 8b 55 f4 mov -0xc(%ebp),%edx 10fea2: 85 d2 test %edx,%edx 10fea4: 75 36 jne 10fedc case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; 10fea6: 8b 50 14 mov 0x14(%eax),%edx 10fea9: 89 16 mov %edx,(%esi) if ( new_priority != RTEMS_CURRENT_PRIORITY ) { 10feab: 85 db test %ebx,%ebx 10fead: 74 1c je 10fecb the_thread->real_priority = new_priority; 10feaf: 89 58 18 mov %ebx,0x18(%eax) if ( the_thread->resource_count == 0 || 10feb2: 8b 48 1c mov 0x1c(%eax),%ecx 10feb5: 85 c9 test %ecx,%ecx 10feb7: 74 05 je 10febe the_thread->current_priority > new_priority ) 10feb9: 3b 58 14 cmp 0x14(%eax),%ebx 10febc: 73 0d jae 10fecb <== NEVER TAKEN _Thread_Change_priority( the_thread, new_priority, false ); 10febe: 52 push %edx 10febf: 6a 00 push $0x0 10fec1: 53 push %ebx 10fec2: 50 push %eax 10fec3: e8 08 18 00 00 call 1116d0 <_Thread_Change_priority> 10fec8: 83 c4 10 add $0x10,%esp } _Thread_Enable_dispatch(); 10fecb: e8 e8 1c 00 00 call 111bb8 <_Thread_Enable_dispatch> 10fed0: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10fed2: 8d 65 f8 lea -0x8(%ebp),%esp 10fed5: 5b pop %ebx 10fed6: 5e pop %esi 10fed7: c9 leave 10fed8: c3 ret 10fed9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if ( !old_priority ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) { 10fedc: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10fee1: 8d 65 f8 lea -0x8(%ebp),%esp 10fee4: 5b pop %ebx 10fee5: 5e pop %esi 10fee6: c9 leave 10fee7: c3 ret 10fee8: b8 13 00 00 00 mov $0x13,%eax 10feed: 8d 65 f8 lea -0x8(%ebp),%esp 10fef0: 5b pop %ebx 10fef1: 5e pop %esi 10fef2: c9 leave 10fef3: c3 ret if ( new_priority != RTEMS_CURRENT_PRIORITY && !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) 10fef4: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10fef9: 8d 65 f8 lea -0x8(%ebp),%esp 10fefc: 5b pop %ebx 10fefd: 5e pop %esi 10fefe: c9 leave 10feff: c3 ret 0010b9a0 : rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { 10b9a0: 55 push %ebp 10b9a1: 89 e5 mov %esp,%ebp 10b9a3: 53 push %ebx 10b9a4: 83 ec 14 sub $0x14,%esp 10b9a7: 8b 5d 0c mov 0xc(%ebp),%ebx register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) 10b9aa: 85 db test %ebx,%ebx 10b9ac: 74 4e je 10b9fc return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); 10b9ae: 83 ec 08 sub $0x8,%esp 10b9b1: 8d 45 f4 lea -0xc(%ebp),%eax 10b9b4: 50 push %eax 10b9b5: ff 75 08 pushl 0x8(%ebp) 10b9b8: e8 1f 1a 00 00 call 10d3dc <_Thread_Get> switch ( location ) { 10b9bd: 83 c4 10 add $0x10,%esp 10b9c0: 8b 55 f4 mov -0xc(%ebp),%edx 10b9c3: 85 d2 test %edx,%edx 10b9c5: 75 29 jne 10b9f0 case OBJECTS_LOCAL: if ( _Thread_Start( 10b9c7: 83 ec 0c sub $0xc,%esp 10b9ca: ff 75 10 pushl 0x10(%ebp) 10b9cd: 6a 00 push $0x0 10b9cf: 53 push %ebx 10b9d0: 6a 00 push $0x0 10b9d2: 50 push %eax 10b9d3: e8 a8 24 00 00 call 10de80 <_Thread_Start> 10b9d8: 83 c4 20 add $0x20,%esp 10b9db: 84 c0 test %al,%al 10b9dd: 75 29 jne 10ba08 the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 10b9df: e8 d4 19 00 00 call 10d3b8 <_Thread_Enable_dispatch> 10b9e4: b8 0e 00 00 00 mov $0xe,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b9e9: 8b 5d fc mov -0x4(%ebp),%ebx 10b9ec: c9 leave 10b9ed: c3 ret 10b9ee: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( entry_point == NULL ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) { 10b9f0: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b9f5: 8b 5d fc mov -0x4(%ebp),%ebx 10b9f8: c9 leave 10b9f9: c3 ret 10b9fa: 66 90 xchg %ax,%ax <== NOT EXECUTED ) { register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) 10b9fc: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10ba01: 8b 5d fc mov -0x4(%ebp),%ebx 10ba04: c9 leave 10ba05: c3 ret 10ba06: 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(); 10ba08: e8 ab 19 00 00 call 10d3b8 <_Thread_Enable_dispatch> 10ba0d: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10ba0f: 8b 5d fc mov -0x4(%ebp),%ebx 10ba12: c9 leave 10ba13: c3 ret 0010feac : */ rtems_status_code rtems_task_suspend( rtems_id id ) { 10feac: 55 push %ebp 10fead: 89 e5 mov %esp,%ebp 10feaf: 83 ec 20 sub $0x20,%esp register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 10feb2: 8d 45 f4 lea -0xc(%ebp),%eax 10feb5: 50 push %eax 10feb6: ff 75 08 pushl 0x8(%ebp) 10feb9: e8 1e d5 ff ff call 10d3dc <_Thread_Get> switch ( location ) { 10febe: 83 c4 10 add $0x10,%esp 10fec1: 8b 55 f4 mov -0xc(%ebp),%edx 10fec4: 85 d2 test %edx,%edx 10fec6: 74 08 je 10fed0 10fec8: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10fecd: c9 leave 10fece: c3 ret 10fecf: 90 nop <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { 10fed0: f6 40 10 02 testb $0x2,0x10(%eax) 10fed4: 74 0e je 10fee4 _Thread_Suspend( the_thread ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 10fed6: e8 dd d4 ff ff call 10d3b8 <_Thread_Enable_dispatch> 10fedb: b8 0f 00 00 00 mov $0xf,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10fee0: c9 leave 10fee1: c3 ret 10fee2: 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 ); 10fee4: 83 ec 0c sub $0xc,%esp 10fee7: 50 push %eax 10fee8: e8 f3 09 00 00 call 1108e0 <_Thread_Suspend> _Thread_Enable_dispatch(); 10feed: e8 c6 d4 ff ff call 10d3b8 <_Thread_Enable_dispatch> 10fef2: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10fef4: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10fef7: c9 leave 10fef8: c3 ret 0012d850 : rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { 12d850: 55 push %ebp 12d851: 89 e5 mov %esp,%ebp 12d853: 57 push %edi 12d854: 56 push %esi 12d855: 53 push %ebx 12d856: 83 ec 1c sub $0x1c,%esp 12d859: 8b 5d 0c mov 0xc(%ebp),%ebx 12d85c: 8b 7d 10 mov 0x10(%ebp),%edi Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) 12d85f: 85 db test %ebx,%ebx 12d861: 0f 84 9d 00 00 00 je 12d904 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 12d867: 83 ec 08 sub $0x8,%esp 12d86a: 8d 45 e4 lea -0x1c(%ebp),%eax 12d86d: 50 push %eax 12d86e: ff 75 08 pushl 0x8(%ebp) 12d871: e8 da 5f fe ff call 113850 <_Thread_Get> 12d876: 89 c6 mov %eax,%esi switch (location) { 12d878: 83 c4 10 add $0x10,%esp 12d87b: 8b 45 e4 mov -0x1c(%ebp),%eax 12d87e: 85 c0 test %eax,%eax 12d880: 74 0e je 12d890 12d882: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12d887: 8d 65 f4 lea -0xc(%ebp),%esp 12d88a: 5b pop %ebx 12d88b: 5e pop %esi 12d88c: 5f pop %edi 12d88d: c9 leave 12d88e: c3 ret 12d88f: 90 nop <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; 12d890: 8b 86 00 01 00 00 mov 0x100(%esi),%eax while (tvp) { 12d896: 85 c0 test %eax,%eax 12d898: 75 44 jne 12d8de 12d89a: 66 90 xchg %ax,%ax } /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) 12d89c: 83 ec 0c sub $0xc,%esp 12d89f: 6a 14 push $0x14 12d8a1: e8 9a 70 fe ff call 114940 <_Workspace_Allocate> _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { 12d8a6: 83 c4 10 add $0x10,%esp 12d8a9: 85 c0 test %eax,%eax 12d8ab: 74 4b je 12d8f8 _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; 12d8ad: 8b 13 mov (%ebx),%edx 12d8af: 89 50 08 mov %edx,0x8(%eax) new->ptr = ptr; 12d8b2: 89 58 04 mov %ebx,0x4(%eax) new->dtor = dtor; 12d8b5: 89 78 10 mov %edi,0x10(%eax) new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; 12d8b8: 8b 96 00 01 00 00 mov 0x100(%esi),%edx 12d8be: 89 10 mov %edx,(%eax) the_thread->task_variables = new; 12d8c0: 89 86 00 01 00 00 mov %eax,0x100(%esi) _Thread_Enable_dispatch(); 12d8c6: e8 61 5f fe ff call 11382c <_Thread_Enable_dispatch> 12d8cb: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12d8cd: 8d 65 f4 lea -0xc(%ebp),%esp 12d8d0: 5b pop %ebx 12d8d1: 5e pop %esi 12d8d2: 5f pop %edi 12d8d3: c9 leave 12d8d4: c3 ret 12d8d5: 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; 12d8d8: 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) { 12d8da: 85 c0 test %eax,%eax 12d8dc: 74 be je 12d89c if (tvp->ptr == ptr) { 12d8de: 39 58 04 cmp %ebx,0x4(%eax) 12d8e1: 75 f5 jne 12d8d8 tvp->dtor = dtor; 12d8e3: 89 78 10 mov %edi,0x10(%eax) _Thread_Enable_dispatch(); 12d8e6: e8 41 5f fe ff call 11382c <_Thread_Enable_dispatch> 12d8eb: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12d8ed: 8d 65 f4 lea -0xc(%ebp),%esp 12d8f0: 5b pop %ebx 12d8f1: 5e pop %esi 12d8f2: 5f pop %edi 12d8f3: c9 leave 12d8f4: c3 ret 12d8f5: 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(); 12d8f8: e8 2f 5f fe ff call 11382c <_Thread_Enable_dispatch> 12d8fd: b8 1a 00 00 00 mov $0x1a,%eax return RTEMS_NO_MEMORY; 12d902: eb 83 jmp 12d887 <== ALWAYS TAKEN { Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) 12d904: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12d909: 8d 65 f4 lea -0xc(%ebp),%esp 12d90c: 5b pop %ebx 12d90d: 5e pop %esi 12d90e: 5f pop %edi 12d90f: c9 leave 12d910: c3 ret 0012d914 : rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { 12d914: 55 push %ebp 12d915: 89 e5 mov %esp,%ebp 12d917: 53 push %ebx 12d918: 83 ec 14 sub $0x14,%esp 12d91b: 8b 5d 0c mov 0xc(%ebp),%ebx Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) 12d91e: 85 db test %ebx,%ebx 12d920: 74 4c je 12d96e return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); 12d922: 83 ec 08 sub $0x8,%esp 12d925: 8d 45 f4 lea -0xc(%ebp),%eax 12d928: 50 push %eax 12d929: ff 75 08 pushl 0x8(%ebp) 12d92c: e8 1f 5f fe ff call 113850 <_Thread_Get> switch (location) { 12d931: 83 c4 10 add $0x10,%esp 12d934: 8b 55 f4 mov -0xc(%ebp),%edx 12d937: 85 d2 test %edx,%edx 12d939: 74 0d je 12d948 12d93b: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12d940: 8b 5d fc mov -0x4(%ebp),%ebx 12d943: c9 leave 12d944: c3 ret 12d945: 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; 12d948: 8b 90 00 01 00 00 mov 0x100(%eax),%edx while (tvp) { 12d94e: 85 d2 test %edx,%edx 12d950: 74 17 je 12d969 if (tvp->ptr == ptr) { 12d952: 39 5a 04 cmp %ebx,0x4(%edx) 12d955: 75 0a jne 12d961 12d957: eb 3c jmp 12d995 <== ALWAYS TAKEN 12d959: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 12d95c: 39 5a 04 cmp %ebx,0x4(%edx) 12d95f: 74 17 je 12d978 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; 12d961: 89 d1 mov %edx,%ecx } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; 12d963: 8b 12 mov (%edx),%edx the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { 12d965: 85 d2 test %edx,%edx 12d967: 75 f3 jne 12d95c <== NEVER TAKEN return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 12d969: e8 be 5e fe ff call 11382c <_Thread_Enable_dispatch> 12d96e: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12d973: 8b 5d fc mov -0x4(%ebp),%ebx 12d976: c9 leave 12d977: c3 ret case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { if (prev) prev->next = tvp->next; 12d978: 8b 1a mov (%edx),%ebx 12d97a: 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 ); 12d97c: 83 ec 08 sub $0x8,%esp 12d97f: 52 push %edx 12d980: 50 push %eax 12d981: e8 a2 00 00 00 call 12da28 <_RTEMS_Tasks_Invoke_task_variable_dtor> <== ALWAYS TAKEN _Thread_Enable_dispatch(); 12d986: e8 a1 5e fe ff call 11382c <_Thread_Enable_dispatch> 12d98b: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 12d98d: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12d990: 8b 5d fc mov -0x4(%ebp),%ebx 12d993: c9 leave 12d994: 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; 12d995: 8b 0a mov (%edx),%ecx 12d997: 89 88 00 01 00 00 mov %ecx,0x100(%eax) 12d99d: eb dd jmp 12d97c <== ALWAYS TAKEN 0012d9a0 : rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { 12d9a0: 55 push %ebp 12d9a1: 89 e5 mov %esp,%ebp 12d9a3: 56 push %esi 12d9a4: 53 push %ebx 12d9a5: 83 ec 10 sub $0x10,%esp 12d9a8: 8b 5d 0c mov 0xc(%ebp),%ebx 12d9ab: 8b 75 10 mov 0x10(%ebp),%esi Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) 12d9ae: 85 db test %ebx,%ebx 12d9b0: 74 56 je 12da08 return RTEMS_INVALID_ADDRESS; if ( !result ) 12d9b2: 85 f6 test %esi,%esi 12d9b4: 74 52 je 12da08 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 12d9b6: 83 ec 08 sub $0x8,%esp 12d9b9: 8d 45 f4 lea -0xc(%ebp),%eax 12d9bc: 50 push %eax 12d9bd: ff 75 08 pushl 0x8(%ebp) 12d9c0: e8 8b 5e fe ff call 113850 <_Thread_Get> switch (location) { 12d9c5: 83 c4 10 add $0x10,%esp 12d9c8: 8b 55 f4 mov -0xc(%ebp),%edx 12d9cb: 85 d2 test %edx,%edx 12d9cd: 75 2d jne 12d9fc case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; 12d9cf: 8b 80 00 01 00 00 mov 0x100(%eax),%eax while (tvp) { 12d9d5: 85 c0 test %eax,%eax 12d9d7: 75 09 jne 12d9e2 12d9d9: eb 39 jmp 12da14 <== ALWAYS TAKEN 12d9db: 90 nop <== NOT EXECUTED */ *result = tvp->tval; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; 12d9dc: 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) { 12d9de: 85 c0 test %eax,%eax 12d9e0: 74 32 je 12da14 <== ALWAYS TAKEN if (tvp->ptr == ptr) { 12d9e2: 39 58 04 cmp %ebx,0x4(%eax) 12d9e5: 75 f5 jne 12d9dc /* * Should this return the current (i.e not the * saved) value if `tid' is the current task? */ *result = tvp->tval; 12d9e7: 8b 40 0c mov 0xc(%eax),%eax 12d9ea: 89 06 mov %eax,(%esi) _Thread_Enable_dispatch(); 12d9ec: e8 3b 5e fe ff call 11382c <_Thread_Enable_dispatch> 12d9f1: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12d9f3: 8d 65 f8 lea -0x8(%ebp),%esp 12d9f6: 5b pop %ebx 12d9f7: 5e pop %esi 12d9f8: c9 leave 12d9f9: c3 ret 12d9fa: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( !result ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { 12d9fc: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12da01: 8d 65 f8 lea -0x8(%ebp),%esp 12da04: 5b pop %ebx 12da05: 5e pop %esi 12da06: c9 leave 12da07: c3 ret return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); return RTEMS_INVALID_ADDRESS; 12da08: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12da0d: 8d 65 f8 lea -0x8(%ebp),%esp 12da10: 5b pop %ebx 12da11: 5e pop %esi 12da12: c9 leave 12da13: c3 ret _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 12da14: e8 13 5e fe ff call 11382c <_Thread_Enable_dispatch> 12da19: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12da1e: 8d 65 f8 lea -0x8(%ebp),%esp 12da21: 5b pop %ebx 12da22: 5e pop %esi 12da23: c9 leave 12da24: c3 ret 0010ba14 : */ rtems_status_code rtems_task_wake_after( rtems_interval ticks ) { 10ba14: 55 push %ebp 10ba15: 89 e5 mov %esp,%ebp 10ba17: 53 push %ebx 10ba18: 83 ec 04 sub $0x4,%esp 10ba1b: 8b 5d 08 mov 0x8(%ebp),%ebx 10ba1e: a1 38 53 12 00 mov 0x125338,%eax 10ba23: 40 inc %eax 10ba24: a3 38 53 12 00 mov %eax,0x125338 _Thread_Disable_dispatch(); if ( ticks == 0 ) { 10ba29: 85 db test %ebx,%ebx 10ba2b: 74 53 je 10ba80 _Thread_Yield_processor(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); 10ba2d: 83 ec 08 sub $0x8,%esp 10ba30: 6a 08 push $0x8 10ba32: ff 35 f8 53 12 00 pushl 0x1253f8 10ba38: e8 03 22 00 00 call 10dc40 <_Thread_Set_state> _Watchdog_Initialize( &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, 10ba3d: a1 f8 53 12 00 mov 0x1253f8,%eax _Thread_Disable_dispatch(); if ( ticks == 0 ) { _Thread_Yield_processor(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); _Watchdog_Initialize( 10ba42: 8b 50 08 mov 0x8(%eax),%edx Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 10ba45: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) the_watchdog->routine = routine; 10ba4c: c7 40 64 20 d2 10 00 movl $0x10d220,0x64(%eax) the_watchdog->id = id; 10ba53: 89 50 68 mov %edx,0x68(%eax) the_watchdog->user_data = user_data; 10ba56: c7 40 6c 00 00 00 00 movl $0x0,0x6c(%eax) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 10ba5d: 89 58 54 mov %ebx,0x54(%eax) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 10ba60: 5a pop %edx 10ba61: 59 pop %ecx 10ba62: 83 c0 48 add $0x48,%eax 10ba65: 50 push %eax 10ba66: 68 18 54 12 00 push $0x125418 10ba6b: e8 20 28 00 00 call 10e290 <_Watchdog_Insert> 10ba70: 83 c4 10 add $0x10,%esp _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); 10ba73: e8 40 19 00 00 call 10d3b8 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; } 10ba78: 31 c0 xor %eax,%eax 10ba7a: 8b 5d fc mov -0x4(%ebp),%ebx 10ba7d: c9 leave 10ba7e: c3 ret 10ba7f: 90 nop <== NOT EXECUTED rtems_interval ticks ) { _Thread_Disable_dispatch(); if ( ticks == 0 ) { _Thread_Yield_processor(); 10ba80: e8 9b 24 00 00 call 10df20 <_Thread_Yield_processor> _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); 10ba85: e8 2e 19 00 00 call 10d3b8 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; } 10ba8a: 31 c0 xor %eax,%eax 10ba8c: 8b 5d fc mov -0x4(%ebp),%ebx 10ba8f: c9 leave 10ba90: c3 ret 0010c800 : */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { 10c800: 55 push %ebp 10c801: 89 e5 mov %esp,%ebp 10c803: 53 push %ebx 10c804: 83 ec 14 sub $0x14,%esp 10c807: 8b 5d 08 mov 0x8(%ebp),%ebx Watchdog_Interval seconds; if ( !_TOD_Is_set ) 10c80a: 80 3d ec 86 12 00 00 cmpb $0x0,0x1286ec 10c811: 0f 84 a9 00 00 00 je 10c8c0 return RTEMS_NOT_DEFINED; if ( !time_buffer ) 10c817: 85 db test %ebx,%ebx 10c819: 0f 84 ad 00 00 00 je 10c8cc return RTEMS_INVALID_ADDRESS; time_buffer->ticks = 0; 10c81f: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) if ( !_TOD_Validate( time_buffer ) ) 10c826: 83 ec 0c sub $0xc,%esp 10c829: 53 push %ebx 10c82a: e8 d9 f3 ff ff call 10bc08 <_TOD_Validate> 10c82f: 83 c4 10 add $0x10,%esp 10c832: 84 c0 test %al,%al 10c834: 75 0a jne 10c840 _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 10c836: b8 14 00 00 00 mov $0x14,%eax } 10c83b: 8b 5d fc mov -0x4(%ebp),%ebx 10c83e: c9 leave 10c83f: c3 ret time_buffer->ticks = 0; if ( !_TOD_Validate( time_buffer ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); 10c840: 83 ec 0c sub $0xc,%esp 10c843: 53 push %ebx 10c844: e8 33 f3 ff ff call 10bb7c <_TOD_To_seconds> if ( seconds <= _TOD_Seconds_since_epoch() ) 10c849: 83 c4 10 add $0x10,%esp 10c84c: 3b 05 6c 87 12 00 cmp 0x12876c,%eax 10c852: 76 e2 jbe 10c836 10c854: 8b 15 d8 86 12 00 mov 0x1286d8,%edx 10c85a: 42 inc %edx 10c85b: 89 15 d8 86 12 00 mov %edx,0x1286d8 return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); 10c861: 83 ec 08 sub $0x8,%esp 10c864: 6a 10 push $0x10 10c866: ff 35 98 87 12 00 pushl 0x128798 10c86c: 89 45 f4 mov %eax,-0xc(%ebp) 10c86f: e8 fc 22 00 00 call 10eb70 <_Thread_Set_state> _Watchdog_Initialize( &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, 10c874: 8b 15 98 87 12 00 mov 0x128798,%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( 10c87a: 8b 4a 08 mov 0x8(%edx),%ecx Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 10c87d: c7 42 50 00 00 00 00 movl $0x0,0x50(%edx) the_watchdog->routine = routine; 10c884: c7 42 64 50 e1 10 00 movl $0x10e150,0x64(%edx) the_watchdog->id = id; 10c88b: 89 4a 68 mov %ecx,0x68(%edx) the_watchdog->user_data = user_data; 10c88e: c7 42 6c 00 00 00 00 movl $0x0,0x6c(%edx) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 10c895: 8b 45 f4 mov -0xc(%ebp),%eax 10c898: 2b 05 6c 87 12 00 sub 0x12876c,%eax 10c89e: 89 42 54 mov %eax,0x54(%edx) _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 10c8a1: 58 pop %eax 10c8a2: 59 pop %ecx 10c8a3: 83 c2 48 add $0x48,%edx 10c8a6: 52 push %edx 10c8a7: 68 ac 87 12 00 push $0x1287ac 10c8ac: e8 87 29 00 00 call 10f238 <_Watchdog_Insert> ); _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); 10c8b1: e8 32 1a 00 00 call 10e2e8 <_Thread_Enable_dispatch> 10c8b6: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10c8b8: 83 c4 10 add $0x10,%esp 10c8bb: e9 7b ff ff ff jmp 10c83b <== ALWAYS TAKEN rtems_time_of_day *time_buffer ) { Watchdog_Interval seconds; if ( !_TOD_Is_set ) 10c8c0: b8 0b 00 00 00 mov $0xb,%eax &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10c8c5: 8b 5d fc mov -0x4(%ebp),%ebx 10c8c8: c9 leave 10c8c9: c3 ret 10c8ca: 66 90 xchg %ax,%ax <== NOT EXECUTED Watchdog_Interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !time_buffer ) 10c8cc: b8 09 00 00 00 mov $0x9,%eax &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10c8d1: 8b 5d fc mov -0x4(%ebp),%ebx 10c8d4: c9 leave 10c8d5: c3 ret 00109ff0 : #include int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) { 109ff0: 55 push %ebp 109ff1: 89 e5 mov %esp,%ebp 109ff3: 8b 45 08 mov 0x8(%ebp),%eax int baud_index; switch (termios_baud) { 109ff6: 83 f8 09 cmp $0x9,%eax 109ff9: 0f 84 f1 00 00 00 je 10a0f0 <== ALWAYS TAKEN 109fff: 7e 37 jle 10a038 <== NEVER TAKEN 10a001: 83 f8 0e cmp $0xe,%eax <== NOT EXECUTED 10a004: 0f 84 f6 00 00 00 je 10a100 <== NOT EXECUTED 10a00a: 7e 5c jle 10a068 <== NOT EXECUTED 10a00c: 3d 02 10 00 00 cmp $0x1002,%eax <== NOT EXECUTED 10a011: 0f 84 01 01 00 00 je 10a118 <== NOT EXECUTED 10a017: 0f 8e 97 00 00 00 jle 10a0b4 <== NOT EXECUTED 10a01d: 3d 03 10 00 00 cmp $0x1003,%eax <== NOT EXECUTED 10a022: 0f 84 e0 00 00 00 je 10a108 <== NOT EXECUTED 10a028: 3d 04 10 00 00 cmp $0x1004,%eax <== NOT EXECUTED 10a02d: 75 51 jne 10a080 <== 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; 10a02f: b8 13 00 00 00 mov $0x13,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a034: c9 leave <== NOT EXECUTED 10a035: c3 ret <== NOT EXECUTED 10a036: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 10a038: 83 f8 04 cmp $0x4,%eax 10a03b: 0f 84 b7 00 00 00 je 10a0f8 <== ALWAYS TAKEN 10a041: 7f 45 jg 10a088 <== ALWAYS TAKEN 10a043: 83 f8 01 cmp $0x1,%eax 10a046: 0f 84 8c 00 00 00 je 10a0d8 <== ALWAYS TAKEN 10a04c: 0f 8e de 00 00 00 jle 10a130 <== NEVER TAKEN 10a052: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED 10a055: 0f 84 c5 00 00 00 je 10a120 <== NOT EXECUTED 10a05b: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED 10a05e: 75 20 jne 10a080 <== NOT EXECUTED case B0: baud_index = 0; break; case B50: baud_index = 1; break; case B75: baud_index = 2; break; 10a060: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a065: c9 leave <== NOT EXECUTED 10a066: c3 ret <== NOT EXECUTED 10a067: 90 nop <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 10a068: 83 f8 0b cmp $0xb,%eax <== NOT EXECUTED 10a06b: 0f 84 9f 00 00 00 je 10a110 <== NOT EXECUTED 10a071: 7c 39 jl 10a0ac <== NOT EXECUTED 10a073: 83 f8 0c cmp $0xc,%eax <== NOT EXECUTED 10a076: 74 50 je 10a0c8 <== NOT EXECUTED 10a078: 83 f8 0d cmp $0xd,%eax <== NOT EXECUTED 10a07b: 74 62 je 10a0df <== NOT EXECUTED 10a07d: 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; 10a080: b8 ff ff ff ff mov $0xffffffff,%eax default: baud_index = -1; break; } return baud_index; } 10a085: c9 leave 10a086: c3 ret 10a087: 90 nop <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 10a088: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED 10a08b: 74 43 je 10a0d0 <== NOT EXECUTED 10a08d: 7c 15 jl 10a0a4 <== NOT EXECUTED 10a08f: 83 f8 07 cmp $0x7,%eax <== NOT EXECUTED 10a092: 0f 84 90 00 00 00 je 10a128 <== NOT EXECUTED 10a098: 83 f8 08 cmp $0x8,%eax <== NOT EXECUTED 10a09b: 75 e3 jne 10a080 <== 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; 10a09d: b8 08 00 00 00 mov $0x8,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a0a2: c9 leave <== NOT EXECUTED 10a0a3: 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; 10a0a4: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a0a9: c9 leave <== NOT EXECUTED 10a0aa: c3 ret <== NOT EXECUTED 10a0ab: 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; 10a0ac: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a0b1: c9 leave <== NOT EXECUTED 10a0b2: c3 ret <== NOT EXECUTED 10a0b3: 90 nop <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 10a0b4: 83 f8 0f cmp $0xf,%eax <== NOT EXECUTED 10a0b7: 74 2f je 10a0e8 <== NOT EXECUTED 10a0b9: 3d 01 10 00 00 cmp $0x1001,%eax <== NOT EXECUTED 10a0be: 75 c0 jne 10a080 <== 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; 10a0c0: b8 10 00 00 00 mov $0x10,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a0c5: c9 leave <== NOT EXECUTED 10a0c6: c3 ret <== NOT EXECUTED 10a0c7: 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; 10a0c8: b8 0c 00 00 00 mov $0xc,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a0cd: c9 leave <== NOT EXECUTED 10a0ce: c3 ret <== NOT EXECUTED 10a0cf: 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; 10a0d0: b8 06 00 00 00 mov $0x6,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a0d5: c9 leave <== NOT EXECUTED 10a0d6: c3 ret <== NOT EXECUTED 10a0d7: 90 nop <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 10a0d8: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a0dd: c9 leave <== NOT EXECUTED 10a0de: 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; 10a0df: b8 0d 00 00 00 mov $0xd,%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 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; 10a0e8: b8 0f 00 00 00 mov $0xf,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a0ed: c9 leave <== NOT EXECUTED 10a0ee: c3 ret <== NOT EXECUTED 10a0ef: 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; 10a0f0: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a0f5: c9 leave <== NOT EXECUTED 10a0f6: c3 ret <== NOT EXECUTED 10a0f7: 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; 10a0f8: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a0fd: c9 leave <== NOT EXECUTED 10a0fe: c3 ret <== NOT EXECUTED 10a0ff: 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; 10a100: b8 0e 00 00 00 mov $0xe,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a105: c9 leave <== NOT EXECUTED 10a106: c3 ret <== NOT EXECUTED 10a107: 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; 10a108: b8 12 00 00 00 mov $0x12,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a10d: c9 leave <== NOT EXECUTED 10a10e: c3 ret <== NOT EXECUTED 10a10f: 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; 10a110: b8 0b 00 00 00 mov $0xb,%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 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; 10a118: b8 11 00 00 00 mov $0x11,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a11d: c9 leave <== NOT EXECUTED 10a11e: c3 ret <== NOT EXECUTED 10a11f: 90 nop <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 10a120: b8 02 00 00 00 mov $0x2,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a125: c9 leave <== NOT EXECUTED 10a126: c3 ret <== NOT EXECUTED 10a127: 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; 10a128: b8 07 00 00 00 mov $0x7,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a12d: c9 leave <== NOT EXECUTED 10a12e: c3 ret <== NOT EXECUTED 10a12f: 90 nop <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 10a130: 85 c0 test %eax,%eax 10a132: 0f 85 48 ff ff ff jne 10a080 <== NEVER TAKEN 10a138: 31 c0 xor %eax,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a13a: c9 leave <== NOT EXECUTED 10a13b: c3 ret <== NOT EXECUTED 00108d1c : #include int32_t rtems_termios_baud_to_number( int termios_baud ) { 108d1c: 55 push %ebp 108d1d: 89 e5 mov %esp,%ebp 108d1f: 8b 45 08 mov 0x8(%ebp),%eax int32_t baud; switch (termios_baud) { 108d22: 83 f8 09 cmp $0x9,%eax 108d25: 0f 84 f1 00 00 00 je 108e1c 108d2b: 7e 37 jle 108d64 108d2d: 83 f8 0e cmp $0xe,%eax 108d30: 0f 84 f6 00 00 00 je 108e2c 108d36: 7e 5c jle 108d94 108d38: 3d 02 10 00 00 cmp $0x1002,%eax 108d3d: 0f 84 01 01 00 00 je 108e44 108d43: 0f 8e 97 00 00 00 jle 108de0 108d49: 3d 03 10 00 00 cmp $0x1003,%eax 108d4e: 0f 84 e0 00 00 00 je 108e34 108d54: 3d 04 10 00 00 cmp $0x1004,%eax 108d59: 75 51 jne 108dac <== 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; 108d5b: b8 00 08 07 00 mov $0x70800,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108d60: c9 leave 108d61: c3 ret 108d62: 66 90 xchg %ax,%ax <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 108d64: 83 f8 04 cmp $0x4,%eax 108d67: 0f 84 b7 00 00 00 je 108e24 108d6d: 7f 45 jg 108db4 108d6f: 83 f8 01 cmp $0x1,%eax 108d72: 0f 84 8c 00 00 00 je 108e04 108d78: 0f 8e de 00 00 00 jle 108e5c 108d7e: 83 f8 02 cmp $0x2,%eax 108d81: 0f 84 c5 00 00 00 je 108e4c 108d87: 83 f8 03 cmp $0x3,%eax 108d8a: 75 20 jne 108dac <== ALWAYS TAKEN case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; 108d8c: b8 6e 00 00 00 mov $0x6e,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108d91: c9 leave 108d92: c3 ret 108d93: 90 nop <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 108d94: 83 f8 0b cmp $0xb,%eax 108d97: 0f 84 9f 00 00 00 je 108e3c 108d9d: 7c 39 jl 108dd8 108d9f: 83 f8 0c cmp $0xc,%eax 108da2: 74 50 je 108df4 108da4: 83 f8 0d cmp $0xd,%eax 108da7: 74 62 je 108e0b <== NEVER TAKEN 108da9: 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; 108dac: b8 ff ff ff ff mov $0xffffffff,%eax default: baud = -1; break; } return baud; } 108db1: c9 leave 108db2: c3 ret 108db3: 90 nop <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 108db4: 83 f8 06 cmp $0x6,%eax 108db7: 74 43 je 108dfc 108db9: 7c 15 jl 108dd0 108dbb: 83 f8 07 cmp $0x7,%eax 108dbe: 0f 84 90 00 00 00 je 108e54 108dc4: 83 f8 08 cmp $0x8,%eax 108dc7: 75 e3 jne 108dac <== 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; 108dc9: b8 58 02 00 00 mov $0x258,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108dce: c9 leave 108dcf: 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; 108dd0: b8 96 00 00 00 mov $0x96,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108dd5: c9 leave 108dd6: c3 ret 108dd7: 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; 108dd8: b8 08 07 00 00 mov $0x708,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108ddd: c9 leave 108dde: c3 ret 108ddf: 90 nop <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 108de0: 83 f8 0f cmp $0xf,%eax 108de3: 74 2f je 108e14 108de5: 3d 01 10 00 00 cmp $0x1001,%eax 108dea: 75 c0 jne 108dac <== 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; 108dec: b8 00 e1 00 00 mov $0xe100,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108df1: c9 leave 108df2: c3 ret 108df3: 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; 108df4: b8 c0 12 00 00 mov $0x12c0,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108df9: c9 leave 108dfa: c3 ret 108dfb: 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; 108dfc: b8 c8 00 00 00 mov $0xc8,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e01: c9 leave 108e02: c3 ret 108e03: 90 nop <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 108e04: b8 32 00 00 00 mov $0x32,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e09: c9 leave 108e0a: 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; 108e0b: b8 80 25 00 00 mov $0x2580,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e10: c9 leave 108e11: c3 ret 108e12: 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; 108e14: b8 00 96 00 00 mov $0x9600,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e19: c9 leave 108e1a: c3 ret 108e1b: 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; 108e1c: b8 b0 04 00 00 mov $0x4b0,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e21: c9 leave 108e22: c3 ret 108e23: 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; 108e24: b8 86 00 00 00 mov $0x86,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e29: c9 leave 108e2a: c3 ret 108e2b: 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; 108e2c: b8 00 4b 00 00 mov $0x4b00,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e31: c9 leave 108e32: c3 ret 108e33: 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; 108e34: b8 00 84 03 00 mov $0x38400,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e39: c9 leave 108e3a: c3 ret 108e3b: 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; 108e3c: b8 60 09 00 00 mov $0x960,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e41: c9 leave 108e42: c3 ret 108e43: 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; 108e44: b8 00 c2 01 00 mov $0x1c200,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e49: c9 leave 108e4a: c3 ret 108e4b: 90 nop <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 108e4c: b8 4b 00 00 00 mov $0x4b,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e51: c9 leave 108e52: c3 ret 108e53: 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; 108e54: b8 2c 01 00 00 mov $0x12c,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e59: c9 leave 108e5a: c3 ret 108e5b: 90 nop <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 108e5c: 85 c0 test %eax,%eax 108e5e: 0f 85 48 ff ff ff jne 108dac 108e64: 31 c0 xor %eax,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e66: c9 leave 108e67: c3 ret 00108ea4 : rtems_status_code rtems_termios_bufsize ( int cbufsize, int raw_input, int raw_output ) { 108ea4: 55 push %ebp <== NOT EXECUTED 108ea5: 89 e5 mov %esp,%ebp <== NOT EXECUTED rtems_termios_cbufsize = cbufsize; 108ea7: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 108eaa: a3 e8 2f 12 00 mov %eax,0x122fe8 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 108eaf: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 108eb2: a3 ec 2f 12 00 mov %eax,0x122fec <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 108eb7: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 108eba: a3 f0 2f 12 00 mov %eax,0x122ff0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 108ebf: 31 c0 xor %eax,%eax <== NOT EXECUTED 108ec1: c9 leave <== NOT EXECUTED 108ec2: c3 ret <== NOT EXECUTED 0010a350 : } } rtems_status_code rtems_termios_close (void *arg) { 10a350: 55 push %ebp 10a351: 89 e5 mov %esp,%ebp 10a353: 56 push %esi 10a354: 53 push %ebx 10a355: 8b 75 08 mov 0x8(%ebp),%esi rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 10a358: 8b 06 mov (%esi),%eax 10a35a: 8b 58 34 mov 0x34(%eax),%ebx rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 10a35d: 50 push %eax 10a35e: 6a 00 push $0x0 10a360: 6a 00 push $0x0 10a362: ff 35 f8 51 12 00 pushl 0x1251f8 10a368: e8 f3 11 00 00 call 10b560 if (sc != RTEMS_SUCCESSFUL) 10a36d: 83 c4 10 add $0x10,%esp 10a370: 85 c0 test %eax,%eax 10a372: 0f 85 92 01 00 00 jne 10a50a <== ALWAYS TAKEN rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 10a378: 8b 43 08 mov 0x8(%ebx),%eax 10a37b: 48 dec %eax 10a37c: 89 43 08 mov %eax,0x8(%ebx) 10a37f: 85 c0 test %eax,%eax 10a381: 0f 85 bf 00 00 00 jne 10a446 if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 10a387: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax 10a38d: c1 e0 05 shl $0x5,%eax 10a390: 8b 80 64 4e 12 00 mov 0x124e64(%eax),%eax 10a396: 85 c0 test %eax,%eax 10a398: 0f 84 12 01 00 00 je 10a4b0 <== NEVER TAKEN /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 10a39e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a3a1: 53 push %ebx <== NOT EXECUTED 10a3a2: ff d0 call *%eax <== NOT EXECUTED 10a3a4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_fatal_error_occurred (sc); } drainOutput (tty); } if (tty->device.outputUsesInterrupts 10a3a7: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx) <== NOT EXECUTED 10a3ae: 0f 84 24 01 00 00 je 10a4d8 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) 10a3b4: 8b 83 9c 00 00 00 mov 0x9c(%ebx),%eax 10a3ba: 85 c0 test %eax,%eax 10a3bc: 74 0d je 10a3cb (*tty->device.lastClose)(tty->major, tty->minor, arg); 10a3be: 52 push %edx 10a3bf: 56 push %esi 10a3c0: ff 73 10 pushl 0x10(%ebx) 10a3c3: ff 73 0c pushl 0xc(%ebx) 10a3c6: ff d0 call *%eax 10a3c8: 83 c4 10 add $0x10,%esp if (tty->forw == NULL) { 10a3cb: 8b 03 mov (%ebx),%eax 10a3cd: 85 c0 test %eax,%eax 10a3cf: 0f 84 9b 00 00 00 je 10a470 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; 10a3d5: 8b 53 04 mov 0x4(%ebx),%edx 10a3d8: 89 50 04 mov %edx,0x4(%eax) } if (tty->back == NULL) { 10a3db: 8b 53 04 mov 0x4(%ebx),%edx 10a3de: 85 d2 test %edx,%edx 10a3e0: 0f 84 ae 00 00 00 je 10a494 <== NEVER TAKEN if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 10a3e6: 89 02 mov %eax,(%edx) <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); 10a3e8: 83 ec 0c sub $0xc,%esp 10a3eb: ff 73 14 pushl 0x14(%ebx) 10a3ee: e8 c9 10 00 00 call 10b4bc rtems_semaphore_delete (tty->osem); 10a3f3: 58 pop %eax 10a3f4: ff 73 18 pushl 0x18(%ebx) 10a3f7: e8 c0 10 00 00 call 10b4bc rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 10a3fc: 5e pop %esi 10a3fd: ff b3 8c 00 00 00 pushl 0x8c(%ebx) 10a403: e8 b4 10 00 00 call 10b4bc if ((tty->device.pollRead == NULL) || 10a408: 83 c4 10 add $0x10,%esp 10a40b: 8b 8b a0 00 00 00 mov 0xa0(%ebx),%ecx 10a411: 85 c9 test %ecx,%ecx 10a413: 74 4b je 10a460 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) 10a415: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx) 10a41c: 74 42 je 10a460 <== ALWAYS TAKEN rtems_semaphore_delete (tty->rawInBuf.Semaphore); free (tty->rawInBuf.theBuf); 10a41e: 83 ec 0c sub $0xc,%esp 10a421: ff 73 58 pushl 0x58(%ebx) 10a424: e8 b3 db ff ff call 107fdc free (tty->rawOutBuf.theBuf); 10a429: 5a pop %edx 10a42a: ff 73 7c pushl 0x7c(%ebx) 10a42d: e8 aa db ff ff call 107fdc free (tty->cbuf); 10a432: 58 pop %eax 10a433: ff 73 1c pushl 0x1c(%ebx) 10a436: e8 a1 db ff ff call 107fdc free (tty); 10a43b: 89 1c 24 mov %ebx,(%esp) 10a43e: e8 99 db ff ff call 107fdc 10a443: 83 c4 10 add $0x10,%esp } rtems_semaphore_release (rtems_termios_ttyMutex); 10a446: 83 ec 0c sub $0xc,%esp 10a449: ff 35 f8 51 12 00 pushl 0x1251f8 10a44f: e8 08 12 00 00 call 10b65c return RTEMS_SUCCESSFUL; } 10a454: 31 c0 xor %eax,%eax 10a456: 8d 65 f8 lea -0x8(%ebp),%esp 10a459: 5b pop %ebx 10a45a: 5e pop %esi 10a45b: c9 leave 10a45c: c3 ret 10a45d: 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); 10a460: 83 ec 0c sub $0xc,%esp 10a463: ff 73 68 pushl 0x68(%ebx) 10a466: e8 51 10 00 00 call 10b4bc 10a46b: 83 c4 10 add $0x10,%esp 10a46e: eb ae jmp 10a41e <== ALWAYS TAKEN 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; 10a470: 8b 43 04 mov 0x4(%ebx),%eax 10a473: a3 fc 51 12 00 mov %eax,0x1251fc if ( rtems_termios_ttyTail != NULL ) { 10a478: 85 c0 test %eax,%eax 10a47a: 0f 84 94 00 00 00 je 10a514 <== NEVER TAKEN rtems_termios_ttyTail->forw = NULL; 10a480: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED 10a486: 8b 03 mov (%ebx),%eax <== NOT EXECUTED } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 10a488: 8b 53 04 mov 0x4(%ebx),%edx <== NOT EXECUTED 10a48b: 85 d2 test %edx,%edx <== NOT EXECUTED 10a48d: 0f 85 53 ff ff ff jne 10a3e6 <== NOT EXECUTED 10a493: 90 nop <== NOT EXECUTED rtems_termios_ttyHead = tty->forw; 10a494: a3 00 52 12 00 mov %eax,0x125200 if ( rtems_termios_ttyHead != NULL ) { 10a499: 85 c0 test %eax,%eax 10a49b: 0f 84 47 ff ff ff je 10a3e8 <== ALWAYS TAKEN rtems_termios_ttyHead->back = NULL; 10a4a1: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) 10a4a8: e9 3b ff ff ff jmp 10a3e8 <== ALWAYS TAKEN 10a4ad: 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); 10a4b0: 51 push %ecx 10a4b1: 6a 00 push $0x0 10a4b3: 6a 00 push $0x0 10a4b5: ff 73 18 pushl 0x18(%ebx) 10a4b8: e8 a3 10 00 00 call 10b560 if (sc != RTEMS_SUCCESSFUL) { 10a4bd: 83 c4 10 add $0x10,%esp 10a4c0: 85 c0 test %eax,%eax 10a4c2: 75 46 jne 10a50a <== ALWAYS TAKEN rtems_fatal_error_occurred (sc); } drainOutput (tty); 10a4c4: 89 d8 mov %ebx,%eax 10a4c6: e8 c1 f6 ff ff call 109b8c <== ALWAYS TAKEN } if (tty->device.outputUsesInterrupts 10a4cb: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx) 10a4d2: 0f 85 dc fe ff ff jne 10a3b4 <== NEVER TAKEN == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 10a4d8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10a4db: 6a 01 push $0x1 <== NOT EXECUTED 10a4dd: ff b3 c4 00 00 00 pushl 0xc4(%ebx) <== NOT EXECUTED 10a4e3: e8 68 0b 00 00 call 10b050 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 10a4e8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a4eb: 85 c0 test %eax,%eax <== NOT EXECUTED 10a4ed: 75 1b jne 10a50a <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 10a4ef: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10a4f2: 6a 01 push $0x1 <== NOT EXECUTED 10a4f4: ff b3 c8 00 00 00 pushl 0xc8(%ebx) <== NOT EXECUTED 10a4fa: e8 51 0b 00 00 call 10b050 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 10a4ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a502: 85 c0 test %eax,%eax <== NOT EXECUTED 10a504: 0f 84 aa fe ff ff je 10a3b4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 10a50a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a50d: 50 push %eax <== NOT EXECUTED 10a50e: e8 85 16 00 00 call 10bb98 <== NOT EXECUTED 10a513: 90 nop <== NOT EXECUTED } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 10a514: c7 05 00 52 12 00 00 movl $0x0,0x125200 10a51b: 00 00 00 10a51e: e9 c5 fe ff ff jmp 10a3e8 <== ALWAYS TAKEN 00109118 : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 109118: 55 push %ebp 109119: 89 e5 mov %esp,%ebp 10911b: 83 ec 08 sub $0x8,%esp 10911e: 8b 45 08 mov 0x8(%ebp),%eax rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 109121: 8b 55 0c mov 0xc(%ebp),%edx 109124: 01 90 90 00 00 00 add %edx,0x90(%eax) if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 10912a: 83 b8 b4 00 00 00 02 cmpl $0x2,0xb4(%eax) 109131: 74 2d je 109160 <== 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 ) { 109133: 83 b8 cc 00 00 00 05 cmpl $0x5,0xcc(%eax) 10913a: 74 0c je 109148 <== 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); 10913c: 89 45 08 mov %eax,0x8(%ebp) } } 10913f: 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); 109140: e9 9b fd ff ff jmp 108ee0 <== ALWAYS TAKEN 109145: 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) { 109148: 8b 15 14 4f 12 00 mov 0x124f14,%edx <== NOT EXECUTED 10914e: 85 d2 test %edx,%edx <== NOT EXECUTED 109150: 74 09 je 10915b <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 109152: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109155: 50 push %eax <== NOT EXECUTED 109156: ff d2 call *%edx <== NOT EXECUTED 109158: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 10915b: 31 c0 xor %eax,%eax <== NOT EXECUTED 10915d: c9 leave <== NOT EXECUTED 10915e: c3 ret <== NOT EXECUTED 10915f: 90 nop <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 109160: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 109163: 6a 02 push $0x2 <== NOT EXECUTED 109165: ff b0 c8 00 00 00 pushl 0xc8(%eax) <== NOT EXECUTED 10916b: e8 e0 1e 00 00 call 10b050 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 109170: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109173: 85 c0 test %eax,%eax <== NOT EXECUTED 109175: 74 e4 je 10915b <== NOT EXECUTED rtems_fatal_error_occurred (sc); 109177: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10917a: 50 push %eax <== NOT EXECUTED 10917b: e8 18 2a 00 00 call 10bb98 <== NOT EXECUTED 00109180 : * 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) { 109180: 55 push %ebp <== NOT EXECUTED 109181: 89 e5 mov %esp,%ebp <== NOT EXECUTED 109183: 57 push %edi <== NOT EXECUTED 109184: 56 push %esi <== NOT EXECUTED 109185: 53 push %ebx <== NOT EXECUTED 109186: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED 109189: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 10918c: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 10918f: 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) { 109192: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED 109198: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 10919b: 8b 80 70 4e 12 00 mov 0x124e70(%eax),%eax <== NOT EXECUTED 1091a1: 85 c0 test %eax,%eax <== NOT EXECUTED 1091a3: 0f 84 8b 00 00 00 je 109234 <== NOT EXECUTED while (len--) { 1091a9: 85 ff test %edi,%edi <== NOT EXECUTED 1091ab: 74 2e je 1091db <== NOT EXECUTED 1091ad: 31 d2 xor %edx,%edx <== NOT EXECUTED 1091af: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED 1091b2: 89 f7 mov %esi,%edi <== NOT EXECUTED 1091b4: 89 d6 mov %edx,%esi <== NOT EXECUTED 1091b6: eb 0f jmp 1091c7 <== NOT EXECUTED 1091b8: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED 1091be: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 1091c1: 8b 80 70 4e 12 00 mov 0x124e70(%eax),%eax <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 1091c7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1091ca: 53 push %ebx <== NOT EXECUTED 1091cb: 0f be 14 37 movsbl (%edi,%esi,1),%edx <== NOT EXECUTED 1091cf: 52 push %edx <== NOT EXECUTED 1091d0: ff d0 call *%eax <== NOT EXECUTED 1091d2: 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--) { 1091d3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1091d6: 39 75 e4 cmp %esi,-0x1c(%ebp) <== NOT EXECUTED 1091d9: 75 dd jne 1091b8 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 1091db: 8b 93 e4 00 00 00 mov 0xe4(%ebx),%edx <== NOT EXECUTED 1091e1: 85 d2 test %edx,%edx <== NOT EXECUTED 1091e3: 75 3b jne 109220 <== NOT EXECUTED 1091e5: 8b 83 dc 00 00 00 mov 0xdc(%ebx),%eax <== NOT EXECUTED 1091eb: 85 c0 test %eax,%eax <== NOT EXECUTED 1091ed: 74 31 je 109220 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 1091ef: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1091f2: ff b3 e0 00 00 00 pushl 0xe0(%ebx) <== NOT EXECUTED 1091f8: 8d 53 30 lea 0x30(%ebx),%edx <== NOT EXECUTED 1091fb: 52 push %edx <== NOT EXECUTED 1091fc: ff d0 call *%eax <== NOT EXECUTED tty->tty_rcvwakeup = 1; 1091fe: c7 83 e4 00 00 00 01 movl $0x1,0xe4(%ebx) <== NOT EXECUTED 109205: 00 00 00 <== NOT EXECUTED 109208: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED 10920f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; } 109212: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 109215: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109218: 5b pop %ebx <== NOT EXECUTED 109219: 5e pop %esi <== NOT EXECUTED 10921a: 5f pop %edi <== NOT EXECUTED 10921b: c9 leave <== NOT EXECUTED 10921c: c3 ret <== NOT EXECUTED 10921d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 109220: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED } 109227: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10922a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10922d: 5b pop %ebx <== NOT EXECUTED 10922e: 5e pop %esi <== NOT EXECUTED 10922f: 5f pop %edi <== NOT EXECUTED 109230: c9 leave <== NOT EXECUTED 109231: c3 ret <== NOT EXECUTED 109232: 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, 109234: 8d 43 4a lea 0x4a(%ebx),%eax <== NOT EXECUTED 109237: 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); 10923a: 8d 53 30 lea 0x30(%ebx),%edx <== NOT EXECUTED 10923d: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED 109240: c6 45 db 00 movb $0x0,-0x25(%ebp) <== NOT EXECUTED 109244: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 10924b: 85 ff test %edi,%edi <== NOT EXECUTED 10924d: 0f 84 0b 01 00 00 je 10935e <== NOT EXECUTED 109253: 90 nop <== NOT EXECUTED c = *buf++; 109254: 8a 06 mov (%esi),%al <== NOT EXECUTED 109256: 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) { 109259: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 10925f: f6 c4 02 test $0x2,%ah <== NOT EXECUTED 109262: 74 1c je 109280 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 109264: 0f be 45 e4 movsbl -0x1c(%ebp),%eax <== NOT EXECUTED 109268: 0f b6 53 4a movzbl 0x4a(%ebx),%edx <== NOT EXECUTED 10926c: 39 d0 cmp %edx,%eax <== NOT EXECUTED 10926e: 0f 84 0c 01 00 00 je 109380 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 109274: 0f b6 53 49 movzbl 0x49(%ebx),%edx <== NOT EXECUTED 109278: 39 d0 cmp %edx,%eax <== NOT EXECUTED 10927a: 0f 84 54 01 00 00 je 1093d4 <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { 109280: 80 7d db 00 cmpb $0x0,-0x25(%ebp) <== NOT EXECUTED 109284: 0f 85 11 01 00 00 jne 10939b <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 10928a: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 10928d: 8b 53 64 mov 0x64(%ebx),%edx <== NOT EXECUTED 109290: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED 109293: 40 inc %eax <== NOT EXECUTED 109294: 31 d2 xor %edx,%edx <== NOT EXECUTED 109296: f7 75 dc divl -0x24(%ebp) <== NOT EXECUTED 109299: 89 d1 mov %edx,%ecx <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 10929b: 9c pushf <== NOT EXECUTED 10929c: fa cli <== NOT EXECUTED 10929d: 8f 45 d4 popl -0x2c(%ebp) <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 1092a0: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED 1092a3: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED 1092a6: 8b 43 64 mov 0x64(%ebx),%eax <== NOT EXECUTED 1092a9: 8b 53 64 mov 0x64(%ebx),%edx <== NOT EXECUTED 1092ac: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED 1092af: 2b 45 c4 sub -0x3c(%ebp),%eax <== NOT EXECUTED 1092b2: 01 c8 add %ecx,%eax <== NOT EXECUTED 1092b4: 31 d2 xor %edx,%edx <== NOT EXECUTED 1092b6: f7 75 dc divl -0x24(%ebp) <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && 1092b9: 3b 93 c0 00 00 00 cmp 0xc0(%ebx),%edx <== NOT EXECUTED 1092bf: 76 47 jbe 109308 <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { 1092c1: 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) 1092c7: a8 01 test $0x1,%al <== NOT EXECUTED 1092c9: 75 3d jne 109308 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 1092cb: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1092d1: 83 c8 01 or $0x1,%eax <== NOT EXECUTED 1092d4: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 1092da: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1092e0: 25 02 04 00 00 and $0x402,%eax <== NOT EXECUTED 1092e5: 3d 00 04 00 00 cmp $0x400,%eax <== NOT EXECUTED 1092ea: 0f 84 27 01 00 00 je 109417 <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 1092f0: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1092f6: 25 04 01 00 00 and $0x104,%eax <== NOT EXECUTED 1092fb: 3d 00 01 00 00 cmp $0x100,%eax <== NOT EXECUTED 109300: 0f 84 55 01 00 00 je 10945b <== NOT EXECUTED 109306: 66 90 xchg %ax,%ax <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); } } } /* reenable interrupts */ rtems_interrupt_enable(level); 109308: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED 10930b: 9d popf <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 10930c: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED 10930f: 39 c8 cmp %ecx,%eax <== NOT EXECUTED 109311: 0f 84 b5 00 00 00 je 1093cc <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; 109317: 8b 43 58 mov 0x58(%ebx),%eax <== NOT EXECUTED 10931a: 8a 55 e4 mov -0x1c(%ebp),%dl <== NOT EXECUTED 10931d: 88 14 08 mov %dl,(%eax,%ecx,1) <== NOT EXECUTED tty->rawInBuf.Tail = newTail; 109320: 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 )) { 109323: 8b 83 e4 00 00 00 mov 0xe4(%ebx),%eax <== NOT EXECUTED 109329: 85 c0 test %eax,%eax <== NOT EXECUTED 10932b: 75 27 jne 109354 <== NOT EXECUTED 10932d: 8b 83 dc 00 00 00 mov 0xdc(%ebx),%eax <== NOT EXECUTED 109333: 85 c0 test %eax,%eax <== NOT EXECUTED 109335: 74 1d je 109354 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 109337: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10933a: ff b3 e0 00 00 00 pushl 0xe0(%ebx) <== NOT EXECUTED 109340: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED 109343: ff d0 call *%eax <== NOT EXECUTED tty->tty_rcvwakeup = 1; 109345: c7 83 e4 00 00 00 01 movl $0x1,0xe4(%ebx) <== NOT EXECUTED 10934c: 00 00 00 <== NOT EXECUTED 10934f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109352: 66 90 xchg %ax,%ax <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 109354: 46 inc %esi <== NOT EXECUTED 109355: 4f dec %edi <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 109356: 85 ff test %edi,%edi <== NOT EXECUTED 109358: 0f 85 f6 fe ff ff jne 109254 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 10935e: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 109361: 01 43 78 add %eax,0x78(%ebx) <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 109364: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109367: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED 10936a: e8 ed 22 00 00 call 10b65c <== NOT EXECUTED return dropped; 10936f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 109372: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 109375: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109378: 5b pop %ebx <== NOT EXECUTED 109379: 5e pop %esi <== NOT EXECUTED 10937a: 5f pop %edi <== NOT EXECUTED 10937b: c9 leave <== NOT EXECUTED 10937c: c3 ret <== NOT EXECUTED 10937d: 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]) { 109380: 0f b6 53 49 movzbl 0x49(%ebx),%edx <== NOT EXECUTED 109384: 39 d0 cmp %edx,%eax <== NOT EXECUTED 109386: 74 7e je 109406 <== NOT EXECUTED tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 109388: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 10938e: 83 c8 10 or $0x10,%eax <== NOT EXECUTED 109391: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 109397: 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) { 10939b: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1093a1: 83 e0 30 and $0x30,%eax <== NOT EXECUTED 1093a4: 83 f8 20 cmp $0x20,%eax <== NOT EXECUTED 1093a7: 75 ab jne 109354 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 1093a9: 9c pushf <== NOT EXECUTED 1093aa: fa cli <== NOT EXECUTED 1093ab: 5a pop %edx <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 1093ac: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1093b2: 83 e0 df and $0xffffffdf,%eax <== NOT EXECUTED 1093b5: 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) { 1093bb: 8b 83 94 00 00 00 mov 0x94(%ebx),%eax <== NOT EXECUTED 1093c1: 85 c0 test %eax,%eax <== NOT EXECUTED 1093c3: 75 20 jne 1093e5 <== 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); 1093c5: 52 push %edx <== NOT EXECUTED 1093c6: 9d popf <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 1093c7: 46 inc %esi <== NOT EXECUTED 1093c8: 4f dec %edi <== NOT EXECUTED 1093c9: eb 8b jmp 109356 <== NOT EXECUTED 1093cb: 90 nop <== NOT EXECUTED } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { dropped++; 1093cc: ff 45 e0 incl -0x20(%ebp) <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 1093cf: 46 inc %esi <== NOT EXECUTED 1093d0: 4f dec %edi <== NOT EXECUTED 1093d1: eb 83 jmp 109356 <== NOT EXECUTED 1093d3: 90 nop <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 1093d4: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1093da: 83 e0 ef and $0xffffffef,%eax <== NOT EXECUTED 1093dd: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED 1093e3: eb b2 jmp 109397 <== 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); 1093e5: 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, 1093eb: 51 push %ecx <== NOT EXECUTED 1093ec: 6a 01 push $0x1 <== NOT EXECUTED 1093ee: 03 43 7c add 0x7c(%ebx),%eax <== NOT EXECUTED 1093f1: 50 push %eax <== NOT EXECUTED 1093f2: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 1093f5: 89 55 c8 mov %edx,-0x38(%ebp) <== NOT EXECUTED 1093f8: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED 1093fe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109401: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED 109404: eb bf jmp 1093c5 <== 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; 109406: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 10940c: 83 f0 10 xor $0x10,%eax <== NOT EXECUTED 10940f: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED 109415: eb 80 jmp 109397 <== 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) || 109417: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 10941d: a8 20 test $0x20,%al <== NOT EXECUTED 10941f: 75 0e jne 10942f <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { 109421: 8b 83 94 00 00 00 mov 0x94(%ebx),%eax <== NOT EXECUTED 109427: 85 c0 test %eax,%eax <== NOT EXECUTED 109429: 0f 85 d9 fe ff ff jne 109308 <== NOT EXECUTED /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; 10942f: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109435: 83 c8 02 or $0x2,%eax <== NOT EXECUTED 109438: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED (*tty->device.write)(tty->minor, 10943e: 52 push %edx <== NOT EXECUTED 10943f: 6a 01 push $0x1 <== NOT EXECUTED 109441: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED 109444: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109447: 89 4d c8 mov %ecx,-0x38(%ebp) <== NOT EXECUTED 10944a: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED 109450: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109453: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED 109456: e9 ad fe ff ff jmp 109308 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 10945b: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109461: 83 c8 04 or $0x4,%eax <== NOT EXECUTED 109464: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 10946a: 8b 83 ac 00 00 00 mov 0xac(%ebx),%eax <== NOT EXECUTED 109470: 85 c0 test %eax,%eax <== NOT EXECUTED 109472: 0f 84 90 fe ff ff je 109308 <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 109478: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10947b: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 10947e: 89 4d c8 mov %ecx,-0x38(%ebp) <== NOT EXECUTED 109481: ff d0 call *%eax <== NOT EXECUTED 109483: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109486: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED 109489: e9 7a fe ff ff jmp 109308 <== NOT EXECUTED 00108e68 : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 108e68: 55 push %ebp 108e69: 89 e5 mov %esp,%ebp 108e6b: 83 ec 08 sub $0x8,%esp rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 108e6e: a1 f8 51 12 00 mov 0x1251f8,%eax 108e73: 85 c0 test %eax,%eax 108e75: 74 05 je 108e7c RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } 108e77: c9 leave 108e78: c3 ret 108e79: 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 ( 108e7c: 83 ec 0c sub $0xc,%esp 108e7f: 68 f8 51 12 00 push $0x1251f8 108e84: 6a 00 push $0x0 108e86: 6a 54 push $0x54 108e88: 6a 01 push $0x1 108e8a: 68 69 6d 52 54 push $0x54526d69 108e8f: e8 54 24 00 00 call 10b2e8 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) 108e94: 83 c4 20 add $0x20,%esp 108e97: 85 c0 test %eax,%eax 108e99: 74 dc je 108e77 <== NEVER TAKEN rtems_fatal_error_occurred (sc); 108e9b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108e9e: 50 push %eax <== NOT EXECUTED 108e9f: e8 f4 2c 00 00 call 10bb98 <== NOT EXECUTED 00109f38 : } } rtems_status_code rtems_termios_ioctl (void *arg) { 109f38: 55 push %ebp 109f39: 89 e5 mov %esp,%ebp 109f3b: 57 push %edi 109f3c: 56 push %esi 109f3d: 53 push %ebx 109f3e: 83 ec 20 sub $0x20,%esp 109f41: 8b 5d 08 mov 0x8(%ebp),%ebx rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 109f44: 8b 03 mov (%ebx),%eax 109f46: 8b 40 34 mov 0x34(%eax),%eax 109f49: 89 45 e4 mov %eax,-0x1c(%ebp) struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; 109f4c: 8b 73 08 mov 0x8(%ebx),%esi rtems_status_code sc; args->ioctl_return = 0; 109f4f: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 109f56: 6a 00 push $0x0 109f58: 6a 00 push $0x0 109f5a: ff 70 18 pushl 0x18(%eax) 109f5d: e8 fe 15 00 00 call 10b560 109f62: 89 45 e0 mov %eax,-0x20(%ebp) if (sc != RTEMS_SUCCESSFUL) { 109f65: 83 c4 10 add $0x10,%esp 109f68: 85 c0 test %eax,%eax 109f6a: 75 24 jne 109f90 <== ALWAYS TAKEN args->ioctl_return = sc; return sc; } switch (args->command) { 109f6c: 8b 43 04 mov 0x4(%ebx),%eax 109f6f: 83 f8 04 cmp $0x4,%eax 109f72: 74 74 je 109fe8 <== ALWAYS TAKEN 109f74: 77 2a ja 109fa0 <== ALWAYS TAKEN 109f76: 83 f8 02 cmp $0x2,%eax 109f79: 0f 84 a1 00 00 00 je 10a020 109f7f: 0f 86 3b 02 00 00 jbe 10a1c0 if (tty->device.setAttributes) (*tty->device.setAttributes)(tty->minor, &tty->termios); break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 109f85: 8b 45 e4 mov -0x1c(%ebp),%eax 109f88: e8 ff fb ff ff call 109b8c break; 109f8d: eb 6d jmp 109ffc <== ALWAYS TAKEN 109f8f: 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; 109f90: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED break; } rtems_semaphore_release (tty->osem); args->ioctl_return = sc; return sc; } 109f93: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 109f96: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109f99: 5b pop %ebx <== NOT EXECUTED 109f9a: 5e pop %esi <== NOT EXECUTED 109f9b: 5f pop %edi <== NOT EXECUTED 109f9c: c9 leave <== NOT EXECUTED 109f9d: c3 ret <== NOT EXECUTED 109f9e: 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) { 109fa0: 3d 7f 66 04 40 cmp $0x4004667f,%eax <== NOT EXECUTED 109fa5: 0f 84 ed 01 00 00 je 10a198 <== NOT EXECUTED 109fab: 0f 87 2f 02 00 00 ja 10a1e0 <== NOT EXECUTED 109fb1: 83 f8 05 cmp $0x5,%eax <== NOT EXECUTED 109fb4: 0f 84 aa 02 00 00 je 10a264 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 109fba: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 109fbd: 8b 82 cc 00 00 00 mov 0xcc(%edx),%eax <== NOT EXECUTED 109fc3: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 109fc6: 8b 80 78 4e 12 00 mov 0x124e78(%eax),%eax <== NOT EXECUTED 109fcc: 85 c0 test %eax,%eax <== NOT EXECUTED 109fce: 0f 84 ac 02 00 00 je 10a280 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 109fd4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 109fd7: 53 push %ebx <== NOT EXECUTED 109fd8: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 109fdb: ff d0 call *%eax <== NOT EXECUTED 109fdd: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED 109fe0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109fe3: eb 17 jmp 109ffc <== NOT EXECUTED 109fe5: 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; 109fe8: 8b 06 mov (%esi),%eax <== NOT EXECUTED 109fea: 8b 56 04 mov 0x4(%esi),%edx <== NOT EXECUTED 109fed: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 109ff0: 89 81 dc 00 00 00 mov %eax,0xdc(%ecx) <== NOT EXECUTED 109ff6: 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); 109ffc: 83 ec 0c sub $0xc,%esp 109fff: 8b 45 e4 mov -0x1c(%ebp),%eax 10a002: ff 70 18 pushl 0x18(%eax) 10a005: e8 52 16 00 00 call 10b65c args->ioctl_return = sc; 10a00a: 8b 55 e0 mov -0x20(%ebp),%edx 10a00d: 89 53 0c mov %edx,0xc(%ebx) return sc; 10a010: 83 c4 10 add $0x10,%esp } 10a013: 8b 45 e0 mov -0x20(%ebp),%eax 10a016: 8d 65 f4 lea -0xc(%ebp),%esp 10a019: 5b pop %ebx 10a01a: 5e pop %esi 10a01b: 5f pop %edi 10a01c: c9 leave 10a01d: c3 ret 10a01e: 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; 10a020: 8b 73 08 mov 0x8(%ebx),%esi 10a023: 8b 4d e4 mov -0x1c(%ebp),%ecx 10a026: 83 c1 30 add $0x30,%ecx 10a029: 89 4d dc mov %ecx,-0x24(%ebp) 10a02c: b9 09 00 00 00 mov $0x9,%ecx 10a031: 8b 7d dc mov -0x24(%ebp),%edi 10a034: 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) && 10a036: 8b 55 e4 mov -0x1c(%ebp),%edx 10a039: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax 10a03f: f6 c4 02 test $0x2,%ah 10a042: 74 44 je 10a088 10a044: f6 42 31 04 testb $0x4,0x31(%edx) 10a048: 75 3e jne 10a088 <== NEVER TAKEN !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 10a04a: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a050: 25 ef fd ff ff and $0xfffffdef,%eax <== NOT EXECUTED 10a055: 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) { 10a05b: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a061: a8 20 test $0x20,%al <== NOT EXECUTED 10a063: 74 23 je 10a088 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 10a065: 9c pushf <== NOT EXECUTED 10a066: fa cli <== NOT EXECUTED 10a067: 5e pop %esi <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 10a068: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a06e: 83 e0 df and $0xffffffdf,%eax <== NOT EXECUTED 10a071: 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) { 10a077: 8b ba 94 00 00 00 mov 0x94(%edx),%edi <== NOT EXECUTED 10a07d: 85 ff test %edi,%edi <== NOT EXECUTED 10a07f: 0f 85 ab 02 00 00 jne 10a330 <== 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); 10a085: 56 push %esi <== NOT EXECUTED 10a086: 9d popf <== NOT EXECUTED 10a087: 90 nop <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 10a088: 8b 4d e4 mov -0x1c(%ebp),%ecx 10a08b: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax 10a091: f6 c4 04 test $0x4,%ah 10a094: 74 24 je 10a0ba <== NEVER TAKEN 10a096: f6 41 31 10 testb $0x10,0x31(%ecx) <== NOT EXECUTED 10a09a: 75 1e jne 10a0ba <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 10a09c: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax <== NOT EXECUTED 10a0a2: 80 e4 fb and $0xfb,%ah <== NOT EXECUTED 10a0a5: 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); 10a0ab: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax <== NOT EXECUTED 10a0b1: 83 e0 fd and $0xfffffffd,%eax <== NOT EXECUTED 10a0b4: 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) && 10a0ba: 8b 55 e4 mov -0x1c(%ebp),%edx 10a0bd: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax 10a0c3: f6 c4 01 test $0x1,%ah 10a0c6: 74 4b je 10a113 <== NEVER TAKEN 10a0c8: 8b 7a 38 mov 0x38(%edx),%edi <== NOT EXECUTED 10a0cb: 85 ff test %edi,%edi <== NOT EXECUTED 10a0cd: 0f 88 09 02 00 00 js 10a2dc <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 10a0d3: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a0d9: 80 e4 fe and $0xfe,%ah <== NOT EXECUTED 10a0dc: 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) && 10a0e2: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a0e8: a8 04 test $0x4,%al <== NOT EXECUTED 10a0ea: 74 15 je 10a101 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { 10a0ec: 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) && 10a0f2: 85 c0 test %eax,%eax <== NOT EXECUTED 10a0f4: 74 0b je 10a101 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 10a0f6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a0f9: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED 10a0fc: ff d0 call *%eax <== NOT EXECUTED 10a0fe: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 10a101: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a104: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax <== NOT EXECUTED 10a10a: 83 e0 fb and $0xfffffffb,%eax <== NOT EXECUTED 10a10d: 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) { 10a113: 8b 45 e4 mov -0x1c(%ebp),%eax 10a116: 8b 70 38 mov 0x38(%eax),%esi 10a119: 85 f6 test %esi,%esi 10a11b: 0f 88 bb 01 00 00 js 10a2dc <== ALWAYS TAKEN tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 10a121: 8b 4d e4 mov -0x1c(%ebp),%ecx 10a124: 8b 41 30 mov 0x30(%ecx),%eax 10a127: f6 c4 10 test $0x10,%ah 10a12a: 74 0f je 10a13b <== NEVER TAKEN tty->flow_ctrl |= FL_MDXOF; 10a12c: 8b 91 b8 00 00 00 mov 0xb8(%ecx),%edx <== NOT EXECUTED 10a132: 80 ce 04 or $0x4,%dh <== NOT EXECUTED 10a135: 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) { 10a13b: f6 c4 04 test $0x4,%ah 10a13e: 74 12 je 10a152 <== ALWAYS TAKEN tty->flow_ctrl |= FL_MDXON; 10a140: 8b 55 e4 mov -0x1c(%ebp),%edx 10a143: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax 10a149: 80 cc 02 or $0x2,%ah 10a14c: 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) { 10a152: 8b 4d e4 mov -0x1c(%ebp),%ecx 10a155: f6 41 3c 02 testb $0x2,0x3c(%ecx) 10a159: 0f 84 2d 01 00 00 je 10a28c <== ALWAYS TAKEN tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 10a15f: c7 41 6c 00 00 00 00 movl $0x0,0x6c(%ecx) tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 10a166: c7 41 70 00 00 00 00 movl $0x0,0x70(%ecx) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 10a16d: c7 41 74 00 00 00 00 movl $0x0,0x74(%ecx) else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 10a174: 8b 55 e4 mov -0x1c(%ebp),%edx 10a177: 8b 82 a8 00 00 00 mov 0xa8(%edx),%eax 10a17d: 85 c0 test %eax,%eax 10a17f: 0f 84 77 fe ff ff je 109ffc <== ALWAYS TAKEN (*tty->device.setAttributes)(tty->minor, &tty->termios); 10a185: 83 ec 08 sub $0x8,%esp 10a188: ff 75 dc pushl -0x24(%ebp) 10a18b: ff 72 10 pushl 0x10(%edx) 10a18e: ff d0 call *%eax 10a190: 83 c4 10 add $0x10,%esp 10a193: e9 64 fe ff ff jmp 109ffc <== ALWAYS TAKEN *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 10a198: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10a19b: 8b 42 60 mov 0x60(%edx),%eax <== NOT EXECUTED 10a19e: 89 d1 mov %edx,%ecx <== NOT EXECUTED 10a1a0: 8b 52 5c mov 0x5c(%edx),%edx <== NOT EXECUTED if ( rawnc < 0 ) 10a1a3: 29 d0 sub %edx,%eax <== NOT EXECUTED 10a1a5: 0f 88 25 01 00 00 js 10a2d0 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 10a1ab: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED 10a1ae: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a1b1: 03 41 20 add 0x20(%ecx),%eax <== NOT EXECUTED 10a1b4: 2b 41 24 sub 0x24(%ecx),%eax <== NOT EXECUTED 10a1b7: 89 02 mov %eax,(%edx) <== NOT EXECUTED 10a1b9: e9 3e fe ff ff jmp 109ffc <== NOT EXECUTED 10a1be: 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) { 10a1c0: 48 dec %eax 10a1c1: 0f 85 f3 fd ff ff jne 109fba <== ALWAYS TAKEN sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 10a1c7: 8b 43 08 mov 0x8(%ebx),%eax 10a1ca: 8b 75 e4 mov -0x1c(%ebp),%esi 10a1cd: 83 c6 30 add $0x30,%esi 10a1d0: b9 09 00 00 00 mov $0x9,%ecx 10a1d5: 89 c7 mov %eax,%edi 10a1d7: f3 a5 rep movsl %ds:(%esi),%es:(%edi) break; 10a1d9: e9 1e fe ff ff jmp 109ffc <== ALWAYS TAKEN 10a1de: 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) { 10a1e0: 3d 1a 74 04 40 cmp $0x4004741a,%eax <== NOT EXECUTED 10a1e5: 74 69 je 10a250 <== NOT EXECUTED 10a1e7: 3d 1b 74 04 80 cmp $0x8004741b,%eax <== NOT EXECUTED 10a1ec: 0f 85 c8 fd ff ff jne 109fba <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 10a1f2: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10a1f5: 8b 82 cc 00 00 00 mov 0xcc(%edx),%eax <== NOT EXECUTED 10a1fb: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 10a1fe: 8b 80 64 4e 12 00 mov 0x124e64(%eax),%eax <== NOT EXECUTED 10a204: 85 c0 test %eax,%eax <== NOT EXECUTED 10a206: 74 0c je 10a214 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 10a208: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a20b: 52 push %edx <== NOT EXECUTED 10a20c: ff d0 call *%eax <== NOT EXECUTED 10a20e: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED 10a211: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 10a214: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED 10a217: 8b 00 mov (%eax),%eax <== NOT EXECUTED 10a219: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a21c: 89 81 cc 00 00 00 mov %eax,0xcc(%ecx) <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ 10a222: c7 81 d0 00 00 00 00 movl $0x0,0xd0(%ecx) <== NOT EXECUTED 10a229: 00 00 00 <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 10a22c: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 10a22f: 8b 80 60 4e 12 00 mov 0x124e60(%eax),%eax <== NOT EXECUTED 10a235: 85 c0 test %eax,%eax <== NOT EXECUTED 10a237: 0f 84 bf fd ff ff je 109ffc <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 10a23d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a240: 51 push %ecx <== NOT EXECUTED 10a241: ff d0 call *%eax <== NOT EXECUTED 10a243: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED 10a246: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a249: e9 ae fd ff ff jmp 109ffc <== NOT EXECUTED 10a24e: 66 90 xchg %ax,%ax <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 10a250: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED 10a253: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a256: 8b 91 cc 00 00 00 mov 0xcc(%ecx),%edx <== NOT EXECUTED 10a25c: 89 10 mov %edx,(%eax) <== NOT EXECUTED break; 10a25e: e9 99 fd ff ff jmp 109ffc <== NOT EXECUTED 10a263: 90 nop <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 10a264: 8b 06 mov (%esi),%eax <== NOT EXECUTED 10a266: 8b 56 04 mov 0x4(%esi),%edx <== NOT EXECUTED 10a269: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a26c: 89 81 d4 00 00 00 mov %eax,0xd4(%ecx) <== NOT EXECUTED 10a272: 89 91 d8 00 00 00 mov %edx,0xd8(%ecx) <== NOT EXECUTED break; 10a278: e9 7f fd ff ff jmp 109ffc <== NOT EXECUTED 10a27d: 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) { 10a280: c7 45 e0 0a 00 00 00 movl $0xa,-0x20(%ebp) <== NOT EXECUTED 10a287: e9 70 fd ff ff jmp 109ffc <== 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; 10a28c: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 10a28f: 0f b6 70 46 movzbl 0x46(%eax),%esi <== NOT EXECUTED 10a293: e8 b8 0b 00 00 call 10ae50 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 10a298: 0f af c6 imul %esi,%eax <== NOT EXECUTED 10a29b: ba cd cc cc cc mov $0xcccccccd,%edx <== NOT EXECUTED 10a2a0: f7 e2 mul %edx <== NOT EXECUTED 10a2a2: c1 ea 03 shr $0x3,%edx <== NOT EXECUTED 10a2a5: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a2a8: 89 51 54 mov %edx,0x54(%ecx) <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 10a2ab: 80 79 46 00 cmpb $0x0,0x46(%ecx) <== NOT EXECUTED 10a2af: 74 42 je 10a2f3 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 10a2b1: c7 41 6c 00 00 00 00 movl $0x0,0x6c(%ecx) <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; 10a2b8: 89 51 70 mov %edx,0x70(%ecx) <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) 10a2bb: 80 79 47 00 cmpb $0x0,0x47(%ecx) <== NOT EXECUTED 10a2bf: 74 55 je 10a316 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 10a2c1: c7 41 74 00 00 00 00 movl $0x0,0x74(%ecx) <== NOT EXECUTED 10a2c8: e9 a7 fe ff ff jmp 10a174 <== NOT EXECUTED 10a2cd: 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; 10a2d0: 8b 51 64 mov 0x64(%ecx),%edx <== NOT EXECUTED 10a2d3: 01 d0 add %edx,%eax <== NOT EXECUTED 10a2d5: e9 d1 fe ff ff jmp 10a1ab <== NOT EXECUTED 10a2da: 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; 10a2dc: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10a2df: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a2e5: 80 cc 01 or $0x1,%ah <== NOT EXECUTED 10a2e8: 89 82 b8 00 00 00 mov %eax,0xb8(%edx) <== NOT EXECUTED 10a2ee: e9 2e fe ff ff jmp 10a121 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { 10a2f3: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10a2f6: 80 7a 47 00 cmpb $0x0,0x47(%edx) <== NOT EXECUTED 10a2fa: 74 25 je 10a321 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 10a2fc: c7 42 6c 00 00 00 00 movl $0x0,0x6c(%edx) <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 10a303: c7 42 70 00 00 00 00 movl $0x0,0x70(%edx) <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 10a30a: c7 42 74 00 00 00 00 movl $0x0,0x74(%edx) <== NOT EXECUTED 10a311: e9 5e fe ff ff jmp 10a174 <== 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; 10a316: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 10a319: 89 50 74 mov %edx,0x74(%eax) <== NOT EXECUTED 10a31c: e9 53 fe ff ff jmp 10a174 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 10a321: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a324: c7 41 6c 01 00 00 00 movl $0x1,0x6c(%ecx) <== NOT EXECUTED 10a32b: e9 44 fe ff ff jmp 10a174 <== 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); 10a330: 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, 10a336: 51 push %ecx <== NOT EXECUTED 10a337: 6a 01 push $0x1 <== NOT EXECUTED 10a339: 03 42 7c add 0x7c(%edx),%eax <== NOT EXECUTED 10a33c: 50 push %eax <== NOT EXECUTED 10a33d: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED 10a340: ff 92 a4 00 00 00 call *0xa4(%edx) <== NOT EXECUTED 10a346: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a349: e9 37 fd ff ff jmp 10a085 <== NOT EXECUTED 0010a2c4 : #include int rtems_termios_number_to_baud( int32_t baud ) { 10a2c4: 55 push %ebp 10a2c5: 89 e5 mov %esp,%ebp 10a2c7: 8b 45 08 mov 0x8(%ebp),%eax int termios_baud; switch (baud) { 10a2ca: 3d b0 04 00 00 cmp $0x4b0,%eax 10a2cf: 0f 84 47 01 00 00 je 10a41c 10a2d5: 7e 3d jle 10a314 10a2d7: 3d 00 4b 00 00 cmp $0x4b00,%eax 10a2dc: 0f 84 4a 01 00 00 je 10a42c 10a2e2: 7e 64 jle 10a348 10a2e4: 3d 00 c2 01 00 cmp $0x1c200,%eax 10a2e9: 0f 84 15 01 00 00 je 10a404 10a2ef: 0f 8e af 00 00 00 jle 10a3a4 10a2f5: 3d 00 84 03 00 cmp $0x38400,%eax 10a2fa: 0f 84 fc 00 00 00 je 10a3fc 10a300: 3d 00 08 07 00 cmp $0x70800,%eax 10a305: 0f 85 89 00 00 00 jne 10a394 <== 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; 10a30b: b8 04 10 00 00 mov $0x1004,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a310: c9 leave 10a311: c3 ret 10a312: 66 90 xchg %ax,%ax <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 10a314: 3d 86 00 00 00 cmp $0x86,%eax 10a319: 0f 84 05 01 00 00 je 10a424 10a31f: 7e 4f jle 10a370 10a321: 3d c8 00 00 00 cmp $0xc8,%eax 10a326: 0f 84 b8 00 00 00 je 10a3e4 10a32c: 7e 5e jle 10a38c 10a32e: 3d 2c 01 00 00 cmp $0x12c,%eax 10a333: 0f 84 9b 00 00 00 je 10a3d4 10a339: 3d 58 02 00 00 cmp $0x258,%eax 10a33e: 75 54 jne 10a394 <== 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; 10a340: b8 08 00 00 00 mov $0x8,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a345: c9 leave 10a346: c3 ret 10a347: 90 nop <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 10a348: 3d 60 09 00 00 cmp $0x960,%eax 10a34d: 0f 84 c1 00 00 00 je 10a414 10a353: 7e 67 jle 10a3bc 10a355: 3d c0 12 00 00 cmp $0x12c0,%eax 10a35a: 0f 84 8c 00 00 00 je 10a3ec 10a360: 3d 80 25 00 00 cmp $0x2580,%eax 10a365: 75 2d jne 10a394 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; 10a367: b8 0d 00 00 00 mov $0xd,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a36c: c9 leave 10a36d: c3 ret 10a36e: 66 90 xchg %ax,%ax <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 10a370: 83 f8 32 cmp $0x32,%eax 10a373: 74 7f je 10a3f4 10a375: 7e 25 jle 10a39c 10a377: 83 f8 4b cmp $0x4b,%eax 10a37a: 0f 84 8c 00 00 00 je 10a40c 10a380: 83 f8 6e cmp $0x6e,%eax 10a383: 75 0f jne 10a394 <== ALWAYS TAKEN case 0: termios_baud = B0; break; case 50: termios_baud = B50; break; case 75: termios_baud = B75; break; 10a385: b8 03 00 00 00 mov $0x3,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a38a: c9 leave 10a38b: c3 ret int32_t baud ) { int termios_baud; switch (baud) { 10a38c: 3d 96 00 00 00 cmp $0x96,%eax 10a391: 74 39 je 10a3cc <== NEVER TAKEN 10a393: 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; 10a394: b8 ff ff ff ff mov $0xffffffff,%eax default: termios_baud = -1; break; } return termios_baud; } 10a399: c9 leave 10a39a: c3 ret 10a39b: 90 nop <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 10a39c: 85 c0 test %eax,%eax 10a39e: 75 f4 jne 10a394 10a3a0: 31 c0 xor %eax,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a3a2: c9 leave 10a3a3: c3 ret int32_t baud ) { int termios_baud; switch (baud) { 10a3a4: 3d 00 96 00 00 cmp $0x9600,%eax 10a3a9: 74 31 je 10a3dc 10a3ab: 3d 00 e1 00 00 cmp $0xe100,%eax 10a3b0: 75 e2 jne 10a394 <== 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; 10a3b2: b8 01 10 00 00 mov $0x1001,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a3b7: c9 leave 10a3b8: c3 ret 10a3b9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 10a3bc: 3d 08 07 00 00 cmp $0x708,%eax 10a3c1: 75 d1 jne 10a394 <== 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; 10a3c3: b8 0a 00 00 00 mov $0xa,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a3c8: c9 leave 10a3c9: c3 ret 10a3ca: 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; 10a3cc: b8 05 00 00 00 mov $0x5,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a3d1: c9 leave 10a3d2: c3 ret 10a3d3: 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; 10a3d4: b8 07 00 00 00 mov $0x7,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a3d9: c9 leave 10a3da: c3 ret 10a3db: 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; 10a3dc: b8 0f 00 00 00 mov $0xf,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a3e1: c9 leave 10a3e2: c3 ret 10a3e3: 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; 10a3e4: b8 06 00 00 00 mov $0x6,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a3e9: c9 leave 10a3ea: c3 ret 10a3eb: 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; 10a3ec: b8 0c 00 00 00 mov $0xc,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a3f1: c9 leave 10a3f2: c3 ret 10a3f3: 90 nop <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 10a3f4: b8 01 00 00 00 mov $0x1,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a3f9: c9 leave 10a3fa: c3 ret 10a3fb: 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; 10a3fc: b8 03 10 00 00 mov $0x1003,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a401: c9 leave 10a402: c3 ret 10a403: 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; 10a404: b8 02 10 00 00 mov $0x1002,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a409: c9 leave 10a40a: c3 ret 10a40b: 90 nop <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 10a40c: b8 02 00 00 00 mov $0x2,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a411: c9 leave 10a412: c3 ret 10a413: 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; 10a414: b8 0b 00 00 00 mov $0xb,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a419: c9 leave 10a41a: c3 ret 10a41b: 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; 10a41c: b8 09 00 00 00 mov $0x9,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a421: c9 leave 10a422: c3 ret 10a423: 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; 10a424: b8 04 00 00 00 mov $0x4,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a429: c9 leave 10a42a: c3 ret 10a42b: 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; 10a42c: b8 0e 00 00 00 mov $0xe,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a431: c9 leave 10a432: c3 ret 0010a524 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 10a524: 55 push %ebp 10a525: 89 e5 mov %esp,%ebp 10a527: 57 push %edi 10a528: 56 push %esi 10a529: 53 push %ebx 10a52a: 83 ec 20 sub $0x20,%esp 10a52d: 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, 10a530: 6a 00 push $0x0 10a532: 6a 00 push $0x0 10a534: ff 35 f8 51 12 00 pushl 0x1251f8 10a53a: 89 55 dc mov %edx,-0x24(%ebp) 10a53d: e8 1e 10 00 00 call 10b560 10a542: 89 45 e4 mov %eax,-0x1c(%ebp) RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 10a545: 83 c4 10 add $0x10,%esp 10a548: 85 c0 test %eax,%eax 10a54a: 8b 55 dc mov -0x24(%ebp),%edx 10a54d: 75 6f jne 10a5be <== ALWAYS TAKEN return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 10a54f: 8b 1d 00 52 12 00 mov 0x125200,%ebx 10a555: 85 db test %ebx,%ebx 10a557: 0f 84 a7 00 00 00 je 10a604 10a55d: 8b 45 0c mov 0xc(%ebp),%eax 10a560: eb 0c jmp 10a56e <== ALWAYS TAKEN 10a562: 66 90 xchg %ax,%ax <== NOT EXECUTED 10a564: 8b 1b mov (%ebx),%ebx 10a566: 85 db test %ebx,%ebx 10a568: 0f 84 96 00 00 00 je 10a604 <== NEVER TAKEN if ((tty->major == major) && (tty->minor == minor)) 10a56e: 39 53 0c cmp %edx,0xc(%ebx) 10a571: 75 f1 jne 10a564 10a573: 39 43 10 cmp %eax,0x10(%ebx) 10a576: 75 ec jne 10a564 <== ALWAYS TAKEN */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 10a578: 8b 4d 10 mov 0x10(%ebp),%ecx 10a57b: 8b 01 mov (%ecx),%eax 10a57d: 89 58 34 mov %ebx,0x34(%eax) if (!tty->refcount++) { 10a580: 8b 43 08 mov 0x8(%ebx),%eax 10a583: 8d 48 01 lea 0x1(%eax),%ecx 10a586: 89 4b 08 mov %ecx,0x8(%ebx) 10a589: 85 c0 test %eax,%eax 10a58b: 75 20 jne 10a5ad if (tty->device.firstOpen) 10a58d: 8b 83 98 00 00 00 mov 0x98(%ebx),%eax 10a593: 85 c0 test %eax,%eax 10a595: 74 0d je 10a5a4 (*tty->device.firstOpen)(major, minor, arg); 10a597: 56 push %esi 10a598: ff 75 10 pushl 0x10(%ebp) 10a59b: ff 75 0c pushl 0xc(%ebp) 10a59e: 52 push %edx 10a59f: ff d0 call *%eax 10a5a1: 83 c4 10 add $0x10,%esp /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 10a5a4: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx) 10a5ab: 74 1c je 10a5c9 <== ALWAYS TAKEN (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); 10a5ad: 83 ec 0c sub $0xc,%esp 10a5b0: ff 35 f8 51 12 00 pushl 0x1251f8 10a5b6: e8 a1 10 00 00 call 10b65c return RTEMS_SUCCESSFUL; 10a5bb: 83 c4 10 add $0x10,%esp } 10a5be: 8b 45 e4 mov -0x1c(%ebp),%eax 10a5c1: 8d 65 f4 lea -0xc(%ebp),%esp 10a5c4: 5b pop %ebx 10a5c5: 5e pop %esi 10a5c6: 5f pop %edi 10a5c7: c9 leave 10a5c8: 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, 10a5c9: 51 push %ecx <== NOT EXECUTED 10a5ca: 53 push %ebx <== NOT EXECUTED 10a5cb: 68 38 aa 10 00 push $0x10aa38 <== NOT EXECUTED 10a5d0: ff b3 c4 00 00 00 pushl 0xc4(%ebx) <== NOT EXECUTED 10a5d6: e8 c5 13 00 00 call 10b9a0 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 10a5db: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a5de: 85 c0 test %eax,%eax <== NOT EXECUTED 10a5e0: 0f 85 3e 03 00 00 jne 10a924 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 10a5e6: 52 push %edx <== NOT EXECUTED 10a5e7: 53 push %ebx <== NOT EXECUTED 10a5e8: 68 cc a9 10 00 push $0x10a9cc <== NOT EXECUTED 10a5ed: ff b3 c8 00 00 00 pushl 0xc8(%ebx) <== NOT EXECUTED 10a5f3: e8 a8 13 00 00 call 10b9a0 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 10a5f8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a5fb: 85 c0 test %eax,%eax <== NOT EXECUTED 10a5fd: 74 ae je 10a5ad <== NOT EXECUTED 10a5ff: e9 20 03 00 00 jmp 10a924 <== NOT EXECUTED static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 10a604: 83 ec 08 sub $0x8,%esp 10a607: 68 e8 00 00 00 push $0xe8 10a60c: 6a 01 push $0x1 10a60e: 89 55 dc mov %edx,-0x24(%ebp) 10a611: e8 fe 50 00 00 call 10f714 10a616: 89 45 e0 mov %eax,-0x20(%ebp) 10a619: 89 c3 mov %eax,%ebx if (tty == NULL) { 10a61b: 83 c4 10 add $0x10,%esp 10a61e: 85 c0 test %eax,%eax 10a620: 8b 55 dc mov -0x24(%ebp),%edx 10a623: 0f 84 79 02 00 00 je 10a8a2 <== ALWAYS TAKEN return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 10a629: a1 ec 2f 12 00 mov 0x122fec,%eax 10a62e: 8b 4d e0 mov -0x20(%ebp),%ecx 10a631: 89 41 64 mov %eax,0x64(%ecx) tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 10a634: 8b 41 64 mov 0x64(%ecx),%eax 10a637: 83 ec 0c sub $0xc,%esp 10a63a: 50 push %eax 10a63b: 89 55 dc mov %edx,-0x24(%ebp) 10a63e: e8 e9 db ff ff call 10822c 10a643: 8b 75 e0 mov -0x20(%ebp),%esi 10a646: 89 46 58 mov %eax,0x58(%esi) if (tty->rawInBuf.theBuf == NULL) { 10a649: 83 c4 10 add $0x10,%esp 10a64c: 85 c0 test %eax,%eax 10a64e: 8b 55 dc mov -0x24(%ebp),%edx 10a651: 0f 84 68 02 00 00 je 10a8bf <== ALWAYS TAKEN return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 10a657: a1 f0 2f 12 00 mov 0x122ff0,%eax 10a65c: 8b 4d e0 mov -0x20(%ebp),%ecx 10a65f: 89 81 88 00 00 00 mov %eax,0x88(%ecx) tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 10a665: 8b 81 88 00 00 00 mov 0x88(%ecx),%eax 10a66b: 83 ec 0c sub $0xc,%esp 10a66e: 50 push %eax 10a66f: 89 55 dc mov %edx,-0x24(%ebp) 10a672: e8 b5 db ff ff call 10822c 10a677: 8b 75 e0 mov -0x20(%ebp),%esi 10a67a: 89 46 7c mov %eax,0x7c(%esi) if (tty->rawOutBuf.theBuf == NULL) { 10a67d: 83 c4 10 add $0x10,%esp 10a680: 85 c0 test %eax,%eax 10a682: 8b 55 dc mov -0x24(%ebp),%edx 10a685: 0f 84 58 02 00 00 je 10a8e3 <== ALWAYS TAKEN return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 10a68b: 83 ec 0c sub $0xc,%esp 10a68e: ff 35 e8 2f 12 00 pushl 0x122fe8 10a694: 89 55 dc mov %edx,-0x24(%ebp) 10a697: e8 90 db ff ff call 10822c 10a69c: 8b 4d e0 mov -0x20(%ebp),%ecx 10a69f: 89 41 1c mov %eax,0x1c(%ecx) if (tty->cbuf == NULL) { 10a6a2: 83 c4 10 add $0x10,%esp 10a6a5: 85 c0 test %eax,%eax 10a6a7: 8b 55 dc mov -0x24(%ebp),%edx 10a6aa: 0f 84 7d 02 00 00 je 10a92d <== ALWAYS TAKEN return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 10a6b0: 8b 45 e0 mov -0x20(%ebp),%eax 10a6b3: c7 80 d4 00 00 00 00 movl $0x0,0xd4(%eax) 10a6ba: 00 00 00 tty->tty_snd.sw_arg = NULL; 10a6bd: c7 80 d8 00 00 00 00 movl $0x0,0xd8(%eax) 10a6c4: 00 00 00 tty->tty_rcv.sw_pfn = NULL; 10a6c7: c7 80 dc 00 00 00 00 movl $0x0,0xdc(%eax) 10a6ce: 00 00 00 tty->tty_rcv.sw_arg = NULL; 10a6d1: c7 80 e0 00 00 00 00 movl $0x0,0xe0(%eax) 10a6d8: 00 00 00 tty->tty_rcvwakeup = 0; 10a6db: c7 80 e4 00 00 00 00 movl $0x0,0xe4(%eax) 10a6e2: 00 00 00 /* * link tty */ tty->forw = rtems_termios_ttyHead; 10a6e5: a1 00 52 12 00 mov 0x125200,%eax 10a6ea: 8b 4d e0 mov -0x20(%ebp),%ecx 10a6ed: 89 01 mov %eax,(%ecx) tty->back = NULL; 10a6ef: c7 41 04 00 00 00 00 movl $0x0,0x4(%ecx) if (rtems_termios_ttyHead != NULL) 10a6f6: 85 c0 test %eax,%eax 10a6f8: 74 03 je 10a6fd rtems_termios_ttyHead->back = tty; 10a6fa: 89 48 04 mov %ecx,0x4(%eax) rtems_termios_ttyHead = tty; 10a6fd: 8b 75 e0 mov -0x20(%ebp),%esi 10a700: 89 35 00 52 12 00 mov %esi,0x125200 if (rtems_termios_ttyTail == NULL) 10a706: 8b 3d fc 51 12 00 mov 0x1251fc,%edi 10a70c: 85 ff test %edi,%edi 10a70e: 0f 84 ac 02 00 00 je 10a9c0 rtems_termios_ttyTail = tty; tty->minor = minor; 10a714: 8b 4d 0c mov 0xc(%ebp),%ecx 10a717: 8b 45 e0 mov -0x20(%ebp),%eax 10a71a: 89 48 10 mov %ecx,0x10(%eax) tty->major = major; 10a71d: 89 50 0c mov %edx,0xc(%eax) /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 10a720: 83 ec 0c sub $0xc,%esp 10a723: 83 c0 14 add $0x14,%eax 10a726: 50 push %eax 10a727: 6a 00 push $0x0 10a729: 6a 54 push $0x54 10a72b: 6a 01 push $0x1 10a72d: 0f be 05 f4 2f 12 00 movsbl 0x122ff4,%eax 10a734: 0d 00 69 52 54 or $0x54526900,%eax 10a739: 50 push %eax 10a73a: 89 55 dc mov %edx,-0x24(%ebp) 10a73d: e8 a6 0b 00 00 call 10b2e8 <== ALWAYS TAKEN 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) 10a742: 83 c4 20 add $0x20,%esp 10a745: 85 c0 test %eax,%eax 10a747: 8b 55 dc mov -0x24(%ebp),%edx 10a74a: 0f 85 d4 01 00 00 jne 10a924 <== ALWAYS TAKEN rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 10a750: 83 ec 0c sub $0xc,%esp 10a753: 8b 45 e0 mov -0x20(%ebp),%eax 10a756: 83 c0 18 add $0x18,%eax 10a759: 50 push %eax 10a75a: 6a 00 push $0x0 10a75c: 6a 54 push $0x54 10a75e: 6a 01 push $0x1 10a760: 0f be 05 f4 2f 12 00 movsbl 0x122ff4,%eax 10a767: 0d 00 6f 52 54 or $0x54526f00,%eax 10a76c: 50 push %eax 10a76d: 89 55 dc mov %edx,-0x24(%ebp) 10a770: e8 73 0b 00 00 call 10b2e8 <== ALWAYS TAKEN 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) 10a775: 83 c4 20 add $0x20,%esp 10a778: 85 c0 test %eax,%eax 10a77a: 8b 55 dc mov -0x24(%ebp),%edx 10a77d: 0f 85 a1 01 00 00 jne 10a924 <== ALWAYS TAKEN rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 10a783: 83 ec 0c sub $0xc,%esp 10a786: 8b 45 e0 mov -0x20(%ebp),%eax 10a789: 05 8c 00 00 00 add $0x8c,%eax 10a78e: 50 push %eax 10a78f: 6a 00 push $0x0 10a791: 6a 20 push $0x20 10a793: 6a 00 push $0x0 10a795: 0f be 05 f4 2f 12 00 movsbl 0x122ff4,%eax 10a79c: 0d 00 78 52 54 or $0x54527800,%eax 10a7a1: 50 push %eax 10a7a2: 89 55 dc mov %edx,-0x24(%ebp) 10a7a5: e8 3e 0b 00 00 call 10b2e8 <== ALWAYS TAKEN rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 10a7aa: 83 c4 20 add $0x20,%esp 10a7ad: 85 c0 test %eax,%eax 10a7af: 8b 55 dc mov -0x24(%ebp),%edx 10a7b2: 0f 85 6c 01 00 00 jne 10a924 <== ALWAYS TAKEN rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; 10a7b8: 8b 75 e0 mov -0x20(%ebp),%esi 10a7bb: c7 86 94 00 00 00 00 movl $0x0,0x94(%esi) 10a7c2: 00 00 00 /* * Set callbacks */ tty->device = *callbacks; 10a7c5: 89 f7 mov %esi,%edi 10a7c7: 81 c7 98 00 00 00 add $0x98,%edi 10a7cd: b9 08 00 00 00 mov $0x8,%ecx 10a7d2: 8b 75 14 mov 0x14(%ebp),%esi 10a7d5: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 10a7d7: 8b 45 e0 mov -0x20(%ebp),%eax 10a7da: 83 b8 b4 00 00 00 02 cmpl $0x2,0xb4(%eax) 10a7e1: 0f 84 63 01 00 00 je 10a94a <== ALWAYS TAKEN &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 10a7e7: 8b 4d e0 mov -0x20(%ebp),%ecx 10a7ea: 8b b9 a0 00 00 00 mov 0xa0(%ecx),%edi 10a7f0: 85 ff test %edi,%edi 10a7f2: 0f 84 f9 00 00 00 je 10a8f1 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ 10a7f8: 83 b9 b4 00 00 00 02 cmpl $0x2,0xb4(%ecx) 10a7ff: 0f 84 ec 00 00 00 je 10a8f1 <== ALWAYS TAKEN } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 10a805: 8b 75 e0 mov -0x20(%ebp),%esi 10a808: c7 46 30 02 25 00 00 movl $0x2502,0x30(%esi) tty->termios.c_oflag = OPOST | ONLCR | XTABS; 10a80f: c7 46 34 05 18 00 00 movl $0x1805,0x34(%esi) tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 10a816: c7 46 38 bd 08 00 00 movl $0x8bd,0x38(%esi) tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 10a81d: c7 46 3c 3b 82 00 00 movl $0x823b,0x3c(%esi) tty->termios.c_cc[VINTR] = '\003'; 10a824: c6 46 41 03 movb $0x3,0x41(%esi) tty->termios.c_cc[VQUIT] = '\034'; 10a828: c6 46 42 1c movb $0x1c,0x42(%esi) tty->termios.c_cc[VERASE] = '\177'; 10a82c: c6 46 43 7f movb $0x7f,0x43(%esi) tty->termios.c_cc[VKILL] = '\025'; 10a830: c6 46 44 15 movb $0x15,0x44(%esi) tty->termios.c_cc[VEOF] = '\004'; 10a834: c6 46 45 04 movb $0x4,0x45(%esi) tty->termios.c_cc[VEOL] = '\000'; 10a838: c6 46 4c 00 movb $0x0,0x4c(%esi) tty->termios.c_cc[VEOL2] = '\000'; 10a83c: c6 46 51 00 movb $0x0,0x51(%esi) tty->termios.c_cc[VSTART] = '\021'; 10a840: c6 46 49 11 movb $0x11,0x49(%esi) tty->termios.c_cc[VSTOP] = '\023'; 10a844: c6 46 4a 13 movb $0x13,0x4a(%esi) tty->termios.c_cc[VSUSP] = '\032'; 10a848: c6 46 4b 1a movb $0x1a,0x4b(%esi) tty->termios.c_cc[VREPRINT] = '\022'; 10a84c: c6 46 4d 12 movb $0x12,0x4d(%esi) tty->termios.c_cc[VDISCARD] = '\017'; 10a850: c6 46 4e 0f movb $0xf,0x4e(%esi) tty->termios.c_cc[VWERASE] = '\027'; 10a854: c6 46 4f 17 movb $0x17,0x4f(%esi) tty->termios.c_cc[VLNEXT] = '\026'; 10a858: c6 46 50 16 movb $0x16,0x50(%esi) /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; 10a85c: c7 86 b8 00 00 00 00 movl $0x0,0xb8(%esi) 10a863: 00 00 00 /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 10a866: 8b 46 64 mov 0x64(%esi),%eax 10a869: d1 e8 shr %eax 10a86b: 89 86 bc 00 00 00 mov %eax,0xbc(%esi) tty->highwater = tty->rawInBuf.Size * 3/4; 10a871: 8b 46 64 mov 0x64(%esi),%eax 10a874: 8d 04 40 lea (%eax,%eax,2),%eax 10a877: c1 e8 02 shr $0x2,%eax 10a87a: 89 86 c0 00 00 00 mov %eax,0xc0(%esi) /* * Bump name characer */ if (c++ == 'z') 10a880: a0 f4 2f 12 00 mov 0x122ff4,%al 10a885: 8d 48 01 lea 0x1(%eax),%ecx 10a888: 88 0d f4 2f 12 00 mov %cl,0x122ff4 10a88e: 3c 7a cmp $0x7a,%al 10a890: 0f 85 e2 fc ff ff jne 10a578 <== NEVER TAKEN c = 'a'; 10a896: c6 05 f4 2f 12 00 61 movb $0x61,0x122ff4 <== NOT EXECUTED 10a89d: e9 d6 fc ff ff jmp 10a578 <== NOT EXECUTED /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); if (tty == NULL) { rtems_semaphore_release (rtems_termios_ttyMutex); 10a8a2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a8a5: ff 35 f8 51 12 00 pushl 0x1251f8 <== NOT EXECUTED 10a8ab: e8 ac 0d 00 00 call 10b65c <== NOT EXECUTED 10a8b0: c7 45 e4 1a 00 00 00 movl $0x1a,-0x1c(%ebp) <== NOT EXECUTED return RTEMS_NO_MEMORY; 10a8b7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a8ba: e9 ff fc ff ff jmp 10a5be <== 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); 10a8bf: 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); 10a8c2: 56 push %esi <== NOT EXECUTED 10a8c3: e8 14 d7 ff ff call 107fdc <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 10a8c8: 59 pop %ecx <== NOT EXECUTED 10a8c9: ff 35 f8 51 12 00 pushl 0x1251f8 <== NOT EXECUTED 10a8cf: e8 88 0d 00 00 call 10b65c <== NOT EXECUTED 10a8d4: c7 45 e4 1a 00 00 00 movl $0x1a,-0x1c(%ebp) <== NOT EXECUTED return RTEMS_NO_MEMORY; 10a8db: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a8de: e9 db fc ff ff jmp 10a5be <== 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)); 10a8e3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a8e6: ff 76 58 pushl 0x58(%esi) <== NOT EXECUTED 10a8e9: e8 ee d6 ff ff call 107fdc <== NOT EXECUTED free(tty); 10a8ee: 5b pop %ebx <== NOT EXECUTED 10a8ef: eb d1 jmp 10a8c2 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( 10a8f1: 83 ec 0c sub $0xc,%esp 10a8f4: 8b 45 e0 mov -0x20(%ebp),%eax 10a8f7: 83 c0 68 add $0x68,%eax 10a8fa: 50 push %eax 10a8fb: 6a 00 push $0x0 10a8fd: 6a 24 push $0x24 10a8ff: 6a 00 push $0x0 10a901: 0f be 05 f4 2f 12 00 movsbl 0x122ff4,%eax 10a908: 0d 00 72 52 54 or $0x54527200,%eax 10a90d: 50 push %eax 10a90e: 89 55 dc mov %edx,-0x24(%ebp) 10a911: e8 d2 09 00 00 call 10b2e8 <== ALWAYS TAKEN rtems_build_name ('T', 'R', 'r', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->rawInBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 10a916: 83 c4 20 add $0x20,%esp 10a919: 85 c0 test %eax,%eax 10a91b: 8b 55 dc mov -0x24(%ebp),%edx 10a91e: 0f 84 e1 fe ff ff je 10a805 <== NEVER TAKEN sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 10a924: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a927: 50 push %eax <== NOT EXECUTED 10a928: e8 6b 12 00 00 call 10bb98 <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); 10a92d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a930: ff 71 7c pushl 0x7c(%ecx) <== NOT EXECUTED 10a933: e8 a4 d6 ff ff call 107fdc <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 10a938: 5a pop %edx <== NOT EXECUTED 10a939: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED 10a93c: ff 76 58 pushl 0x58(%esi) <== NOT EXECUTED 10a93f: e8 98 d6 ff ff call 107fdc <== NOT EXECUTED free(tty); 10a944: 58 pop %eax <== NOT EXECUTED 10a945: e9 78 ff ff ff jmp 10a8c2 <== NOT EXECUTED /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_create ( 10a94a: 51 push %ecx <== NOT EXECUTED 10a94b: 51 push %ecx <== NOT EXECUTED 10a94c: 05 c8 00 00 00 add $0xc8,%eax <== NOT EXECUTED 10a951: 50 push %eax <== NOT EXECUTED 10a952: 6a 00 push $0x0 <== NOT EXECUTED 10a954: 68 00 05 00 00 push $0x500 <== NOT EXECUTED 10a959: 68 00 04 00 00 push $0x400 <== NOT EXECUTED 10a95e: 6a 0a push $0xa <== NOT EXECUTED 10a960: 0f be 05 f4 2f 12 00 movsbl 0x122ff4,%eax <== NOT EXECUTED 10a967: 0d 00 54 78 54 or $0x54785400,%eax <== NOT EXECUTED 10a96c: 50 push %eax <== NOT EXECUTED 10a96d: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED 10a970: e8 87 0d 00 00 call 10b6fc <== 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) 10a975: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10a978: 85 c0 test %eax,%eax <== NOT EXECUTED 10a97a: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED 10a97d: 75 a5 jne 10a924 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 10a97f: 50 push %eax <== NOT EXECUTED 10a980: 50 push %eax <== NOT EXECUTED 10a981: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10a984: 05 c4 00 00 00 add $0xc4,%eax <== NOT EXECUTED 10a989: 50 push %eax <== NOT EXECUTED 10a98a: 6a 00 push $0x0 <== NOT EXECUTED 10a98c: 68 00 05 00 00 push $0x500 <== NOT EXECUTED 10a991: 68 00 04 00 00 push $0x400 <== NOT EXECUTED 10a996: 6a 09 push $0x9 <== NOT EXECUTED 10a998: 0f be 05 f4 2f 12 00 movsbl 0x122ff4,%eax <== NOT EXECUTED 10a99f: 0d 00 54 78 52 or $0x52785400,%eax <== NOT EXECUTED 10a9a4: 50 push %eax <== NOT EXECUTED 10a9a5: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED 10a9a8: e8 4f 0d 00 00 call 10b6fc <== 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) 10a9ad: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10a9b0: 85 c0 test %eax,%eax <== NOT EXECUTED 10a9b2: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED 10a9b5: 0f 84 2c fe ff ff je 10a7e7 <== NOT EXECUTED 10a9bb: e9 64 ff ff ff jmp 10a924 <== 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; 10a9c0: 89 35 fc 51 12 00 mov %esi,0x1251fc 10a9c6: e9 49 fd ff ff jmp 10a714 <== ALWAYS TAKEN 00109490 : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 109490: 55 push %ebp 109491: 89 e5 mov %esp,%ebp 109493: 57 push %edi 109494: 56 push %esi 109495: 53 push %ebx 109496: 83 ec 1c sub $0x1c,%esp 109499: 8b 45 08 mov 0x8(%ebp),%eax 10949c: 8b 55 0c mov 0xc(%ebp),%edx 10949f: 89 55 e4 mov %edx,-0x1c(%ebp) 1094a2: 8b 5d 10 mov 0x10(%ebp),%ebx const unsigned char *buf = _buf; 1094a5: 89 c6 mov %eax,%esi unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 1094a7: 8b bb b4 00 00 00 mov 0xb4(%ebx),%edi 1094ad: 85 ff test %edi,%edi 1094af: 0f 84 eb 00 00 00 je 1095a0 <== ALWAYS TAKEN (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; 1094b5: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax 1094bb: 89 45 e0 mov %eax,-0x20(%ebp) while (len) { 1094be: 8b 4d e4 mov -0x1c(%ebp),%ecx 1094c1: 85 c9 test %ecx,%ecx 1094c3: 0f 84 cf 00 00 00 je 109598 <== ALWAYS TAKEN 1094c9: 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; 1094cc: 8b 45 e0 mov -0x20(%ebp),%eax 1094cf: 40 inc %eax 1094d0: 8b 8b 88 00 00 00 mov 0x88(%ebx),%ecx 1094d6: 31 d2 xor %edx,%edx 1094d8: f7 f1 div %ecx 1094da: 89 55 dc mov %edx,-0x24(%ebp) 1094dd: 89 55 e0 mov %edx,-0x20(%ebp) rtems_interrupt_disable (level); 1094e0: 9c pushf 1094e1: fa cli 1094e2: 5f pop %edi while (newHead == tty->rawOutBuf.Tail) { 1094e3: 8b 93 84 00 00 00 mov 0x84(%ebx),%edx 1094e9: 3b 55 e0 cmp -0x20(%ebp),%edx 1094ec: 75 3e jne 10952c 1094ee: 89 f8 mov %edi,%eax 1094f0: 89 f7 mov %esi,%edi 1094f2: 89 d6 mov %edx,%esi tty->rawOutBufState = rob_wait; 1094f4: c7 83 94 00 00 00 02 movl $0x2,0x94(%ebx) 1094fb: 00 00 00 rtems_interrupt_enable (level); 1094fe: 50 push %eax 1094ff: 9d popf sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 109500: 52 push %edx 109501: 6a 00 push $0x0 109503: 6a 00 push $0x0 109505: ff b3 8c 00 00 00 pushl 0x8c(%ebx) 10950b: e8 50 20 00 00 call 10b560 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 109510: 83 c4 10 add $0x10,%esp 109513: 85 c0 test %eax,%eax 109515: 0f 85 a0 00 00 00 jne 1095bb <== ALWAYS TAKEN rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 10951b: 9c pushf 10951c: fa cli 10951d: 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) { 10951e: 8b 93 84 00 00 00 mov 0x84(%ebx),%edx 109524: 39 f2 cmp %esi,%edx 109526: 74 cc je 1094f4 <== ALWAYS TAKEN 109528: 89 fe mov %edi,%esi 10952a: 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++; 10952c: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax 109532: 8b 4b 7c mov 0x7c(%ebx),%ecx 109535: 8a 16 mov (%esi),%dl 109537: 88 14 01 mov %dl,(%ecx,%eax,1) tty->rawOutBuf.Head = newHead; 10953a: 8b 45 dc mov -0x24(%ebp),%eax 10953d: 89 83 80 00 00 00 mov %eax,0x80(%ebx) if (tty->rawOutBufState == rob_idle) { 109543: 8b 83 94 00 00 00 mov 0x94(%ebx),%eax 109549: 85 c0 test %eax,%eax 10954b: 75 23 jne 109570 /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 10954d: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 109553: a8 10 test $0x10,%al 109555: 74 26 je 10957d <== 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; 109557: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 10955d: 83 c8 20 or $0x20,%eax <== NOT EXECUTED 109560: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED } tty->rawOutBufState = rob_busy; 109566: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx) 10956d: 00 00 00 } rtems_interrupt_enable (level); 109570: 57 push %edi 109571: 9d popf if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 109572: ff 4d e4 decl -0x1c(%ebp) 109575: 74 21 je 109598 RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; 109577: 46 inc %esi 109578: e9 4f ff ff ff jmp 1094cc <== ALWAYS TAKEN 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); 10957d: 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, 109583: 51 push %ecx 109584: 6a 01 push $0x1 109586: 03 43 7c add 0x7c(%ebx),%eax 109589: 50 push %eax 10958a: ff 73 10 pushl 0x10(%ebx) 10958d: ff 93 a4 00 00 00 call *0xa4(%ebx) 109593: 83 c4 10 add $0x10,%esp 109596: eb ce jmp 109566 <== ALWAYS TAKEN tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } 109598: 8d 65 f4 lea -0xc(%ebp),%esp 10959b: 5b pop %ebx 10959c: 5e pop %esi 10959d: 5f pop %edi 10959e: c9 leave 10959f: 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); 1095a0: 89 55 10 mov %edx,0x10(%ebp) <== NOT EXECUTED 1095a3: 89 45 0c mov %eax,0xc(%ebp) <== NOT EXECUTED 1095a6: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 1095a9: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 1095ac: 8b 83 a4 00 00 00 mov 0xa4(%ebx),%eax <== NOT EXECUTED tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } 1095b2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1095b5: 5b pop %ebx <== NOT EXECUTED 1095b6: 5e pop %esi <== NOT EXECUTED 1095b7: 5f pop %edi <== NOT EXECUTED 1095b8: 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); 1095b9: 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); 1095bb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1095be: 50 push %eax <== NOT EXECUTED 1095bf: e8 d4 25 00 00 call 10bb98 <== NOT EXECUTED 00109bfc : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 109bfc: 55 push %ebp <== NOT EXECUTED 109bfd: 89 e5 mov %esp,%ebp <== NOT EXECUTED 109bff: 57 push %edi <== NOT EXECUTED 109c00: 56 push %esi <== NOT EXECUTED 109c01: 53 push %ebx <== NOT EXECUTED 109c02: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 109c05: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 109c08: 8b 02 mov (%edx),%eax <== NOT EXECUTED 109c0a: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED uint32_t count = args->count; 109c0d: 8b 4a 10 mov 0x10(%edx),%ecx <== NOT EXECUTED 109c10: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED char *buffer = args->buffer; 109c13: 8b 42 0c mov 0xc(%edx),%eax <== NOT EXECUTED 109c16: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 109c19: 6a 00 push $0x0 <== NOT EXECUTED 109c1b: 6a 00 push $0x0 <== NOT EXECUTED 109c1d: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED 109c20: e8 3b 19 00 00 call 10b560 <== NOT EXECUTED 109c25: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 109c28: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109c2b: 85 c0 test %eax,%eax <== NOT EXECUTED 109c2d: 75 35 jne 109c64 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 109c2f: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED 109c35: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 109c38: 8b 80 68 4e 12 00 mov 0x124e68(%eax),%eax <== NOT EXECUTED 109c3e: 85 c0 test %eax,%eax <== NOT EXECUTED 109c40: 74 2e je 109c70 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 109c42: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 109c45: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 109c48: 53 push %ebx <== NOT EXECUTED 109c49: ff d0 call *%eax <== NOT EXECUTED 109c4b: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED tty->tty_rcvwakeup = 0; 109c4e: c7 83 e4 00 00 00 00 movl $0x0,0xe4(%ebx) <== NOT EXECUTED 109c55: 00 00 00 <== NOT EXECUTED rtems_semaphore_release (tty->isem); 109c58: 59 pop %ecx <== NOT EXECUTED 109c59: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED 109c5c: e8 fb 19 00 00 call 10b65c <== NOT EXECUTED return sc; 109c61: 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; } 109c64: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 109c67: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109c6a: 5b pop %ebx <== NOT EXECUTED 109c6b: 5e pop %esi <== NOT EXECUTED 109c6c: 5f pop %edi <== NOT EXECUTED 109c6d: c9 leave <== NOT EXECUTED 109c6e: c3 ret <== NOT EXECUTED 109c6f: 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) { 109c70: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED 109c73: 3b 43 20 cmp 0x20(%ebx),%eax <== NOT EXECUTED 109c76: 74 5f je 109cd7 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 109c78: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED 109c7b: 85 c9 test %ecx,%ecx <== NOT EXECUTED 109c7d: 74 29 je 109ca8 <== NOT EXECUTED 109c7f: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED 109c82: 3b 43 20 cmp 0x20(%ebx),%eax <== NOT EXECUTED 109c85: 7d 21 jge 109ca8 <== NOT EXECUTED 109c87: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED 109c8a: 8b 7d dc mov -0x24(%ebp),%edi <== NOT EXECUTED 109c8d: eb 06 jmp 109c95 <== NOT EXECUTED 109c8f: 90 nop <== NOT EXECUTED 109c90: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED 109c93: 7e 10 jle 109ca5 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 109c95: 8b 73 1c mov 0x1c(%ebx),%esi <== NOT EXECUTED 109c98: 8a 0c 06 mov (%esi,%eax,1),%cl <== NOT EXECUTED 109c9b: 88 0a mov %cl,(%edx) <== NOT EXECUTED 109c9d: 42 inc %edx <== NOT EXECUTED 109c9e: 40 inc %eax <== NOT EXECUTED 109c9f: 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)) { 109ca2: 4f dec %edi <== NOT EXECUTED 109ca3: 75 eb jne 109c90 <== NOT EXECUTED 109ca5: 89 7d dc mov %edi,-0x24(%ebp) <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 109ca8: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 109cab: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED 109cae: 2b 45 dc sub -0x24(%ebp),%eax <== NOT EXECUTED 109cb1: 89 42 18 mov %eax,0x18(%edx) <== NOT EXECUTED tty->tty_rcvwakeup = 0; 109cb4: c7 83 e4 00 00 00 00 movl $0x0,0xe4(%ebx) <== NOT EXECUTED 109cbb: 00 00 00 <== NOT EXECUTED rtems_semaphore_release (tty->isem); 109cbe: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109cc1: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED 109cc4: e8 93 19 00 00 call 10b65c <== NOT EXECUTED return sc; 109cc9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 109ccc: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 109ccf: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109cd2: 5b pop %ebx <== NOT EXECUTED 109cd3: 5e pop %esi <== NOT EXECUTED 109cd4: 5f pop %edi <== NOT EXECUTED 109cd5: c9 leave <== NOT EXECUTED 109cd6: 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; 109cd7: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx) <== NOT EXECUTED 109cde: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED tty->read_start_column = tty->column; 109ce5: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED 109ce8: 89 43 2c mov %eax,0x2c(%ebx) <== NOT EXECUTED if (tty->device.pollRead != NULL && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 109ceb: 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 109cf1: 85 c0 test %eax,%eax <== NOT EXECUTED 109cf3: 74 0e je 109d03 <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 109cf5: 8b 93 b4 00 00 00 mov 0xb4(%ebx),%edx <== NOT EXECUTED 109cfb: 85 d2 test %edx,%edx <== NOT EXECUTED 109cfd: 0f 84 72 01 00 00 je 109e75 <== 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; 109d03: 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, 109d06: 8d 53 49 lea 0x49(%ebx),%edx <== NOT EXECUTED 109d09: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 109d0c: c7 45 e4 01 00 00 00 movl $0x1,-0x1c(%ebp) <== NOT EXECUTED 109d13: 90 nop <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 109d14: 8b 53 5c mov 0x5c(%ebx),%edx <== NOT EXECUTED 109d17: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 109d1a: 39 c2 cmp %eax,%edx <== NOT EXECUTED 109d1c: 75 2c jne 109d4a <== NOT EXECUTED 109d1e: e9 f5 00 00 00 jmp 109e18 <== NOT EXECUTED 109d23: 90 nop <== NOT EXECUTED } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty)) 109d24: 0f b6 c1 movzbl %cl,%eax <== NOT EXECUTED 109d27: 89 da mov %ebx,%edx <== NOT EXECUTED 109d29: e8 3e fd ff ff call 109a6c <== NOT EXECUTED 109d2e: 85 c0 test %eax,%eax <== NOT EXECUTED 109d30: 74 07 je 109d39 <== NOT EXECUTED wait = 0; } else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) 109d32: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 109d39: 8b 73 70 mov 0x70(%ebx),%esi <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 109d3c: 8b 53 5c mov 0x5c(%ebx),%edx <== NOT EXECUTED 109d3f: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 109d42: 39 c2 cmp %eax,%edx <== NOT EXECUTED 109d44: 0f 84 ce 00 00 00 je 109e18 <== NOT EXECUTED 109d4a: a1 e8 2f 12 00 mov 0x122fe8,%eax <== NOT EXECUTED 109d4f: 48 dec %eax <== NOT EXECUTED 109d50: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED 109d53: 0f 8d bf 00 00 00 jge 109e18 <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 109d59: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED 109d5c: 8b 4b 64 mov 0x64(%ebx),%ecx <== NOT EXECUTED 109d5f: 40 inc %eax <== NOT EXECUTED 109d60: 31 d2 xor %edx,%edx <== NOT EXECUTED 109d62: f7 f1 div %ecx <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 109d64: 8b 43 58 mov 0x58(%ebx),%eax <== NOT EXECUTED 109d67: 8a 0c 10 mov (%eax,%edx,1),%cl <== NOT EXECUTED tty->rawInBuf.Head = newHead; 109d6a: 89 53 5c mov %edx,0x5c(%ebx) <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 109d6d: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 109d70: 8b 7b 64 mov 0x64(%ebx),%edi <== NOT EXECUTED 109d73: 8b 73 64 mov 0x64(%ebx),%esi <== NOT EXECUTED 109d76: 8d 04 07 lea (%edi,%eax,1),%eax <== NOT EXECUTED 109d79: 29 d0 sub %edx,%eax <== NOT EXECUTED 109d7b: 31 d2 xor %edx,%edx <== NOT EXECUTED 109d7d: f7 f6 div %esi <== NOT EXECUTED 109d7f: 3b 93 bc 00 00 00 cmp 0xbc(%ebx),%edx <== NOT EXECUTED 109d85: 73 5d jae 109de4 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 109d87: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109d8d: 83 e0 fe and $0xfffffffe,%eax <== NOT EXECUTED 109d90: 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)) 109d96: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109d9c: 25 02 02 00 00 and $0x202,%eax <== NOT EXECUTED 109da1: 3d 02 02 00 00 cmp $0x202,%eax <== NOT EXECUTED 109da6: 0f 84 94 00 00 00 je 109e40 <== 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) { 109dac: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109db2: f6 c4 01 test $0x1,%ah <== NOT EXECUTED 109db5: 74 2d je 109de4 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 109db7: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109dbd: 83 e0 fb and $0xfffffffb,%eax <== NOT EXECUTED 109dc0: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 109dc6: 8b 83 b0 00 00 00 mov 0xb0(%ebx),%eax <== NOT EXECUTED 109dcc: 85 c0 test %eax,%eax <== NOT EXECUTED 109dce: 74 14 je 109de4 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); 109dd0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109dd3: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109dd6: 88 4d d0 mov %cl,-0x30(%ebp) <== NOT EXECUTED 109dd9: ff d0 call *%eax <== NOT EXECUTED 109ddb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109dde: 8a 4d d0 mov -0x30(%ebp),%cl <== NOT EXECUTED 109de1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 109de4: f6 43 3c 02 testb $0x2,0x3c(%ebx) <== NOT EXECUTED 109de8: 0f 85 36 ff ff ff jne 109d24 <== NOT EXECUTED if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); 109dee: 0f b6 c1 movzbl %cl,%eax <== NOT EXECUTED 109df1: 89 da mov %ebx,%edx <== NOT EXECUTED 109df3: e8 74 fc ff ff call 109a6c <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 109df8: 0f b6 43 47 movzbl 0x47(%ebx),%eax <== NOT EXECUTED 109dfc: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED 109dff: 0f 8d 2d ff ff ff jge 109d32 <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 109e05: 8b 73 70 mov 0x70(%ebx),%esi <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 109e08: 8b 53 5c mov 0x5c(%ebx),%edx <== NOT EXECUTED 109e0b: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 109e0e: 39 c2 cmp %eax,%edx <== NOT EXECUTED 109e10: 0f 85 34 ff ff ff jne 109d4a <== NOT EXECUTED 109e16: 66 90 xchg %ax,%ax <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 109e18: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 109e1b: 85 c0 test %eax,%eax <== NOT EXECUTED 109e1d: 0f 84 55 fe ff ff je 109c78 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 109e23: 57 push %edi <== NOT EXECUTED 109e24: 56 push %esi <== NOT EXECUTED 109e25: ff 73 6c pushl 0x6c(%ebx) <== NOT EXECUTED 109e28: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED 109e2b: e8 30 17 00 00 call 10b560 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 109e30: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109e33: 85 c0 test %eax,%eax <== NOT EXECUTED 109e35: 0f 84 d9 fe ff ff je 109d14 <== NOT EXECUTED 109e3b: e9 38 fe ff ff jmp 109c78 <== 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)) 109e40: 8b b3 94 00 00 00 mov 0x94(%ebx),%esi <== NOT EXECUTED 109e46: 85 f6 test %esi,%esi <== NOT EXECUTED 109e48: 74 0e je 109e58 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { 109e4a: 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)) 109e50: a8 20 test $0x20,%al <== NOT EXECUTED 109e52: 0f 84 54 ff ff ff je 109dac <== 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, 109e58: 52 push %edx <== NOT EXECUTED 109e59: 6a 01 push $0x1 <== NOT EXECUTED 109e5b: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED 109e5e: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109e61: 88 4d d0 mov %cl,-0x30(%ebp) <== NOT EXECUTED 109e64: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED 109e6a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109e6d: 8a 4d d0 mov -0x30(%ebp),%cl <== NOT EXECUTED 109e70: e9 6f ff ff ff jmp 109de4 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 109e75: f6 43 3c 02 testb $0x2,0x3c(%ebx) <== NOT EXECUTED 109e79: 75 1d jne 109e98 <== NOT EXECUTED 109e7b: eb 39 jmp 109eb6 <== NOT EXECUTED 109e7d: 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)) 109e80: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 109e83: 89 da mov %ebx,%edx <== NOT EXECUTED 109e85: e8 e2 fb ff ff call 109a6c <== NOT EXECUTED 109e8a: 85 c0 test %eax,%eax <== NOT EXECUTED 109e8c: 0f 85 e6 fd ff ff jne 109c78 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 109e92: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 109e98: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109e9b: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109e9e: ff d0 call *%eax <== NOT EXECUTED if (n < 0) { 109ea0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109ea3: 85 c0 test %eax,%eax <== NOT EXECUTED 109ea5: 79 d9 jns 109e80 <== NOT EXECUTED rtems_task_wake_after (1); 109ea7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109eaa: 6a 01 push $0x1 <== NOT EXECUTED 109eac: e8 63 1b 00 00 call 10ba14 <== NOT EXECUTED 109eb1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109eb4: eb dc jmp 109e92 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); 109eb6: e8 a9 0f 00 00 call 10ae64 <== NOT EXECUTED 109ebb: 89 c6 mov %eax,%esi <== NOT EXECUTED 109ebd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 109ec0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109ec3: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109ec6: ff 93 a0 00 00 00 call *0xa0(%ebx) <== NOT EXECUTED if (n < 0) { 109ecc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109ecf: 85 c0 test %eax,%eax <== NOT EXECUTED 109ed1: 78 25 js 109ef8 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 109ed3: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 109ed6: 89 da mov %ebx,%edx <== NOT EXECUTED 109ed8: e8 8f fb ff ff call 109a6c <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 109edd: 8a 43 47 mov 0x47(%ebx),%al <== NOT EXECUTED 109ee0: 0f b6 d0 movzbl %al,%edx <== NOT EXECUTED 109ee3: 39 53 20 cmp %edx,0x20(%ebx) <== NOT EXECUTED 109ee6: 0f 8d 8c fd ff ff jge 109c78 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 109eec: 84 c0 test %al,%al <== NOT EXECUTED 109eee: 74 d0 je 109ec0 <== NOT EXECUTED 109ef0: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED 109ef4: 74 ca je 109ec0 <== NOT EXECUTED 109ef6: eb be jmp 109eb6 <== 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]) { 109ef8: 80 7b 47 00 cmpb $0x0,0x47(%ebx) <== NOT EXECUTED 109efc: 74 1d je 109f1b <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 109efe: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED 109f02: 74 08 je 109f0c <== NOT EXECUTED 109f04: 8b 7b 20 mov 0x20(%ebx),%edi <== NOT EXECUTED 109f07: 85 ff test %edi,%edi <== NOT EXECUTED 109f09: 75 1a jne 109f25 <== NOT EXECUTED 109f0b: 90 nop <== NOT EXECUTED now = rtems_clock_get_ticks_since_boot(); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); 109f0c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109f0f: 6a 01 push $0x1 <== NOT EXECUTED 109f11: e8 fe 1a 00 00 call 10ba14 <== NOT EXECUTED 109f16: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109f19: eb a5 jmp 109ec0 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 109f1b: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED 109f1f: 0f 84 53 fd ff ff je 109c78 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); 109f25: e8 3a 0f 00 00 call 10ae64 <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 109f2a: 29 f0 sub %esi,%eax <== NOT EXECUTED 109f2c: 3b 43 54 cmp 0x54(%ebx),%eax <== NOT EXECUTED 109f2f: 76 db jbe 109f0c <== NOT EXECUTED 109f31: e9 42 fd ff ff jmp 109c78 <== NOT EXECUTED 00108ee0 : * 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) { 108ee0: 55 push %ebp 108ee1: 89 e5 mov %esp,%ebp 108ee3: 57 push %edi 108ee4: 56 push %esi 108ee5: 53 push %ebx 108ee6: 83 ec 0c sub $0xc,%esp 108ee9: 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)) 108eec: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 108ef2: 25 03 04 00 00 and $0x403,%eax 108ef7: 3d 01 04 00 00 cmp $0x401,%eax 108efc: 0f 84 86 01 00 00 je 109088 <== ALWAYS TAKEN tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 108f02: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 108f08: 83 e0 03 and $0x3,%eax 108f0b: 83 f8 02 cmp $0x2,%eax 108f0e: 0f 84 b0 01 00 00 je 1090c4 <== ALWAYS TAKEN rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 108f14: 8b 93 80 00 00 00 mov 0x80(%ebx),%edx 108f1a: 8b 83 84 00 00 00 mov 0x84(%ebx),%eax 108f20: 39 c2 cmp %eax,%edx 108f22: 0f 84 b0 00 00 00 je 108fd8 <== ALWAYS TAKEN rtems_semaphore_release (tty->rawOutBuf.Semaphore); } return 0; } rtems_interrupt_disable(level); 108f28: 9c pushf 108f29: fa cli 108f2a: 58 pop %eax len = tty->t_dqlen; 108f2b: 8b 8b 90 00 00 00 mov 0x90(%ebx),%ecx tty->t_dqlen = 0; 108f31: c7 83 90 00 00 00 00 movl $0x0,0x90(%ebx) 108f38: 00 00 00 rtems_interrupt_enable(level); 108f3b: 50 push %eax 108f3c: 9d popf newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 108f3d: 8b 83 84 00 00 00 mov 0x84(%ebx),%eax 108f43: 8b bb 88 00 00 00 mov 0x88(%ebx),%edi 108f49: 8d 04 01 lea (%ecx,%eax,1),%eax 108f4c: 31 d2 xor %edx,%edx 108f4e: f7 f7 div %edi 108f50: 89 d6 mov %edx,%esi tty->rawOutBuf.Tail = newTail; 108f52: 89 93 84 00 00 00 mov %edx,0x84(%ebx) if (tty->rawOutBufState == rob_wait) { 108f58: 83 bb 94 00 00 00 02 cmpl $0x2,0x94(%ebx) 108f5f: 0f 84 e7 00 00 00 je 10904c /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); } if (newTail == tty->rawOutBuf.Head) { 108f65: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax 108f6b: 39 f0 cmp %esi,%eax 108f6d: 0f 84 81 00 00 00 je 108ff4 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)) 108f73: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 108f79: 25 10 02 00 00 and $0x210,%eax 108f7e: 3d 10 02 00 00 cmp $0x210,%eax 108f83: 0f 84 db 00 00 00 je 109064 <== ALWAYS TAKEN } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 108f89: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax 108f8f: 39 c6 cmp %eax,%esi 108f91: 0f 87 95 00 00 00 ja 10902c nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail; 108f97: 8b bb 80 00 00 00 mov 0x80(%ebx),%edi 108f9d: 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)) { 108f9f: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 108fa5: f6 c4 06 test $0x6,%ah 108fa8: 0f 84 95 00 00 00 je 109043 <== NEVER TAKEN 108fae: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED 108fb3: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 108fb8: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx) 108fbf: 00 00 00 (*tty->device.write)(tty->minor, 108fc2: 52 push %edx 108fc3: 50 push %eax 108fc4: 8b 43 7c mov 0x7c(%ebx),%eax 108fc7: 01 f0 add %esi,%eax 108fc9: 50 push %eax 108fca: ff 73 10 pushl 0x10(%ebx) 108fcd: ff 93 a4 00 00 00 call *0xa4(%ebx) 108fd3: 83 c4 10 add $0x10,%esp 108fd6: eb 44 jmp 10901c <== ALWAYS TAKEN else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 108fd8: 83 bb 94 00 00 00 02 cmpl $0x2,0x94(%ebx) <== NOT EXECUTED 108fdf: 0f 84 1b 01 00 00 je 109100 <== NOT EXECUTED 108fe5: 31 ff xor %edi,%edi <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 108fe7: 89 f8 mov %edi,%eax <== NOT EXECUTED 108fe9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 108fec: 5b pop %ebx <== NOT EXECUTED 108fed: 5e pop %esi <== NOT EXECUTED 108fee: 5f pop %edi <== NOT EXECUTED 108fef: c9 leave <== NOT EXECUTED 108ff0: c3 ret <== NOT EXECUTED 108ff1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 108ff4: c7 83 94 00 00 00 00 movl $0x0,0x94(%ebx) 108ffb: 00 00 00 nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 108ffe: 8b 83 d4 00 00 00 mov 0xd4(%ebx),%eax 109004: 85 c0 test %eax,%eax 109006: 74 7a je 109082 <== NEVER TAKEN (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 109008: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10900b: ff b3 d8 00 00 00 pushl 0xd8(%ebx) <== NOT EXECUTED 109011: 8d 53 30 lea 0x30(%ebx),%edx <== NOT EXECUTED 109014: 52 push %edx <== NOT EXECUTED 109015: ff d0 call *%eax <== NOT EXECUTED 109017: 31 ff xor %edi,%edi <== NOT EXECUTED 109019: 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*/ 10901c: 89 b3 84 00 00 00 mov %esi,0x84(%ebx) } return nToSend; } 109022: 89 f8 mov %edi,%eax 109024: 8d 65 f4 lea -0xc(%ebp),%esp 109027: 5b pop %ebx 109028: 5e pop %esi 109029: 5f pop %edi 10902a: c9 leave 10902b: c3 ret else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; 10902c: 8b bb 88 00 00 00 mov 0x88(%ebx),%edi 109032: 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)) { 109034: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 10903a: f6 c4 06 test $0x6,%ah 10903d: 0f 85 6b ff ff ff jne 108fae <== ALWAYS TAKEN 109043: 89 f8 mov %edi,%eax 109045: e9 6e ff ff ff jmp 108fb8 <== ALWAYS TAKEN 10904a: 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); 10904c: 83 ec 0c sub $0xc,%esp 10904f: ff b3 8c 00 00 00 pushl 0x8c(%ebx) 109055: e8 02 26 00 00 call 10b65c 10905a: 83 c4 10 add $0x10,%esp 10905d: e9 03 ff ff ff jmp 108f65 <== ALWAYS TAKEN 109062: 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); 109064: 9c pushf <== NOT EXECUTED 109065: fa cli <== NOT EXECUTED 109066: 5a pop %edx <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 109067: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 10906d: 83 c8 20 or $0x20,%eax <== NOT EXECUTED 109070: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 109076: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx) <== NOT EXECUTED 10907d: 00 00 00 <== NOT EXECUTED rtems_interrupt_enable(level); 109080: 52 push %edx <== NOT EXECUTED 109081: 9d popf <== NOT EXECUTED 109082: 31 ff xor %edi,%edi 109084: eb 96 jmp 10901c <== ALWAYS TAKEN 109086: 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, 109088: 56 push %esi <== NOT EXECUTED 109089: 6a 01 push $0x1 <== NOT EXECUTED 10908b: 8d 43 4a lea 0x4a(%ebx),%eax <== NOT EXECUTED 10908e: 50 push %eax <== NOT EXECUTED 10908f: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109092: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 109098: 9c pushf <== NOT EXECUTED 109099: fa cli <== NOT EXECUTED 10909a: 5a pop %edx <== NOT EXECUTED tty->t_dqlen--; 10909b: ff 8b 90 00 00 00 decl 0x90(%ebx) <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 1090a1: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1090a7: 83 c8 02 or $0x2,%eax <== NOT EXECUTED 1090aa: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED rtems_interrupt_enable(level); 1090b0: 52 push %edx <== NOT EXECUTED 1090b1: 9d popf <== NOT EXECUTED 1090b2: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED 1090b7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 1090ba: 89 f8 mov %edi,%eax <== NOT EXECUTED 1090bc: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1090bf: 5b pop %ebx <== NOT EXECUTED 1090c0: 5e pop %esi <== NOT EXECUTED 1090c1: 5f pop %edi <== NOT EXECUTED 1090c2: c9 leave <== NOT EXECUTED 1090c3: 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, 1090c4: 51 push %ecx <== NOT EXECUTED 1090c5: 6a 01 push $0x1 <== NOT EXECUTED 1090c7: 8d 43 49 lea 0x49(%ebx),%eax <== NOT EXECUTED 1090ca: 50 push %eax <== NOT EXECUTED 1090cb: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 1090ce: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 1090d4: 9c pushf <== NOT EXECUTED 1090d5: fa cli <== NOT EXECUTED 1090d6: 5a pop %edx <== NOT EXECUTED tty->t_dqlen--; 1090d7: ff 8b 90 00 00 00 decl 0x90(%ebx) <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 1090dd: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1090e3: 83 e0 fd and $0xfffffffd,%eax <== NOT EXECUTED 1090e6: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED rtems_interrupt_enable(level); 1090ec: 52 push %edx <== NOT EXECUTED 1090ed: 9d popf <== NOT EXECUTED 1090ee: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED 1090f3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 1090f6: 89 f8 mov %edi,%eax <== NOT EXECUTED 1090f8: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1090fb: 5b pop %ebx <== NOT EXECUTED 1090fc: 5e pop %esi <== NOT EXECUTED 1090fd: 5f pop %edi <== NOT EXECUTED 1090fe: c9 leave <== NOT EXECUTED 1090ff: c3 ret <== NOT EXECUTED */ if (tty->rawOutBufState == rob_wait) { /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 109100: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109103: ff b3 8c 00 00 00 pushl 0x8c(%ebx) <== NOT EXECUTED 109109: e8 4e 25 00 00 call 10b65c <== NOT EXECUTED 10910e: 31 ff xor %edi,%edi <== NOT EXECUTED 109110: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109113: e9 cf fe ff ff jmp 108fe7 <== NOT EXECUTED 0010aa38 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 10aa38: 55 push %ebp <== NOT EXECUTED 10aa39: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10aa3b: 57 push %edi <== NOT EXECUTED 10aa3c: 56 push %esi <== NOT EXECUTED 10aa3d: 53 push %ebx <== NOT EXECUTED 10aa3e: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED 10aa41: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 10aa44: 8d 75 e0 lea -0x20(%ebp),%esi <== NOT EXECUTED 10aa47: 8d 7d e7 lea -0x19(%ebp),%edi <== NOT EXECUTED 10aa4a: 66 90 xchg %ax,%ax <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 10aa4c: 56 push %esi <== NOT EXECUTED 10aa4d: 6a 00 push $0x0 <== NOT EXECUTED 10aa4f: 6a 02 push $0x2 <== NOT EXECUTED 10aa51: 6a 03 push $0x3 <== NOT EXECUTED 10aa53: e8 74 04 00 00 call 10aecc <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 10aa58: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aa5b: f6 45 e0 01 testb $0x1,-0x20(%ebp) <== NOT EXECUTED 10aa5f: 75 27 jne 10aa88 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 10aa61: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10aa64: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 10aa67: ff 93 a0 00 00 00 call *0xa0(%ebx) <== NOT EXECUTED if (c != EOF) { 10aa6d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aa70: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED 10aa73: 74 d7 je 10aa4c <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; 10aa75: 88 45 e7 mov %al,-0x19(%ebp) <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 10aa78: 50 push %eax <== NOT EXECUTED 10aa79: 6a 01 push $0x1 <== NOT EXECUTED 10aa7b: 57 push %edi <== NOT EXECUTED 10aa7c: 53 push %ebx <== NOT EXECUTED 10aa7d: e8 fe e6 ff ff call 109180 <== NOT EXECUTED 10aa82: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aa85: eb c5 jmp 10aa4c <== NOT EXECUTED 10aa87: 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; 10aa88: c7 83 c4 00 00 00 00 movl $0x0,0xc4(%ebx) <== NOT EXECUTED 10aa8f: 00 00 00 <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 10aa92: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10aa95: 6a 00 push $0x0 <== NOT EXECUTED 10aa97: e8 c0 0d 00 00 call 10b85c <== NOT EXECUTED 10aa9c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aa9f: eb ab jmp 10aa4c <== NOT EXECUTED 00108ec4 : * 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) { 108ec4: 55 push %ebp <== NOT EXECUTED 108ec5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 108ec7: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT); 108eca: 6a 02 push $0x2 <== NOT EXECUTED 108ecc: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 108ecf: ff b0 c4 00 00 00 pushl 0xc4(%eax) <== NOT EXECUTED 108ed5: e8 76 21 00 00 call 10b050 <== NOT EXECUTED 108eda: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 108edd: c9 leave <== NOT EXECUTED 108ede: c3 ret <== NOT EXECUTED 0010a9cc : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 10a9cc: 55 push %ebp <== NOT EXECUTED 10a9cd: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10a9cf: 56 push %esi <== NOT EXECUTED 10a9d0: 53 push %ebx <== NOT EXECUTED 10a9d1: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED 10a9d4: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 10a9d7: 8d 75 f4 lea -0xc(%ebp),%esi <== NOT EXECUTED 10a9da: 66 90 xchg %ax,%ax <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 10a9dc: 56 push %esi <== NOT EXECUTED 10a9dd: 6a 00 push $0x0 <== NOT EXECUTED 10a9df: 6a 02 push $0x2 <== NOT EXECUTED 10a9e1: 6a 03 push $0x3 <== NOT EXECUTED 10a9e3: e8 e4 04 00 00 call 10aecc <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 10a9e8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a9eb: f6 45 f4 01 testb $0x1,-0xc(%ebp) <== NOT EXECUTED 10a9ef: 75 2b jne 10aa1c <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 10a9f1: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED 10a9f7: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 10a9fa: 8b 80 74 4e 12 00 mov 0x124e74(%eax),%eax <== NOT EXECUTED 10aa00: 85 c0 test %eax,%eax <== NOT EXECUTED 10aa02: 74 09 je 10aa0d <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 10aa04: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10aa07: 53 push %ebx <== NOT EXECUTED 10aa08: ff d0 call *%eax <== NOT EXECUTED 10aa0a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 10aa0d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10aa10: 53 push %ebx <== NOT EXECUTED 10aa11: e8 ca e4 ff ff call 108ee0 <== NOT EXECUTED 10aa16: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aa19: eb c1 jmp 10a9dc <== NOT EXECUTED 10aa1b: 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; 10aa1c: c7 83 c8 00 00 00 00 movl $0x0,0xc8(%ebx) <== NOT EXECUTED 10aa23: 00 00 00 <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 10aa26: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10aa29: 6a 00 push $0x0 <== NOT EXECUTED 10aa2b: e8 2c 0e 00 00 call 10b85c <== NOT EXECUTED 10aa30: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aa33: eb a7 jmp 10a9dc <== NOT EXECUTED 00109ac0 : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 109ac0: 55 push %ebp 109ac1: 89 e5 mov %esp,%ebp 109ac3: 57 push %edi 109ac4: 56 push %esi 109ac5: 53 push %ebx 109ac6: 83 ec 20 sub $0x20,%esp 109ac9: 8b 7d 08 mov 0x8(%ebp),%edi rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 109acc: 8b 07 mov (%edi),%eax 109ace: 8b 70 34 mov 0x34(%eax),%esi rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 109ad1: 6a 00 push $0x0 109ad3: 6a 00 push $0x0 109ad5: ff 76 18 pushl 0x18(%esi) 109ad8: e8 83 1a 00 00 call 10b560 109add: 89 45 e4 mov %eax,-0x1c(%ebp) if (sc != RTEMS_SUCCESSFUL) 109ae0: 83 c4 10 add $0x10,%esp 109ae3: 85 c0 test %eax,%eax 109ae5: 75 29 jne 109b10 <== ALWAYS TAKEN return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 109ae7: 8b 86 cc 00 00 00 mov 0xcc(%esi),%eax 109aed: c1 e0 05 shl $0x5,%eax 109af0: 8b 80 6c 4e 12 00 mov 0x124e6c(%eax),%eax 109af6: 85 c0 test %eax,%eax 109af8: 74 22 je 109b1c <== NEVER TAKEN sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 109afa: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 109afd: 57 push %edi <== NOT EXECUTED 109afe: 56 push %esi <== NOT EXECUTED 109aff: ff d0 call *%eax <== NOT EXECUTED 109b01: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED rtems_semaphore_release (tty->osem); 109b04: 5f pop %edi <== NOT EXECUTED 109b05: ff 76 18 pushl 0x18(%esi) <== NOT EXECUTED 109b08: e8 4f 1b 00 00 call 10b65c <== NOT EXECUTED return sc; 109b0d: 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; } 109b10: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 109b13: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109b16: 5b pop %ebx <== NOT EXECUTED 109b17: 5e pop %esi <== NOT EXECUTED 109b18: 5f pop %edi <== NOT EXECUTED 109b19: c9 leave <== NOT EXECUTED 109b1a: c3 ret <== NOT EXECUTED 109b1b: 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) { 109b1c: f6 46 34 01 testb $0x1,0x34(%esi) 109b20: 74 4e je 109b70 <== ALWAYS TAKEN uint32_t count = args->count; 109b22: 8b 47 10 mov 0x10(%edi),%eax 109b25: 89 45 e0 mov %eax,-0x20(%ebp) char *buffer = args->buffer; 109b28: 8b 47 0c mov 0xc(%edi),%eax while (count--) 109b2b: 8b 5d e0 mov -0x20(%ebp),%ebx 109b2e: 85 db test %ebx,%ebx 109b30: 74 56 je 109b88 <== ALWAYS TAKEN 109b32: 31 db xor %ebx,%ebx 109b34: 89 7d dc mov %edi,-0x24(%ebp) 109b37: 89 c7 mov %eax,%edi 109b39: 8d 76 00 lea 0x0(%esi),%esi oproc (*buffer++, tty); 109b3c: 0f b6 04 1f movzbl (%edi,%ebx,1),%eax 109b40: 89 f2 mov %esi,%edx 109b42: e8 7d fa ff ff call 1095c4 <== ALWAYS TAKEN 109b47: 43 inc %ebx return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 109b48: 3b 5d e0 cmp -0x20(%ebp),%ebx 109b4b: 75 ef jne 109b3c 109b4d: 8b 7d dc mov -0x24(%ebp),%edi 109b50: 8b 47 10 mov 0x10(%edi),%eax oproc (*buffer++, tty); args->bytes_moved = args->count; 109b53: 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); 109b56: 83 ec 0c sub $0xc,%esp 109b59: ff 76 18 pushl 0x18(%esi) 109b5c: e8 fb 1a 00 00 call 10b65c return sc; 109b61: 83 c4 10 add $0x10,%esp } 109b64: 8b 45 e4 mov -0x1c(%ebp),%eax 109b67: 8d 65 f4 lea -0xc(%ebp),%esp 109b6a: 5b pop %ebx 109b6b: 5e pop %esi 109b6c: 5f pop %edi 109b6d: c9 leave 109b6e: c3 ret 109b6f: 90 nop <== NOT EXECUTED while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 109b70: 51 push %ecx <== NOT EXECUTED 109b71: 56 push %esi <== NOT EXECUTED 109b72: ff 77 10 pushl 0x10(%edi) <== NOT EXECUTED 109b75: ff 77 0c pushl 0xc(%edi) <== NOT EXECUTED 109b78: e8 13 f9 ff ff call 109490 <== NOT EXECUTED args->bytes_moved = args->count; 109b7d: 8b 47 10 mov 0x10(%edi),%eax <== NOT EXECUTED 109b80: 89 47 18 mov %eax,0x18(%edi) <== NOT EXECUTED 109b83: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109b86: eb ce jmp 109b56 <== NOT EXECUTED return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 109b88: 31 c0 xor %eax,%eax <== NOT EXECUTED 109b8a: eb c7 jmp 109b53 <== NOT EXECUTED 00118258 : */ rtems_status_code rtems_timer_cancel( rtems_id id ) { 118258: 55 push %ebp 118259: 89 e5 mov %esp,%ebp 11825b: 83 ec 1c sub $0x1c,%esp RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 11825e: 8d 45 f4 lea -0xc(%ebp),%eax 118261: 50 push %eax 118262: ff 75 08 pushl 0x8(%ebp) 118265: 68 60 fa 13 00 push $0x13fa60 11826a: e8 b5 28 00 00 call 11ab24 <_Objects_Get> Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 11826f: 83 c4 10 add $0x10,%esp 118272: 8b 55 f4 mov -0xc(%ebp),%edx 118275: 85 d2 test %edx,%edx 118277: 74 07 je 118280 118279: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11827e: c9 leave 11827f: c3 ret the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Timer_Is_dormant_class( the_timer->the_class ) ) 118280: 83 78 38 04 cmpl $0x4,0x38(%eax) 118284: 74 0f je 118295 <== ALWAYS TAKEN (void) _Watchdog_Remove( &the_timer->Ticker ); 118286: 83 ec 0c sub $0xc,%esp 118289: 83 c0 10 add $0x10,%eax 11828c: 50 push %eax 11828d: e8 12 45 00 00 call 11c7a4 <_Watchdog_Remove> 118292: 83 c4 10 add $0x10,%esp _Thread_Enable_dispatch(); 118295: e8 3a 31 00 00 call 11b3d4 <_Thread_Enable_dispatch> 11829a: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11829c: c9 leave 11829d: c3 ret 001182a0 : rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { 1182a0: 55 push %ebp 1182a1: 89 e5 mov %esp,%ebp 1182a3: 57 push %edi 1182a4: 56 push %esi 1182a5: 53 push %ebx 1182a6: 83 ec 0c sub $0xc,%esp 1182a9: 8b 5d 08 mov 0x8(%ebp),%ebx 1182ac: 8b 75 0c mov 0xc(%ebp),%esi Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) 1182af: 85 db test %ebx,%ebx 1182b1: 74 6d je 118320 return RTEMS_INVALID_NAME; if ( !id ) 1182b3: 85 f6 test %esi,%esi 1182b5: 0f 84 89 00 00 00 je 118344 1182bb: a1 58 f7 13 00 mov 0x13f758,%eax 1182c0: 40 inc %eax 1182c1: a3 58 f7 13 00 mov %eax,0x13f758 * 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 ); 1182c6: 83 ec 0c sub $0xc,%esp 1182c9: 68 60 fa 13 00 push $0x13fa60 1182ce: e8 65 23 00 00 call 11a638 <_Objects_Allocate> <== ALWAYS TAKEN _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { 1182d3: 83 c4 10 add $0x10,%esp 1182d6: 85 c0 test %eax,%eax 1182d8: 74 56 je 118330 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_timer->the_class = TIMER_DORMANT; 1182da: 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; 1182e1: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) the_watchdog->routine = routine; 1182e8: c7 40 2c 00 00 00 00 movl $0x0,0x2c(%eax) the_watchdog->id = id; 1182ef: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax) the_watchdog->user_data = user_data; 1182f6: 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; 1182fd: 8b 50 08 mov 0x8(%eax),%edx 118300: 0f b7 fa movzwl %dx,%edi 118303: 8b 0d 7c fa 13 00 mov 0x13fa7c,%ecx 118309: 89 04 b9 mov %eax,(%ecx,%edi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 11830c: 89 58 0c mov %ebx,0xc(%eax) &_Timer_Information, &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id; 11830f: 89 16 mov %edx,(%esi) _Thread_Enable_dispatch(); 118311: e8 be 30 00 00 call 11b3d4 <_Thread_Enable_dispatch> 118316: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 118318: 8d 65 f4 lea -0xc(%ebp),%esp 11831b: 5b pop %ebx 11831c: 5e pop %esi 11831d: 5f pop %edi 11831e: c9 leave 11831f: c3 ret rtems_id *id ) { Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) 118320: b8 03 00 00 00 mov $0x3,%eax ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 118325: 8d 65 f4 lea -0xc(%ebp),%esp 118328: 5b pop %ebx 118329: 5e pop %esi 11832a: 5f pop %edi 11832b: c9 leave 11832c: c3 ret 11832d: 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(); 118330: e8 9f 30 00 00 call 11b3d4 <_Thread_Enable_dispatch> 118335: b8 05 00 00 00 mov $0x5,%eax ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 11833a: 8d 65 f4 lea -0xc(%ebp),%esp 11833d: 5b pop %ebx 11833e: 5e pop %esi 11833f: 5f pop %edi 118340: c9 leave 118341: c3 ret 118342: 66 90 xchg %ax,%ax <== NOT EXECUTED Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 118344: b8 09 00 00 00 mov $0x9,%eax ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 118349: 8d 65 f4 lea -0xc(%ebp),%esp 11834c: 5b pop %ebx 11834d: 5e pop %esi 11834e: 5f pop %edi 11834f: c9 leave 118350: c3 ret 00118354 : */ rtems_status_code rtems_timer_delete( rtems_id id ) { 118354: 55 push %ebp 118355: 89 e5 mov %esp,%ebp 118357: 53 push %ebx 118358: 83 ec 18 sub $0x18,%esp RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 11835b: 8d 45 f4 lea -0xc(%ebp),%eax 11835e: 50 push %eax 11835f: ff 75 08 pushl 0x8(%ebp) 118362: 68 60 fa 13 00 push $0x13fa60 118367: e8 b8 27 00 00 call 11ab24 <_Objects_Get> 11836c: 89 c3 mov %eax,%ebx Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 11836e: 83 c4 10 add $0x10,%esp 118371: 8b 4d f4 mov -0xc(%ebp),%ecx 118374: 85 c9 test %ecx,%ecx 118376: 75 38 jne 1183b0 case OBJECTS_LOCAL: _Objects_Close( &_Timer_Information, &the_timer->Object ); 118378: 83 ec 08 sub $0x8,%esp 11837b: 50 push %eax 11837c: 68 60 fa 13 00 push $0x13fa60 118381: e8 2e 23 00 00 call 11a6b4 <_Objects_Close> (void) _Watchdog_Remove( &the_timer->Ticker ); 118386: 8d 43 10 lea 0x10(%ebx),%eax 118389: 89 04 24 mov %eax,(%esp) 11838c: e8 13 44 00 00 call 11c7a4 <_Watchdog_Remove> */ RTEMS_INLINE_ROUTINE void _Timer_Free ( Timer_Control *the_timer ) { _Objects_Free( &_Timer_Information, &the_timer->Object ); 118391: 58 pop %eax 118392: 5a pop %edx 118393: 53 push %ebx 118394: 68 60 fa 13 00 push $0x13fa60 118399: e8 1a 26 00 00 call 11a9b8 <_Objects_Free> _Timer_Free( the_timer ); _Thread_Enable_dispatch(); 11839e: e8 31 30 00 00 call 11b3d4 <_Thread_Enable_dispatch> 1183a3: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 1183a5: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1183a8: 8b 5d fc mov -0x4(%ebp),%ebx 1183ab: c9 leave 1183ac: c3 ret 1183ad: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 1183b0: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1183b5: 8b 5d fc mov -0x4(%ebp),%ebx 1183b8: c9 leave 1183b9: c3 ret 001183bc : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 1183bc: 55 push %ebp 1183bd: 89 e5 mov %esp,%ebp 1183bf: 57 push %edi 1183c0: 56 push %esi 1183c1: 53 push %ebx 1183c2: 83 ec 2c sub $0x2c,%esp 1183c5: 8b 5d 0c mov 0xc(%ebp),%ebx 1183c8: 8b 75 10 mov 0x10(%ebp),%esi Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 1183cb: 85 db test %ebx,%ebx 1183cd: 0f 84 99 00 00 00 je 11846c return RTEMS_INVALID_NUMBER; if ( !routine ) 1183d3: 85 f6 test %esi,%esi 1183d5: 0f 84 b1 00 00 00 je 11848c RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 1183db: 57 push %edi 1183dc: 8d 45 e4 lea -0x1c(%ebp),%eax 1183df: 50 push %eax 1183e0: ff 75 08 pushl 0x8(%ebp) 1183e3: 68 60 fa 13 00 push $0x13fa60 1183e8: e8 37 27 00 00 call 11ab24 <_Objects_Get> 1183ed: 89 c7 mov %eax,%edi return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 1183ef: 83 c4 10 add $0x10,%esp 1183f2: 8b 4d e4 mov -0x1c(%ebp),%ecx 1183f5: 85 c9 test %ecx,%ecx 1183f7: 74 0f je 118408 1183f9: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1183fe: 8d 65 f4 lea -0xc(%ebp),%esp 118401: 5b pop %ebx 118402: 5e pop %esi 118403: 5f pop %edi 118404: c9 leave 118405: c3 ret 118406: 66 90 xchg %ax,%ax <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 118408: 8d 50 10 lea 0x10(%eax),%edx 11840b: 83 ec 0c sub $0xc,%esp 11840e: 52 push %edx 11840f: 89 55 d4 mov %edx,-0x2c(%ebp) 118412: e8 8d 43 00 00 call 11c7a4 <_Watchdog_Remove> _ISR_Disable( level ); 118417: 9c pushf 118418: fa cli 118419: 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 ) { 11841a: 83 c4 10 add $0x10,%esp 11841d: 8b 57 18 mov 0x18(%edi),%edx 118420: 85 d2 test %edx,%edx 118422: 8b 55 d4 mov -0x2c(%ebp),%edx 118425: 75 55 jne 11847c /* * 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; 118427: 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; 11842e: c7 47 18 00 00 00 00 movl $0x0,0x18(%edi) the_watchdog->routine = routine; 118435: 89 77 2c mov %esi,0x2c(%edi) the_watchdog->id = id; 118438: 8b 4d 08 mov 0x8(%ebp),%ecx 11843b: 89 4f 30 mov %ecx,0x30(%edi) the_watchdog->user_data = user_data; 11843e: 8b 4d 14 mov 0x14(%ebp),%ecx 118441: 89 4f 34 mov %ecx,0x34(%edi) _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); 118444: 50 push %eax 118445: 9d popf Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 118446: 89 5f 1c mov %ebx,0x1c(%edi) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 118449: 83 ec 08 sub $0x8,%esp 11844c: 52 push %edx 11844d: 68 38 f8 13 00 push $0x13f838 118452: e8 15 42 00 00 call 11c66c <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 118457: e8 78 2f 00 00 call 11b3d4 <_Thread_Enable_dispatch> 11845c: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 11845e: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 118461: 8d 65 f4 lea -0xc(%ebp),%esp 118464: 5b pop %ebx 118465: 5e pop %esi 118466: 5f pop %edi 118467: c9 leave 118468: c3 ret 118469: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 11846c: b8 0a 00 00 00 mov $0xa,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 118471: 8d 65 f4 lea -0xc(%ebp),%esp 118474: 5b pop %ebx 118475: 5e pop %esi 118476: 5f pop %edi 118477: c9 leave 118478: c3 ret 118479: 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 ); 11847c: 50 push %eax 11847d: 9d popf _Thread_Enable_dispatch(); 11847e: e8 51 2f 00 00 call 11b3d4 <_Thread_Enable_dispatch> 118483: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 118485: e9 74 ff ff ff jmp 1183fe <== ALWAYS TAKEN 11848a: 66 90 xchg %ax,%ax <== NOT EXECUTED ISR_Level level; if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; if ( !routine ) 11848c: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 118491: 8d 65 f4 lea -0xc(%ebp),%esp 118494: 5b pop %ebx 118495: 5e pop %esi 118496: 5f pop %edi 118497: c9 leave 118498: c3 ret 0011849c : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 11849c: 55 push %ebp 11849d: 89 e5 mov %esp,%ebp 11849f: 57 push %edi 1184a0: 56 push %esi 1184a1: 53 push %ebx 1184a2: 83 ec 2c sub $0x2c,%esp 1184a5: 8b 75 08 mov 0x8(%ebp),%esi 1184a8: 8b 7d 0c mov 0xc(%ebp),%edi 1184ab: 8b 5d 10 mov 0x10(%ebp),%ebx Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) 1184ae: 80 3d 6c f7 13 00 00 cmpb $0x0,0x13f76c 1184b5: 75 0d jne 1184c4 1184b7: b8 0b 00 00 00 mov $0xb,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1184bc: 8d 65 f4 lea -0xc(%ebp),%esp 1184bf: 5b pop %ebx 1184c0: 5e pop %esi 1184c1: 5f pop %edi 1184c2: c9 leave 1184c3: c3 ret rtems_interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) 1184c4: 83 ec 0c sub $0xc,%esp 1184c7: 57 push %edi 1184c8: e8 67 d4 ff ff call 115934 <_TOD_Validate> <== ALWAYS TAKEN 1184cd: 83 c4 10 add $0x10,%esp 1184d0: 84 c0 test %al,%al 1184d2: 74 1e je 1184f2 return RTEMS_INVALID_CLOCK; if ( !routine ) 1184d4: 85 db test %ebx,%ebx 1184d6: 0f 84 a4 00 00 00 je 118580 return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); 1184dc: 83 ec 0c sub $0xc,%esp 1184df: 57 push %edi 1184e0: e8 c3 d3 ff ff call 1158a8 <_TOD_To_seconds> 1184e5: 89 c7 mov %eax,%edi if ( seconds <= _TOD_Seconds_since_epoch() ) 1184e7: 83 c4 10 add $0x10,%esp 1184ea: 3b 05 ec f7 13 00 cmp 0x13f7ec,%eax 1184f0: 77 0e ja 118500 _Watchdog_Insert_seconds( &the_timer->Ticker, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 1184f2: b8 14 00 00 00 mov $0x14,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1184f7: 8d 65 f4 lea -0xc(%ebp),%esp 1184fa: 5b pop %ebx 1184fb: 5e pop %esi 1184fc: 5f pop %edi 1184fd: c9 leave 1184fe: c3 ret 1184ff: 90 nop <== NOT EXECUTED 118500: 50 push %eax 118501: 8d 45 e4 lea -0x1c(%ebp),%eax 118504: 50 push %eax 118505: 56 push %esi 118506: 68 60 fa 13 00 push $0x13fa60 11850b: e8 14 26 00 00 call 11ab24 <_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 ) { 118510: 83 c4 10 add $0x10,%esp 118513: 8b 4d e4 mov -0x1c(%ebp),%ecx 118516: 85 c9 test %ecx,%ecx 118518: 75 5a jne 118574 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 11851a: 8d 48 10 lea 0x10(%eax),%ecx 11851d: 83 ec 0c sub $0xc,%esp 118520: 51 push %ecx 118521: 89 45 d4 mov %eax,-0x2c(%ebp) 118524: 89 4d d0 mov %ecx,-0x30(%ebp) 118527: e8 78 42 00 00 call 11c7a4 <_Watchdog_Remove> the_timer->the_class = TIMER_TIME_OF_DAY; 11852c: 8b 55 d4 mov -0x2c(%ebp),%edx 11852f: 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; 118536: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx) the_watchdog->routine = routine; 11853d: 89 5a 2c mov %ebx,0x2c(%edx) the_watchdog->id = id; 118540: 89 72 30 mov %esi,0x30(%edx) the_watchdog->user_data = user_data; 118543: 8b 45 14 mov 0x14(%ebp),%eax 118546: 89 42 34 mov %eax,0x34(%edx) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 118549: 2b 3d ec f7 13 00 sub 0x13f7ec,%edi 11854f: 89 7a 1c mov %edi,0x1c(%edx) _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 118552: 58 pop %eax 118553: 5a pop %edx 118554: 8b 4d d0 mov -0x30(%ebp),%ecx 118557: 51 push %ecx 118558: 68 2c f8 13 00 push $0x13f82c 11855d: e8 0a 41 00 00 call 11c66c <_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(); 118562: e8 6d 2e 00 00 call 11b3d4 <_Thread_Enable_dispatch> 118567: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 118569: 83 c4 10 add $0x10,%esp 11856c: e9 4b ff ff ff jmp 1184bc <== ALWAYS TAKEN 118571: 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 ) { 118574: b8 04 00 00 00 mov $0x4,%eax 118579: e9 3e ff ff ff jmp 1184bc <== ALWAYS TAKEN 11857e: 66 90 xchg %ax,%ax <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; if ( !routine ) 118580: b8 09 00 00 00 mov $0x9,%eax 118585: e9 32 ff ff ff jmp 1184bc <== ALWAYS TAKEN 0011858c : rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) { 11858c: 55 push %ebp 11858d: 89 e5 mov %esp,%ebp 11858f: 53 push %ebx 118590: 83 ec 14 sub $0x14,%esp 118593: 8b 5d 0c mov 0xc(%ebp),%ebx Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) 118596: 85 db test %ebx,%ebx 118598: 74 4a je 1185e4 11859a: 51 push %ecx 11859b: 8d 45 f4 lea -0xc(%ebp),%eax 11859e: 50 push %eax 11859f: ff 75 08 pushl 0x8(%ebp) 1185a2: 68 60 fa 13 00 push $0x13fa60 1185a7: e8 78 25 00 00 call 11ab24 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 1185ac: 83 c4 10 add $0x10,%esp 1185af: 8b 55 f4 mov -0xc(%ebp),%edx 1185b2: 85 d2 test %edx,%edx 1185b4: 74 0a je 1185c0 1185b6: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1185bb: 8b 5d fc mov -0x4(%ebp),%ebx 1185be: c9 leave 1185bf: c3 ret the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; 1185c0: 8b 50 38 mov 0x38(%eax),%edx 1185c3: 89 13 mov %edx,(%ebx) the_info->initial = the_timer->Ticker.initial; 1185c5: 8b 50 1c mov 0x1c(%eax),%edx 1185c8: 89 53 04 mov %edx,0x4(%ebx) the_info->start_time = the_timer->Ticker.start_time; 1185cb: 8b 50 24 mov 0x24(%eax),%edx 1185ce: 89 53 08 mov %edx,0x8(%ebx) the_info->stop_time = the_timer->Ticker.stop_time; 1185d1: 8b 40 28 mov 0x28(%eax),%eax 1185d4: 89 43 0c mov %eax,0xc(%ebx) _Thread_Enable_dispatch(); 1185d7: e8 f8 2d 00 00 call 11b3d4 <_Thread_Enable_dispatch> 1185dc: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1185de: 8b 5d fc mov -0x4(%ebp),%ebx 1185e1: c9 leave 1185e2: c3 ret 1185e3: 90 nop <== NOT EXECUTED ) { Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) 1185e4: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1185e9: 8b 5d fc mov -0x4(%ebp),%ebx 1185ec: c9 leave 1185ed: c3 ret 0011889c : rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) { 11889c: 55 push %ebp 11889d: 89 e5 mov %esp,%ebp 11889f: 56 push %esi 1188a0: 53 push %ebx 1188a1: 83 ec 10 sub $0x10,%esp 1188a4: 8b 45 08 mov 0x8(%ebp),%eax 1188a7: 85 c0 test %eax,%eax 1188a9: 75 0d jne 1188b8 if (status) { initialized = false; } #endif return status; 1188ab: b8 13 00 00 00 mov $0x13,%eax } 1188b0: 8d 65 f8 lea -0x8(%ebp),%esp 1188b3: 5b pop %ebx 1188b4: 5e pop %esi 1188b5: c9 leave 1188b6: c3 ret 1188b7: 90 nop <== NOT EXECUTED 1188b8: 0f b6 15 14 72 13 00 movzbl 0x137214,%edx 1188bf: 39 d0 cmp %edx,%eax 1188c1: 76 35 jbe 1188f8 * 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 ) 1188c3: 40 inc %eax 1188c4: 75 e5 jne 1188ab 1188c6: 31 f6 xor %esi,%esi 1188c8: 8b 15 58 f7 13 00 mov 0x13f758,%edx 1188ce: 42 inc %edx 1188cf: 89 15 58 f7 13 00 mov %edx,0x13f758 /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 1188d5: 8a 1d c0 af 13 00 mov 0x13afc0,%bl initialized = true; 1188db: c6 05 c0 af 13 00 01 movb $0x1,0x13afc0 _Thread_Enable_dispatch(); 1188e2: e8 ed 2a 00 00 call 11b3d4 <_Thread_Enable_dispatch> if ( tmpInitialized ) 1188e7: 84 db test %bl,%bl 1188e9: 74 11 je 1188fc 1188eb: b8 0e 00 00 00 mov $0xe,%eax initialized = false; } #endif return status; } 1188f0: 8d 65 f8 lea -0x8(%ebp),%esp 1188f3: 5b pop %ebx 1188f4: 5e pop %esi 1188f5: c9 leave 1188f6: c3 ret 1188f7: 90 nop <== NOT EXECUTED 1188f8: 89 c6 mov %eax,%esi 1188fa: eb cc jmp 1188c8 <== ALWAYS TAKEN * 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( 1188fc: 83 ec 08 sub $0x8,%esp 1188ff: 8d 45 f4 lea -0xc(%ebp),%eax 118902: 50 push %eax 118903: 8b 45 10 mov 0x10(%ebp),%eax 118906: 80 cc 80 or $0x80,%ah 118909: 50 push %eax 11890a: 68 00 01 00 00 push $0x100 11890f: ff 75 0c pushl 0xc(%ebp) 118912: 56 push %esi 118913: 68 45 4d 49 54 push $0x54494d45 118918: e8 87 f0 ff ff call 1179a4 <== ALWAYS TAKEN /* 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) { 11891d: 83 c4 20 add $0x20,%esp 118920: 85 c0 test %eax,%eax 118922: 74 10 je 118934 initialized = false; 118924: c6 05 c0 af 13 00 00 movb $0x0,0x13afc0 initialized = false; } #endif return status; } 11892b: 8d 65 f8 lea -0x8(%ebp),%esp 11892e: 5b pop %ebx 11892f: 5e pop %esi 118930: c9 leave 118931: c3 ret 118932: 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) 118934: 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( 118937: 0f b7 c8 movzwl %ax,%ecx 11893a: 8b 15 fc f6 13 00 mov 0x13f6fc,%edx 118940: 8b 14 8a mov (%edx,%ecx,4),%edx 118943: 89 15 e0 af 13 00 mov %edx,0x13afe0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 118949: c7 05 10 b0 13 00 14 movl $0x13b014,0x13b010 118950: b0 13 00 the_chain->permanent_null = NULL; 118953: c7 05 14 b0 13 00 00 movl $0x0,0x13b014 11895a: 00 00 00 the_chain->last = _Chain_Head(the_chain); 11895d: c7 05 18 b0 13 00 10 movl $0x13b010,0x13b018 118964: b0 13 00 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 118967: c7 05 48 b0 13 00 4c movl $0x13b04c,0x13b048 11896e: b0 13 00 the_chain->permanent_null = NULL; 118971: c7 05 4c b0 13 00 00 movl $0x0,0x13b04c 118978: 00 00 00 the_chain->last = _Chain_Head(the_chain); 11897b: c7 05 50 b0 13 00 48 movl $0x13b048,0x13b050 118982: b0 13 00 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 118985: c7 05 f0 af 13 00 00 movl $0x0,0x13aff0 11898c: 00 00 00 the_watchdog->routine = routine; 11898f: c7 05 04 b0 13 00 3c movl $0x11b23c,0x13b004 118996: b2 11 00 the_watchdog->id = id; 118999: a3 08 b0 13 00 mov %eax,0x13b008 the_watchdog->user_data = user_data; 11899e: c7 05 0c b0 13 00 00 movl $0x0,0x13b00c 1189a5: 00 00 00 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 1189a8: c7 05 28 b0 13 00 00 movl $0x0,0x13b028 1189af: 00 00 00 the_watchdog->routine = routine; 1189b2: c7 05 3c b0 13 00 3c movl $0x11b23c,0x13b03c 1189b9: b2 11 00 the_watchdog->id = id; 1189bc: a3 40 b0 13 00 mov %eax,0x13b040 the_watchdog->user_data = user_data; 1189c1: c7 05 44 b0 13 00 00 movl $0x0,0x13b044 1189c8: 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; 1189cb: c7 05 e4 af 13 00 70 movl $0x118c70,0x13afe4 1189d2: 8c 11 00 ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; 1189d5: 8b 15 c4 f8 13 00 mov 0x13f8c4,%edx 1189db: 89 15 1c b0 13 00 mov %edx,0x13b01c ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 1189e1: 8b 15 ec f7 13 00 mov 0x13f7ec,%edx 1189e7: 89 15 54 b0 13 00 mov %edx,0x13b054 ts->insert_chain = NULL; 1189ed: c7 05 58 b0 13 00 00 movl $0x0,0x13b058 1189f4: 00 00 00 ts->active = false; 1189f7: c6 05 5c b0 13 00 00 movb $0x0,0x13b05c /* * The default timer server is now available. */ _Timer_server = ts; 1189fe: c7 05 a0 fa 13 00 e0 movl $0x13afe0,0x13faa0 118a05: af 13 00 /* * Start the timer server */ status = rtems_task_start( 118a08: 52 push %edx 118a09: 68 e0 af 13 00 push $0x13afe0 118a0e: 68 c4 8a 11 00 push $0x118ac4 118a13: 50 push %eax 118a14: e8 23 f6 ff ff call 11803c <== ALWAYS TAKEN if (status) { initialized = false; } #endif return status; 118a19: 83 c4 10 add $0x10,%esp 118a1c: e9 8f fe ff ff jmp 1188b0 <== ALWAYS TAKEN 00118614 : */ rtems_status_code rtems_timer_reset( rtems_id id ) { 118614: 55 push %ebp 118615: 89 e5 mov %esp,%ebp 118617: 56 push %esi 118618: 53 push %ebx 118619: 83 ec 24 sub $0x24,%esp 11861c: 8d 45 f4 lea -0xc(%ebp),%eax 11861f: 50 push %eax 118620: ff 75 08 pushl 0x8(%ebp) 118623: 68 60 fa 13 00 push $0x13fa60 118628: e8 f7 24 00 00 call 11ab24 <_Objects_Get> 11862d: 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 ) { 11862f: 83 c4 10 add $0x10,%esp 118632: 8b 45 f4 mov -0xc(%ebp),%eax 118635: 85 c0 test %eax,%eax 118637: 74 0f je 118648 118639: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11863e: 8d 65 f8 lea -0x8(%ebp),%esp 118641: 5b pop %ebx 118642: 5e pop %esi 118643: c9 leave 118644: c3 ret 118645: 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 ) { 118648: 8b 43 38 mov 0x38(%ebx),%eax 11864b: 85 c0 test %eax,%eax 11864d: 74 1d je 11866c _Watchdog_Remove( &the_timer->Ticker ); _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); } else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { 11864f: 48 dec %eax 118650: 74 3a je 11868c 118652: 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(); 118657: 89 45 e4 mov %eax,-0x1c(%ebp) 11865a: e8 75 2d 00 00 call 11b3d4 <_Thread_Enable_dispatch> 11865f: 8b 45 e4 mov -0x1c(%ebp),%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 118662: 8d 65 f8 lea -0x8(%ebp),%esp 118665: 5b pop %ebx 118666: 5e pop %esi 118667: c9 leave 118668: c3 ret 118669: 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 ); 11866c: 83 c3 10 add $0x10,%ebx 11866f: 83 ec 0c sub $0xc,%esp 118672: 53 push %ebx 118673: e8 2c 41 00 00 call 11c7a4 <_Watchdog_Remove> _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); 118678: 59 pop %ecx 118679: 5e pop %esi 11867a: 53 push %ebx 11867b: 68 38 f8 13 00 push $0x13f838 118680: e8 e7 3f 00 00 call 11c66c <_Watchdog_Insert> 118685: 31 c0 xor %eax,%eax 118687: 83 c4 10 add $0x10,%esp 11868a: eb cb jmp 118657 <== ALWAYS TAKEN } else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { Timer_server_Control *timer_server = _Timer_server; 11868c: 8b 35 a0 fa 13 00 mov 0x13faa0,%esi if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker ); 118692: 83 ec 0c sub $0xc,%esp 118695: 8d 43 10 lea 0x10(%ebx),%eax 118698: 50 push %eax 118699: e8 06 41 00 00 call 11c7a4 <_Watchdog_Remove> (*timer_server->schedule_operation)( timer_server, the_timer ); 11869e: 58 pop %eax 11869f: 5a pop %edx 1186a0: 53 push %ebx 1186a1: 56 push %esi 1186a2: ff 56 04 call *0x4(%esi) 1186a5: 31 c0 xor %eax,%eax 1186a7: 83 c4 10 add $0x10,%esp 1186aa: eb ab jmp 118657 <== ALWAYS TAKEN 001186ac : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 1186ac: 55 push %ebp 1186ad: 89 e5 mov %esp,%ebp 1186af: 57 push %edi 1186b0: 56 push %esi 1186b1: 53 push %ebx 1186b2: 83 ec 2c sub $0x2c,%esp 1186b5: 8b 7d 0c mov 0xc(%ebp),%edi 1186b8: 8b 75 10 mov 0x10(%ebp),%esi Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; 1186bb: 8b 1d a0 fa 13 00 mov 0x13faa0,%ebx if ( !timer_server ) 1186c1: 85 db test %ebx,%ebx 1186c3: 0f 84 9f 00 00 00 je 118768 return RTEMS_INCORRECT_STATE; if ( !routine ) 1186c9: 85 f6 test %esi,%esi 1186cb: 0f 84 a3 00 00 00 je 118774 return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) 1186d1: 85 ff test %edi,%edi 1186d3: 75 0f jne 1186e4 1186d5: b8 0a 00 00 00 mov $0xa,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1186da: 8d 65 f4 lea -0xc(%ebp),%esp 1186dd: 5b pop %ebx 1186de: 5e pop %esi 1186df: 5f pop %edi 1186e0: c9 leave 1186e1: c3 ret 1186e2: 66 90 xchg %ax,%ax <== NOT EXECUTED 1186e4: 52 push %edx 1186e5: 8d 45 e4 lea -0x1c(%ebp),%eax 1186e8: 50 push %eax 1186e9: ff 75 08 pushl 0x8(%ebp) 1186ec: 68 60 fa 13 00 push $0x13fa60 1186f1: e8 2e 24 00 00 call 11ab24 <_Objects_Get> 1186f6: 89 c2 mov %eax,%edx if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { 1186f8: 83 c4 10 add $0x10,%esp 1186fb: 8b 45 e4 mov -0x1c(%ebp),%eax 1186fe: 85 c0 test %eax,%eax 118700: 75 56 jne 118758 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 118702: 83 ec 0c sub $0xc,%esp 118705: 8d 42 10 lea 0x10(%edx),%eax 118708: 50 push %eax 118709: 89 55 d4 mov %edx,-0x2c(%ebp) 11870c: e8 93 40 00 00 call 11c7a4 <_Watchdog_Remove> _ISR_Disable( level ); 118711: 9c pushf 118712: fa cli 118713: 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 ) { 118714: 83 c4 10 add $0x10,%esp 118717: 8b 55 d4 mov -0x2c(%ebp),%edx 11871a: 8b 4a 18 mov 0x18(%edx),%ecx 11871d: 85 c9 test %ecx,%ecx 11871f: 75 5f jne 118780 /* * 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; 118721: 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; 118728: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx) the_watchdog->routine = routine; 11872f: 89 72 2c mov %esi,0x2c(%edx) the_watchdog->id = id; 118732: 8b 4d 08 mov 0x8(%ebp),%ecx 118735: 89 4a 30 mov %ecx,0x30(%edx) the_watchdog->user_data = user_data; 118738: 8b 4d 14 mov 0x14(%ebp),%ecx 11873b: 89 4a 34 mov %ecx,0x34(%edx) _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; 11873e: 89 7a 1c mov %edi,0x1c(%edx) _ISR_Enable( level ); 118741: 50 push %eax 118742: 9d popf (*timer_server->schedule_operation)( timer_server, the_timer ); 118743: 83 ec 08 sub $0x8,%esp 118746: 52 push %edx 118747: 53 push %ebx 118748: ff 53 04 call *0x4(%ebx) _Thread_Enable_dispatch(); 11874b: e8 84 2c 00 00 call 11b3d4 <_Thread_Enable_dispatch> 118750: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 118752: 83 c4 10 add $0x10,%esp 118755: eb 83 jmp 1186da <== ALWAYS TAKEN 118757: 90 nop <== NOT EXECUTED if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { 118758: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11875d: 8d 65 f4 lea -0xc(%ebp),%esp 118760: 5b pop %ebx 118761: 5e pop %esi 118762: 5f pop %edi 118763: c9 leave 118764: c3 ret 118765: 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 ) 118768: b8 0e 00 00 00 mov $0xe,%eax 11876d: e9 68 ff ff ff jmp 1186da <== ALWAYS TAKEN 118772: 66 90 xchg %ax,%ax <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !routine ) 118774: b8 09 00 00 00 mov $0x9,%eax 118779: e9 5c ff ff ff jmp 1186da <== ALWAYS TAKEN 11877e: 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 ); 118780: 50 push %eax 118781: 9d popf _Thread_Enable_dispatch(); 118782: e8 4d 2c 00 00 call 11b3d4 <_Thread_Enable_dispatch> 118787: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 118789: e9 4c ff ff ff jmp 1186da <== ALWAYS TAKEN 00118790 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 118790: 55 push %ebp 118791: 89 e5 mov %esp,%ebp 118793: 57 push %edi 118794: 56 push %esi 118795: 53 push %ebx 118796: 83 ec 2c sub $0x2c,%esp 118799: 8b 7d 0c mov 0xc(%ebp),%edi 11879c: 8b 75 10 mov 0x10(%ebp),%esi Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; 11879f: 8b 1d a0 fa 13 00 mov 0x13faa0,%ebx if ( !timer_server ) 1187a5: 85 db test %ebx,%ebx 1187a7: 0f 84 d7 00 00 00 je 118884 return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) 1187ad: 80 3d 6c f7 13 00 00 cmpb $0x0,0x13f76c 1187b4: 0f 84 aa 00 00 00 je 118864 <== ALWAYS TAKEN return RTEMS_NOT_DEFINED; if ( !routine ) 1187ba: 85 f6 test %esi,%esi 1187bc: 0f 84 b2 00 00 00 je 118874 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) 1187c2: 83 ec 0c sub $0xc,%esp 1187c5: 57 push %edi 1187c6: e8 69 d1 ff ff call 115934 <_TOD_Validate> 1187cb: 83 c4 10 add $0x10,%esp 1187ce: 84 c0 test %al,%al 1187d0: 75 0e jne 1187e0 the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); (*timer_server->schedule_operation)( timer_server, the_timer ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 1187d2: b8 14 00 00 00 mov $0x14,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1187d7: 8d 65 f4 lea -0xc(%ebp),%esp 1187da: 5b pop %ebx 1187db: 5e pop %esi 1187dc: 5f pop %edi 1187dd: c9 leave 1187de: c3 ret 1187df: 90 nop <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 1187e0: 83 ec 0c sub $0xc,%esp 1187e3: 57 push %edi 1187e4: e8 bf d0 ff ff call 1158a8 <_TOD_To_seconds> 1187e9: 89 c7 mov %eax,%edi if ( seconds <= _TOD_Seconds_since_epoch() ) 1187eb: 83 c4 10 add $0x10,%esp 1187ee: 3b 05 ec f7 13 00 cmp 0x13f7ec,%eax 1187f4: 76 dc jbe 1187d2 1187f6: 52 push %edx 1187f7: 8d 45 e4 lea -0x1c(%ebp),%eax 1187fa: 50 push %eax 1187fb: ff 75 08 pushl 0x8(%ebp) 1187fe: 68 60 fa 13 00 push $0x13fa60 118803: e8 1c 23 00 00 call 11ab24 <_Objects_Get> 118808: 89 c2 mov %eax,%edx return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { 11880a: 83 c4 10 add $0x10,%esp 11880d: 8b 45 e4 mov -0x1c(%ebp),%eax 118810: 85 c0 test %eax,%eax 118812: 75 7c jne 118890 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 118814: 83 ec 0c sub $0xc,%esp 118817: 8d 42 10 lea 0x10(%edx),%eax 11881a: 50 push %eax 11881b: 89 55 d4 mov %edx,-0x2c(%ebp) 11881e: e8 81 3f 00 00 call 11c7a4 <_Watchdog_Remove> the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; 118823: 8b 55 d4 mov -0x2c(%ebp),%edx 118826: 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; 11882d: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx) the_watchdog->routine = routine; 118834: 89 72 2c mov %esi,0x2c(%edx) the_watchdog->id = id; 118837: 8b 45 08 mov 0x8(%ebp),%eax 11883a: 89 42 30 mov %eax,0x30(%edx) the_watchdog->user_data = user_data; 11883d: 8b 45 14 mov 0x14(%ebp),%eax 118840: 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(); 118843: 2b 3d ec f7 13 00 sub 0x13f7ec,%edi 118849: 89 7a 1c mov %edi,0x1c(%edx) (*timer_server->schedule_operation)( timer_server, the_timer ); 11884c: 58 pop %eax 11884d: 59 pop %ecx 11884e: 52 push %edx 11884f: 53 push %ebx 118850: ff 53 04 call *0x4(%ebx) _Thread_Enable_dispatch(); 118853: e8 7c 2b 00 00 call 11b3d4 <_Thread_Enable_dispatch> 118858: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 11885a: 83 c4 10 add $0x10,%esp 11885d: e9 75 ff ff ff jmp 1187d7 <== ALWAYS TAKEN 118862: 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 ) 118864: b8 0b 00 00 00 mov $0xb,%eax <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 118869: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 11886c: 5b pop %ebx <== NOT EXECUTED 11886d: 5e pop %esi <== NOT EXECUTED 11886e: 5f pop %edi <== NOT EXECUTED 11886f: c9 leave <== NOT EXECUTED 118870: c3 ret <== NOT EXECUTED 118871: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !routine ) 118874: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 118879: 8d 65 f4 lea -0xc(%ebp),%esp 11887c: 5b pop %ebx 11887d: 5e pop %esi 11887e: 5f pop %edi 11887f: c9 leave 118880: c3 ret 118881: 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 ) 118884: b8 0e 00 00 00 mov $0xe,%eax 118889: e9 49 ff ff ff jmp 1187d7 <== ALWAYS TAKEN 11888e: 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 ) { 118890: b8 04 00 00 00 mov $0x4,%eax 118895: e9 3d ff ff ff jmp 1187d7 <== ALWAYS TAKEN 0010cb40 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 10cb40: 55 push %ebp <== NOT EXECUTED 10cb41: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10cb43: 57 push %edi <== NOT EXECUTED 10cb44: 56 push %esi <== NOT EXECUTED 10cb45: 53 push %ebx <== NOT EXECUTED 10cb46: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED 10cb49: 89 c3 mov %eax,%ebx <== NOT EXECUTED 10cb4b: 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) 10cb4d: 25 00 00 00 20 and $0x20000000,%eax <== NOT EXECUTED 10cb52: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED 10cb55: 74 2b je 10cb82 <== NOT EXECUTED { if (rtems_panic_in_progress++) 10cb57: 8b 15 40 d3 12 00 mov 0x12d340,%edx <== NOT EXECUTED 10cb5d: 8d 42 01 lea 0x1(%edx),%eax <== NOT EXECUTED 10cb60: a3 40 d3 12 00 mov %eax,0x12d340 <== NOT EXECUTED 10cb65: 85 d2 test %edx,%edx <== NOT EXECUTED 10cb67: 74 10 je 10cb79 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10cb69: a1 d8 d4 12 00 mov 0x12d4d8,%eax <== NOT EXECUTED 10cb6e: 40 inc %eax <== NOT EXECUTED 10cb6f: a3 d8 d4 12 00 mov %eax,0x12d4d8 <== NOT EXECUTED RTEMS_COMPILER_MEMORY_BARRIER(); 10cb74: a1 40 d3 12 00 mov 0x12d340,%eax <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 10cb79: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED 10cb7c: 0f 8f e6 00 00 00 jg 10cc68 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 10cb82: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10cb85: a1 40 b1 12 00 mov 0x12b140,%eax <== NOT EXECUTED 10cb8a: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 10cb8d: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED 10cb90: e8 73 c1 00 00 call 118d08 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 10cb95: 89 d8 mov %ebx,%eax <== NOT EXECUTED 10cb97: 25 ff ff ff 8f and $0x8fffffff,%eax <== NOT EXECUTED 10cb9c: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 10cb9f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10cba2: f7 c3 00 00 00 40 test $0x40000000,%ebx <== NOT EXECUTED 10cba8: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED 10cbab: 0f 85 d7 00 00 00 jne 10cc88 <== NOT EXECUTED 10cbb1: 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); 10cbb3: 52 push %edx <== NOT EXECUTED 10cbb4: 51 push %ecx <== NOT EXECUTED 10cbb5: 56 push %esi <== NOT EXECUTED 10cbb6: a1 40 b1 12 00 mov 0x12b140,%eax <== NOT EXECUTED 10cbbb: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cbbe: e8 49 1c 01 00 call 11e80c <== NOT EXECUTED 10cbc3: 89 c6 mov %eax,%esi <== NOT EXECUTED if (status) 10cbc5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10cbc8: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 10cbcb: 85 c0 test %eax,%eax <== NOT EXECUTED 10cbcd: 0f 85 c9 00 00 00 jne 10cc9c <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) 10cbd3: 83 ff 00 cmp $0x0,%edi <== NOT EXECUTED 10cbd6: 74 30 je 10cc08 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 10cbd8: 7e 15 jle 10cbef <== NOT EXECUTED 10cbda: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10cbdd: 57 push %edi <== NOT EXECUTED 10cbde: e8 e1 cb 00 00 call 1197c4 <== NOT EXECUTED 10cbe3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10cbe6: 80 38 00 cmpb $0x0,(%eax) <== NOT EXECUTED 10cbe9: 0f 85 d9 00 00 00 jne 10ccc8 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 10cbef: 51 push %ecx <== NOT EXECUTED 10cbf0: 57 push %edi <== NOT EXECUTED 10cbf1: 68 a9 6a 12 00 push $0x126aa9 <== NOT EXECUTED 10cbf6: a1 40 b1 12 00 mov 0x12b140,%eax <== NOT EXECUTED 10cbfb: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cbfe: e8 4d c4 00 00 call 119050 <== NOT EXECUTED 10cc03: 01 c6 add %eax,%esi <== NOT EXECUTED 10cc05: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 10cc08: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10cc0b: 68 eb 5d 12 00 push $0x125deb <== NOT EXECUTED 10cc10: a1 40 b1 12 00 mov 0x12b140,%eax <== NOT EXECUTED 10cc15: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cc18: e8 33 c4 00 00 call 119050 <== NOT EXECUTED 10cc1d: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED (void) fflush(stderr); 10cc20: 5a pop %edx <== NOT EXECUTED 10cc21: a1 40 b1 12 00 mov 0x12b140,%eax <== NOT EXECUTED 10cc26: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cc29: e8 da c0 00 00 call 118d08 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 10cc2e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10cc31: 81 e3 00 00 00 30 and $0x30000000,%ebx <== NOT EXECUTED 10cc37: 74 1f je 10cc58 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 10cc39: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10cc3c: 85 c0 test %eax,%eax <== NOT EXECUTED 10cc3e: 74 34 je 10cc74 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 10cc40: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10cc43: 68 bd 6a 12 00 push $0x126abd <== NOT EXECUTED 10cc48: 6a 00 push $0x0 <== NOT EXECUTED 10cc4a: e8 a9 00 00 00 call 10ccf8 <== NOT EXECUTED _exit(local_errno); 10cc4f: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED 10cc52: e8 d1 0a 00 00 call 10d728 <_exit> <== NOT EXECUTED 10cc57: 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"); 10cc58: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 10cc5b: 01 f0 add %esi,%eax <== NOT EXECUTED rtems_error(0, "fatal error, aborting"); abort(); } } return chars_written; } 10cc5d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10cc60: 5b pop %ebx <== NOT EXECUTED 10cc61: 5e pop %esi <== NOT EXECUTED 10cc62: 5f pop %edi <== NOT EXECUTED 10cc63: c9 leave <== NOT EXECUTED 10cc64: c3 ret <== NOT EXECUTED 10cc65: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); abort(); 10cc68: 31 c0 xor %eax,%eax <== NOT EXECUTED } } return chars_written; } 10cc6a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10cc6d: 5b pop %ebx <== NOT EXECUTED 10cc6e: 5e pop %esi <== NOT EXECUTED 10cc6f: 5f pop %edi <== NOT EXECUTED 10cc70: c9 leave <== NOT EXECUTED 10cc71: c3 ret <== NOT EXECUTED 10cc72: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_error(0, "fatal error, exiting"); _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); 10cc74: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10cc77: 68 d2 6a 12 00 push $0x126ad2 <== NOT EXECUTED 10cc7c: 6a 00 push $0x0 <== NOT EXECUTED 10cc7e: e8 75 00 00 00 call 10ccf8 <== NOT EXECUTED abort(); 10cc83: e8 f8 bc 00 00 call 118980 <== 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; 10cc88: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED 10cc8b: e8 24 bd 00 00 call 1189b4 <__errno> <== NOT EXECUTED 10cc90: 8b 38 mov (%eax),%edi <== NOT EXECUTED 10cc92: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED 10cc95: e9 19 ff ff ff jmp 10cbb3 <== NOT EXECUTED 10cc9a: 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)); 10cc9c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10cc9f: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 10cca2: e8 81 fe ff ff call 10cb28 <== NOT EXECUTED 10cca7: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 10ccaa: 50 push %eax <== NOT EXECUTED 10ccab: 68 8e 6a 12 00 push $0x126a8e <== NOT EXECUTED 10ccb0: a1 40 b1 12 00 mov 0x12b140,%eax <== NOT EXECUTED 10ccb5: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10ccb8: e8 93 c3 00 00 call 119050 <== NOT EXECUTED 10ccbd: 01 c6 add %eax,%esi <== NOT EXECUTED 10ccbf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10ccc2: e9 0c ff ff ff jmp 10cbd3 <== NOT EXECUTED 10ccc7: 90 nop <== NOT EXECUTED if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 10ccc8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10cccb: 57 push %edi <== NOT EXECUTED 10cccc: e8 f3 ca 00 00 call 1197c4 <== NOT EXECUTED 10ccd1: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 10ccd4: 50 push %eax <== NOT EXECUTED 10ccd5: 68 9c 6a 12 00 push $0x126a9c <== NOT EXECUTED 10ccda: e9 17 ff ff ff jmp 10cbf6 <== NOT EXECUTED 0012b590 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 12b590: 55 push %ebp 12b591: 89 e5 mov %esp,%ebp 12b593: 57 push %edi 12b594: 56 push %esi 12b595: 53 push %ebx 12b596: 83 ec 1c sub $0x1c,%esp 12b599: 89 c6 mov %eax,%esi 12b59b: 89 55 e0 mov %edx,-0x20(%ebp) 12b59e: 31 ff xor %edi,%edi 12b5a0: c7 45 e4 ff ff ff 7f movl $0x7fffffff,-0x1c(%ebp) 12b5a7: 31 db xor %ebx,%ebx unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 12b5a9: 8b 46 04 mov 0x4(%esi),%eax 12b5ac: 48 dec %eax 12b5ad: 89 46 04 mov %eax,0x4(%esi) 12b5b0: 85 c0 test %eax,%eax 12b5b2: 78 52 js 12b606 <== ALWAYS TAKEN 12b5b4: 8b 06 mov (%esi),%eax 12b5b6: 0f b6 08 movzbl (%eax),%ecx 12b5b9: 40 inc %eax 12b5ba: 89 06 mov %eax,(%esi) if (c == ':') 12b5bc: 83 f9 3a cmp $0x3a,%ecx 12b5bf: 74 5f je 12b620 break; if (sign == 0) { 12b5c1: 85 ff test %edi,%edi 12b5c3: 75 0e jne 12b5d3 <== ALWAYS TAKEN if (c == '-') { 12b5c5: 83 f9 2d cmp $0x2d,%ecx 12b5c8: 0f 84 8a 00 00 00 je 12b658 <== ALWAYS TAKEN sign = -1; limit++; continue; 12b5ce: bf 01 00 00 00 mov $0x1,%edi } sign = 1; } if (!isdigit(c)) 12b5d3: a1 c8 84 16 00 mov 0x1684c8,%eax 12b5d8: f6 44 08 01 04 testb $0x4,0x1(%eax,%ecx,1) 12b5dd: 74 6d je 12b64c <== ALWAYS TAKEN return 0; d = c - '0'; if ((i > (limit / 10)) 12b5df: b8 cd cc cc cc mov $0xcccccccd,%eax 12b5e4: f7 65 e4 mull -0x1c(%ebp) 12b5e7: c1 ea 03 shr $0x3,%edx 12b5ea: 39 d3 cmp %edx,%ebx 12b5ec: 77 5e ja 12b64c <== ALWAYS TAKEN } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 12b5ee: 83 e9 30 sub $0x30,%ecx if ((i > (limit / 10)) 12b5f1: 39 d3 cmp %edx,%ebx 12b5f3: 74 47 je 12b63c <== ALWAYS TAKEN || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 12b5f5: 8d 04 9b lea (%ebx,%ebx,4),%eax 12b5f8: 8d 1c 41 lea (%ecx,%eax,2),%ebx unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 12b5fb: 8b 46 04 mov 0x4(%esi),%eax 12b5fe: 48 dec %eax 12b5ff: 89 46 04 mov %eax,0x4(%esi) 12b602: 85 c0 test %eax,%eax 12b604: 79 ae jns 12b5b4 <== NEVER TAKEN 12b606: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12b609: 56 push %esi <== NOT EXECUTED 12b60a: ff 35 e0 84 16 00 pushl 0x1684e0 <== NOT EXECUTED 12b610: e8 03 a5 01 00 call 145b18 <__srget_r> <== NOT EXECUTED 12b615: 89 c1 mov %eax,%ecx <== NOT EXECUTED 12b617: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if (c == ':') 12b61a: 83 f9 3a cmp $0x3a,%ecx <== NOT EXECUTED 12b61d: 75 a2 jne 12b5c1 <== NOT EXECUTED 12b61f: 90 nop <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) 12b620: 85 ff test %edi,%edi 12b622: 74 28 je 12b64c <== ALWAYS TAKEN return 0; *val = i * sign; 12b624: 0f af df imul %edi,%ebx 12b627: 8b 45 e0 mov -0x20(%ebp),%eax 12b62a: 89 18 mov %ebx,(%eax) 12b62c: b8 01 00 00 00 mov $0x1,%eax return 1; } 12b631: 8d 65 f4 lea -0xc(%ebp),%esp 12b634: 5b pop %ebx 12b635: 5e pop %esi 12b636: 5f pop %edi 12b637: c9 leave 12b638: c3 ret 12b639: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 12b63c: 8d 04 9b lea (%ebx,%ebx,4),%eax <== NOT EXECUTED 12b63f: d1 e0 shl %eax <== NOT EXECUTED 12b641: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 12b644: 29 c2 sub %eax,%edx <== NOT EXECUTED 12b646: 39 d1 cmp %edx,%ecx <== NOT EXECUTED 12b648: 76 ab jbe 12b5f5 <== NOT EXECUTED 12b64a: 66 90 xchg %ax,%ax <== NOT EXECUTED i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; return 1; 12b64c: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12b64e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12b651: 5b pop %ebx <== NOT EXECUTED 12b652: 5e pop %esi <== NOT EXECUTED 12b653: 5f pop %edi <== NOT EXECUTED 12b654: c9 leave <== NOT EXECUTED 12b655: c3 ret <== NOT EXECUTED 12b656: 66 90 xchg %ax,%ax <== NOT EXECUTED if (c == ':') break; if (sign == 0) { if (c == '-') { sign = -1; limit++; 12b658: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED 12b65b: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED continue; 12b660: e9 44 ff ff ff jmp 12b5a9 <== NOT EXECUTED 0012b668 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 12b668: 55 push %ebp 12b669: 89 e5 mov %esp,%ebp 12b66b: 57 push %edi 12b66c: 56 push %esi 12b66d: 53 push %ebx 12b66e: 83 ec 0c sub $0xc,%esp 12b671: 89 c3 mov %eax,%ebx 12b673: 89 ce mov %ecx,%esi 12b675: 8b 7d 08 mov 0x8(%ebp),%edi int c; *name = *bufp; 12b678: 8b 01 mov (%ecx),%eax 12b67a: 89 02 mov %eax,(%edx) 12b67c: eb 26 jmp 12b6a4 <== ALWAYS TAKEN 12b67e: 66 90 xchg %ax,%ax <== NOT EXECUTED for (;;) { c = getc(fp); 12b680: 8b 13 mov (%ebx),%edx 12b682: 0f b6 02 movzbl (%edx),%eax 12b685: 42 inc %edx 12b686: 89 13 mov %edx,(%ebx) if (c == ':') { 12b688: 83 f8 3a cmp $0x3a,%eax 12b68b: 74 3b je 12b6c8 if (nlFlag) return 0; break; } if (c == '\n') { 12b68d: 83 f8 0a cmp $0xa,%eax 12b690: 74 56 je 12b6e8 if (!nlFlag) return 0; break; } if (c == EOF) 12b692: 83 f8 ff cmp $0xffffffff,%eax 12b695: 74 59 je 12b6f0 <== ALWAYS TAKEN return 0; if (*nleft < 2) 12b697: 83 3f 01 cmpl $0x1,(%edi) 12b69a: 76 54 jbe 12b6f0 <== ALWAYS TAKEN return 0; **bufp = c; 12b69c: 8b 16 mov (%esi),%edx 12b69e: 88 02 mov %al,(%edx) ++(*bufp); 12b6a0: ff 06 incl (%esi) --(*nleft); 12b6a2: ff 0f decl (%edi) { int c; *name = *bufp; for (;;) { c = getc(fp); 12b6a4: 8b 43 04 mov 0x4(%ebx),%eax 12b6a7: 48 dec %eax 12b6a8: 89 43 04 mov %eax,0x4(%ebx) 12b6ab: 85 c0 test %eax,%eax 12b6ad: 79 d1 jns 12b680 12b6af: 83 ec 08 sub $0x8,%esp 12b6b2: 53 push %ebx 12b6b3: ff 35 e0 84 16 00 pushl 0x1684e0 12b6b9: e8 5a a4 01 00 call 145b18 <__srget_r> 12b6be: 83 c4 10 add $0x10,%esp if (c == ':') { 12b6c1: 83 f8 3a cmp $0x3a,%eax 12b6c4: 75 c7 jne 12b68d <== NEVER TAKEN 12b6c6: 66 90 xchg %ax,%ax <== NOT EXECUTED if (nlFlag) 12b6c8: 8b 55 0c mov 0xc(%ebp),%edx 12b6cb: 85 d2 test %edx,%edx 12b6cd: 75 21 jne 12b6f0 <== ALWAYS TAKEN return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 12b6cf: 8b 06 mov (%esi),%eax 12b6d1: c6 00 00 movb $0x0,(%eax) ++(*bufp); 12b6d4: ff 06 incl (%esi) --(*nleft); 12b6d6: ff 0f decl (%edi) 12b6d8: b8 01 00 00 00 mov $0x1,%eax return 1; } 12b6dd: 8d 65 f4 lea -0xc(%ebp),%esp 12b6e0: 5b pop %ebx 12b6e1: 5e pop %esi 12b6e2: 5f pop %edi 12b6e3: c9 leave 12b6e4: c3 ret 12b6e5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) 12b6e8: 8b 45 0c mov 0xc(%ebp),%eax 12b6eb: 85 c0 test %eax,%eax 12b6ed: 75 e0 jne 12b6cf <== NEVER TAKEN 12b6ef: 90 nop <== NOT EXECUTED --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 12b6f0: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12b6f2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12b6f5: 5b pop %ebx <== NOT EXECUTED 12b6f6: 5e pop %esi <== NOT EXECUTED 12b6f7: 5f pop %edi <== NOT EXECUTED 12b6f8: c9 leave <== NOT EXECUTED 12b6f9: c3 ret <== NOT EXECUTED 0012b6fc : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 12b6fc: 55 push %ebp 12b6fd: 89 e5 mov %esp,%ebp 12b6ff: 57 push %edi 12b700: 56 push %esi 12b701: 53 push %ebx 12b702: 83 ec 34 sub $0x34,%esp 12b705: 89 c6 mov %eax,%esi 12b707: 89 d3 mov %edx,%ebx 12b709: 89 4d d4 mov %ecx,-0x2c(%ebp) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 12b70c: 8d 7d d4 lea -0x2c(%ebp),%edi 12b70f: 6a 00 push $0x0 12b711: 8d 45 08 lea 0x8(%ebp),%eax 12b714: 50 push %eax 12b715: 89 f9 mov %edi,%ecx 12b717: 89 f0 mov %esi,%eax 12b719: e8 4a ff ff ff call 12b668 <== ALWAYS TAKEN 12b71e: 83 c4 10 add $0x10,%esp 12b721: 85 c0 test %eax,%eax 12b723: 75 0b jne 12b730 <== NEVER TAKEN *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; 12b725: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12b727: 8d 65 f4 lea -0xc(%ebp),%esp 12b72a: 5b pop %ebx 12b72b: 5e pop %esi 12b72c: 5f pop %edi 12b72d: c9 leave 12b72e: c3 ret 12b72f: 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) 12b730: 83 ec 08 sub $0x8,%esp 12b733: 8d 53 04 lea 0x4(%ebx),%edx 12b736: 6a 00 push $0x0 12b738: 8d 45 08 lea 0x8(%ebp),%eax 12b73b: 50 push %eax 12b73c: 89 f9 mov %edi,%ecx 12b73e: 89 f0 mov %esi,%eax 12b740: e8 23 ff ff ff call 12b668 <== ALWAYS TAKEN { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 12b745: 83 c4 10 add $0x10,%esp 12b748: 85 c0 test %eax,%eax 12b74a: 74 d9 je 12b725 <== ALWAYS TAKEN || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 12b74c: 8d 55 e4 lea -0x1c(%ebp),%edx 12b74f: 89 f0 mov %esi,%eax 12b751: e8 3a fe ff ff call 12b590 <== ALWAYS TAKEN { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 12b756: 85 c0 test %eax,%eax 12b758: 74 cb je 12b725 <== ALWAYS TAKEN || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 12b75a: 83 ec 08 sub $0x8,%esp 12b75d: 8d 55 e0 lea -0x20(%ebp),%edx 12b760: 6a 01 push $0x1 12b762: 8d 45 08 lea 0x8(%ebp),%eax 12b765: 50 push %eax 12b766: 89 f9 mov %edi,%ecx 12b768: 89 f0 mov %esi,%eax 12b76a: e8 f9 fe ff ff call 12b668 <== ALWAYS TAKEN { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 12b76f: 83 c4 10 add $0x10,%esp 12b772: 85 c0 test %eax,%eax 12b774: 74 af je 12b725 <== 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; 12b776: 8b 45 e4 mov -0x1c(%ebp),%eax 12b779: 66 89 43 08 mov %ax,0x8(%ebx) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12b77d: 8b 75 e0 mov -0x20(%ebp),%esi 12b780: 8a 06 mov (%esi),%al 12b782: 84 c0 test %al,%al 12b784: 74 7d je 12b803 <== ALWAYS TAKEN 12b786: 89 f2 mov %esi,%edx 12b788: b9 01 00 00 00 mov $0x1,%ecx 12b78d: eb 08 jmp 12b797 <== ALWAYS TAKEN 12b78f: 90 nop <== NOT EXECUTED 12b790: 42 inc %edx 12b791: 8a 02 mov (%edx),%al 12b793: 84 c0 test %al,%al 12b795: 74 09 je 12b7a0 if(*cp == ',') 12b797: 3c 2c cmp $0x2c,%al 12b799: 75 f5 jne 12b790 <== NEVER TAKEN memcount++; 12b79b: 41 inc %ecx <== NOT EXECUTED 12b79c: eb f2 jmp 12b790 <== NOT EXECUTED 12b79e: 66 90 xchg %ax,%ax <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12b7a0: 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)) 12b7a7: 39 45 08 cmp %eax,0x8(%ebp) 12b7aa: 0f 82 75 ff ff ff jb 12b725 <== ALWAYS TAKEN return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 12b7b0: 8b 45 d4 mov -0x2c(%ebp),%eax 12b7b3: 83 c0 0f add $0xf,%eax 12b7b6: 83 e0 f0 and $0xfffffff0,%eax 12b7b9: 89 43 0c mov %eax,0xc(%ebx) /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 12b7bc: 89 30 mov %esi,(%eax) for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12b7be: 8b 45 e0 mov -0x20(%ebp),%eax 12b7c1: 8a 10 mov (%eax),%dl 12b7c3: 84 d2 test %dl,%dl 12b7c5: 74 43 je 12b80a <== ALWAYS TAKEN 12b7c7: 40 inc %eax 12b7c8: b9 01 00 00 00 mov $0x1,%ecx 12b7cd: eb 08 jmp 12b7d7 <== ALWAYS TAKEN 12b7cf: 90 nop <== NOT EXECUTED 12b7d0: 8a 10 mov (%eax),%dl 12b7d2: 40 inc %eax 12b7d3: 84 d2 test %dl,%dl 12b7d5: 74 15 je 12b7ec if(*cp == ',') { 12b7d7: 80 fa 2c cmp $0x2c,%dl 12b7da: 75 f4 jne 12b7d0 <== NEVER TAKEN *cp = '\0'; 12b7dc: c6 40 ff 00 movb $0x0,-0x1(%eax) <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 12b7e0: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED 12b7e3: 89 04 8a mov %eax,(%edx,%ecx,4) <== NOT EXECUTED 12b7e6: 41 inc %ecx <== NOT EXECUTED 12b7e7: eb e7 jmp 12b7d0 <== NOT EXECUTED 12b7e9: 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++) { 12b7ec: c1 e1 02 shl $0x2,%ecx if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 12b7ef: 8b 43 0c mov 0xc(%ebx),%eax 12b7f2: c7 04 08 00 00 00 00 movl $0x0,(%eax,%ecx,1) 12b7f9: b8 01 00 00 00 mov $0x1,%eax return 1; 12b7fe: e9 24 ff ff ff jmp 12b727 <== ALWAYS TAKEN grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12b803: b8 17 00 00 00 mov $0x17,%eax <== NOT EXECUTED 12b808: eb 9d jmp 12b7a7 <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12b80a: b9 04 00 00 00 mov $0x4,%ecx <== NOT EXECUTED 12b80f: eb de jmp 12b7ef <== NOT EXECUTED 0012b850 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 12b850: 55 push %ebp 12b851: 89 e5 mov %esp,%ebp 12b853: 57 push %edi 12b854: 56 push %esi 12b855: 53 push %ebx 12b856: 83 ec 34 sub $0x34,%esp 12b859: 89 c6 mov %eax,%esi 12b85b: 89 d3 mov %edx,%ebx 12b85d: 89 4d d4 mov %ecx,-0x2c(%ebp) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12b860: 8d 7d d4 lea -0x2c(%ebp),%edi 12b863: 6a 00 push $0x0 12b865: 8d 45 08 lea 0x8(%ebp),%eax 12b868: 50 push %eax 12b869: 89 f9 mov %edi,%ecx 12b86b: 89 f0 mov %esi,%eax 12b86d: e8 f6 fd ff ff call 12b668 <== ALWAYS TAKEN 12b872: 83 c4 10 add $0x10,%esp 12b875: 85 c0 test %eax,%eax 12b877: 75 0b jne 12b884 <== 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; 12b879: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12b87b: 8d 65 f4 lea -0xc(%ebp),%esp 12b87e: 5b pop %ebx 12b87f: 5e pop %esi 12b880: 5f pop %edi 12b881: c9 leave 12b882: c3 ret 12b883: 90 nop <== NOT EXECUTED ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 12b884: 83 ec 08 sub $0x8,%esp 12b887: 8d 53 04 lea 0x4(%ebx),%edx 12b88a: 6a 00 push $0x0 12b88c: 8d 45 08 lea 0x8(%ebp),%eax 12b88f: 50 push %eax 12b890: 89 f9 mov %edi,%ecx 12b892: 89 f0 mov %esi,%eax 12b894: e8 cf fd ff ff call 12b668 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12b899: 83 c4 10 add $0x10,%esp 12b89c: 85 c0 test %eax,%eax 12b89e: 74 d9 je 12b879 <== ALWAYS TAKEN || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 12b8a0: 8d 55 e4 lea -0x1c(%ebp),%edx 12b8a3: 89 f0 mov %esi,%eax 12b8a5: e8 e6 fc ff ff call 12b590 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12b8aa: 85 c0 test %eax,%eax 12b8ac: 74 cb je 12b879 <== ALWAYS TAKEN || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 12b8ae: 8d 55 e0 lea -0x20(%ebp),%edx 12b8b1: 89 f0 mov %esi,%eax 12b8b3: e8 d8 fc ff ff call 12b590 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12b8b8: 85 c0 test %eax,%eax 12b8ba: 74 bd je 12b879 <== ALWAYS TAKEN || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) 12b8bc: 83 ec 08 sub $0x8,%esp 12b8bf: 8d 53 0c lea 0xc(%ebx),%edx 12b8c2: 6a 00 push $0x0 12b8c4: 8d 45 08 lea 0x8(%ebp),%eax 12b8c7: 50 push %eax 12b8c8: 89 f9 mov %edi,%ecx 12b8ca: 89 f0 mov %esi,%eax 12b8cc: e8 97 fd ff ff call 12b668 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12b8d1: 83 c4 10 add $0x10,%esp 12b8d4: 85 c0 test %eax,%eax 12b8d6: 74 a1 je 12b879 <== 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) 12b8d8: 83 ec 08 sub $0x8,%esp 12b8db: 8d 53 10 lea 0x10(%ebx),%edx 12b8de: 6a 00 push $0x0 12b8e0: 8d 45 08 lea 0x8(%ebp),%eax 12b8e3: 50 push %eax 12b8e4: 89 f9 mov %edi,%ecx 12b8e6: 89 f0 mov %esi,%eax 12b8e8: e8 7b fd ff ff call 12b668 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12b8ed: 83 c4 10 add $0x10,%esp 12b8f0: 85 c0 test %eax,%eax 12b8f2: 74 85 je 12b879 <== 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) 12b8f4: 83 ec 08 sub $0x8,%esp 12b8f7: 8d 53 14 lea 0x14(%ebx),%edx 12b8fa: 6a 00 push $0x0 12b8fc: 8d 45 08 lea 0x8(%ebp),%eax 12b8ff: 50 push %eax 12b900: 89 f9 mov %edi,%ecx 12b902: 89 f0 mov %esi,%eax 12b904: e8 5f fd ff ff call 12b668 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12b909: 83 c4 10 add $0x10,%esp 12b90c: 85 c0 test %eax,%eax 12b90e: 0f 84 65 ff ff ff je 12b879 <== 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)) 12b914: 83 ec 08 sub $0x8,%esp 12b917: 8d 53 18 lea 0x18(%ebx),%edx 12b91a: 6a 01 push $0x1 12b91c: 8d 45 08 lea 0x8(%ebp),%eax 12b91f: 50 push %eax 12b920: 89 f9 mov %edi,%ecx 12b922: 89 f0 mov %esi,%eax 12b924: e8 3f fd ff ff call 12b668 <== ALWAYS TAKEN size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12b929: 83 c4 10 add $0x10,%esp 12b92c: 85 c0 test %eax,%eax 12b92e: 0f 84 45 ff ff ff je 12b879 <== 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; 12b934: 8b 45 e4 mov -0x1c(%ebp),%eax 12b937: 66 89 43 08 mov %ax,0x8(%ebx) pwd->pw_gid = pwgid; 12b93b: 8b 45 e0 mov -0x20(%ebp),%eax 12b93e: 66 89 43 0a mov %ax,0xa(%ebx) 12b942: b8 01 00 00 00 mov $0x1,%eax return 1; 12b947: e9 2f ff ff ff jmp 12b87b <== ALWAYS TAKEN 0012b53c : */ int setgid( gid_t gid ) { 12b53c: 55 push %ebp <== NOT EXECUTED 12b53d: 89 e5 mov %esp,%ebp <== NOT EXECUTED _POSIX_types_Gid = gid; 12b53f: a1 a4 7c 16 00 mov 0x167ca4,%eax <== NOT EXECUTED 12b544: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 12b547: 66 89 50 34 mov %dx,0x34(%eax) <== NOT EXECUTED return 0; } 12b54b: 31 c0 xor %eax,%eax <== NOT EXECUTED 12b54d: c9 leave <== NOT EXECUTED 12b54e: c3 ret <== NOT EXECUTED 0012ba88 : return NULL; return &grent; } void setgrent(void) { 12ba88: 55 push %ebp <== NOT EXECUTED 12ba89: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12ba8b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED init_etc_passwd_group(); 12ba8e: e8 f5 fe ff ff call 12b988 <== NOT EXECUTED if (group_fp != NULL) 12ba93: a1 c4 d2 16 00 mov 0x16d2c4,%eax <== NOT EXECUTED 12ba98: 85 c0 test %eax,%eax <== NOT EXECUTED 12ba9a: 74 0c je 12baa8 <== NOT EXECUTED fclose(group_fp); 12ba9c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12ba9f: 50 push %eax <== NOT EXECUTED 12baa0: e8 63 57 01 00 call 141208 <== NOT EXECUTED 12baa5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 12baa8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12baab: 68 cd a7 15 00 push $0x15a7cd <== NOT EXECUTED 12bab0: 68 17 75 15 00 push $0x157517 <== NOT EXECUTED 12bab5: e8 3e 5f 01 00 call 1419f8 <== NOT EXECUTED 12baba: a3 c4 d2 16 00 mov %eax,0x16d2c4 <== NOT EXECUTED 12babf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 12bac2: c9 leave <== NOT EXECUTED 12bac3: c3 ret <== NOT EXECUTED 0012bc54 : return NULL; return &pwent; } void setpwent(void) { 12bc54: 55 push %ebp <== NOT EXECUTED 12bc55: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bc57: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED init_etc_passwd_group(); 12bc5a: e8 29 fd ff ff call 12b988 <== NOT EXECUTED if (passwd_fp != NULL) 12bc5f: a1 c4 d1 16 00 mov 0x16d1c4,%eax <== NOT EXECUTED 12bc64: 85 c0 test %eax,%eax <== NOT EXECUTED 12bc66: 74 0c je 12bc74 <== NOT EXECUTED fclose(passwd_fp); 12bc68: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bc6b: 50 push %eax <== NOT EXECUTED 12bc6c: e8 97 55 01 00 call 141208 <== NOT EXECUTED 12bc71: 83 c4 10 add $0x10,%esp <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 12bc74: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12bc77: 68 cd a7 15 00 push $0x15a7cd <== NOT EXECUTED 12bc7c: 68 0b 75 15 00 push $0x15750b <== NOT EXECUTED 12bc81: e8 72 5d 01 00 call 1419f8 <== NOT EXECUTED 12bc86: a3 c4 d1 16 00 mov %eax,0x16d1c4 <== NOT EXECUTED 12bc8b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 12bc8e: c9 leave <== NOT EXECUTED 12bc8f: c3 ret <== NOT EXECUTED 0010d008 : */ int setuid( uid_t uid ) { 10d008: 55 push %ebp <== NOT EXECUTED 10d009: 89 e5 mov %esp,%ebp <== NOT EXECUTED _POSIX_types_Uid = uid; 10d00b: a1 a4 7c 16 00 mov 0x167ca4,%eax <== NOT EXECUTED 10d010: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 10d013: 66 89 50 32 mov %dx,0x32(%eax) <== NOT EXECUTED return 0; } 10d017: 31 c0 xor %eax,%eax <== NOT EXECUTED 10d019: c9 leave <== NOT EXECUTED 10d01a: c3 ret <== NOT EXECUTED 00109a6c : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 109a6c: 55 push %ebp <== NOT EXECUTED 109a6d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 109a6f: 56 push %esi <== NOT EXECUTED 109a70: 53 push %ebx <== NOT EXECUTED 109a71: 89 d3 mov %edx,%ebx <== NOT EXECUTED 109a73: 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)) { 109a75: f7 42 3c 78 0e 00 00 testl $0xe78,0x3c(%edx) <== NOT EXECUTED 109a7c: 75 12 jne 109a90 <== 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); 109a7e: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 109a81: 89 da mov %ebx,%edx <== NOT EXECUTED } return i; } 109a83: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 109a86: 5b pop %ebx <== NOT EXECUTED 109a87: 5e pop %esi <== NOT EXECUTED 109a88: 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); 109a89: e9 a2 fe ff ff jmp 109930 <== NOT EXECUTED 109a8e: 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); 109a90: 52 push %edx <== NOT EXECUTED 109a91: 6a 00 push $0x0 <== NOT EXECUTED 109a93: 6a 00 push $0x0 <== NOT EXECUTED 109a95: ff 73 18 pushl 0x18(%ebx) <== NOT EXECUTED 109a98: e8 c3 1a 00 00 call 10b560 <== NOT EXECUTED i = iproc (c, tty); 109a9d: 89 f2 mov %esi,%edx <== NOT EXECUTED 109a9f: 0f b6 c2 movzbl %dl,%eax <== NOT EXECUTED 109aa2: 89 da mov %ebx,%edx <== NOT EXECUTED 109aa4: e8 87 fe ff ff call 109930 <== NOT EXECUTED 109aa9: 89 c6 mov %eax,%esi <== NOT EXECUTED rtems_semaphore_release (tty->osem); 109aab: 58 pop %eax <== NOT EXECUTED 109aac: ff 73 18 pushl 0x18(%ebx) <== NOT EXECUTED 109aaf: e8 a8 1b 00 00 call 10b65c <== NOT EXECUTED 109ab4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 109ab7: 89 f0 mov %esi,%eax <== NOT EXECUTED 109ab9: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 109abc: 5b pop %ebx <== NOT EXECUTED 109abd: 5e pop %esi <== NOT EXECUTED 109abe: c9 leave <== NOT EXECUTED 109abf: c3 ret <== NOT EXECUTED 0010e3e0 : int _STAT_NAME( const char *path, struct stat *buf ) { 10e3e0: 55 push %ebp 10e3e1: 89 e5 mov %esp,%ebp 10e3e3: 57 push %edi 10e3e4: 56 push %esi 10e3e5: 53 push %ebx 10e3e6: 83 ec 2c sub $0x2c,%esp 10e3e9: 8b 55 08 mov 0x8(%ebp),%edx 10e3ec: 8b 75 0c mov 0xc(%ebp),%esi /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 10e3ef: 85 f6 test %esi,%esi 10e3f1: 0f 84 9d 00 00 00 je 10e494 rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 10e3f7: b9 ff ff ff ff mov $0xffffffff,%ecx 10e3fc: 89 d7 mov %edx,%edi 10e3fe: 31 c0 xor %eax,%eax 10e400: f2 ae repnz scas %es:(%edi),%al 10e402: f7 d1 not %ecx 10e404: 49 dec %ecx 10e405: 83 ec 0c sub $0xc,%esp 10e408: 6a 01 push $0x1 10e40a: 8d 5d d4 lea -0x2c(%ebp),%ebx 10e40d: 53 push %ebx 10e40e: 6a 00 push $0x0 10e410: 51 push %ecx 10e411: 52 push %edx 10e412: e8 29 ea ff ff call 10ce40 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 10e417: 83 c4 20 add $0x20,%esp 10e41a: 85 c0 test %eax,%eax 10e41c: 75 66 jne 10e484 return -1; if ( !loc.handlers->fstat_h ){ 10e41e: 8b 55 dc mov -0x24(%ebp),%edx 10e421: 8b 42 18 mov 0x18(%edx),%eax 10e424: 85 c0 test %eax,%eax 10e426: 74 39 je 10e461 <== ALWAYS TAKEN /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 10e428: b9 44 00 00 00 mov $0x44,%ecx 10e42d: 89 f7 mov %esi,%edi 10e42f: 31 c0 xor %eax,%eax 10e431: f3 aa rep stos %al,%es:(%edi) status = (*loc.handlers->fstat_h)( &loc, buf ); 10e433: 83 ec 08 sub $0x8,%esp 10e436: 56 push %esi 10e437: 53 push %ebx 10e438: ff 52 18 call *0x18(%edx) 10e43b: 89 c6 mov %eax,%esi rtems_filesystem_freenode( &loc ); 10e43d: 8b 45 e0 mov -0x20(%ebp),%eax 10e440: 83 c4 10 add $0x10,%esp 10e443: 85 c0 test %eax,%eax 10e445: 74 10 je 10e457 <== ALWAYS TAKEN 10e447: 8b 40 1c mov 0x1c(%eax),%eax 10e44a: 85 c0 test %eax,%eax 10e44c: 74 09 je 10e457 <== ALWAYS TAKEN 10e44e: 83 ec 0c sub $0xc,%esp 10e451: 53 push %ebx 10e452: ff d0 call *%eax 10e454: 83 c4 10 add $0x10,%esp return status; } 10e457: 89 f0 mov %esi,%eax 10e459: 8d 65 f4 lea -0xc(%ebp),%esp 10e45c: 5b pop %ebx 10e45d: 5e pop %esi 10e45e: 5f pop %edi 10e45f: c9 leave 10e460: c3 ret 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 10e461: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10e464: 85 c0 test %eax,%eax <== NOT EXECUTED 10e466: 74 10 je 10e478 <== NOT EXECUTED 10e468: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10e46b: 85 c0 test %eax,%eax <== NOT EXECUTED 10e46d: 74 09 je 10e478 <== NOT EXECUTED 10e46f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10e472: 53 push %ebx <== NOT EXECUTED 10e473: ff d0 call *%eax <== NOT EXECUTED 10e475: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 10e478: e8 3f 2c 03 00 call 1410bc <__errno> <== NOT EXECUTED 10e47d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10e483: 90 nop <== NOT EXECUTED 10e484: be ff ff ff ff mov $0xffffffff,%esi status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 10e489: 89 f0 mov %esi,%eax 10e48b: 8d 65 f4 lea -0xc(%ebp),%esp 10e48e: 5b pop %ebx 10e48f: 5e pop %esi 10e490: 5f pop %edi 10e491: c9 leave 10e492: c3 ret 10e493: 90 nop <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 10e494: e8 23 2c 03 00 call 1410bc <__errno> 10e499: c7 00 0e 00 00 00 movl $0xe,(%eax) 10e49f: be ff ff ff ff mov $0xffffffff,%esi status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 10e4a4: 89 f0 mov %esi,%eax 10e4a6: 8d 65 f4 lea -0xc(%ebp),%esp 10e4a9: 5b pop %ebx 10e4aa: 5e pop %esi 10e4ab: 5f pop %edi 10e4ac: c9 leave 10e4ad: c3 ret 0012c808 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 12c808: 55 push %ebp <== NOT EXECUTED 12c809: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c80b: 57 push %edi <== NOT EXECUTED 12c80c: 56 push %esi <== NOT EXECUTED 12c80d: 53 push %ebx <== NOT EXECUTED 12c80e: 83 ec 38 sub $0x38,%esp <== NOT EXECUTED 12c811: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 12c814: 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 ) ) 12c817: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 12c81c: 89 d7 mov %edx,%edi <== NOT EXECUTED 12c81e: 31 c0 xor %eax,%eax <== NOT EXECUTED 12c820: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 12c822: f7 d1 not %ecx <== NOT EXECUTED 12c824: 49 dec %ecx <== NOT EXECUTED 12c825: 6a 01 push $0x1 <== NOT EXECUTED 12c827: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED 12c82a: 53 push %ebx <== NOT EXECUTED 12c82b: 6a 00 push $0x0 <== NOT EXECUTED 12c82d: 51 push %ecx <== NOT EXECUTED 12c82e: 52 push %edx <== NOT EXECUTED 12c82f: e8 0c 06 fe ff call 10ce40 <== NOT EXECUTED 12c834: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12c837: 85 c0 test %eax,%eax <== NOT EXECUTED 12c839: 75 59 jne 12c894 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 12c83b: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; 12c83e: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED 12c841: 8b 40 44 mov 0x44(%eax),%eax <== NOT EXECUTED 12c844: 85 c0 test %eax,%eax <== NOT EXECUTED 12c846: 74 3f je 12c887 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); memset (sb, 0, sizeof (struct statvfs)); 12c848: b9 38 00 00 00 mov $0x38,%ecx <== NOT EXECUTED 12c84d: 89 f7 mov %esi,%edi <== NOT EXECUTED 12c84f: 31 c0 xor %eax,%eax <== NOT EXECUTED 12c851: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 12c853: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c856: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED 12c859: 56 push %esi <== NOT EXECUTED 12c85a: 83 c2 1c add $0x1c,%edx <== NOT EXECUTED 12c85d: 52 push %edx <== NOT EXECUTED 12c85e: ff 50 44 call *0x44(%eax) <== NOT EXECUTED 12c861: 89 c6 mov %eax,%esi <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 12c863: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 12c866: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c869: 85 c0 test %eax,%eax <== NOT EXECUTED 12c86b: 74 10 je 12c87d <== NOT EXECUTED 12c86d: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c870: 85 c0 test %eax,%eax <== NOT EXECUTED 12c872: 74 09 je 12c87d <== NOT EXECUTED 12c874: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c877: 53 push %ebx <== NOT EXECUTED 12c878: ff d0 call *%eax <== NOT EXECUTED 12c87a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return result; } 12c87d: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c87f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c882: 5b pop %ebx <== NOT EXECUTED 12c883: 5e pop %esi <== NOT EXECUTED 12c884: 5f pop %edi <== NOT EXECUTED 12c885: c9 leave <== NOT EXECUTED 12c886: 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 ); 12c887: e8 30 48 01 00 call 1410bc <__errno> <== NOT EXECUTED 12c88c: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c892: 66 90 xchg %ax,%ax <== NOT EXECUTED 12c894: 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; } 12c899: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c89b: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c89e: 5b pop %ebx <== NOT EXECUTED 12c89f: 5e pop %esi <== NOT EXECUTED 12c8a0: 5f pop %edi <== NOT EXECUTED 12c8a1: c9 leave <== NOT EXECUTED 12c8a2: c3 ret <== NOT EXECUTED 0012c8a4 : int symlink( const char *actualpath, const char *sympath ) { 12c8a4: 55 push %ebp 12c8a5: 89 e5 mov %esp,%ebp 12c8a7: 57 push %edi 12c8a8: 56 push %esi 12c8a9: 53 push %ebx 12c8aa: 83 ec 2c sub $0x2c,%esp 12c8ad: 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 ); 12c8b0: 8a 10 mov (%eax),%dl 12c8b2: 80 fa 2f cmp $0x2f,%dl 12c8b5: 74 09 je 12c8c0 12c8b7: 80 fa 5c cmp $0x5c,%dl 12c8ba: 74 04 je 12c8c0 <== ALWAYS TAKEN 12c8bc: 84 d2 test %dl,%dl 12c8be: 75 70 jne 12c930 <== NEVER TAKEN 12c8c0: 8d 5d d0 lea -0x30(%ebp),%ebx 12c8c3: 8b 35 a4 7c 16 00 mov 0x167ca4,%esi 12c8c9: 83 c6 18 add $0x18,%esi 12c8cc: b9 05 00 00 00 mov $0x5,%ecx 12c8d1: 89 df mov %ebx,%edi 12c8d3: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12c8d5: b1 01 mov $0x1,%cl if ( !loc.ops->evalformake_h ) { 12c8d7: 8b 55 dc mov -0x24(%ebp),%edx 12c8da: 8b 52 04 mov 0x4(%edx),%edx 12c8dd: 85 d2 test %edx,%edx 12c8df: 74 6e je 12c94f <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 12c8e1: 56 push %esi 12c8e2: 8d 75 e4 lea -0x1c(%ebp),%esi 12c8e5: 56 push %esi 12c8e6: 53 push %ebx 12c8e7: 01 c8 add %ecx,%eax 12c8e9: 50 push %eax 12c8ea: ff d2 call *%edx if ( result != 0 ) 12c8ec: 83 c4 10 add $0x10,%esp 12c8ef: 85 c0 test %eax,%eax 12c8f1: 75 67 jne 12c95a return -1; if ( !loc.ops->symlink_h ) { 12c8f3: 8b 55 dc mov -0x24(%ebp),%edx 12c8f6: 8b 42 38 mov 0x38(%edx),%eax 12c8f9: 85 c0 test %eax,%eax 12c8fb: 74 6c je 12c969 <== ALWAYS TAKEN rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 12c8fd: 52 push %edx 12c8fe: ff 75 e4 pushl -0x1c(%ebp) 12c901: ff 75 08 pushl 0x8(%ebp) 12c904: 53 push %ebx 12c905: ff d0 call *%eax 12c907: 89 c6 mov %eax,%esi rtems_filesystem_freenode( &loc ); 12c909: 8b 45 dc mov -0x24(%ebp),%eax 12c90c: 83 c4 10 add $0x10,%esp 12c90f: 85 c0 test %eax,%eax 12c911: 74 10 je 12c923 <== ALWAYS TAKEN 12c913: 8b 40 1c mov 0x1c(%eax),%eax 12c916: 85 c0 test %eax,%eax 12c918: 74 09 je 12c923 <== ALWAYS TAKEN 12c91a: 83 ec 0c sub $0xc,%esp 12c91d: 53 push %ebx 12c91e: ff d0 call *%eax 12c920: 83 c4 10 add $0x10,%esp return result; } 12c923: 89 f0 mov %esi,%eax 12c925: 8d 65 f4 lea -0xc(%ebp),%esp 12c928: 5b pop %ebx 12c929: 5e pop %esi 12c92a: 5f pop %edi 12c92b: c9 leave 12c92c: c3 ret 12c92d: 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 ); 12c930: 8d 5d d0 lea -0x30(%ebp),%ebx 12c933: 8b 35 a4 7c 16 00 mov 0x167ca4,%esi 12c939: 83 c6 04 add $0x4,%esi 12c93c: b9 05 00 00 00 mov $0x5,%ecx 12c941: 89 df mov %ebx,%edi 12c943: f3 a5 rep movsl %ds:(%esi),%es:(%edi) if ( !loc.ops->evalformake_h ) { 12c945: 8b 55 dc mov -0x24(%ebp),%edx 12c948: 8b 52 04 mov 0x4(%edx),%edx 12c94b: 85 d2 test %edx,%edx 12c94d: 75 92 jne 12c8e1 <== NEVER TAKEN if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 12c94f: e8 68 47 01 00 call 1410bc <__errno> <== NOT EXECUTED 12c954: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c95a: be ff ff ff ff mov $0xffffffff,%esi result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); rtems_filesystem_freenode( &loc ); return result; } 12c95f: 89 f0 mov %esi,%eax 12c961: 8d 65 f4 lea -0xc(%ebp),%esp 12c964: 5b pop %ebx 12c965: 5e pop %esi 12c966: 5f pop %edi 12c967: c9 leave 12c968: 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 ); 12c969: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12c96c: 85 c0 test %eax,%eax <== NOT EXECUTED 12c96e: 74 df je 12c94f <== NOT EXECUTED 12c970: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c973: 53 push %ebx <== NOT EXECUTED 12c974: ff d0 call *%eax <== NOT EXECUTED 12c976: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c979: eb d4 jmp 12c94f <== NOT EXECUTED 0010a594 : fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) { 10a594: 55 push %ebp 10a595: 89 e5 mov %esp,%ebp 10a597: 53 push %ebx 10a598: 83 ec 04 sub $0x4,%esp 10a59b: 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; 10a59e: 8b 90 ec 00 00 00 mov 0xec(%eax),%edx if ( this_reent ) { 10a5a4: 85 d2 test %edx,%edx 10a5a6: 74 33 je 10a5db <== ALWAYS TAKEN current_reent = _Thread_Executing->libc_reent; 10a5a8: 8b 0d f8 83 12 00 mov 0x1283f8,%ecx 10a5ae: 8b 99 ec 00 00 00 mov 0xec(%ecx),%ebx _Thread_Executing->libc_reent = this_reent; 10a5b4: 89 91 ec 00 00 00 mov %edx,0xec(%ecx) _fwalk (t->libc_reent, sync_wrapper); 10a5ba: 83 ec 08 sub $0x8,%esp 10a5bd: 68 08 a6 10 00 push $0x10a608 10a5c2: ff b0 ec 00 00 00 pushl 0xec(%eax) 10a5c8: e8 ef b1 00 00 call 1157bc <_fwalk> _Thread_Executing->libc_reent = current_reent; 10a5cd: a1 f8 83 12 00 mov 0x1283f8,%eax 10a5d2: 89 98 ec 00 00 00 mov %ebx,0xec(%eax) 10a5d8: 83 c4 10 add $0x10,%esp } } 10a5db: 8b 5d fc mov -0x4(%ebp),%ebx 10a5de: c9 leave 10a5df: c3 ret 0011703c : int tcsetattr( int fd, int opt, struct termios *tp ) { 11703c: 55 push %ebp 11703d: 89 e5 mov %esp,%ebp 11703f: 56 push %esi 117040: 53 push %ebx 117041: 8b 5d 08 mov 0x8(%ebp),%ebx 117044: 8b 45 0c mov 0xc(%ebp),%eax 117047: 8b 75 10 mov 0x10(%ebp),%esi switch (opt) { 11704a: 85 c0 test %eax,%eax 11704c: 74 2c je 11707a <== NEVER TAKEN 11704e: 48 dec %eax <== NOT EXECUTED 11704f: 74 17 je 117068 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 117051: e8 f2 38 00 00 call 11a948 <__errno> <== NOT EXECUTED 117056: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } 11705c: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 117061: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 117064: 5b pop %ebx <== NOT EXECUTED 117065: 5e pop %esi <== NOT EXECUTED 117066: c9 leave <== NOT EXECUTED 117067: 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) 117068: 50 push %eax <== NOT EXECUTED 117069: 6a 00 push $0x0 <== NOT EXECUTED 11706b: 6a 03 push $0x3 <== NOT EXECUTED 11706d: 53 push %ebx <== NOT EXECUTED 11706e: e8 85 2c 00 00 call 119cf8 <== NOT EXECUTED 117073: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 117076: 85 c0 test %eax,%eax <== NOT EXECUTED 117078: 78 e2 js 11705c <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 11707a: 89 75 10 mov %esi,0x10(%ebp) 11707d: c7 45 0c 02 00 00 00 movl $0x2,0xc(%ebp) 117084: 89 5d 08 mov %ebx,0x8(%ebp) } } 117087: 8d 65 f8 lea -0x8(%ebp),%esp 11708a: 5b pop %ebx 11708b: 5e pop %esi 11708c: c9 leave return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 11708d: e9 66 2c 00 00 jmp 119cf8 0010d308 : int truncate( const char *path, off_t length ) { 10d308: 55 push %ebp 10d309: 89 e5 mov %esp,%ebp 10d30b: 56 push %esi 10d30c: 53 push %ebx int status; int fd; fd = open( path, O_WRONLY ); 10d30d: 83 ec 08 sub $0x8,%esp 10d310: 6a 01 push $0x1 10d312: ff 75 08 pushl 0x8(%ebp) 10d315: e8 e6 db ff ff call 10af00 10d31a: 89 c3 mov %eax,%ebx if ( fd == -1 ) 10d31c: 83 c4 10 add $0x10,%esp 10d31f: 83 f8 ff cmp $0xffffffff,%eax 10d322: 74 24 je 10d348 return -1; status = ftruncate( fd, length ); 10d324: 83 ec 08 sub $0x8,%esp 10d327: ff 75 0c pushl 0xc(%ebp) 10d32a: 50 push %eax 10d32b: e8 20 5d 00 00 call 113050 10d330: 89 c6 mov %eax,%esi (void) close( fd ); 10d332: 89 1c 24 mov %ebx,(%esp) 10d335: e8 6a ca ff ff call 109da4 return status; 10d33a: 83 c4 10 add $0x10,%esp } 10d33d: 89 f0 mov %esi,%eax 10d33f: 8d 65 f8 lea -0x8(%ebp),%esp 10d342: 5b pop %ebx 10d343: 5e pop %esi 10d344: c9 leave 10d345: c3 ret 10d346: 66 90 xchg %ax,%ax <== NOT EXECUTED { int status; int fd; fd = open( path, O_WRONLY ); if ( fd == -1 ) 10d348: be ff ff ff ff mov $0xffffffff,%esi status = ftruncate( fd, length ); (void) close( fd ); return status; } 10d34d: 89 f0 mov %esi,%eax 10d34f: 8d 65 f8 lea -0x8(%ebp),%esp 10d352: 5b pop %ebx 10d353: 5e pop %esi 10d354: c9 leave 10d355: c3 ret 001120cc : #include int unlink( const char *path ) { 1120cc: 55 push %ebp 1120cd: 89 e5 mov %esp,%ebp 1120cf: 57 push %edi 1120d0: 56 push %esi 1120d1: 53 push %ebx 1120d2: 83 ec 58 sub $0x58,%esp 1120d5: 8b 55 08 mov 0x8(%ebp),%edx /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 1120d8: 52 push %edx 1120d9: 89 55 ac mov %edx,-0x54(%ebp) 1120dc: e8 23 5d ff ff call 107e04 1120e1: 89 c3 mov %eax,%ebx if ( parentpathlen == 0 ) 1120e3: 83 c4 10 add $0x10,%esp 1120e6: 85 c0 test %eax,%eax 1120e8: 8b 55 ac mov -0x54(%ebp),%edx 1120eb: 0f 85 7b 01 00 00 jne 11226c rtems_filesystem_get_start_loc( path, &i, &parentloc ); 1120f1: 8a 02 mov (%edx),%al 1120f3: 3c 2f cmp $0x2f,%al 1120f5: 74 0c je 112103 <== NEVER TAKEN 1120f7: 3c 5c cmp $0x5c,%al <== NOT EXECUTED 1120f9: 74 08 je 112103 <== NOT EXECUTED 1120fb: 84 c0 test %al,%al <== NOT EXECUTED 1120fd: 0f 85 ed 00 00 00 jne 1121f0 <== NOT EXECUTED 112103: 8d 45 d4 lea -0x2c(%ebp),%eax 112106: 89 45 b4 mov %eax,-0x4c(%ebp) 112109: 8b 35 f8 2f 12 00 mov 0x122ff8,%esi 11210f: 83 c6 18 add $0x18,%esi 112112: b9 05 00 00 00 mov $0x5,%ecx 112117: 89 c7 mov %eax,%edi 112119: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 11211b: c6 45 b3 00 movb $0x0,-0x4d(%ebp) /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 11211f: 8d 7d c0 lea -0x40(%ebp),%edi 112122: b9 05 00 00 00 mov $0x5,%ecx 112127: 8b 75 b4 mov -0x4c(%ebp),%esi 11212a: f3 a5 rep movsl %ds:(%esi),%es:(%edi) name = path + parentpathlen; 11212c: 8d 1c 1a lea (%edx,%ebx,1),%ebx name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 11212f: be ff ff ff ff mov $0xffffffff,%esi 112134: 89 f1 mov %esi,%ecx 112136: 89 df mov %ebx,%edi 112138: 31 c0 xor %eax,%eax 11213a: f2 ae repnz scas %es:(%edi),%al 11213c: f7 d1 not %ecx 11213e: 49 dec %ecx 11213f: 83 ec 08 sub $0x8,%esp 112142: 51 push %ecx 112143: 53 push %ebx 112144: e8 7f 5c ff ff call 107dc8 112149: 01 c3 add %eax,%ebx result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 11214b: 89 f1 mov %esi,%ecx 11214d: 89 df mov %ebx,%edi 11214f: 31 c0 xor %eax,%eax 112151: f2 ae repnz scas %es:(%edi),%al 112153: f7 d1 not %ecx 112155: 49 dec %ecx 112156: c7 04 24 00 00 00 00 movl $0x0,(%esp) 11215d: 8d 75 c0 lea -0x40(%ebp),%esi 112160: 56 push %esi 112161: 6a 00 push $0x0 112163: 51 push %ecx 112164: 53 push %ebx 112165: e8 ea 5c ff ff call 107e54 0, &loc, false ); if ( result != 0 ) { 11216a: 83 c4 20 add $0x20,%esp 11216d: 85 c0 test %eax,%eax 11216f: 0f 85 9f 00 00 00 jne 112214 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return -1; } if ( !loc.ops->node_type_h ) { 112175: 8b 55 cc mov -0x34(%ebp),%edx 112178: 8b 42 10 mov 0x10(%edx),%eax 11217b: 85 c0 test %eax,%eax 11217d: 0f 84 a5 00 00 00 je 112228 <== 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 ) { 112183: 83 ec 0c sub $0xc,%esp 112186: 56 push %esi 112187: ff d0 call *%eax 112189: 83 c4 10 add $0x10,%esp 11218c: 48 dec %eax 11218d: 0f 84 05 01 00 00 je 112298 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { 112193: 8b 55 cc mov -0x34(%ebp),%edx 112196: 8b 42 0c mov 0xc(%edx),%eax 112199: 85 c0 test %eax,%eax 11219b: 0f 84 87 00 00 00 je 112228 <== ALWAYS TAKEN if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 1121a1: 83 ec 08 sub $0x8,%esp 1121a4: 56 push %esi 1121a5: ff 75 b4 pushl -0x4c(%ebp) 1121a8: ff d0 call *%eax 1121aa: 89 c3 mov %eax,%ebx rtems_filesystem_freenode( &loc ); 1121ac: 8b 45 cc mov -0x34(%ebp),%eax 1121af: 83 c4 10 add $0x10,%esp 1121b2: 85 c0 test %eax,%eax 1121b4: 74 10 je 1121c6 <== ALWAYS TAKEN 1121b6: 8b 40 1c mov 0x1c(%eax),%eax 1121b9: 85 c0 test %eax,%eax 1121bb: 74 09 je 1121c6 <== ALWAYS TAKEN 1121bd: 83 ec 0c sub $0xc,%esp 1121c0: 56 push %esi 1121c1: ff d0 call *%eax 1121c3: 83 c4 10 add $0x10,%esp if ( free_parentloc ) 1121c6: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 1121ca: 74 19 je 1121e5 <== ALWAYS TAKEN rtems_filesystem_freenode( &parentloc ); 1121cc: 8b 45 e0 mov -0x20(%ebp),%eax 1121cf: 85 c0 test %eax,%eax 1121d1: 74 12 je 1121e5 <== ALWAYS TAKEN 1121d3: 8b 40 1c mov 0x1c(%eax),%eax 1121d6: 85 c0 test %eax,%eax 1121d8: 74 0b je 1121e5 <== ALWAYS TAKEN 1121da: 83 ec 0c sub $0xc,%esp 1121dd: ff 75 b4 pushl -0x4c(%ebp) 1121e0: ff d0 call *%eax 1121e2: 83 c4 10 add $0x10,%esp return result; } 1121e5: 89 d8 mov %ebx,%eax 1121e7: 8d 65 f4 lea -0xc(%ebp),%esp 1121ea: 5b pop %ebx 1121eb: 5e pop %esi 1121ec: 5f pop %edi 1121ed: c9 leave 1121ee: c3 ret 1121ef: 90 nop <== NOT EXECUTED */ parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); 1121f0: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED 1121f3: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED 1121f6: 8b 35 f8 2f 12 00 mov 0x122ff8,%esi <== NOT EXECUTED 1121fc: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 1121ff: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 112204: 89 c7 mov %eax,%edi <== NOT EXECUTED 112206: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 112208: c6 45 b3 00 movb $0x0,-0x4d(%ebp) <== NOT EXECUTED 11220c: e9 0e ff ff ff jmp 11211f <== NOT EXECUTED 112211: 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 ) 112214: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 112218: 0f 85 c5 00 00 00 jne 1122e3 <== NEVER TAKEN result = (*loc.ops->unlink_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 11221e: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 112223: eb c0 jmp 1121e5 <== NOT EXECUTED 112225: 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 ); 112228: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 11222b: 85 c0 test %eax,%eax <== NOT EXECUTED 11222d: 74 09 je 112238 <== NOT EXECUTED 11222f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 112232: 56 push %esi <== NOT EXECUTED 112233: ff d0 call *%eax <== NOT EXECUTED 112235: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_parentloc ) 112238: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) <== NOT EXECUTED 11223c: 74 19 je 112257 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 11223e: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 112241: 85 c0 test %eax,%eax <== NOT EXECUTED 112243: 74 12 je 112257 <== NOT EXECUTED 112245: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 112248: 85 c0 test %eax,%eax <== NOT EXECUTED 11224a: 74 0b je 112257 <== NOT EXECUTED 11224c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11224f: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED 112252: ff d0 call *%eax <== NOT EXECUTED 112254: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 112257: e8 44 01 00 00 call 1123a0 <__errno> <== NOT EXECUTED 11225c: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 112262: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 112267: e9 79 ff ff ff jmp 1121e5 <== 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, 11226c: 83 ec 0c sub $0xc,%esp 11226f: 6a 00 push $0x0 112271: 8d 45 d4 lea -0x2c(%ebp),%eax 112274: 89 45 b4 mov %eax,-0x4c(%ebp) 112277: 50 push %eax 112278: 6a 02 push $0x2 11227a: 53 push %ebx 11227b: 52 push %edx 11227c: 89 55 ac mov %edx,-0x54(%ebp) 11227f: e8 a4 5c ff ff call 107f28 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 112284: 83 c4 20 add $0x20,%esp 112287: 85 c0 test %eax,%eax 112289: 8b 55 ac mov -0x54(%ebp),%edx 11228c: 75 90 jne 11221e <== ALWAYS TAKEN 11228e: c6 45 b3 01 movb $0x1,-0x4d(%ebp) 112292: e9 88 fe ff ff jmp 11211f <== ALWAYS TAKEN 112297: 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 ); 112298: 8b 45 cc mov -0x34(%ebp),%eax 11229b: 85 c0 test %eax,%eax 11229d: 74 10 je 1122af <== ALWAYS TAKEN 11229f: 8b 40 1c mov 0x1c(%eax),%eax 1122a2: 85 c0 test %eax,%eax 1122a4: 74 09 je 1122af <== ALWAYS TAKEN 1122a6: 83 ec 0c sub $0xc,%esp 1122a9: 56 push %esi 1122aa: ff d0 call *%eax 1122ac: 83 c4 10 add $0x10,%esp if ( free_parentloc ) 1122af: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 1122b3: 74 19 je 1122ce <== NEVER TAKEN rtems_filesystem_freenode( &parentloc ); 1122b5: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 1122b8: 85 c0 test %eax,%eax <== NOT EXECUTED 1122ba: 74 12 je 1122ce <== NOT EXECUTED 1122bc: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1122bf: 85 c0 test %eax,%eax <== NOT EXECUTED 1122c1: 74 0b je 1122ce <== NOT EXECUTED 1122c3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1122c6: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED 1122c9: ff d0 call *%eax <== NOT EXECUTED 1122cb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 1122ce: e8 cd 00 00 00 call 1123a0 <__errno> 1122d3: c7 00 15 00 00 00 movl $0x15,(%eax) 1122d9: bb ff ff ff ff mov $0xffffffff,%ebx 1122de: e9 02 ff ff ff jmp 1121e5 <== ALWAYS TAKEN result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 1122e3: 8b 45 e0 mov -0x20(%ebp),%eax 1122e6: 85 c0 test %eax,%eax 1122e8: 0f 84 30 ff ff ff je 11221e <== ALWAYS TAKEN 1122ee: 8b 40 1c mov 0x1c(%eax),%eax 1122f1: 85 c0 test %eax,%eax 1122f3: 0f 84 25 ff ff ff je 11221e <== ALWAYS TAKEN 1122f9: 83 ec 0c sub $0xc,%esp 1122fc: ff 75 b4 pushl -0x4c(%ebp) 1122ff: ff d0 call *%eax 112301: 83 cb ff or $0xffffffff,%ebx 112304: 83 c4 10 add $0x10,%esp 112307: e9 d9 fe ff ff jmp 1121e5 <== ALWAYS TAKEN 001104ec : */ int unmount( const char *path ) { 1104ec: 55 push %ebp 1104ed: 89 e5 mov %esp,%ebp 1104ef: 57 push %edi 1104f0: 56 push %esi 1104f1: 53 push %ebx 1104f2: 83 ec 38 sub $0x38,%esp 1104f5: 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 ) ) 1104f8: 31 c0 xor %eax,%eax 1104fa: b9 ff ff ff ff mov $0xffffffff,%ecx 1104ff: 89 d7 mov %edx,%edi 110501: f2 ae repnz scas %es:(%edi),%al 110503: f7 d1 not %ecx 110505: 49 dec %ecx 110506: 6a 01 push $0x1 110508: 8d 75 d4 lea -0x2c(%ebp),%esi 11050b: 56 push %esi 11050c: 6a 00 push $0x0 11050e: 51 push %ecx 11050f: 52 push %edx 110510: e8 2b c9 ff ff call 10ce40 110515: 83 c4 20 add $0x20,%esp 110518: 85 c0 test %eax,%eax 11051a: 0f 85 92 00 00 00 jne 1105b2 return -1; mt_entry = loc.mt_entry; 110520: 8b 5d e4 mov -0x1c(%ebp),%ebx fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; 110523: 8b 43 1c mov 0x1c(%ebx),%eax 110526: 3b 45 d4 cmp -0x2c(%ebp),%eax 110529: 0f 85 a9 00 00 00 jne 1105d8 /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 11052f: 8b 45 e0 mov -0x20(%ebp),%eax 110532: 85 c0 test %eax,%eax 110534: 74 10 je 110546 <== ALWAYS TAKEN 110536: 8b 40 1c mov 0x1c(%eax),%eax 110539: 85 c0 test %eax,%eax 11053b: 74 09 je 110546 <== ALWAYS TAKEN 11053d: 83 ec 0c sub $0xc,%esp 110540: 56 push %esi 110541: ff d0 call *%eax 110543: 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; 110546: 8b 43 14 mov 0x14(%ebx),%eax 110549: 8b 50 28 mov 0x28(%eax),%edx 11054c: 85 d2 test %edx,%edx 11054e: 0f 84 20 01 00 00 je 110674 <== ALWAYS TAKEN fs_root_loc = &mt_entry->mt_fs_root; 110554: 8b 43 28 mov 0x28(%ebx),%eax 110557: 8b 40 2c mov 0x2c(%eax),%eax 11055a: 85 c0 test %eax,%eax 11055c: 0f 84 12 01 00 00 je 110674 <== 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 ) 110562: a1 a4 7c 16 00 mov 0x167ca4,%eax 110567: 39 58 14 cmp %ebx,0x14(%eax) 11056a: 74 54 je 1105c0 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 11056c: a1 2c d7 16 00 mov 0x16d72c,%eax 110571: 3d 30 d7 16 00 cmp $0x16d730,%eax 110576: 74 1a je 110592 <== 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 ) { 110578: 8b 53 2c mov 0x2c(%ebx),%edx 11057b: 39 50 18 cmp %edx,0x18(%eax) 11057e: 75 09 jne 110589 <== NEVER TAKEN 110580: eb 3e jmp 1105c0 <== NOT EXECUTED 110582: 66 90 xchg %ax,%ax <== NOT EXECUTED 110584: 3b 50 18 cmp 0x18(%eax),%edx 110587: 74 37 je 1105c0 * 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 ) { 110589: 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; 11058b: 3d 30 d7 16 00 cmp $0x16d730,%eax 110590: 75 f2 jne 110584 * 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 ) 110592: 83 ec 0c sub $0xc,%esp 110595: 53 push %ebx 110596: e8 c9 cb ff ff call 10d164 11059b: 83 c4 10 add $0x10,%esp 11059e: 48 dec %eax 11059f: 74 1f je 1105c0 * 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 ) 1105a1: 83 ec 0c sub $0xc,%esp 1105a4: 8b 43 14 mov 0x14(%ebx),%eax 1105a7: 53 push %ebx 1105a8: ff 50 28 call *0x28(%eax) 1105ab: 83 c4 10 add $0x10,%esp 1105ae: 85 c0 test %eax,%eax 1105b0: 74 56 je 110608 <== NEVER TAKEN */ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; 1105b2: b8 ff ff ff ff mov $0xffffffff,%eax } 1105b7: 8d 65 f4 lea -0xc(%ebp),%esp 1105ba: 5b pop %ebx 1105bb: 5e pop %esi 1105bc: 5f pop %edi 1105bd: c9 leave 1105be: c3 ret 1105bf: 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 ); 1105c0: e8 f7 0a 03 00 call 1410bc <__errno> 1105c5: c7 00 10 00 00 00 movl $0x10,(%eax) 1105cb: b8 ff ff ff ff mov $0xffffffff,%eax rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 1105d0: 8d 65 f4 lea -0xc(%ebp),%esp 1105d3: 5b pop %ebx 1105d4: 5e pop %esi 1105d5: 5f pop %edi 1105d6: c9 leave 1105d7: 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 ); 1105d8: 8b 45 e0 mov -0x20(%ebp),%eax 1105db: 85 c0 test %eax,%eax 1105dd: 74 10 je 1105ef <== ALWAYS TAKEN 1105df: 8b 40 1c mov 0x1c(%eax),%eax 1105e2: 85 c0 test %eax,%eax 1105e4: 74 09 je 1105ef <== ALWAYS TAKEN 1105e6: 83 ec 0c sub $0xc,%esp 1105e9: 56 push %esi 1105ea: ff d0 call *%eax 1105ec: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( EACCES ); 1105ef: e8 c8 0a 03 00 call 1410bc <__errno> 1105f4: c7 00 0d 00 00 00 movl $0xd,(%eax) 1105fa: b8 ff ff ff ff mov $0xffffffff,%eax rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 1105ff: 8d 65 f4 lea -0xc(%ebp),%esp 110602: 5b pop %ebx 110603: 5e pop %esi 110604: 5f pop %edi 110605: c9 leave 110606: c3 ret 110607: 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){ 110608: 83 ec 0c sub $0xc,%esp 11060b: 8b 43 28 mov 0x28(%ebx),%eax 11060e: 53 push %ebx 11060f: ff 50 2c call *0x2c(%eax) 110612: 83 c4 10 add $0x10,%esp 110615: 85 c0 test %eax,%eax 110617: 75 3c jne 110655 <== ALWAYS TAKEN */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 110619: 83 ec 0c sub $0xc,%esp 11061c: 53 push %ebx 11061d: e8 4a 18 00 00 call 111e6c <_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 ); 110622: 8b 43 14 mov 0x14(%ebx),%eax 110625: 83 c4 10 add $0x10,%esp 110628: 85 c0 test %eax,%eax 11062a: 74 13 je 11063f <== ALWAYS TAKEN 11062c: 8b 40 1c mov 0x1c(%eax),%eax 11062f: 85 c0 test %eax,%eax 110631: 74 0c je 11063f <== ALWAYS TAKEN 110633: 83 ec 0c sub $0xc,%esp 110636: 8d 53 08 lea 0x8(%ebx),%edx 110639: 52 push %edx 11063a: ff d0 call *%eax 11063c: 83 c4 10 add $0x10,%esp free( mt_entry ); 11063f: 83 ec 0c sub $0xc,%esp 110642: 53 push %ebx 110643: e8 ac c8 ff ff call 10cef4 110648: 31 c0 xor %eax,%eax return 0; 11064a: 83 c4 10 add $0x10,%esp } 11064d: 8d 65 f4 lea -0xc(%ebp),%esp 110650: 5b pop %ebx 110651: 5e pop %esi 110652: 5f pop %edi 110653: c9 leave 110654: 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 ) 110655: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110658: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 11065b: 53 push %ebx <== NOT EXECUTED 11065c: ff 50 20 call *0x20(%eax) <== NOT EXECUTED 11065f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110662: 85 c0 test %eax,%eax <== NOT EXECUTED 110664: 0f 84 48 ff ff ff je 1105b2 <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 11066a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11066d: 6a 00 push $0x0 <== NOT EXECUTED 11066f: e8 40 15 00 00 call 111bb4 <== 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 ); 110674: e8 43 0a 03 00 call 1410bc <__errno> <== NOT EXECUTED 110679: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11067f: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 110682: e9 30 ff ff ff jmp 1105b7 <== NOT EXECUTED 0012ca14 : int utime( const char *path, const struct utimbuf *times ) { 12ca14: 55 push %ebp 12ca15: 89 e5 mov %esp,%ebp 12ca17: 57 push %edi 12ca18: 56 push %esi 12ca19: 53 push %ebx 12ca1a: 83 ec 38 sub $0x38,%esp 12ca1d: 8b 55 08 mov 0x8(%ebp),%edx 12ca20: 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 ) ) 12ca23: 31 c0 xor %eax,%eax 12ca25: b9 ff ff ff ff mov $0xffffffff,%ecx 12ca2a: 89 d7 mov %edx,%edi 12ca2c: f2 ae repnz scas %es:(%edi),%al 12ca2e: f7 d1 not %ecx 12ca30: 49 dec %ecx 12ca31: 6a 01 push $0x1 12ca33: 8d 75 d4 lea -0x2c(%ebp),%esi 12ca36: 56 push %esi 12ca37: 6a 00 push $0x0 12ca39: 51 push %ecx 12ca3a: 52 push %edx 12ca3b: e8 00 04 fe ff call 10ce40 12ca40: 83 c4 20 add $0x20,%esp 12ca43: 85 c0 test %eax,%eax 12ca45: 75 55 jne 12ca9c return -1; if ( !temp_loc.ops->utime_h ){ 12ca47: 8b 55 e0 mov -0x20(%ebp),%edx 12ca4a: 8b 42 30 mov 0x30(%edx),%eax 12ca4d: 85 c0 test %eax,%eax 12ca4f: 74 2f je 12ca80 <== 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 ); 12ca51: 52 push %edx 12ca52: ff 73 04 pushl 0x4(%ebx) 12ca55: ff 33 pushl (%ebx) 12ca57: 56 push %esi 12ca58: ff d0 call *%eax 12ca5a: 89 c3 mov %eax,%ebx rtems_filesystem_freenode( &temp_loc ); 12ca5c: 8b 45 e0 mov -0x20(%ebp),%eax 12ca5f: 83 c4 10 add $0x10,%esp 12ca62: 85 c0 test %eax,%eax 12ca64: 74 10 je 12ca76 <== ALWAYS TAKEN 12ca66: 8b 40 1c mov 0x1c(%eax),%eax 12ca69: 85 c0 test %eax,%eax 12ca6b: 74 09 je 12ca76 <== ALWAYS TAKEN 12ca6d: 83 ec 0c sub $0xc,%esp 12ca70: 56 push %esi 12ca71: ff d0 call *%eax 12ca73: 83 c4 10 add $0x10,%esp return result; } 12ca76: 89 d8 mov %ebx,%eax 12ca78: 8d 65 f4 lea -0xc(%ebp),%esp 12ca7b: 5b pop %ebx 12ca7c: 5e pop %esi 12ca7d: 5f pop %edi 12ca7e: c9 leave 12ca7f: 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 ); 12ca80: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12ca83: 85 c0 test %eax,%eax <== NOT EXECUTED 12ca85: 74 09 je 12ca90 <== NOT EXECUTED 12ca87: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12ca8a: 56 push %esi <== NOT EXECUTED 12ca8b: ff d0 call *%eax <== NOT EXECUTED 12ca8d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12ca90: e8 27 46 01 00 call 1410bc <__errno> <== NOT EXECUTED 12ca95: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12ca9b: 90 nop <== NOT EXECUTED 12ca9c: 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; } 12caa1: 89 d8 mov %ebx,%eax 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 0010aaa4 : */ void vprintk( const char *fmt, va_list ap ) { 10aaa4: 55 push %ebp 10aaa5: 89 e5 mov %esp,%ebp 10aaa7: 57 push %edi 10aaa8: 56 push %esi 10aaa9: 53 push %ebx 10aaaa: 83 ec 4c sub $0x4c,%esp 10aaad: 8b 75 08 mov 0x8(%ebp),%esi 10aab0: 8b 7d 0c mov 0xc(%ebp),%edi for (; *fmt != '\0'; fmt++) { 10aab3: 8a 06 mov (%esi),%al 10aab5: 84 c0 test %al,%al 10aab7: 75 28 jne 10aae1 <== NEVER TAKEN 10aab9: e9 d1 01 00 00 jmp 10ac8f <== NOT EXECUTED 10aabe: 66 90 xchg %ax,%ax <== NOT EXECUTED bool sign = false; char lead = ' '; char c; if (*fmt != '%') { BSP_output_char(*fmt); 10aac0: 83 ec 0c sub $0xc,%esp 10aac3: 0f be c0 movsbl %al,%eax 10aac6: 50 push %eax 10aac7: ff 15 84 12 12 00 call *0x121284 10aacd: 89 7d bc mov %edi,-0x44(%ebp) continue; 10aad0: 83 c4 10 add $0x10,%esp void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 10aad3: 46 inc %esi 10aad4: 8a 06 mov (%esi),%al 10aad6: 84 c0 test %al,%al 10aad8: 0f 84 b1 01 00 00 je 10ac8f 10aade: 8b 7d bc mov -0x44(%ebp),%edi bool minus = false; bool sign = false; char lead = ' '; char c; if (*fmt != '%') { 10aae1: 3c 25 cmp $0x25,%al 10aae3: 75 db jne 10aac0 BSP_output_char(*fmt); continue; } fmt++; 10aae5: 46 inc %esi if (*fmt == '0' ) { 10aae6: 8a 0e mov (%esi),%cl 10aae8: 80 f9 30 cmp $0x30,%cl 10aaeb: 0f 84 b7 01 00 00 je 10aca8 10aaf1: b2 20 mov $0x20,%dl lead = '0'; fmt++; } if (*fmt == '-' ) { 10aaf3: 80 f9 2d cmp $0x2d,%cl 10aaf6: 0f 84 ba 01 00 00 je 10acb6 10aafc: c6 45 c4 00 movb $0x0,-0x3c(%ebp) minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 10ab00: 8d 41 d0 lea -0x30(%ecx),%eax 10ab03: 3c 09 cmp $0x9,%al 10ab05: 0f 87 bd 01 00 00 ja 10acc8 10ab0b: 31 db xor %ebx,%ebx 10ab0d: 8d 76 00 lea 0x0(%esi),%esi width *= 10; width += ((unsigned) *fmt - '0'); 10ab10: 8d 04 9b lea (%ebx,%ebx,4),%eax 10ab13: 0f be c9 movsbl %cl,%ecx 10ab16: 8d 5c 41 d0 lea -0x30(%ecx,%eax,2),%ebx fmt++; 10ab1a: 46 inc %esi } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 10ab1b: 8a 0e mov (%esi),%cl 10ab1d: 8d 41 d0 lea -0x30(%ecx),%eax 10ab20: 3c 09 cmp $0x9,%al 10ab22: 76 ec jbe 10ab10 width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 10ab24: 80 f9 6c cmp $0x6c,%cl 10ab27: 0f 84 a7 01 00 00 je 10acd4 lflag = true; c = *++fmt; } if ( c == 'c' ) { 10ab2d: 80 f9 63 cmp $0x63,%cl 10ab30: 0f 84 aa 01 00 00 je 10ace0 /* 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' ) { 10ab36: 80 f9 73 cmp $0x73,%cl 10ab39: 0f 84 bd 01 00 00 je 10acfc continue; } /* must be a numeric format or something unsupported */ if ( c == 'o' || c == 'O' ) { 10ab3f: 80 f9 6f cmp $0x6f,%cl 10ab42: 0f 84 50 01 00 00 je 10ac98 <== ALWAYS TAKEN 10ab48: 80 f9 4f cmp $0x4f,%cl 10ab4b: 0f 84 47 01 00 00 je 10ac98 base = 8; sign = false; } else if ( c == 'i' || c == 'I' || 10ab51: 80 f9 69 cmp $0x69,%cl 10ab54: 74 56 je 10abac 10ab56: 80 f9 49 cmp $0x49,%cl 10ab59: 74 51 je 10abac 10ab5b: 80 f9 64 cmp $0x64,%cl 10ab5e: 74 4c je 10abac 10ab60: 80 f9 44 cmp $0x44,%cl 10ab63: 74 47 je 10abac c == 'd' || c == 'D' ) { base = 10; sign = true; } else if ( c == 'u' || c == 'U' ) { 10ab65: 80 f9 75 cmp $0x75,%cl 10ab68: 0f 84 62 02 00 00 je 10add0 10ab6e: 80 f9 55 cmp $0x55,%cl 10ab71: 0f 84 59 02 00 00 je 10add0 base = 10; sign = false; } else if ( c == 'x' || c == 'X' ) { 10ab77: 80 f9 78 cmp $0x78,%cl 10ab7a: 0f 84 97 02 00 00 je 10ae17 10ab80: 80 f9 58 cmp $0x58,%cl 10ab83: 0f 84 8e 02 00 00 je 10ae17 base = 16; sign = false; } else if ( c == 'p' ) { 10ab89: 80 f9 70 cmp $0x70,%cl 10ab8c: 0f 84 a8 02 00 00 je 10ae3a base = 16; sign = false; lflag = true; } else { BSP_output_char(c); 10ab92: 83 ec 0c sub $0xc,%esp 10ab95: 0f be c9 movsbl %cl,%ecx 10ab98: 51 push %ecx 10ab99: ff 15 84 12 12 00 call *0x121284 10ab9f: 89 7d bc mov %edi,-0x44(%ebp) continue; 10aba2: 83 c4 10 add $0x10,%esp 10aba5: e9 29 ff ff ff jmp 10aad3 <== ALWAYS TAKEN 10abaa: 66 90 xchg %ax,%ax <== NOT EXECUTED 10abac: b1 01 mov $0x1,%cl 10abae: c7 45 b8 0a 00 00 00 movl $0xa,-0x48(%ebp) } printNum( 10abb5: 0f be d2 movsbl %dl,%edx 10abb8: 89 55 b4 mov %edx,-0x4c(%ebp) lflag ? va_arg(ap, long) : (long) va_arg(ap, int), 10abbb: 8d 47 04 lea 0x4(%edi),%eax 10abbe: 89 45 bc mov %eax,-0x44(%ebp) } else { BSP_output_char(c); continue; } printNum( 10abc1: 8b 3f mov (%edi),%edi unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { 10abc3: 84 c9 test %cl,%cl 10abc5: 74 08 je 10abcf 10abc7: 85 ff test %edi,%edi 10abc9: 0f 88 0f 02 00 00 js 10adde BSP_output_char('-'); unsigned_num = (unsigned long) -num; if (maxwidth) maxwidth--; } else { unsigned_num = (unsigned long) num; 10abcf: 89 7d c0 mov %edi,-0x40(%ebp) } count = 0; while ((n = unsigned_num / base) > 0) { 10abd2: 8b 45 c0 mov -0x40(%ebp),%eax 10abd5: 31 d2 xor %edx,%edx 10abd7: f7 75 b8 divl -0x48(%ebp) 10abda: 89 c1 mov %eax,%ecx 10abdc: 85 c0 test %eax,%eax 10abde: 0f 84 25 02 00 00 je 10ae09 10abe4: 8a 45 b8 mov -0x48(%ebp),%al 10abe7: 88 45 c4 mov %al,-0x3c(%ebp) 10abea: 31 ff xor %edi,%edi 10abec: 89 5d b0 mov %ebx,-0x50(%ebp) 10abef: 8b 55 c0 mov -0x40(%ebp),%edx 10abf2: 8b 5d b8 mov -0x48(%ebp),%ebx 10abf5: eb 05 jmp 10abfc <== ALWAYS TAKEN 10abf7: 90 nop <== NOT EXECUTED 10abf8: 89 ca mov %ecx,%edx 10abfa: 89 c1 mov %eax,%ecx toPrint[count++] = (char) (unsigned_num - (n * base)); 10abfc: 8a 45 c4 mov -0x3c(%ebp),%al 10abff: f6 e1 mul %cl 10ac01: 28 c2 sub %al,%dl 10ac03: 88 54 3d d4 mov %dl,-0x2c(%ebp,%edi,1) 10ac07: 47 inc %edi } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 10ac08: 89 c8 mov %ecx,%eax 10ac0a: 31 d2 xor %edx,%edx 10ac0c: f7 f3 div %ebx 10ac0e: 85 c0 test %eax,%eax 10ac10: 75 e6 jne 10abf8 10ac12: 8b 5d b0 mov -0x50(%ebp),%ebx 10ac15: 8d 47 01 lea 0x1(%edi),%eax 10ac18: 89 45 c4 mov %eax,-0x3c(%ebp) 10ac1b: 89 4d c0 mov %ecx,-0x40(%ebp) toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; 10ac1e: 8a 45 c0 mov -0x40(%ebp),%al 10ac21: 88 44 3d d4 mov %al,-0x2c(%ebp,%edi,1) for (n=maxwidth ; n > count; n-- ) 10ac25: 3b 5d c4 cmp -0x3c(%ebp),%ebx 10ac28: 76 1f jbe 10ac49 10ac2a: 8b 7d c4 mov -0x3c(%ebp),%edi 10ac2d: 89 75 c0 mov %esi,-0x40(%ebp) 10ac30: 8b 75 b4 mov -0x4c(%ebp),%esi 10ac33: 90 nop BSP_output_char(lead); 10ac34: 83 ec 0c sub $0xc,%esp 10ac37: 56 push %esi 10ac38: 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-- ) 10ac3e: 4b dec %ebx 10ac3f: 83 c4 10 add $0x10,%esp 10ac42: 39 fb cmp %edi,%ebx 10ac44: 77 ee ja 10ac34 10ac46: 8b 75 c0 mov -0x40(%ebp),%esi BSP_output_char(lead); for (n = 0; n < count; n++) { 10ac49: 8b 45 c4 mov -0x3c(%ebp),%eax 10ac4c: 85 c0 test %eax,%eax 10ac4e: 0f 84 7f fe ff ff je 10aad3 <== ALWAYS TAKEN 10ac54: 8b 45 c4 mov -0x3c(%ebp),%eax 10ac57: 8d 7c 05 d3 lea -0x2d(%ebp,%eax,1),%edi 10ac5b: 31 db xor %ebx,%ebx 10ac5d: 89 75 c0 mov %esi,-0x40(%ebp) 10ac60: 89 c6 mov %eax,%esi 10ac62: 66 90 xchg %ax,%ax BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 10ac64: 83 ec 0c sub $0xc,%esp 10ac67: 0f be 07 movsbl (%edi),%eax 10ac6a: 0f be 80 70 f8 11 00 movsbl 0x11f870(%eax),%eax 10ac71: 50 push %eax 10ac72: 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++) { 10ac78: 43 inc %ebx 10ac79: 4f dec %edi 10ac7a: 83 c4 10 add $0x10,%esp 10ac7d: 39 f3 cmp %esi,%ebx 10ac7f: 72 e3 jb 10ac64 10ac81: 8b 75 c0 mov -0x40(%ebp),%esi void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 10ac84: 46 inc %esi 10ac85: 8a 06 mov (%esi),%al 10ac87: 84 c0 test %al,%al 10ac89: 0f 85 4f fe ff ff jne 10aade <== NEVER TAKEN sign, width, lead ); } } 10ac8f: 8d 65 f4 lea -0xc(%ebp),%esp 10ac92: 5b pop %ebx 10ac93: 5e pop %esi 10ac94: 5f pop %edi 10ac95: c9 leave 10ac96: c3 ret 10ac97: 90 nop <== NOT EXECUTED base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 10ac98: 31 c9 xor %ecx,%ecx 10ac9a: c7 45 b8 08 00 00 00 movl $0x8,-0x48(%ebp) 10aca1: e9 0f ff ff ff jmp 10abb5 <== ALWAYS TAKEN 10aca6: 66 90 xchg %ax,%ax <== NOT EXECUTED continue; } fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; 10aca8: 46 inc %esi 10aca9: 8a 0e mov (%esi),%cl 10acab: b2 30 mov $0x30,%dl } if (*fmt == '-' ) { 10acad: 80 f9 2d cmp $0x2d,%cl 10acb0: 0f 85 46 fe ff ff jne 10aafc <== NEVER TAKEN minus = true; fmt++; 10acb6: 46 inc %esi 10acb7: 8a 0e mov (%esi),%cl 10acb9: c6 45 c4 01 movb $0x1,-0x3c(%ebp) } while (*fmt >= '0' && *fmt <= '9' ) { 10acbd: 8d 41 d0 lea -0x30(%ecx),%eax 10acc0: 3c 09 cmp $0x9,%al 10acc2: 0f 86 43 fe ff ff jbe 10ab0b <== NEVER TAKEN 10acc8: 31 db xor %ebx,%ebx width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 10acca: 80 f9 6c cmp $0x6c,%cl 10accd: 0f 85 5a fe ff ff jne 10ab2d 10acd3: 90 nop lflag = true; c = *++fmt; 10acd4: 46 inc %esi 10acd5: 8a 0e mov (%esi),%cl } if ( c == 'c' ) { 10acd7: 80 f9 63 cmp $0x63,%cl 10acda: 0f 85 56 fe ff ff jne 10ab36 <== NEVER TAKEN /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); 10ace0: 8d 47 04 lea 0x4(%edi),%eax 10ace3: 89 45 bc mov %eax,-0x44(%ebp) BSP_output_char(chr); 10ace6: 83 ec 0c sub $0xc,%esp 10ace9: 0f be 07 movsbl (%edi),%eax 10acec: 50 push %eax 10aced: ff 15 84 12 12 00 call *0x121284 continue; 10acf3: 83 c4 10 add $0x10,%esp 10acf6: e9 d8 fd ff ff jmp 10aad3 <== ALWAYS TAKEN 10acfb: 90 nop <== NOT EXECUTED } if ( c == 's' ) { unsigned i, len; char *s, *str; str = va_arg(ap, char *); 10acfc: 8d 47 04 lea 0x4(%edi),%eax 10acff: 89 45 bc mov %eax,-0x44(%ebp) 10ad02: 8b 07 mov (%edi),%eax if ( str == NULL ) { 10ad04: 85 c0 test %eax,%eax 10ad06: 0f 84 19 01 00 00 je 10ae25 str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 10ad0c: 80 38 00 cmpb $0x0,(%eax) 10ad0f: 0f 84 1e 01 00 00 je 10ae33 10ad15: 31 ff xor %edi,%edi 10ad17: 90 nop 10ad18: 47 inc %edi 10ad19: 80 3c 38 00 cmpb $0x0,(%eax,%edi,1) 10ad1d: 75 f9 jne 10ad18 ; /* leading spaces */ if ( !minus ) 10ad1f: 80 7d c4 00 cmpb $0x0,-0x3c(%ebp) 10ad23: 75 30 jne 10ad55 for ( i=len ; i 10ad29: 89 fa mov %edi,%edx 10ad2b: 89 7d c0 mov %edi,-0x40(%ebp) 10ad2e: 89 c7 mov %eax,%edi 10ad30: 89 75 b8 mov %esi,-0x48(%ebp) 10ad33: 89 de mov %ebx,%esi 10ad35: 89 d3 mov %edx,%ebx 10ad37: 90 nop BSP_output_char(' '); 10ad38: 83 ec 0c sub $0xc,%esp 10ad3b: 6a 20 push $0x20 10ad3d: ff 15 84 12 12 00 call *0x121284 for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i 10ad4b: 89 f3 mov %esi,%ebx 10ad4d: 89 f8 mov %edi,%eax 10ad4f: 8b 7d c0 mov -0x40(%ebp),%edi 10ad52: 8b 75 b8 mov -0x48(%ebp),%esi BSP_output_char(' '); /* no width option */ if (width == 0) { 10ad55: 85 db test %ebx,%ebx 10ad57: 75 06 jne 10ad5f width = len; } /* output the string */ for ( i=0 ; i 10ad5d: 89 fb mov %edi,%ebx 10ad5f: 8a 10 mov (%eax),%dl 10ad61: 84 d2 test %dl,%dl 10ad63: 74 3f je 10ada4 <== ALWAYS TAKEN BSP_output_char(*str); 10ad65: 83 ec 0c sub $0xc,%esp 10ad68: 0f be d2 movsbl %dl,%edx 10ad6b: 52 push %edx 10ad6c: 89 45 ac mov %eax,-0x54(%ebp) 10ad6f: ff 15 84 12 12 00 call *0x121284 if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i <== ALWAYS TAKEN 10ad85: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED BSP_output_char(*str); 10ad88: 83 ec 0c sub $0xc,%esp 10ad8b: 0f be d2 movsbl %dl,%edx 10ad8e: 52 push %edx 10ad8f: ff 15 84 12 12 00 call *0x121284 if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i 10ad9f: 89 f3 mov %esi,%ebx 10ada1: 8b 75 c0 mov -0x40(%ebp),%esi BSP_output_char(*str); /* trailing spaces */ if ( minus ) 10ada4: 80 7d c4 00 cmpb $0x0,-0x3c(%ebp) 10ada8: 0f 84 25 fd ff ff je 10aad3 for ( i=len ; i 10adb6: 66 90 xchg %ax,%ax BSP_output_char(' '); 10adb8: 83 ec 0c sub $0xc,%esp 10adbb: 6a 20 push $0x20 10adbd: ff 15 84 12 12 00 call *0x121284 for ( i=0 ; i 10adcb: e9 03 fd ff ff jmp 10aad3 <== ALWAYS TAKEN base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 10add0: 31 c9 xor %ecx,%ecx 10add2: c7 45 b8 0a 00 00 00 movl $0xa,-0x48(%ebp) 10add9: e9 d7 fd ff ff jmp 10abb5 <== ALWAYS TAKEN unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-'); 10adde: 83 ec 0c sub $0xc,%esp 10ade1: 6a 2d push $0x2d 10ade3: ff 15 84 12 12 00 call *0x121284 unsigned_num = (unsigned long) -num; 10ade9: f7 df neg %edi 10adeb: 89 7d c0 mov %edi,-0x40(%ebp) if (maxwidth) maxwidth--; 10adee: 83 c4 10 add $0x10,%esp 10adf1: 83 fb 01 cmp $0x1,%ebx 10adf4: 83 d3 ff adc $0xffffffff,%ebx } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 10adf7: 8b 45 c0 mov -0x40(%ebp),%eax 10adfa: 31 d2 xor %edx,%edx 10adfc: f7 75 b8 divl -0x48(%ebp) 10adff: 89 c1 mov %eax,%ecx 10ae01: 85 c0 test %eax,%eax 10ae03: 0f 85 db fd ff ff jne 10abe4 <== NEVER TAKEN 10ae09: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) 10ae10: 31 ff xor %edi,%edi 10ae12: e9 07 fe ff ff jmp 10ac1e <== ALWAYS TAKEN base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 10ae17: 31 c9 xor %ecx,%ecx 10ae19: c7 45 b8 10 00 00 00 movl $0x10,-0x48(%ebp) 10ae20: e9 90 fd ff ff jmp 10abb5 <== ALWAYS TAKEN unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { 10ae25: b8 6f f8 11 00 mov $0x11f86f,%eax str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 10ae2a: 80 38 00 cmpb $0x0,(%eax) 10ae2d: 0f 85 e2 fe ff ff jne 10ad15 <== ALWAYS TAKEN 10ae33: 31 ff xor %edi,%edi 10ae35: e9 e5 fe ff ff jmp 10ad1f <== ALWAYS TAKEN } else { BSP_output_char(c); continue; } printNum( 10ae3a: 0f be d2 movsbl %dl,%edx 10ae3d: 89 55 b4 mov %edx,-0x4c(%ebp) 10ae40: 31 c9 xor %ecx,%ecx 10ae42: c7 45 b8 10 00 00 00 movl $0x10,-0x48(%ebp) 10ae49: e9 6d fd ff ff jmp 10abbb <== ALWAYS TAKEN 0011da30 : ssize_t write( int fd, const void *buffer, size_t count ) { 11da30: 55 push %ebp 11da31: 89 e5 mov %esp,%ebp 11da33: 53 push %ebx 11da34: 83 ec 04 sub $0x4,%esp 11da37: 8b 5d 08 mov 0x8(%ebp),%ebx 11da3a: 8b 45 0c mov 0xc(%ebp),%eax 11da3d: 8b 55 10 mov 0x10(%ebp),%edx ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 11da40: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx 11da46: 73 50 jae 11da98 <== ALWAYS TAKEN iop = rtems_libio_iop( fd ); 11da48: c1 e3 06 shl $0x6,%ebx 11da4b: 03 1d a0 51 12 00 add 0x1251a0,%ebx rtems_libio_check_is_open( iop ); 11da51: 8b 4b 14 mov 0x14(%ebx),%ecx 11da54: f6 c5 01 test $0x1,%ch 11da57: 74 3f je 11da98 <== ALWAYS TAKEN rtems_libio_check_buffer( buffer ); 11da59: 85 c0 test %eax,%eax 11da5b: 74 4f je 11daac <== ALWAYS TAKEN rtems_libio_check_count( count ); 11da5d: 85 d2 test %edx,%edx 11da5f: 74 2f je 11da90 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 11da61: 83 e1 04 and $0x4,%ecx 11da64: 74 46 je 11daac <== ALWAYS TAKEN /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 11da66: 8b 4b 3c mov 0x3c(%ebx),%ecx 11da69: 8b 49 0c mov 0xc(%ecx),%ecx 11da6c: 85 c9 test %ecx,%ecx 11da6e: 74 4e je 11dabe <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); 11da70: 83 ec 04 sub $0x4,%esp 11da73: 52 push %edx 11da74: 50 push %eax 11da75: 53 push %ebx 11da76: ff d1 call *%ecx if ( rc > 0 ) 11da78: 83 c4 10 add $0x10,%esp 11da7b: 85 c0 test %eax,%eax 11da7d: 7e 0b jle 11da8a <== ALWAYS TAKEN iop->offset += rc; 11da7f: 89 c1 mov %eax,%ecx 11da81: c1 f9 1f sar $0x1f,%ecx 11da84: 01 43 0c add %eax,0xc(%ebx) 11da87: 11 4b 10 adc %ecx,0x10(%ebx) return rc; } 11da8a: 8b 5d fc mov -0x4(%ebp),%ebx 11da8d: c9 leave 11da8e: c3 ret 11da8f: 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 ); 11da90: 31 c0 xor %eax,%eax if ( rc > 0 ) iop->offset += rc; return rc; } 11da92: 8b 5d fc mov -0x4(%ebp),%ebx 11da95: c9 leave 11da96: c3 ret 11da97: 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 ); 11da98: e8 03 49 ff ff call 1123a0 <__errno> <== NOT EXECUTED 11da9d: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 11daa3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11daa8: eb e0 jmp 11da8a <== NOT EXECUTED 11daaa: 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 ); 11daac: e8 ef 48 ff ff call 1123a0 <__errno> <== NOT EXECUTED 11dab1: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 11dab7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11dabc: eb cc jmp 11da8a <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 11dabe: e8 dd 48 ff ff call 1123a0 <__errno> <== NOT EXECUTED 11dac3: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11dac9: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11dace: eb ba jmp 11da8a <== NOT EXECUTED 0010c24c : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 10c24c: 55 push %ebp 10c24d: 89 e5 mov %esp,%ebp 10c24f: 57 push %edi 10c250: 56 push %esi 10c251: 53 push %ebx 10c252: 83 ec 3c sub $0x3c,%esp 10c255: 8b 45 08 mov 0x8(%ebp),%eax 10c258: 8b 5d 0c mov 0xc(%ebp),%ebx 10c25b: 8b 7d 10 mov 0x10(%ebp),%edi int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); 10c25e: 3b 05 cc 57 12 00 cmp 0x1257cc,%eax 10c264: 0f 83 f2 00 00 00 jae 10c35c <== ALWAYS TAKEN iop = rtems_libio_iop( fd ); 10c26a: c1 e0 06 shl $0x6,%eax 10c26d: 8b 15 20 a0 12 00 mov 0x12a020,%edx 10c273: 01 d0 add %edx,%eax 10c275: 89 45 e4 mov %eax,-0x1c(%ebp) rtems_libio_check_is_open( iop ); 10c278: 8b 40 14 mov 0x14(%eax),%eax 10c27b: f6 c4 01 test $0x1,%ah 10c27e: 0f 84 d8 00 00 00 je 10c35c rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 10c284: a8 04 test $0x4,%al 10c286: 74 7c je 10c304 <== ALWAYS TAKEN /* * Argument validation on IO vector */ if ( !iov ) 10c288: 85 db test %ebx,%ebx 10c28a: 74 78 je 10c304 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 10c28c: 85 ff test %edi,%edi 10c28e: 7e 74 jle 10c304 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 10c290: 81 ff 00 04 00 00 cmp $0x400,%edi 10c296: 7f 6c jg 10c304 <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) 10c298: 8b 55 e4 mov -0x1c(%ebp),%edx 10c29b: 8b 42 3c mov 0x3c(%edx),%eax 10c29e: 8b 48 0c mov 0xc(%eax),%ecx 10c2a1: 85 c9 test %ecx,%ecx 10c2a3: 0f 84 c5 00 00 00 je 10c36e <== ALWAYS TAKEN rtems_set_errno_and_return_minus_one( ENOTSUP ); 10c2a9: be 01 00 00 00 mov $0x1,%esi 10c2ae: 31 c0 xor %eax,%eax 10c2b0: 31 c9 xor %ecx,%ecx 10c2b2: eb 02 jmp 10c2b6 <== 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++ ) { 10c2b4: 89 d1 mov %edx,%ecx if ( !iov[v].iov_base ) 10c2b6: 8b 14 c3 mov (%ebx,%eax,8),%edx 10c2b9: 85 d2 test %edx,%edx 10c2bb: 74 47 je 10c304 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 ) 10c2bd: 8b 54 c3 04 mov 0x4(%ebx,%eax,8),%edx 10c2c1: 85 d2 test %edx,%edx 10c2c3: 74 02 je 10c2c7 <== ALWAYS TAKEN 10c2c5: 31 f6 xor %esi,%esi all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; 10c2c7: 8d 14 11 lea (%ecx,%edx,1),%edx if ( total < old || total > SSIZE_MAX ) 10c2ca: 39 d1 cmp %edx,%ecx 10c2cc: 7f 36 jg 10c304 10c2ce: 81 fa ff 7f 00 00 cmp $0x7fff,%edx 10c2d4: 7f 2e jg 10c304 * 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++ ) { 10c2d6: 40 inc %eax 10c2d7: 39 c7 cmp %eax,%edi 10c2d9: 7f d9 jg 10c2b4 <== NEVER TAKEN } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 10c2db: 89 f1 mov %esi,%ecx <== NOT EXECUTED 10c2dd: 84 c9 test %cl,%cl <== NOT EXECUTED 10c2df: 75 3d jne 10c31e <== NOT EXECUTED 10c2e1: 31 f6 xor %esi,%esi <== NOT EXECUTED 10c2e3: 31 d2 xor %edx,%edx <== NOT EXECUTED 10c2e5: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 10c2e8: 8b 44 f3 04 mov 0x4(%ebx,%esi,8),%eax <== NOT EXECUTED 10c2ec: 85 c0 test %eax,%eax <== NOT EXECUTED 10c2ee: 75 32 jne 10c322 <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 10c2f0: 46 inc %esi <== NOT EXECUTED 10c2f1: 39 f7 cmp %esi,%edi <== NOT EXECUTED 10c2f3: 7f f3 jg 10c2e8 <== NOT EXECUTED 10c2f5: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 10c2f8: 89 d0 mov %edx,%eax <== NOT EXECUTED 10c2fa: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10c2fd: 5b pop %ebx <== NOT EXECUTED 10c2fe: 5e pop %esi <== NOT EXECUTED 10c2ff: 5f pop %edi <== NOT EXECUTED 10c300: c9 leave <== NOT EXECUTED 10c301: c3 ret <== NOT EXECUTED 10c302: 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 ); 10c304: e8 ff 82 00 00 call 114608 <__errno> 10c309: c7 00 16 00 00 00 movl $0x16,(%eax) 10c30f: ba ff ff ff ff mov $0xffffffff,%edx if (bytes != iov[ v ].iov_len) break; } return total; } 10c314: 89 d0 mov %edx,%eax 10c316: 8d 65 f4 lea -0xc(%ebp),%esp 10c319: 5b pop %ebx 10c31a: 5e pop %esi 10c31b: 5f pop %edi 10c31c: c9 leave 10c31d: c3 ret } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 10c31e: 31 d2 xor %edx,%edx <== NOT EXECUTED 10c320: eb f2 jmp 10c314 <== NOT EXECUTED 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 ); 10c322: 52 push %edx <== NOT EXECUTED 10c323: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10c326: 8b 51 3c mov 0x3c(%ecx),%edx <== NOT EXECUTED 10c329: 50 push %eax <== NOT EXECUTED 10c32a: ff 34 f3 pushl (%ebx,%esi,8) <== NOT EXECUTED 10c32d: 51 push %ecx <== NOT EXECUTED 10c32e: ff 52 0c call *0xc(%edx) <== NOT EXECUTED 10c331: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED if ( bytes < 0 ) 10c334: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10c337: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED 10c33a: 7c 42 jl 10c37e <== NOT EXECUTED return -1; if ( bytes > 0 ) { 10c33c: 74 13 je 10c351 <== NOT EXECUTED iop->offset += bytes; 10c33e: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED 10c341: 99 cltd <== NOT EXECUTED 10c342: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10c345: 01 41 0c add %eax,0xc(%ecx) <== NOT EXECUTED 10c348: 11 51 10 adc %edx,0x10(%ecx) <== NOT EXECUTED total += bytes; 10c34b: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED 10c34e: 01 45 c0 add %eax,-0x40(%ebp) <== NOT EXECUTED } if (bytes != iov[ v ].iov_len) 10c351: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED 10c354: 3b 54 f3 04 cmp 0x4(%ebx,%esi,8),%edx <== NOT EXECUTED 10c358: 74 96 je 10c2f0 <== NOT EXECUTED 10c35a: eb 99 jmp 10c2f5 <== NOT EXECUTED ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 10c35c: e8 a7 82 00 00 call 114608 <__errno> 10c361: c7 00 09 00 00 00 movl $0x9,(%eax) 10c367: ba ff ff ff ff mov $0xffffffff,%edx 10c36c: eb a6 jmp 10c314 <== ALWAYS TAKEN 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 ); 10c36e: e8 95 82 00 00 call 114608 <__errno> <== NOT EXECUTED 10c373: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10c379: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED 10c37c: eb 96 jmp 10c314 <== 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 ) 10c37e: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED 10c381: eb 91 jmp 10c314 <== NOT EXECUTED