0010e9b0 : #define MAXSYMLINK 5 int IMFS_Set_handlers( rtems_filesystem_location_info_t *loc ) { 10e9b0: 55 push %ebp 10e9b1: 89 e5 mov %esp,%ebp 10e9b3: 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; 10e9b6: 8b 50 10 mov 0x10(%eax),%edx 10e9b9: 8b 4a 34 mov 0x34(%edx),%ecx switch( node->type ) { 10e9bc: 8b 10 mov (%eax),%edx 10e9be: 83 7a 4c 07 cmpl $0x7,0x4c(%edx) 10e9c2: 77 12 ja 10e9d6 10e9c4: 8b 52 4c mov 0x4c(%edx),%edx 10e9c7: ff 24 95 08 fd 11 00 jmp *0x11fd08(,%edx,4) 10e9ce: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 10e9d0: 8b 51 08 mov 0x8(%ecx),%edx 10e9d3: 89 50 08 mov %edx,0x8(%eax) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 10e9d6: 31 c0 xor %eax,%eax 10e9d8: c9 leave 10e9d9: c3 ret 10e9da: 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; 10e9dc: 8b 51 04 mov 0x4(%ecx),%edx 10e9df: 89 50 08 mov %edx,0x8(%eax) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 10e9e2: 31 c0 xor %eax,%eax 10e9e4: c9 leave 10e9e5: c3 ret 10e9e6: 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; 10e9e8: c7 40 08 40 fe 11 00 movl $0x11fe40,0x8(%eax) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 10e9ef: 31 c0 xor %eax,%eax 10e9f1: c9 leave 10e9f2: c3 ret 10e9f3: 90 nop <== NOT EXECUTED break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; 10e9f4: c7 40 08 40 fd 11 00 movl $0x11fd40,0x8(%eax) break; } return 0; } 10e9fb: 31 c0 xor %eax,%eax 10e9fd: c9 leave 10e9fe: c3 ret 10e9ff: 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; 10ea00: c7 40 08 00 fe 11 00 movl $0x11fe00,0x8(%eax) loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 10ea07: 31 c0 xor %eax,%eax 10ea09: c9 leave 10ea0a: c3 ret 0011161c : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 11161c: 55 push %ebp 11161d: 89 e5 mov %esp,%ebp 11161f: 57 push %edi 111620: 56 push %esi 111621: 53 push %ebx 111622: 83 ec 1c sub $0x1c,%esp 111625: 8b 5d 08 mov 0x8(%ebp),%ebx 111628: 8b 75 0c mov 0xc(%ebp),%esi 11162b: 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 ) 11162e: 85 db test %ebx,%ebx 111630: 75 0a jne 11163c 111632: 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; } 111634: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 111637: 5b pop %ebx <== NOT EXECUTED 111638: 5e pop %esi <== NOT EXECUTED 111639: 5f pop %edi <== NOT EXECUTED 11163a: c9 leave <== NOT EXECUTED 11163b: c3 ret <== NOT EXECUTED return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); 11163c: 50 push %eax 11163d: a1 18 30 12 00 mov 0x123018,%eax 111642: 8b 40 2c mov 0x2c(%eax),%eax 111645: f7 d0 not %eax 111647: 23 45 14 and 0x14(%ebp),%eax 11164a: 50 push %eax 11164b: ff 75 10 pushl 0x10(%ebp) 11164e: 56 push %esi 11164f: e8 28 ff ff ff call 11157c if ( !node ) 111654: 83 c4 10 add $0x10,%esp 111657: 85 c0 test %eax,%eax 111659: 74 d9 je 111634 return NULL; /* * Set the type specific information */ switch (type) { 11165b: 83 fe 07 cmp $0x7,%esi 11165e: 76 18 jbe 111678 case IMFS_FIFO: node->info.fifo.pipe = NULL; break; default: assert(0); 111660: 68 5d f7 11 00 push $0x11f75d <== NOT EXECUTED 111665: 68 1c 00 12 00 push $0x12001c <== NOT EXECUTED 11166a: 6a 5c push $0x5c <== NOT EXECUTED 11166c: 68 b0 ff 11 00 push $0x11ffb0 <== NOT EXECUTED 111671: e8 52 66 ff ff call 107cc8 <__assert_func> <== NOT EXECUTED 111676: 66 90 xchg %ax,%ax <== NOT EXECUTED return NULL; /* * Set the type specific information */ switch (type) { 111678: ff 24 b5 fc ff 11 00 jmp *0x11fffc(,%esi,4) 11167f: 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; 111680: 8b 17 mov (%edi),%edx 111682: 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; 111685: 8b 13 mov (%ebx),%edx fs_info = parent_loc->mt_entry->fs_info; 111687: 8b 4b 10 mov 0x10(%ebx),%ecx 11168a: 8b 59 34 mov 0x34(%ecx),%ebx node->Parent = parent; 11168d: 89 50 08 mov %edx,0x8(%eax) node->st_ino = ++fs_info->ino_count; 111690: 8b 0b mov (%ebx),%ecx 111692: 41 inc %ecx 111693: 89 0b mov %ecx,(%ebx) 111695: 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 ); 111698: 83 ec 08 sub $0x8,%esp 11169b: 50 push %eax 11169c: 83 c2 50 add $0x50,%edx 11169f: 52 push %edx 1116a0: 89 45 e4 mov %eax,-0x1c(%ebp) 1116a3: e8 c4 a7 ff ff call 10be6c <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; 1116a8: 83 c4 10 add $0x10,%esp 1116ab: 8b 45 e4 mov -0x1c(%ebp),%eax } 1116ae: 8d 65 f4 lea -0xc(%ebp),%esp 1116b1: 5b pop %ebx 1116b2: 5e pop %esi 1116b3: 5f pop %edi 1116b4: c9 leave 1116b5: c3 ret 1116b6: 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; 1116b8: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) <== NOT EXECUTED 1116bf: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) <== NOT EXECUTED node->info.linearfile.direct = 0; 1116c6: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax) <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; 1116cd: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) 1116d4: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) node->info.file.indirect = 0; 1116db: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax) node->info.file.doubly_indirect = 0; 1116e2: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax) node->info.file.triply_indirect = 0; 1116e9: c7 40 60 00 00 00 00 movl $0x0,0x60(%eax) break; 1116f0: eb 93 jmp 111685 1116f2: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_FIFO: node->info.fifo.pipe = NULL; 1116f4: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) break; 1116fb: eb 88 jmp 111685 1116fd: 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; 111700: 8b 17 mov (%edi),%edx 111702: 89 50 50 mov %edx,0x50(%eax) node->info.device.minor = info->device.minor; 111705: 8b 57 04 mov 0x4(%edi),%edx 111708: 89 50 54 mov %edx,0x54(%eax) break; 11170b: e9 75 ff ff ff jmp 111685 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 111710: 8d 50 54 lea 0x54(%eax),%edx 111713: 89 50 50 mov %edx,0x50(%eax) the_chain->permanent_null = NULL; 111716: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) the_chain->last = _Chain_Head(the_chain); 11171d: 8d 50 50 lea 0x50(%eax),%edx 111720: 89 50 58 mov %edx,0x58(%eax) 111723: e9 5d ff ff ff jmp 111685 00109474 : void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 109474: 55 push %ebp 109475: 89 e5 mov %esp,%ebp 109477: 57 push %edi 109478: 56 push %esi 109479: 53 push %ebx 10947a: 83 ec 1c sub $0x1c,%esp 10947d: 8b 45 08 mov 0x8(%ebp),%eax 109480: 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 ); 109483: 85 c0 test %eax,%eax 109485: 74 7a je 109501 assert( level >= 0 ); 109487: 85 f6 test %esi,%esi 109489: 0f 88 a4 00 00 00 js 109533 assert( the_directory->type == IMFS_DIRECTORY ); 10948f: 83 78 4c 01 cmpl $0x1,0x4c(%eax) 109493: 0f 85 81 00 00 00 jne 10951a the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 109499: 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; 10949c: 83 c0 54 add $0x54,%eax 10949f: 89 45 e4 mov %eax,-0x1c(%ebp) 1094a2: 39 c7 cmp %eax,%edi 1094a4: 74 41 je 1094e7 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 ); 1094a6: 8d 46 01 lea 0x1(%esi),%eax 1094a9: 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; 1094ac: 31 db xor %ebx,%ebx 1094ae: 66 90 xchg %ax,%ax for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 1094b0: a1 60 a5 12 00 mov 0x12a560,%eax 1094b5: ff 70 08 pushl 0x8(%eax) 1094b8: 6a 04 push $0x4 1094ba: 6a 01 push $0x1 1094bc: 68 75 53 12 00 push $0x125375 1094c1: e8 82 df 00 00 call 117448 !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++ ) 1094c6: 43 inc %ebx 1094c7: 83 c4 10 add $0x10,%esp 1094ca: 39 de cmp %ebx,%esi 1094cc: 7d e2 jge 1094b0 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 1094ce: 83 ec 0c sub $0xc,%esp 1094d1: 57 push %edi 1094d2: e8 f5 fd ff ff call 1092cc if ( the_jnode->type == IMFS_DIRECTORY ) 1094d7: 83 c4 10 add $0x10,%esp 1094da: 83 7f 4c 01 cmpl $0x1,0x4c(%edi) 1094de: 74 10 je 1094f0 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 ) { 1094e0: 8b 3f mov (%edi),%edi assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 1094e2: 3b 7d e4 cmp -0x1c(%ebp),%edi 1094e5: 75 c5 jne 1094ac fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } 1094e7: 8d 65 f4 lea -0xc(%ebp),%esp 1094ea: 5b pop %ebx 1094eb: 5e pop %esi 1094ec: 5f pop %edi 1094ed: c9 leave 1094ee: c3 ret 1094ef: 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 ); 1094f0: 83 ec 08 sub $0x8,%esp 1094f3: ff 75 e0 pushl -0x20(%ebp) 1094f6: 57 push %edi 1094f7: e8 78 ff ff ff call 109474 1094fc: 83 c4 10 add $0x10,%esp 1094ff: eb df jmp 1094e0 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 109501: 68 5c 53 12 00 push $0x12535c <== NOT EXECUTED 109506: 68 a0 54 12 00 push $0x1254a0 <== NOT EXECUTED 10950b: 68 84 00 00 00 push $0x84 <== NOT EXECUTED 109510: 68 98 53 12 00 push $0x125398 <== NOT EXECUTED 109515: e8 ca 06 00 00 call 109be4 <__assert_func> <== NOT EXECUTED assert( level >= 0 ); assert( the_directory->type == IMFS_DIRECTORY ); 10951a: 68 e4 53 12 00 push $0x1253e4 <== NOT EXECUTED 10951f: 68 a0 54 12 00 push $0x1254a0 <== NOT EXECUTED 109524: 68 88 00 00 00 push $0x88 <== NOT EXECUTED 109529: 68 98 53 12 00 push $0x125398 <== NOT EXECUTED 10952e: e8 b1 06 00 00 call 109be4 <__assert_func> <== NOT EXECUTED IMFS_jnode_t *the_jnode; int i; assert( the_directory ); assert( level >= 0 ); 109533: 68 6a 53 12 00 push $0x12536a <== NOT EXECUTED 109538: 68 a0 54 12 00 push $0x1254a0 <== NOT EXECUTED 10953d: 68 86 00 00 00 push $0x86 <== NOT EXECUTED 109542: 68 98 53 12 00 push $0x125398 <== NOT EXECUTED 109547: e8 98 06 00 00 call 109be4 <__assert_func> <== NOT EXECUTED 0010eb54 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 10eb54: 55 push %ebp 10eb55: 89 e5 mov %esp,%ebp 10eb57: 57 push %edi 10eb58: 56 push %esi 10eb59: 53 push %ebx 10eb5a: 83 ec 5c sub $0x5c,%esp /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 10eb5d: 8b 45 14 mov 0x14(%ebp),%eax 10eb60: 8b 38 mov (%eax),%edi 10eb62: c7 45 a4 00 00 00 00 movl $0x0,-0x5c(%ebp) 10eb69: 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 ); 10eb6c: 8d 55 e4 lea -0x1c(%ebp),%edx 10eb6f: 52 push %edx 10eb70: 53 push %ebx 10eb71: ff 75 0c pushl 0xc(%ebp) 10eb74: 8b 45 08 mov 0x8(%ebp),%eax 10eb77: 03 45 a4 add -0x5c(%ebp),%eax 10eb7a: 50 push %eax 10eb7b: e8 38 08 00 00 call 10f3b8 pathnamelen -= len; 10eb80: 8b 55 e4 mov -0x1c(%ebp),%edx i += len; if ( !pathloc->node_access ) 10eb83: 8b 75 14 mov 0x14(%ebp),%esi 10eb86: 8b 0e mov (%esi),%ecx 10eb88: 83 c4 10 add $0x10,%esp 10eb8b: 85 c9 test %ecx,%ecx 10eb8d: 0f 84 d5 00 00 00 je 10ec68 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 10eb93: 29 55 0c sub %edx,0xc(%ebp) i += len; 10eb96: 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 ) 10eb99: 85 c0 test %eax,%eax 10eb9b: 75 37 jne 10ebd4 * 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 ) { 10eb9d: 83 79 4c 01 cmpl $0x1,0x4c(%ecx) 10eba1: 0f 84 11 01 00 00 je 10ecb8 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 10eba7: 83 ec 0c sub $0xc,%esp 10ebaa: ff 75 14 pushl 0x14(%ebp) 10ebad: e8 fe fd ff ff call 10e9b0 10ebb2: 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 ) 10ebb5: 8b 55 10 mov 0x10(%ebp),%edx 10ebb8: 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; 10ebbb: 8b 75 14 mov 0x14(%ebp),%esi 10ebbe: 8b 0e mov (%esi),%ecx 10ebc0: 8b 49 30 mov 0x30(%ecx),%ecx 10ebc3: 21 d1 and %edx,%ecx 10ebc5: 39 ca cmp %ecx,%edx 10ebc7: 0f 85 d3 00 00 00 jne 10eca0 10ebcd: e9 ba 00 00 00 jmp 10ec8c 10ebd2: 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 ) 10ebd4: 83 7f 4c 01 cmpl $0x1,0x4c(%edi) 10ebd8: 0f 84 b6 00 00 00 je 10ec94 10ebde: 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 ) { 10ebe0: 83 f8 03 cmp $0x3,%eax 10ebe3: 74 1b je 10ec00 10ebe5: 83 f8 04 cmp $0x4,%eax 10ebe8: 0f 84 8e 00 00 00 je 10ec7c 10ebee: 83 f8 02 cmp $0x2,%eax 10ebf1: 74 51 je 10ec44 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 10ebf3: 83 f8 04 cmp $0x4,%eax 10ebf6: 0f 85 70 ff ff ff jne 10eb6c 10ebfc: eb 9f jmp 10eb9d <== NOT EXECUTED 10ebfe: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 10ec00: 8b 41 4c mov 0x4c(%ecx),%eax 10ec03: 83 f8 03 cmp $0x3,%eax 10ec06: 0f 84 f0 00 00 00 je 10ecfc node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 10ec0c: 83 f8 04 cmp $0x4,%eax 10ec0f: 0f 84 5c 01 00 00 je 10ed71 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 10ec15: 48 dec %eax 10ec16: 0f 85 01 01 00 00 jne 10ed1d /* * 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 ) { 10ec1c: 8b 47 5c mov 0x5c(%edi),%eax 10ec1f: 85 c0 test %eax,%eax 10ec21: 0f 85 0b 01 00 00 jne 10ed32 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 10ec27: 83 ec 08 sub $0x8,%esp 10ec2a: 53 push %ebx 10ec2b: 57 push %edi 10ec2c: e8 f7 06 00 00 call 10f328 10ec31: 89 c7 mov %eax,%edi if ( !node ) 10ec33: 83 c4 10 add $0x10,%esp 10ec36: 85 c0 test %eax,%eax 10ec38: 74 2e je 10ec68 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 10ec3a: 8b 45 14 mov 0x14(%ebp),%eax 10ec3d: 89 38 mov %edi,(%eax) break; 10ec3f: e9 28 ff ff ff jmp 10eb6c case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 10ec44: a1 18 30 12 00 mov 0x123018,%eax 10ec49: 3b 48 18 cmp 0x18(%eax),%ecx 10ec4c: 0f 84 1a ff ff ff je 10eb6c /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { 10ec52: 8b 75 14 mov 0x14(%ebp),%esi 10ec55: 8b 46 10 mov 0x10(%esi),%eax /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 10ec58: 3b 48 1c cmp 0x1c(%eax),%ecx 10ec5b: 0f 84 2f 01 00 00 je 10ed90 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 10ec61: 8b 79 08 mov 0x8(%ecx),%edi 10ec64: 85 ff test %edi,%edi 10ec66: 75 d2 jne 10ec3a * 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 ); 10ec68: e8 8b 37 00 00 call 1123f8 <__errno> 10ec6d: c7 00 02 00 00 00 movl $0x2,(%eax) 10ec73: b8 ff ff ff ff mov $0xffffffff,%eax 10ec78: eb 12 jmp 10ec8c 10ec7a: 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 ); 10ec7c: e8 77 37 00 00 call 1123f8 <__errno> 10ec81: c7 00 5b 00 00 00 movl $0x5b,(%eax) 10ec87: b8 ff ff ff ff mov $0xffffffff,%eax if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 10ec8c: 8d 65 f4 lea -0xc(%ebp),%esp 10ec8f: 5b pop %ebx 10ec90: 5e pop %esi 10ec91: 5f pop %edi 10ec92: c9 leave 10ec93: c3 ret if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 10ec94: 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 ) 10ec96: f6 41 30 40 testb $0x40,0x30(%ecx) 10ec9a: 0f 85 40 ff ff ff jne 10ebe0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 10eca0: e8 53 37 00 00 call 1123f8 <__errno> 10eca5: c7 00 0d 00 00 00 movl $0xd,(%eax) 10ecab: b8 ff ff ff ff mov $0xffffffff,%eax return result; } 10ecb0: 8d 65 f4 lea -0xc(%ebp),%esp 10ecb3: 5b pop %ebx 10ecb4: 5e pop %esi 10ecb5: 5f pop %edi 10ecb6: c9 leave 10ecb7: 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 ) { 10ecb8: 8b 41 5c mov 0x5c(%ecx),%eax 10ecbb: 85 c0 test %eax,%eax 10ecbd: 0f 84 e4 fe ff ff je 10eba7 newloc = node->info.directory.mt_fs->mt_fs_root; 10ecc3: 8d 7d d0 lea -0x30(%ebp),%edi 10ecc6: 8d 70 1c lea 0x1c(%eax),%esi 10ecc9: b9 05 00 00 00 mov $0x5,%ecx 10ecce: f3 a5 rep movsl %ds:(%esi),%es:(%edi) *pathloc = newloc; 10ecd0: 8d 75 d0 lea -0x30(%ebp),%esi 10ecd3: b1 05 mov $0x5,%cl 10ecd5: 8b 7d 14 mov 0x14(%ebp),%edi 10ecd8: f3 a5 rep movsl %ds:(%esi),%es:(%edi) return (*pathloc->ops->evalpath_h)( &pathname[i-len], 10ecda: 8b 4d 14 mov 0x14(%ebp),%ecx 10ecdd: 8b 41 0c mov 0xc(%ecx),%eax 10ece0: 51 push %ecx 10ece1: ff 75 10 pushl 0x10(%ebp) 10ece4: 8b 4d 0c mov 0xc(%ebp),%ecx 10ece7: 01 d1 add %edx,%ecx 10ece9: 51 push %ecx 10ecea: 8b 5d a4 mov -0x5c(%ebp),%ebx 10eced: 29 d3 sub %edx,%ebx 10ecef: 8b 55 08 mov 0x8(%ebp),%edx 10ecf2: 01 da add %ebx,%edx 10ecf4: 52 push %edx 10ecf5: ff 10 call *(%eax) 10ecf7: 83 c4 10 add $0x10,%esp 10ecfa: eb 90 jmp 10ec8c * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); 10ecfc: 83 ec 08 sub $0x8,%esp 10ecff: 6a 00 push $0x0 10ed01: ff 75 14 pushl 0x14(%ebp) 10ed04: e8 23 fd ff ff call 10ea2c node = pathloc->node_access; 10ed09: 8b 55 14 mov 0x14(%ebp),%edx 10ed0c: 8b 3a mov (%edx),%edi if ( !node ) 10ed0e: 83 c4 10 add $0x10,%esp 10ed11: 85 ff test %edi,%edi 10ed13: 74 08 je 10ed1d } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 10ed15: 8b 47 4c mov 0x4c(%edi),%eax 10ed18: e9 f8 fe ff ff jmp 10ec15 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 10ed1d: e8 d6 36 00 00 call 1123f8 <__errno> 10ed22: c7 00 14 00 00 00 movl $0x14,(%eax) 10ed28: b8 ff ff ff ff mov $0xffffffff,%eax 10ed2d: e9 5a ff ff ff jmp 10ec8c * 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; 10ed32: 8d 7d d0 lea -0x30(%ebp),%edi 10ed35: 8d 70 1c lea 0x1c(%eax),%esi 10ed38: b9 05 00 00 00 mov $0x5,%ecx 10ed3d: f3 a5 rep movsl %ds:(%esi),%es:(%edi) *pathloc = newloc; 10ed3f: 8d 75 d0 lea -0x30(%ebp),%esi 10ed42: b1 05 mov $0x5,%cl 10ed44: 8b 7d 14 mov 0x14(%ebp),%edi 10ed47: f3 a5 rep movsl %ds:(%esi),%es:(%edi) return (*pathloc->ops->evalpath_h)( &pathname[i-len], 10ed49: 8b 55 e4 mov -0x1c(%ebp),%edx 10ed4c: 8b 5d 14 mov 0x14(%ebp),%ebx 10ed4f: 8b 43 0c mov 0xc(%ebx),%eax 10ed52: 53 push %ebx 10ed53: ff 75 10 pushl 0x10(%ebp) 10ed56: 8b 4d 0c mov 0xc(%ebp),%ecx 10ed59: 01 d1 add %edx,%ecx 10ed5b: 51 push %ecx 10ed5c: 8b 75 a4 mov -0x5c(%ebp),%esi 10ed5f: 29 d6 sub %edx,%esi 10ed61: 8b 55 08 mov 0x8(%ebp),%edx 10ed64: 01 f2 add %esi,%edx 10ed66: 52 push %edx 10ed67: ff 10 call *(%eax) 10ed69: 83 c4 10 add $0x10,%esp 10ed6c: e9 1b ff ff ff jmp 10ec8c if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); 10ed71: 83 ec 08 sub $0x8,%esp 10ed74: 6a 00 push $0x0 10ed76: ff 75 14 pushl 0x14(%ebp) 10ed79: e8 0e fd ff ff call 10ea8c node = pathloc->node_access; 10ed7e: 8b 4d 14 mov 0x14(%ebp),%ecx 10ed81: 8b 39 mov (%ecx),%edi if ( result == -1 ) 10ed83: 83 c4 10 add $0x10,%esp 10ed86: 83 f8 ff cmp $0xffffffff,%eax 10ed89: 75 8a jne 10ed15 10ed8b: e9 fc fe ff ff jmp 10ec8c <== 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; 10ed90: 8d 7d d0 lea -0x30(%ebp),%edi 10ed93: 8d 70 08 lea 0x8(%eax),%esi 10ed96: b9 05 00 00 00 mov $0x5,%ecx 10ed9b: f3 a5 rep movsl %ds:(%esi),%es:(%edi) *pathloc = newloc; 10ed9d: 8d 75 d0 lea -0x30(%ebp),%esi 10eda0: b1 05 mov $0x5,%cl 10eda2: 8b 7d 14 mov 0x14(%ebp),%edi 10eda5: f3 a5 rep movsl %ds:(%esi),%es:(%edi) return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), 10eda7: 8b 4d 14 mov 0x14(%ebp),%ecx 10edaa: 8b 41 0c mov 0xc(%ecx),%eax 10edad: 51 push %ecx 10edae: ff 75 10 pushl 0x10(%ebp) 10edb1: 8b 5d 0c mov 0xc(%ebp),%ebx 10edb4: 8d 0c 1a lea (%edx,%ebx,1),%ecx 10edb7: eb a2 jmp 10ed5b 0010ee68 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 10ee68: 55 push %ebp 10ee69: 89 e5 mov %esp,%ebp 10ee6b: 57 push %edi 10ee6c: 56 push %esi 10ee6d: 53 push %ebx 10ee6e: 83 ec 5c sub $0x5c,%esp /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 10ee71: 8b 45 0c mov 0xc(%ebp),%eax 10ee74: 8b 18 mov (%eax),%ebx /* * Get the path length. */ pathlen = strlen( path ); 10ee76: 31 c0 xor %eax,%eax 10ee78: b9 ff ff ff ff mov $0xffffffff,%ecx 10ee7d: 8b 7d 08 mov 0x8(%ebp),%edi 10ee80: f2 ae repnz scas %es:(%edi),%al 10ee82: f7 d1 not %ecx 10ee84: 8d 71 ff lea -0x1(%ecx),%esi 10ee87: 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 ); 10ee8e: 8d 55 e4 lea -0x1c(%ebp),%edx 10ee91: 52 push %edx 10ee92: 8d 4d af lea -0x51(%ebp),%ecx 10ee95: 51 push %ecx 10ee96: 56 push %esi 10ee97: 8b 45 08 mov 0x8(%ebp),%eax 10ee9a: 03 45 a4 add -0x5c(%ebp),%eax 10ee9d: 50 push %eax 10ee9e: e8 15 05 00 00 call 10f3b8 pathlen -= len; 10eea3: 8b 4d e4 mov -0x1c(%ebp),%ecx 10eea6: 29 ce sub %ecx,%esi i += len; if ( !pathloc->node_access ) 10eea8: 8b 7d 0c mov 0xc(%ebp),%edi 10eeab: 8b 17 mov (%edi),%edx 10eead: 83 c4 10 add $0x10,%esp 10eeb0: 85 d2 test %edx,%edx 10eeb2: 0f 84 20 01 00 00 je 10efd8 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 10eeb8: 85 c0 test %eax,%eax 10eeba: 75 18 jne 10eed4 pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 10eebc: e8 37 35 00 00 call 1123f8 <__errno> 10eec1: c7 00 11 00 00 00 movl $0x11,(%eax) 10eec7: 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; } 10eecc: 8d 65 f4 lea -0xc(%ebp),%esp 10eecf: 5b pop %ebx 10eed0: 5e pop %esi 10eed1: 5f pop %edi 10eed2: c9 leave 10eed3: c3 ret /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 10eed4: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx) 10eed8: 0f 84 c6 00 00 00 je 10efa4 10eede: 89 d3 mov %edx,%ebx while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; 10eee0: 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 ) { 10eee3: 83 f8 02 cmp $0x2,%eax 10eee6: 0f 84 88 00 00 00 je 10ef74 10eeec: 76 22 jbe 10ef10 10eeee: 83 f8 03 cmp $0x3,%eax 10eef1: 74 29 je 10ef1c 10eef3: 83 f8 04 cmp $0x4,%eax 10eef6: 75 96 jne 10ee8e 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 ); 10eef8: e8 fb 34 00 00 call 1123f8 <__errno> 10eefd: c7 00 5b 00 00 00 movl $0x5b,(%eax) 10ef03: 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; } 10ef08: 8d 65 f4 lea -0xc(%ebp),%esp 10ef0b: 5b pop %ebx 10ef0c: 5e pop %esi 10ef0d: 5f pop %edi 10ef0e: c9 leave 10ef0f: 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 ) { 10ef10: 85 c0 test %eax,%eax 10ef12: 74 a8 je 10eebc 10ef14: e9 75 ff ff ff jmp 10ee8e 10ef19: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 10ef1c: 8b 42 4c mov 0x4c(%edx),%eax 10ef1f: 83 f8 03 cmp $0x3,%eax 10ef22: 0f 84 6b 01 00 00 je 10f093 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 10ef28: 83 f8 04 cmp $0x4,%eax 10ef2b: 0f 84 85 01 00 00 je 10f0b6 if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) 10ef31: 85 db test %ebx,%ebx 10ef33: 0f 84 0e 01 00 00 je 10f047 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 10ef39: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx) 10ef3d: 0f 85 04 01 00 00 jne 10f047 /* * 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 ) { 10ef43: 8b 43 5c mov 0x5c(%ebx),%eax 10ef46: 85 c0 test %eax,%eax 10ef48: 0f 85 0e 01 00 00 jne 10f05c /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 10ef4e: 83 ec 08 sub $0x8,%esp 10ef51: 8d 7d af lea -0x51(%ebp),%edi 10ef54: 57 push %edi 10ef55: 53 push %ebx 10ef56: e8 cd 03 00 00 call 10f328 10ef5b: 89 c3 mov %eax,%ebx /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 10ef5d: 83 c4 10 add $0x10,%esp 10ef60: 85 c0 test %eax,%eax 10ef62: 0f 84 88 00 00 00 je 10eff0 done = true; else pathloc->node_access = node; 10ef68: 8b 45 0c mov 0xc(%ebp),%eax 10ef6b: 89 18 mov %ebx,(%eax) 10ef6d: e9 1c ff ff ff jmp 10ee8e 10ef72: 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 ) 10ef74: a1 18 30 12 00 mov 0x123018,%eax 10ef79: 3b 50 18 cmp 0x18(%eax),%edx 10ef7c: 0f 84 0c ff ff ff je 10ee8e /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 10ef82: 8b 5d 0c mov 0xc(%ebp),%ebx 10ef85: 8b 43 10 mov 0x10(%ebx),%eax 10ef88: 3b 50 1c cmp 0x1c(%eax),%edx 10ef8b: 0f 84 48 01 00 00 je 10f0d9 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 10ef91: 8b 5a 08 mov 0x8(%edx),%ebx 10ef94: 85 db test %ebx,%ebx 10ef96: 74 40 je 10efd8 rtems_set_errno_and_return_minus_one( ENOENT ); node = node->Parent; } pathloc->node_access = node; 10ef98: 8b 7d 0c mov 0xc(%ebp),%edi 10ef9b: 89 1f mov %ebx,(%edi) break; 10ef9d: e9 ec fe ff ff jmp 10ee8e 10efa2: 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; 10efa4: 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 ) 10efa6: f6 42 30 40 testb $0x40,0x30(%edx) 10efaa: 0f 85 30 ff ff ff jne 10eee0 /* * 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 ); 10efb0: e8 43 34 00 00 call 1123f8 <__errno> 10efb5: c7 00 0d 00 00 00 movl $0xd,(%eax) 10efbb: b8 ff ff ff ff mov $0xffffffff,%eax return result; } 10efc0: 8d 65 f4 lea -0xc(%ebp),%esp 10efc3: 5b pop %ebx 10efc4: 5e pop %esi 10efc5: 5f pop %edi 10efc6: c9 leave 10efc7: 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++) { 10efc8: 8a 42 01 mov 0x1(%edx),%al 10efcb: 42 inc %edx 10efcc: 84 c0 test %al,%al 10efce: 74 44 je 10f014 if ( !IMFS_is_separator( path[ i ] ) ) 10efd0: 3c 2f cmp $0x2f,%al 10efd2: 74 f4 je 10efc8 10efd4: 3c 5c cmp $0x5c,%al 10efd6: 74 f0 je 10efc8 rtems_set_errno_and_return_minus_one( ENOENT ); 10efd8: e8 1b 34 00 00 call 1123f8 <__errno> 10efdd: c7 00 02 00 00 00 movl $0x2,(%eax) 10efe3: b8 ff ff ff ff mov $0xffffffff,%eax 10efe8: e9 df fe ff ff jmp 10eecc 10efed: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 10eff0: 8b 45 a4 mov -0x5c(%ebp),%eax 10eff3: 2b 45 e4 sub -0x1c(%ebp),%eax 10eff6: 03 45 08 add 0x8(%ebp),%eax 10eff9: 8b 55 10 mov 0x10(%ebp),%edx 10effc: 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++) { 10effe: 8b 5d 08 mov 0x8(%ebp),%ebx 10f001: 8b 4d a4 mov -0x5c(%ebp),%ecx 10f004: 8a 04 0b mov (%ebx,%ecx,1),%al 10f007: 84 c0 test %al,%al 10f009: 74 09 je 10f014 10f00b: 89 da mov %ebx,%edx 10f00d: 01 ca add %ecx,%edx 10f00f: eb bf jmp 10efd0 10f011: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 10f014: 83 ec 0c sub $0xc,%esp 10f017: ff 75 0c pushl 0xc(%ebp) 10f01a: e8 91 f9 ff ff call 10e9b0 /* * The returned node must be a directory */ node = pathloc->node_access; 10f01f: 8b 7d 0c mov 0xc(%ebp),%edi 10f022: 8b 17 mov (%edi),%edx if ( node->type != IMFS_DIRECTORY ) 10f024: 83 c4 10 add $0x10,%esp 10f027: 83 7a 4c 01 cmpl $0x1,0x4c(%edx) 10f02b: 75 1a jne 10f047 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 10f02d: 8b 52 30 mov 0x30(%edx),%edx 10f030: 81 e2 c0 00 00 00 and $0xc0,%edx 10f036: 81 fa c0 00 00 00 cmp $0xc0,%edx 10f03c: 0f 85 6e ff ff ff jne 10efb0 10f042: e9 85 fe ff ff jmp 10eecc /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 10f047: e8 ac 33 00 00 call 1123f8 <__errno> 10f04c: c7 00 14 00 00 00 movl $0x14,(%eax) 10f052: b8 ff ff ff ff mov $0xffffffff,%eax 10f057: e9 70 fe ff ff jmp 10eecc * 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; 10f05c: 8d 7d d0 lea -0x30(%ebp),%edi 10f05f: 8d 70 1c lea 0x1c(%eax),%esi 10f062: b9 05 00 00 00 mov $0x5,%ecx 10f067: f3 a5 rep movsl %ds:(%esi),%es:(%edi) *pathloc = newloc; 10f069: 8d 75 d0 lea -0x30(%ebp),%esi 10f06c: b1 05 mov $0x5,%cl 10f06e: 8b 7d 0c mov 0xc(%ebp),%edi 10f071: f3 a5 rep movsl %ds:(%esi),%es:(%edi) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 10f073: 50 push %eax 10f074: 8b 4d 0c mov 0xc(%ebp),%ecx 10f077: 8b 41 0c mov 0xc(%ecx),%eax 10f07a: ff 75 10 pushl 0x10(%ebp) 10f07d: 51 push %ecx 10f07e: 8b 55 a4 mov -0x5c(%ebp),%edx 10f081: 2b 55 e4 sub -0x1c(%ebp),%edx 10f084: 03 55 08 add 0x8(%ebp),%edx 10f087: 52 push %edx 10f088: ff 50 04 call *0x4(%eax) 10f08b: 83 c4 10 add $0x10,%esp 10f08e: e9 39 fe ff ff jmp 10eecc case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 10f093: 83 ec 08 sub $0x8,%esp 10f096: 6a 00 push $0x0 10f098: ff 75 0c pushl 0xc(%ebp) 10f09b: e8 1c fd ff ff call 10edbc if ( result == -1 ) 10f0a0: 83 c4 10 add $0x10,%esp 10f0a3: 83 f8 ff cmp $0xffffffff,%eax 10f0a6: 0f 84 20 fe ff ff je 10eecc 10f0ac: 8b 45 0c mov 0xc(%ebp),%eax 10f0af: 8b 18 mov (%eax),%ebx 10f0b1: e9 7b fe ff ff jmp 10ef31 return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 10f0b6: 83 ec 08 sub $0x8,%esp 10f0b9: 6a 00 push $0x0 10f0bb: ff 75 0c pushl 0xc(%ebp) 10f0be: e8 f9 fc ff ff call 10edbc if ( result == -1 ) 10f0c3: 83 c4 10 add $0x10,%esp 10f0c6: 83 f8 ff cmp $0xffffffff,%eax 10f0c9: 0f 84 fd fd ff ff je 10eecc 10f0cf: 8b 55 0c mov 0xc(%ebp),%edx 10f0d2: 8b 1a mov (%edx),%ebx 10f0d4: e9 58 fe ff ff jmp 10ef31 10f0d9: 89 ca mov %ecx,%edx if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 10f0db: 8d 7d d0 lea -0x30(%ebp),%edi 10f0de: 8d 70 08 lea 0x8(%eax),%esi 10f0e1: b9 05 00 00 00 mov $0x5,%ecx 10f0e6: f3 a5 rep movsl %ds:(%esi),%es:(%edi) *pathloc = newloc; 10f0e8: 8d 75 d0 lea -0x30(%ebp),%esi 10f0eb: b1 05 mov $0x5,%cl 10f0ed: 89 df mov %ebx,%edi 10f0ef: f3 a5 rep movsl %ds:(%esi),%es:(%edi) return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 10f0f1: 51 push %ecx 10f0f2: 8b 43 0c mov 0xc(%ebx),%eax 10f0f5: ff 75 10 pushl 0x10(%ebp) 10f0f8: 53 push %ebx 10f0f9: 8b 4d a4 mov -0x5c(%ebp),%ecx 10f0fc: 29 d1 sub %edx,%ecx 10f0fe: 8b 55 08 mov 0x8(%ebp),%edx 10f101: 01 ca add %ecx,%edx 10f103: 52 push %edx 10f104: ff 50 04 call *0x4(%eax) 10f107: 83 c4 10 add $0x10,%esp 10f10a: e9 bd fd ff ff jmp 10eecc 0010ea2c : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 10ea2c: 55 push %ebp 10ea2d: 89 e5 mov %esp,%ebp 10ea2f: 53 push %ebx 10ea30: 83 ec 04 sub $0x4,%esp 10ea33: 8b 5d 08 mov 0x8(%ebp),%ebx IMFS_jnode_t *jnode = node->node_access; 10ea36: 8b 03 mov (%ebx),%eax /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 10ea38: 83 78 4c 03 cmpl $0x3,0x4c(%eax) 10ea3c: 75 41 jne 10ea7f /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 10ea3e: 8b 40 50 mov 0x50(%eax),%eax 10ea41: 89 03 mov %eax,(%ebx) IMFS_Set_handlers( node ); 10ea43: 83 ec 0c sub $0xc,%esp 10ea46: 53 push %ebx 10ea47: e8 64 ff ff ff call 10e9b0 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 10ea4c: 8b 45 0c mov 0xc(%ebp),%eax 10ea4f: 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; 10ea52: 8b 13 mov (%ebx),%edx 10ea54: 8b 52 30 mov 0x30(%edx),%edx 10ea57: 21 c2 and %eax,%edx 10ea59: 83 c4 10 add $0x10,%esp 10ea5c: 39 d0 cmp %edx,%eax 10ea5e: 74 18 je 10ea78 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 10ea60: e8 93 39 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10ea65: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED 10ea6b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return result; } 10ea70: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10ea73: c9 leave <== NOT EXECUTED 10ea74: c3 ret <== NOT EXECUTED 10ea75: 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; 10ea78: 31 c0 xor %eax,%eax if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 10ea7a: 8b 5d fc mov -0x4(%ebp),%ebx 10ea7d: c9 leave 10ea7e: c3 ret /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 10ea7f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10ea82: 68 00 00 cd ab push $0xabcd0000 <== NOT EXECUTED 10ea87: e8 4c d1 ff ff call 10bbd8 <== NOT EXECUTED 0010edbc : int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 10edbc: 55 push %ebp 10edbd: 89 e5 mov %esp,%ebp 10edbf: 57 push %edi 10edc0: 56 push %esi 10edc1: 53 push %ebx 10edc2: 83 ec 0c sub $0xc,%esp 10edc5: 8b 75 08 mov 0x8(%ebp),%esi 10edc8: 8b 7d 0c mov 0xc(%ebp),%edi 10edcb: 8b 15 18 30 12 00 mov 0x123018,%edx 10edd1: eb 0e jmp 10ede1 10edd3: 90 nop <== NOT EXECUTED */ if ( jnode->type == IMFS_HARD_LINK ) result = IMFS_evaluate_hard_link( node, flags ); else if (jnode->type == IMFS_SYM_LINK ) 10edd4: 83 f8 04 cmp $0x4,%eax 10edd7: 74 53 je 10ee2c result = IMFS_evaluate_sym_link( node, flags ); } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 10edd9: 83 e8 03 sub $0x3,%eax 10eddc: 83 f8 01 cmp $0x1,%eax 10eddf: 77 3a ja 10ee1b { IMFS_jnode_t *jnode; int result = 0; do { jnode = node->node_access; 10ede1: 8b 1e mov (%esi),%ebx /* * Increment and check the link counter. */ rtems_filesystem_link_counts ++; 10ede3: 8b 42 30 mov 0x30(%edx),%eax 10ede6: 40 inc %eax 10ede7: 66 89 42 30 mov %ax,0x30(%edx) if ( rtems_filesystem_link_counts > MAXSYMLINK ) { 10edeb: 66 83 f8 05 cmp $0x5,%ax 10edef: 77 57 ja 10ee48 /* * Follow the Link node. */ if ( jnode->type == IMFS_HARD_LINK ) 10edf1: 8b 43 4c mov 0x4c(%ebx),%eax 10edf4: 83 f8 03 cmp $0x3,%eax 10edf7: 75 db jne 10edd4 result = IMFS_evaluate_hard_link( node, flags ); 10edf9: 83 ec 08 sub $0x8,%esp 10edfc: 57 push %edi 10edfd: 56 push %esi 10edfe: e8 29 fc ff ff call 10ea2c 10ee03: 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 ) ) ); 10ee06: 85 c0 test %eax,%eax 10ee08: 75 33 jne 10ee3d 10ee0a: 8b 43 4c mov 0x4c(%ebx),%eax 10ee0d: 8b 15 18 30 12 00 mov 0x123018,%edx 10ee13: 83 e8 03 sub $0x3,%eax 10ee16: 83 f8 01 cmp $0x1,%eax 10ee19: 76 c6 jbe 10ede1 10ee1b: 31 c0 xor %eax,%eax /* * Clear link counter. */ rtems_filesystem_link_counts = 0; 10ee1d: 66 c7 42 30 00 00 movw $0x0,0x30(%edx) return result; } 10ee23: 8d 65 f4 lea -0xc(%ebp),%esp 10ee26: 5b pop %ebx 10ee27: 5e pop %esi 10ee28: 5f pop %edi 10ee29: c9 leave 10ee2a: c3 ret 10ee2b: 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 ); 10ee2c: 83 ec 08 sub $0x8,%esp 10ee2f: 57 push %edi 10ee30: 56 push %esi 10ee31: e8 56 fc ff ff call 10ea8c 10ee36: 83 c4 10 add $0x10,%esp } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) || ( jnode->type == IMFS_HARD_LINK ) ) ); 10ee39: 85 c0 test %eax,%eax 10ee3b: 74 cd je 10ee0a 10ee3d: 8b 15 18 30 12 00 mov 0x123018,%edx 10ee43: eb d8 jmp 10ee1d 10ee45: 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; 10ee48: 66 c7 42 30 00 00 movw $0x0,0x30(%edx) rtems_set_errno_and_return_minus_one( ELOOP ); 10ee4e: e8 a5 35 00 00 call 1123f8 <__errno> 10ee53: c7 00 5c 00 00 00 movl $0x5c,(%eax) 10ee59: b8 ff ff ff ff mov $0xffffffff,%eax */ rtems_filesystem_link_counts = 0; return result; } 10ee5e: 8d 65 f4 lea -0xc(%ebp),%esp 10ee61: 5b pop %ebx 10ee62: 5e pop %esi 10ee63: 5f pop %edi 10ee64: c9 leave 10ee65: c3 ret 0010ea0c : int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) { 10ea0c: 55 push %ebp <== NOT EXECUTED 10ea0d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10ea0f: 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 ) 10ea12: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 10ea15: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 10ea18: 8b 12 mov (%edx),%edx <== NOT EXECUTED 10ea1a: 8b 52 30 mov 0x30(%edx),%edx <== NOT EXECUTED 10ea1d: 21 c2 and %eax,%edx <== NOT EXECUTED 10ea1f: 39 d0 cmp %edx,%eax <== NOT EXECUTED 10ea21: 0f 94 c0 sete %al <== NOT EXECUTED 10ea24: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED return 1; return 0; } 10ea27: c9 leave <== NOT EXECUTED 10ea28: c3 ret <== NOT EXECUTED 0010ea8c : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 10ea8c: 55 push %ebp 10ea8d: 89 e5 mov %esp,%ebp 10ea8f: 57 push %edi 10ea90: 56 push %esi 10ea91: 53 push %ebx 10ea92: 83 ec 0c sub $0xc,%esp 10ea95: 8b 5d 08 mov 0x8(%ebp),%ebx IMFS_jnode_t *jnode = node->node_access; 10ea98: 8b 03 mov (%ebx),%eax /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 10ea9a: 83 78 4c 04 cmpl $0x4,0x4c(%eax) 10ea9e: 0f 85 a1 00 00 00 jne 10eb45 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 10eaa4: 8b 50 08 mov 0x8(%eax),%edx 10eaa7: 85 d2 test %edx,%edx 10eaa9: 0f 84 89 00 00 00 je 10eb38 /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; 10eaaf: 89 13 mov %edx,(%ebx) rtems_filesystem_get_sym_start_loc( 10eab1: 8b 50 50 mov 0x50(%eax),%edx 10eab4: 8a 0a mov (%edx),%cl 10eab6: 80 f9 2f cmp $0x2f,%cl 10eab9: 74 09 je 10eac4 10eabb: 80 f9 5c cmp $0x5c,%cl 10eabe: 74 04 je 10eac4 10eac0: 84 c9 test %cl,%cl 10eac2: 75 70 jne 10eb34 10eac4: 8b 35 18 30 12 00 mov 0x123018,%esi 10eaca: 83 c6 18 add $0x18,%esi 10eacd: b9 05 00 00 00 mov $0x5,%ecx 10ead2: 89 df mov %ebx,%edi 10ead4: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 10ead6: 8b 50 50 mov 0x50(%eax),%edx 10ead9: 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] ), 10eade: 01 c2 add %eax,%edx 10eae0: 31 c0 xor %eax,%eax 10eae2: b9 ff ff ff ff mov $0xffffffff,%ecx 10eae7: 89 d7 mov %edx,%edi 10eae9: f2 ae repnz scas %es:(%edi),%al 10eaeb: f7 d1 not %ecx 10eaed: 49 dec %ecx /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 10eaee: 53 push %ebx 10eaef: ff 75 0c pushl 0xc(%ebp) 10eaf2: 51 push %ecx 10eaf3: 52 push %edx 10eaf4: e8 5b 00 00 00 call 10eb54 10eaf9: 89 c6 mov %eax,%esi strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 10eafb: 89 1c 24 mov %ebx,(%esp) 10eafe: e8 ad fe ff ff call 10e9b0 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 10eb03: 8b 45 0c mov 0xc(%ebp),%eax 10eb06: 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; 10eb09: 8b 13 mov (%ebx),%edx 10eb0b: 8b 52 30 mov 0x30(%edx),%edx 10eb0e: 21 c2 and %eax,%edx 10eb10: 83 c4 10 add $0x10,%esp 10eb13: 39 d0 cmp %edx,%eax 10eb15: 74 10 je 10eb27 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 10eb17: e8 dc 38 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10eb1c: c7 00 0d 00 00 00 movl $0xd,(%eax) <== NOT EXECUTED 10eb22: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED return result; } 10eb27: 89 f0 mov %esi,%eax 10eb29: 8d 65 f4 lea -0xc(%ebp),%esp 10eb2c: 5b pop %ebx 10eb2d: 5e pop %esi 10eb2e: 5f pop %edi 10eb2f: c9 leave 10eb30: c3 ret 10eb31: 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( 10eb34: 31 c0 xor %eax,%eax 10eb36: eb a6 jmp 10eade if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); 10eb38: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10eb3b: 68 00 00 d0 ba push $0xbad00000 <== NOT EXECUTED 10eb40: e8 93 d0 ff ff call 10bbd8 <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); 10eb45: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10eb48: 68 00 00 cd ab push $0xabcd0000 <== NOT EXECUTED 10eb4d: e8 86 d0 ff ff call 10bbd8 <== NOT EXECUTED 0010f284 : } int IMFS_fifo_close( rtems_libio_t *iop ) { 10f284: 55 push %ebp <== NOT EXECUTED 10f285: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f287: 57 push %edi <== NOT EXECUTED 10f288: 56 push %esi <== NOT EXECUTED 10f289: 53 push %ebx <== NOT EXECUTED 10f28a: 83 ec 14 sub $0x14,%esp <== NOT EXECUTED 10f28d: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 10f290: 8b 7b 38 mov 0x38(%ebx),%edi <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 10f293: 53 push %ebx <== NOT EXECUTED 10f294: 8d 47 50 lea 0x50(%edi),%eax <== NOT EXECUTED 10f297: 50 push %eax <== NOT EXECUTED 10f298: e8 d3 1d 00 00 call 111070 <== NOT EXECUTED 10f29d: 89 c6 mov %eax,%esi <== NOT EXECUTED if (! err) { 10f29f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f2a2: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED 10f2a5: 74 0d je 10f2b4 <== 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); 10f2a7: 7c 37 jl 10f2e0 <== NOT EXECUTED } 10f2a9: 89 f0 mov %esi,%eax <== NOT EXECUTED 10f2ab: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10f2ae: 5b pop %ebx <== NOT EXECUTED 10f2af: 5e pop %esi <== NOT EXECUTED 10f2b0: 5f pop %edi <== NOT EXECUTED 10f2b1: c9 leave <== NOT EXECUTED 10f2b2: c3 ret <== NOT EXECUTED 10f2b3: 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; 10f2b4: 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) 10f2bb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10f2be: 57 push %edi <== NOT EXECUTED 10f2bf: e8 fc 06 00 00 call 10f9c0 <== NOT EXECUTED 10f2c4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f2c7: 85 c0 test %eax,%eax <== NOT EXECUTED 10f2c9: 75 de jne 10f2a9 <== NOT EXECUTED 10f2cb: 66 83 7f 34 00 cmpw $0x0,0x34(%edi) <== NOT EXECUTED 10f2d0: 75 d7 jne 10f2a9 <== NOT EXECUTED free(jnode); 10f2d2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10f2d5: 57 push %edi <== NOT EXECUTED 10f2d6: e8 41 8d ff ff call 10801c <== NOT EXECUTED 10f2db: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f2de: eb c9 jmp 10f2a9 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 10f2e0: e8 13 31 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10f2e5: f7 de neg %esi <== NOT EXECUTED 10f2e7: 89 30 mov %esi,(%eax) <== NOT EXECUTED 10f2e9: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 10f2ee: eb b9 jmp 10f2a9 <== NOT EXECUTED 0010f154 : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 10f154: 55 push %ebp <== NOT EXECUTED 10f155: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f157: 53 push %ebx <== NOT EXECUTED 10f158: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 10f15b: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 10f15e: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 10f161: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED int err; if (command == FIONBIO) { 10f164: 81 fa 7e 66 04 80 cmp $0x8004667e,%edx <== NOT EXECUTED 10f16a: 74 1c je 10f188 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 10f16c: 50 push %eax <== NOT EXECUTED 10f16d: 51 push %ecx <== NOT EXECUTED 10f16e: 52 push %edx <== NOT EXECUTED 10f16f: 8b 40 38 mov 0x38(%eax),%eax <== NOT EXECUTED 10f172: ff 70 50 pushl 0x50(%eax) <== NOT EXECUTED 10f175: e8 f2 1a 00 00 call 110c6c <== NOT EXECUTED IMFS_FIFO_RETURN(err); 10f17a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f17d: 85 c0 test %eax,%eax <== NOT EXECUTED 10f17f: 78 3e js 10f1bf <== NOT EXECUTED } 10f181: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f184: c9 leave <== NOT EXECUTED 10f185: c3 ret <== NOT EXECUTED 10f186: 66 90 xchg %ax,%ax <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) 10f188: 85 c9 test %ecx,%ecx <== NOT EXECUTED 10f18a: 74 20 je 10f1ac <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 10f18c: 8b 11 mov (%ecx),%edx <== NOT EXECUTED 10f18e: 85 d2 test %edx,%edx <== NOT EXECUTED 10f190: 74 0e je 10f1a0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 10f192: 83 48 14 01 orl $0x1,0x14(%eax) <== NOT EXECUTED 10f196: 31 c0 xor %eax,%eax <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } 10f198: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f19b: c9 leave <== NOT EXECUTED 10f19c: c3 ret <== NOT EXECUTED 10f19d: 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; 10f1a0: 83 60 14 fe andl $0xfffffffe,0x14(%eax) <== NOT EXECUTED 10f1a4: 31 c0 xor %eax,%eax <== NOT EXECUTED } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); } 10f1a6: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f1a9: c9 leave <== NOT EXECUTED 10f1aa: c3 ret <== NOT EXECUTED 10f1ab: 90 nop <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) 10f1ac: bb 0e 00 00 00 mov $0xe,%ebx <== NOT EXECUTED } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); IMFS_FIFO_RETURN(err); 10f1b1: e8 42 32 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10f1b6: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 10f1b8: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f1bd: eb c2 jmp 10f181 <== NOT EXECUTED 10f1bf: 89 c3 mov %eax,%ebx <== NOT EXECUTED 10f1c1: f7 db neg %ebx <== NOT EXECUTED 10f1c3: eb ec jmp 10f1b1 <== NOT EXECUTED 0010f110 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 10f110: 55 push %ebp <== NOT EXECUTED 10f111: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f113: 53 push %ebx <== NOT EXECUTED 10f114: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED 10f117: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 10f11a: 50 push %eax <== NOT EXECUTED 10f11b: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED 10f11e: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 10f121: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 10f124: 8b 40 38 mov 0x38(%eax),%eax <== NOT EXECUTED 10f127: ff 70 50 pushl 0x50(%eax) <== NOT EXECUTED 10f12a: e8 dd 1a 00 00 call 110c0c <== NOT EXECUTED 10f12f: 89 c3 mov %eax,%ebx <== NOT EXECUTED 10f131: 99 cltd <== NOT EXECUTED IMFS_FIFO_RETURN(err); 10f132: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10f135: 85 d2 test %edx,%edx <== NOT EXECUTED 10f137: 78 05 js 10f13e <== NOT EXECUTED } 10f139: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10f13c: c9 leave <== NOT EXECUTED 10f13d: c3 ret <== NOT EXECUTED rtems_off64_t offset, int whence ) { off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); IMFS_FIFO_RETURN(err); 10f13e: e8 b5 32 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10f143: f7 db neg %ebx <== NOT EXECUTED 10f145: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 10f147: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f14c: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED 10f151: eb e6 jmp 10f139 <== NOT EXECUTED 0010f228 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 10f228: 55 push %ebp <== NOT EXECUTED 10f229: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f22b: 56 push %esi <== NOT EXECUTED 10f22c: 53 push %ebx <== NOT EXECUTED 10f22d: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED 10f230: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 10f233: 8b 70 38 mov 0x38(%eax),%esi <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 10f236: 50 push %eax <== NOT EXECUTED 10f237: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 10f23a: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 10f23d: ff 76 50 pushl 0x50(%esi) <== NOT EXECUTED 10f240: e8 6b 1c 00 00 call 110eb0 <== NOT EXECUTED 10f245: 89 c3 mov %eax,%ebx <== NOT EXECUTED if (err > 0) 10f247: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f24a: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED 10f24d: 7e 21 jle 10f270 <== NOT EXECUTED IMFS_update_atime(jnode); 10f24f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10f252: 6a 00 push $0x0 <== NOT EXECUTED 10f254: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 10f257: 50 push %eax <== NOT EXECUTED 10f258: e8 9b 06 00 00 call 10f8f8 <== NOT EXECUTED 10f25d: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED 10f260: 89 46 40 mov %eax,0x40(%esi) <== NOT EXECUTED 10f263: 83 c4 10 add $0x10,%esp <== NOT EXECUTED IMFS_FIFO_RETURN(err); } 10f266: 89 d8 mov %ebx,%eax <== NOT EXECUTED 10f268: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10f26b: 5b pop %ebx <== NOT EXECUTED 10f26c: 5e pop %esi <== NOT EXECUTED 10f26d: c9 leave <== NOT EXECUTED 10f26e: c3 ret <== NOT EXECUTED 10f26f: 90 nop <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) IMFS_update_atime(jnode); IMFS_FIFO_RETURN(err); 10f270: 74 f4 je 10f266 <== NOT EXECUTED 10f272: e8 81 31 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10f277: f7 db neg %ebx <== NOT EXECUTED 10f279: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 10f27b: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 10f280: eb e4 jmp 10f266 <== NOT EXECUTED 0010f1c8 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 10f1c8: 55 push %ebp <== NOT EXECUTED 10f1c9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f1cb: 56 push %esi <== NOT EXECUTED 10f1cc: 53 push %ebx <== NOT EXECUTED 10f1cd: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED 10f1d0: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 10f1d3: 8b 58 38 mov 0x38(%eax),%ebx <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 10f1d6: 50 push %eax <== NOT EXECUTED 10f1d7: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 10f1da: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 10f1dd: ff 73 50 pushl 0x50(%ebx) <== NOT EXECUTED 10f1e0: e8 e7 1a 00 00 call 110ccc <== NOT EXECUTED 10f1e5: 89 c6 mov %eax,%esi <== NOT EXECUTED if (err > 0) { 10f1e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f1ea: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED 10f1ed: 7e 25 jle 10f214 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 10f1ef: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10f1f2: 6a 00 push $0x0 <== NOT EXECUTED 10f1f4: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 10f1f7: 50 push %eax <== NOT EXECUTED 10f1f8: e8 fb 06 00 00 call 10f8f8 <== NOT EXECUTED 10f1fd: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED 10f200: 89 43 44 mov %eax,0x44(%ebx) <== NOT EXECUTED 10f203: 89 43 48 mov %eax,0x48(%ebx) <== NOT EXECUTED 10f206: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } IMFS_FIFO_RETURN(err); } 10f209: 89 f0 mov %esi,%eax <== NOT EXECUTED 10f20b: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10f20e: 5b pop %ebx <== NOT EXECUTED 10f20f: 5e pop %esi <== NOT EXECUTED 10f210: c9 leave <== NOT EXECUTED 10f211: c3 ret <== NOT EXECUTED 10f212: 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); 10f214: 74 f3 je 10f209 <== NOT EXECUTED 10f216: e8 dd 31 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10f21b: f7 de neg %esi <== NOT EXECUTED 10f21d: 89 30 mov %esi,(%eax) <== NOT EXECUTED 10f21f: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 10f224: eb e3 jmp 10f209 <== NOT EXECUTED 0010f328 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 10f328: 55 push %ebp 10f329: 89 e5 mov %esp,%ebp 10f32b: 57 push %edi 10f32c: 56 push %esi 10f32d: 53 push %ebx 10f32e: 83 ec 0c sub $0xc,%esp 10f331: 8b 45 08 mov 0x8(%ebp),%eax 10f334: 8b 5d 0c mov 0xc(%ebp),%ebx /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 10f337: 85 c0 test %eax,%eax 10f339: 74 67 je 10f3a2 if ( !name ) 10f33b: 85 db test %ebx,%ebx 10f33d: 74 2d je 10f36c /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 10f33f: bf d0 fd 11 00 mov $0x11fdd0,%edi 10f344: b9 02 00 00 00 mov $0x2,%ecx 10f349: 89 de mov %ebx,%esi 10f34b: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10f34d: 74 13 je 10f362 return directory; if ( !strcmp( name, dotdotname ) ) 10f34f: bf d2 fd 11 00 mov $0x11fdd2,%edi 10f354: b9 03 00 00 00 mov $0x3,%ecx 10f359: 89 de mov %ebx,%esi 10f35b: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10f35d: 75 19 jne 10f378 return directory->Parent; 10f35f: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 10f362: 8d 65 f4 lea -0xc(%ebp),%esp 10f365: 5b pop %ebx 10f366: 5e pop %esi 10f367: 5f pop %edi 10f368: c9 leave 10f369: c3 ret 10f36a: 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; 10f36c: 31 c0 xor %eax,%eax if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 10f36e: 8d 65 f4 lea -0xc(%ebp),%esp 10f371: 5b pop %ebx 10f372: 5e pop %esi 10f373: 5f pop %edi 10f374: c9 leave 10f375: c3 ret 10f376: 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; 10f378: 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; 10f37b: 8d 78 54 lea 0x54(%eax),%edi 10f37e: 39 fe cmp %edi,%esi 10f380: 75 08 jne 10f38a 10f382: eb e8 jmp 10f36c !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { 10f384: 8b 36 mov (%esi),%esi if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 10f386: 39 fe cmp %edi,%esi 10f388: 74 e2 je 10f36c !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 ) ) 10f38a: 8d 46 0c lea 0xc(%esi),%eax 10f38d: 83 ec 08 sub $0x8,%esp 10f390: 50 push %eax 10f391: 53 push %ebx 10f392: e8 29 3b 00 00 call 112ec0 10f397: 83 c4 10 add $0x10,%esp 10f39a: 85 c0 test %eax,%eax 10f39c: 75 e6 jne 10f384 10f39e: 89 f0 mov %esi,%eax 10f3a0: eb c0 jmp 10f362 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 10f3a2: 68 78 fd 11 00 push $0x11fd78 <== NOT EXECUTED 10f3a7: 68 d5 fd 11 00 push $0x11fdd5 <== NOT EXECUTED 10f3ac: 6a 2a push $0x2a <== NOT EXECUTED 10f3ae: 68 84 fd 11 00 push $0x11fd84 <== NOT EXECUTED 10f3b3: e8 10 89 ff ff call 107cc8 <__assert_func> <== NOT EXECUTED 00113f94 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 113f94: 55 push %ebp 113f95: 89 e5 mov %esp,%ebp 113f97: 57 push %edi 113f98: 56 push %esi 113f99: 53 push %ebx 113f9a: 83 ec 3c sub $0x3c,%esp 113f9d: 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; 113fa0: 8b 58 1c mov 0x1c(%eax),%ebx loc = temp_mt_entry->mt_fs_root; 113fa3: 8d 55 d4 lea -0x2c(%ebp),%edx 113fa6: 89 55 c4 mov %edx,-0x3c(%ebp) 113fa9: 8d 70 1c lea 0x1c(%eax),%esi 113fac: b9 05 00 00 00 mov $0x5,%ecx 113fb1: 89 d7 mov %edx,%edi 113fb3: 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; 113fb5: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax) do { next = jnode->Parent; 113fbc: 8b 73 08 mov 0x8(%ebx),%esi loc.node_access = (void *)jnode; 113fbf: 89 5d d4 mov %ebx,-0x2c(%ebp) IMFS_Set_handlers( &loc ); 113fc2: 83 ec 0c sub $0xc,%esp 113fc5: 8d 45 d4 lea -0x2c(%ebp),%eax 113fc8: 50 push %eax 113fc9: e8 46 f6 ff ff call 113614 if ( jnode->type != IMFS_DIRECTORY ) { 113fce: 83 c4 10 add $0x10,%esp 113fd1: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx) 113fd5: 75 2d jne 114004 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 113fd7: 8d 43 54 lea 0x54(%ebx),%eax 113fda: 39 43 50 cmp %eax,0x50(%ebx) 113fdd: 74 3e je 11401d result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { 113fdf: 85 db test %ebx,%ebx 113fe1: 74 15 je 113ff8 if ( jnode->type == IMFS_DIRECTORY ) { 113fe3: 83 7b 4c 01 cmpl $0x1,0x4c(%ebx) 113fe7: 75 d3 jne 113fbc 113fe9: 8d 43 54 lea 0x54(%ebx),%eax 113fec: 39 43 50 cmp %eax,0x50(%ebx) 113fef: 74 cb je 113fbc if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); 113ff1: 8b 5b 50 mov 0x50(%ebx),%ebx } } } while (jnode != NULL); 113ff4: 85 db test %ebx,%ebx 113ff6: 75 c4 jne 113fbc 113ff8: 31 c0 xor %eax,%eax return 0; } 113ffa: 8d 65 f4 lea -0xc(%ebp),%esp 113ffd: 5b pop %ebx 113ffe: 5e pop %esi 113fff: 5f pop %edi 114000: c9 leave 114001: c3 ret 114002: 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 ); 114004: 83 ec 08 sub $0x8,%esp 114007: 8d 55 d4 lea -0x2c(%ebp),%edx 11400a: 52 push %edx if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 11400b: 6a 00 push $0x0 11400d: e8 ae 4d ff ff call 108dc0 if (result != 0) 114012: 83 c4 10 add $0x10,%esp 114015: 85 c0 test %eax,%eax 114017: 75 0d jne 114026 114019: 89 f3 mov %esi,%ebx 11401b: eb c2 jmp 113fdf result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 11401d: 83 ec 08 sub $0x8,%esp 114020: 8d 45 d4 lea -0x2c(%ebp),%eax 114023: 50 push %eax 114024: eb e5 jmp 11400b if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 114026: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 114029: eb cf jmp 113ffa <== NOT EXECUTED 0010f3b8 : const char *path, int pathlen, char *token, int *token_len ) { 10f3b8: 55 push %ebp 10f3b9: 89 e5 mov %esp,%ebp 10f3bb: 57 push %edi 10f3bc: 56 push %esi 10f3bd: 53 push %ebx 10f3be: 8b 75 08 mov 0x8(%ebp),%esi 10f3c1: 8b 7d 0c mov 0xc(%ebp),%edi 10f3c4: 8b 45 10 mov 0x10(%ebp),%eax 10f3c7: 8b 5d 14 mov 0x14(%ebp),%ebx register char c; /* * Copy a name into token. (Remember NULL is a token.) */ c = path[i]; 10f3ca: 8a 16 mov (%esi),%dl while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) { 10f3cc: 80 fa 2f cmp $0x2f,%dl 10f3cf: 0f 84 94 00 00 00 je 10f469 10f3d5: 80 fa 5c cmp $0x5c,%dl 10f3d8: 0f 84 8b 00 00 00 je 10f469 10f3de: 84 d2 test %dl,%dl 10f3e0: 0f 84 94 00 00 00 je 10f47a 10f3e6: 85 ff test %edi,%edi 10f3e8: 7e 7f jle 10f469 token[i] = c; 10f3ea: 88 10 mov %dl,(%eax) 10f3ec: 31 d2 xor %edx,%edx 10f3ee: 66 90 xchg %ax,%ax return IMFS_INVALID_TOKEN; if ( !IMFS_is_valid_name_char(c) ) type = IMFS_INVALID_TOKEN; c = path [++i]; 10f3f0: 42 inc %edx 10f3f1: 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) ) { 10f3f4: 80 f9 2f cmp $0x2f,%cl 10f3f7: 74 1f je 10f418 10f3f9: 80 f9 5c cmp $0x5c,%cl 10f3fc: 74 1a je 10f418 10f3fe: 84 c9 test %cl,%cl 10f400: 74 16 je 10f418 10f402: 39 d7 cmp %edx,%edi 10f404: 7e 12 jle 10f418 token[i] = c; 10f406: 88 0c 10 mov %cl,(%eax,%edx,1) if ( i == IMFS_NAME_MAX ) 10f409: 83 fa 20 cmp $0x20,%edx 10f40c: 75 e2 jne 10f3f0 10f40e: b8 04 00 00 00 mov $0x4,%eax else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 10f413: 5b pop %ebx 10f414: 5e pop %esi 10f415: 5f pop %edi 10f416: c9 leave 10f417: c3 ret i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 10f418: 80 7c 10 ff 00 cmpb $0x0,-0x1(%eax,%edx,1) 10f41d: 74 04 je 10f423 token[i] = '\0'; 10f41f: c6 04 10 00 movb $0x0,(%eax,%edx,1) /* * Set token_len to the number of characters copied. */ *token_len = i; 10f423: 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 ) 10f425: bf ec fd 11 00 mov $0x11fdec,%edi 10f42a: b9 03 00 00 00 mov $0x3,%ecx 10f42f: 89 c6 mov %eax,%esi 10f431: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10f433: 75 0b jne 10f440 10f435: b8 02 00 00 00 mov $0x2,%eax else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 10f43a: 5b pop %ebx 10f43b: 5e pop %esi 10f43c: 5f pop %edi 10f43d: c9 leave 10f43e: c3 ret 10f43f: 90 nop <== NOT EXECUTED */ if ( type == IMFS_NAME ) { if ( strcmp( token, "..") == 0 ) type = IMFS_UP_DIR; else if ( strcmp( token, "." ) == 0 ) 10f440: bf ed fd 11 00 mov $0x11fded,%edi 10f445: b9 02 00 00 00 mov $0x2,%ecx 10f44a: 89 c6 mov %eax,%esi 10f44c: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10f44e: 0f 97 c0 seta %al 10f451: 0f 92 c2 setb %dl 10f454: 28 d0 sub %dl,%al 10f456: 0f be c0 movsbl %al,%eax 10f459: 83 f8 01 cmp $0x1,%eax 10f45c: 19 c0 sbb %eax,%eax 10f45e: 83 e0 fe and $0xfffffffe,%eax 10f461: 83 c0 03 add $0x3,%eax type = IMFS_CURRENT_DIR; } return type; } 10f464: 5b pop %ebx 10f465: 5e pop %esi 10f466: 5f pop %edi 10f467: c9 leave 10f468: c3 ret /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 10f469: 88 10 mov %dl,(%eax) i++; type = IMFS_CURRENT_DIR; } else { type = IMFS_NO_MORE_PATH; } } else if (token[ i-1 ] != '\0') { 10f46b: 83 ff 01 cmp $0x1,%edi 10f46e: 19 c0 sbb %eax,%eax 10f470: 40 inc %eax 10f471: 89 c2 mov %eax,%edx /* * Set token_len to the number of characters copied. */ *token_len = i; 10f473: 89 13 mov %edx,(%ebx) else if ( strcmp( token, "." ) == 0 ) type = IMFS_CURRENT_DIR; } return type; } 10f475: 5b pop %ebx 10f476: 5e pop %esi 10f477: 5f pop %edi 10f478: c9 leave 10f479: c3 ret /* * Copy a seperator into token. */ if ( i == 0 ) { token[i] = c; 10f47a: c6 00 00 movb $0x0,(%eax) 10f47d: 31 c0 xor %eax,%eax 10f47f: 31 d2 xor %edx,%edx /* * Set token_len to the number of characters copied. */ *token_len = i; 10f481: 89 13 mov %edx,(%ebx) 10f483: eb f0 jmp 10f475 0010f488 : 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 ) { 10f488: 55 push %ebp 10f489: 89 e5 mov %esp,%ebp 10f48b: 57 push %edi 10f48c: 56 push %esi 10f48d: 53 push %ebx 10f48e: 83 ec 0c sub $0xc,%esp 10f491: 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, 10f494: 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) { 10f49a: 83 f9 10 cmp $0x10,%ecx 10f49d: 74 18 je 10f4b7 10f49f: 31 d2 xor %edx,%edx 10f4a1: b8 20 00 00 00 mov $0x20,%eax 10f4a6: 39 c1 cmp %eax,%ecx 10f4a8: 74 0d je 10f4b7 10f4aa: d1 e0 shl %eax 10f4ac: 42 inc %edx 10f4ad: 83 fa 05 cmp $0x5,%edx 10f4b0: 75 f4 jne 10f4a6 10f4b2: 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) 10f4b7: 89 0d 88 4f 12 00 mov %ecx,0x124f88 /* * Create the root node * * NOTE: UNIX root is 755 and owned by root/root (0/0). */ temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node(); 10f4bd: e8 26 21 00 00 call 1115e8 10f4c2: 89 43 1c mov %eax,0x1c(%ebx) temp_mt_entry->mt_fs_root.handlers = directory_handlers; 10f4c5: 8b 45 14 mov 0x14(%ebp),%eax 10f4c8: 89 43 24 mov %eax,0x24(%ebx) temp_mt_entry->mt_fs_root.ops = op_table; 10f4cb: 8b 45 0c mov 0xc(%ebp),%eax 10f4ce: 89 43 28 mov %eax,0x28(%ebx) temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 10f4d1: 8d 7b 38 lea 0x38(%ebx),%edi 10f4d4: be 80 ff 11 00 mov $0x11ff80,%esi 10f4d9: b9 0c 00 00 00 mov $0xc,%ecx 10f4de: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); 10f4e0: 83 ec 08 sub $0x8,%esp 10f4e3: 6a 0c push $0xc 10f4e5: 6a 01 push $0x1 10f4e7: e8 78 02 00 00 call 10f764 if ( !fs_info ) { 10f4ec: 83 c4 10 add $0x10,%esp 10f4ef: 85 c0 test %eax,%eax 10f4f1: 74 2e je 10f521 free(temp_mt_entry->mt_fs_root.node_access); rtems_set_errno_and_return_minus_one(ENOMEM); } temp_mt_entry->fs_info = fs_info; 10f4f3: 89 43 34 mov %eax,0x34(%ebx) /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 10f4f6: c7 00 01 00 00 00 movl $0x1,(%eax) fs_info->memfile_handlers = memfile_handlers; 10f4fc: 8b 55 10 mov 0x10(%ebp),%edx 10f4ff: 89 50 04 mov %edx,0x4(%eax) fs_info->directory_handlers = directory_handlers; 10f502: 8b 55 14 mov 0x14(%ebp),%edx 10f505: 89 50 08 mov %edx,0x8(%eax) jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 10f508: 8b 43 1c mov 0x1c(%ebx),%eax 10f50b: c7 40 38 01 00 00 00 movl $0x1,0x38(%eax) /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); 10f512: e8 01 17 00 00 call 110c18 10f517: 31 c0 xor %eax,%eax return 0; } 10f519: 8d 65 f4 lea -0xc(%ebp),%esp 10f51c: 5b pop %ebx 10f51d: 5e pop %esi 10f51e: 5f pop %edi 10f51f: c9 leave 10f520: 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); 10f521: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10f524: ff 73 1c pushl 0x1c(%ebx) <== NOT EXECUTED 10f527: e8 f0 8a ff ff call 10801c <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 10f52c: e8 c7 2e 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10f531: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 10f537: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f53c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10f53f: eb d8 jmp 10f519 <== NOT EXECUTED 00108ab4 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 108ab4: 55 push %ebp 108ab5: 89 e5 mov %esp,%ebp 108ab7: 57 push %edi 108ab8: 53 push %ebx 108ab9: 83 ec 50 sub $0x50,%esp 108abc: 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; 108abf: 8b 45 08 mov 0x8(%ebp),%eax 108ac2: 8b 00 mov (%eax),%eax 108ac4: 89 45 d8 mov %eax,-0x28(%ebp) if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 108ac7: 66 83 78 34 07 cmpw $0x7,0x34(%eax) 108acc: 77 66 ja 108b34 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 ); 108ace: 31 c0 xor %eax,%eax 108ad0: b9 ff ff ff ff mov $0xffffffff,%ecx 108ad5: 89 d7 mov %edx,%edi 108ad7: f2 ae repnz scas %es:(%edi),%al 108ad9: f7 d1 not %ecx 108adb: 49 dec %ecx 108adc: 8d 45 f4 lea -0xc(%ebp),%eax 108adf: 50 push %eax 108ae0: 8d 5d b7 lea -0x49(%ebp),%ebx 108ae3: 53 push %ebx 108ae4: 51 push %ecx 108ae5: 52 push %edx 108ae6: e8 d1 b5 00 00 call 1140bc * 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( 108aeb: 8d 45 d8 lea -0x28(%ebp),%eax 108aee: 89 04 24 mov %eax,(%esp) 108af1: 68 ff a1 00 00 push $0xa1ff 108af6: 53 push %ebx 108af7: 6a 03 push $0x3 108af9: ff 75 0c pushl 0xc(%ebp) 108afc: e8 07 aa 00 00 call 113508 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 108b01: 83 c4 20 add $0x20,%esp 108b04: 85 c0 test %eax,%eax 108b06: 74 3e je 108b46 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++; 108b08: 8b 45 d8 mov -0x28(%ebp),%eax 108b0b: 66 ff 40 34 incw 0x34(%eax) IMFS_update_ctime( info.hard_link.link_node ); 108b0f: 83 ec 08 sub $0x8,%esp 108b12: 6a 00 push $0x0 108b14: 8d 45 ec lea -0x14(%ebp),%eax 108b17: 50 push %eax 108b18: e8 ff 08 00 00 call 10941c 108b1d: 8b 55 ec mov -0x14(%ebp),%edx 108b20: 8b 45 d8 mov -0x28(%ebp),%eax 108b23: 89 50 48 mov %edx,0x48(%eax) 108b26: 31 c0 xor %eax,%eax return 0; 108b28: 83 c4 10 add $0x10,%esp } 108b2b: 8d 65 f8 lea -0x8(%ebp),%esp 108b2e: 5b pop %ebx 108b2f: 5f pop %edi 108b30: c9 leave 108b31: c3 ret 108b32: 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 ); 108b34: e8 f7 e9 00 00 call 117530 <__errno> 108b39: c7 00 1f 00 00 00 movl $0x1f,(%eax) 108b3f: b8 ff ff ff ff mov $0xffffffff,%eax 108b44: eb e5 jmp 108b2b ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 108b46: e8 e5 e9 00 00 call 117530 <__errno> <== NOT EXECUTED 108b4b: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 108b51: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108b56: eb d3 jmp 108b2b <== NOT EXECUTED 001160c8 : MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 1160c8: 55 push %ebp 1160c9: 89 e5 mov %esp,%ebp 1160cb: 53 push %ebx 1160cc: 83 ec 04 sub $0x4,%esp 1160cf: 8b 45 08 mov 0x8(%ebp),%eax block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 1160d2: 85 c0 test %eax,%eax 1160d4: 74 50 je 116126 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 1160d6: 83 78 4c 05 cmpl $0x5,0x4c(%eax) 1160da: 75 31 jne 11610d 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 ); 1160dc: 52 push %edx 1160dd: 6a 01 push $0x1 1160df: ff 75 0c pushl 0xc(%ebp) 1160e2: 50 push %eax 1160e3: e8 b8 fa ff ff call 115ba0 1160e8: 89 c3 mov %eax,%ebx if ( *block_entry_ptr ) 1160ea: 83 c4 10 add $0x10,%esp 1160ed: 8b 00 mov (%eax),%eax 1160ef: 85 c0 test %eax,%eax 1160f1: 74 09 je 1160fc #endif memory = memfile_alloc_block(); if ( !memory ) return 1; *block_entry_ptr = memory; 1160f3: 31 c0 xor %eax,%eax return 0; } 1160f5: 8b 5d fc mov -0x4(%ebp),%ebx 1160f8: c9 leave 1160f9: c3 ret 1160fa: 66 90 xchg %ax,%ax <== NOT EXECUTED #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 1160fc: e8 7b fa ff ff call 115b7c if ( !memory ) 116101: 85 c0 test %eax,%eax 116103: 74 04 je 116109 return 1; *block_entry_ptr = memory; 116105: 89 03 mov %eax,(%ebx) 116107: eb ea jmp 1160f3 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) 116109: b0 01 mov $0x1,%al <== NOT EXECUTED 11610b: eb e8 jmp 1160f5 <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 11610d: 68 94 53 12 00 push $0x125394 <== NOT EXECUTED 116112: 68 93 54 12 00 push $0x125493 <== NOT EXECUTED 116117: 68 6d 01 00 00 push $0x16d <== NOT EXECUTED 11611c: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 116121: e8 ea 2e ff ff call 109010 <__assert_func> <== NOT EXECUTED ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 116126: 68 20 53 12 00 push $0x125320 <== NOT EXECUTED 11612b: 68 93 54 12 00 push $0x125493 <== NOT EXECUTED 116130: 68 69 01 00 00 push $0x169 <== NOT EXECUTED 116135: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 11613a: e8 d1 2e ff ff call 109010 <__assert_func> <== NOT EXECUTED 00116140 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 116140: 55 push %ebp 116141: 89 e5 mov %esp,%ebp 116143: 57 push %edi 116144: 56 push %esi 116145: 53 push %ebx 116146: 83 ec 2c sub $0x2c,%esp 116149: 8b 5d 08 mov 0x8(%ebp),%ebx 11614c: 8b 45 0c mov 0xc(%ebp),%eax 11614f: 8b 55 10 mov 0x10(%ebp),%edx 116152: 89 45 d8 mov %eax,-0x28(%ebp) 116155: 89 55 dc mov %edx,-0x24(%ebp) /* * Perform internal consistency checks */ assert( the_jnode ); 116158: 85 db test %ebx,%ebx 11615a: 0f 84 29 01 00 00 je 116289 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 116160: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx) 116164: 0f 85 06 01 00 00 jne 116270 if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 11616a: a1 50 b0 12 00 mov 0x12b050,%eax 11616f: 89 c1 mov %eax,%ecx 116171: c1 e9 02 shr $0x2,%ecx 116174: 8d 51 01 lea 0x1(%ecx),%edx 116177: 0f af d1 imul %ecx,%edx 11617a: 42 inc %edx 11617b: 0f af d1 imul %ecx,%edx 11617e: 4a dec %edx 11617f: 0f af d0 imul %eax,%edx 116182: 31 c9 xor %ecx,%ecx 116184: 3b 4d dc cmp -0x24(%ebp),%ecx 116187: 7f 1c jg 1161a5 116189: 7d 15 jge 1161a0 rtems_set_errno_and_return_minus_one( EINVAL ); 11618b: e8 a0 13 00 00 call 117530 <__errno> <== NOT EXECUTED 116190: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 116196: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11619b: e9 9e 00 00 00 jmp 11623e <== NOT EXECUTED assert( the_jnode->type == IMFS_MEMORY_FILE ); if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 1161a0: 3b 55 d8 cmp -0x28(%ebp),%edx 1161a3: 76 e6 jbe 11618b rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 1161a5: 8b 53 50 mov 0x50(%ebx),%edx 1161a8: 8b 4b 54 mov 0x54(%ebx),%ecx 1161ab: 89 55 e0 mov %edx,-0x20(%ebp) 1161ae: 89 4d e4 mov %ecx,-0x1c(%ebp) 1161b1: 39 4d dc cmp %ecx,-0x24(%ebp) 1161b4: 0f 8e 8e 00 00 00 jle 116248 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 1161ba: 89 45 d0 mov %eax,-0x30(%ebp) 1161bd: 89 c1 mov %eax,%ecx 1161bf: c1 f9 1f sar $0x1f,%ecx 1161c2: 89 4d d4 mov %ecx,-0x2c(%ebp) 1161c5: ff 75 d4 pushl -0x2c(%ebp) 1161c8: ff 75 d0 pushl -0x30(%ebp) 1161cb: ff 75 dc pushl -0x24(%ebp) 1161ce: ff 75 d8 pushl -0x28(%ebp) 1161d1: e8 16 c3 00 00 call 1224ec <__divdi3> 1161d6: 83 c4 10 add $0x10,%esp 1161d9: 89 c6 mov %eax,%esi old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 1161db: ff 75 d4 pushl -0x2c(%ebp) 1161de: ff 75 d0 pushl -0x30(%ebp) 1161e1: ff 75 e4 pushl -0x1c(%ebp) 1161e4: ff 75 e0 pushl -0x20(%ebp) 1161e7: e8 00 c3 00 00 call 1224ec <__divdi3> 1161ec: 83 c4 10 add $0x10,%esp 1161ef: 89 45 e0 mov %eax,-0x20(%ebp) /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 1161f2: 39 c6 cmp %eax,%esi 1161f4: 72 6a jb 116260 1161f6: 89 c7 mov %eax,%edi 1161f8: eb 07 jmp 116201 1161fa: 66 90 xchg %ax,%ax <== NOT EXECUTED 1161fc: 47 inc %edi 1161fd: 39 fe cmp %edi,%esi 1161ff: 72 5f jb 116260 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 116201: 83 ec 08 sub $0x8,%esp 116204: 57 push %edi 116205: 53 push %ebx 116206: e8 bd fe ff ff call 1160c8 11620b: 83 c4 10 add $0x10,%esp 11620e: 85 c0 test %eax,%eax 116210: 74 ea je 1161fc for ( ; block>=old_blocks ; block-- ) { 116212: 39 7d e0 cmp %edi,-0x20(%ebp) <== NOT EXECUTED 116215: 77 17 ja 11622e <== NOT EXECUTED 116217: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED 11621a: 66 90 xchg %ax,%ax <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 11621c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11621f: 57 push %edi <== NOT EXECUTED 116220: 53 push %ebx <== NOT EXECUTED 116221: e8 d6 fb ff ff call 115dfc <== 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-- ) { 116226: 4f dec %edi <== NOT EXECUTED 116227: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11622a: 39 fe cmp %edi,%esi <== NOT EXECUTED 11622c: 76 ee jbe 11621c <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 11622e: e8 fd 12 00 00 call 117530 <__errno> <== NOT EXECUTED 116233: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED 116239: 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; } 11623e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 116241: 5b pop %ebx <== NOT EXECUTED 116242: 5e pop %esi <== NOT EXECUTED 116243: 5f pop %edi <== NOT EXECUTED 116244: c9 leave <== NOT EXECUTED 116245: c3 ret <== NOT EXECUTED 116246: 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 ) 116248: 7c 09 jl 116253 11624a: 39 55 d8 cmp %edx,-0x28(%ebp) 11624d: 0f 87 67 ff ff ff ja 1161ba /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 116253: 31 c0 xor %eax,%eax return 0; } 116255: 8d 65 f4 lea -0xc(%ebp),%esp 116258: 5b pop %ebx 116259: 5e pop %esi 11625a: 5f pop %edi 11625b: c9 leave 11625c: c3 ret 11625d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 116260: 8b 45 d8 mov -0x28(%ebp),%eax 116263: 8b 55 dc mov -0x24(%ebp),%edx 116266: 89 43 50 mov %eax,0x50(%ebx) 116269: 89 53 54 mov %edx,0x54(%ebx) 11626c: 31 c0 xor %eax,%eax 11626e: eb e5 jmp 116255 assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 116270: 68 94 53 12 00 push $0x125394 <== NOT EXECUTED 116275: 68 a9 54 12 00 push $0x1254a9 <== NOT EXECUTED 11627a: 68 35 01 00 00 push $0x135 <== NOT EXECUTED 11627f: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 116284: e8 87 2d ff ff call 109010 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 116289: 68 20 53 12 00 push $0x125320 <== NOT EXECUTED 11628e: 68 a9 54 12 00 push $0x1254a9 <== NOT EXECUTED 116293: 68 31 01 00 00 push $0x131 <== NOT EXECUTED 116298: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 11629d: e8 6e 2d ff ff call 109010 <__assert_func> <== NOT EXECUTED 00115ba0 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 115ba0: 55 push %ebp 115ba1: 89 e5 mov %esp,%ebp 115ba3: 57 push %edi 115ba4: 56 push %esi 115ba5: 53 push %ebx 115ba6: 83 ec 1c sub $0x1c,%esp 115ba9: 8b 5d 08 mov 0x8(%ebp),%ebx 115bac: 8b 7d 0c mov 0xc(%ebp),%edi 115baf: 8b 75 10 mov 0x10(%ebp),%esi /* * Perform internal consistency checks */ assert( the_jnode ); 115bb2: 85 db test %ebx,%ebx 115bb4: 0f 84 58 01 00 00 je 115d12 if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 115bba: 83 7b 4c 05 cmpl $0x5,0x4c(%ebx) 115bbe: 0f 85 67 01 00 00 jne 115d2b /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 115bc4: 8b 0d 50 b0 12 00 mov 0x12b050,%ecx 115bca: c1 e9 02 shr $0x2,%ecx 115bcd: 8d 41 ff lea -0x1(%ecx),%eax 115bd0: 39 c7 cmp %eax,%edi 115bd2: 76 44 jbe 115c18 /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 115bd4: 8d 41 01 lea 0x1(%ecx),%eax <== NOT EXECUTED 115bd7: 0f af c1 imul %ecx,%eax <== NOT EXECUTED 115bda: 8d 50 ff lea -0x1(%eax),%edx <== NOT EXECUTED 115bdd: 39 d7 cmp %edx,%edi <== NOT EXECUTED 115bdf: 77 57 ja 115c38 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 115be1: 89 f8 mov %edi,%eax <== NOT EXECUTED 115be3: 29 c8 sub %ecx,%eax <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 115be5: 31 d2 xor %edx,%edx <== NOT EXECUTED 115be7: f7 f1 div %ecx <== NOT EXECUTED 115be9: 89 c1 mov %eax,%ecx <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; 115beb: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED if ( malloc_it ) { 115bee: 85 f6 test %esi,%esi <== NOT EXECUTED 115bf0: 0f 84 96 00 00 00 je 115c8c <== NOT EXECUTED if ( !p ) { 115bf6: 85 c0 test %eax,%eax <== NOT EXECUTED 115bf8: 0f 84 dd 00 00 00 je 115cdb <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 115bfe: 8d 1c 88 lea (%eax,%ecx,4),%ebx <== NOT EXECUTED 115c01: 8b 03 mov (%ebx),%eax <== NOT EXECUTED if ( !p1 ) { 115c03: 85 c0 test %eax,%eax <== NOT EXECUTED 115c05: 0f 84 ba 00 00 00 je 115cc5 <== 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 ]; 115c0b: 8d 04 90 lea (%eax,%edx,4),%eax <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 115c0e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 115c11: 5b pop %ebx <== NOT EXECUTED 115c12: 5e pop %esi <== NOT EXECUTED 115c13: 5f pop %edi <== NOT EXECUTED 115c14: c9 leave <== NOT EXECUTED 115c15: c3 ret <== NOT EXECUTED 115c16: 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; 115c18: 8b 43 58 mov 0x58(%ebx),%eax if ( malloc_it ) { 115c1b: 85 f6 test %esi,%esi 115c1d: 0f 84 85 00 00 00 je 115ca8 if ( !p ) { 115c23: 85 c0 test %eax,%eax 115c25: 0f 84 89 00 00 00 je 115cb4 p2 = memfile_alloc_block(); if ( !p2 ) return 0; p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; 115c2b: 8d 04 b8 lea (%eax,%edi,4),%eax /* * This means the requested block number is out of range. */ return 0; } 115c2e: 8d 65 f4 lea -0xc(%ebp),%esp 115c31: 5b pop %ebx 115c32: 5e pop %esi 115c33: 5f pop %edi 115c34: c9 leave 115c35: c3 ret 115c36: 66 90 xchg %ax,%ax <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 115c38: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 115c3b: 0f af d1 imul %ecx,%edx <== NOT EXECUTED 115c3e: 4a dec %edx <== NOT EXECUTED 115c3f: 39 d7 cmp %edx,%edi <== NOT EXECUTED 115c41: 77 59 ja 115c9c <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 115c43: 29 c7 sub %eax,%edi <== NOT EXECUTED 115c45: 89 f8 mov %edi,%eax <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 115c47: 31 d2 xor %edx,%edx <== NOT EXECUTED 115c49: f7 f1 div %ecx <== NOT EXECUTED 115c4b: 89 d7 mov %edx,%edi <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 115c4d: 31 d2 xor %edx,%edx <== NOT EXECUTED 115c4f: f7 f1 div %ecx <== NOT EXECUTED 115c51: 89 c1 mov %eax,%ecx <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; p = info->triply_indirect; 115c53: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED if ( malloc_it ) { 115c56: 85 f6 test %esi,%esi <== NOT EXECUTED 115c58: 0f 84 9a 00 00 00 je 115cf8 <== NOT EXECUTED if ( !p ) { 115c5e: 85 c0 test %eax,%eax <== NOT EXECUTED 115c60: 0f 84 de 00 00 00 je 115d44 <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 115c66: 8d 1c 88 lea (%eax,%ecx,4),%ebx <== NOT EXECUTED 115c69: 8b 03 mov (%ebx),%eax <== NOT EXECUTED if ( !p1 ) { 115c6b: 85 c0 test %eax,%eax <== NOT EXECUTED 115c6d: 0f 84 f2 00 00 00 je 115d65 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 115c73: 8d 1c 90 lea (%eax,%edx,4),%ebx <== NOT EXECUTED 115c76: 8b 03 mov (%ebx),%eax <== NOT EXECUTED if ( !p2 ) { 115c78: 85 c0 test %eax,%eax <== NOT EXECUTED 115c7a: 75 af jne 115c2b <== NOT EXECUTED p2 = memfile_alloc_block(); 115c7c: e8 fb fe ff ff call 115b7c <== NOT EXECUTED if ( !p2 ) 115c81: 85 c0 test %eax,%eax <== NOT EXECUTED 115c83: 74 17 je 115c9c <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 115c85: 89 03 mov %eax,(%ebx) <== NOT EXECUTED 115c87: eb a2 jmp 115c2b <== NOT EXECUTED 115c89: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 115c8c: 85 c0 test %eax,%eax <== NOT EXECUTED 115c8e: 74 0c je 115c9c <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 115c90: 8b 04 88 mov (%eax,%ecx,4),%eax <== NOT EXECUTED if ( !p ) 115c93: 85 c0 test %eax,%eax <== NOT EXECUTED 115c95: 0f 85 70 ff ff ff jne 115c0b <== NOT EXECUTED 115c9b: 90 nop <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 115c9c: 31 c0 xor %eax,%eax <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 115c9e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 115ca1: 5b pop %ebx <== NOT EXECUTED 115ca2: 5e pop %esi <== NOT EXECUTED 115ca3: 5f pop %edi <== NOT EXECUTED 115ca4: c9 leave <== NOT EXECUTED 115ca5: c3 ret <== NOT EXECUTED 115ca6: 66 90 xchg %ax,%ax <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 115ca8: 85 c0 test %eax,%eax 115caa: 0f 85 7b ff ff ff jne 115c2b p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 115cb0: 31 c0 xor %eax,%eax <== NOT EXECUTED 115cb2: eb ea jmp 115c9e <== NOT EXECUTED p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 115cb4: e8 c3 fe ff ff call 115b7c if ( !p ) 115cb9: 85 c0 test %eax,%eax 115cbb: 74 df je 115c9c return 0; info->indirect = p; 115cbd: 89 43 58 mov %eax,0x58(%ebx) 115cc0: e9 66 ff ff ff jmp 115c2b info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; if ( !p1 ) { p1 = memfile_alloc_block(); 115cc5: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 115cc8: e8 af fe ff ff call 115b7c <== NOT EXECUTED if ( !p1 ) 115ccd: 85 c0 test %eax,%eax <== NOT EXECUTED 115ccf: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 115cd2: 74 c8 je 115c9c <== NOT EXECUTED return 0; p[ doubly ] = (block_p) p1; 115cd4: 89 03 mov %eax,(%ebx) <== NOT EXECUTED 115cd6: e9 30 ff ff ff jmp 115c0b <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 115cdb: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 115cde: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 115ce1: e8 96 fe ff ff call 115b7c <== NOT EXECUTED if ( !p ) 115ce6: 85 c0 test %eax,%eax <== NOT EXECUTED 115ce8: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 115ceb: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 115cee: 74 ac je 115c9c <== NOT EXECUTED return 0; info->doubly_indirect = p; 115cf0: 89 43 5c mov %eax,0x5c(%ebx) <== NOT EXECUTED 115cf3: e9 06 ff ff ff jmp 115bfe <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 115cf8: 85 c0 test %eax,%eax <== NOT EXECUTED 115cfa: 74 a0 je 115c9c <== 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 ]; 115cfc: 8b 0c 88 mov (%eax,%ecx,4),%ecx <== NOT EXECUTED if ( !p1 ) 115cff: 85 c9 test %ecx,%ecx <== NOT EXECUTED 115d01: 74 99 je 115c9c <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 115d03: 8d 04 bd 00 00 00 00 lea 0x0(,%edi,4),%eax <== NOT EXECUTED 115d0a: 03 04 91 add (%ecx,%edx,4),%eax <== NOT EXECUTED 115d0d: e9 fc fe ff ff jmp 115c0e <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 115d12: 68 20 53 12 00 push $0x125320 <== NOT EXECUTED 115d17: 68 04 54 12 00 push $0x125404 <== NOT EXECUTED 115d1c: 68 88 03 00 00 push $0x388 <== NOT EXECUTED 115d21: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 115d26: e8 e5 32 ff ff call 109010 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 115d2b: 68 94 53 12 00 push $0x125394 <== NOT EXECUTED 115d30: 68 04 54 12 00 push $0x125404 <== NOT EXECUTED 115d35: 68 8c 03 00 00 push $0x38c <== NOT EXECUTED 115d3a: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 115d3f: e8 cc 32 ff ff call 109010 <__assert_func> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 115d44: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 115d47: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 115d4a: e8 2d fe ff ff call 115b7c <== NOT EXECUTED if ( !p ) 115d4f: 85 c0 test %eax,%eax <== NOT EXECUTED 115d51: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 115d54: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 115d57: 0f 84 3f ff ff ff je 115c9c <== NOT EXECUTED return 0; info->triply_indirect = p; 115d5d: 89 43 60 mov %eax,0x60(%ebx) <== NOT EXECUTED 115d60: e9 01 ff ff ff jmp 115c66 <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); 115d65: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 115d68: e8 0f fe ff ff call 115b7c <== NOT EXECUTED if ( !p1 ) 115d6d: 85 c0 test %eax,%eax <== NOT EXECUTED 115d6f: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 115d72: 0f 84 24 ff ff ff je 115c9c <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 115d78: 89 03 mov %eax,(%ebx) <== NOT EXECUTED 115d7a: e9 f4 fe ff ff jmp 115c73 <== NOT EXECUTED 001166c0 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 1166c0: 55 push %ebp 1166c1: 89 e5 mov %esp,%ebp 1166c3: 57 push %edi 1166c4: 56 push %esi 1166c5: 53 push %ebx 1166c6: 83 ec 4c sub $0x4c,%esp 1166c9: 8b 75 0c mov 0xc(%ebp),%esi 1166cc: 8b 7d 10 mov 0x10(%ebp),%edi 1166cf: 8b 45 18 mov 0x18(%ebp),%eax /* * Perform internal consistency checks */ assert( the_jnode ); 1166d2: 8b 55 08 mov 0x8(%ebp),%edx 1166d5: 85 d2 test %edx,%edx 1166d7: 0f 84 8e 02 00 00 je 11696b if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 1166dd: 8b 4d 08 mov 0x8(%ebp),%ecx 1166e0: 8b 51 4c mov 0x4c(%ecx),%edx 1166e3: 8d 4a fb lea -0x5(%edx),%ecx 1166e6: 83 f9 01 cmp $0x1,%ecx 1166e9: 0f 87 63 02 00 00 ja 116952 /* * Error checks on arguments */ assert( dest ); 1166ef: 8b 5d 14 mov 0x14(%ebp),%ebx 1166f2: 85 db test %ebx,%ebx 1166f4: 0f 84 26 02 00 00 je 116920 /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 1166fa: 85 c0 test %eax,%eax 1166fc: 0f 84 f0 01 00 00 je 1168f2 /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 116702: 83 fa 06 cmp $0x6,%edx 116705: 0f 84 5d 01 00 00 je 116868 /* * 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; 11670b: 89 f2 mov %esi,%edx if ( last_byte > the_jnode->info.file.size ) 11670d: 8b 4d 08 mov 0x8(%ebp),%ecx 116710: 8b 49 50 mov 0x50(%ecx),%ecx 116713: 89 4d cc mov %ecx,-0x34(%ebp) 116716: 8d 1c 30 lea (%eax,%esi,1),%ebx 116719: 89 5d d0 mov %ebx,-0x30(%ebp) 11671c: 31 c9 xor %ecx,%ecx 11671e: 8b 5d 08 mov 0x8(%ebp),%ebx 116721: 3b 4b 54 cmp 0x54(%ebx),%ecx 116724: 0f 8e e2 00 00 00 jle 11680c my_length = the_jnode->info.file.size - start; 11672a: 8b 5d cc mov -0x34(%ebp),%ebx 11672d: 29 d3 sub %edx,%ebx 11672f: 89 5d cc mov %ebx,-0x34(%ebp) /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 116732: a1 50 b0 12 00 mov 0x12b050,%eax 116737: 89 45 d0 mov %eax,-0x30(%ebp) 11673a: 99 cltd 11673b: 89 d3 mov %edx,%ebx 11673d: 52 push %edx 11673e: 50 push %eax 11673f: 57 push %edi 116740: 56 push %esi 116741: 89 45 c0 mov %eax,-0x40(%ebp) 116744: e8 f3 be 00 00 call 12263c <__moddi3> 116749: 83 c4 10 add $0x10,%esp 11674c: 89 45 c8 mov %eax,-0x38(%ebp) block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 11674f: 8b 4d c0 mov -0x40(%ebp),%ecx 116752: 53 push %ebx 116753: 51 push %ecx 116754: 57 push %edi 116755: 56 push %esi 116756: e8 91 bd 00 00 call 1224ec <__divdi3> 11675b: 83 c4 10 add $0x10,%esp 11675e: 89 c3 mov %eax,%ebx if ( start_offset ) { 116760: 8b 4d c8 mov -0x38(%ebp),%ecx 116763: 85 c9 test %ecx,%ecx 116765: 0f 85 b1 00 00 00 jne 11681c 11676b: 8b 55 14 mov 0x14(%ebp),%edx 11676e: 89 55 c8 mov %edx,-0x38(%ebp) 116771: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 116778: 8b 55 d0 mov -0x30(%ebp),%edx 11677b: 39 55 cc cmp %edx,-0x34(%ebp) 11677e: 72 39 jb 1167b9 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 116780: 50 push %eax 116781: 6a 00 push $0x0 116783: 53 push %ebx 116784: ff 75 08 pushl 0x8(%ebp) 116787: e8 14 f4 ff ff call 115ba0 assert( block_ptr ); 11678c: 83 c4 10 add $0x10,%esp 11678f: 85 c0 test %eax,%eax 116791: 0f 84 70 01 00 00 je 116907 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 116797: 8b 30 mov (%eax),%esi 116799: 8b 7d c8 mov -0x38(%ebp),%edi 11679c: 8b 4d d0 mov -0x30(%ebp),%ecx 11679f: f3 a4 rep movsb %ds:(%esi),%es:(%edi) dest += to_copy; 1167a1: 89 7d c8 mov %edi,-0x38(%ebp) block++; 1167a4: 43 inc %ebx my_length -= to_copy; 1167a5: 8b 4d d0 mov -0x30(%ebp),%ecx 1167a8: 29 4d cc sub %ecx,-0x34(%ebp) copied += to_copy; 1167ab: 01 4d c4 add %ecx,-0x3c(%ebp) /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 1167ae: 8b 7d cc mov -0x34(%ebp),%edi 1167b1: 39 3d 50 b0 12 00 cmp %edi,0x12b050 1167b7: 76 c7 jbe 116780 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 1167b9: 8b 7d cc mov -0x34(%ebp),%edi 1167bc: 85 ff test %edi,%edi 1167be: 74 27 je 1167e7 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 1167c0: 56 push %esi 1167c1: 6a 00 push $0x0 1167c3: 53 push %ebx 1167c4: ff 75 08 pushl 0x8(%ebp) 1167c7: e8 d4 f3 ff ff call 115ba0 assert( block_ptr ); 1167cc: 83 c4 10 add $0x10,%esp 1167cf: 85 c0 test %eax,%eax 1167d1: 0f 84 62 01 00 00 je 116939 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 1167d7: 8b 30 mov (%eax),%esi 1167d9: 8b 7d c8 mov -0x38(%ebp),%edi 1167dc: 8b 4d cc mov -0x34(%ebp),%ecx 1167df: f3 a4 rep movsb %ds:(%esi),%es:(%edi) copied += my_length; 1167e1: 8b 45 cc mov -0x34(%ebp),%eax 1167e4: 01 45 c4 add %eax,-0x3c(%ebp) } IMFS_update_atime( the_jnode ); 1167e7: 83 ec 08 sub $0x8,%esp 1167ea: 6a 00 push $0x0 1167ec: 8d 45 e0 lea -0x20(%ebp),%eax 1167ef: 50 push %eax 1167f0: e8 27 2c ff ff call 10941c 1167f5: 8b 45 e0 mov -0x20(%ebp),%eax 1167f8: 8b 55 08 mov 0x8(%ebp),%edx 1167fb: 89 42 40 mov %eax,0x40(%edx) return copied; 1167fe: 8b 45 c4 mov -0x3c(%ebp),%eax 116801: 83 c4 10 add $0x10,%esp } 116804: 8d 65 f4 lea -0xc(%ebp),%esp 116807: 5b pop %ebx 116808: 5e pop %esi 116809: 5f pop %edi 11680a: c9 leave 11680b: 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 ) 11680c: 0f 8d ba 00 00 00 jge 1168cc 116812: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED 116815: e9 18 ff ff ff jmp 116732 <== NOT EXECUTED 11681a: 66 90 xchg %ax,%ax <== NOT EXECUTED block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; if ( start_offset ) { to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset; if ( to_copy > my_length ) to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 11681c: 52 push %edx 11681d: 6a 00 push $0x0 11681f: 53 push %ebx 116820: ff 75 08 pushl 0x8(%ebp) 116823: e8 78 f3 ff ff call 115ba0 assert( block_ptr ); 116828: 83 c4 10 add $0x10,%esp 11682b: 85 c0 test %eax,%eax 11682d: 0f 84 51 01 00 00 je 116984 */ 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; 116833: 8b 4d d0 mov -0x30(%ebp),%ecx 116836: 2b 4d c8 sub -0x38(%ebp),%ecx 116839: 8b 55 cc mov -0x34(%ebp),%edx 11683c: 39 ca cmp %ecx,%edx 11683e: 0f 87 9c 00 00 00 ja 1168e0 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 ); 116844: 8b 75 c8 mov -0x38(%ebp),%esi 116847: 03 30 add (%eax),%esi dest += to_copy; 116849: 8b 7d 14 mov 0x14(%ebp),%edi 11684c: 89 d1 mov %edx,%ecx 11684e: f3 a4 rep movsb %ds:(%esi),%es:(%edi) 116850: 89 7d c8 mov %edi,-0x38(%ebp) block++; 116853: 43 inc %ebx my_length -= to_copy; 116854: 29 55 cc sub %edx,-0x34(%ebp) 116857: a1 50 b0 12 00 mov 0x12b050,%eax 11685c: 89 45 d0 mov %eax,-0x30(%ebp) 11685f: 89 55 c4 mov %edx,-0x3c(%ebp) 116862: e9 11 ff ff ff jmp 116778 116867: 90 nop <== NOT EXECUTED * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; 116868: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 11686b: 8b 5b 58 mov 0x58(%ebx),%ebx <== NOT EXECUTED 11686e: 89 5d cc mov %ebx,-0x34(%ebp) <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) 116871: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 116874: 8b 51 50 mov 0x50(%ecx),%edx <== NOT EXECUTED 116877: 8b 49 54 mov 0x54(%ecx),%ecx <== NOT EXECUTED 11687a: 89 55 b0 mov %edx,-0x50(%ebp) <== NOT EXECUTED 11687d: 89 4d b4 mov %ecx,-0x4c(%ebp) <== NOT EXECUTED 116880: 29 f2 sub %esi,%edx <== NOT EXECUTED 116882: 19 f9 sbb %edi,%ecx <== NOT EXECUTED 116884: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED 116887: 89 4d d4 mov %ecx,-0x2c(%ebp) <== NOT EXECUTED 11688a: 31 db xor %ebx,%ebx <== NOT EXECUTED 11688c: 39 cb cmp %ecx,%ebx <== NOT EXECUTED 11688e: 7e 58 jle 1168e8 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 116890: 8b 55 b0 mov -0x50(%ebp),%edx <== NOT EXECUTED 116893: 29 f2 sub %esi,%edx <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 116895: 03 75 cc add -0x34(%ebp),%esi <== NOT EXECUTED 116898: 8b 7d 14 mov 0x14(%ebp),%edi <== NOT EXECUTED 11689b: 89 d1 mov %edx,%ecx <== NOT EXECUTED 11689d: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED IMFS_update_atime( the_jnode ); 11689f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1168a2: 6a 00 push $0x0 <== NOT EXECUTED 1168a4: 8d 45 e0 lea -0x20(%ebp),%eax <== NOT EXECUTED 1168a7: 50 push %eax <== NOT EXECUTED 1168a8: 89 55 c0 mov %edx,-0x40(%ebp) <== NOT EXECUTED 1168ab: e8 6c 2b ff ff call 10941c <== NOT EXECUTED 1168b0: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 1168b3: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 1168b6: 89 43 40 mov %eax,0x40(%ebx) <== NOT EXECUTED return my_length; 1168b9: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED 1168bc: 89 d0 mov %edx,%eax <== NOT EXECUTED 1168be: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } IMFS_update_atime( the_jnode ); return copied; } 1168c1: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1168c4: 5b pop %ebx <== NOT EXECUTED 1168c5: 5e pop %esi <== NOT EXECUTED 1168c6: 5f pop %edi <== NOT EXECUTED 1168c7: c9 leave <== NOT EXECUTED 1168c8: c3 ret <== NOT EXECUTED 1168c9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED * If the last byte we are supposed to read is past the end of this * in memory file, then shorten the length to read. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) 1168cc: 8b 4d cc mov -0x34(%ebp),%ecx 1168cf: 39 4d d0 cmp %ecx,-0x30(%ebp) 1168d2: 0f 87 52 fe ff ff ja 11672a 1168d8: e9 35 ff ff ff jmp 116812 <== NOT EXECUTED 1168dd: 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; 1168e0: 89 ca mov %ecx,%edx 1168e2: e9 5d ff ff ff jmp 116844 1168e7: 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)) 1168e8: 7c 04 jl 1168ee <== NOT EXECUTED 1168ea: 39 d0 cmp %edx,%eax <== NOT EXECUTED 1168ec: 77 a2 ja 116890 <== NOT EXECUTED 1168ee: 89 c2 mov %eax,%edx <== NOT EXECUTED 1168f0: eb a3 jmp 116895 <== 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 ); 1168f2: e8 39 0c 00 00 call 117530 <__errno> <== NOT EXECUTED 1168f7: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 1168fd: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 116902: e9 fd fe ff ff jmp 116804 <== 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 ); 116907: 68 36 53 12 00 push $0x125336 <== NOT EXECUTED 11690c: 68 36 54 12 00 push $0x125436 <== NOT EXECUTED 116911: 68 a7 02 00 00 push $0x2a7 <== NOT EXECUTED 116916: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 11691b: e8 f0 26 ff ff call 109010 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 116920: 68 47 53 12 00 push $0x125347 <== NOT EXECUTED 116925: 68 36 54 12 00 push $0x125436 <== NOT EXECUTED 11692a: 68 5a 02 00 00 push $0x25a <== NOT EXECUTED 11692f: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 116934: e8 d7 26 ff ff call 109010 <__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 ); 116939: 68 36 53 12 00 push $0x125336 <== NOT EXECUTED 11693e: 68 36 54 12 00 push $0x125436 <== NOT EXECUTED 116943: 68 b9 02 00 00 push $0x2b9 <== NOT EXECUTED 116948: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 11694d: e8 be 26 ff ff call 109010 <__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 || 116952: 68 b8 53 12 00 push $0x1253b8 <== NOT EXECUTED 116957: 68 36 54 12 00 push $0x125436 <== NOT EXECUTED 11695c: 68 51 02 00 00 push $0x251 <== NOT EXECUTED 116961: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 116966: e8 a5 26 ff ff call 109010 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 11696b: 68 20 53 12 00 push $0x125320 <== NOT EXECUTED 116970: 68 36 54 12 00 push $0x125436 <== NOT EXECUTED 116975: 68 4c 02 00 00 push $0x24c <== NOT EXECUTED 11697a: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 11697f: e8 8c 26 ff ff call 109010 <__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 ); 116984: 68 36 53 12 00 push $0x125336 <== NOT EXECUTED 116989: 68 36 54 12 00 push $0x125436 <== NOT EXECUTED 11698e: 68 96 02 00 00 push $0x296 <== NOT EXECUTED 116993: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 116998: e8 73 26 ff ff call 109010 <__assert_func> <== NOT EXECUTED 00115e48 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 115e48: 55 push %ebp 115e49: 89 e5 mov %esp,%ebp 115e4b: 57 push %edi 115e4c: 56 push %esi 115e4d: 53 push %ebx 115e4e: 83 ec 1c sub $0x1c,%esp /* * Perform internal consistency checks */ assert( the_jnode ); 115e51: 8b 55 08 mov 0x8(%ebp),%edx 115e54: 85 d2 test %edx,%edx 115e56: 0f 84 61 01 00 00 je 115fbd if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 115e5c: 8b 45 08 mov 0x8(%ebp),%eax 115e5f: 83 78 4c 05 cmpl $0x5,0x4c(%eax) 115e63: 0f 85 6d 01 00 00 jne 115fd6 /* * 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; 115e69: 8b 3d 50 b0 12 00 mov 0x12b050,%edi 115e6f: c1 ef 02 shr $0x2,%edi * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 115e72: 8b 55 08 mov 0x8(%ebp),%edx 115e75: 8b 42 58 mov 0x58(%edx),%eax 115e78: 85 c0 test %eax,%eax 115e7a: 74 12 je 115e8e if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 115e7c: 83 ec 08 sub $0x8,%esp 115e7f: 57 push %edi 115e80: 89 d0 mov %edx,%eax 115e82: 83 c0 58 add $0x58,%eax 115e85: 50 push %eax 115e86: e8 f5 fe ff ff call 115d80 115e8b: 83 c4 10 add $0x10,%esp } if ( info->doubly_indirect ) { 115e8e: 8b 4d 08 mov 0x8(%ebp),%ecx 115e91: 8b 51 5c mov 0x5c(%ecx),%edx 115e94: 85 d2 test %edx,%edx 115e96: 74 57 je 115eef for ( i=0 ; i <== NOT EXECUTED 115ea4: 31 c9 xor %ecx,%ecx <== NOT EXECUTED 115ea6: 31 db xor %ebx,%ebx <== NOT EXECUTED 115ea8: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED 115eab: eb 06 jmp 115eb3 <== NOT EXECUTED 115ead: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 115eb0: 8b 56 5c mov 0x5c(%esi),%edx <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 115eb3: c1 e1 02 shl $0x2,%ecx <== NOT EXECUTED 115eb6: 83 3c 0a 00 cmpl $0x0,(%edx,%ecx,1) <== NOT EXECUTED 115eba: 74 14 je 115ed0 <== NOT EXECUTED memfile_free_blocks_in_table( 115ebc: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 115ebf: 57 push %edi <== NOT EXECUTED 115ec0: 01 ca add %ecx,%edx <== NOT EXECUTED 115ec2: 52 push %edx <== NOT EXECUTED 115ec3: e8 b8 fe ff ff call 115d80 <== NOT EXECUTED 115ec8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 115ecb: a1 50 b0 12 00 mov 0x12b050,%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 ); 115edc: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 115edf: 57 push %edi <== NOT EXECUTED 115ee0: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 115ee3: 83 c0 5c add $0x5c,%eax <== NOT EXECUTED 115ee6: 50 push %eax <== NOT EXECUTED 115ee7: e8 94 fe ff ff call 115d80 <== NOT EXECUTED 115eec: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } if ( info->triply_indirect ) { 115eef: 8b 45 08 mov 0x8(%ebp),%eax 115ef2: 8b 50 60 mov 0x60(%eax),%edx 115ef5: 85 d2 test %edx,%edx 115ef7: 0f 84 b6 00 00 00 je 115fb3 for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 115f0d: 8b 32 mov (%edx),%esi <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 115f0f: 85 f6 test %esi,%esi <== NOT EXECUTED 115f11: 0f 84 89 00 00 00 je 115fa0 <== NOT EXECUTED 115f17: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED 115f1e: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED 115f25: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 115f2f: 31 d2 xor %edx,%edx <== NOT EXECUTED 115f31: 31 db xor %ebx,%ebx <== NOT EXECUTED 115f33: 90 nop <== NOT EXECUTED if ( p[j] ) { 115f34: c1 e2 02 shl $0x2,%edx <== NOT EXECUTED 115f37: 8b 0c 16 mov (%esi,%edx,1),%ecx <== NOT EXECUTED 115f3a: 85 c9 test %ecx,%ecx <== NOT EXECUTED 115f3c: 74 15 je 115f53 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 115f3e: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 115f41: 57 push %edi <== NOT EXECUTED 115f42: 8d 14 16 lea (%esi,%edx,1),%edx <== NOT EXECUTED 115f45: 52 push %edx <== NOT EXECUTED 115f46: e8 35 fe ff ff call 115d80 <== NOT EXECUTED 115f4b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 115f4e: a1 50 b0 12 00 mov 0x12b050,%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( 115f5f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 115f62: 57 push %edi <== NOT EXECUTED 115f63: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 115f66: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 115f69: 03 41 60 add 0x60(%ecx),%eax <== NOT EXECUTED 115f6c: 50 push %eax <== NOT EXECUTED 115f6d: e8 0e fe ff ff call 115d80 <== 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 */ 115f87: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 115f8a: c1 e2 02 shl $0x2,%edx <== NOT EXECUTED 115f8d: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 115f90: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 115f93: 8b 51 60 mov 0x60(%ecx),%edx <== NOT EXECUTED 115f96: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 115f99: 8b 34 0a mov (%edx,%ecx,1),%esi <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 115f9c: 85 f6 test %esi,%esi <== NOT EXECUTED 115f9e: 75 88 jne 115f28 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 115fa0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 115fa3: 57 push %edi <== NOT EXECUTED 115fa4: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 115fa7: 83 c0 60 add $0x60,%eax <== NOT EXECUTED 115faa: 50 push %eax <== NOT EXECUTED 115fab: e8 d0 fd ff ff call 115d80 <== NOT EXECUTED 115fb0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 115fb3: 31 c0 xor %eax,%eax 115fb5: 8d 65 f4 lea -0xc(%ebp),%esp 115fb8: 5b pop %ebx 115fb9: 5e pop %esi 115fba: 5f pop %edi 115fbb: c9 leave 115fbc: c3 ret /* * Perform internal consistency checks */ assert( the_jnode ); 115fbd: 68 20 53 12 00 push $0x125320 <== NOT EXECUTED 115fc2: 68 48 54 12 00 push $0x125448 <== NOT EXECUTED 115fc7: 68 ee 01 00 00 push $0x1ee <== NOT EXECUTED 115fcc: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 115fd1: e8 3a 30 ff ff call 109010 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 115fd6: 68 94 53 12 00 push $0x125394 <== NOT EXECUTED 115fdb: 68 48 54 12 00 push $0x125448 <== NOT EXECUTED 115fe0: 68 f2 01 00 00 push $0x1f2 <== NOT EXECUTED 115fe5: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 115fea: e8 21 30 ff ff call 109010 <__assert_func> <== NOT EXECUTED 00115dfc : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 115dfc: 55 push %ebp <== NOT EXECUTED 115dfd: 89 e5 mov %esp,%ebp <== NOT EXECUTED 115dff: 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 ); 115e02: 6a 00 push $0x0 <== NOT EXECUTED 115e04: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 115e07: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 115e0a: e8 91 fd ff ff call 115ba0 <== NOT EXECUTED assert( block_ptr ); 115e0f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 115e12: 85 c0 test %eax,%eax <== NOT EXECUTED 115e14: 74 18 je 115e2e <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; 115e16: 8b 10 mov (%eax),%edx <== NOT EXECUTED *block_ptr = 0; 115e18: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED memfile_free_block( ptr ); 115e1e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 115e21: 52 push %edx <== NOT EXECUTED 115e22: e8 39 fd ff ff call 115b60 <== NOT EXECUTED } return 1; } 115e27: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED 115e2c: c9 leave <== NOT EXECUTED 115e2d: 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 ); 115e2e: 68 36 53 12 00 push $0x125336 <== NOT EXECUTED 115e33: 68 79 54 12 00 push $0x125479 <== NOT EXECUTED 115e38: 68 96 01 00 00 push $0x196 <== NOT EXECUTED 115e3d: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 115e42: e8 c9 31 ff ff call 109010 <__assert_func> <== NOT EXECUTED 00116390 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 116390: 55 push %ebp 116391: 89 e5 mov %esp,%ebp 116393: 57 push %edi 116394: 56 push %esi 116395: 53 push %ebx 116396: 83 ec 3c sub $0x3c,%esp 116399: 8b 5d 0c mov 0xc(%ebp),%ebx 11639c: 8b 75 10 mov 0x10(%ebp),%esi /* * Perform internal consistency checks */ assert( the_jnode ); 11639f: 8b 4d 08 mov 0x8(%ebp),%ecx 1163a2: 85 c9 test %ecx,%ecx 1163a4: 0f 84 d8 01 00 00 je 116582 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 1163aa: 8b 45 08 mov 0x8(%ebp),%eax 1163ad: 83 78 4c 05 cmpl $0x5,0x4c(%eax) 1163b1: 0f 85 b2 01 00 00 jne 116569 /* * Error check arguments */ assert( source ); 1163b7: 8b 55 14 mov 0x14(%ebp),%edx 1163ba: 85 d2 test %edx,%edx 1163bc: 0f 84 d9 01 00 00 je 11659b /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 1163c2: 8b 45 18 mov 0x18(%ebp),%eax 1163c5: 85 c0 test %eax,%eax 1163c7: 0f 84 6c 01 00 00 je 116539 * If the last byte we are supposed to write is past the end of this * in memory file, then extend the length. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { 1163cd: 8b 45 18 mov 0x18(%ebp),%eax 1163d0: 01 d8 add %ebx,%eax 1163d2: 31 d2 xor %edx,%edx 1163d4: 8b 4d 08 mov 0x8(%ebp),%ecx 1163d7: 3b 51 54 cmp 0x54(%ecx),%edx 1163da: 7c 10 jl 1163ec 1163dc: 0f 8f 26 01 00 00 jg 116508 1163e2: 3b 41 50 cmp 0x50(%ecx),%eax 1163e5: 0f 87 1d 01 00 00 ja 116508 1163eb: 90 nop <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 1163ec: a1 50 b0 12 00 mov 0x12b050,%eax 1163f1: 89 45 d4 mov %eax,-0x2c(%ebp) 1163f4: 99 cltd 1163f5: 89 45 c8 mov %eax,-0x38(%ebp) 1163f8: 89 55 cc mov %edx,-0x34(%ebp) 1163fb: 52 push %edx 1163fc: 50 push %eax 1163fd: 56 push %esi 1163fe: 53 push %ebx 1163ff: e8 38 c2 00 00 call 12263c <__moddi3> 116404: 83 c4 10 add $0x10,%esp 116407: 89 c7 mov %eax,%edi block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 116409: ff 75 cc pushl -0x34(%ebp) 11640c: ff 75 c8 pushl -0x38(%ebp) 11640f: 56 push %esi 116410: 53 push %ebx 116411: e8 d6 c0 00 00 call 1224ec <__divdi3> 116416: 83 c4 10 add $0x10,%esp 116419: 89 c3 mov %eax,%ebx if ( start_offset ) { 11641b: 85 ff test %edi,%edi 11641d: 0f 85 a1 00 00 00 jne 1164c4 116423: 8b 75 14 mov 0x14(%ebp),%esi 116426: 8b 55 18 mov 0x18(%ebp),%edx 116429: 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 ) { 116430: 3b 55 d4 cmp -0x2c(%ebp),%edx 116433: 72 3b jb 116470 116435: 8d 76 00 lea 0x0(%esi),%esi block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 116438: 51 push %ecx 116439: 6a 00 push $0x0 11643b: 53 push %ebx 11643c: ff 75 08 pushl 0x8(%ebp) 11643f: 89 55 c4 mov %edx,-0x3c(%ebp) 116442: e8 59 f7 ff ff call 115ba0 assert( block_ptr ); 116447: 83 c4 10 add $0x10,%esp 11644a: 85 c0 test %eax,%eax 11644c: 8b 55 c4 mov -0x3c(%ebp),%edx 11644f: 0f 84 fb 00 00 00 je 116550 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 ); 116455: 8b 00 mov (%eax),%eax src += to_copy; 116457: 89 c7 mov %eax,%edi 116459: 8b 4d d4 mov -0x2c(%ebp),%ecx 11645c: f3 a4 rep movsb %ds:(%esi),%es:(%edi) block++; 11645e: 43 inc %ebx my_length -= to_copy; 11645f: 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( 116462: 8b 4d d4 mov -0x2c(%ebp),%ecx 116465: 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 ) { 116468: 39 15 50 b0 12 00 cmp %edx,0x12b050 11646e: 76 c8 jbe 116438 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 116470: 85 d2 test %edx,%edx 116472: 74 28 je 11649c block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 116474: 50 push %eax 116475: 6a 00 push $0x0 116477: 53 push %ebx 116478: ff 75 08 pushl 0x8(%ebp) 11647b: 89 55 c4 mov %edx,-0x3c(%ebp) 11647e: e8 1d f7 ff ff call 115ba0 assert( block_ptr ); 116483: 83 c4 10 add $0x10,%esp 116486: 85 c0 test %eax,%eax 116488: 8b 55 c4 mov -0x3c(%ebp),%edx 11648b: 0f 84 23 01 00 00 je 1165b4 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 ); 116491: 8b 00 mov (%eax),%eax 116493: 89 c7 mov %eax,%edi 116495: 89 d1 mov %edx,%ecx 116497: f3 a4 rep movsb %ds:(%esi),%es:(%edi) my_length = 0; copied += to_copy; 116499: 01 55 c8 add %edx,-0x38(%ebp) } IMFS_mtime_ctime_update( the_jnode ); 11649c: 83 ec 08 sub $0x8,%esp 11649f: 6a 00 push $0x0 1164a1: 8d 45 e0 lea -0x20(%ebp),%eax 1164a4: 50 push %eax 1164a5: e8 72 2f ff ff call 10941c 1164aa: 8b 45 e0 mov -0x20(%ebp),%eax 1164ad: 8b 55 08 mov 0x8(%ebp),%edx 1164b0: 89 42 44 mov %eax,0x44(%edx) 1164b3: 89 42 48 mov %eax,0x48(%edx) return copied; 1164b6: 83 c4 10 add $0x10,%esp } 1164b9: 8b 45 c8 mov -0x38(%ebp),%eax 1164bc: 8d 65 f4 lea -0xc(%ebp),%esp 1164bf: 5b pop %ebx 1164c0: 5e pop %esi 1164c1: 5f pop %edi 1164c2: c9 leave 1164c3: 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 ); 1164c4: 56 push %esi 1164c5: 6a 00 push $0x0 1164c7: 50 push %eax 1164c8: ff 75 08 pushl 0x8(%ebp) 1164cb: e8 d0 f6 ff ff call 115ba0 assert( block_ptr ); 1164d0: 83 c4 10 add $0x10,%esp 1164d3: 85 c0 test %eax,%eax 1164d5: 0f 84 f2 00 00 00 je 1165cd */ 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; 1164db: 8b 55 d4 mov -0x2c(%ebp),%edx 1164de: 29 fa sub %edi,%edx 1164e0: 89 55 c8 mov %edx,-0x38(%ebp) 1164e3: 8b 4d 18 mov 0x18(%ebp),%ecx 1164e6: 39 ca cmp %ecx,%edx 1164e8: 77 4a ja 116534 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 ); 1164ea: 03 38 add (%eax),%edi src += to_copy; 1164ec: 8b 75 14 mov 0x14(%ebp),%esi 1164ef: 8b 4d c8 mov -0x38(%ebp),%ecx 1164f2: f3 a4 rep movsb %ds:(%esi),%es:(%edi) block++; 1164f4: 43 inc %ebx my_length -= to_copy; 1164f5: 8b 55 18 mov 0x18(%ebp),%edx 1164f8: 2b 55 c8 sub -0x38(%ebp),%edx copied += to_copy; 1164fb: a1 50 b0 12 00 mov 0x12b050,%eax 116500: 89 45 d4 mov %eax,-0x2c(%ebp) 116503: e9 28 ff ff ff jmp 116430 * 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 ); 116508: 57 push %edi 116509: 52 push %edx 11650a: 50 push %eax 11650b: ff 75 08 pushl 0x8(%ebp) 11650e: e8 2d fc ff ff call 116140 if ( status ) 116513: 83 c4 10 add $0x10,%esp 116516: 85 c0 test %eax,%eax 116518: 0f 84 ce fe ff ff je 1163ec rtems_set_errno_and_return_minus_one( ENOSPC ); 11651e: e8 0d 10 00 00 call 117530 <__errno> <== NOT EXECUTED 116523: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED 116529: c7 45 c8 ff ff ff ff movl $0xffffffff,-0x38(%ebp) <== NOT EXECUTED 116530: eb 87 jmp 1164b9 <== NOT EXECUTED 116532: 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; 116534: 89 4d c8 mov %ecx,-0x38(%ebp) 116537: eb b1 jmp 1164ea * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 116539: e8 f2 0f 00 00 call 117530 <__errno> <== NOT EXECUTED 11653e: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 116544: c7 45 c8 ff ff ff ff movl $0xffffffff,-0x38(%ebp) <== NOT EXECUTED 11654b: e9 69 ff ff ff jmp 1164b9 <== 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 ); 116550: 68 36 53 12 00 push $0x125336 <== NOT EXECUTED 116555: 68 23 54 12 00 push $0x125423 <== NOT EXECUTED 11655a: 68 30 03 00 00 push $0x330 <== NOT EXECUTED 11655f: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 116564: e8 a7 2a ff ff call 109010 <__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 ); 116569: 68 94 53 12 00 push $0x125394 <== NOT EXECUTED 11656e: 68 23 54 12 00 push $0x125423 <== NOT EXECUTED 116573: 68 e7 02 00 00 push $0x2e7 <== NOT EXECUTED 116578: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 11657d: e8 8e 2a ff ff call 109010 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 116582: 68 20 53 12 00 push $0x125320 <== NOT EXECUTED 116587: 68 23 54 12 00 push $0x125423 <== NOT EXECUTED 11658c: 68 e3 02 00 00 push $0x2e3 <== NOT EXECUTED 116591: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 116596: e8 75 2a ff ff call 109010 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 11659b: 68 40 53 12 00 push $0x125340 <== NOT EXECUTED 1165a0: 68 23 54 12 00 push $0x125423 <== NOT EXECUTED 1165a5: 68 ef 02 00 00 push $0x2ef <== NOT EXECUTED 1165aa: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 1165af: e8 5c 2a ff ff call 109010 <__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 ); 1165b4: 68 36 53 12 00 push $0x125336 <== NOT EXECUTED 1165b9: 68 23 54 12 00 push $0x125423 <== NOT EXECUTED 1165be: 68 46 03 00 00 push $0x346 <== NOT EXECUTED 1165c3: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 1165c8: e8 43 2a ff ff call 109010 <__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 ); 1165cd: 68 36 53 12 00 push $0x125336 <== NOT EXECUTED 1165d2: 68 23 54 12 00 push $0x125423 <== NOT EXECUTED 1165d7: 68 1c 03 00 00 push $0x31c <== NOT EXECUTED 1165dc: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 1165e1: e8 2a 2a ff ff call 109010 <__assert_func> <== NOT EXECUTED 0010f544 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 10f544: 55 push %ebp 10f545: 89 e5 mov %esp,%ebp 10f547: 57 push %edi 10f548: 56 push %esi 10f549: 53 push %ebx 10f54a: 83 ec 5c sub $0x5c,%esp 10f54d: 8b 55 08 mov 0x8(%ebp),%edx 10f550: 8b 5d 0c mov 0xc(%ebp),%ebx 10f553: 8b 75 10 mov 0x10(%ebp),%esi 10f556: 8b 45 14 mov 0x14(%ebp),%eax 10f559: 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 ); 10f55c: 31 c0 xor %eax,%eax 10f55e: b9 ff ff ff ff mov $0xffffffff,%ecx 10f563: 89 d7 mov %edx,%edi 10f565: f2 ae repnz scas %es:(%edi),%al 10f567: f7 d1 not %ecx 10f569: 49 dec %ecx 10f56a: 8d 45 e4 lea -0x1c(%ebp),%eax 10f56d: 50 push %eax 10f56e: 8d 7d af lea -0x51(%ebp),%edi 10f571: 57 push %edi 10f572: 51 push %ecx 10f573: 52 push %edx 10f574: e8 3f fe ff ff call 10f3b8 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 10f579: 89 d8 mov %ebx,%eax 10f57b: 25 00 f0 00 00 and $0xf000,%eax 10f580: 83 c4 10 add $0x10,%esp 10f583: 3d 00 40 00 00 cmp $0x4000,%eax 10f588: 74 5e je 10f5e8 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 10f58a: 3d 00 80 00 00 cmp $0x8000,%eax 10f58f: 74 4f je 10f5e0 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 10f591: 3d 00 60 00 00 cmp $0x6000,%eax 10f596: 74 38 je 10f5d0 10f598: 3d 00 20 00 00 cmp $0x2000,%eax 10f59d: 74 31 je 10f5d0 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) 10f59f: 3d 00 10 00 00 cmp $0x1000,%eax 10f5a4: 75 4a jne 10f5f0 10f5a6: 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( 10f5ab: 83 ec 0c sub $0xc,%esp 10f5ae: 8d 45 d0 lea -0x30(%ebp),%eax 10f5b1: 50 push %eax 10f5b2: 53 push %ebx 10f5b3: 57 push %edi 10f5b4: 52 push %edx 10f5b5: ff 75 18 pushl 0x18(%ebp) 10f5b8: e8 5f 20 00 00 call 11161c new_name, mode, &info ); if ( !new_node ) 10f5bd: 83 c4 20 add $0x20,%esp 10f5c0: 85 c0 test %eax,%eax 10f5c2: 74 3e je 10f602 10f5c4: 31 c0 xor %eax,%eax rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 10f5c6: 8d 65 f4 lea -0xc(%ebp),%esp 10f5c9: 5b pop %ebx 10f5ca: 5e pop %esi 10f5cb: 5f pop %edi 10f5cc: c9 leave 10f5cd: c3 ret 10f5ce: 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 ); 10f5d0: 89 75 d0 mov %esi,-0x30(%ebp) dev_t device ) { union __rtems_dev_t temp; temp.device = device; 10f5d3: 8b 45 a4 mov -0x5c(%ebp),%eax 10f5d6: 89 45 d4 mov %eax,-0x2c(%ebp) 10f5d9: 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) ) { 10f5de: eb cb jmp 10f5ab /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 10f5e0: ba 05 00 00 00 mov $0x5,%edx 10f5e5: eb c4 jmp 10f5ab 10f5e7: 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 ); 10f5e8: ba 01 00 00 00 mov $0x1,%edx 10f5ed: eb bc jmp 10f5ab 10f5ef: 90 nop <== NOT EXECUTED 10f5f0: e8 03 2e 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10f5f5: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 10f5fb: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f600: eb c4 jmp 10f5c6 <== NOT EXECUTED mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 10f602: e8 f1 2d 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10f607: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 10f60d: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f612: eb b2 jmp 10f5c6 <== NOT EXECUTED 00108c28 : #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 108c28: 55 push %ebp 108c29: 89 e5 mov %esp,%ebp 108c2b: 83 ec 08 sub $0x8,%esp 108c2e: 8b 55 08 mov 0x8(%ebp),%edx IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 108c31: 8b 42 08 mov 0x8(%edx),%eax /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 108c34: 83 78 4c 01 cmpl $0x1,0x4c(%eax) 108c38: 75 0a jne 108c44 /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; 108c3a: 89 50 5c mov %edx,0x5c(%eax) 108c3d: 31 c0 xor %eax,%eax return 0; } 108c3f: c9 leave 108c40: c3 ret 108c41: 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 ); 108c44: e8 e7 e8 00 00 call 117530 <__errno> <== NOT EXECUTED 108c49: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED 108c4f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED * the mounted file system. */ node->info.directory.mt_fs = mt_entry; return 0; } 108c54: c9 leave <== NOT EXECUTED 108c55: c3 ret <== NOT EXECUTED 001092cc : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 1092cc: 55 push %ebp 1092cd: 89 e5 mov %esp,%ebp 1092cf: 53 push %ebx 1092d0: 83 ec 04 sub $0x4,%esp 1092d3: 8b 5d 08 mov 0x8(%ebp),%ebx assert( the_jnode ); 1092d6: 85 db test %ebx,%ebx 1092d8: 0f 84 7f 01 00 00 je 10945d fprintf(stdout, "%s", the_jnode->name ); 1092de: 83 ec 08 sub $0x8,%esp 1092e1: a1 60 a5 12 00 mov 0x12a560,%eax 1092e6: ff 70 08 pushl 0x8(%eax) 1092e9: 8d 43 0c lea 0xc(%ebx),%eax 1092ec: 50 push %eax 1092ed: e8 1e d5 00 00 call 116810 switch( the_jnode->type ) { 1092f2: 8b 43 4c mov 0x4c(%ebx),%eax 1092f5: 83 c4 10 add $0x10,%esp 1092f8: 83 f8 07 cmp $0x7,%eax 1092fb: 76 2b jbe 109328 fprintf(stdout, " FIFO not printed\n" ); assert(0); break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 1092fd: 52 push %edx <== NOT EXECUTED 1092fe: 50 push %eax <== NOT EXECUTED 1092ff: 68 4e 53 12 00 push $0x12534e <== NOT EXECUTED 109304: a1 60 a5 12 00 mov 0x12a560,%eax <== NOT EXECUTED 109309: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 10930c: e8 d7 d3 00 00 call 1166e8 <== NOT EXECUTED assert(0); 109311: 68 2e 34 12 00 push $0x12342e <== NOT EXECUTED 109316: 68 b4 54 12 00 push $0x1254b4 <== NOT EXECUTED 10931b: 6a 6c push $0x6c <== NOT EXECUTED 10931d: 68 98 53 12 00 push $0x125398 <== NOT EXECUTED 109322: e8 bd 08 00 00 call 109be4 <__assert_func> <== NOT EXECUTED 109327: 90 nop <== NOT EXECUTED ) { assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { 109328: ff 24 85 80 54 12 00 jmp *0x125480(,%eax,4) 10932f: 90 nop <== NOT EXECUTED fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 109330: a1 60 a5 12 00 mov 0x12a560,%eax <== NOT EXECUTED 109335: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 109338: 6a 12 push $0x12 <== NOT EXECUTED 10933a: 6a 01 push $0x1 <== NOT EXECUTED 10933c: 68 3b 53 12 00 push $0x12533b <== NOT EXECUTED 109341: e8 02 e1 00 00 call 117448 <== NOT EXECUTED assert(0); 109346: 68 2e 34 12 00 push $0x12342e <== NOT EXECUTED 10934b: 68 b4 54 12 00 push $0x1254b4 <== NOT EXECUTED 109350: 6a 67 push $0x67 <== NOT EXECUTED 109352: 68 98 53 12 00 push $0x125398 <== NOT EXECUTED 109357: e8 88 08 00 00 call 109be4 <__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)", 10935c: ff 73 58 pushl 0x58(%ebx) <== NOT EXECUTED 10935f: ff 73 50 pushl 0x50(%ebx) <== NOT EXECUTED 109362: 68 0c 53 12 00 push $0x12530c <== NOT EXECUTED 109367: a1 60 a5 12 00 mov 0x12a560,%eax <== NOT EXECUTED 10936c: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 10936f: e8 74 d3 00 00 call 1166e8 <== NOT EXECUTED (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; 109374: 83 c4 10 add $0x10,%esp <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 109377: c7 45 08 55 56 12 00 movl $0x125655,0x8(%ebp) <== NOT EXECUTED } 10937e: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 109381: c9 leave <== NOT EXECUTED default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 109382: e9 19 ed 00 00 jmp 1180a0 <== NOT EXECUTED 109387: 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 ")", 109388: 51 push %ecx 109389: ff 73 50 pushl 0x50(%ebx) 10938c: 68 1b 53 12 00 push $0x12531b 109391: a1 60 a5 12 00 mov 0x12a560,%eax 109396: ff 70 08 pushl 0x8(%eax) 109399: e8 4a d3 00 00 call 1166e8 (uint32_t)the_jnode->info.file.size ); #endif break; 10939e: 83 c4 10 add $0x10,%esp default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 1093a1: c7 45 08 55 56 12 00 movl $0x125655,0x8(%ebp) } 1093a8: 8b 5d fc mov -0x4(%ebp),%ebx 1093ab: c9 leave default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 1093ac: e9 ef ec 00 00 jmp 1180a0 1093b1: 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" ); 1093b4: a1 60 a5 12 00 mov 0x12a560,%eax <== NOT EXECUTED 1093b9: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 1093bc: 6a 13 push $0x13 <== NOT EXECUTED 1093be: 6a 01 push $0x1 <== NOT EXECUTED 1093c0: 68 27 53 12 00 push $0x125327 <== NOT EXECUTED 1093c5: e8 7e e0 00 00 call 117448 <== NOT EXECUTED assert(0); 1093ca: 68 2e 34 12 00 push $0x12342e <== NOT EXECUTED 1093cf: 68 b4 54 12 00 push $0x1254b4 <== NOT EXECUTED 1093d4: 6a 62 push $0x62 <== NOT EXECUTED 1093d6: 68 98 53 12 00 push $0x125398 <== NOT EXECUTED 1093db: e8 04 08 00 00 call 109be4 <__assert_func> <== NOT EXECUTED (uint32_t)the_jnode->info.file.size ); #endif break; case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 1093e0: a1 60 a5 12 00 mov 0x12a560,%eax <== NOT EXECUTED 1093e5: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 1093e8: 6a 13 push $0x13 <== NOT EXECUTED 1093ea: 6a 01 push $0x1 <== NOT EXECUTED 1093ec: 68 27 53 12 00 push $0x125327 <== NOT EXECUTED 1093f1: e8 52 e0 00 00 call 117448 <== NOT EXECUTED assert(0); 1093f6: 68 2e 34 12 00 push $0x12342e <== NOT EXECUTED 1093fb: 68 b4 54 12 00 push $0x1254b4 <== NOT EXECUTED 109400: 6a 5d push $0x5d <== NOT EXECUTED 109402: 68 98 53 12 00 push $0x125398 <== NOT EXECUTED 109407: e8 d8 07 00 00 call 109be4 <__assert_func> <== NOT EXECUTED case IMFS_DIRECTORY: fprintf(stdout, "/" ); break; case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 10940c: ff 73 54 pushl 0x54(%ebx) 10940f: ff 73 50 pushl 0x50(%ebx) 109412: 68 f9 52 12 00 push $0x1252f9 109417: a1 60 a5 12 00 mov 0x12a560,%eax 10941c: ff 70 08 pushl 0x8(%eax) 10941f: e8 c4 d2 00 00 call 1166e8 the_jnode->info.device.major, the_jnode->info.device.minor ); break; 109424: 83 c4 10 add $0x10,%esp default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 109427: c7 45 08 55 56 12 00 movl $0x125655,0x8(%ebp) } 10942e: 8b 5d fc mov -0x4(%ebp),%ebx 109431: c9 leave default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 109432: e9 69 ec 00 00 jmp 1180a0 109437: 90 nop <== NOT EXECUTED assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" ); 109438: 83 ec 08 sub $0x8,%esp 10943b: a1 60 a5 12 00 mov 0x12a560,%eax 109440: ff 70 08 pushl 0x8(%eax) 109443: 6a 2f push $0x2f 109445: e8 da d2 00 00 call 116724 break; 10944a: 83 c4 10 add $0x10,%esp default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 10944d: c7 45 08 55 56 12 00 movl $0x125655,0x8(%ebp) } 109454: 8b 5d fc mov -0x4(%ebp),%ebx 109457: c9 leave default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 109458: e9 43 ec 00 00 jmp 1180a0 void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { assert( the_jnode ); 10945d: 68 ef 52 12 00 push $0x1252ef <== NOT EXECUTED 109462: 68 b4 54 12 00 push $0x1254b4 <== NOT EXECUTED 109467: 6a 38 push $0x38 <== NOT EXECUTED 109469: 68 98 53 12 00 push $0x125398 <== NOT EXECUTED 10946e: e8 71 07 00 00 call 109be4 <__assert_func> <== NOT EXECUTED 00108c68 : int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 108c68: 55 push %ebp 108c69: 89 e5 mov %esp,%ebp 108c6b: 57 push %edi 108c6c: 56 push %esi 108c6d: 53 push %ebx 108c6e: 83 ec 0c sub $0xc,%esp 108c71: 8b 7d 0c mov 0xc(%ebp),%edi 108c74: 8b 75 10 mov 0x10(%ebp),%esi IMFS_jnode_t *node; int i; node = loc->node_access; 108c77: 8b 45 08 mov 0x8(%ebp),%eax 108c7a: 8b 18 mov (%eax),%ebx if ( node->type != IMFS_SYM_LINK ) 108c7c: 83 7b 4c 04 cmpl $0x4,0x4c(%ebx) 108c80: 75 36 jne 108cb8 rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 108c82: 85 f6 test %esi,%esi 108c84: 74 2e je 108cb4 108c86: 8b 43 50 mov 0x50(%ebx),%eax 108c89: 8a 10 mov (%eax),%dl 108c8b: 84 d2 test %dl,%dl 108c8d: 74 25 je 108cb4 int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 108c8f: 31 c9 xor %ecx,%ecx 108c91: 31 c0 xor %eax,%eax 108c93: eb 0d jmp 108ca2 108c95: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 108c98: 8b 53 50 mov 0x50(%ebx),%edx 108c9b: 8a 14 02 mov (%edx,%eax,1),%dl 108c9e: 84 d2 test %dl,%dl 108ca0: 74 0a je 108cac buf[i] = node->info.sym_link.name[i]; 108ca2: 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++ ) 108ca5: 40 inc %eax 108ca6: 89 c1 mov %eax,%ecx 108ca8: 39 c6 cmp %eax,%esi 108caa: 77 ec ja 108c98 buf[i] = node->info.sym_link.name[i]; return i; } 108cac: 83 c4 0c add $0xc,%esp 108caf: 5b pop %ebx 108cb0: 5e pop %esi 108cb1: 5f pop %edi 108cb2: c9 leave 108cb3: 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++ ) 108cb4: 31 c0 xor %eax,%eax <== NOT EXECUTED 108cb6: eb f4 jmp 108cac <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 108cb8: e8 73 e8 00 00 call 117530 <__errno> <== NOT EXECUTED 108cbd: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 108cc3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108cc8: eb e2 jmp 108cac <== NOT EXECUTED 00108ccc : 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 */ ) { 108ccc: 55 push %ebp <== NOT EXECUTED 108ccd: 89 e5 mov %esp,%ebp <== NOT EXECUTED 108ccf: 53 push %ebx <== NOT EXECUTED 108cd0: 83 ec 18 sub $0x18,%esp <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 108cd3: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 108cd6: 8b 18 mov (%eax),%ebx <== NOT EXECUTED strncpy( the_jnode->name, new_name, IMFS_NAME_MAX ); 108cd8: 6a 20 push $0x20 <== NOT EXECUTED 108cda: ff 75 14 pushl 0x14(%ebp) <== NOT EXECUTED 108cdd: 8d 43 0c lea 0xc(%ebx),%eax <== NOT EXECUTED 108ce0: 50 push %eax <== NOT EXECUTED 108ce1: e8 f6 f3 00 00 call 1180dc <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 108ce6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108ce9: 8b 4b 08 mov 0x8(%ebx),%ecx <== NOT EXECUTED 108cec: 85 c9 test %ecx,%ecx <== NOT EXECUTED 108cee: 74 0c je 108cfc <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 108cf0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108cf3: 53 push %ebx <== NOT EXECUTED 108cf4: e8 47 4a 00 00 call 10d740 <_Chain_Extract> <== NOT EXECUTED 108cf9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 108cfc: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 108cff: 8b 00 mov (%eax),%eax <== NOT EXECUTED the_jnode->Parent = new_parent; 108d01: 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 ); 108d04: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 108d07: 53 push %ebx <== NOT EXECUTED 108d08: 83 c0 50 add $0x50,%eax <== NOT EXECUTED 108d0b: 50 push %eax <== NOT EXECUTED 108d0c: e8 0b 4a 00 00 call 10d71c <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); 108d11: 58 pop %eax <== NOT EXECUTED 108d12: 5a pop %edx <== NOT EXECUTED 108d13: 6a 00 push $0x0 <== NOT EXECUTED 108d15: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 108d18: 50 push %eax <== NOT EXECUTED 108d19: e8 fe 06 00 00 call 10941c <== NOT EXECUTED 108d1e: 8b 45 f0 mov -0x10(%ebp),%eax <== NOT EXECUTED 108d21: 89 43 48 mov %eax,0x48(%ebx) <== NOT EXECUTED return 0; } 108d24: 31 c0 xor %eax,%eax <== NOT EXECUTED 108d26: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 108d29: c9 leave <== NOT EXECUTED 108d2a: c3 ret <== NOT EXECUTED 0010f624 : int IMFS_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 10f624: 55 push %ebp 10f625: 89 e5 mov %esp,%ebp 10f627: 56 push %esi 10f628: 53 push %ebx 10f629: 83 ec 10 sub $0x10,%esp 10f62c: 8b 75 0c mov 0xc(%ebp),%esi IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 10f62f: 8b 1e mov (%esi),%ebx /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 10f631: 8b 43 08 mov 0x8(%ebx),%eax 10f634: 85 c0 test %eax,%eax 10f636: 74 13 je 10f64b */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 10f638: 83 ec 0c sub $0xc,%esp 10f63b: 53 push %ebx 10f63c: e8 df 09 00 00 call 110020 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 10f641: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 10f648: 83 c4 10 add $0x10,%esp /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 10f64b: 66 ff 4b 34 decw 0x34(%ebx) IMFS_update_ctime( the_jnode ); 10f64f: 83 ec 08 sub $0x8,%esp 10f652: 6a 00 push $0x0 10f654: 8d 45 f0 lea -0x10(%ebp),%eax 10f657: 50 push %eax 10f658: e8 9b 02 00 00 call 10f8f8 10f65d: 8b 45 f0 mov -0x10(%ebp),%eax 10f660: 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) ) { 10f663: 89 1c 24 mov %ebx,(%esp) 10f666: e8 55 03 00 00 call 10f9c0 10f66b: 83 c4 10 add $0x10,%esp 10f66e: 85 c0 test %eax,%eax 10f670: 75 25 jne 10f697 10f672: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx) 10f677: 75 1e jne 10f697 /* * Is rtems_filesystem_current this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 10f679: a1 18 30 12 00 mov 0x123018,%eax 10f67e: 8b 50 04 mov 0x4(%eax),%edx 10f681: 3b 16 cmp (%esi),%edx 10f683: 74 33 je 10f6b8 /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { 10f685: 83 7b 4c 04 cmpl $0x4,0x4c(%ebx) 10f689: 74 15 je 10f6a0 if ( the_jnode->info.sym_link.name ) free( (void*) the_jnode->info.sym_link.name ); } free( the_jnode ); 10f68b: 83 ec 0c sub $0xc,%esp 10f68e: 53 push %ebx 10f68f: e8 88 89 ff ff call 10801c 10f694: 83 c4 10 add $0x10,%esp } return 0; } 10f697: 31 c0 xor %eax,%eax 10f699: 8d 65 f8 lea -0x8(%ebp),%esp 10f69c: 5b pop %ebx 10f69d: 5e pop %esi 10f69e: c9 leave 10f69f: c3 ret /* * Free memory associated with a memory file. */ if ( the_jnode->type == IMFS_SYM_LINK ) { if ( the_jnode->info.sym_link.name ) 10f6a0: 8b 43 50 mov 0x50(%ebx),%eax 10f6a3: 85 c0 test %eax,%eax 10f6a5: 74 e4 je 10f68b free( (void*) the_jnode->info.sym_link.name ); 10f6a7: 83 ec 0c sub $0xc,%esp 10f6aa: 50 push %eax 10f6ab: e8 6c 89 ff ff call 10801c 10f6b0: 83 c4 10 add $0x10,%esp 10f6b3: eb d6 jmp 10f68b 10f6b5: 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; 10f6b8: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED 10f6bf: eb c4 jmp 10f685 <== NOT EXECUTED 0010f6c4 : int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 10f6c4: 55 push %ebp 10f6c5: 89 e5 mov %esp,%ebp 10f6c7: 53 push %ebx 10f6c8: 83 ec 04 sub $0x4,%esp 10f6cb: 8b 55 0c mov 0xc(%ebp),%edx IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 10f6ce: 8b 45 08 mov 0x8(%ebp),%eax 10f6d1: 8b 00 mov (%eax),%eax switch ( the_jnode->type ) { 10f6d3: 83 78 4c 07 cmpl $0x7,0x4c(%eax) 10f6d7: 76 17 jbe 10f6f0 case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 10f6d9: e8 1a 2d 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10f6de: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10f6e4: 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; } 10f6e9: 5a pop %edx <== NOT EXECUTED 10f6ea: 5b pop %ebx <== NOT EXECUTED 10f6eb: c9 leave <== NOT EXECUTED 10f6ec: c3 ret <== NOT EXECUTED 10f6ed: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 10f6f0: 8b 48 4c mov 0x4c(%eax),%ecx 10f6f3: ff 24 8d 78 fe 11 00 jmp *0x11fe78(,%ecx,4) 10f6fa: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 10f6fc: c7 42 20 00 00 00 00 movl $0x0,0x20(%edx) <== NOT EXECUTED 10f703: c7 42 24 00 00 00 00 movl $0x0,0x24(%edx) <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 10f70a: 8b 48 30 mov 0x30(%eax),%ecx 10f70d: 89 4a 0c mov %ecx,0xc(%edx) buf->st_nlink = the_jnode->st_nlink; 10f710: 8b 48 34 mov 0x34(%eax),%ecx 10f713: 66 89 4a 10 mov %cx,0x10(%edx) buf->st_ino = the_jnode->st_ino; 10f717: 8b 48 38 mov 0x38(%eax),%ecx 10f71a: 89 4a 08 mov %ecx,0x8(%edx) buf->st_uid = the_jnode->st_uid; 10f71d: 8b 48 3c mov 0x3c(%eax),%ecx 10f720: 66 89 4a 12 mov %cx,0x12(%edx) buf->st_gid = the_jnode->st_gid; 10f724: 66 8b 48 3e mov 0x3e(%eax),%cx 10f728: 66 89 4a 14 mov %cx,0x14(%edx) buf->st_atime = the_jnode->stat_atime; 10f72c: 8b 48 40 mov 0x40(%eax),%ecx 10f72f: 89 4a 28 mov %ecx,0x28(%edx) buf->st_mtime = the_jnode->stat_mtime; 10f732: 8b 48 44 mov 0x44(%eax),%ecx 10f735: 89 4a 30 mov %ecx,0x30(%edx) buf->st_ctime = the_jnode->stat_ctime; 10f738: 8b 40 48 mov 0x48(%eax),%eax 10f73b: 89 42 38 mov %eax,0x38(%edx) 10f73e: 31 c0 xor %eax,%eax return 0; } 10f740: 5a pop %edx 10f741: 5b pop %ebx 10f742: c9 leave 10f743: c3 ret switch ( the_jnode->type ) { case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); 10f744: 8b 48 54 mov 0x54(%eax),%ecx rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 10f747: 8b 58 50 mov 0x50(%eax),%ebx 10f74a: 89 5a 18 mov %ebx,0x18(%edx) 10f74d: 89 4a 1c mov %ecx,0x1c(%edx) break; 10f750: eb b8 jmp 10f70a 10f752: 66 90 xchg %ax,%ax <== NOT EXECUTED case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 10f754: 8b 48 50 mov 0x50(%eax),%ecx 10f757: 8b 58 54 mov 0x54(%eax),%ebx 10f75a: 89 4a 20 mov %ecx,0x20(%edx) 10f75d: 89 5a 24 mov %ebx,0x24(%edx) break; 10f760: eb a8 jmp 10f70a 00108d2c : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 108d2c: 55 push %ebp 108d2d: 89 e5 mov %esp,%ebp 108d2f: 57 push %edi 108d30: 53 push %ebx 108d31: 83 ec 40 sub $0x40,%esp 108d34: 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 ); 108d37: 31 c0 xor %eax,%eax 108d39: b9 ff ff ff ff mov $0xffffffff,%ecx 108d3e: 89 d7 mov %edx,%edi 108d40: f2 ae repnz scas %es:(%edi),%al 108d42: f7 d1 not %ecx 108d44: 49 dec %ecx 108d45: 8d 45 f4 lea -0xc(%ebp),%eax 108d48: 50 push %eax 108d49: 8d 5d bf lea -0x41(%ebp),%ebx 108d4c: 53 push %ebx 108d4d: 51 push %ecx 108d4e: 52 push %edx 108d4f: e8 68 b3 00 00 call 1140bc /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 108d54: 58 pop %eax 108d55: ff 75 0c pushl 0xc(%ebp) 108d58: e8 ab f2 00 00 call 118008 108d5d: 89 45 e0 mov %eax,-0x20(%ebp) if (info.sym_link.name == NULL) { 108d60: 83 c4 10 add $0x10,%esp 108d63: 85 c0 test %eax,%eax 108d65: 74 27 je 108d8e * 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( 108d67: 83 ec 0c sub $0xc,%esp 108d6a: 8d 45 e0 lea -0x20(%ebp),%eax 108d6d: 50 push %eax 108d6e: 68 ff a1 00 00 push $0xa1ff 108d73: 53 push %ebx 108d74: 6a 04 push $0x4 108d76: ff 75 08 pushl 0x8(%ebp) 108d79: e8 8a a7 00 00 call 113508 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 108d7e: 83 c4 20 add $0x20,%esp 108d81: 85 c0 test %eax,%eax 108d83: 74 1b je 108da0 108d85: 31 c0 xor %eax,%eax free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; } 108d87: 8d 65 f8 lea -0x8(%ebp),%esp 108d8a: 5b pop %ebx 108d8b: 5f pop %edi 108d8c: c9 leave 108d8d: 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); 108d8e: e8 9d e7 00 00 call 117530 <__errno> <== NOT EXECUTED 108d93: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 108d99: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108d9e: eb e7 jmp 108d87 <== NOT EXECUTED ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { free(info.sym_link.name); 108da0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108da3: ff 75 e0 pushl -0x20(%ebp) <== NOT EXECUTED 108da6: e8 f5 05 00 00 call 1093a0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 108dab: e8 80 e7 00 00 call 117530 <__errno> <== NOT EXECUTED 108db0: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 108db6: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108dbb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108dbe: eb c7 jmp 108d87 <== NOT EXECUTED 00108dc0 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 108dc0: 55 push %ebp 108dc1: 89 e5 mov %esp,%ebp 108dc3: 57 push %edi 108dc4: 56 push %esi 108dc5: 53 push %ebx 108dc6: 83 ec 3c sub $0x3c,%esp 108dc9: 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; 108dcc: 8b 13 mov (%ebx),%edx /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 108dce: 83 7a 4c 03 cmpl $0x3,0x4c(%edx) 108dd2: 74 18 je 108dec /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); 108dd4: 83 ec 08 sub $0x8,%esp 108dd7: 8b 43 08 mov 0x8(%ebx),%eax 108dda: 53 push %ebx 108ddb: ff 75 08 pushl 0x8(%ebp) 108dde: ff 50 34 call *0x34(%eax) return result; 108de1: 83 c4 10 add $0x10,%esp } 108de4: 8d 65 f4 lea -0xc(%ebp),%esp 108de7: 5b pop %ebx 108de8: 5e pop %esi 108de9: 5f pop %edi 108dea: c9 leave 108deb: c3 ret * free the node. */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) 108dec: 8b 42 50 mov 0x50(%edx),%eax 108def: 85 c0 test %eax,%eax 108df1: 74 79 je 108e6c rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 108df3: 8d 7d cc lea -0x34(%ebp),%edi 108df6: b9 05 00 00 00 mov $0x5,%ecx 108dfb: 89 de mov %ebx,%esi 108dfd: f3 a5 rep movsl %ds:(%esi),%es:(%edi) the_link.node_access = node->info.hard_link.link_node; 108dff: 89 45 cc mov %eax,-0x34(%ebp) IMFS_Set_handlers( &the_link ); 108e02: 83 ec 0c sub $0xc,%esp 108e05: 8d 75 cc lea -0x34(%ebp),%esi 108e08: 56 push %esi 108e09: 89 55 c4 mov %edx,-0x3c(%ebp) 108e0c: e8 03 a8 00 00 call 113614 /* * 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) 108e11: 8b 55 c4 mov -0x3c(%ebp),%edx 108e14: 8b 42 50 mov 0x50(%edx),%eax 108e17: 8b 48 34 mov 0x34(%eax),%ecx 108e1a: 83 c4 10 add $0x10,%esp 108e1d: 66 83 f9 01 cmp $0x1,%cx 108e21: 74 27 je 108e4a if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 108e23: 49 dec %ecx 108e24: 66 89 48 34 mov %cx,0x34(%eax) IMFS_update_ctime( node->info.hard_link.link_node ); 108e28: 83 ec 08 sub $0x8,%esp 108e2b: 6a 00 push $0x0 108e2d: 8d 45 e0 lea -0x20(%ebp),%eax 108e30: 50 push %eax 108e31: 89 55 c4 mov %edx,-0x3c(%ebp) 108e34: e8 e3 05 00 00 call 10941c 108e39: 8b 55 c4 mov -0x3c(%ebp),%edx 108e3c: 8b 42 50 mov 0x50(%edx),%eax 108e3f: 8b 55 e0 mov -0x20(%ebp),%edx 108e42: 89 50 48 mov %edx,0x48(%eax) 108e45: 83 c4 10 add $0x10,%esp 108e48: eb 8a jmp 108dd4 * 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 ); 108e4a: 83 ec 08 sub $0x8,%esp 108e4d: 56 push %esi 108e4e: ff 75 08 pushl 0x8(%ebp) 108e51: 8b 45 d4 mov -0x2c(%ebp),%eax 108e54: ff 50 34 call *0x34(%eax) if ( result != 0 ) 108e57: 83 c4 10 add $0x10,%esp 108e5a: 85 c0 test %eax,%eax 108e5c: 0f 84 72 ff ff ff je 108dd4 108e62: b8 ff ff ff ff mov $0xffffffff,%eax 108e67: e9 78 ff ff ff jmp 108de4 */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); 108e6c: e8 bf e6 00 00 call 117530 <__errno> <== NOT EXECUTED 108e71: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 108e77: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108e7c: e9 63 ff ff ff jmp 108de4 <== NOT EXECUTED 00108e84 : #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 108e84: 55 push %ebp 108e85: 89 e5 mov %esp,%ebp 108e87: 83 ec 08 sub $0x8,%esp IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 108e8a: 8b 45 08 mov 0x8(%ebp),%eax 108e8d: 8b 40 08 mov 0x8(%eax),%eax /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 108e90: 83 78 4c 01 cmpl $0x1,0x4c(%eax) 108e94: 75 12 jne 108ea8 /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 108e96: 8b 50 5c mov 0x5c(%eax),%edx 108e99: 85 d2 test %edx,%edx 108e9b: 74 1d je 108eba /* * 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; 108e9d: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax) 108ea4: 31 c0 xor %eax,%eax return 0; } 108ea6: c9 leave 108ea7: 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 ); 108ea8: e8 83 e6 00 00 call 117530 <__errno> <== NOT EXECUTED 108ead: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED 108eb3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 108eb8: c9 leave <== NOT EXECUTED 108eb9: 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 */ 108eba: e8 71 e6 00 00 call 117530 <__errno> <== NOT EXECUTED 108ebf: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 108ec5: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED */ node->info.directory.mt_fs = NULL; return 0; } 108eca: c9 leave <== NOT EXECUTED 108ecb: c3 ret <== NOT EXECUTED 001081c0 : void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 1081c0: 55 push %ebp 1081c1: 89 e5 mov %esp,%ebp 1081c3: 57 push %edi 1081c4: 56 push %esi 1081c5: 53 push %ebx 1081c6: 83 ec 0c sub $0xc,%esp 1081c9: 8b 5d 08 mov 0x8(%ebp),%ebx 1081cc: 8b 75 0c mov 0xc(%ebp),%esi #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 1081cf: a1 c8 35 12 00 mov 0x1235c8,%eax 1081d4: 85 c0 test %eax,%eax 1081d6: 74 02 je 1081da (*rtems_malloc_statistics_helpers->initialize)(); 1081d8: ff 10 call *(%eax) <== NOT EXECUTED } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 1081da: e8 79 ff ff ff call 108158 /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 1081df: a1 cc 35 12 00 mov 0x1235cc,%eax 1081e4: 85 c0 test %eax,%eax 1081e6: 74 13 je 1081fb void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 1081e8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1081eb: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 1081ee: 53 push %ebx <== NOT EXECUTED 1081ef: ff 10 call *(%eax) <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 1081f1: 8d 34 33 lea (%ebx,%esi,1),%esi <== NOT EXECUTED 1081f4: 29 c6 sub %eax,%esi <== NOT EXECUTED 1081f6: 89 c3 mov %eax,%ebx <== NOT EXECUTED 1081f8: 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 ( 1081fb: 80 3d c5 35 12 00 00 cmpb $0x0,0x1235c5 108202: 75 1f jne 108223 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 108204: 80 3d 48 12 12 00 00 cmpb $0x0,0x121248 10820b: 75 3f jne 10824c void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); 10820d: 6a 04 push $0x4 10820f: 56 push %esi 108210: 53 push %ebx 108211: ff 35 58 11 12 00 pushl 0x121158 108217: e8 28 41 00 00 call 10c344 <_Heap_Initialize> RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 10821c: 83 c4 10 add $0x10,%esp 10821f: 85 c0 test %eax,%eax 108221: 74 3c je 10825f rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 108223: 8b 1d e0 51 12 00 mov 0x1251e0,%ebx 108229: 83 ec 0c sub $0xc,%esp 10822c: ff 35 58 11 12 00 pushl 0x121158 108232: e8 81 4c 00 00 call 10ceb8 <_Protected_heap_Get_size> 108237: 8d 1c 18 lea (%eax,%ebx,1),%ebx 10823a: 89 1d e0 51 12 00 mov %ebx,0x1251e0 108240: 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 } 108243: 8d 65 f4 lea -0xc(%ebp),%esp 108246: 5b pop %ebx 108247: 5e pop %esi 108248: 5f pop %edi 108249: c9 leave 10824a: c3 ret 10824b: 90 nop <== NOT EXECUTED if ( !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() ) { memset( heap_begin, 0, heap_size ); 10824c: 31 c0 xor %eax,%eax 10824e: 89 df mov %ebx,%edi 108250: 89 f1 mov %esi,%ecx 108252: 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 ) { 108254: 80 3d c5 35 12 00 00 cmpb $0x0,0x1235c5 10825b: 74 b0 je 10820d 10825d: eb c4 jmp 108223 <== NOT EXECUTED heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 10825f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108262: 6a 1a push $0x1a <== NOT EXECUTED 108264: e8 6f 39 00 00 call 10bbd8 <== NOT EXECUTED 0010b414 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 10b414: 55 push %ebp <== NOT EXECUTED 10b415: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10b417: 57 push %edi <== NOT EXECUTED 10b418: 56 push %esi <== NOT EXECUTED 10b419: 53 push %ebx <== NOT EXECUTED 10b41a: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED 10b41d: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 10b420: 85 db test %ebx,%ebx <== NOT EXECUTED 10b422: 0f 84 c5 00 00 00 je 10b4ed <== NOT EXECUTED return; if ( !print_handler ) 10b428: a1 e0 af 16 00 mov 0x16afe0,%eax <== NOT EXECUTED 10b42d: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED 10b430: 85 c0 test %eax,%eax <== NOT EXECUTED 10b432: 0f 84 b5 00 00 00 je 10b4ed <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 10b438: 83 fb ff cmp $0xffffffff,%ebx <== NOT EXECUTED 10b43b: 0f 84 d7 00 00 00 je 10b518 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 10b441: 8d b3 c0 00 00 00 lea 0xc0(%ebx),%esi <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); 10b447: 8b 93 d4 00 00 00 mov 0xd4(%ebx),%edx <== NOT EXECUTED 10b44d: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED } low = Stack_check_usable_stack_start(stack); 10b450: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED 10b453: 83 c0 10 add $0x10,%eax <== NOT EXECUTED 10b456: 89 45 d4 mov %eax,-0x2c(%ebp) <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 10b459: 8b 3e mov (%esi),%edi <== NOT EXECUTED 10b45b: 83 ef 10 sub $0x10,%edi <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 10b45e: 57 push %edi <== NOT EXECUTED 10b45f: 50 push %eax <== NOT EXECUTED 10b460: e8 77 ff ff ff call 10b3dc <== NOT EXECUTED if ( high_water_mark ) 10b465: 59 pop %ecx <== NOT EXECUTED 10b466: 5a pop %edx <== NOT EXECUTED 10b467: 85 c0 test %eax,%eax <== NOT EXECUTED 10b469: 0f 84 c9 00 00 00 je 10b538 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 10b46f: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 10b472: 01 fa add %edi,%edx <== NOT EXECUTED 10b474: 29 c2 sub %eax,%edx <== NOT EXECUTED 10b476: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED else used = 0; if ( the_thread ) { 10b479: 85 db test %ebx,%ebx <== NOT EXECUTED 10b47b: 0f 84 c7 00 00 00 je 10b548 <== NOT EXECUTED (*print_handler)( 10b481: 52 push %edx <== NOT EXECUTED 10b482: 8d 45 e3 lea -0x1d(%ebp),%eax <== NOT EXECUTED 10b485: 50 push %eax <== NOT EXECUTED 10b486: 6a 05 push $0x5 <== NOT EXECUTED 10b488: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED 10b48b: e8 18 5e 00 00 call 1112a8 <== NOT EXECUTED 10b490: 50 push %eax <== NOT EXECUTED 10b491: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED 10b494: 68 c4 9d 15 00 push $0x159dc4 <== NOT EXECUTED 10b499: ff 35 dc af 16 00 pushl 0x16afdc <== NOT EXECUTED 10b49f: ff 55 d0 call *-0x30(%ebp) <== NOT EXECUTED 10b4a2: 83 c4 20 add $0x20,%esp <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 10b4a5: 8b 46 04 mov 0x4(%esi),%eax <== NOT EXECUTED 10b4a8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10b4ab: 57 push %edi <== NOT EXECUTED 10b4ac: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED 10b4af: 8b 16 mov (%esi),%edx <== NOT EXECUTED 10b4b1: 8d 54 10 ff lea -0x1(%eax,%edx,1),%edx <== NOT EXECUTED 10b4b5: 52 push %edx <== NOT EXECUTED 10b4b6: 50 push %eax <== NOT EXECUTED 10b4b7: 68 df 9d 15 00 push $0x159ddf <== NOT EXECUTED 10b4bc: ff 35 dc af 16 00 pushl 0x16afdc <== NOT EXECUTED 10b4c2: ff 15 e0 af 16 00 call *0x16afe0 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 10b4c8: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10b4cb: 8b 1d d8 af 16 00 mov 0x16afd8,%ebx <== NOT EXECUTED 10b4d1: 85 db test %ebx,%ebx <== NOT EXECUTED 10b4d3: 74 23 je 10b4f8 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 10b4d5: 51 push %ecx <== NOT EXECUTED 10b4d6: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED 10b4d9: 68 0a 9e 15 00 push $0x159e0a <== NOT EXECUTED 10b4de: ff 35 dc af 16 00 pushl 0x16afdc <== NOT EXECUTED 10b4e4: ff 15 e0 af 16 00 call *0x16afe0 <== NOT EXECUTED 10b4ea: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } } 10b4ed: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10b4f0: 5b pop %ebx <== NOT EXECUTED 10b4f1: 5e pop %esi <== NOT EXECUTED 10b4f2: 5f pop %edi <== NOT EXECUTED 10b4f3: c9 leave <== NOT EXECUTED 10b4f4: c3 ret <== NOT EXECUTED 10b4f5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED current, size ); if (Stack_check_Initialized == 0) { (*print_handler)( print_context, "Unavailable\n" ); 10b4f8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10b4fb: 68 fd 9d 15 00 push $0x159dfd <== NOT EXECUTED 10b500: ff 35 dc af 16 00 pushl 0x16afdc <== NOT EXECUTED 10b506: ff 15 e0 af 16 00 call *0x16afe0 <== NOT EXECUTED 10b50c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); } } 10b50f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10b512: 5b pop %ebx <== NOT EXECUTED 10b513: 5e pop %esi <== NOT EXECUTED 10b514: 5f pop %edi <== NOT EXECUTED 10b515: c9 leave <== NOT EXECUTED 10b516: c3 ret <== NOT EXECUTED 10b517: 90 nop <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 10b518: 8b 0d 54 dd 16 00 mov 0x16dd54,%ecx <== NOT EXECUTED 10b51e: 85 c9 test %ecx,%ecx <== NOT EXECUTED 10b520: 74 cb je 10b4ed <== NOT EXECUTED 10b522: be 50 dd 16 00 mov $0x16dd50,%esi <== NOT EXECUTED 10b527: c7 45 cc 00 00 00 00 movl $0x0,-0x34(%ebp) <== NOT EXECUTED 10b52e: 31 db xor %ebx,%ebx <== NOT EXECUTED 10b530: e9 1b ff ff ff jmp 10b450 <== NOT EXECUTED 10b535: 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 ) 10b538: 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 ) { 10b53f: 85 db test %ebx,%ebx <== NOT EXECUTED 10b541: 0f 85 3a ff ff ff jne 10b481 <== NOT EXECUTED 10b547: 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 ); 10b548: 50 push %eax <== NOT EXECUTED 10b549: 6a ff push $0xffffffff <== NOT EXECUTED 10b54b: 68 d1 9d 15 00 push $0x159dd1 <== NOT EXECUTED 10b550: ff 35 dc af 16 00 pushl 0x16afdc <== NOT EXECUTED 10b556: ff 55 d0 call *-0x30(%ebp) <== NOT EXECUTED 10b559: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10b55c: e9 44 ff ff ff jmp 10b4a5 <== NOT EXECUTED 0010b3dc : */ void *Stack_check_find_high_water_mark( const void *s, size_t n ) { 10b3dc: 55 push %ebp <== NOT EXECUTED 10b3dd: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10b3df: 8b 4d 08 mov 0x8(%ebp),%ecx <== NOT EXECUTED 10b3e2: 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; 10b3e5: 8d 41 10 lea 0x10(%ecx),%eax <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 10b3e8: 83 e2 fc and $0xfffffffc,%edx <== NOT EXECUTED 10b3eb: 8d 14 10 lea (%eax,%edx,1),%edx <== NOT EXECUTED 10b3ee: 39 d0 cmp %edx,%eax <== NOT EXECUTED 10b3f0: 73 1d jae 10b40f <== NOT EXECUTED if (*base != U32_PATTERN) 10b3f2: 81 79 10 a5 a5 a5 a5 cmpl $0xa5a5a5a5,0x10(%ecx) <== NOT EXECUTED 10b3f9: 74 0d je 10b408 <== NOT EXECUTED 10b3fb: eb 14 jmp 10b411 <== NOT EXECUTED 10b3fd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10b400: 81 38 a5 a5 a5 a5 cmpl $0xa5a5a5a5,(%eax) <== NOT EXECUTED 10b406: 75 09 jne 10b411 <== 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++) 10b408: 83 c0 04 add $0x4,%eax <== NOT EXECUTED 10b40b: 39 c2 cmp %eax,%edx <== NOT EXECUTED 10b40d: 77 f1 ja 10b400 <== NOT EXECUTED 10b40f: 31 c0 xor %eax,%eax <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 10b411: c9 leave <== NOT EXECUTED 10b412: c3 ret <== NOT EXECUTED 0010b5e0 : * * 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) { 10b5e0: 55 push %ebp <== NOT EXECUTED 10b5e1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10b5e3: 56 push %esi <== NOT EXECUTED 10b5e4: 53 push %ebx <== NOT EXECUTED 10b5e5: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED 10b5e8: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 10b5eb: 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); 10b5ee: 8b b3 c4 00 00 00 mov 0xc4(%ebx),%esi <== NOT EXECUTED char name [32]; printk("BLOWN STACK!!!\n"); 10b5f4: 68 27 9e 15 00 push $0x159e27 <== NOT EXECUTED 10b5f9: 88 55 d4 mov %dl,-0x2c(%ebp) <== NOT EXECUTED 10b5fc: e8 1b 29 00 00 call 10df1c <== NOT EXECUTED printk("task control block: 0x%08" PRIxPTR "\n", running); 10b601: 58 pop %eax <== NOT EXECUTED 10b602: 5a pop %edx <== NOT EXECUTED 10b603: 53 push %ebx <== NOT EXECUTED 10b604: 68 37 9e 15 00 push $0x159e37 <== NOT EXECUTED 10b609: e8 0e 29 00 00 call 10df1c <== NOT EXECUTED printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 10b60e: 5a pop %edx <== NOT EXECUTED 10b60f: 59 pop %ecx <== NOT EXECUTED 10b610: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED 10b613: 68 54 9e 15 00 push $0x159e54 <== NOT EXECUTED 10b618: e8 ff 28 00 00 call 10df1c <== NOT EXECUTED printk( 10b61d: 59 pop %ecx <== NOT EXECUTED 10b61e: 58 pop %eax <== NOT EXECUTED 10b61f: ff 73 0c pushl 0xc(%ebx) <== NOT EXECUTED 10b622: 68 66 9e 15 00 push $0x159e66 <== NOT EXECUTED 10b627: e8 f0 28 00 00 call 10df1c <== NOT EXECUTED "task name: 0x%08" PRIx32 "\n", running->Object.name.name_u32 ); printk( 10b62c: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 10b62f: 8d 45 d8 lea -0x28(%ebp),%eax <== NOT EXECUTED 10b632: 50 push %eax <== NOT EXECUTED 10b633: 6a 20 push $0x20 <== NOT EXECUTED 10b635: ff 73 08 pushl 0x8(%ebx) <== NOT EXECUTED 10b638: e8 6b 5c 00 00 call 1112a8 <== NOT EXECUTED 10b63d: 59 pop %ecx <== NOT EXECUTED 10b63e: 5a pop %edx <== NOT EXECUTED 10b63f: 50 push %eax <== NOT EXECUTED 10b640: 68 7a 9e 15 00 push $0x159e7a <== NOT EXECUTED 10b645: e8 d2 28 00 00 call 10df1c <== NOT EXECUTED "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 10b64a: 8b 8b c4 00 00 00 mov 0xc4(%ebx),%ecx <== NOT EXECUTED 10b650: 8b 83 c0 00 00 00 mov 0xc0(%ebx),%eax <== NOT EXECUTED 10b656: 8d 1c 01 lea (%ecx,%eax,1),%ebx <== NOT EXECUTED 10b659: 53 push %ebx <== NOT EXECUTED 10b65a: 51 push %ecx <== NOT EXECUTED 10b65b: 50 push %eax <== NOT EXECUTED 10b65c: 68 dc 9e 15 00 push $0x159edc <== NOT EXECUTED 10b661: e8 b6 28 00 00 call 10df1c <== NOT EXECUTED "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n", (unsigned long) stack->size, stack->area, ((char *) stack->area + stack->size) ); if (!pattern_ok) { 10b666: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10b669: 8a 55 d4 mov -0x2c(%ebp),%dl <== NOT EXECUTED 10b66c: 84 d2 test %dl,%dl <== NOT EXECUTED 10b66e: 74 10 je 10b680 <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 10b670: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10b673: 68 81 00 00 00 push $0x81 <== NOT EXECUTED 10b678: e8 a3 64 00 00 call 111b20 <== NOT EXECUTED 10b67d: 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); 10b680: 8d 46 08 lea 0x8(%esi),%eax <== NOT EXECUTED (unsigned long) stack->size, stack->area, ((char *) stack->area + stack->size) ); if (!pattern_ok) { printk( 10b683: 83 c6 18 add $0x18,%esi <== NOT EXECUTED 10b686: 56 push %esi <== NOT EXECUTED 10b687: 50 push %eax <== NOT EXECUTED 10b688: 6a 10 push $0x10 <== NOT EXECUTED 10b68a: 68 10 9f 15 00 push $0x159f10 <== NOT EXECUTED 10b68f: e8 88 28 00 00 call 10df1c <== NOT EXECUTED 10b694: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10b697: eb d7 jmp 10b670 <== NOT EXECUTED 00111d6c <_CORE_barrier_Wait>: Objects_Id id, bool wait, Watchdog_Interval timeout, CORE_barrier_API_mp_support_callout api_barrier_mp_support ) { 111d6c: 55 push %ebp 111d6d: 89 e5 mov %esp,%ebp 111d6f: 57 push %edi 111d70: 56 push %esi 111d71: 53 push %ebx 111d72: 83 ec 1c sub $0x1c,%esp 111d75: 8b 45 08 mov 0x8(%ebp),%eax 111d78: 8b 5d 0c mov 0xc(%ebp),%ebx 111d7b: 8b 75 14 mov 0x14(%ebp),%esi 111d7e: 8b 7d 18 mov 0x18(%ebp),%edi Thread_Control *executing; ISR_Level level; executing = _Thread_Executing; 111d81: 8b 15 18 54 12 00 mov 0x125418,%edx executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL; 111d87: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx) _ISR_Disable( level ); 111d8e: 9c pushf 111d8f: fa cli 111d90: 8f 45 e4 popl -0x1c(%ebp) the_barrier->number_of_waiting_threads++; 111d93: 8b 48 48 mov 0x48(%eax),%ecx 111d96: 41 inc %ecx 111d97: 89 48 48 mov %ecx,0x48(%eax) if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) { 111d9a: 83 78 40 00 cmpl $0x0,0x40(%eax) 111d9e: 75 05 jne 111da5 <_CORE_barrier_Wait+0x39> if ( the_barrier->number_of_waiting_threads == the_barrier->Attributes.maximum_count) { 111da0: 3b 48 44 cmp 0x44(%eax),%ecx 111da3: 74 2b je 111dd0 <_CORE_barrier_Wait+0x64> 111da5: 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; 111dac: 89 42 44 mov %eax,0x44(%edx) executing->Wait.id = id; 111daf: 89 5a 20 mov %ebx,0x20(%edx) _ISR_Enable( level ); 111db2: ff 75 e4 pushl -0x1c(%ebp) 111db5: 9d popf _Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout ); 111db6: c7 45 10 dc db 10 00 movl $0x10dbdc,0x10(%ebp) 111dbd: 89 75 0c mov %esi,0xc(%ebp) 111dc0: 89 45 08 mov %eax,0x8(%ebp) } 111dc3: 83 c4 1c add $0x1c,%esp 111dc6: 5b pop %ebx 111dc7: 5e pop %esi 111dc8: 5f pop %edi 111dc9: 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 ); 111dca: e9 fd ba ff ff jmp 10d8cc <_Thread_queue_Enqueue_with_handler> 111dcf: 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; 111dd0: c7 42 34 01 00 00 00 movl $0x1,0x34(%edx) _ISR_Enable( level ); 111dd7: ff 75 e4 pushl -0x1c(%ebp) 111dda: 9d popf _CORE_barrier_Release( the_barrier, id, api_barrier_mp_support ); 111ddb: 89 7d 10 mov %edi,0x10(%ebp) 111dde: 89 5d 0c mov %ebx,0xc(%ebp) 111de1: 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 ); } 111de4: 83 c4 1c add $0x1c,%esp 111de7: 5b pop %ebx 111de8: 5e pop %esi 111de9: 5f pop %edi 111dea: 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 ); 111deb: e9 4c ff ff ff jmp 111d3c <_CORE_barrier_Release> 00119430 <_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 ) { 119430: 55 push %ebp 119431: 89 e5 mov %esp,%ebp 119433: 57 push %edi 119434: 56 push %esi 119435: 53 push %ebx 119436: 83 ec 1c sub $0x1c,%esp 119439: 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 ) { 11943c: 8b 45 10 mov 0x10(%ebp),%eax 11943f: 39 43 4c cmp %eax,0x4c(%ebx) 119442: 72 60 jb 1194a4 <_CORE_message_queue_Broadcast+0x74> * 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 ) { 119444: 8b 43 48 mov 0x48(%ebx),%eax 119447: 85 c0 test %eax,%eax 119449: 75 45 jne 119490 <_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))) { 11944b: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 119452: eb 18 jmp 11946c <_CORE_message_queue_Broadcast+0x3c> waitp = &the_thread->Wait; number_broadcasted += 1; 119454: ff 45 e4 incl -0x1c(%ebp) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 119457: 8b 42 2c mov 0x2c(%edx),%eax 11945a: 89 c7 mov %eax,%edi 11945c: 8b 75 0c mov 0xc(%ebp),%esi 11945f: 8b 4d 10 mov 0x10(%ebp),%ecx 119462: f3 a4 rep movsb %ds:(%esi),%es:(%edi) buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; 119464: 8b 42 28 mov 0x28(%edx),%eax 119467: 8b 55 10 mov 0x10(%ebp),%edx 11946a: 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))) { 11946c: 83 ec 0c sub $0xc,%esp 11946f: 53 push %ebx 119470: e8 83 23 00 00 call 11b7f8 <_Thread_queue_Dequeue> 119475: 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 = 119477: 83 c4 10 add $0x10,%esp 11947a: 85 c0 test %eax,%eax 11947c: 75 d6 jne 119454 <_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; 11947e: 8b 55 e4 mov -0x1c(%ebp),%edx 119481: 8b 45 1c mov 0x1c(%ebp),%eax 119484: 89 10 mov %edx,(%eax) 119486: 31 c0 xor %eax,%eax return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 119488: 8d 65 f4 lea -0xc(%ebp),%esp 11948b: 5b pop %ebx 11948c: 5e pop %esi 11948d: 5f pop %edi 11948e: c9 leave 11948f: 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; 119490: 8b 55 1c mov 0x1c(%ebp),%edx 119493: c7 02 00 00 00 00 movl $0x0,(%edx) 119499: 31 c0 xor %eax,%eax #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 11949b: 8d 65 f4 lea -0xc(%ebp),%esp 11949e: 5b pop %ebx 11949f: 5e pop %esi 1194a0: 5f pop %edi 1194a1: c9 leave 1194a2: c3 ret 1194a3: 90 nop <== NOT EXECUTED { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { 1194a4: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED #endif } *count = number_broadcasted; return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } 1194a9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1194ac: 5b pop %ebx <== NOT EXECUTED 1194ad: 5e pop %esi <== NOT EXECUTED 1194ae: 5f pop %edi <== NOT EXECUTED 1194af: c9 leave <== NOT EXECUTED 1194b0: c3 ret <== NOT EXECUTED 00114b60 <_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 ) { 114b60: 55 push %ebp 114b61: 89 e5 mov %esp,%ebp 114b63: 57 push %edi 114b64: 56 push %esi 114b65: 53 push %ebx 114b66: 83 ec 0c sub $0xc,%esp 114b69: 8b 5d 08 mov 0x8(%ebp),%ebx 114b6c: 8b 75 10 mov 0x10(%ebp),%esi 114b6f: 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; 114b72: 89 73 44 mov %esi,0x44(%ebx) the_message_queue->number_of_pending_messages = 0; 114b75: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) the_message_queue->maximum_message_size = maximum_message_size; 114b7c: 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)) { 114b7f: a8 03 test $0x3,%al 114b81: 75 19 jne 114b9c <_CORE_message_queue_Initialize+0x3c> 114b83: 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)); 114b85: 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 * 114b88: 89 f8 mov %edi,%eax 114b8a: 0f af c6 imul %esi,%eax (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) 114b8d: 39 d0 cmp %edx,%eax 114b8f: 73 23 jae 114bb4 <_CORE_message_queue_Initialize+0x54> THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; 114b91: 31 c0 xor %eax,%eax } 114b93: 8d 65 f4 lea -0xc(%ebp),%esp 114b96: 5b pop %ebx 114b97: 5e pop %esi 114b98: 5f pop %edi 114b99: c9 leave 114b9a: c3 ret 114b9b: 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); 114b9c: 8d 50 04 lea 0x4(%eax),%edx allocated_message_size &= ~(sizeof(uint32_t) - 1); 114b9f: 83 e2 fc and $0xfffffffc,%edx } if (allocated_message_size < maximum_message_size) 114ba2: 39 d0 cmp %edx,%eax 114ba4: 77 eb ja 114b91 <_CORE_message_queue_Initialize+0x31> /* * 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)); 114ba6: 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 * 114ba9: 89 f8 mov %edi,%eax 114bab: 0f af c6 imul %esi,%eax (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); if (message_buffering_required < allocated_message_size) 114bae: 39 d0 cmp %edx,%eax 114bb0: 72 df jb 114b91 <_CORE_message_queue_Initialize+0x31> 114bb2: 66 90 xchg %ax,%ax return false; /* * Attempt to allocate the message memory */ the_message_queue->message_buffers = (CORE_message_queue_Buffer *) 114bb4: 83 ec 0c sub $0xc,%esp 114bb7: 50 push %eax 114bb8: e8 2f 28 00 00 call 1173ec <_Workspace_Allocate> 114bbd: 89 43 5c mov %eax,0x5c(%ebx) _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) 114bc0: 83 c4 10 add $0x10,%esp 114bc3: 85 c0 test %eax,%eax 114bc5: 74 ca je 114b91 <_CORE_message_queue_Initialize+0x31> /* * Initialize the pool of inactive messages, pending messages, * and set of waiting threads. */ _Chain_Initialize ( 114bc7: 57 push %edi 114bc8: 56 push %esi 114bc9: 50 push %eax 114bca: 8d 43 60 lea 0x60(%ebx),%eax 114bcd: 50 push %eax 114bce: e8 05 43 00 00 call 118ed8 <_Chain_Initialize> */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 114bd3: 8d 43 54 lea 0x54(%ebx),%eax 114bd6: 89 43 50 mov %eax,0x50(%ebx) the_chain->permanent_null = NULL; 114bd9: c7 43 54 00 00 00 00 movl $0x0,0x54(%ebx) the_chain->last = _Chain_Head(the_chain); 114be0: 8d 43 50 lea 0x50(%ebx),%eax 114be3: 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( 114be6: 6a 06 push $0x6 114be8: 68 80 00 00 00 push $0x80 114bed: 8b 45 0c mov 0xc(%ebp),%eax 114bf0: 83 38 01 cmpl $0x1,(%eax) 114bf3: 0f 94 c0 sete %al 114bf6: 0f b6 c0 movzbl %al,%eax 114bf9: 50 push %eax 114bfa: 53 push %ebx 114bfb: e8 0c 1e 00 00 call 116a0c <_Thread_queue_Initialize> 114c00: b0 01 mov $0x1,%al THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_MESSAGE, CORE_MESSAGE_QUEUE_STATUS_TIMEOUT ); return true; 114c02: 83 c4 20 add $0x20,%esp } 114c05: 8d 65 f4 lea -0xc(%ebp),%esp 114c08: 5b pop %ebx 114c09: 5e pop %esi 114c0a: 5f pop %edi 114c0b: c9 leave 114c0c: c3 ret 00110078 <_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 ) { 110078: 55 push %ebp 110079: 89 e5 mov %esp,%ebp 11007b: 53 push %ebx 11007c: 8b 45 08 mov 0x8(%ebp),%eax 11007f: 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 ); 110082: 9c pushf 110083: fa cli 110084: 5b pop %ebx SET_NOTIFY(); the_message_queue->number_of_pending_messages++; 110085: ff 40 48 incl 0x48(%eax) if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) 110088: 81 7d 10 ff ff ff 7f cmpl $0x7fffffff,0x10(%ebp) 11008f: 74 17 je 1100a8 <_CORE_message_queue_Insert_message+0x30> 110091: 8d 48 50 lea 0x50(%eax),%ecx Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 110094: 89 4a 04 mov %ecx,0x4(%edx) before_node = after_node->next; 110097: 8b 48 50 mov 0x50(%eax),%ecx after_node->next = the_node; 11009a: 89 50 50 mov %edx,0x50(%eax) the_node->next = before_node; 11009d: 89 0a mov %ecx,(%edx) before_node->previous = the_node; 11009f: 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 ); 1100a2: 53 push %ebx 1100a3: 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 } 1100a4: 5b pop %ebx 1100a5: c9 leave 1100a6: c3 ret 1100a7: 90 nop <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 1100a8: 8d 48 54 lea 0x54(%eax),%ecx 1100ab: 89 0a mov %ecx,(%edx) old_last_node = the_chain->last; 1100ad: 8b 48 58 mov 0x58(%eax),%ecx the_chain->last = the_node; 1100b0: 89 50 58 mov %edx,0x58(%eax) old_last_node->next = the_node; 1100b3: 89 11 mov %edx,(%ecx) the_node->previous = old_last_node; 1100b5: 89 4a 04 mov %ecx,0x4(%edx) 1100b8: eb e8 jmp 1100a2 <_CORE_message_queue_Insert_message+0x2a> 00114c10 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) { 114c10: 55 push %ebp 114c11: 89 e5 mov %esp,%ebp 114c13: 57 push %edi 114c14: 56 push %esi 114c15: 53 push %ebx 114c16: 83 ec 1c sub $0x1c,%esp 114c19: 8b 45 08 mov 0x8(%ebp),%eax 114c1c: 8b 55 0c mov 0xc(%ebp),%edx 114c1f: 89 55 dc mov %edx,-0x24(%ebp) 114c22: 8b 55 10 mov 0x10(%ebp),%edx 114c25: 89 55 e4 mov %edx,-0x1c(%ebp) 114c28: 8b 7d 14 mov 0x14(%ebp),%edi 114c2b: 8b 55 1c mov 0x1c(%ebp),%edx 114c2e: 89 55 d8 mov %edx,-0x28(%ebp) 114c31: 8a 5d 18 mov 0x18(%ebp),%bl ISR_Level level; CORE_message_queue_Buffer_control *the_message; Thread_Control *executing; executing = _Thread_Executing; 114c34: 8b 0d 98 fa 12 00 mov 0x12fa98,%ecx executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 114c3a: c7 41 34 00 00 00 00 movl $0x0,0x34(%ecx) _ISR_Disable( level ); 114c41: 9c pushf 114c42: fa cli 114c43: 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)); 114c46: 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; 114c49: 8d 70 54 lea 0x54(%eax),%esi 114c4c: 39 f2 cmp %esi,%edx 114c4e: 74 44 je 114c94 <_CORE_message_queue_Seize+0x84> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 114c50: 8b 0a mov (%edx),%ecx the_chain->first = new_first; 114c52: 89 48 50 mov %ecx,0x50(%eax) new_first->previous = _Chain_Head(the_chain); 114c55: 8d 58 50 lea 0x50(%eax),%ebx 114c58: 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; 114c5b: ff 48 48 decl 0x48(%eax) _ISR_Enable( level ); 114c5e: ff 75 e0 pushl -0x20(%ebp) 114c61: 9d popf *size_p = the_message->Contents.size; 114c62: 8b 4a 08 mov 0x8(%edx),%ecx 114c65: 89 0f mov %ecx,(%edi) _Thread_Executing->Wait.count = 114c67: 8b 0d 98 fa 12 00 mov 0x12fa98,%ecx 114c6d: c7 41 24 00 00 00 00 movl $0x0,0x24(%ecx) const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 114c74: 8d 72 0c lea 0xc(%edx),%esi 114c77: 8b 0f mov (%edi),%ecx 114c79: 8b 7d e4 mov -0x1c(%ebp),%edi 114c7c: 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 ); 114c7e: 89 55 0c mov %edx,0xc(%ebp) 114c81: 83 c0 60 add $0x60,%eax 114c84: 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 ); } 114c87: 83 c4 1c add $0x1c,%esp 114c8a: 5b pop %ebx 114c8b: 5e pop %esi 114c8c: 5f pop %edi 114c8d: c9 leave 114c8e: e9 4d fe ff ff jmp 114ae0 <_Chain_Append> 114c93: 90 nop <== NOT EXECUTED return; } #endif } if ( !wait ) { 114c94: 84 db test %bl,%bl 114c96: 75 14 jne 114cac <_CORE_message_queue_Seize+0x9c> _ISR_Enable( level ); 114c98: ff 75 e0 pushl -0x20(%ebp) 114c9b: 9d popf executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT; 114c9c: 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 ); } 114ca3: 83 c4 1c add $0x1c,%esp 114ca6: 5b pop %ebx 114ca7: 5e pop %esi 114ca8: 5f pop %edi 114ca9: c9 leave 114caa: c3 ret 114cab: 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; 114cac: 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; 114cb3: 89 41 44 mov %eax,0x44(%ecx) executing->Wait.id = id; 114cb6: 8b 55 dc mov -0x24(%ebp),%edx 114cb9: 89 51 20 mov %edx,0x20(%ecx) executing->Wait.return_argument_second.mutable_object = buffer; 114cbc: 8b 55 e4 mov -0x1c(%ebp),%edx 114cbf: 89 51 2c mov %edx,0x2c(%ecx) executing->Wait.return_argument = size_p; 114cc2: 89 79 28 mov %edi,0x28(%ecx) /* Wait.count will be filled in with the message priority */ _ISR_Enable( level ); 114cc5: ff 75 e0 pushl -0x20(%ebp) 114cc8: 9d popf _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); 114cc9: c7 45 10 bc 6a 11 00 movl $0x116abc,0x10(%ebp) 114cd0: 8b 55 d8 mov -0x28(%ebp),%edx 114cd3: 89 55 0c mov %edx,0xc(%ebp) 114cd6: 89 45 08 mov %eax,0x8(%ebp) } 114cd9: 83 c4 1c add $0x1c,%esp 114cdc: 5b pop %ebx 114cdd: 5e pop %esi 114cde: 5f pop %edi 114cdf: 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 ); 114ce0: e9 c7 1a 00 00 jmp 1167ac <_Thread_queue_Enqueue_with_handler> 0010beb4 <_CORE_message_queue_Submit>: #endif CORE_message_queue_Submit_types submit_type, bool wait, Watchdog_Interval timeout ) { 10beb4: 55 push %ebp 10beb5: 89 e5 mov %esp,%ebp 10beb7: 57 push %edi 10beb8: 56 push %esi 10beb9: 53 push %ebx 10beba: 83 ec 0c sub $0xc,%esp 10bebd: 8b 5d 08 mov 0x8(%ebp),%ebx 10bec0: 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 ) { 10bec3: 8b 45 10 mov 0x10(%ebp),%eax 10bec6: 39 43 4c cmp %eax,0x4c(%ebx) 10bec9: 72 51 jb 10bf1c <_CORE_message_queue_Submit+0x68> } /* * Is there a thread currently waiting on this message queue? */ if ( the_message_queue->number_of_pending_messages == 0 ) { 10becb: 8b 43 48 mov 0x48(%ebx),%eax 10bece: 85 c0 test %eax,%eax 10bed0: 74 5a je 10bf2c <_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 ) { 10bed2: 39 43 44 cmp %eax,0x44(%ebx) 10bed5: 77 0d ja 10bee4 <_CORE_message_queue_Submit+0x30> 10bed7: 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 } 10bedc: 8d 65 f4 lea -0xc(%ebp),%esp 10bedf: 5b pop %ebx 10bee0: 5e pop %esi 10bee1: 5f pop %edi 10bee2: c9 leave 10bee3: 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 *) 10bee4: 83 ec 0c sub $0xc,%esp 10bee7: 8d 43 60 lea 0x60(%ebx),%eax 10beea: 50 push %eax 10beeb: e8 a0 ff ff ff call 10be90 <_Chain_Get> 10bef0: 89 c2 mov %eax,%edx const void *source, void *destination, size_t size ) { memcpy(destination, source, size); 10bef2: 8d 40 0c lea 0xc(%eax),%eax 10bef5: 89 c7 mov %eax,%edi 10bef7: 8b 4d 10 mov 0x10(%ebp),%ecx 10befa: f3 a4 rep movsb %ds:(%esi),%es:(%edi) _CORE_message_queue_Copy_buffer( buffer, the_message->Contents.buffer, size ); the_message->Contents.size = size; 10befc: 8b 4d 10 mov 0x10(%ebp),%ecx 10beff: 89 4a 08 mov %ecx,0x8(%edx) _CORE_message_queue_Set_message_priority( the_message, submit_type ); _CORE_message_queue_Insert_message( 10bf02: 83 c4 0c add $0xc,%esp 10bf05: ff 75 1c pushl 0x1c(%ebp) 10bf08: 52 push %edx 10bf09: 53 push %ebx 10bf0a: e8 69 41 00 00 call 110078 <_CORE_message_queue_Insert_message> 10bf0f: 31 c0 xor %eax,%eax the_message_queue, the_message, submit_type ); return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 10bf11: 83 c4 10 add $0x10,%esp _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout ); } return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT; #endif } 10bf14: 8d 65 f4 lea -0xc(%ebp),%esp 10bf17: 5b pop %ebx 10bf18: 5e pop %esi 10bf19: 5f pop %edi 10bf1a: c9 leave 10bf1b: c3 ret ) { CORE_message_queue_Buffer_control *the_message; Thread_Control *the_thread; if ( size > the_message_queue->maximum_message_size ) { 10bf1c: 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 } 10bf21: 8d 65 f4 lea -0xc(%ebp),%esp 10bf24: 5b pop %ebx 10bf25: 5e pop %esi 10bf26: 5f pop %edi 10bf27: c9 leave 10bf28: c3 ret 10bf29: 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 ); 10bf2c: 83 ec 0c sub $0xc,%esp 10bf2f: 53 push %ebx 10bf30: e8 7b 18 00 00 call 10d7b0 <_Thread_queue_Dequeue> 10bf35: 89 c2 mov %eax,%edx if ( the_thread ) { 10bf37: 83 c4 10 add $0x10,%esp 10bf3a: 85 c0 test %eax,%eax 10bf3c: 74 1e je 10bf5c <_CORE_message_queue_Submit+0xa8> 10bf3e: 8b 40 2c mov 0x2c(%eax),%eax 10bf41: 89 c7 mov %eax,%edi 10bf43: 8b 4d 10 mov 0x10(%ebp),%ecx 10bf46: 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; 10bf48: 8b 42 28 mov 0x28(%edx),%eax 10bf4b: 8b 4d 10 mov 0x10(%ebp),%ecx 10bf4e: 89 08 mov %ecx,(%eax) the_thread->Wait.count = (uint32_t) submit_type; 10bf50: 8b 45 1c mov 0x1c(%ebp),%eax 10bf53: 89 42 24 mov %eax,0x24(%edx) 10bf56: 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; 10bf58: eb 82 jmp 10bedc <_CORE_message_queue_Submit+0x28> 10bf5a: 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 ) { 10bf5c: 8b 43 48 mov 0x48(%ebx),%eax 10bf5f: e9 6e ff ff ff jmp 10bed2 <_CORE_message_queue_Submit+0x1e> 0010bf70 <_CORE_mutex_Initialize>: CORE_mutex_Status _CORE_mutex_Initialize( CORE_mutex_Control *the_mutex, CORE_mutex_Attributes *the_mutex_attributes, uint32_t initial_lock ) { 10bf70: 55 push %ebp 10bf71: 89 e5 mov %esp,%ebp 10bf73: 57 push %edi 10bf74: 56 push %esi 10bf75: 53 push %ebx 10bf76: 83 ec 0c sub $0xc,%esp 10bf79: 8b 45 08 mov 0x8(%ebp),%eax 10bf7c: 8b 5d 0c mov 0xc(%ebp),%ebx 10bf7f: 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; 10bf82: 8d 78 40 lea 0x40(%eax),%edi 10bf85: b9 04 00 00 00 mov $0x4,%ecx 10bf8a: 89 de mov %ebx,%esi 10bf8c: f3 a5 rep movsl %ds:(%esi),%es:(%edi) the_mutex->lock = initial_lock; 10bf8e: 89 50 50 mov %edx,0x50(%eax) the_mutex->blocked_count = 0; 10bf91: c7 40 58 00 00 00 00 movl $0x0,0x58(%eax) if ( initial_lock == CORE_MUTEX_LOCKED ) { 10bf98: 85 d2 test %edx,%edx 10bf9a: 75 30 jne 10bfcc <_CORE_mutex_Initialize+0x5c> the_mutex->nest_count = 1; 10bf9c: c7 40 54 01 00 00 00 movl $0x1,0x54(%eax) the_mutex->holder = _Thread_Executing; 10bfa3: 8b 15 18 54 12 00 mov 0x125418,%edx 10bfa9: 89 50 5c mov %edx,0x5c(%eax) the_mutex->holder_id = _Thread_Executing->Object.id; 10bfac: 8b 4a 08 mov 0x8(%edx),%ecx 10bfaf: 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; 10bfb2: 8b 48 48 mov 0x48(%eax),%ecx if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 10bfb5: 83 f9 02 cmp $0x2,%ecx 10bfb8: 74 05 je 10bfbf <_CORE_mutex_Initialize+0x4f> 10bfba: 83 f9 03 cmp $0x3,%ecx 10bfbd: 75 22 jne 10bfe1 <_CORE_mutex_Initialize+0x71> _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { if ( _Thread_Executing->current_priority < the_mutex->Attributes.priority_ceiling ) 10bfbf: 8b 4a 14 mov 0x14(%edx),%ecx 10bfc2: 3b 48 4c cmp 0x4c(%eax),%ecx 10bfc5: 72 41 jb 10c008 <_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++; 10bfc7: ff 42 1c incl 0x1c(%edx) 10bfca: eb 15 jmp 10bfe1 <_CORE_mutex_Initialize+0x71> } } else { the_mutex->nest_count = 0; 10bfcc: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) the_mutex->holder = NULL; 10bfd3: c7 40 5c 00 00 00 00 movl $0x0,0x5c(%eax) the_mutex->holder_id = 0; 10bfda: c7 40 60 00 00 00 00 movl $0x0,0x60(%eax) } _Thread_queue_Initialize( 10bfe1: 6a 05 push $0x5 10bfe3: 68 00 04 00 00 push $0x400 10bfe8: 31 d2 xor %edx,%edx 10bfea: 83 7b 08 00 cmpl $0x0,0x8(%ebx) 10bfee: 0f 95 c2 setne %dl 10bff1: 52 push %edx 10bff2: 50 push %eax 10bff3: e8 34 1b 00 00 call 10db2c <_Thread_queue_Initialize> 10bff8: 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; 10bffa: 83 c4 10 add $0x10,%esp } 10bffd: 8d 65 f4 lea -0xc(%ebp),%esp 10c000: 5b pop %ebx 10c001: 5e pop %esi 10c002: 5f pop %edi 10c003: c9 leave 10c004: c3 ret 10c005: 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 ) 10c008: b8 06 00 00 00 mov $0x6,%eax STATES_WAITING_FOR_MUTEX, CORE_MUTEX_TIMEOUT ); return CORE_MUTEX_STATUS_SUCCESSFUL; } 10c00d: 8d 65 f4 lea -0xc(%ebp),%esp 10c010: 5b pop %ebx 10c011: 5e pop %esi 10c012: 5f pop %edi 10c013: c9 leave 10c014: c3 ret 0010c068 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) { 10c068: 55 push %ebp 10c069: 89 e5 mov %esp,%ebp 10c06b: 53 push %ebx 10c06c: 83 ec 14 sub $0x14,%esp 10c06f: 8b 5d 08 mov 0x8(%ebp),%ebx 10c072: 8a 55 10 mov 0x10(%ebp),%dl _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 10c075: a1 58 53 12 00 mov 0x125358,%eax 10c07a: 85 c0 test %eax,%eax 10c07c: 74 04 je 10c082 <_CORE_mutex_Seize+0x1a> 10c07e: 84 d2 test %dl,%dl 10c080: 75 36 jne 10c0b8 <_CORE_mutex_Seize+0x50> 10c082: 83 ec 08 sub $0x8,%esp 10c085: 8d 45 18 lea 0x18(%ebp),%eax 10c088: 50 push %eax 10c089: 53 push %ebx 10c08a: 88 55 f4 mov %dl,-0xc(%ebp) 10c08d: e8 2a 40 00 00 call 1100bc <_CORE_mutex_Seize_interrupt_trylock> 10c092: 83 c4 10 add $0x10,%esp 10c095: 85 c0 test %eax,%eax 10c097: 8a 55 f4 mov -0xc(%ebp),%dl 10c09a: 74 14 je 10c0b0 <_CORE_mutex_Seize+0x48> 10c09c: 84 d2 test %dl,%dl 10c09e: 75 30 jne 10c0d0 <_CORE_mutex_Seize+0x68> 10c0a0: ff 75 18 pushl 0x18(%ebp) 10c0a3: 9d popf 10c0a4: a1 18 54 12 00 mov 0x125418,%eax 10c0a9: c7 40 34 01 00 00 00 movl $0x1,0x34(%eax) } 10c0b0: 8b 5d fc mov -0x4(%ebp),%ebx 10c0b3: c9 leave 10c0b4: c3 ret 10c0b5: 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 ); 10c0b8: 83 3d 20 55 12 00 01 cmpl $0x1,0x125520 10c0bf: 76 c1 jbe 10c082 <_CORE_mutex_Seize+0x1a> 10c0c1: 53 push %ebx 10c0c2: 6a 13 push $0x13 10c0c4: 6a 00 push $0x0 10c0c6: 6a 00 push $0x0 10c0c8: e8 9b 05 00 00 call 10c668 <_Internal_error_Occurred> 10c0cd: 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; 10c0d0: c7 43 30 01 00 00 00 movl $0x1,0x30(%ebx) 10c0d7: a1 18 54 12 00 mov 0x125418,%eax 10c0dc: 89 58 44 mov %ebx,0x44(%eax) 10c0df: 8b 55 0c mov 0xc(%ebp),%edx 10c0e2: 89 50 20 mov %edx,0x20(%eax) 10c0e5: a1 58 53 12 00 mov 0x125358,%eax 10c0ea: 40 inc %eax 10c0eb: a3 58 53 12 00 mov %eax,0x125358 10c0f0: ff 75 18 pushl 0x18(%ebp) 10c0f3: 9d popf 10c0f4: 83 ec 08 sub $0x8,%esp 10c0f7: ff 75 14 pushl 0x14(%ebp) 10c0fa: 53 push %ebx 10c0fb: e8 18 ff ff ff call 10c018 <_CORE_mutex_Seize_interrupt_blocking> 10c100: 83 c4 10 add $0x10,%esp } 10c103: 8b 5d fc mov -0x4(%ebp),%ebx 10c106: c9 leave 10c107: c3 ret 001100bc <_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 ) { 1100bc: 55 push %ebp 1100bd: 89 e5 mov %esp,%ebp 1100bf: 56 push %esi 1100c0: 53 push %ebx 1100c1: 8b 45 08 mov 0x8(%ebp),%eax 1100c4: 8b 4d 0c mov 0xc(%ebp),%ecx { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 1100c7: 8b 15 18 54 12 00 mov 0x125418,%edx executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 1100cd: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx) if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 1100d4: 8b 58 50 mov 0x50(%eax),%ebx 1100d7: 85 db test %ebx,%ebx 1100d9: 74 31 je 11010c <_CORE_mutex_Seize_interrupt_trylock+0x50> the_mutex->lock = CORE_MUTEX_LOCKED; 1100db: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) the_mutex->holder = executing; 1100e2: 89 50 5c mov %edx,0x5c(%eax) the_mutex->holder_id = executing->Object.id; 1100e5: 8b 5a 08 mov 0x8(%edx),%ebx 1100e8: 89 58 60 mov %ebx,0x60(%eax) the_mutex->nest_count = 1; 1100eb: 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; 1100f2: 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 ) || 1100f5: 83 fb 02 cmp $0x2,%ebx 1100f8: 74 26 je 110120 <_CORE_mutex_Seize_interrupt_trylock+0x64> 1100fa: 83 fb 03 cmp $0x3,%ebx 1100fd: 74 3d je 11013c <_CORE_mutex_Seize_interrupt_trylock+0x80> executing->resource_count++; } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { _ISR_Enable( *level_p ); 1100ff: ff 31 pushl (%ecx) 110101: 9d popf 110102: 31 c0 xor %eax,%eax return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 110104: 8d 65 f8 lea -0x8(%ebp),%esp 110107: 5b pop %ebx 110108: 5e pop %esi 110109: c9 leave 11010a: c3 ret 11010b: 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 ) ) { 11010c: 3b 50 5c cmp 0x5c(%eax),%edx 11010f: 74 17 je 110128 <_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 ); 110111: b8 01 00 00 00 mov $0x1,%eax 110116: 8d 65 f8 lea -0x8(%ebp),%esp 110119: 5b pop %ebx 11011a: 5e pop %esi 11011b: c9 leave 11011c: c3 ret 11011d: 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++; 110120: ff 42 1c incl 0x1c(%edx) 110123: eb da jmp 1100ff <_CORE_mutex_Seize_interrupt_trylock+0x43> 110125: 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 ) { 110128: 8b 58 40 mov 0x40(%eax),%ebx 11012b: 85 db test %ebx,%ebx 11012d: 75 45 jne 110174 <_CORE_mutex_Seize_interrupt_trylock+0xb8> case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 11012f: ff 40 54 incl 0x54(%eax) _ISR_Enable( *level_p ); 110132: ff 31 pushl (%ecx) 110134: 9d popf 110135: 31 c0 xor %eax,%eax 110137: eb dd jmp 110116 <_CORE_mutex_Seize_interrupt_trylock+0x5a> 110139: 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++; 11013c: 8b 5a 1c mov 0x1c(%edx),%ebx 11013f: 8d 73 01 lea 0x1(%ebx),%esi 110142: 89 72 1c mov %esi,0x1c(%edx) { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; current = executing->current_priority; 110145: 8b 72 14 mov 0x14(%edx),%esi if ( current == ceiling ) { 110148: 39 70 4c cmp %esi,0x4c(%eax) 11014b: 74 6b je 1101b8 <_CORE_mutex_Seize_interrupt_trylock+0xfc> _ISR_Enable( *level_p ); return 0; } if ( current > ceiling ) { 11014d: 72 39 jb 110188 <_CORE_mutex_Seize_interrupt_trylock+0xcc> ); _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 11014f: c7 42 34 06 00 00 00 movl $0x6,0x34(%edx) the_mutex->lock = CORE_MUTEX_UNLOCKED; 110156: c7 40 50 01 00 00 00 movl $0x1,0x50(%eax) the_mutex->nest_count = 0; /* undo locking above */ 11015d: c7 40 54 00 00 00 00 movl $0x0,0x54(%eax) executing->resource_count--; /* undo locking above */ 110164: 89 5a 1c mov %ebx,0x1c(%edx) _ISR_Enable( *level_p ); 110167: ff 31 pushl (%ecx) 110169: 9d popf 11016a: 31 c0 xor %eax,%eax 11016c: 8d 65 f8 lea -0x8(%ebp),%esp 11016f: 5b pop %ebx 110170: 5e pop %esi 110171: c9 leave 110172: c3 ret 110173: 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 ) { 110174: 4b dec %ebx 110175: 75 9a jne 110111 <_CORE_mutex_Seize_interrupt_trylock+0x55> 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; 110177: c7 42 34 02 00 00 00 movl $0x2,0x34(%edx) <== NOT EXECUTED _ISR_Enable( *level_p ); 11017e: ff 31 pushl (%ecx) <== NOT EXECUTED 110180: 9d popf <== NOT EXECUTED 110181: 31 c0 xor %eax,%eax <== NOT EXECUTED 110183: eb 91 jmp 110116 <_CORE_mutex_Seize_interrupt_trylock+0x5a> <== NOT EXECUTED 110185: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 110188: 8b 15 58 53 12 00 mov 0x125358,%edx 11018e: 42 inc %edx 11018f: 89 15 58 53 12 00 mov %edx,0x125358 return 0; } if ( current > ceiling ) { _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); 110195: ff 31 pushl (%ecx) 110197: 9d popf _Thread_Change_priority( 110198: 52 push %edx 110199: 6a 00 push $0x0 11019b: ff 70 4c pushl 0x4c(%eax) 11019e: ff 70 5c pushl 0x5c(%eax) 1101a1: e8 6a cd ff ff call 10cf10 <_Thread_Change_priority> the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); 1101a6: e8 4d d2 ff ff call 10d3f8 <_Thread_Enable_dispatch> 1101ab: 31 c0 xor %eax,%eax 1101ad: 83 c4 10 add $0x10,%esp 1101b0: e9 61 ff ff ff jmp 110116 <_CORE_mutex_Seize_interrupt_trylock+0x5a> 1101b5: 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 ); 1101b8: ff 31 pushl (%ecx) 1101ba: 9d popf 1101bb: 31 c0 xor %eax,%eax 1101bd: e9 54 ff ff ff jmp 110116 <_CORE_mutex_Seize_interrupt_trylock+0x5a> 0010c108 <_CORE_mutex_Surrender>: #else Objects_Id id __attribute__((unused)), CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused)) #endif ) { 10c108: 55 push %ebp 10c109: 89 e5 mov %esp,%ebp 10c10b: 53 push %ebx 10c10c: 83 ec 04 sub $0x4,%esp 10c10f: 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; 10c112: 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 ) { 10c115: 80 7b 44 00 cmpb $0x0,0x44(%ebx) 10c119: 74 15 je 10c130 <_CORE_mutex_Surrender+0x28> if ( !_Thread_Is_executing( holder ) ) 10c11b: 3b 05 18 54 12 00 cmp 0x125418,%eax 10c121: 74 0d je 10c130 <_CORE_mutex_Surrender+0x28> 10c123: b8 03 00 00 00 mov $0x3,%eax } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; return CORE_MUTEX_STATUS_SUCCESSFUL; } 10c128: 8b 5d fc mov -0x4(%ebp),%ebx 10c12b: c9 leave 10c12c: c3 ret 10c12d: 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 ) 10c130: 8b 53 54 mov 0x54(%ebx),%edx 10c133: 85 d2 test %edx,%edx 10c135: 74 65 je 10c19c <_CORE_mutex_Surrender+0x94> return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; 10c137: 4a dec %edx 10c138: 89 53 54 mov %edx,0x54(%ebx) if ( the_mutex->nest_count != 0 ) { 10c13b: 85 d2 test %edx,%edx 10c13d: 75 5d jne 10c19c <_CORE_mutex_Surrender+0x94> 10c13f: 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 ) || 10c142: 83 fa 02 cmp $0x2,%edx 10c145: 0f 84 99 00 00 00 je 10c1e4 <_CORE_mutex_Surrender+0xdc> 10c14b: 83 fa 03 cmp $0x3,%edx 10c14e: 0f 84 90 00 00 00 je 10c1e4 <_CORE_mutex_Surrender+0xdc> } first_node = _Chain_Get_first_unprotected(&holder->lock_mutex); #endif holder->resource_count--; } the_mutex->holder = NULL; 10c154: c7 43 5c 00 00 00 00 movl $0x0,0x5c(%ebx) the_mutex->holder_id = 0; 10c15b: 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 ) || 10c162: 83 fa 02 cmp $0x2,%edx 10c165: 74 5d je 10c1c4 <_CORE_mutex_Surrender+0xbc> 10c167: 83 fa 03 cmp $0x3,%edx 10c16a: 74 58 je 10c1c4 <_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 ) ) ) { 10c16c: 83 ec 0c sub $0xc,%esp 10c16f: 53 push %ebx 10c170: e8 3b 16 00 00 call 10d7b0 <_Thread_queue_Dequeue> 10c175: 83 c4 10 add $0x10,%esp 10c178: 85 c0 test %eax,%eax 10c17a: 74 7c je 10c1f8 <_CORE_mutex_Surrender+0xf0> } else #endif { the_mutex->holder = the_thread; 10c17c: 89 43 5c mov %eax,0x5c(%ebx) the_mutex->holder_id = the_thread->Object.id; 10c17f: 8b 50 08 mov 0x8(%eax),%edx 10c182: 89 53 60 mov %edx,0x60(%ebx) the_mutex->nest_count = 1; 10c185: c7 43 54 01 00 00 00 movl $0x1,0x54(%ebx) switch ( the_mutex->Attributes.discipline ) { 10c18c: 8b 53 48 mov 0x48(%ebx),%edx 10c18f: 83 fa 02 cmp $0x2,%edx 10c192: 74 58 je 10c1ec <_CORE_mutex_Surrender+0xe4> 10c194: 83 fa 03 cmp $0x3,%edx 10c197: 74 0b je 10c1a4 <_CORE_mutex_Surrender+0x9c> 10c199: 8d 76 00 lea 0x0(%esi),%esi } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 10c19c: 31 c0 xor %eax,%eax return CORE_MUTEX_STATUS_SUCCESSFUL; } 10c19e: 8b 5d fc mov -0x4(%ebp),%ebx 10c1a1: c9 leave 10c1a2: c3 ret 10c1a3: 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++; 10c1a4: ff 40 1c incl 0x1c(%eax) if (the_mutex->Attributes.priority_ceiling < 10c1a7: 8b 53 4c mov 0x4c(%ebx),%edx the_thread->current_priority){ 10c1aa: 3b 50 14 cmp 0x14(%eax),%edx 10c1ad: 73 ed jae 10c19c <_CORE_mutex_Surrender+0x94> _Thread_Change_priority( 10c1af: 51 push %ecx 10c1b0: 6a 00 push $0x0 10c1b2: 52 push %edx 10c1b3: 50 push %eax 10c1b4: e8 57 0d 00 00 call 10cf10 <_Thread_Change_priority> 10c1b9: 31 c0 xor %eax,%eax 10c1bb: 83 c4 10 add $0x10,%esp 10c1be: e9 65 ff ff ff jmp 10c128 <_CORE_mutex_Surrender+0x20> 10c1c3: 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 && 10c1c4: 8b 50 1c mov 0x1c(%eax),%edx 10c1c7: 85 d2 test %edx,%edx 10c1c9: 75 a1 jne 10c16c <_CORE_mutex_Surrender+0x64> holder->real_priority != holder->current_priority ) { 10c1cb: 8b 50 18 mov 0x18(%eax),%edx 10c1ce: 3b 50 14 cmp 0x14(%eax),%edx 10c1d1: 74 99 je 10c16c <_CORE_mutex_Surrender+0x64> _Thread_Change_priority( holder, holder->real_priority, true ); 10c1d3: 51 push %ecx 10c1d4: 6a 01 push $0x1 10c1d6: 52 push %edx 10c1d7: 50 push %eax 10c1d8: e8 33 0d 00 00 call 10cf10 <_Thread_Change_priority> 10c1dd: 83 c4 10 add $0x10,%esp 10c1e0: eb 8a jmp 10c16c <_CORE_mutex_Surrender+0x64> 10c1e2: 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--; 10c1e4: ff 48 1c decl 0x1c(%eax) 10c1e7: e9 68 ff ff ff jmp 10c154 <_CORE_mutex_Surrender+0x4c> case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT: #ifdef __RTEMS_STRICT_ORDER_MUTEX__ _Chain_Prepend_unprotected(&the_thread->lock_mutex,&the_mutex->queue.lock_queue); the_mutex->queue.priority_before = the_thread->current_priority; #endif the_thread->resource_count++; 10c1ec: ff 40 1c incl 0x1c(%eax) 10c1ef: 31 c0 xor %eax,%eax break; 10c1f1: e9 32 ff ff ff jmp 10c128 <_CORE_mutex_Surrender+0x20> 10c1f6: 66 90 xchg %ax,%ax <== NOT EXECUTED } break; } } } else the_mutex->lock = CORE_MUTEX_UNLOCKED; 10c1f8: c7 43 50 01 00 00 00 movl $0x1,0x50(%ebx) 10c1ff: 31 c0 xor %eax,%eax 10c201: e9 22 ff ff ff jmp 10c128 <_CORE_mutex_Surrender+0x20> 0010c254 <_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 ) { 10c254: 55 push %ebp 10c255: 89 e5 mov %esp,%ebp 10c257: 53 push %ebx 10c258: 83 ec 10 sub $0x10,%esp 10c25b: 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)) ) { 10c25e: 53 push %ebx 10c25f: e8 4c 15 00 00 call 10d7b0 <_Thread_queue_Dequeue> 10c264: 83 c4 10 add $0x10,%esp 10c267: 85 c0 test %eax,%eax 10c269: 74 09 je 10c274 <_CORE_semaphore_Surrender+0x20> 10c26b: 31 c0 xor %eax,%eax status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); } return status; } 10c26d: 8b 5d fc mov -0x4(%ebp),%ebx 10c270: c9 leave 10c271: c3 ret 10c272: 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 ); 10c274: 9c pushf 10c275: fa cli 10c276: 5a pop %edx if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) 10c277: 8b 43 48 mov 0x48(%ebx),%eax 10c27a: 3b 43 40 cmp 0x40(%ebx),%eax 10c27d: 72 0d jb 10c28c <_CORE_semaphore_Surrender+0x38> 10c27f: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED the_semaphore->count += 1; else status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED; _ISR_Enable( level ); 10c284: 52 push %edx 10c285: 9d popf } return status; } 10c286: 8b 5d fc mov -0x4(%ebp),%ebx 10c289: c9 leave 10c28a: c3 ret 10c28b: 90 nop <== NOT EXECUTED #endif } else { _ISR_Disable( level ); if ( the_semaphore->count < the_semaphore->Attributes.maximum_count ) the_semaphore->count += 1; 10c28c: 40 inc %eax 10c28d: 89 43 48 mov %eax,0x48(%ebx) 10c290: 31 c0 xor %eax,%eax 10c292: eb f0 jmp 10c284 <_CORE_semaphore_Surrender+0x30> 0010be90 <_Chain_Get>: */ Chain_Node *_Chain_Get( Chain_Control *the_chain ) { 10be90: 55 push %ebp 10be91: 89 e5 mov %esp,%ebp 10be93: 53 push %ebx 10be94: 8b 55 08 mov 0x8(%ebp),%edx ISR_Level level; Chain_Node *return_node; return_node = NULL; _ISR_Disable( level ); 10be97: 9c pushf 10be98: fa cli 10be99: 5b pop %ebx */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 10be9a: 8b 02 mov (%edx),%eax */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10be9c: 8d 4a 04 lea 0x4(%edx),%ecx 10be9f: 39 c8 cmp %ecx,%eax 10bea1: 74 0d je 10beb0 <_Chain_Get+0x20> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 10bea3: 8b 08 mov (%eax),%ecx the_chain->first = new_first; 10bea5: 89 0a mov %ecx,(%edx) new_first->previous = _Chain_Head(the_chain); 10bea7: 89 51 04 mov %edx,0x4(%ecx) if ( !_Chain_Is_empty( the_chain ) ) return_node = _Chain_Get_first_unprotected( the_chain ); _ISR_Enable( level ); 10beaa: 53 push %ebx 10beab: 9d popf return return_node; } 10beac: 5b pop %ebx 10bead: c9 leave 10beae: c3 ret 10beaf: 90 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10beb0: 31 c0 xor %eax,%eax 10beb2: eb f6 jmp 10beaa <_Chain_Get+0x1a> 00110038 <_Chain_Initialize>: Chain_Control *the_chain, void *starting_address, size_t number_nodes, size_t node_size ) { 110038: 55 push %ebp 110039: 89 e5 mov %esp,%ebp 11003b: 57 push %edi 11003c: 56 push %esi 11003d: 53 push %ebx 11003e: 8b 7d 08 mov 0x8(%ebp),%edi 110041: 8b 4d 10 mov 0x10(%ebp),%ecx 110044: 8b 75 14 mov 0x14(%ebp),%esi */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 110047: 89 fa mov %edi,%edx Chain_Node *current; Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; 110049: c7 47 04 00 00 00 00 movl $0x0,0x4(%edi) next = starting_address; while ( count-- ) { 110050: 85 c9 test %ecx,%ecx 110052: 74 17 je 11006b <_Chain_Initialize+0x33> Chain_Node *next; count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; 110054: 8b 45 0c mov 0xc(%ebp),%eax 110057: eb 05 jmp 11005e <_Chain_Initialize+0x26> 110059: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED while ( count-- ) { 11005c: 89 d8 mov %ebx,%eax current->next = next; 11005e: 89 02 mov %eax,(%edx) next->previous = current; 110060: 89 50 04 mov %edx,0x4(%eax) 110063: 8d 1c 30 lea (%eax,%esi,1),%ebx current = next; next = (Chain_Node *) 110066: 89 c2 mov %eax,%edx count = number_nodes; current = _Chain_Head( the_chain ); the_chain->permanent_null = NULL; next = starting_address; while ( count-- ) { 110068: 49 dec %ecx 110069: 75 f1 jne 11005c <_Chain_Initialize+0x24> next->previous = current; current = next; next = (Chain_Node *) _Addresses_Add_offset( (void *) next, node_size ); } current->next = _Chain_Tail( the_chain ); 11006b: 8d 47 04 lea 0x4(%edi),%eax 11006e: 89 02 mov %eax,(%edx) the_chain->last = current; 110070: 89 57 08 mov %edx,0x8(%edi) } 110073: 5b pop %ebx 110074: 5e pop %esi 110075: 5f pop %edi 110076: c9 leave 110077: c3 ret 0010af64 <_Event_Seize>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) { 10af64: 55 push %ebp 10af65: 89 e5 mov %esp,%ebp 10af67: 57 push %edi 10af68: 56 push %esi 10af69: 53 push %ebx 10af6a: 83 ec 2c sub $0x2c,%esp 10af6d: 8b 45 08 mov 0x8(%ebp),%eax 10af70: 8b 4d 0c mov 0xc(%ebp),%ecx 10af73: 8b 55 10 mov 0x10(%ebp),%edx 10af76: 89 55 dc mov %edx,-0x24(%ebp) 10af79: 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; 10af7c: 8b 1d 18 54 12 00 mov 0x125418,%ebx executing->Wait.return_code = RTEMS_SUCCESSFUL; 10af82: c7 43 34 00 00 00 00 movl $0x0,0x34(%ebx) api = executing->API_Extensions[ THREAD_API_RTEMS ]; 10af89: 8b b3 f0 00 00 00 mov 0xf0(%ebx),%esi _ISR_Disable( level ); 10af8f: 9c pushf 10af90: fa cli 10af91: 8f 45 e0 popl -0x20(%ebp) pending_events = api->pending_events; 10af94: 8b 16 mov (%esi),%edx 10af96: 89 55 d4 mov %edx,-0x2c(%ebp) seized_events = _Event_sets_Get( pending_events, event_in ); if ( !_Event_sets_Is_empty( seized_events ) && 10af99: 21 c2 and %eax,%edx 10af9b: 89 55 e4 mov %edx,-0x1c(%ebp) 10af9e: 74 0d je 10afad <_Event_Seize+0x49> 10afa0: 39 d0 cmp %edx,%eax 10afa2: 0f 84 84 00 00 00 je 10b02c <_Event_Seize+0xc8> 10afa8: f6 c1 02 test $0x2,%cl 10afab: 75 7f jne 10b02c <_Event_Seize+0xc8> _ISR_Enable( level ); *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { 10afad: f6 c1 01 test $0x1,%cl 10afb0: 75 62 jne 10b014 <_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; 10afb2: 89 4b 30 mov %ecx,0x30(%ebx) executing->Wait.count = (uint32_t) event_in; 10afb5: 89 43 24 mov %eax,0x24(%ebx) executing->Wait.return_argument = event_out; 10afb8: 89 7b 28 mov %edi,0x28(%ebx) _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 10afbb: c7 05 0c 56 12 00 01 movl $0x1,0x12560c 10afc2: 00 00 00 _ISR_Enable( level ); 10afc5: ff 75 e0 pushl -0x20(%ebp) 10afc8: 9d popf if ( ticks ) { 10afc9: 8b 45 dc mov -0x24(%ebp),%eax 10afcc: 85 c0 test %eax,%eax 10afce: 0f 85 80 00 00 00 jne 10b054 <_Event_Seize+0xf0> NULL ); _Watchdog_Insert_ticks( &executing->Timer, ticks ); } _Thread_Set_state( executing, STATES_WAITING_FOR_EVENT ); 10afd4: 83 ec 08 sub $0x8,%esp 10afd7: 68 00 01 00 00 push $0x100 10afdc: 53 push %ebx 10afdd: e8 9e 2c 00 00 call 10dc80 <_Thread_Set_state> _ISR_Disable( level ); 10afe2: 9c pushf 10afe3: fa cli 10afe4: 5a pop %edx sync_state = _Event_Sync_state; 10afe5: a1 0c 56 12 00 mov 0x12560c,%eax _Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 10afea: c7 05 0c 56 12 00 00 movl $0x0,0x12560c 10aff1: 00 00 00 if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) { 10aff4: 83 c4 10 add $0x10,%esp 10aff7: 83 f8 01 cmp $0x1,%eax 10affa: 74 4c je 10b048 <_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 ); 10affc: 89 55 10 mov %edx,0x10(%ebp) 10afff: 89 5d 0c mov %ebx,0xc(%ebp) 10b002: 89 45 08 mov %eax,0x8(%ebp) } 10b005: 8d 65 f4 lea -0xc(%ebp),%esp 10b008: 5b pop %ebx 10b009: 5e pop %esi 10b00a: 5f pop %edi 10b00b: 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 ); 10b00c: e9 b3 1e 00 00 jmp 10cec4 <_Thread_blocking_operation_Cancel> 10b011: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED *event_out = seized_events; return; } if ( _Options_Is_no_wait( option_set ) ) { _ISR_Enable( level ); 10b014: ff 75 e0 pushl -0x20(%ebp) 10b017: 9d popf executing->Wait.return_code = RTEMS_UNSATISFIED; 10b018: c7 43 34 0d 00 00 00 movl $0xd,0x34(%ebx) *event_out = seized_events; 10b01f: 8b 55 e4 mov -0x1c(%ebp),%edx 10b022: 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 ); } 10b024: 8d 65 f4 lea -0xc(%ebp),%esp 10b027: 5b pop %ebx 10b028: 5e pop %esi 10b029: 5f pop %edi 10b02a: c9 leave 10b02b: 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 = 10b02c: 8b 45 e4 mov -0x1c(%ebp),%eax 10b02f: f7 d0 not %eax 10b031: 23 45 d4 and -0x2c(%ebp),%eax 10b034: 89 06 mov %eax,(%esi) _Event_sets_Clear( pending_events, seized_events ); _ISR_Enable( level ); 10b036: ff 75 e0 pushl -0x20(%ebp) 10b039: 9d popf *event_out = seized_events; 10b03a: 8b 45 e4 mov -0x1c(%ebp),%eax 10b03d: 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 ); } 10b03f: 8d 65 f4 lea -0xc(%ebp),%esp 10b042: 5b pop %ebx 10b043: 5e pop %esi 10b044: 5f pop %edi 10b045: c9 leave 10b046: c3 ret 10b047: 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 ); 10b048: 52 push %edx 10b049: 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 ); } 10b04a: 8d 65 f4 lea -0xc(%ebp),%esp 10b04d: 5b pop %ebx 10b04e: 5e pop %esi 10b04f: 5f pop %edi 10b050: c9 leave 10b051: c3 ret 10b052: 66 90 xchg %ax,%ax <== NOT EXECUTED _Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; _ISR_Enable( level ); if ( ticks ) { _Watchdog_Initialize( 10b054: 8b 43 08 mov 0x8(%ebx),%eax Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 10b057: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx) the_watchdog->routine = routine; 10b05e: c7 43 64 08 b2 10 00 movl $0x10b208,0x64(%ebx) the_watchdog->id = id; 10b065: 89 43 68 mov %eax,0x68(%ebx) the_watchdog->user_data = user_data; 10b068: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 10b06f: 8b 45 dc mov -0x24(%ebp),%eax 10b072: 89 43 54 mov %eax,0x54(%ebx) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 10b075: 83 ec 08 sub $0x8,%esp 10b078: 8d 43 48 lea 0x48(%ebx),%eax 10b07b: 50 push %eax 10b07c: 68 38 54 12 00 push $0x125438 10b081: e8 4a 32 00 00 call 10e2d0 <_Watchdog_Insert> 10b086: 83 c4 10 add $0x10,%esp 10b089: e9 46 ff ff ff jmp 10afd4 <_Event_Seize+0x70> 0010b0e4 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { 10b0e4: 55 push %ebp 10b0e5: 89 e5 mov %esp,%ebp 10b0e7: 57 push %edi 10b0e8: 56 push %esi 10b0e9: 53 push %ebx 10b0ea: 83 ec 1c sub $0x1c,%esp 10b0ed: 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 ]; 10b0f0: 8b 8b f0 00 00 00 mov 0xf0(%ebx),%ecx option_set = (rtems_option) the_thread->Wait.option; 10b0f6: 8b 73 30 mov 0x30(%ebx),%esi _ISR_Disable( level ); 10b0f9: 9c pushf 10b0fa: fa cli 10b0fb: 8f 45 e4 popl -0x1c(%ebp) pending_events = api->pending_events; 10b0fe: 8b 11 mov (%ecx),%edx event_condition = (rtems_event_set) the_thread->Wait.count; 10b100: 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 ) ) { 10b103: 89 c7 mov %eax,%edi 10b105: 21 d7 and %edx,%edi 10b107: 89 7d e0 mov %edi,-0x20(%ebp) 10b10a: 74 74 je 10b180 <_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() && 10b10c: 8b 3d f4 53 12 00 mov 0x1253f4,%edi 10b112: 85 ff test %edi,%edi 10b114: 74 0c je 10b122 <_Event_Surrender+0x3e> 10b116: 3b 1d 18 54 12 00 cmp 0x125418,%ebx 10b11c: 0f 84 96 00 00 00 je 10b1b8 <_Event_Surrender+0xd4> } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 10b122: f6 43 11 01 testb $0x1,0x11(%ebx) 10b126: 74 4c je 10b174 <_Event_Surrender+0x90> if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 10b128: 3b 45 e0 cmp -0x20(%ebp),%eax 10b12b: 74 05 je 10b132 <_Event_Surrender+0x4e> 10b12d: 83 e6 02 and $0x2,%esi 10b130: 74 42 je 10b174 <_Event_Surrender+0x90> api->pending_events = _Event_sets_Clear( pending_events, seized_events ); 10b132: 8b 45 e0 mov -0x20(%ebp),%eax 10b135: f7 d0 not %eax 10b137: 21 d0 and %edx,%eax 10b139: 89 01 mov %eax,(%ecx) the_thread->Wait.count = 0; 10b13b: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 10b142: 8b 43 28 mov 0x28(%ebx),%eax 10b145: 8b 7d e0 mov -0x20(%ebp),%edi 10b148: 89 38 mov %edi,(%eax) _ISR_Flash( level ); 10b14a: ff 75 e4 pushl -0x1c(%ebp) 10b14d: 9d popf 10b14e: fa cli if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 10b14f: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 10b153: 74 37 je 10b18c <_Event_Surrender+0xa8> _ISR_Enable( level ); 10b155: ff 75 e4 pushl -0x1c(%ebp) 10b158: 9d popf RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 10b159: 83 ec 08 sub $0x8,%esp 10b15c: 68 f8 ff 03 10 push $0x1003fff8 10b161: 53 push %ebx 10b162: e8 e9 1e 00 00 call 10d050 <_Thread_Clear_state> 10b167: 83 c4 10 add $0x10,%esp } return; } } _ISR_Enable( level ); } 10b16a: 8d 65 f4 lea -0xc(%ebp),%esp 10b16d: 5b pop %ebx 10b16e: 5e pop %esi 10b16f: 5f pop %edi 10b170: c9 leave 10b171: c3 ret 10b172: 66 90 xchg %ax,%ax <== NOT EXECUTED _Thread_Unblock( the_thread ); } return; } } _ISR_Enable( level ); 10b174: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 10b177: 9d popf <== NOT EXECUTED } 10b178: 8d 65 f4 lea -0xc(%ebp),%esp 10b17b: 5b pop %ebx 10b17c: 5e pop %esi 10b17d: 5f pop %edi 10b17e: c9 leave 10b17f: c3 ret /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { _ISR_Enable( level ); 10b180: ff 75 e4 pushl -0x1c(%ebp) 10b183: 9d popf } return; } } _ISR_Enable( level ); } 10b184: 8d 65 f4 lea -0xc(%ebp),%esp 10b187: 5b pop %ebx 10b188: 5e pop %esi 10b189: 5f pop %edi 10b18a: c9 leave 10b18b: c3 ret RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 10b18c: 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 ); 10b193: ff 75 e4 pushl -0x1c(%ebp) 10b196: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 10b197: 83 ec 0c sub $0xc,%esp 10b19a: 8d 43 48 lea 0x48(%ebx),%eax 10b19d: 50 push %eax 10b19e: e8 65 32 00 00 call 10e408 <_Watchdog_Remove> 10b1a3: 58 pop %eax 10b1a4: 5a pop %edx 10b1a5: 68 f8 ff 03 10 push $0x1003fff8 10b1aa: 53 push %ebx 10b1ab: e8 a0 1e 00 00 call 10d050 <_Thread_Clear_state> 10b1b0: 83 c4 10 add $0x10,%esp 10b1b3: eb c3 jmp 10b178 <_Event_Surrender+0x94> 10b1b5: 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) || 10b1b8: 8b 3d 0c 56 12 00 mov 0x12560c,%edi /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && 10b1be: 83 ff 02 cmp $0x2,%edi 10b1c1: 74 0d je 10b1d0 <_Event_Surrender+0xec> _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { 10b1c3: 8b 3d 0c 56 12 00 mov 0x12560c,%edi /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && 10b1c9: 4f dec %edi 10b1ca: 0f 85 52 ff ff ff jne 10b122 <_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) ) { 10b1d0: 3b 45 e0 cmp -0x20(%ebp),%eax 10b1d3: 74 05 je 10b1da <_Event_Surrender+0xf6> 10b1d5: 83 e6 02 and $0x2,%esi 10b1d8: 74 22 je 10b1fc <_Event_Surrender+0x118> api->pending_events = _Event_sets_Clear( pending_events,seized_events ); 10b1da: 8b 45 e0 mov -0x20(%ebp),%eax 10b1dd: f7 d0 not %eax 10b1df: 21 d0 and %edx,%eax 10b1e1: 89 01 mov %eax,(%ecx) the_thread->Wait.count = 0; 10b1e3: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 10b1ea: 8b 43 28 mov 0x28(%ebx),%eax 10b1ed: 8b 55 e0 mov -0x20(%ebp),%edx 10b1f0: 89 10 mov %edx,(%eax) _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 10b1f2: c7 05 0c 56 12 00 03 movl $0x3,0x12560c 10b1f9: 00 00 00 } _ISR_Enable( level ); 10b1fc: ff 75 e4 pushl -0x1c(%ebp) 10b1ff: 9d popf return; 10b200: e9 73 ff ff ff jmp 10b178 <_Event_Surrender+0x94> 0010b208 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) { 10b208: 55 push %ebp 10b209: 89 e5 mov %esp,%ebp 10b20b: 83 ec 20 sub $0x20,%esp Thread_Control *the_thread; Objects_Locations location; ISR_Level level; the_thread = _Thread_Get( id, &location ); 10b20e: 8d 45 f4 lea -0xc(%ebp),%eax 10b211: 50 push %eax 10b212: ff 75 08 pushl 0x8(%ebp) 10b215: e8 02 22 00 00 call 10d41c <_Thread_Get> switch ( location ) { 10b21a: 83 c4 10 add $0x10,%esp 10b21d: 8b 55 f4 mov -0xc(%ebp),%edx 10b220: 85 d2 test %edx,%edx 10b222: 75 37 jne 10b25b <_Event_Timeout+0x53> * * 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 ); 10b224: 9c pushf 10b225: fa cli 10b226: 5a pop %edx _ISR_Enable( level ); return; } #endif the_thread->Wait.count = 0; 10b227: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax) if ( _Thread_Is_executing( the_thread ) ) { 10b22e: 3b 05 18 54 12 00 cmp 0x125418,%eax 10b234: 74 2a je 10b260 <_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; 10b236: c7 40 34 06 00 00 00 movl $0x6,0x34(%eax) _ISR_Enable( level ); 10b23d: 52 push %edx 10b23e: 9d popf 10b23f: 83 ec 08 sub $0x8,%esp 10b242: 68 f8 ff 03 10 push $0x1003fff8 10b247: 50 push %eax 10b248: e8 03 1e 00 00 call 10d050 <_Thread_Clear_state> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 10b24d: a1 58 53 12 00 mov 0x125358,%eax 10b252: 48 dec %eax 10b253: a3 58 53 12 00 mov %eax,0x125358 10b258: 83 c4 10 add $0x10,%esp case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 10b25b: c9 leave 10b25c: c3 ret 10b25d: 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 ) 10b260: 8b 0d 0c 56 12 00 mov 0x12560c,%ecx 10b266: 49 dec %ecx 10b267: 75 cd jne 10b236 <_Event_Timeout+0x2e> _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 10b269: c7 05 0c 56 12 00 02 movl $0x2,0x12560c 10b270: 00 00 00 10b273: eb c1 jmp 10b236 <_Event_Timeout+0x2e> 00110274 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 110274: 55 push %ebp 110275: 89 e5 mov %esp,%ebp 110277: 57 push %edi 110278: 56 push %esi 110279: 53 push %ebx 11027a: 83 ec 2c sub $0x2c,%esp 11027d: 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; 110280: 8b 45 08 mov 0x8(%ebp),%eax 110283: 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; 110286: 8b 50 10 mov 0x10(%eax),%edx 110289: 89 55 d4 mov %edx,-0x2c(%ebp) uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { 11028c: 89 f8 mov %edi,%eax 11028e: 83 c0 04 add $0x4,%eax 110291: 89 45 e0 mov %eax,-0x20(%ebp) 110294: 0f 82 5a 01 00 00 jb 1103f4 <_Heap_Allocate_aligned_with_boundary+0x180> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { 11029a: 8b 75 14 mov 0x14(%ebp),%esi 11029d: 85 f6 test %esi,%esi 11029f: 0f 85 48 01 00 00 jne 1103ed <_Heap_Allocate_aligned_with_boundary+0x179> if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 1102a5: 39 4d 08 cmp %ecx,0x8(%ebp) 1102a8: 0f 84 50 01 00 00 je 1103fe <_Heap_Allocate_aligned_with_boundary+0x18a> 1102ae: 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; 1102b5: 8b 55 d4 mov -0x2c(%ebp),%edx 1102b8: 83 c2 07 add $0x7,%edx 1102bb: 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; 1102be: c7 45 d8 04 00 00 00 movl $0x4,-0x28(%ebp) 1102c5: 29 7d d8 sub %edi,-0x28(%ebp) 1102c8: eb 19 jmp 1102e3 <_Heap_Allocate_aligned_with_boundary+0x6f> 1102ca: 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; 1102cc: 8d 59 08 lea 0x8(%ecx),%ebx boundary ); } } if ( alloc_begin != 0 ) { 1102cf: 85 db test %ebx,%ebx 1102d1: 0f 85 e9 00 00 00 jne 1103c0 <_Heap_Allocate_aligned_with_boundary+0x14c> break; } block = block->next; 1102d7: 8b 49 08 mov 0x8(%ecx),%ecx if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 1102da: 39 4d 08 cmp %ecx,0x8(%ebp) 1102dd: 0f 84 25 01 00 00 je 110408 <_Heap_Allocate_aligned_with_boundary+0x194> _HAssert( _Heap_Is_prev_used( block ) ); /* Statistics */ ++search_count; 1102e3: 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 ) { 1102e6: 8b 59 04 mov 0x4(%ecx),%ebx 1102e9: 39 5d e0 cmp %ebx,-0x20(%ebp) 1102ec: 73 e9 jae 1102d7 <_Heap_Allocate_aligned_with_boundary+0x63> if ( alignment == 0 ) { 1102ee: 8b 55 10 mov 0x10(%ebp),%edx 1102f1: 85 d2 test %edx,%edx 1102f3: 74 d7 je 1102cc <_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; 1102f5: 8b 45 08 mov 0x8(%ebp),%eax 1102f8: 8b 40 14 mov 0x14(%eax),%eax 1102fb: 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; 1102fe: 83 e3 fe and $0xfffffffe,%ebx 110301: 8d 1c 19 lea (%ecx,%ebx,1),%ebx 110304: 8d 51 08 lea 0x8(%ecx),%edx 110307: 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; 11030a: 8b 75 c8 mov -0x38(%ebp),%esi 11030d: 29 c6 sub %eax,%esi 11030f: 01 de add %ebx,%esi uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 110311: 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); 110314: 89 d8 mov %ebx,%eax 110316: 31 d2 xor %edx,%edx 110318: f7 75 10 divl 0x10(%ebp) 11031b: 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 ) { 11031d: 39 de cmp %ebx,%esi 11031f: 73 0b jae 11032c <_Heap_Allocate_aligned_with_boundary+0xb8> 110321: 89 f0 mov %esi,%eax 110323: 31 d2 xor %edx,%edx 110325: f7 75 10 divl 0x10(%ebp) 110328: 89 f3 mov %esi,%ebx 11032a: 29 d3 sub %edx,%ebx } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { 11032c: 8b 45 14 mov 0x14(%ebp),%eax 11032f: 85 c0 test %eax,%eax 110331: 74 59 je 11038c <_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; 110333: 8d 34 3b lea (%ebx,%edi,1),%esi 110336: 89 f0 mov %esi,%eax 110338: 31 d2 xor %edx,%edx 11033a: f7 75 14 divl 0x14(%ebp) 11033d: 89 f0 mov %esi,%eax 11033f: 29 d0 sub %edx,%eax 110341: 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 ) { 110343: 39 c3 cmp %eax,%ebx 110345: 73 45 jae 11038c <_Heap_Allocate_aligned_with_boundary+0x118> 110347: 39 c6 cmp %eax,%esi 110349: 76 41 jbe 11038c <_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; 11034b: 8b 45 cc mov -0x34(%ebp),%eax 11034e: 01 f8 add %edi,%eax 110350: 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 ) { 110353: 39 d0 cmp %edx,%eax 110355: 77 80 ja 1102d7 <_Heap_Allocate_aligned_with_boundary+0x63> 110357: 89 ce mov %ecx,%esi 110359: eb 0e jmp 110369 <_Heap_Allocate_aligned_with_boundary+0xf5> 11035b: 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 ) { 11035c: 39 c1 cmp %eax,%ecx 11035e: 76 2a jbe 11038a <_Heap_Allocate_aligned_with_boundary+0x116> if ( boundary_line < boundary_floor ) { 110360: 39 55 dc cmp %edx,-0x24(%ebp) 110363: 0f 87 a3 00 00 00 ja 11040c <_Heap_Allocate_aligned_with_boundary+0x198> return 0; } alloc_begin = boundary_line - alloc_size; 110369: 89 d3 mov %edx,%ebx 11036b: 29 fb sub %edi,%ebx 11036d: 89 d8 mov %ebx,%eax 11036f: 31 d2 xor %edx,%edx 110371: f7 75 10 divl 0x10(%ebp) 110374: 29 d3 sub %edx,%ebx alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; 110376: 8d 0c 3b lea (%ebx,%edi,1),%ecx 110379: 89 c8 mov %ecx,%eax 11037b: 31 d2 xor %edx,%edx 11037d: f7 75 14 divl 0x14(%ebp) 110380: 89 c8 mov %ecx,%eax 110382: 29 d0 sub %edx,%eax 110384: 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 ) { 110386: 39 c3 cmp %eax,%ebx 110388: 72 d2 jb 11035c <_Heap_Allocate_aligned_with_boundary+0xe8> 11038a: 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 ) { 11038c: 39 5d cc cmp %ebx,-0x34(%ebp) 11038f: 0f 87 42 ff ff ff ja 1102d7 <_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; 110395: be f8 ff ff ff mov $0xfffffff8,%esi 11039a: 29 ce sub %ecx,%esi 11039c: 01 de add %ebx,%esi 11039e: 89 d8 mov %ebx,%eax 1103a0: 31 d2 xor %edx,%edx 1103a2: f7 75 d4 divl -0x2c(%ebp) 1103a5: 29 d6 sub %edx,%esi if ( free_size >= min_block_size || free_size == 0 ) { 1103a7: 39 75 d0 cmp %esi,-0x30(%ebp) 1103aa: 0f 86 1f ff ff ff jbe 1102cf <_Heap_Allocate_aligned_with_boundary+0x5b> 1103b0: 85 f6 test %esi,%esi 1103b2: 0f 85 1f ff ff ff jne 1102d7 <_Heap_Allocate_aligned_with_boundary+0x63> boundary ); } } if ( alloc_begin != 0 ) { 1103b8: 85 db test %ebx,%ebx 1103ba: 0f 84 17 ff ff ff je 1102d7 <_Heap_Allocate_aligned_with_boundary+0x63> block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 1103c0: 8b 55 e4 mov -0x1c(%ebp),%edx 1103c3: 8b 45 08 mov 0x8(%ebp),%eax 1103c6: 01 50 4c add %edx,0x4c(%eax) block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 1103c9: 57 push %edi 1103ca: 53 push %ebx 1103cb: 51 push %ecx 1103cc: 50 push %eax 1103cd: e8 a6 c1 ff ff call 10c578 <_Heap_Block_allocate> 1103d2: 89 d8 mov %ebx,%eax 1103d4: 83 c4 10 add $0x10,%esp uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats; 1103d7: 8b 4d e4 mov -0x1c(%ebp),%ecx 1103da: 8b 55 08 mov 0x8(%ebp),%edx 1103dd: 39 4a 44 cmp %ecx,0x44(%edx) 1103e0: 73 14 jae 1103f6 <_Heap_Allocate_aligned_with_boundary+0x182> ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; 1103e2: 89 4a 44 mov %ecx,0x44(%edx) } return (void *) alloc_begin; } 1103e5: 8d 65 f4 lea -0xc(%ebp),%esp 1103e8: 5b pop %ebx 1103e9: 5e pop %esi 1103ea: 5f pop %edi 1103eb: c9 leave 1103ec: c3 ret /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { 1103ed: 3b 7d 14 cmp 0x14(%ebp),%edi 1103f0: 76 21 jbe 110413 <_Heap_Allocate_aligned_with_boundary+0x19f> 1103f2: 66 90 xchg %ax,%ax ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; 1103f4: 31 c0 xor %eax,%eax } return (void *) alloc_begin; } 1103f6: 8d 65 f4 lea -0xc(%ebp),%esp 1103f9: 5b pop %ebx 1103fa: 5e pop %esi 1103fb: 5f pop %edi 1103fc: c9 leave 1103fd: c3 ret if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 1103fe: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 110405: 8d 76 00 lea 0x0(%esi),%esi 110408: 31 c0 xor %eax,%eax 11040a: eb cb jmp 1103d7 <_Heap_Allocate_aligned_with_boundary+0x163> 11040c: 89 f1 mov %esi,%ecx <== NOT EXECUTED 11040e: e9 c4 fe ff ff jmp 1102d7 <_Heap_Allocate_aligned_with_boundary+0x63> <== NOT EXECUTED if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { 110413: 8b 5d 10 mov 0x10(%ebp),%ebx 110416: 85 db test %ebx,%ebx 110418: 0f 85 87 fe ff ff jne 1102a5 <_Heap_Allocate_aligned_with_boundary+0x31> 11041e: 89 55 10 mov %edx,0x10(%ebp) 110421: e9 7f fe ff ff jmp 1102a5 <_Heap_Allocate_aligned_with_boundary+0x31> 0010c578 <_Heap_Block_allocate>: Heap_Control *heap, Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { 10c578: 55 push %ebp 10c579: 89 e5 mov %esp,%ebp 10c57b: 57 push %edi 10c57c: 56 push %esi 10c57d: 53 push %ebx 10c57e: 83 ec 10 sub $0x10,%esp 10c581: 8b 75 08 mov 0x8(%ebp),%esi 10c584: 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; 10c587: 89 5d ec mov %ebx,-0x14(%ebp) 10c58a: 8b 7d 10 mov 0x10(%ebp),%edi 10c58d: 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; 10c590: 89 f8 mov %edi,%eax 10c592: 29 d8 sub %ebx,%eax Heap_Block *free_list_anchor = NULL; _HAssert( alloc_area_begin <= alloc_begin ); if ( _Heap_Is_free( block ) ) { 10c594: 8b 53 04 mov 0x4(%ebx),%edx 10c597: 83 e2 fe and $0xfffffffe,%edx 10c59a: f6 44 13 04 01 testb $0x1,0x4(%ebx,%edx,1) 10c59f: 0f 85 8b 00 00 00 jne 10c630 <_Heap_Block_allocate+0xb8> free_list_anchor = block->prev; 10c5a5: 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; 10c5a8: 8b 53 08 mov 0x8(%ebx),%edx Heap_Block *prev = block->prev; prev->next = next; 10c5ab: 89 51 08 mov %edx,0x8(%ecx) next->prev = prev; 10c5ae: 89 4a 0c mov %ecx,0xc(%edx) _Heap_Free_list_remove( block ); /* Statistics */ --stats->free_blocks; 10c5b1: ff 4e 38 decl 0x38(%esi) ++stats->used_blocks; 10c5b4: ff 46 40 incl 0x40(%esi) stats->free_size -= _Heap_Block_size( block ); 10c5b7: 8b 53 04 mov 0x4(%ebx),%edx 10c5ba: 83 e2 fe and $0xfffffffe,%edx 10c5bd: 29 56 30 sub %edx,0x30(%esi) } else { free_list_anchor = _Heap_Free_list_head( heap ); } if ( alloc_area_offset < heap->page_size ) { 10c5c0: 8b 56 10 mov 0x10(%esi),%edx 10c5c3: 89 55 e4 mov %edx,-0x1c(%ebp) 10c5c6: 39 d0 cmp %edx,%eax 10c5c8: 72 72 jb 10c63c <_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; 10c5ca: 8b 43 04 mov 0x4(%ebx),%eax 10c5cd: 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 ) 10c5d0: 8b 45 10 mov 0x10(%ebp),%eax 10c5d3: 31 d2 xor %edx,%edx 10c5d5: f7 75 e4 divl -0x1c(%ebp) 10c5d8: 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; 10c5da: 89 f8 mov %edi,%eax 10c5dc: 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; 10c5de: 01 46 30 add %eax,0x30(%esi) if ( _Heap_Is_prev_used( block ) ) { 10c5e1: f6 43 04 01 testb $0x1,0x4(%ebx) 10c5e5: 75 69 jne 10c650 <_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); 10c5e7: 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; 10c5e9: 8b 53 04 mov 0x4(%ebx),%edx 10c5ec: 83 e2 fe and $0xfffffffe,%edx 10c5ef: 01 d0 add %edx,%eax } block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED; 10c5f1: 89 c2 mov %eax,%edx 10c5f3: 83 ca 01 or $0x1,%edx 10c5f6: 89 53 04 mov %edx,0x4(%ebx) new_block->prev_size = block_size; 10c5f9: 89 07 mov %eax,(%edi) new_block->size_and_flag = new_block_size; 10c5fb: 8b 45 f0 mov -0x10(%ebp),%eax 10c5fe: 83 e0 fe and $0xfffffffe,%eax 10c601: 03 45 ec add -0x14(%ebp),%eax 10c604: 29 f8 sub %edi,%eax 10c606: 89 47 04 mov %eax,0x4(%edi) _Heap_Block_split( heap, new_block, free_list_anchor, alloc_size ); 10c609: ff 75 14 pushl 0x14(%ebp) 10c60c: 51 push %ecx 10c60d: 57 push %edi 10c60e: 56 push %esi 10c60f: e8 80 fe ff ff call 10c494 <_Heap_Block_split> 10c614: 89 fb mov %edi,%ebx 10c616: 83 c4 10 add $0x10,%esp alloc_size ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { 10c619: 8b 46 30 mov 0x30(%esi),%eax Heap_Block *block, uintptr_t alloc_begin, uintptr_t alloc_size ) { Heap_Statistics *const stats = &heap->stats; 10c61c: 39 46 34 cmp %eax,0x34(%esi) 10c61f: 76 03 jbe 10c624 <_Heap_Block_allocate+0xac> ); } /* Statistics */ if ( stats->min_free_size > stats->free_size ) { stats->min_free_size = stats->free_size; 10c621: 89 46 34 mov %eax,0x34(%esi) } return block; } 10c624: 89 d8 mov %ebx,%eax 10c626: 8d 65 f4 lea -0xc(%ebp),%esp 10c629: 5b pop %ebx 10c62a: 5e pop %esi 10c62b: 5f pop %edi 10c62c: c9 leave 10c62d: c3 ret 10c62e: 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 ); 10c630: 89 f1 mov %esi,%ecx } if ( alloc_area_offset < heap->page_size ) { 10c632: 8b 56 10 mov 0x10(%esi),%edx 10c635: 89 55 e4 mov %edx,-0x1c(%ebp) 10c638: 39 d0 cmp %edx,%eax 10c63a: 73 8e jae 10c5ca <_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 ); 10c63c: 03 45 14 add 0x14(%ebp),%eax 10c63f: 50 push %eax 10c640: 51 push %ecx 10c641: 53 push %ebx 10c642: 56 push %esi 10c643: e8 4c fe ff ff call 10c494 <_Heap_Block_split> 10c648: 83 c4 10 add $0x10,%esp 10c64b: eb cc jmp 10c619 <_Heap_Block_allocate+0xa1> 10c64d: 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; 10c650: 8b 51 08 mov 0x8(%ecx),%edx new_block->next = next; 10c653: 89 53 08 mov %edx,0x8(%ebx) new_block->prev = block_before; 10c656: 89 4b 0c mov %ecx,0xc(%ebx) block_before->next = new_block; 10c659: 89 59 08 mov %ebx,0x8(%ecx) next->prev = new_block; 10c65c: 89 5a 0c mov %ebx,0xc(%edx) _Heap_Free_list_insert_after( free_list_anchor, block ); free_list_anchor = block; /* Statistics */ ++stats->free_blocks; 10c65f: ff 46 38 incl 0x38(%esi) 10c662: 89 d9 mov %ebx,%ecx 10c664: eb 8b jmp 10c5f1 <_Heap_Block_allocate+0x79> 0010c494 <_Heap_Block_split>: Heap_Control *heap, Heap_Block *block, Heap_Block *free_list_anchor, uintptr_t alloc_size ) { 10c494: 55 push %ebp 10c495: 89 e5 mov %esp,%ebp 10c497: 57 push %edi 10c498: 56 push %esi 10c499: 53 push %ebx 10c49a: 83 ec 14 sub $0x14,%esp 10c49d: 8b 4d 08 mov 0x8(%ebp),%ecx 10c4a0: 8b 5d 0c mov 0xc(%ebp),%ebx Heap_Statistics *const stats = &heap->stats; uintptr_t const page_size = heap->page_size; 10c4a3: 8b 79 10 mov 0x10(%ecx),%edi uintptr_t const min_block_size = heap->min_block_size; 10c4a6: 8b 41 14 mov 0x14(%ecx),%eax 10c4a9: 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; 10c4ac: 8b 43 04 mov 0x4(%ebx),%eax 10c4af: 89 45 e4 mov %eax,-0x1c(%ebp) 10c4b2: 89 c6 mov %eax,%esi 10c4b4: 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; 10c4b7: 8b 55 e8 mov -0x18(%ebp),%edx 10c4ba: 83 ea 08 sub $0x8,%edx 10c4bd: 8b 45 14 mov 0x14(%ebp),%eax 10c4c0: 39 d0 cmp %edx,%eax 10c4c2: 73 02 jae 10c4c6 <_Heap_Block_split+0x32> 10c4c4: 89 d0 mov %edx,%eax 10c4c6: 83 c0 08 add $0x8,%eax 10c4c9: 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; 10c4cc: 31 d2 xor %edx,%edx 10c4ce: f7 f7 div %edi if ( remainder != 0 ) { 10c4d0: 85 d2 test %edx,%edx 10c4d2: 75 70 jne 10c544 <_Heap_Block_split+0xb0> 10c4d4: 8b 7d f0 mov -0x10(%ebp),%edi 10c4d7: 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); 10c4da: 8d 04 33 lea (%ebx,%esi,1),%eax 10c4dd: 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 ) { 10c4e0: 8d 56 04 lea 0x4(%esi),%edx 10c4e3: 2b 55 f0 sub -0x10(%ebp),%edx 10c4e6: 8b 7d e8 mov -0x18(%ebp),%edi 10c4e9: 83 c7 04 add $0x4,%edi 10c4ec: 39 fa cmp %edi,%edx 10c4ee: 72 60 jb 10c550 <_Heap_Block_split+0xbc> 10c4f0: 8b 55 ec mov -0x14(%ebp),%edx 10c4f3: 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; 10c4f5: 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; 10c4f8: 8b 7d e4 mov -0x1c(%ebp),%edi 10c4fb: 83 e7 01 and $0x1,%edi 10c4fe: 0b 7d ec or -0x14(%ebp),%edi 10c501: 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; 10c504: 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; 10c507: 8b 58 04 mov 0x4(%eax),%ebx 10c50a: 83 e3 fe and $0xfffffffe,%ebx if ( _Heap_Is_used( next_block ) ) { 10c50d: f6 44 18 04 01 testb $0x1,0x4(%eax,%ebx,1) 10c512: 75 4c jne 10c560 <_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; 10c514: 8b 48 08 mov 0x8(%eax),%ecx Heap_Block *prev = old_block->prev; 10c517: 8b 40 0c mov 0xc(%eax),%eax new_block->next = next; 10c51a: 89 4a 08 mov %ecx,0x8(%edx) new_block->prev = prev; 10c51d: 89 42 0c mov %eax,0xc(%edx) next->prev = new_block; 10c520: 89 51 0c mov %edx,0xc(%ecx) prev->next = new_block; 10c523: 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; 10c526: 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); 10c528: 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; 10c52b: 89 f1 mov %esi,%ecx 10c52d: 83 c9 01 or $0x1,%ecx 10c530: 89 4a 04 mov %ecx,0x4(%edx) next_block->prev_size = free_block_size; 10c533: 89 30 mov %esi,(%eax) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 10c535: 83 60 04 fe andl $0xfffffffe,0x4(%eax) } else { next_block->size_and_flag |= HEAP_PREV_BLOCK_USED; } } 10c539: 83 c4 14 add $0x14,%esp 10c53c: 5b pop %ebx 10c53d: 5e pop %esi 10c53e: 5f pop %edi 10c53f: c9 leave 10c540: c3 ret 10c541: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { return value - remainder + alignment; 10c544: 03 7d f0 add -0x10(%ebp),%edi 10c547: 29 d7 sub %edx,%edi 10c549: 89 7d ec mov %edi,-0x14(%ebp) 10c54c: eb 8c jmp 10c4da <_Heap_Block_split+0x46> 10c54e: 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; 10c550: 8b 45 e0 mov -0x20(%ebp),%eax 10c553: 83 48 04 01 orl $0x1,0x4(%eax) } } 10c557: 83 c4 14 add $0x14,%esp 10c55a: 5b pop %ebx 10c55b: 5e pop %esi 10c55c: 5f pop %edi 10c55d: c9 leave 10c55e: c3 ret 10c55f: 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; 10c560: 8b 7d 10 mov 0x10(%ebp),%edi 10c563: 8b 5f 08 mov 0x8(%edi),%ebx new_block->next = next; 10c566: 89 5a 08 mov %ebx,0x8(%edx) new_block->prev = block_before; 10c569: 89 7a 0c mov %edi,0xc(%edx) block_before->next = new_block; 10c56c: 89 57 08 mov %edx,0x8(%edi) next->prev = new_block; 10c56f: 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; 10c572: ff 41 38 incl 0x38(%ecx) 10c575: eb b4 jmp 10c52b <_Heap_Block_split+0x97> 00113b74 <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { 113b74: 55 push %ebp 113b75: 89 e5 mov %esp,%ebp 113b77: 56 push %esi 113b78: 53 push %ebx 113b79: 8b 4d 08 mov 0x8(%ebp),%ecx 113b7c: 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; 113b7f: 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; 113b82: 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; 113b85: 3b 41 18 cmp 0x18(%ecx),%eax 113b88: 73 3a jae 113bc4 <_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 ) { 113b8a: 39 d0 cmp %edx,%eax 113b8c: 74 0e je 113b9c <_Heap_Extend+0x28> 113b8e: b8 02 00 00 00 mov $0x2,%eax _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; } 113b93: 8d 65 f8 lea -0x8(%ebp),%esp 113b96: 5b pop %ebx 113b97: 5e pop %esi 113b98: c9 leave 113b99: c3 ret 113b9a: 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; 113b9c: 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; 113b9f: 89 41 1c mov %eax,0x1c(%ecx) extend_size = new_heap_area_end 113ba2: 29 d8 sub %ebx,%eax 113ba4: 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); 113ba7: 89 f0 mov %esi,%eax 113ba9: 31 d2 xor %edx,%edx 113bab: f7 71 10 divl 0x10(%ecx) 113bae: 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; 113bb0: 8b 45 14 mov 0x14(%ebp),%eax 113bb3: 89 30 mov %esi,(%eax) if( extend_size >= heap->min_block_size ) { 113bb5: 39 71 14 cmp %esi,0x14(%ecx) 113bb8: 76 1a jbe 113bd4 <_Heap_Extend+0x60> 113bba: 31 c0 xor %eax,%eax <== NOT EXECUTED _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; } 113bbc: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 113bbf: 5b pop %ebx <== NOT EXECUTED 113bc0: 5e pop %esi <== NOT EXECUTED 113bc1: c9 leave <== NOT EXECUTED 113bc2: c3 ret <== NOT EXECUTED 113bc3: 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 ) { 113bc4: 39 d0 cmp %edx,%eax 113bc6: 73 c2 jae 113b8a <_Heap_Extend+0x16> 113bc8: b8 01 00 00 00 mov $0x1,%eax _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); } return HEAP_EXTEND_SUCCESSFUL; } 113bcd: 8d 65 f8 lea -0x8(%ebp),%esp 113bd0: 5b pop %ebx 113bd1: 5e pop %esi 113bd2: c9 leave 113bd3: c3 ret RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 113bd4: 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; 113bd7: 8b 43 04 mov 0x4(%ebx),%eax 113bda: 83 e0 01 and $0x1,%eax 113bdd: 09 f0 or %esi,%eax 113bdf: 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 = 113be2: 8b 41 20 mov 0x20(%ecx),%eax 113be5: 29 d0 sub %edx,%eax 113be7: 83 c8 01 or $0x1,%eax 113bea: 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; 113bed: 89 51 24 mov %edx,0x24(%ecx) /* Statistics */ stats->size += extend_size; 113bf0: 01 71 2c add %esi,0x2c(%ecx) ++stats->used_blocks; 113bf3: ff 41 40 incl 0x40(%ecx) --stats->frees; /* Do not count subsequent call as actual free() */ 113bf6: ff 49 50 decl 0x50(%ecx) _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); 113bf9: 83 ec 08 sub $0x8,%esp 113bfc: 83 c3 08 add $0x8,%ebx 113bff: 53 push %ebx 113c00: 51 push %ecx 113c01: e8 3e b7 ff ff call 10f344 <_Heap_Free> 113c06: 31 c0 xor %eax,%eax 113c08: 83 c4 10 add $0x10,%esp } return HEAP_EXTEND_SUCCESSFUL; } 113c0b: 8d 65 f8 lea -0x8(%ebp),%esp 113c0e: 5b pop %ebx 113c0f: 5e pop %esi 113c10: c9 leave 113c11: c3 ret 00110428 <_Heap_Free>: #include #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) { 110428: 55 push %ebp 110429: 89 e5 mov %esp,%ebp 11042b: 57 push %edi 11042c: 56 push %esi 11042d: 53 push %ebx 11042e: 83 ec 18 sub $0x18,%esp 110431: 8b 5d 08 mov 0x8(%ebp),%ebx 110434: 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 ) 110437: 8d 48 f8 lea -0x8(%eax),%ecx 11043a: 31 d2 xor %edx,%edx 11043c: f7 73 10 divl 0x10(%ebx) 11043f: 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; 110441: 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 110444: 39 c1 cmp %eax,%ecx 110446: 72 07 jb 11044f <_Heap_Free+0x27> && (uintptr_t) block <= (uintptr_t) heap->last_block; 110448: 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 11044b: 39 f1 cmp %esi,%ecx 11044d: 76 0d jbe 11045c <_Heap_Free+0x34> /* Statistics */ --stats->used_blocks; ++stats->frees; stats->free_size += block_size; return( true ); 11044f: 31 c0 xor %eax,%eax } 110451: 83 c4 18 add $0x18,%esp 110454: 5b pop %ebx 110455: 5e pop %esi 110456: 5f pop %edi 110457: c9 leave 110458: c3 ret 110459: 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; 11045c: 8b 51 04 mov 0x4(%ecx),%edx 11045f: 89 55 f0 mov %edx,-0x10(%ebp) 110462: 83 e2 fe and $0xfffffffe,%edx 110465: 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); 110468: 01 ca add %ecx,%edx 11046a: 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 11046d: 39 d0 cmp %edx,%eax 11046f: 77 de ja 11044f <_Heap_Free+0x27> 110471: 39 d6 cmp %edx,%esi 110473: 72 da jb 11044f <_Heap_Free+0x27> 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; 110475: 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 ) ) { 110478: f7 c7 01 00 00 00 test $0x1,%edi 11047e: 74 cf je 11044f <_Heap_Free+0x27> - 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; 110480: 83 e7 fe and $0xfffffffe,%edi 110483: 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 110486: 39 d6 cmp %edx,%esi 110488: 0f 84 e2 00 00 00 je 110570 <_Heap_Free+0x148> #include #include #include bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) 11048e: 8b 55 dc mov -0x24(%ebp),%edx 110491: 8b 7d e8 mov -0x18(%ebp),%edi 110494: 8b 7c 3a 04 mov 0x4(%edx,%edi,1),%edi 110498: 89 7d e0 mov %edi,-0x20(%ebp) 11049b: 8a 55 e0 mov -0x20(%ebp),%dl 11049e: 83 e2 01 and $0x1,%edx 1104a1: 88 55 e7 mov %dl,-0x19(%ebp) 1104a4: 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 ) ) { 1104a8: f6 45 f0 01 testb $0x1,-0x10(%ebp) 1104ac: 75 46 jne 1104f4 <_Heap_Free+0xcc> uintptr_t const prev_size = block->prev_size; 1104ae: 8b 39 mov (%ecx),%edi 1104b0: 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); 1104b3: 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 1104b5: 39 c8 cmp %ecx,%eax 1104b7: 77 96 ja 11044f <_Heap_Free+0x27> 1104b9: 39 ce cmp %ecx,%esi 1104bb: 72 92 jb 11044f <_Heap_Free+0x27> 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) ) { 1104bd: f6 41 04 01 testb $0x1,0x4(%ecx) 1104c1: 74 8c je 11044f <_Heap_Free+0x27> _HAssert( false ); return( false ); } if ( next_is_free ) { /* coalesce both */ 1104c3: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) 1104c7: 0f 84 af 00 00 00 je 11057c <_Heap_Free+0x154> uintptr_t const size = block_size + prev_size + next_block_size; 1104cd: 8b 45 ec mov -0x14(%ebp),%eax 1104d0: 03 45 e8 add -0x18(%ebp),%eax 1104d3: 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; 1104d5: 8b 55 dc mov -0x24(%ebp),%edx 1104d8: 8b 72 08 mov 0x8(%edx),%esi Heap_Block *prev = block->prev; 1104db: 8b 52 0c mov 0xc(%edx),%edx prev->next = next; 1104de: 89 72 08 mov %esi,0x8(%edx) next->prev = prev; 1104e1: 89 56 0c mov %edx,0xc(%esi) _Heap_Free_list_remove( next_block ); stats->free_blocks -= 1; 1104e4: ff 4b 38 decl 0x38(%ebx) prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 1104e7: 89 c2 mov %eax,%edx 1104e9: 83 ca 01 or $0x1,%edx 1104ec: 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; 1104ef: 89 04 01 mov %eax,(%ecx,%eax,1) 1104f2: eb 2c jmp 110520 <_Heap_Free+0xf8> uintptr_t const size = block_size + prev_size; prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; next_block->prev_size = size; } } else if ( next_is_free ) { /* coalesce next */ 1104f4: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) 1104f8: 74 3e je 110538 <_Heap_Free+0x110> uintptr_t const size = block_size + next_block_size; 1104fa: 8b 7d e8 mov -0x18(%ebp),%edi 1104fd: 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; 110500: 8b 75 dc mov -0x24(%ebp),%esi 110503: 8b 46 08 mov 0x8(%esi),%eax Heap_Block *prev = old_block->prev; 110506: 8b 56 0c mov 0xc(%esi),%edx new_block->next = next; 110509: 89 41 08 mov %eax,0x8(%ecx) new_block->prev = prev; 11050c: 89 51 0c mov %edx,0xc(%ecx) next->prev = new_block; 11050f: 89 48 0c mov %ecx,0xc(%eax) prev->next = new_block; 110512: 89 4a 08 mov %ecx,0x8(%edx) _Heap_Free_list_replace( next_block, block ); block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 110515: 89 f8 mov %edi,%eax 110517: 83 c8 01 or $0x1,%eax 11051a: 89 41 04 mov %eax,0x4(%ecx) next_block = _Heap_Block_at( block, size ); next_block->prev_size = size; 11051d: 89 3c 39 mov %edi,(%ecx,%edi,1) stats->max_free_blocks = stats->free_blocks; } } /* Statistics */ --stats->used_blocks; 110520: ff 4b 40 decl 0x40(%ebx) ++stats->frees; 110523: ff 43 50 incl 0x50(%ebx) stats->free_size += block_size; 110526: 8b 55 ec mov -0x14(%ebp),%edx 110529: 01 53 30 add %edx,0x30(%ebx) 11052c: b0 01 mov $0x1,%al return( true ); } 11052e: 83 c4 18 add $0x18,%esp 110531: 5b pop %ebx 110532: 5e pop %esi 110533: 5f pop %edi 110534: c9 leave 110535: c3 ret 110536: 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; 110538: 8b 43 08 mov 0x8(%ebx),%eax new_block->next = next; 11053b: 89 41 08 mov %eax,0x8(%ecx) new_block->prev = block_before; 11053e: 89 59 0c mov %ebx,0xc(%ecx) block_before->next = new_block; 110541: 89 4b 08 mov %ecx,0x8(%ebx) next->prev = new_block; 110544: 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; 110547: 8b 45 ec mov -0x14(%ebp),%eax 11054a: 83 c8 01 or $0x1,%eax 11054d: 89 41 04 mov %eax,0x4(%ecx) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 110550: 8b 7d dc mov -0x24(%ebp),%edi 110553: 83 67 04 fe andl $0xfffffffe,0x4(%edi) next_block->prev_size = block_size; 110557: 8b 45 ec mov -0x14(%ebp),%eax 11055a: 89 07 mov %eax,(%edi) /* Statistics */ ++stats->free_blocks; 11055c: 8b 43 38 mov 0x38(%ebx),%eax 11055f: 40 inc %eax 110560: 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; 110563: 3b 43 3c cmp 0x3c(%ebx),%eax 110566: 76 b8 jbe 110520 <_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; 110568: 89 43 3c mov %eax,0x3c(%ebx) 11056b: eb b3 jmp 110520 <_Heap_Free+0xf8> 11056d: 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 110570: c6 45 e7 00 movb $0x0,-0x19(%ebp) 110574: e9 2f ff ff ff jmp 1104a8 <_Heap_Free+0x80> 110579: 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; 11057c: 8b 45 ec mov -0x14(%ebp),%eax 11057f: 03 45 f0 add -0x10(%ebp),%eax prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED; 110582: 89 c6 mov %eax,%esi 110584: 83 ce 01 or $0x1,%esi 110587: 89 71 04 mov %esi,0x4(%ecx) next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED; 11058a: 8b 55 dc mov -0x24(%ebp),%edx 11058d: 83 62 04 fe andl $0xfffffffe,0x4(%edx) next_block->prev_size = size; 110591: 89 02 mov %eax,(%edx) 110593: eb 8b jmp 110520 <_Heap_Free+0xf8> 0013cac4 <_Heap_Get_information>: void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 13cac4: 55 push %ebp 13cac5: 89 e5 mov %esp,%ebp 13cac7: 57 push %edi 13cac8: 56 push %esi 13cac9: 53 push %ebx 13caca: 83 ec 04 sub $0x4,%esp 13cacd: 8b 45 08 mov 0x8(%ebp),%eax 13cad0: 8b 75 0c mov 0xc(%ebp),%esi Heap_Block *the_block = the_heap->first_block; 13cad3: 8b 58 20 mov 0x20(%eax),%ebx Heap_Block *const end = the_heap->last_block; 13cad6: 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; 13cad9: c7 06 00 00 00 00 movl $0x0,(%esi) the_info->Free.total = 0; 13cadf: c7 46 08 00 00 00 00 movl $0x0,0x8(%esi) the_info->Free.largest = 0; 13cae6: c7 46 04 00 00 00 00 movl $0x0,0x4(%esi) the_info->Used.number = 0; 13caed: c7 46 0c 00 00 00 00 movl $0x0,0xc(%esi) the_info->Used.total = 0; 13caf4: c7 46 14 00 00 00 00 movl $0x0,0x14(%esi) the_info->Used.largest = 0; 13cafb: c7 46 10 00 00 00 00 movl $0x0,0x10(%esi) while ( the_block != end ) { 13cb02: 39 fb cmp %edi,%ebx 13cb04: 74 45 je 13cb4b <_Heap_Get_information+0x87> 13cb06: 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; 13cb09: 8d 46 0c lea 0xc(%esi),%eax 13cb0c: 89 45 f0 mov %eax,-0x10(%ebp) 13cb0f: eb 16 jmp 13cb27 <_Heap_Get_information+0x63> 13cb11: 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) ) 13cb14: 89 f0 mov %esi,%eax info = &the_info->Used; else info = &the_info->Free; info->number++; 13cb16: ff 00 incl (%eax) info->total += the_size; 13cb18: 01 50 08 add %edx,0x8(%eax) if ( info->largest < the_size ) 13cb1b: 39 50 04 cmp %edx,0x4(%eax) 13cb1e: 73 03 jae 13cb23 <_Heap_Get_information+0x5f> info->largest = the_size; 13cb20: 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 ) { 13cb23: 39 df cmp %ebx,%edi 13cb25: 74 15 je 13cb3c <_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; 13cb27: 89 ca mov %ecx,%edx 13cb29: 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); 13cb2c: 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; 13cb2e: 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) ) 13cb31: f6 c1 01 test $0x1,%cl 13cb34: 74 de je 13cb14 <_Heap_Get_information+0x50> 13cb36: 8b 45 f0 mov -0x10(%ebp),%eax 13cb39: eb db jmp 13cb16 <_Heap_Get_information+0x52> 13cb3b: 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 ) { 13cb3c: 8b 46 14 mov 0x14(%esi),%eax 13cb3f: 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; 13cb42: 89 46 14 mov %eax,0x14(%esi) } 13cb45: 58 pop %eax 13cb46: 5b pop %ebx 13cb47: 5e pop %esi 13cb48: 5f pop %edi 13cb49: c9 leave 13cb4a: 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 ) { 13cb4b: b8 08 00 00 00 mov $0x8,%eax <== NOT EXECUTED 13cb50: eb f0 jmp 13cb42 <_Heap_Get_information+0x7e> <== NOT EXECUTED 0010c344 <_Heap_Initialize>: Heap_Control *heap, void *heap_area_begin_ptr, uintptr_t heap_area_size, uintptr_t page_size ) { 10c344: 55 push %ebp 10c345: 89 e5 mov %esp,%ebp 10c347: 57 push %edi 10c348: 56 push %esi 10c349: 53 push %ebx 10c34a: 83 ec 10 sub $0x10,%esp 10c34d: 8b 5d 08 mov 0x8(%ebp),%ebx 10c350: 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 ) { 10c353: 85 c9 test %ecx,%ecx 10c355: 0f 85 f5 00 00 00 jne 10c450 <_Heap_Initialize+0x10c> 10c35b: b1 04 mov $0x4,%cl 10c35d: 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; 10c364: 8b 75 0c mov 0xc(%ebp),%esi 10c367: 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; 10c36a: 89 f0 mov %esi,%eax 10c36c: 31 d2 xor %edx,%edx 10c36e: f7 f1 div %ecx if ( remainder != 0 ) { 10c370: 85 d2 test %edx,%edx 10c372: 74 05 je 10c379 <_Heap_Initialize+0x35> return value - remainder + alignment; 10c374: 8d 34 31 lea (%ecx,%esi,1),%esi 10c377: 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 ( 10c379: 8b 55 0c mov 0xc(%ebp),%edx 10c37c: 03 55 10 add 0x10(%ebp),%edx 10c37f: 89 55 ec mov %edx,-0x14(%ebp) 10c382: 0f 82 d9 00 00 00 jb 10c461 <_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); 10c388: 8d 7e f8 lea -0x8(%esi),%edi 10c38b: 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 ( 10c38e: 39 75 10 cmp %esi,0x10(%ebp) 10c391: 0f 86 ca 00 00 00 jbe 10c461 <_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; 10c397: 8b 45 10 mov 0x10(%ebp),%eax 10c39a: 29 f0 sub %esi,%eax 10c39c: 89 c6 mov %eax,%esi RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 10c39e: 31 d2 xor %edx,%edx 10c3a0: f7 f1 div %ecx 10c3a2: 29 d6 sub %edx,%esi 10c3a4: 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 ( 10c3a7: 39 75 f0 cmp %esi,-0x10(%ebp) 10c3aa: 0f 87 b1 00 00 00 ja 10c461 <_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; 10c3b0: 89 f0 mov %esi,%eax 10c3b2: 83 e8 08 sub $0x8,%eax return 0; } /* First block */ first_block = (Heap_Block *) first_block_begin; first_block->prev_size = page_size; 10c3b5: 89 0f mov %ecx,(%edi) first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED; 10c3b7: 89 f2 mov %esi,%edx 10c3b9: 83 ca 01 or $0x1,%edx 10c3bc: 89 57 04 mov %edx,0x4(%edi) first_block->next = _Heap_Free_list_tail( heap ); 10c3bf: 89 5f 08 mov %ebx,0x8(%edi) first_block->prev = _Heap_Free_list_head( heap ); 10c3c2: 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); 10c3c5: 01 fe add %edi,%esi 10c3c7: 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; 10c3ca: 8b 55 e4 mov -0x1c(%ebp),%edx 10c3cd: 89 16 mov %edx,(%esi) last_block->size_and_flag = first_block_begin - (uintptr_t) last_block; 10c3cf: 89 fa mov %edi,%edx 10c3d1: 29 f2 sub %esi,%edx 10c3d3: 89 56 04 mov %edx,0x4(%esi) /* Heap control */ heap->page_size = page_size; 10c3d6: 89 4b 10 mov %ecx,0x10(%ebx) heap->min_block_size = min_block_size; 10c3d9: 8b 75 f0 mov -0x10(%ebp),%esi 10c3dc: 89 73 14 mov %esi,0x14(%ebx) heap->area_begin = heap_area_begin; 10c3df: 8b 55 0c mov 0xc(%ebp),%edx 10c3e2: 89 53 18 mov %edx,0x18(%ebx) heap->area_end = heap_area_end; 10c3e5: 8b 75 ec mov -0x14(%ebp),%esi 10c3e8: 89 73 1c mov %esi,0x1c(%ebx) heap->first_block = first_block; 10c3eb: 89 7b 20 mov %edi,0x20(%ebx) heap->last_block = last_block; _Heap_Free_list_head( heap )->next = first_block; 10c3ee: 89 7b 08 mov %edi,0x8(%ebx) _Heap_Free_list_tail( heap )->prev = first_block; 10c3f1: 89 7b 0c mov %edi,0xc(%ebx) /* Statistics */ stats->size = first_block_size; 10c3f4: 8b 55 e4 mov -0x1c(%ebp),%edx 10c3f7: 89 53 2c mov %edx,0x2c(%ebx) stats->free_size = first_block_size; 10c3fa: 89 53 30 mov %edx,0x30(%ebx) stats->min_free_size = first_block_size; 10c3fd: 89 53 34 mov %edx,0x34(%ebx) stats->free_blocks = 1; 10c400: c7 43 38 01 00 00 00 movl $0x1,0x38(%ebx) stats->max_free_blocks = 1; 10c407: c7 43 3c 01 00 00 00 movl $0x1,0x3c(%ebx) stats->used_blocks = 0; 10c40e: c7 43 40 00 00 00 00 movl $0x0,0x40(%ebx) stats->max_search = 0; 10c415: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx) stats->allocs = 0; 10c41c: c7 43 48 00 00 00 00 movl $0x0,0x48(%ebx) stats->searches = 0; 10c423: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx) stats->frees = 0; 10c42a: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx) stats->resizes = 0; 10c431: c7 43 54 00 00 00 00 movl $0x0,0x54(%ebx) stats->instance = instance++; 10c438: 8b 15 80 4f 12 00 mov 0x124f80,%edx 10c43e: 89 53 28 mov %edx,0x28(%ebx) 10c441: 42 inc %edx 10c442: 89 15 80 4f 12 00 mov %edx,0x124f80 _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return alloc_area_size; } 10c448: 83 c4 10 add $0x10,%esp 10c44b: 5b pop %ebx 10c44c: 5e pop %esi 10c44d: 5f pop %edi 10c44e: c9 leave 10c44f: c3 ret uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { 10c450: 89 c8 mov %ecx,%eax 10c452: 83 e0 03 and $0x3,%eax 10c455: 74 05 je 10c45c <_Heap_Initialize+0x118> return value - remainder + alignment; 10c457: 83 c1 04 add $0x4,%ecx 10c45a: 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 ) { 10c45c: 83 f9 03 cmp $0x3,%ecx 10c45f: 77 0b ja 10c46c <_Heap_Initialize+0x128> ); _HAssert( _Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size ) ); return alloc_area_size; 10c461: 31 c0 xor %eax,%eax } 10c463: 83 c4 10 add $0x10,%esp 10c466: 5b pop %ebx 10c467: 5e pop %esi 10c468: 5f pop %edi 10c469: c9 leave 10c46a: c3 ret 10c46b: 90 nop <== NOT EXECUTED RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up( uintptr_t value, uintptr_t alignment ) { uintptr_t remainder = value % alignment; 10c46c: b8 10 00 00 00 mov $0x10,%eax 10c471: 31 d2 xor %edx,%edx 10c473: f7 f1 div %ecx if ( remainder != 0 ) { 10c475: 85 d2 test %edx,%edx 10c477: 74 0d je 10c486 <_Heap_Initialize+0x142> return value - remainder + alignment; 10c479: 8d 41 10 lea 0x10(%ecx),%eax 10c47c: 29 d0 sub %edx,%eax 10c47e: 89 45 f0 mov %eax,-0x10(%ebp) 10c481: e9 de fe ff ff jmp 10c364 <_Heap_Initialize+0x20> uintptr_t alignment ) { uintptr_t remainder = value % alignment; if ( remainder != 0 ) { 10c486: c7 45 f0 10 00 00 00 movl $0x10,-0x10(%ebp) 10c48d: e9 d2 fe ff ff jmp 10c364 <_Heap_Initialize+0x20> 0011dbf0 <_Heap_Resize_block>: void *alloc_begin_ptr, uintptr_t new_alloc_size, uintptr_t *old_size, uintptr_t *new_size ) { 11dbf0: 55 push %ebp 11dbf1: 89 e5 mov %esp,%ebp 11dbf3: 57 push %edi 11dbf4: 56 push %esi 11dbf5: 53 push %ebx 11dbf6: 83 ec 2c sub $0x2c,%esp 11dbf9: 8b 5d 08 mov 0x8(%ebp),%ebx 11dbfc: 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 ) 11dbff: 8d 4e f8 lea -0x8(%esi),%ecx 11dc02: 89 f0 mov %esi,%eax 11dc04: 31 d2 xor %edx,%edx 11dc06: f7 73 10 divl 0x10(%ebx) 11dc09: 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; 11dc0b: 8b 45 14 mov 0x14(%ebp),%eax 11dc0e: c7 00 00 00 00 00 movl $0x0,(%eax) *new_size = 0; 11dc14: 8b 55 18 mov 0x18(%ebp),%edx 11dc17: 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 11dc1d: 39 4b 20 cmp %ecx,0x20(%ebx) 11dc20: 76 0e jbe 11dc30 <_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; 11dc22: b8 02 00 00 00 mov $0x2,%eax new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 11dc27: 8d 65 f4 lea -0xc(%ebp),%esp 11dc2a: 5b pop %ebx 11dc2b: 5e pop %esi 11dc2c: 5f pop %edi 11dc2d: c9 leave 11dc2e: c3 ret 11dc2f: 90 nop <== NOT EXECUTED 11dc30: 39 4b 24 cmp %ecx,0x24(%ebx) 11dc33: 72 ed jb 11dc22 <_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; 11dc35: 8b 41 04 mov 0x4(%ecx),%eax 11dc38: 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; 11dc3b: 8d 3c 01 lea (%ecx,%eax,1),%edi 11dc3e: 89 7d d4 mov %edi,-0x2c(%ebp) uintptr_t alloc_size = block_end - alloc_begin + HEAP_BLOCK_SIZE_OFFSET; 11dc41: 89 fa mov %edi,%edx 11dc43: 29 f2 sub %esi,%edx 11dc45: 83 c2 04 add $0x4,%edx 11dc48: 89 55 dc mov %edx,-0x24(%ebp) 11dc4b: 8b 57 04 mov 0x4(%edi),%edx 11dc4e: 83 e2 fe and $0xfffffffe,%edx 11dc51: 89 55 d0 mov %edx,-0x30(%ebp) RTEMS_INLINE_ROUTINE bool _Heap_Is_free( const Heap_Block *block ) { return !_Heap_Is_used( block ); 11dc54: 8b 54 17 04 mov 0x4(%edi,%edx,1),%edx 11dc58: 83 e2 01 and $0x1,%edx 11dc5b: 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; 11dc5e: 8b 55 dc mov -0x24(%ebp),%edx 11dc61: 8b 7d 14 mov 0x14(%ebp),%edi 11dc64: 89 17 mov %edx,(%edi) if ( next_block_is_free ) { 11dc66: 8a 55 e0 mov -0x20(%ebp),%dl 11dc69: 80 f2 01 xor $0x1,%dl 11dc6c: 88 55 e0 mov %dl,-0x20(%ebp) 11dc6f: 75 17 jne 11dc88 <_Heap_Resize_block+0x98> block_size += next_block_size; alloc_size += next_block_size; } if ( new_alloc_size > alloc_size ) { 11dc71: 8b 55 dc mov -0x24(%ebp),%edx 11dc74: 39 55 10 cmp %edx,0x10(%ebp) 11dc77: 76 20 jbe 11dc99 <_Heap_Resize_block+0xa9> 11dc79: b8 01 00 00 00 mov $0x1,%eax new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 11dc7e: 8d 65 f4 lea -0xc(%ebp),%esp 11dc81: 5b pop %ebx 11dc82: 5e pop %esi 11dc83: 5f pop %edi 11dc84: c9 leave 11dc85: c3 ret 11dc86: 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; 11dc88: 03 45 d0 add -0x30(%ebp),%eax alloc_size += next_block_size; 11dc8b: 8b 7d d0 mov -0x30(%ebp),%edi 11dc8e: 01 7d dc add %edi,-0x24(%ebp) } if ( new_alloc_size > alloc_size ) { 11dc91: 8b 55 dc mov -0x24(%ebp),%edx 11dc94: 39 55 10 cmp %edx,0x10(%ebp) 11dc97: 77 e0 ja 11dc79 <_Heap_Resize_block+0x89> return HEAP_RESIZE_UNSATISFIED; } if ( next_block_is_free ) { 11dc99: 80 7d e0 00 cmpb $0x0,-0x20(%ebp) 11dc9d: 74 31 je 11dcd0 <_Heap_Resize_block+0xe0> uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; 11dc9f: 8b 79 04 mov 0x4(%ecx),%edi 11dca2: 83 e7 01 and $0x1,%edi 11dca5: 09 c7 or %eax,%edi 11dca7: 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; 11dcaa: 8b 7d d4 mov -0x2c(%ebp),%edi 11dcad: 8b 7f 08 mov 0x8(%edi),%edi 11dcb0: 89 7d e4 mov %edi,-0x1c(%ebp) Heap_Block *prev = block->prev; 11dcb3: 8b 55 d4 mov -0x2c(%ebp),%edx 11dcb6: 8b 7a 0c mov 0xc(%edx),%edi prev->next = next; 11dcb9: 8b 55 e4 mov -0x1c(%ebp),%edx 11dcbc: 89 57 08 mov %edx,0x8(%edi) next->prev = prev; 11dcbf: 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; 11dcc2: 83 4c 08 04 01 orl $0x1,0x4(%eax,%ecx,1) /* Statistics */ --stats->free_blocks; 11dcc7: ff 4b 38 decl 0x38(%ebx) stats->free_size -= next_block_size; 11dcca: 8b 7d d0 mov -0x30(%ebp),%edi 11dccd: 29 7b 30 sub %edi,0x30(%ebx) } block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size ); 11dcd0: ff 75 10 pushl 0x10(%ebp) 11dcd3: 56 push %esi 11dcd4: 51 push %ecx 11dcd5: 53 push %ebx 11dcd6: e8 9d e8 fe ff call 10c578 <_Heap_Block_allocate> block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); *new_size = (uintptr_t) next_block - alloc_begin + HEAP_BLOCK_SIZE_OFFSET; 11dcdb: 8b 50 04 mov 0x4(%eax),%edx 11dcde: 83 e2 fe and $0xfffffffe,%edx 11dce1: 29 f0 sub %esi,%eax 11dce3: 8d 44 10 04 lea 0x4(%eax,%edx,1),%eax 11dce7: 8b 55 18 mov 0x18(%ebp),%edx 11dcea: 89 02 mov %eax,(%edx) /* Statistics */ ++stats->resizes; 11dcec: ff 43 54 incl 0x54(%ebx) 11dcef: 31 c0 xor %eax,%eax 11dcf1: 83 c4 10 add $0x10,%esp new_size ); } else { return HEAP_RESIZE_FATAL_ERROR; } } 11dcf4: 8d 65 f4 lea -0xc(%ebp),%esp 11dcf7: 5b pop %ebx 11dcf8: 5e pop %esi 11dcf9: 5f pop %edi 11dcfa: c9 leave 11dcfb: c3 ret 0011dcfc <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) { 11dcfc: 55 push %ebp 11dcfd: 89 e5 mov %esp,%ebp 11dcff: 56 push %esi 11dd00: 53 push %ebx 11dd01: 8b 5d 08 mov 0x8(%ebp),%ebx 11dd04: 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 ) 11dd07: 8d 4e f8 lea -0x8(%esi),%ecx 11dd0a: 89 f0 mov %esi,%eax 11dd0c: 31 d2 xor %edx,%edx 11dd0e: f7 73 10 divl 0x10(%ebx) 11dd11: 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; 11dd13: 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 11dd16: 39 c1 cmp %eax,%ecx 11dd18: 72 07 jb 11dd21 <_Heap_Size_of_alloc_area+0x25> && (uintptr_t) block <= (uintptr_t) heap->last_block; 11dd1a: 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 11dd1d: 39 d1 cmp %edx,%ecx 11dd1f: 76 07 jbe 11dd28 <_Heap_Size_of_alloc_area+0x2c> return false; } *alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin; return true; 11dd21: 31 c0 xor %eax,%eax } 11dd23: 5b pop %ebx 11dd24: 5e pop %esi 11dd25: c9 leave 11dd26: c3 ret 11dd27: 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); 11dd28: 8b 59 04 mov 0x4(%ecx),%ebx 11dd2b: 83 e3 fe and $0xfffffffe,%ebx 11dd2e: 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 11dd30: 39 c8 cmp %ecx,%eax 11dd32: 77 ed ja 11dd21 <_Heap_Size_of_alloc_area+0x25> 11dd34: 39 ca cmp %ecx,%edx 11dd36: 72 e9 jb 11dd21 <_Heap_Size_of_alloc_area+0x25> } block_size = _Heap_Block_size( block ); next_block = _Heap_Block_at( block, block_size ); if ( 11dd38: f6 41 04 01 testb $0x1,0x4(%ecx) 11dd3c: 74 e3 je 11dd21 <_Heap_Size_of_alloc_area+0x25> || !_Heap_Is_prev_used( next_block ) ) { return false; } *alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin; 11dd3e: 29 f1 sub %esi,%ecx 11dd40: 8d 51 04 lea 0x4(%ecx),%edx 11dd43: 8b 45 10 mov 0x10(%ebp),%eax 11dd46: 89 10 mov %edx,(%eax) 11dd48: b0 01 mov $0x1,%al return true; } 11dd4a: 5b pop %ebx 11dd4b: 5e pop %esi 11dd4c: c9 leave 11dd4d: c3 ret 0010d0e0 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 10d0e0: 55 push %ebp 10d0e1: 89 e5 mov %esp,%ebp 10d0e3: 57 push %edi 10d0e4: 56 push %esi 10d0e5: 53 push %ebx 10d0e6: 83 ec 3c sub $0x3c,%esp 10d0e9: 8b 5d 08 mov 0x8(%ebp),%ebx uintptr_t const page_size = heap->page_size; 10d0ec: 8b 43 10 mov 0x10(%ebx),%eax 10d0ef: 89 45 e0 mov %eax,-0x20(%ebp) uintptr_t const min_block_size = heap->min_block_size; 10d0f2: 8b 53 14 mov 0x14(%ebx),%edx 10d0f5: 89 55 dc mov %edx,-0x24(%ebp) Heap_Block *const last_block = heap->last_block; 10d0f8: 8b 43 24 mov 0x24(%ebx),%eax 10d0fb: 89 45 d8 mov %eax,-0x28(%ebp) Heap_Block *block = heap->first_block; 10d0fe: 8b 73 20 mov 0x20(%ebx),%esi Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; 10d101: 80 7d 10 00 cmpb $0x0,0x10(%ebp) 10d105: 75 1d jne 10d124 <_Heap_Walk+0x44> 10d107: c7 45 e4 d8 d0 10 00 movl $0x10d0d8,-0x1c(%ebp) if ( !_System_state_Is_up( _System_state_Get() ) ) { 10d10e: 83 3d 20 87 12 00 03 cmpl $0x3,0x128720 10d115: 74 1d je 10d134 <_Heap_Walk+0x54> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 10d117: b0 01 mov $0x1,%al block = next_block; } return true; } 10d119: 8d 65 f4 lea -0xc(%ebp),%esp 10d11c: 5b pop %ebx 10d11d: 5e pop %esi 10d11e: 5f pop %edi 10d11f: c9 leave 10d120: c3 ret 10d121: 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; 10d124: c7 45 e4 a8 d4 10 00 movl $0x10d4a8,-0x1c(%ebp) if ( !_System_state_Is_up( _System_state_Get() ) ) { 10d12b: 83 3d 20 87 12 00 03 cmpl $0x3,0x128720 10d132: 75 e3 jne 10d117 <_Heap_Walk+0x37> 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)( 10d134: 52 push %edx 10d135: ff 73 0c pushl 0xc(%ebx) 10d138: ff 73 08 pushl 0x8(%ebx) 10d13b: ff 75 d8 pushl -0x28(%ebp) 10d13e: 56 push %esi 10d13f: ff 73 1c pushl 0x1c(%ebx) 10d142: ff 73 18 pushl 0x18(%ebx) 10d145: ff 75 dc pushl -0x24(%ebp) 10d148: ff 75 e0 pushl -0x20(%ebp) 10d14b: 68 b0 0a 12 00 push $0x120ab0 10d150: 6a 00 push $0x0 10d152: ff 75 0c pushl 0xc(%ebp) 10d155: 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 ) { 10d158: 83 c4 30 add $0x30,%esp 10d15b: 8b 45 e0 mov -0x20(%ebp),%eax 10d15e: 85 c0 test %eax,%eax 10d160: 0f 84 b2 00 00 00 je 10d218 <_Heap_Walk+0x138> (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { 10d166: f6 45 e0 03 testb $0x3,-0x20(%ebp) 10d16a: 0f 85 b0 00 00 00 jne 10d220 <_Heap_Walk+0x140> ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { 10d170: 8b 45 dc mov -0x24(%ebp),%eax 10d173: 31 d2 xor %edx,%edx 10d175: f7 75 e0 divl -0x20(%ebp) 10d178: 85 d2 test %edx,%edx 10d17a: 0f 85 ac 00 00 00 jne 10d22c <_Heap_Walk+0x14c> ); return false; } if ( 10d180: 8d 46 08 lea 0x8(%esi),%eax 10d183: 31 d2 xor %edx,%edx 10d185: f7 75 e0 divl -0x20(%ebp) 10d188: 85 d2 test %edx,%edx 10d18a: 0f 85 a8 00 00 00 jne 10d238 <_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; 10d190: 8b 56 04 mov 0x4(%esi),%edx 10d193: 89 55 cc mov %edx,-0x34(%ebp) ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { 10d196: 83 e2 01 and $0x1,%edx 10d199: 0f 84 a1 00 00 00 je 10d240 <_Heap_Walk+0x160> ); return false; } if ( first_block->prev_size != page_size ) { 10d19f: 8b 06 mov (%esi),%eax 10d1a1: 39 45 e0 cmp %eax,-0x20(%ebp) 10d1a4: 75 4e jne 10d1f4 <_Heap_Walk+0x114> ); return false; } if ( _Heap_Is_free( last_block ) ) { 10d1a6: 8b 55 d8 mov -0x28(%ebp),%edx 10d1a9: 8b 42 04 mov 0x4(%edx),%eax 10d1ac: 83 e0 fe and $0xfffffffe,%eax 10d1af: f6 44 02 04 01 testb $0x1,0x4(%edx,%eax,1) 10d1b4: 0f 84 bd 02 00 00 je 10d477 <_Heap_Walk+0x397> int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; 10d1ba: 8b 43 10 mov 0x10(%ebx),%eax 10d1bd: 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; 10d1c0: 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 ) { 10d1c3: 39 cb cmp %ecx,%ebx 10d1c5: 0f 84 08 01 00 00 je 10d2d3 <_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; 10d1cb: 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 10d1ce: 39 cf cmp %ecx,%edi 10d1d0: 76 76 jbe 10d248 <_Heap_Walk+0x168> 10d1d2: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { (*printer)( 10d1d4: 51 push %ecx 10d1d5: 68 f8 0b 12 00 push $0x120bf8 10d1da: 66 90 xchg %ax,%ax return false; } if ( !prev_used ) { (*printer)( 10d1dc: 6a 01 push $0x1 10d1de: ff 75 0c pushl 0xc(%ebp) 10d1e1: ff 55 e4 call *-0x1c(%ebp) 10d1e4: 31 c0 xor %eax,%eax 10d1e6: 83 c4 10 add $0x10,%esp block = next_block; } return true; } 10d1e9: 8d 65 f4 lea -0xc(%ebp),%esp 10d1ec: 5b pop %ebx 10d1ed: 5e pop %esi 10d1ee: 5f pop %edi 10d1ef: c9 leave 10d1f0: c3 ret 10d1f1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return false; } if ( first_block->prev_size != page_size ) { (*printer)( 10d1f4: 83 ec 0c sub $0xc,%esp 10d1f7: ff 75 e0 pushl -0x20(%ebp) 10d1fa: 50 push %eax 10d1fb: 68 cc 0b 12 00 push $0x120bcc return false; } if ( free_block->prev != prev_block ) { (*printer)( 10d200: 6a 01 push $0x1 10d202: ff 75 0c pushl 0xc(%ebp) 10d205: ff 55 e4 call *-0x1c(%ebp) 10d208: 31 c0 xor %eax,%eax 10d20a: 83 c4 20 add $0x20,%esp block = next_block; } return true; } 10d20d: 8d 65 f4 lea -0xc(%ebp),%esp 10d210: 5b pop %ebx 10d211: 5e pop %esi 10d212: 5f pop %edi 10d213: c9 leave 10d214: c3 ret 10d215: 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" ); 10d218: 57 push %edi 10d219: 68 27 0e 12 00 push $0x120e27 10d21e: eb bc jmp 10d1dc <_Heap_Walk+0xfc> return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)( 10d220: ff 75 e0 pushl -0x20(%ebp) 10d223: 68 3a 0e 12 00 push $0x120e3a 10d228: eb b2 jmp 10d1dc <_Heap_Walk+0xfc> 10d22a: 66 90 xchg %ax,%ax <== NOT EXECUTED return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)( 10d22c: ff 75 dc pushl -0x24(%ebp) 10d22f: 68 44 0b 12 00 push $0x120b44 10d234: eb a6 jmp 10d1dc <_Heap_Walk+0xfc> 10d236: 66 90 xchg %ax,%ax <== NOT EXECUTED } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( 10d238: 56 push %esi 10d239: 68 68 0b 12 00 push $0x120b68 10d23e: eb 9c jmp 10d1dc <_Heap_Walk+0xfc> return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( 10d240: 56 push %esi 10d241: 68 9c 0b 12 00 push $0x120b9c 10d246: eb 94 jmp 10d1dc <_Heap_Walk+0xfc> && (uintptr_t) block <= (uintptr_t) heap->last_block; 10d248: 8b 53 24 mov 0x24(%ebx),%edx 10d24b: 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 10d24e: 39 ca cmp %ecx,%edx 10d250: 72 82 jb 10d1d4 <_Heap_Walk+0xf4> ); return false; } if ( 10d252: 8d 41 08 lea 0x8(%ecx),%eax 10d255: 31 d2 xor %edx,%edx 10d257: f7 75 d4 divl -0x2c(%ebp) 10d25a: 85 d2 test %edx,%edx 10d25c: 0f 85 20 02 00 00 jne 10d482 <_Heap_Walk+0x3a2> ); return false; } if ( _Heap_Is_used( free_block ) ) { 10d262: 8b 41 04 mov 0x4(%ecx),%eax 10d265: 83 e0 fe and $0xfffffffe,%eax 10d268: f6 44 01 04 01 testb $0x1,0x4(%ecx,%eax,1) 10d26d: 0f 85 29 02 00 00 jne 10d49c <_Heap_Walk+0x3bc> ); return false; } if ( free_block->prev != prev_block ) { 10d273: 8b 41 0c mov 0xc(%ecx),%eax 10d276: 39 c3 cmp %eax,%ebx 10d278: 0f 85 0f 02 00 00 jne 10d48d <_Heap_Walk+0x3ad> 10d27e: 89 75 c8 mov %esi,-0x38(%ebp) 10d281: 89 de mov %ebx,%esi 10d283: eb 40 jmp 10d2c5 <_Heap_Walk+0x1e5> 10d285: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10d288: 39 f9 cmp %edi,%ecx 10d28a: 0f 82 44 ff ff ff jb 10d1d4 <_Heap_Walk+0xf4> 10d290: 39 4d d0 cmp %ecx,-0x30(%ebp) 10d293: 0f 82 3b ff ff ff jb 10d1d4 <_Heap_Walk+0xf4> ); return false; } if ( 10d299: 8d 41 08 lea 0x8(%ecx),%eax 10d29c: 31 d2 xor %edx,%edx 10d29e: f7 75 d4 divl -0x2c(%ebp) 10d2a1: 85 d2 test %edx,%edx 10d2a3: 0f 85 d9 01 00 00 jne 10d482 <_Heap_Walk+0x3a2> ); return false; } if ( _Heap_Is_used( free_block ) ) { 10d2a9: 8b 41 04 mov 0x4(%ecx),%eax 10d2ac: 83 e0 fe and $0xfffffffe,%eax 10d2af: f6 44 01 04 01 testb $0x1,0x4(%ecx,%eax,1) 10d2b4: 0f 85 e2 01 00 00 jne 10d49c <_Heap_Walk+0x3bc> ); return false; } if ( free_block->prev != prev_block ) { 10d2ba: 8b 41 0c mov 0xc(%ecx),%eax 10d2bd: 39 d8 cmp %ebx,%eax 10d2bf: 0f 85 c8 01 00 00 jne 10d48d <_Heap_Walk+0x3ad> (*printer)( 10d2c5: 89 cb mov %ecx,%ebx return false; } prev_block = free_block; free_block = free_block->next; 10d2c7: 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 ) { 10d2ca: 39 ce cmp %ecx,%esi 10d2cc: 75 ba jne 10d288 <_Heap_Walk+0x1a8> 10d2ce: 89 f3 mov %esi,%ebx 10d2d0: 8b 75 c8 mov -0x38(%ebp),%esi if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 10d2d3: 39 75 d8 cmp %esi,-0x28(%ebp) 10d2d6: 0f 84 3b fe ff ff je 10d117 <_Heap_Walk+0x37> 10d2dc: 8b 45 cc mov -0x34(%ebp),%eax 10d2df: 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; 10d2e0: 89 c1 mov %eax,%ecx 10d2e2: 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); 10d2e5: 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 ) { 10d2e8: a8 01 test $0x1,%al 10d2ea: 74 30 je 10d31c <_Heap_Walk+0x23c> (*printer)( 10d2ec: 83 ec 0c sub $0xc,%esp 10d2ef: 51 push %ecx 10d2f0: 56 push %esi 10d2f1: 68 89 0e 12 00 push $0x120e89 "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 10d2f6: 6a 00 push $0x0 10d2f8: ff 75 0c pushl 0xc(%ebp) 10d2fb: 89 4d c4 mov %ecx,-0x3c(%ebp) 10d2fe: ff 55 e4 call *-0x1c(%ebp) 10d301: 83 c4 20 add $0x20,%esp 10d304: 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 10d307: 39 7b 20 cmp %edi,0x20(%ebx) 10d30a: 76 20 jbe 10d32c <_Heap_Walk+0x24c> block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { (*printer)( 10d30c: 83 ec 0c sub $0xc,%esp 10d30f: 57 push %edi 10d310: 56 push %esi 10d311: 68 a4 0c 12 00 push $0x120ca4 10d316: e9 e5 fe ff ff jmp 10d200 <_Heap_Walk+0x120> 10d31b: 90 nop <== NOT EXECUTED "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 10d31c: 83 ec 08 sub $0x8,%esp 10d31f: ff 36 pushl (%esi) 10d321: 51 push %ecx 10d322: 56 push %esi 10d323: 68 7c 0c 12 00 push $0x120c7c 10d328: eb cc jmp 10d2f6 <_Heap_Walk+0x216> 10d32a: 66 90 xchg %ax,%ax <== NOT EXECUTED 10d32c: 39 7b 24 cmp %edi,0x24(%ebx) 10d32f: 72 db jb 10d30c <_Heap_Walk+0x22c> ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { 10d331: 89 c8 mov %ecx,%eax 10d333: 31 d2 xor %edx,%edx 10d335: f7 75 e0 divl -0x20(%ebp) 10d338: 85 d2 test %edx,%edx 10d33a: 0f 85 02 01 00 00 jne 10d442 <_Heap_Walk+0x362> ); return false; } if ( block_size < min_block_size ) { 10d340: 39 4d dc cmp %ecx,-0x24(%ebp) 10d343: 0f 87 0b 01 00 00 ja 10d454 <_Heap_Walk+0x374> ); return false; } if ( next_block_begin <= block_begin ) { 10d349: 39 fe cmp %edi,%esi 10d34b: 0f 83 17 01 00 00 jae 10d468 <_Heap_Walk+0x388> ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 10d351: f6 47 04 01 testb $0x1,0x4(%edi) 10d355: 0f 85 91 00 00 00 jne 10d3ec <_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; 10d35b: 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; 10d35e: 8b 46 04 mov 0x4(%esi),%eax 10d361: 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; 10d364: 83 e0 fe and $0xfffffffe,%eax 10d367: 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); 10d36a: 01 f0 add %esi,%eax 10d36c: 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)( 10d36f: 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; 10d372: 39 53 0c cmp %edx,0xc(%ebx) 10d375: 0f 84 99 00 00 00 je 10d414 <_Heap_Walk+0x334> " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 10d37b: 39 da cmp %ebx,%edx 10d37d: 0f 84 a9 00 00 00 je 10d42c <_Heap_Walk+0x34c> 10d383: c7 45 c8 f9 09 12 00 movl $0x1209f9,-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)( 10d38a: 8b 46 0c mov 0xc(%esi),%eax 10d38d: 39 c1 cmp %eax,%ecx 10d38f: 74 7b je 10d40c <_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)" : ""), 10d391: 39 d8 cmp %ebx,%eax 10d393: 0f 84 9f 00 00 00 je 10d438 <_Heap_Walk+0x358> 10d399: b9 f9 09 12 00 mov $0x1209f9,%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)( 10d39e: ff 75 c8 pushl -0x38(%ebp) 10d3a1: 52 push %edx 10d3a2: 51 push %ecx 10d3a3: 50 push %eax 10d3a4: 56 push %esi 10d3a5: 68 64 0d 12 00 push $0x120d64 10d3aa: 6a 00 push $0x0 10d3ac: ff 75 0c pushl 0xc(%ebp) 10d3af: 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 ) { 10d3b2: 8b 55 d0 mov -0x30(%ebp),%edx 10d3b5: 8b 02 mov (%edx),%eax 10d3b7: 83 c4 20 add $0x20,%esp 10d3ba: 39 45 d4 cmp %eax,-0x2c(%ebp) 10d3bd: 74 11 je 10d3d0 <_Heap_Walk+0x2f0> (*printer)( 10d3bf: 51 push %ecx 10d3c0: 52 push %edx 10d3c1: 50 push %eax 10d3c2: ff 75 d4 pushl -0x2c(%ebp) 10d3c5: 56 push %esi 10d3c6: 68 90 0d 12 00 push $0x120d90 10d3cb: e9 30 fe ff ff jmp 10d200 <_Heap_Walk+0x120> ); return false; } if ( !prev_used ) { 10d3d0: f6 45 cc 01 testb $0x1,-0x34(%ebp) 10d3d4: 74 4a je 10d420 <_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; 10d3d6: 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 ) { 10d3d9: 39 d8 cmp %ebx,%eax 10d3db: 75 0a jne 10d3e7 <_Heap_Walk+0x307> 10d3dd: eb 21 jmp 10d400 <_Heap_Walk+0x320> <== NOT EXECUTED 10d3df: 90 nop <== NOT EXECUTED if ( free_block == block ) { return true; } free_block = free_block->next; 10d3e0: 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 ) { 10d3e3: 39 d8 cmp %ebx,%eax 10d3e5: 74 19 je 10d400 <_Heap_Walk+0x320> if ( free_block == block ) { 10d3e7: 39 f0 cmp %esi,%eax 10d3e9: 75 f5 jne 10d3e0 <_Heap_Walk+0x300> 10d3eb: 90 nop if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 10d3ec: 39 7d d8 cmp %edi,-0x28(%ebp) 10d3ef: 0f 84 22 fd ff ff je 10d117 <_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 ) { 10d3f5: 8b 47 04 mov 0x4(%edi),%eax 10d3f8: 89 fe mov %edi,%esi 10d3fa: e9 e1 fe ff ff jmp 10d2e0 <_Heap_Walk+0x200> 10d3ff: 90 nop <== NOT EXECUTED return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 10d400: 56 push %esi 10d401: 68 fc 0d 12 00 push $0x120dfc 10d406: e9 d1 fd ff ff jmp 10d1dc <_Heap_Walk+0xfc> 10d40b: 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)( 10d40c: b9 b4 0e 12 00 mov $0x120eb4,%ecx 10d411: eb 8b jmp 10d39e <_Heap_Walk+0x2be> 10d413: 90 nop <== NOT EXECUTED } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) { return _Heap_Free_list_tail(heap)->prev; 10d414: c7 45 c8 a0 0e 12 00 movl $0x120ea0,-0x38(%ebp) 10d41b: e9 6a ff ff ff jmp 10d38a <_Heap_Walk+0x2aa> return false; } if ( !prev_used ) { (*printer)( 10d420: 56 push %esi 10d421: 68 cc 0d 12 00 push $0x120dcc 10d426: e9 b1 fd ff ff jmp 10d1dc <_Heap_Walk+0xfc> 10d42b: 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)" : "") 10d42c: c7 45 c8 aa 0e 12 00 movl $0x120eaa,-0x38(%ebp) 10d433: e9 52 ff ff ff jmp 10d38a <_Heap_Walk+0x2aa> "block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n", block, block->prev, block->prev == first_free_block ? " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), 10d438: b9 bf 0e 12 00 mov $0x120ebf,%ecx 10d43d: e9 5c ff ff ff jmp 10d39e <_Heap_Walk+0x2be> return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { (*printer)( 10d442: 83 ec 0c sub $0xc,%esp 10d445: 51 push %ecx 10d446: 56 push %esi 10d447: 68 d4 0c 12 00 push $0x120cd4 10d44c: e9 af fd ff ff jmp 10d200 <_Heap_Walk+0x120> 10d451: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return false; } if ( block_size < min_block_size ) { (*printer)( 10d454: 83 ec 08 sub $0x8,%esp 10d457: ff 75 dc pushl -0x24(%ebp) 10d45a: 51 push %ecx 10d45b: 56 push %esi 10d45c: 68 04 0d 12 00 push $0x120d04 10d461: e9 9a fd ff ff jmp 10d200 <_Heap_Walk+0x120> 10d466: 66 90 xchg %ax,%ax <== NOT EXECUTED return false; } if ( next_block_begin <= block_begin ) { (*printer)( 10d468: 83 ec 0c sub $0xc,%esp 10d46b: 57 push %edi 10d46c: 56 push %esi 10d46d: 68 30 0d 12 00 push $0x120d30 10d472: e9 89 fd ff ff jmp 10d200 <_Heap_Walk+0x120> return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)( 10d477: 53 push %ebx 10d478: 68 58 0e 12 00 push $0x120e58 10d47d: e9 5a fd ff ff jmp 10d1dc <_Heap_Walk+0xfc> } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( 10d482: 51 push %ecx 10d483: 68 18 0c 12 00 push $0x120c18 10d488: e9 4f fd ff ff jmp 10d1dc <_Heap_Walk+0xfc> return false; } if ( free_block->prev != prev_block ) { (*printer)( 10d48d: 83 ec 0c sub $0xc,%esp 10d490: 50 push %eax 10d491: 51 push %ecx 10d492: 68 48 0c 12 00 push $0x120c48 10d497: e9 64 fd ff ff jmp 10d200 <_Heap_Walk+0x120> return false; } if ( _Heap_Is_used( free_block ) ) { (*printer)( 10d49c: 51 push %ecx 10d49d: 68 6d 0e 12 00 push $0x120e6d 10d4a2: e9 35 fd ff ff jmp 10d1dc <_Heap_Walk+0xfc> 0010bc1c <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) { 10bc1c: 55 push %ebp 10bc1d: 89 e5 mov %esp,%ebp 10bc1f: 57 push %edi 10bc20: 56 push %esi 10bc21: 53 push %ebx 10bc22: 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; 10bc25: 8b 1d 54 12 12 00 mov 0x121254,%ebx drivers_in_table = Configuration.number_of_device_drivers; 10bc2b: a1 50 12 12 00 mov 0x121250,%eax 10bc30: 89 45 e4 mov %eax,-0x1c(%ebp) number_of_drivers = Configuration.maximum_drivers; 10bc33: 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 ) 10bc39: 39 f0 cmp %esi,%eax 10bc3b: 72 17 jb 10bc54 <_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; 10bc3d: 89 1d a4 56 12 00 mov %ebx,0x1256a4 _IO_Number_of_drivers = number_of_drivers; 10bc43: 8b 45 e4 mov -0x1c(%ebp),%eax 10bc46: a3 a0 56 12 00 mov %eax,0x1256a0 ); for ( index = 0 ; index < drivers_in_table ; index++ ) _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } 10bc4b: 8d 65 f4 lea -0xc(%ebp),%esp 10bc4e: 5b pop %ebx 10bc4f: 5e pop %esi 10bc50: 5f pop %edi 10bc51: c9 leave 10bc52: c3 ret 10bc53: 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 *) 10bc54: 8d 0c 76 lea (%esi,%esi,2),%ecx 10bc57: c1 e1 03 shl $0x3,%ecx 10bc5a: 83 ec 0c sub $0xc,%esp 10bc5d: 51 push %ecx 10bc5e: 89 4d dc mov %ecx,-0x24(%ebp) 10bc61: e8 7a 28 00 00 call 10e4e0 <_Workspace_Allocate_or_fatal_error> 10bc66: 89 c2 mov %eax,%edx 10bc68: a3 a4 56 12 00 mov %eax,0x1256a4 _Workspace_Allocate_or_fatal_error( sizeof( rtems_driver_address_table ) * ( number_of_drivers ) ); _IO_Number_of_drivers = number_of_drivers; 10bc6d: 89 35 a0 56 12 00 mov %esi,0x1256a0 memset( 10bc73: 31 c0 xor %eax,%eax 10bc75: 8b 4d dc mov -0x24(%ebp),%ecx 10bc78: 89 d7 mov %edx,%edi 10bc7a: 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++ ) 10bc7c: 83 c4 10 add $0x10,%esp 10bc7f: 8b 4d e4 mov -0x1c(%ebp),%ecx 10bc82: 85 c9 test %ecx,%ecx 10bc84: 74 c5 je 10bc4b <_IO_Manager_initialization+0x2f> 10bc86: a1 a4 56 12 00 mov 0x1256a4,%eax 10bc8b: 89 45 e0 mov %eax,-0x20(%ebp) 10bc8e: 31 c0 xor %eax,%eax 10bc90: 31 d2 xor %edx,%edx 10bc92: 66 90 xchg %ax,%ax _IO_Driver_address_table[index] = driver_table[index]; 10bc94: 8b 7d e0 mov -0x20(%ebp),%edi 10bc97: 01 c7 add %eax,%edi 10bc99: 8d 34 03 lea (%ebx,%eax,1),%esi 10bc9c: b9 06 00 00 00 mov $0x6,%ecx 10bca1: 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++ ) 10bca3: 42 inc %edx 10bca4: 83 c0 18 add $0x18,%eax 10bca7: 39 55 e4 cmp %edx,-0x1c(%ebp) 10bcaa: 77 e8 ja 10bc94 <_IO_Manager_initialization+0x78> _IO_Driver_address_table[index] = driver_table[index]; number_of_drivers = drivers_in_table; } 10bcac: 8d 65 f4 lea -0xc(%ebp),%esp 10bcaf: 5b pop %ebx 10bcb0: 5e pop %esi 10bcb1: 5f pop %edi 10bcb2: c9 leave 10bcb3: c3 ret 0010c668 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) { 10c668: 55 push %ebp 10c669: 89 e5 mov %esp,%ebp 10c66b: 53 push %ebx 10c66c: 83 ec 08 sub $0x8,%esp 10c66f: 8b 45 08 mov 0x8(%ebp),%eax 10c672: 8b 55 0c mov 0xc(%ebp),%edx 10c675: 8b 5d 10 mov 0x10(%ebp),%ebx _Internal_errors_What_happened.the_source = the_source; 10c678: a3 00 54 12 00 mov %eax,0x125400 _Internal_errors_What_happened.is_internal = is_internal; 10c67d: 88 15 04 54 12 00 mov %dl,0x125404 _Internal_errors_What_happened.the_error = the_error; 10c683: 89 1d 08 54 12 00 mov %ebx,0x125408 _User_extensions_Fatal( the_source, is_internal, the_error ); 10c689: 53 push %ebx 10c68a: 0f b6 d2 movzbl %dl,%edx 10c68d: 52 push %edx 10c68e: 50 push %eax 10c68f: e8 e4 1a 00 00 call 10e178 <_User_extensions_Fatal> RTEMS_INLINE_ROUTINE void _System_state_Set ( System_state_Codes state ) { _System_state_Current = state; 10c694: c7 05 20 55 12 00 05 movl $0x5,0x125520 <== NOT EXECUTED 10c69b: 00 00 00 <== NOT EXECUTED _System_state_Set( SYSTEM_STATE_FAILED ); _CPU_Fatal_halt( the_error ); 10c69e: fa cli <== NOT EXECUTED 10c69f: 89 d8 mov %ebx,%eax <== NOT EXECUTED 10c6a1: f4 hlt <== NOT EXECUTED 10c6a2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10c6a5: eb fe jmp 10c6a5 <_Internal_error_Occurred+0x3d> <== NOT EXECUTED 00110598 <_Objects_API_maximum_class>: #include unsigned int _Objects_API_maximum_class( uint32_t api ) { 110598: 55 push %ebp 110599: 89 e5 mov %esp,%ebp case OBJECTS_NO_API: default: break; } return 0; } 11059b: 8b 45 08 mov 0x8(%ebp),%eax 11059e: 48 dec %eax 11059f: 83 f8 03 cmp $0x3,%eax 1105a2: 77 0c ja 1105b0 <_Objects_API_maximum_class+0x18> 1105a4: 8b 04 85 70 ff 11 00 mov 0x11ff70(,%eax,4),%eax 1105ab: c9 leave 1105ac: c3 ret 1105ad: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 1105b0: 31 c0 xor %eax,%eax 1105b2: c9 leave 1105b3: c3 ret 0010c700 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) { 10c700: 55 push %ebp 10c701: 89 e5 mov %esp,%ebp 10c703: 56 push %esi 10c704: 53 push %ebx 10c705: 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 ) 10c708: 8b 43 18 mov 0x18(%ebx),%eax 10c70b: 85 c0 test %eax,%eax 10c70d: 75 0d jne 10c71c <_Objects_Allocate+0x1c> 10c70f: 31 c9 xor %ecx,%ecx <== NOT EXECUTED information->inactive--; } } return the_object; } 10c711: 89 c8 mov %ecx,%eax 10c713: 8d 65 f8 lea -0x8(%ebp),%esp 10c716: 5b pop %ebx 10c717: 5e pop %esi 10c718: c9 leave 10c719: c3 ret 10c71a: 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 ); 10c71c: 8d 73 20 lea 0x20(%ebx),%esi 10c71f: 83 ec 0c sub $0xc,%esp 10c722: 56 push %esi 10c723: e8 68 f7 ff ff call 10be90 <_Chain_Get> 10c728: 89 c1 mov %eax,%ecx if ( information->auto_extend ) { 10c72a: 83 c4 10 add $0x10,%esp 10c72d: 80 7b 12 00 cmpb $0x0,0x12(%ebx) 10c731: 74 de je 10c711 <_Objects_Allocate+0x11> /* * If the list is empty then we are out of objects and need to * extend information base. */ if ( !the_object ) { 10c733: 85 c0 test %eax,%eax 10c735: 74 29 je 10c760 <_Objects_Allocate+0x60> } if ( the_object ) { uint32_t block; block = (uint32_t) _Objects_Get_index( the_object->id ) - 10c737: 0f b7 41 08 movzwl 0x8(%ecx),%eax 10c73b: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10c73f: 29 d0 sub %edx,%eax _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; information->inactive_per_block[ block ]--; 10c741: 0f b7 73 14 movzwl 0x14(%ebx),%esi 10c745: 31 d2 xor %edx,%edx 10c747: f7 f6 div %esi 10c749: c1 e0 02 shl $0x2,%eax 10c74c: 03 43 30 add 0x30(%ebx),%eax 10c74f: ff 08 decl (%eax) information->inactive--; 10c751: 66 ff 4b 2c decw 0x2c(%ebx) } } return the_object; } 10c755: 89 c8 mov %ecx,%eax 10c757: 8d 65 f8 lea -0x8(%ebp),%esp 10c75a: 5b pop %ebx 10c75b: 5e pop %esi 10c75c: c9 leave 10c75d: c3 ret 10c75e: 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 ); 10c760: 83 ec 0c sub $0xc,%esp 10c763: 53 push %ebx 10c764: e8 3b 00 00 00 call 10c7a4 <_Objects_Extend_information> the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); 10c769: 89 34 24 mov %esi,(%esp) 10c76c: e8 1f f7 ff ff call 10be90 <_Chain_Get> 10c771: 89 c1 mov %eax,%ecx } if ( the_object ) { 10c773: 83 c4 10 add $0x10,%esp 10c776: 85 c0 test %eax,%eax 10c778: 74 97 je 10c711 <_Objects_Allocate+0x11> 10c77a: eb bb jmp 10c737 <_Objects_Allocate+0x37> 0010c7a4 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 10c7a4: 55 push %ebp 10c7a5: 89 e5 mov %esp,%ebp 10c7a7: 57 push %edi 10c7a8: 56 push %esi 10c7a9: 53 push %ebx 10c7aa: 83 ec 4c sub $0x4c,%esp 10c7ad: 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 ); 10c7b0: 0f b7 43 08 movzwl 0x8(%ebx),%eax 10c7b4: 89 45 d0 mov %eax,-0x30(%ebp) index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 10c7b7: 8b 4b 34 mov 0x34(%ebx),%ecx 10c7ba: 85 c9 test %ecx,%ecx 10c7bc: 0f 84 72 02 00 00 je 10ca34 <_Objects_Extend_information+0x290> block_count = 0; else { block_count = information->maximum / information->allocation_size; 10c7c2: 8b 7b 10 mov 0x10(%ebx),%edi 10c7c5: 66 89 7d d4 mov %di,-0x2c(%ebp) 10c7c9: 8b 7b 14 mov 0x14(%ebx),%edi 10c7cc: 31 d2 xor %edx,%edx 10c7ce: 8b 45 d4 mov -0x2c(%ebp),%eax 10c7d1: 66 f7 f7 div %di 10c7d4: 0f b7 f0 movzwl %ax,%esi for ( ; block < block_count; block++ ) { 10c7d7: 85 f6 test %esi,%esi 10c7d9: 0f 84 6c 02 00 00 je 10ca4b <_Objects_Extend_information+0x2a7> if ( information->object_blocks[ block ] == NULL ) 10c7df: 8b 01 mov (%ecx),%eax 10c7e1: 85 c0 test %eax,%eax 10c7e3: 0f 84 72 02 00 00 je 10ca5b <_Objects_Extend_information+0x2b7> 10c7e9: 0f b7 ff movzwl %di,%edi 10c7ec: 8b 55 d0 mov -0x30(%ebp),%edx 10c7ef: 89 55 cc mov %edx,-0x34(%ebp) 10c7f2: 31 d2 xor %edx,%edx 10c7f4: 8b 45 cc mov -0x34(%ebp),%eax 10c7f7: eb 09 jmp 10c802 <_Objects_Extend_information+0x5e> 10c7f9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10c7fc: 83 3c 91 00 cmpl $0x0,(%ecx,%edx,4) 10c800: 74 07 je 10c809 <_Objects_Extend_information+0x65> break; else index_base += information->allocation_size; 10c802: 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++ ) { 10c804: 42 inc %edx 10c805: 39 d6 cmp %edx,%esi 10c807: 77 f3 ja 10c7fc <_Objects_Extend_information+0x58> 10c809: 89 45 cc mov %eax,-0x34(%ebp) else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 10c80c: 0f b7 45 d4 movzwl -0x2c(%ebp),%eax 10c810: 01 f8 add %edi,%eax 10c812: 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 ) { 10c815: 3d ff ff 00 00 cmp $0xffff,%eax 10c81a: 0f 87 b1 01 00 00 ja 10c9d1 <_Objects_Extend_information+0x22d> /* * 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; 10c820: 0f af 7b 18 imul 0x18(%ebx),%edi if ( information->auto_extend ) { 10c824: 80 7b 12 00 cmpb $0x0,0x12(%ebx) 10c828: 0f 85 ae 01 00 00 jne 10c9dc <_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 ); 10c82e: 83 ec 0c sub $0xc,%esp 10c831: 57 push %edi 10c832: 89 55 b4 mov %edx,-0x4c(%ebp) 10c835: e8 a6 1c 00 00 call 10e4e0 <_Workspace_Allocate_or_fatal_error> 10c83a: 89 45 c4 mov %eax,-0x3c(%ebp) 10c83d: 83 c4 10 add $0x10,%esp 10c840: 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 ) { 10c843: 0f b7 43 10 movzwl 0x10(%ebx),%eax 10c847: 39 45 cc cmp %eax,-0x34(%ebp) 10c84a: 0f 82 fe 00 00 00 jb 10c94e <_Objects_Extend_information+0x1aa> */ /* * Up the block count and maximum */ block_count++; 10c850: 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 ); 10c853: 83 ec 0c sub $0xc,%esp 10c856: 8d 04 7f lea (%edi,%edi,2),%eax 10c859: 03 45 d4 add -0x2c(%ebp),%eax 10c85c: 03 45 d0 add -0x30(%ebp),%eax 10c85f: c1 e0 02 shl $0x2,%eax 10c862: 50 push %eax 10c863: 89 55 b4 mov %edx,-0x4c(%ebp) 10c866: e8 a1 1c 00 00 call 10e50c <_Workspace_Allocate> 10c86b: 89 45 c8 mov %eax,-0x38(%ebp) if ( !object_blocks ) { 10c86e: 83 c4 10 add $0x10,%esp 10c871: 85 c0 test %eax,%eax 10c873: 8b 55 b4 mov -0x4c(%ebp),%edx 10c876: 0f 84 ef 01 00 00 je 10ca6b <_Objects_Extend_information+0x2c7> RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 10c87c: 8b 45 c8 mov -0x38(%ebp),%eax 10c87f: 8d 04 b8 lea (%eax,%edi,4),%eax 10c882: 89 45 b8 mov %eax,-0x48(%ebp) 10c885: 8b 4d c8 mov -0x38(%ebp),%ecx 10c888: 8d 3c f9 lea (%ecx,%edi,8),%edi 10c88b: 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 ) { 10c88e: 0f b7 43 10 movzwl 0x10(%ebx),%eax 10c892: 39 45 d0 cmp %eax,-0x30(%ebp) 10c895: 0f 82 60 01 00 00 jb 10c9fb <_Objects_Extend_information+0x257> } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 10c89b: 8b 45 d0 mov -0x30(%ebp),%eax 10c89e: 85 c0 test %eax,%eax 10c8a0: 74 16 je 10c8b8 <_Objects_Extend_information+0x114> information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 10c8a2: 31 c0 xor %eax,%eax 10c8a4: 8b 4d bc mov -0x44(%ebp),%ecx 10c8a7: 8b 7d d0 mov -0x30(%ebp),%edi 10c8aa: 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; 10c8ac: 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++ ) { 10c8b3: 40 inc %eax 10c8b4: 39 c7 cmp %eax,%edi 10c8b6: 77 f4 ja 10c8ac <_Objects_Extend_information+0x108> 10c8b8: c1 e6 02 shl $0x2,%esi 10c8bb: 89 75 c0 mov %esi,-0x40(%ebp) } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 10c8be: 8b 45 c8 mov -0x38(%ebp),%eax 10c8c1: 8b 7d c0 mov -0x40(%ebp),%edi 10c8c4: c7 04 38 00 00 00 00 movl $0x0,(%eax,%edi,1) inactive_per_block[block_count] = 0; 10c8cb: 8b 4d b8 mov -0x48(%ebp),%ecx 10c8ce: c7 04 39 00 00 00 00 movl $0x0,(%ecx,%edi,1) for ( index=index_base ; index < ( information->allocation_size + index_base ); 10c8d5: 0f b7 73 14 movzwl 0x14(%ebx),%esi 10c8d9: 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 ; 10c8dc: 39 75 cc cmp %esi,-0x34(%ebp) 10c8df: 73 19 jae 10c8fa <_Objects_Extend_information+0x156> 10c8e1: 8b 7d cc mov -0x34(%ebp),%edi 10c8e4: 8b 45 bc mov -0x44(%ebp),%eax 10c8e7: 8d 0c b8 lea (%eax,%edi,4),%ecx 10c8ea: 89 f8 mov %edi,%eax index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; 10c8ec: 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++ ) { 10c8f2: 40 inc %eax 10c8f3: 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 ; 10c8f6: 39 f0 cmp %esi,%eax 10c8f8: 72 f2 jb 10c8ec <_Objects_Extend_information+0x148> index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; } _ISR_Disable( level ); 10c8fa: 9c pushf 10c8fb: fa cli 10c8fc: 5f pop %edi old_tables = information->object_blocks; 10c8fd: 8b 4b 34 mov 0x34(%ebx),%ecx information->object_blocks = object_blocks; 10c900: 8b 45 c8 mov -0x38(%ebp),%eax 10c903: 89 43 34 mov %eax,0x34(%ebx) information->inactive_per_block = inactive_per_block; 10c906: 8b 45 b8 mov -0x48(%ebp),%eax 10c909: 89 43 30 mov %eax,0x30(%ebx) information->local_table = local_table; 10c90c: 8b 45 bc mov -0x44(%ebp),%eax 10c90f: 89 43 1c mov %eax,0x1c(%ebx) information->maximum = (Objects_Maximum) maximum; 10c912: 8b 45 d4 mov -0x2c(%ebp),%eax 10c915: 66 89 43 10 mov %ax,0x10(%ebx) information->maximum_id = _Objects_Build_id( 10c919: 8b 33 mov (%ebx),%esi 10c91b: c1 e6 18 shl $0x18,%esi 10c91e: 81 ce 00 00 01 00 or $0x10000,%esi 10c924: 0f b7 43 04 movzwl 0x4(%ebx),%eax 10c928: c1 e0 1b shl $0x1b,%eax 10c92b: 09 c6 or %eax,%esi 10c92d: 0f b7 45 d4 movzwl -0x2c(%ebp),%eax 10c931: 09 c6 or %eax,%esi 10c933: 89 73 0c mov %esi,0xc(%ebx) information->the_class, _Objects_Local_node, information->maximum ); _ISR_Enable( level ); 10c936: 57 push %edi 10c937: 9d popf if ( old_tables ) 10c938: 85 c9 test %ecx,%ecx 10c93a: 74 12 je 10c94e <_Objects_Extend_information+0x1aa> _Workspace_Free( old_tables ); 10c93c: 83 ec 0c sub $0xc,%esp 10c93f: 51 push %ecx 10c940: 89 55 b4 mov %edx,-0x4c(%ebp) 10c943: e8 e0 1b 00 00 call 10e528 <_Workspace_Free> 10c948: 83 c4 10 add $0x10,%esp 10c94b: 8b 55 b4 mov -0x4c(%ebp),%edx } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 10c94e: c1 e2 02 shl $0x2,%edx 10c951: 89 55 d0 mov %edx,-0x30(%ebp) 10c954: 8b 43 34 mov 0x34(%ebx),%eax 10c957: 8b 4d c4 mov -0x3c(%ebp),%ecx 10c95a: 89 0c 10 mov %ecx,(%eax,%edx,1) /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 10c95d: ff 73 18 pushl 0x18(%ebx) 10c960: 0f b7 53 14 movzwl 0x14(%ebx),%edx 10c964: 52 push %edx 10c965: 8b 7d d0 mov -0x30(%ebp),%edi 10c968: ff 34 38 pushl (%eax,%edi,1) 10c96b: 8d 7d dc lea -0x24(%ebp),%edi 10c96e: 57 push %edi 10c96f: e8 c4 36 00 00 call 110038 <_Chain_Initialize> information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 10c974: 8d 43 20 lea 0x20(%ebx),%eax 10c977: 89 45 d4 mov %eax,-0x2c(%ebp) 10c97a: 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 ) { 10c97d: 83 c4 10 add $0x10,%esp 10c980: eb 2b jmp 10c9ad <_Objects_Extend_information+0x209> 10c982: 66 90 xchg %ax,%ax <== NOT EXECUTED the_object->id = _Objects_Build_id( 10c984: 8b 13 mov (%ebx),%edx 10c986: c1 e2 18 shl $0x18,%edx 10c989: 81 ca 00 00 01 00 or $0x10000,%edx 10c98f: 0f b7 4b 04 movzwl 0x4(%ebx),%ecx 10c993: c1 e1 1b shl $0x1b,%ecx 10c996: 09 ca or %ecx,%edx 10c998: 09 f2 or %esi,%edx 10c99a: 89 50 08 mov %edx,0x8(%eax) information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 10c99d: 83 ec 08 sub $0x8,%esp 10c9a0: 50 push %eax 10c9a1: ff 75 d4 pushl -0x2c(%ebp) 10c9a4: e8 c3 f4 ff ff call 10be6c <_Chain_Append> index++; 10c9a9: 46 inc %esi 10c9aa: 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 ) { 10c9ad: 83 ec 0c sub $0xc,%esp 10c9b0: 57 push %edi 10c9b1: e8 da f4 ff ff call 10be90 <_Chain_Get> 10c9b6: 83 c4 10 add $0x10,%esp 10c9b9: 85 c0 test %eax,%eax 10c9bb: 75 c7 jne 10c984 <_Objects_Extend_information+0x1e0> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 10c9bd: 8b 43 30 mov 0x30(%ebx),%eax 10c9c0: 0f b7 53 14 movzwl 0x14(%ebx),%edx 10c9c4: 8b 4d d0 mov -0x30(%ebp),%ecx 10c9c7: 89 14 08 mov %edx,(%eax,%ecx,1) information->inactive = 10c9ca: 8b 43 14 mov 0x14(%ebx),%eax 10c9cd: 66 01 43 2c add %ax,0x2c(%ebx) (Objects_Maximum)(information->inactive + information->allocation_size); } 10c9d1: 8d 65 f4 lea -0xc(%ebp),%esp 10c9d4: 5b pop %ebx 10c9d5: 5e pop %esi 10c9d6: 5f pop %edi 10c9d7: c9 leave 10c9d8: c3 ret 10c9d9: 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 ); 10c9dc: 83 ec 0c sub $0xc,%esp 10c9df: 57 push %edi 10c9e0: 89 55 b4 mov %edx,-0x4c(%ebp) 10c9e3: e8 24 1b 00 00 call 10e50c <_Workspace_Allocate> 10c9e8: 89 45 c4 mov %eax,-0x3c(%ebp) if ( !new_object_block ) 10c9eb: 83 c4 10 add $0x10,%esp 10c9ee: 85 c0 test %eax,%eax 10c9f0: 8b 55 b4 mov -0x4c(%ebp),%edx 10c9f3: 0f 85 4a fe ff ff jne 10c843 <_Objects_Extend_information+0x9f> 10c9f9: eb d6 jmp 10c9d1 <_Objects_Extend_information+0x22d> /* * Copy each section of the table over. This has to be performed as * separate parts as size of each block has changed. */ memcpy( object_blocks, 10c9fb: c1 e6 02 shl $0x2,%esi 10c9fe: 89 75 c0 mov %esi,-0x40(%ebp) 10ca01: 8b 73 34 mov 0x34(%ebx),%esi 10ca04: 8b 7d c8 mov -0x38(%ebp),%edi 10ca07: 8b 4d c0 mov -0x40(%ebp),%ecx 10ca0a: f3 a4 rep movsb %ds:(%esi),%es:(%edi) information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 10ca0c: 8b 73 30 mov 0x30(%ebx),%esi 10ca0f: 8b 7d b8 mov -0x48(%ebp),%edi 10ca12: 8b 4d c0 mov -0x40(%ebp),%ecx 10ca15: f3 a4 rep movsb %ds:(%esi),%es:(%edi) information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 10ca17: 0f b7 43 10 movzwl 0x10(%ebx),%eax 10ca1b: 03 45 d0 add -0x30(%ebp),%eax 10ca1e: 8d 0c 85 00 00 00 00 lea 0x0(,%eax,4),%ecx 10ca25: 8b 73 1c mov 0x1c(%ebx),%esi 10ca28: 8b 7d bc mov -0x44(%ebp),%edi 10ca2b: f3 a4 rep movsb %ds:(%esi),%es:(%edi) 10ca2d: e9 8c fe ff ff jmp 10c8be <_Objects_Extend_information+0x11a> 10ca32: 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 ) 10ca34: 8b 53 10 mov 0x10(%ebx),%edx 10ca37: 66 89 55 d4 mov %dx,-0x2c(%ebp) 10ca3b: 0f b7 7b 14 movzwl 0x14(%ebx),%edi 10ca3f: 89 45 cc mov %eax,-0x34(%ebp) 10ca42: 31 d2 xor %edx,%edx 10ca44: 31 f6 xor %esi,%esi 10ca46: e9 c1 fd ff ff jmp 10c80c <_Objects_Extend_information+0x68> block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 10ca4b: 0f b7 ff movzwl %di,%edi <== NOT EXECUTED 10ca4e: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED 10ca51: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED 10ca54: 31 d2 xor %edx,%edx <== NOT EXECUTED 10ca56: e9 b1 fd ff ff jmp 10c80c <_Objects_Extend_information+0x68> <== NOT EXECUTED if ( information->object_blocks[ block ] == NULL ) 10ca5b: 0f b7 ff movzwl %di,%edi <== NOT EXECUTED 10ca5e: 8b 4d d0 mov -0x30(%ebp),%ecx <== NOT EXECUTED 10ca61: 89 4d cc mov %ecx,-0x34(%ebp) <== NOT EXECUTED 10ca64: 31 d2 xor %edx,%edx <== NOT EXECUTED 10ca66: e9 a1 fd ff ff jmp 10c80c <_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 ); 10ca6b: 83 ec 0c sub $0xc,%esp 10ca6e: ff 75 c4 pushl -0x3c(%ebp) 10ca71: e8 b2 1a 00 00 call 10e528 <_Workspace_Free> return; 10ca76: 83 c4 10 add $0x10,%esp 10ca79: e9 53 ff ff ff jmp 10c9d1 <_Objects_Extend_information+0x22d> 0010cbb0 <_Objects_Get>: Objects_Control *_Objects_Get( Objects_Information *information, Objects_Id id, Objects_Locations *location ) { 10cbb0: 55 push %ebp 10cbb1: 89 e5 mov %esp,%ebp 10cbb3: 53 push %ebx 10cbb4: 83 ec 14 sub $0x14,%esp 10cbb7: 8b 55 08 mov 0x8(%ebp),%edx 10cbba: 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; 10cbbd: b8 01 00 00 00 mov $0x1,%eax 10cbc2: 2b 42 08 sub 0x8(%edx),%eax 10cbc5: 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 ) { 10cbc8: 0f b7 4a 10 movzwl 0x10(%edx),%ecx 10cbcc: 39 c8 cmp %ecx,%eax 10cbce: 77 24 ja 10cbf4 <_Objects_Get+0x44> 10cbd0: 8b 0d 58 53 12 00 mov 0x125358,%ecx 10cbd6: 41 inc %ecx 10cbd7: 89 0d 58 53 12 00 mov %ecx,0x125358 _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { 10cbdd: 8b 52 1c mov 0x1c(%edx),%edx 10cbe0: 8b 04 82 mov (%edx,%eax,4),%eax 10cbe3: 85 c0 test %eax,%eax 10cbe5: 74 1b je 10cc02 <_Objects_Get+0x52> *location = OBJECTS_LOCAL; 10cbe7: 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 } 10cbed: 83 c4 14 add $0x14,%esp 10cbf0: 5b pop %ebx 10cbf1: c9 leave 10cbf2: c3 ret 10cbf3: 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; 10cbf4: c7 03 01 00 00 00 movl $0x1,(%ebx) 10cbfa: 31 c0 xor %eax,%eax _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 10cbfc: 83 c4 14 add $0x14,%esp 10cbff: 5b pop %ebx 10cc00: c9 leave 10cc01: c3 ret /* * Valid Id for this API, Class and Node but the object has not * been allocated yet. */ _Thread_Enable_dispatch(); 10cc02: 89 45 f4 mov %eax,-0xc(%ebp) 10cc05: e8 ee 07 00 00 call 10d3f8 <_Thread_Enable_dispatch> *location = OBJECTS_ERROR; 10cc0a: c7 03 01 00 00 00 movl $0x1,(%ebx) return NULL; 10cc10: 8b 45 f4 mov -0xc(%ebp),%eax 10cc13: eb d8 jmp 10cbed <_Objects_Get+0x3d> 0010cb58 <_Objects_Get_isr_disable>: Objects_Information *information, Objects_Id id, Objects_Locations *location, ISR_Level *level_p ) { 10cb58: 55 push %ebp 10cb59: 89 e5 mov %esp,%ebp 10cb5b: 56 push %esi 10cb5c: 53 push %ebx 10cb5d: 8b 55 08 mov 0x8(%ebp),%edx 10cb60: 8b 5d 10 mov 0x10(%ebp),%ebx Objects_Control *the_object; uint32_t index; ISR_Level level; index = id - information->minimum_id + 1; 10cb63: b8 01 00 00 00 mov $0x1,%eax 10cb68: 2b 42 08 sub 0x8(%edx),%eax 10cb6b: 03 45 0c add 0xc(%ebp),%eax _ISR_Disable( level ); 10cb6e: 9c pushf 10cb6f: fa cli 10cb70: 5e pop %esi if ( information->maximum >= index ) { 10cb71: 0f b7 4a 10 movzwl 0x10(%edx),%ecx 10cb75: 39 c8 cmp %ecx,%eax 10cb77: 77 1b ja 10cb94 <_Objects_Get_isr_disable+0x3c> if ( (the_object = information->local_table[ index ]) != NULL ) { 10cb79: 8b 52 1c mov 0x1c(%edx),%edx 10cb7c: 8b 04 82 mov (%edx,%eax,4),%eax 10cb7f: 85 c0 test %eax,%eax 10cb81: 74 21 je 10cba4 <_Objects_Get_isr_disable+0x4c> *location = OBJECTS_LOCAL; 10cb83: c7 03 00 00 00 00 movl $0x0,(%ebx) *level_p = level; 10cb89: 8b 55 14 mov 0x14(%ebp),%edx 10cb8c: 89 32 mov %esi,(%edx) _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 10cb8e: 5b pop %ebx 10cb8f: 5e pop %esi 10cb90: c9 leave 10cb91: c3 ret 10cb92: 66 90 xchg %ax,%ax <== NOT EXECUTED } _ISR_Enable( level ); *location = OBJECTS_ERROR; return NULL; } _ISR_Enable( level ); 10cb94: 56 push %esi 10cb95: 9d popf *location = OBJECTS_ERROR; 10cb96: c7 03 01 00 00 00 movl $0x1,(%ebx) 10cb9c: 31 c0 xor %eax,%eax _Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif } 10cb9e: 5b pop %ebx 10cb9f: 5e pop %esi 10cba0: c9 leave 10cba1: c3 ret 10cba2: 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 ); 10cba4: 56 push %esi 10cba5: 9d popf *location = OBJECTS_ERROR; 10cba6: c7 03 01 00 00 00 movl $0x1,(%ebx) return NULL; 10cbac: eb e0 jmp 10cb8e <_Objects_Get_isr_disable+0x36> 00117d54 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) { 117d54: 55 push %ebp 117d55: 89 e5 mov %esp,%ebp 117d57: 57 push %edi 117d58: 56 push %esi 117d59: 53 push %ebx 117d5a: 83 ec 2c sub $0x2c,%esp 117d5d: 8b 7d 08 mov 0x8(%ebp),%edi 117d60: 8b 75 0c mov 0xc(%ebp),%esi 117d63: 8b 5d 10 mov 0x10(%ebp),%ebx char lname[5]; Objects_Control *the_object; Objects_Locations location; Objects_Id tmpId; if ( length == 0 ) 117d66: 85 f6 test %esi,%esi 117d68: 75 0e jne 117d78 <_Objects_Get_name_as_string+0x24> } } *d = '\0'; _Thread_Enable_dispatch(); return name; 117d6a: 31 db xor %ebx,%ebx } return NULL; /* unreachable path */ } 117d6c: 89 d8 mov %ebx,%eax 117d6e: 8d 65 f4 lea -0xc(%ebp),%esp 117d71: 5b pop %ebx 117d72: 5e pop %esi 117d73: 5f pop %edi 117d74: c9 leave 117d75: c3 ret 117d76: 66 90 xchg %ax,%ax <== NOT EXECUTED Objects_Id tmpId; if ( length == 0 ) return NULL; if ( name == NULL ) 117d78: 85 db test %ebx,%ebx 117d7a: 74 f0 je 117d6c <_Objects_Get_name_as_string+0x18> return NULL; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 117d7c: 85 ff test %edi,%edi 117d7e: 75 08 jne 117d88 <_Objects_Get_name_as_string+0x34> 117d80: a1 b8 3a 13 00 mov 0x133ab8,%eax 117d85: 8b 78 08 mov 0x8(%eax),%edi information = _Objects_Get_information_id( tmpId ); 117d88: 83 ec 0c sub $0xc,%esp 117d8b: 57 push %edi 117d8c: e8 2f 9a ff ff call 1117c0 <_Objects_Get_information_id> if ( !information ) 117d91: 83 c4 10 add $0x10,%esp 117d94: 85 c0 test %eax,%eax 117d96: 74 d2 je 117d6a <_Objects_Get_name_as_string+0x16> return NULL; the_object = _Objects_Get( information, tmpId, &location ); 117d98: 51 push %ecx 117d99: 8d 55 e4 lea -0x1c(%ebp),%edx 117d9c: 52 push %edx 117d9d: 57 push %edi 117d9e: 50 push %eax 117d9f: e8 dc 9a ff ff call 111880 <_Objects_Get> switch ( location ) { 117da4: 83 c4 10 add $0x10,%esp 117da7: 8b 55 e4 mov -0x1c(%ebp),%edx 117daa: 85 d2 test %edx,%edx 117dac: 75 bc jne 117d6a <_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; 117dae: 8b 50 0c mov 0xc(%eax),%edx lname[ 0 ] = (u32_name >> 24) & 0xff; 117db1: 89 d1 mov %edx,%ecx 117db3: c1 e9 18 shr $0x18,%ecx 117db6: 88 c8 mov %cl,%al 117db8: 88 4d df mov %cl,-0x21(%ebp) lname[ 1 ] = (u32_name >> 16) & 0xff; 117dbb: 89 d1 mov %edx,%ecx 117dbd: c1 e9 10 shr $0x10,%ecx 117dc0: 88 4d e0 mov %cl,-0x20(%ebp) lname[ 2 ] = (u32_name >> 8) & 0xff; 117dc3: 89 d1 mov %edx,%ecx 117dc5: c1 e9 08 shr $0x8,%ecx 117dc8: 88 4d e1 mov %cl,-0x1f(%ebp) lname[ 3 ] = (u32_name >> 0) & 0xff; 117dcb: 88 55 e2 mov %dl,-0x1e(%ebp) lname[ 4 ] = '\0'; 117dce: c6 45 e3 00 movb $0x0,-0x1d(%ebp) s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 117dd2: 4e dec %esi 117dd3: 89 75 d4 mov %esi,-0x2c(%ebp) 117dd6: 74 3c je 117e14 <_Objects_Get_name_as_string+0xc0> 117dd8: 84 c0 test %al,%al 117dda: 74 38 je 117e14 <_Objects_Get_name_as_string+0xc0> 117ddc: 89 d9 mov %ebx,%ecx 117dde: 31 d2 xor %edx,%edx 117de0: eb 0a jmp 117dec <_Objects_Get_name_as_string+0x98> 117de2: 66 90 xchg %ax,%ax <== NOT EXECUTED 117de4: 8a 44 15 df mov -0x21(%ebp,%edx,1),%al 117de8: 84 c0 test %al,%al 117dea: 74 1b je 117e07 <_Objects_Get_name_as_string+0xb3> *d = (isprint((unsigned char)*s)) ? *s : '*'; 117dec: 0f b6 f0 movzbl %al,%esi 117def: 8b 3d 58 10 13 00 mov 0x131058,%edi 117df5: f6 44 37 01 97 testb $0x97,0x1(%edi,%esi,1) 117dfa: 75 02 jne 117dfe <_Objects_Get_name_as_string+0xaa> 117dfc: b0 2a mov $0x2a,%al 117dfe: 88 01 mov %al,(%ecx) s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 117e00: 42 inc %edx 117e01: 41 inc %ecx 117e02: 3b 55 d4 cmp -0x2c(%ebp),%edx 117e05: 72 dd jb 117de4 <_Objects_Get_name_as_string+0x90> *d = (isprint((unsigned char)*s)) ? *s : '*'; } } *d = '\0'; 117e07: c6 01 00 movb $0x0,(%ecx) _Thread_Enable_dispatch(); 117e0a: e8 21 a3 ff ff call 112130 <_Thread_Enable_dispatch> return name; 117e0f: e9 58 ff ff ff jmp 117d6c <_Objects_Get_name_as_string+0x18> s = lname; } d = name; if ( s ) { for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) { 117e14: 89 d9 mov %ebx,%ecx 117e16: eb ef jmp 117e07 <_Objects_Get_name_as_string+0xb3> 0011a390 <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) { 11a390: 55 push %ebp 11a391: 89 e5 mov %esp,%ebp 11a393: 57 push %edi 11a394: 56 push %esi 11a395: 53 push %ebx 11a396: 83 ec 0c sub $0xc,%esp 11a399: 8b 5d 08 mov 0x8(%ebp),%ebx 11a39c: 8b 75 0c mov 0xc(%ebp),%esi 11a39f: 8b 7d 10 mov 0x10(%ebp),%edi Objects_Control *object; Objects_Id next_id; if ( !information ) 11a3a2: 85 db test %ebx,%ebx 11a3a4: 75 0a jne 11a3b0 <_Objects_Get_next+0x20> *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; 11a3a6: 31 c0 xor %eax,%eax } 11a3a8: 8d 65 f4 lea -0xc(%ebp),%esp 11a3ab: 5b pop %ebx 11a3ac: 5e pop %esi 11a3ad: 5f pop %edi 11a3ae: c9 leave 11a3af: c3 ret Objects_Id next_id; if ( !information ) return NULL; if ( !location_p ) 11a3b0: 85 ff test %edi,%edi 11a3b2: 74 f2 je 11a3a6 <_Objects_Get_next+0x16> return NULL; if ( !next_id_p ) 11a3b4: 8b 45 14 mov 0x14(%ebp),%eax 11a3b7: 85 c0 test %eax,%eax 11a3b9: 74 eb je 11a3a6 <_Objects_Get_next+0x16> return NULL; if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX) 11a3bb: 66 85 f6 test %si,%si 11a3be: 75 04 jne 11a3c4 <_Objects_Get_next+0x34> next_id = information->minimum_id; 11a3c0: 8b 73 08 mov 0x8(%ebx),%esi 11a3c3: 90 nop else next_id = id; do { /* walked off end of list? */ if (_Objects_Get_index(next_id) > information->maximum) 11a3c4: 66 39 73 10 cmp %si,0x10(%ebx) 11a3c8: 72 22 jb 11a3ec <_Objects_Get_next+0x5c> *location_p = OBJECTS_ERROR; goto final; } /* try to grab one */ object = _Objects_Get(information, next_id, location_p); 11a3ca: 51 push %ecx 11a3cb: 57 push %edi 11a3cc: 56 push %esi 11a3cd: 53 push %ebx 11a3ce: e8 ad 74 ff ff call 111880 <_Objects_Get> next_id++; 11a3d3: 46 inc %esi } while (*location_p != OBJECTS_LOCAL); 11a3d4: 83 c4 10 add $0x10,%esp 11a3d7: 8b 17 mov (%edi),%edx 11a3d9: 85 d2 test %edx,%edx 11a3db: 75 e7 jne 11a3c4 <_Objects_Get_next+0x34> *next_id_p = next_id; 11a3dd: 8b 55 14 mov 0x14(%ebp),%edx 11a3e0: 89 32 mov %esi,(%edx) return object; final: *next_id_p = OBJECTS_ID_FINAL; return 0; } 11a3e2: 8d 65 f4 lea -0xc(%ebp),%esp 11a3e5: 5b pop %ebx 11a3e6: 5e pop %esi 11a3e7: 5f pop %edi 11a3e8: c9 leave 11a3e9: c3 ret 11a3ea: 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; 11a3ec: c7 07 01 00 00 00 movl $0x1,(%edi) *next_id_p = next_id; return object; final: *next_id_p = OBJECTS_ID_FINAL; 11a3f2: 8b 45 14 mov 0x14(%ebp),%eax 11a3f5: c7 00 ff ff ff ff movl $0xffffffff,(%eax) 11a3fb: 31 c0 xor %eax,%eax return 0; 11a3fd: eb a9 jmp 11a3a8 <_Objects_Get_next+0x18> 0010cc18 <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) { 10cc18: 55 push %ebp 10cc19: 89 e5 mov %esp,%ebp 10cc1b: 57 push %edi 10cc1c: 56 push %esi 10cc1d: 53 push %ebx 10cc1e: 83 ec 0c sub $0xc,%esp 10cc21: 8b 45 08 mov 0x8(%ebp),%eax 10cc24: 8b 55 0c mov 0xc(%ebp),%edx 10cc27: 8b 5d 10 mov 0x10(%ebp),%ebx 10cc2a: 8b 75 20 mov 0x20(%ebp),%esi 10cc2d: 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; 10cc31: 89 10 mov %edx,(%eax) information->the_class = the_class; 10cc33: 66 89 58 04 mov %bx,0x4(%eax) information->size = size; 10cc37: 89 78 18 mov %edi,0x18(%eax) information->local_table = 0; 10cc3a: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax) information->inactive_per_block = 0; 10cc41: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax) information->object_blocks = 0; 10cc48: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) information->inactive = 0; 10cc4f: 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; 10cc55: 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; 10cc5b: 8b 3c 95 2c 53 12 00 mov 0x12532c(,%edx,4),%edi 10cc62: 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; 10cc65: 8b 7d 14 mov 0x14(%ebp),%edi 10cc68: 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 = 10cc6b: 89 f9 mov %edi,%ecx 10cc6d: 88 48 12 mov %cl,0x12(%eax) (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false; maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS; 10cc70: 8b 4d 14 mov 0x14(%ebp),%ecx 10cc73: 81 e1 ff ff ff 7f and $0x7fffffff,%ecx /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { 10cc79: 85 ff test %edi,%edi 10cc7b: 74 04 je 10cc81 <_Objects_Initialize_information+0x69> 10cc7d: 85 c9 test %ecx,%ecx 10cc7f: 74 6a je 10cceb <_Objects_Initialize_information+0xd3> } /* * The allocation unit is the maximum value */ information->allocation_size = maximum_per_allocation; 10cc81: 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; 10cc85: c7 40 1c 84 4f 12 00 movl $0x124f84,0x1c(%eax) /* * Calculate minimum and maximum Id's */ minimum_index = (maximum_per_allocation == 0) ? 0 : 1; information->minimum_id = 10cc8c: c1 e2 18 shl $0x18,%edx 10cc8f: 81 ca 00 00 01 00 or $0x10000,%edx 10cc95: c1 e3 1b shl $0x1b,%ebx 10cc98: 09 da or %ebx,%edx 10cc9a: 31 db xor %ebx,%ebx 10cc9c: 85 c9 test %ecx,%ecx 10cc9e: 0f 95 c3 setne %bl 10cca1: 09 da or %ebx,%edx 10cca3: 89 50 08 mov %edx,0x8(%eax) /* * Calculate the maximum name length */ name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 10cca6: f7 c6 03 00 00 00 test $0x3,%esi 10ccac: 75 26 jne 10ccd4 <_Objects_Initialize_information+0xbc> name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; 10ccae: 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); 10ccb2: 8d 50 24 lea 0x24(%eax),%edx 10ccb5: 89 50 20 mov %edx,0x20(%eax) the_chain->permanent_null = NULL; 10ccb8: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax) the_chain->last = _Chain_Head(the_chain); 10ccbf: 8d 50 20 lea 0x20(%eax),%edx 10ccc2: 89 50 28 mov %edx,0x28(%eax) _Chain_Initialize_empty( &information->Inactive ); /* * Initialize objects .. if there are any */ if ( maximum_per_allocation ) { 10ccc5: 85 c9 test %ecx,%ecx 10ccc7: 75 13 jne 10ccdc <_Objects_Initialize_information+0xc4> _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } 10ccc9: 8d 65 f4 lea -0xc(%ebp),%esp 10cccc: 5b pop %ebx 10cccd: 5e pop %esi 10ccce: 5f pop %edi 10cccf: c9 leave 10ccd0: c3 ret 10ccd1: 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) & 10ccd4: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 10ccd7: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED 10ccda: eb d2 jmp 10ccae <_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 ); 10ccdc: 89 45 08 mov %eax,0x8(%ebp) _Chain_Initialize_empty( &information->global_table[ index ] ); } else information->global_table = NULL; #endif } 10ccdf: 8d 65 f4 lea -0xc(%ebp),%esp 10cce2: 5b pop %ebx 10cce3: 5e pop %esi 10cce4: 5f pop %edi 10cce5: 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 ); 10cce6: e9 b9 fa ff ff jmp 10c7a4 <_Objects_Extend_information> /* * Unlimited and maximum of zero is illogical. */ if ( information->auto_extend && maximum_per_allocation == 0) { _Internal_error_Occurred( 10cceb: 50 push %eax 10ccec: 6a 14 push $0x14 10ccee: 6a 01 push $0x1 10ccf0: 6a 00 push $0x0 10ccf2: e8 71 f9 ff ff call 10c668 <_Internal_error_Occurred> 0010cd08 <_Objects_Name_to_id_u32>: Objects_Information *information, uint32_t name, uint32_t node, Objects_Id *id ) { 10cd08: 55 push %ebp 10cd09: 89 e5 mov %esp,%ebp 10cd0b: 57 push %edi 10cd0c: 56 push %esi 10cd0d: 53 push %ebx 10cd0e: 8b 45 08 mov 0x8(%ebp),%eax 10cd11: 8b 4d 0c mov 0xc(%ebp),%ecx 10cd14: 8b 55 10 mov 0x10(%ebp),%edx 10cd17: 8b 7d 14 mov 0x14(%ebp),%edi Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) 10cd1a: 85 ff test %edi,%edi 10cd1c: 74 56 je 10cd74 <_Objects_Name_to_id_u32+0x6c> return OBJECTS_INVALID_ADDRESS; if ( name == 0 ) 10cd1e: 85 c9 test %ecx,%ecx 10cd20: 74 08 je 10cd2a <_Objects_Name_to_id_u32+0x22> return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && 10cd22: 8b 70 10 mov 0x10(%eax),%esi 10cd25: 66 85 f6 test %si,%si 10cd28: 75 0a jne 10cd34 <_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++ ) { 10cd2a: 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 } 10cd2f: 5b pop %ebx 10cd30: 5e pop %esi 10cd31: 5f pop %edi 10cd32: c9 leave 10cd33: c3 ret if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && 10cd34: 85 d2 test %edx,%edx 10cd36: 75 20 jne 10cd58 <_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++ ) { 10cd38: 0f b7 f6 movzwl %si,%esi 10cd3b: 8b 58 1c mov 0x1c(%eax),%ebx 10cd3e: b8 01 00 00 00 mov $0x1,%eax 10cd43: 90 nop the_object = information->local_table[ index ]; 10cd44: 8b 14 83 mov (%ebx,%eax,4),%edx if ( !the_object ) 10cd47: 85 d2 test %edx,%edx 10cd49: 74 05 je 10cd50 <_Objects_Name_to_id_u32+0x48> continue; if ( name == the_object->name.name_u32 ) { 10cd4b: 39 4a 0c cmp %ecx,0xc(%edx) 10cd4e: 74 18 je 10cd68 <_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++ ) { 10cd50: 40 inc %eax 10cd51: 39 c6 cmp %eax,%esi 10cd53: 73 ef jae 10cd44 <_Objects_Name_to_id_u32+0x3c> 10cd55: eb d3 jmp 10cd2a <_Objects_Name_to_id_u32+0x22> 10cd57: 90 nop <== NOT EXECUTED if ( name == 0 ) return OBJECTS_INVALID_NAME; search_local_node = false; if ( information->maximum != 0 && 10cd58: 81 fa ff ff ff 7f cmp $0x7fffffff,%edx 10cd5e: 74 d8 je 10cd38 <_Objects_Name_to_id_u32+0x30> 10cd60: 4a dec %edx 10cd61: 75 c7 jne 10cd2a <_Objects_Name_to_id_u32+0x22> 10cd63: eb d3 jmp 10cd38 <_Objects_Name_to_id_u32+0x30> 10cd65: 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; 10cd68: 8b 42 08 mov 0x8(%edx),%eax 10cd6b: 89 07 mov %eax,(%edi) 10cd6d: 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 } 10cd6f: 5b pop %ebx 10cd70: 5e pop %esi 10cd71: 5f pop %edi 10cd72: c9 leave 10cd73: c3 ret Objects_Name name_for_mp; #endif /* ASSERT: information->is_string == false */ if ( !id ) 10cd74: 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 } 10cd79: 5b pop %ebx 10cd7a: 5e pop %esi 10cd7b: 5f pop %edi 10cd7c: c9 leave 10cd7d: c3 ret 0010eaf8 <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { 10eaf8: 55 push %ebp 10eaf9: 89 e5 mov %esp,%ebp 10eafb: 53 push %ebx 10eafc: 83 ec 0c sub $0xc,%esp 10eaff: 8b 5d 10 mov 0x10(%ebp),%ebx size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); 10eb02: 8b 45 08 mov 0x8(%ebp),%eax 10eb05: 0f b7 40 38 movzwl 0x38(%eax),%eax 10eb09: 50 push %eax 10eb0a: 53 push %ebx 10eb0b: e8 68 66 00 00 call 115178 d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 10eb10: 0f be 0b movsbl (%ebx),%ecx 10eb13: c1 e1 18 shl $0x18,%ecx 10eb16: 83 c4 10 add $0x10,%esp 10eb19: 83 f8 01 cmp $0x1,%eax 10eb1c: 76 32 jbe 10eb50 <_Objects_Set_name+0x58> 10eb1e: 0f be 53 01 movsbl 0x1(%ebx),%edx 10eb22: c1 e2 10 shl $0x10,%edx 10eb25: 09 ca or %ecx,%edx 10eb27: 83 f8 02 cmp $0x2,%eax 10eb2a: 74 2c je 10eb58 <_Objects_Set_name+0x60> 10eb2c: 0f be 4b 02 movsbl 0x2(%ebx),%ecx 10eb30: c1 e1 08 shl $0x8,%ecx 10eb33: 09 d1 or %edx,%ecx 10eb35: 83 f8 03 cmp $0x3,%eax 10eb38: 74 37 je 10eb71 <_Objects_Set_name+0x79> 10eb3a: 0f be 43 03 movsbl 0x3(%ebx),%eax 10eb3e: 09 c1 or %eax,%ecx 10eb40: 8b 55 0c mov 0xc(%ebp),%edx 10eb43: 89 4a 0c mov %ecx,0xc(%edx) ); } return true; } 10eb46: b0 01 mov $0x1,%al 10eb48: 8b 5d fc mov -0x4(%ebp),%ebx 10eb4b: c9 leave 10eb4c: c3 ret 10eb4d: 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( 10eb50: 89 ca mov %ecx,%edx 10eb52: 81 ca 00 00 20 00 or $0x200000,%edx 10eb58: 89 d1 mov %edx,%ecx 10eb5a: 80 cd 20 or $0x20,%ch 10eb5d: b8 20 00 00 00 mov $0x20,%eax 10eb62: 09 c1 or %eax,%ecx 10eb64: 8b 55 0c mov 0xc(%ebp),%edx 10eb67: 89 4a 0c mov %ecx,0xc(%edx) ); } return true; } 10eb6a: b0 01 mov $0x1,%al 10eb6c: 8b 5d fc mov -0x4(%ebp),%ebx 10eb6f: c9 leave 10eb70: c3 ret d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( 10eb71: b0 20 mov $0x20,%al 10eb73: eb c9 jmp 10eb3e <_Objects_Set_name+0x46> 0010cd80 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) { 10cd80: 55 push %ebp 10cd81: 89 e5 mov %esp,%ebp 10cd83: 57 push %edi 10cd84: 56 push %esi 10cd85: 53 push %ebx 10cd86: 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 ); 10cd89: 8b 45 08 mov 0x8(%ebp),%eax 10cd8c: 0f b7 58 08 movzwl 0x8(%eax),%ebx block_count = (information->maximum - index_base) / 10cd90: 0f b7 48 14 movzwl 0x14(%eax),%ecx 10cd94: 0f b7 40 10 movzwl 0x10(%eax),%eax 10cd98: 29 d8 sub %ebx,%eax 10cd9a: 31 d2 xor %edx,%edx 10cd9c: f7 f1 div %ecx information->allocation_size; for ( block = 0; block < block_count; block++ ) { 10cd9e: 85 c0 test %eax,%eax 10cda0: 74 21 je 10cdc3 <_Objects_Shrink_information+0x43> if ( information->inactive_per_block[ block ] == 10cda2: 8b 55 08 mov 0x8(%ebp),%edx 10cda5: 8b 7a 30 mov 0x30(%edx),%edi 10cda8: 3b 0f cmp (%edi),%ecx 10cdaa: 74 1f je 10cdcb <_Objects_Shrink_information+0x4b> information->object_blocks[ block ] = NULL; information->inactive_per_block[ block ] = 0; information->inactive -= information->allocation_size; return; 10cdac: 31 d2 xor %edx,%edx 10cdae: eb 0e jmp 10cdbe <_Objects_Shrink_information+0x3e> } index_base += information->allocation_size; 10cdb0: 01 cb add %ecx,%ebx 10cdb2: 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 ] == 10cdb9: 3b 0c 97 cmp (%edi,%edx,4),%ecx 10cdbc: 74 12 je 10cdd0 <_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++ ) { 10cdbe: 42 inc %edx 10cdbf: 39 d0 cmp %edx,%eax 10cdc1: 77 ed ja 10cdb0 <_Objects_Shrink_information+0x30> return; } index_base += information->allocation_size; } } 10cdc3: 8d 65 f4 lea -0xc(%ebp),%esp 10cdc6: 5b pop %ebx 10cdc7: 5e pop %esi 10cdc8: 5f pop %edi 10cdc9: c9 leave 10cdca: 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 ] == 10cdcb: 31 f6 xor %esi,%esi <== NOT EXECUTED 10cdcd: 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; 10cdd0: 8b 55 08 mov 0x8(%ebp),%edx 10cdd3: 8b 42 20 mov 0x20(%edx),%eax 10cdd6: 89 75 e4 mov %esi,-0x1c(%ebp) 10cdd9: eb 07 jmp 10cde2 <_Objects_Shrink_information+0x62> 10cddb: 90 nop <== NOT EXECUTED if ((index >= index_base) && (index < (index_base + information->allocation_size))) { _Chain_Extract( &extract_me->Node ); } } while ( the_object ); 10cddc: 85 ff test %edi,%edi 10cdde: 74 2c je 10ce0c <_Objects_Shrink_information+0x8c> 10cde0: 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 ); 10cde2: 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; 10cde6: 8b 38 mov (%eax),%edi if ((index >= index_base) && 10cde8: 39 da cmp %ebx,%edx 10cdea: 72 f0 jb 10cddc <_Objects_Shrink_information+0x5c> (index < (index_base + information->allocation_size))) { 10cdec: 8b 75 08 mov 0x8(%ebp),%esi 10cdef: 0f b7 4e 14 movzwl 0x14(%esi),%ecx 10cdf3: 8d 0c 0b lea (%ebx,%ecx,1),%ecx 10cdf6: 39 ca cmp %ecx,%edx 10cdf8: 73 e2 jae 10cddc <_Objects_Shrink_information+0x5c> _Chain_Extract( &extract_me->Node ); 10cdfa: 83 ec 0c sub $0xc,%esp 10cdfd: 50 push %eax 10cdfe: e8 1d 32 00 00 call 110020 <_Chain_Extract> 10ce03: 83 c4 10 add $0x10,%esp } } while ( the_object ); 10ce06: 85 ff test %edi,%edi 10ce08: 75 d6 jne 10cde0 <_Objects_Shrink_information+0x60> 10ce0a: 66 90 xchg %ax,%ax 10ce0c: 8b 75 e4 mov -0x1c(%ebp),%esi /* * Free the memory and reset the structures in the object' information */ _Workspace_Free( information->object_blocks[ block ] ); 10ce0f: 83 ec 0c sub $0xc,%esp 10ce12: 8b 55 08 mov 0x8(%ebp),%edx 10ce15: 8b 42 34 mov 0x34(%edx),%eax 10ce18: ff 34 30 pushl (%eax,%esi,1) 10ce1b: e8 08 17 00 00 call 10e528 <_Workspace_Free> information->object_blocks[ block ] = NULL; 10ce20: 8b 55 08 mov 0x8(%ebp),%edx 10ce23: 8b 42 34 mov 0x34(%edx),%eax 10ce26: c7 04 30 00 00 00 00 movl $0x0,(%eax,%esi,1) information->inactive_per_block[ block ] = 0; 10ce2d: 8b 42 30 mov 0x30(%edx),%eax 10ce30: c7 04 30 00 00 00 00 movl $0x0,(%eax,%esi,1) information->inactive -= information->allocation_size; 10ce37: 8b 42 14 mov 0x14(%edx),%eax 10ce3a: 66 29 42 2c sub %ax,0x2c(%edx) return; 10ce3e: 83 c4 10 add $0x10,%esp } index_base += information->allocation_size; } } 10ce41: 8d 65 f4 lea -0xc(%ebp),%esp 10ce44: 5b pop %ebx 10ce45: 5e pop %esi 10ce46: 5f pop %edi 10ce47: c9 leave 10ce48: c3 ret 0012e4a4 <_Protected_heap_Get_information>: bool _Protected_heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) { 12e4a4: 55 push %ebp 12e4a5: 89 e5 mov %esp,%ebp 12e4a7: 56 push %esi 12e4a8: 53 push %ebx 12e4a9: 8b 5d 08 mov 0x8(%ebp),%ebx 12e4ac: 8b 75 0c mov 0xc(%ebp),%esi if ( !the_heap ) 12e4af: 85 db test %ebx,%ebx 12e4b1: 74 35 je 12e4e8 <_Protected_heap_Get_information+0x44> return false; if ( !the_info ) 12e4b3: 85 f6 test %esi,%esi 12e4b5: 74 31 je 12e4e8 <_Protected_heap_Get_information+0x44> return false; _RTEMS_Lock_allocator(); 12e4b7: 83 ec 0c sub $0xc,%esp 12e4ba: ff 35 b0 df 16 00 pushl 0x16dfb0 12e4c0: e8 77 38 fe ff call 111d3c <_API_Mutex_Lock> _Heap_Get_information( the_heap, the_info ); 12e4c5: 5a pop %edx 12e4c6: 59 pop %ecx 12e4c7: 56 push %esi 12e4c8: 53 push %ebx 12e4c9: e8 f6 e5 00 00 call 13cac4 <_Heap_Get_information> _RTEMS_Unlock_allocator(); 12e4ce: 58 pop %eax 12e4cf: ff 35 b0 df 16 00 pushl 0x16dfb0 12e4d5: e8 aa 38 fe ff call 111d84 <_API_Mutex_Unlock> 12e4da: b0 01 mov $0x1,%al return true; 12e4dc: 83 c4 10 add $0x10,%esp } 12e4df: 8d 65 f8 lea -0x8(%ebp),%esp 12e4e2: 5b pop %ebx 12e4e3: 5e pop %esi 12e4e4: c9 leave 12e4e5: c3 ret 12e4e6: 66 90 xchg %ax,%ax <== NOT EXECUTED _RTEMS_Lock_allocator(); _Heap_Get_information( the_heap, the_info ); _RTEMS_Unlock_allocator(); return true; 12e4e8: 31 c0 xor %eax,%eax } 12e4ea: 8d 65 f8 lea -0x8(%ebp),%esp 12e4ed: 5b pop %ebx 12e4ee: 5e pop %esi 12e4ef: c9 leave 12e4f0: c3 ret 0011069c <_Protected_heap_Walk>: bool _Protected_heap_Walk( Heap_Control *the_heap, int source, bool do_dump ) { 11069c: 55 push %ebp 11069d: 89 e5 mov %esp,%ebp 11069f: 56 push %esi 1106a0: 53 push %ebx 1106a1: 83 ec 10 sub $0x10,%esp 1106a4: 8b 5d 08 mov 0x8(%ebp),%ebx 1106a7: 8b 75 0c mov 0xc(%ebp),%esi 1106aa: 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 ) { 1106ad: 8b 15 78 ca 12 00 mov 0x12ca78,%edx 1106b3: 85 d2 test %edx,%edx 1106b5: 74 19 je 1106d0 <_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 ); 1106b7: 0f b6 c0 movzbl %al,%eax 1106ba: 89 45 10 mov %eax,0x10(%ebp) 1106bd: 89 75 0c mov %esi,0xc(%ebp) 1106c0: 89 5d 08 mov %ebx,0x8(%ebp) } return status; } 1106c3: 8d 65 f8 lea -0x8(%ebp),%esp 1106c6: 5b pop %ebx 1106c7: 5e pop %esi 1106c8: 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 ); 1106c9: e9 1e f2 ff ff jmp 10f8ec <_Heap_Walk> 1106ce: 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(); 1106d0: 83 ec 0c sub $0xc,%esp 1106d3: ff 35 30 cb 12 00 pushl 0x12cb30 1106d9: 88 45 f4 mov %al,-0xc(%ebp) 1106dc: e8 9b e4 ff ff call 10eb7c <_API_Mutex_Lock> status = _Heap_Walk( the_heap, source, do_dump ); 1106e1: 83 c4 0c add $0xc,%esp 1106e4: 8a 45 f4 mov -0xc(%ebp),%al 1106e7: 0f b6 c0 movzbl %al,%eax 1106ea: 50 push %eax 1106eb: 56 push %esi 1106ec: 53 push %ebx 1106ed: e8 fa f1 ff ff call 10f8ec <_Heap_Walk> _RTEMS_Unlock_allocator(); 1106f2: 5a pop %edx 1106f3: ff 35 30 cb 12 00 pushl 0x12cb30 1106f9: 88 45 f4 mov %al,-0xc(%ebp) 1106fc: e8 c3 e4 ff ff call 10ebc4 <_API_Mutex_Unlock> 110701: 83 c4 10 add $0x10,%esp } else { status = _Heap_Walk( the_heap, source, do_dump ); } return status; } 110704: 8a 45 f4 mov -0xc(%ebp),%al 110707: 8d 65 f8 lea -0x8(%ebp),%esp 11070a: 5b pop %ebx 11070b: 5e pop %esi 11070c: c9 leave 11070d: c3 ret 0010fd60 <_RTEMS_tasks_Initialize_user_tasks>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks( void ) { 10fd60: 55 push %ebp 10fd61: 89 e5 mov %esp,%ebp 10fd63: 83 ec 08 sub $0x8,%esp if ( _RTEMS_tasks_Initialize_user_tasks_p ) 10fd66: a1 60 12 12 00 mov 0x121260,%eax 10fd6b: 85 c0 test %eax,%eax 10fd6d: 74 05 je 10fd74 <_RTEMS_tasks_Initialize_user_tasks+0x14> (*_RTEMS_tasks_Initialize_user_tasks_p)(); } 10fd6f: c9 leave */ void _RTEMS_tasks_Initialize_user_tasks( void ) { if ( _RTEMS_tasks_Initialize_user_tasks_p ) (*_RTEMS_tasks_Initialize_user_tasks_p)(); 10fd70: ff e0 jmp *%eax 10fd72: 66 90 xchg %ax,%ax <== NOT EXECUTED } 10fd74: c9 leave 10fd75: c3 ret 0013c560 <_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 ) { 13c560: 55 push %ebp 13c561: 89 e5 mov %esp,%ebp 13c563: 57 push %edi 13c564: 56 push %esi 13c565: 53 push %ebx 13c566: 83 ec 38 sub $0x38,%esp 13c569: 8b 5d 08 mov 0x8(%ebp),%ebx #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ Timestamp_Control uptime; #endif Thread_Control *owning_thread = the_period->owner; 13c56c: 8b 7b 40 mov 0x40(%ebx),%edi /* * Determine elapsed wall time since period initiated. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); 13c56f: 8d 75 e0 lea -0x20(%ebp),%esi 13c572: 56 push %esi 13c573: e8 4c 19 ff ff call 12dec4 <_TOD_Get_uptime> _Timestamp_Subtract( 13c578: 83 c4 0c add $0xc,%esp 13c57b: ff 75 0c pushl 0xc(%ebp) 13c57e: 56 push %esi 13c57f: 8d 43 4c lea 0x4c(%ebx),%eax 13c582: 50 push %eax 13c583: e8 18 7e fd ff call 1143a0 <_Timespec_Subtract> #endif /* * Determine cpu usage since period initiated. */ used = owning_thread->cpu_time_used; 13c588: 8b 87 84 00 00 00 mov 0x84(%edi),%eax 13c58e: 8b 97 88 00 00 00 mov 0x88(%edi),%edx 13c594: 89 45 d8 mov %eax,-0x28(%ebp) 13c597: 89 55 dc mov %edx,-0x24(%ebp) #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ if (owning_thread == _Thread_Executing) { 13c59a: 83 c4 10 add $0x10,%esp 13c59d: 3b 3d b8 df 16 00 cmp 0x16dfb8,%edi 13c5a3: 74 0b je 13c5b0 <_Rate_monotonic_Get_status+0x50> 13c5a5: b0 01 mov $0x1,%al return false; *cpu_since_last_period = used - the_period->cpu_usage_period_initiated; #endif return true; } 13c5a7: 8d 65 f4 lea -0xc(%ebp),%esp 13c5aa: 5b pop %ebx 13c5ab: 5e pop %esi 13c5ac: 5f pop %edi 13c5ad: c9 leave 13c5ae: c3 ret 13c5af: 90 nop <== NOT EXECUTED if (owning_thread == _Thread_Executing) { Thread_CPU_usage_t ran; /* How much time time since last context switch */ _Timestamp_Subtract( 13c5b0: 57 push %edi 13c5b1: 8d 7d d0 lea -0x30(%ebp),%edi 13c5b4: 57 push %edi 13c5b5: 56 push %esi 13c5b6: 68 c0 df 16 00 push $0x16dfc0 13c5bb: e8 e0 7d fd ff call 1143a0 <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &ran ); /* cpu usage += ran */ _Timestamp_Add_to( &used, &ran ); 13c5c0: 59 pop %ecx 13c5c1: 5e pop %esi 13c5c2: 57 push %edi 13c5c3: 8d 75 d8 lea -0x28(%ebp),%esi 13c5c6: 56 push %esi 13c5c7: e8 98 7d fd ff call 114364 <_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)) 13c5cc: 83 c3 44 add $0x44,%ebx 13c5cf: 58 pop %eax 13c5d0: 5a pop %edx 13c5d1: 53 push %ebx 13c5d2: 56 push %esi 13c5d3: e8 c4 06 00 00 call 13cc9c <_Timespec_Less_than> 13c5d8: 83 c4 10 add $0x10,%esp 13c5db: 84 c0 test %al,%al 13c5dd: 74 05 je 13c5e4 <_Rate_monotonic_Get_status+0x84> 13c5df: 31 c0 xor %eax,%eax 13c5e1: eb c4 jmp 13c5a7 <_Rate_monotonic_Get_status+0x47> 13c5e3: 90 nop <== NOT EXECUTED return false; /* used = current cpu usage - cpu usage at start of period */ _Timestamp_Subtract( 13c5e4: 57 push %edi 13c5e5: ff 75 10 pushl 0x10(%ebp) 13c5e8: 56 push %esi 13c5e9: 53 push %ebx 13c5ea: e8 b1 7d fd ff call 1143a0 <_Timespec_Subtract> 13c5ef: b0 01 mov $0x1,%al 13c5f1: 83 c4 10 add $0x10,%esp 13c5f4: eb b1 jmp 13c5a7 <_Rate_monotonic_Get_status+0x47> 0013c4ec <_Rate_monotonic_Initiate_statistics>: } void _Rate_monotonic_Initiate_statistics( Rate_monotonic_Control *the_period ) { 13c4ec: 55 push %ebp 13c4ed: 89 e5 mov %esp,%ebp 13c4ef: 57 push %edi 13c4f0: 56 push %esi 13c4f1: 53 push %ebx 13c4f2: 83 ec 28 sub $0x28,%esp 13c4f5: 8b 5d 08 mov 0x8(%ebp),%ebx Thread_Control *owning_thread = the_period->owner; 13c4f8: 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 ); 13c4fb: 8d 7d e0 lea -0x20(%ebp),%edi 13c4fe: 57 push %edi 13c4ff: e8 c0 19 ff ff call 12dec4 <_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; 13c504: 8b 45 e0 mov -0x20(%ebp),%eax 13c507: 8b 55 e4 mov -0x1c(%ebp),%edx 13c50a: 89 43 4c mov %eax,0x4c(%ebx) 13c50d: 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; 13c510: 8b 86 84 00 00 00 mov 0x84(%esi),%eax 13c516: 8b 96 88 00 00 00 mov 0x88(%esi),%edx 13c51c: 89 43 44 mov %eax,0x44(%ebx) 13c51f: 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) { 13c522: 83 c4 10 add $0x10,%esp 13c525: 3b 35 b8 df 16 00 cmp 0x16dfb8,%esi 13c52b: 74 0b je 13c538 <_Rate_monotonic_Initiate_statistics+0x4c> ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); } #endif } 13c52d: 8d 65 f4 lea -0xc(%ebp),%esp 13c530: 5b pop %ebx 13c531: 5e pop %esi 13c532: 5f pop %edi 13c533: c9 leave 13c534: c3 ret 13c535: 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( 13c538: 51 push %ecx 13c539: 8d 75 d8 lea -0x28(%ebp),%esi 13c53c: 56 push %esi 13c53d: 57 push %edi 13c53e: 68 c0 df 16 00 push $0x16dfc0 13c543: e8 58 7e fd ff call 1143a0 <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran ); 13c548: 58 pop %eax 13c549: 5a pop %edx 13c54a: 56 push %esi 13c54b: 83 c3 44 add $0x44,%ebx 13c54e: 53 push %ebx 13c54f: e8 10 7e fd ff call 114364 <_Timespec_Add_to> 13c554: 83 c4 10 add $0x10,%esp } #endif } 13c557: 8d 65 f4 lea -0xc(%ebp),%esp 13c55a: 5b pop %ebx 13c55b: 5e pop %esi 13c55c: 5f pop %edi 13c55d: c9 leave 13c55e: c3 ret 0013c898 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) { 13c898: 55 push %ebp 13c899: 89 e5 mov %esp,%ebp 13c89b: 83 ec 2c sub $0x2c,%esp 13c89e: 8d 45 f4 lea -0xc(%ebp),%eax 13c8a1: 50 push %eax 13c8a2: ff 75 08 pushl 0x8(%ebp) 13c8a5: 68 80 e4 16 00 push $0x16e480 13c8aa: e8 f1 65 fd ff call 112ea0 <_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 ) { 13c8af: 83 c4 10 add $0x10,%esp 13c8b2: 8b 55 f4 mov -0xc(%ebp),%edx 13c8b5: 85 d2 test %edx,%edx 13c8b7: 75 29 jne 13c8e2 <_Rate_monotonic_Timeout+0x4a> case OBJECTS_LOCAL: the_thread = the_period->owner; 13c8b9: 8b 50 40 mov 0x40(%eax),%edx if ( _States_Is_waiting_for_period( the_thread->current_state ) && 13c8bc: f6 42 11 40 testb $0x40,0x11(%edx) 13c8c0: 74 08 je 13c8ca <_Rate_monotonic_Timeout+0x32> the_thread->Wait.id == the_period->Object.id ) { 13c8c2: 8b 4a 20 mov 0x20(%edx),%ecx 13c8c5: 3b 48 08 cmp 0x8(%eax),%ecx 13c8c8: 74 4e je 13c918 <_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 ) { 13c8ca: 83 78 38 01 cmpl $0x1,0x38(%eax) 13c8ce: 74 14 je 13c8e4 <_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; 13c8d0: 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; 13c8d7: a1 f8 de 16 00 mov 0x16def8,%eax 13c8dc: 48 dec %eax 13c8dd: a3 f8 de 16 00 mov %eax,0x16def8 case OBJECTS_REMOTE: /* impossible */ #endif case OBJECTS_ERROR: break; } } 13c8e2: c9 leave 13c8e3: 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; 13c8e4: c7 40 38 03 00 00 00 movl $0x3,0x38(%eax) _Rate_monotonic_Initiate_statistics( the_period ); 13c8eb: 83 ec 0c sub $0xc,%esp 13c8ee: 50 push %eax 13c8ef: 89 45 e4 mov %eax,-0x1c(%ebp) 13c8f2: e8 f5 fb ff ff call 13c4ec <_Rate_monotonic_Initiate_statistics> Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 13c8f7: 8b 45 e4 mov -0x1c(%ebp),%eax 13c8fa: 8b 50 3c mov 0x3c(%eax),%edx 13c8fd: 89 50 1c mov %edx,0x1c(%eax) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 13c900: 5a pop %edx 13c901: 59 pop %ecx 13c902: 83 c0 10 add $0x10,%eax 13c905: 50 push %eax 13c906: 68 d8 df 16 00 push $0x16dfd8 13c90b: e8 60 7d fd ff call 114670 <_Watchdog_Insert> 13c910: 83 c4 10 add $0x10,%esp 13c913: eb c2 jmp 13c8d7 <_Rate_monotonic_Timeout+0x3f> 13c915: 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 ); 13c918: 83 ec 08 sub $0x8,%esp 13c91b: 68 f8 ff 03 10 push $0x1003fff8 13c920: 52 push %edx 13c921: 89 45 e4 mov %eax,-0x1c(%ebp) 13c924: e8 c7 6a fd ff call 1133f0 <_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 ); 13c929: 8b 45 e4 mov -0x1c(%ebp),%eax 13c92c: 89 04 24 mov %eax,(%esp) 13c92f: eb c1 jmp 13c8f2 <_Rate_monotonic_Timeout+0x5a> 0013c5f8 <_Rate_monotonic_Update_statistics>: } void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) { 13c5f8: 55 push %ebp 13c5f9: 89 e5 mov %esp,%ebp 13c5fb: 57 push %edi 13c5fc: 56 push %esi 13c5fd: 53 push %ebx 13c5fe: 83 ec 1c sub $0x1c,%esp 13c601: 8b 5d 08 mov 0x8(%ebp),%ebx /* * Update the counts. */ stats = &the_period->Statistics; stats->count++; 13c604: ff 43 54 incl 0x54(%ebx) if ( the_period->state == RATE_MONOTONIC_EXPIRED ) 13c607: 83 7b 38 04 cmpl $0x4,0x38(%ebx) 13c60b: 0f 84 bf 00 00 00 je 13c6d0 <_Rate_monotonic_Update_statistics+0xd8> /* * Grab status for time statistics. */ valid_status = _Rate_monotonic_Get_status( the_period, &since_last_period, &executed ); 13c611: 52 push %edx 13c612: 8d 7d e0 lea -0x20(%ebp),%edi 13c615: 57 push %edi 13c616: 8d 75 d8 lea -0x28(%ebp),%esi 13c619: 56 push %esi 13c61a: 53 push %ebx 13c61b: e8 40 ff ff ff call 13c560 <_Rate_monotonic_Get_status> if (!valid_status) 13c620: 83 c4 10 add $0x10,%esp 13c623: 84 c0 test %al,%al 13c625: 75 09 jne 13c630 <_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 } 13c627: 8d 65 f4 lea -0xc(%ebp),%esp 13c62a: 5b pop %ebx 13c62b: 5e pop %esi 13c62c: 5f pop %edi 13c62d: c9 leave 13c62e: c3 ret 13c62f: 90 nop <== NOT EXECUTED /* * Update CPU time */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_cpu_time, &executed ); 13c630: 83 ec 08 sub $0x8,%esp 13c633: 57 push %edi 13c634: 8d 43 6c lea 0x6c(%ebx),%eax 13c637: 50 push %eax 13c638: e8 27 7d fd ff call 114364 <_Timespec_Add_to> if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) ) 13c63d: 59 pop %ecx 13c63e: 58 pop %eax 13c63f: 8d 43 5c lea 0x5c(%ebx),%eax 13c642: 50 push %eax 13c643: 57 push %edi 13c644: e8 53 06 00 00 call 13cc9c <_Timespec_Less_than> 13c649: 83 c4 10 add $0x10,%esp 13c64c: 84 c0 test %al,%al 13c64e: 74 0c je 13c65c <_Rate_monotonic_Update_statistics+0x64> stats->min_cpu_time = executed; 13c650: 8b 45 e0 mov -0x20(%ebp),%eax 13c653: 8b 55 e4 mov -0x1c(%ebp),%edx 13c656: 89 43 5c mov %eax,0x5c(%ebx) 13c659: 89 53 60 mov %edx,0x60(%ebx) if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) 13c65c: 83 ec 08 sub $0x8,%esp 13c65f: 8d 43 64 lea 0x64(%ebx),%eax 13c662: 50 push %eax 13c663: 57 push %edi 13c664: e8 0f 06 00 00 call 13cc78 <_Timespec_Greater_than> 13c669: 83 c4 10 add $0x10,%esp 13c66c: 84 c0 test %al,%al 13c66e: 74 0c je 13c67c <_Rate_monotonic_Update_statistics+0x84> stats->max_cpu_time = executed; 13c670: 8b 45 e0 mov -0x20(%ebp),%eax 13c673: 8b 55 e4 mov -0x1c(%ebp),%edx 13c676: 89 43 64 mov %eax,0x64(%ebx) 13c679: 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 ); 13c67c: 83 ec 08 sub $0x8,%esp 13c67f: 56 push %esi 13c680: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax 13c686: 50 push %eax 13c687: e8 d8 7c fd ff call 114364 <_Timespec_Add_to> if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) 13c68c: 58 pop %eax 13c68d: 5a pop %edx 13c68e: 8d 43 74 lea 0x74(%ebx),%eax 13c691: 50 push %eax 13c692: 56 push %esi 13c693: e8 04 06 00 00 call 13cc9c <_Timespec_Less_than> 13c698: 83 c4 10 add $0x10,%esp 13c69b: 84 c0 test %al,%al 13c69d: 75 39 jne 13c6d8 <_Rate_monotonic_Update_statistics+0xe0> stats->min_wall_time = since_last_period; if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) ) 13c69f: 83 ec 08 sub $0x8,%esp 13c6a2: 8d 43 7c lea 0x7c(%ebx),%eax 13c6a5: 50 push %eax 13c6a6: 56 push %esi 13c6a7: e8 cc 05 00 00 call 13cc78 <_Timespec_Greater_than> 13c6ac: 83 c4 10 add $0x10,%esp 13c6af: 84 c0 test %al,%al 13c6b1: 0f 84 70 ff ff ff je 13c627 <_Rate_monotonic_Update_statistics+0x2f> stats->max_wall_time = since_last_period; 13c6b7: 8b 45 d8 mov -0x28(%ebp),%eax 13c6ba: 8b 55 dc mov -0x24(%ebp),%edx 13c6bd: 89 43 7c mov %eax,0x7c(%ebx) 13c6c0: 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 } 13c6c6: 8d 65 f4 lea -0xc(%ebp),%esp 13c6c9: 5b pop %ebx 13c6ca: 5e pop %esi 13c6cb: 5f pop %edi 13c6cc: c9 leave 13c6cd: c3 ret 13c6ce: 66 90 xchg %ax,%ax <== NOT EXECUTED */ stats = &the_period->Statistics; stats->count++; if ( the_period->state == RATE_MONOTONIC_EXPIRED ) stats->missed_count++; 13c6d0: ff 43 58 incl 0x58(%ebx) 13c6d3: e9 39 ff ff ff jmp 13c611 <_Rate_monotonic_Update_statistics+0x19> */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) ) stats->min_wall_time = since_last_period; 13c6d8: 8b 45 d8 mov -0x28(%ebp),%eax 13c6db: 8b 55 dc mov -0x24(%ebp),%edx 13c6de: 89 43 74 mov %eax,0x74(%ebx) 13c6e1: 89 53 78 mov %edx,0x78(%ebx) 13c6e4: eb b9 jmp 13c69f <_Rate_monotonic_Update_statistics+0xa7> 0010d83c <_TOD_Set>: */ void _TOD_Set( const struct timespec *time ) { 10d83c: 55 push %ebp 10d83d: 89 e5 mov %esp,%ebp 10d83f: 53 push %ebx 10d840: 83 ec 04 sub $0x4,%esp 10d843: 8b 5d 08 mov 0x8(%ebp),%ebx 10d846: a1 98 01 13 00 mov 0x130198,%eax 10d84b: 40 inc %eax 10d84c: a3 98 01 13 00 mov %eax,0x130198 long seconds; _Thread_Disable_dispatch(); _TOD_Deactivate(); seconds = _TOD_Seconds_since_epoch(); 10d851: a1 2c 02 13 00 mov 0x13022c,%eax if ( time->tv_sec < seconds ) 10d856: 8b 13 mov (%ebx),%edx 10d858: 39 d0 cmp %edx,%eax 10d85a: 7f 34 jg 10d890 <_TOD_Set+0x54> Watchdog_Adjust_directions direction, Watchdog_Interval units ) { _Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units ); 10d85c: 51 push %ecx 10d85d: 29 c2 sub %eax,%edx 10d85f: 52 push %edx 10d860: 6a 00 push $0x0 10d862: 68 6c 02 13 00 push $0x13026c 10d867: e8 1c 24 00 00 call 10fc88 <_Watchdog_Adjust> 10d86c: 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 ); 10d86f: 8b 03 mov (%ebx),%eax 10d871: a3 2c 02 13 00 mov %eax,0x13022c 10d876: 8b 43 04 mov 0x4(%ebx),%eax 10d879: a3 30 02 13 00 mov %eax,0x130230 _TOD_Is_set = true; 10d87e: c6 05 ac 01 13 00 01 movb $0x1,0x1301ac _TOD_Activate(); _Thread_Enable_dispatch(); } 10d885: 8b 5d fc mov -0x4(%ebp),%ebx 10d888: c9 leave _Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec ); _TOD_Is_set = true; _TOD_Activate(); _Thread_Enable_dispatch(); 10d889: e9 76 12 00 00 jmp 10eb04 <_Thread_Enable_dispatch> 10d88e: 66 90 xchg %ax,%ax <== NOT EXECUTED 10d890: 51 push %ecx 10d891: 29 d0 sub %edx,%eax 10d893: 50 push %eax 10d894: 6a 01 push $0x1 10d896: 68 6c 02 13 00 push $0x13026c 10d89b: e8 e8 23 00 00 call 10fc88 <_Watchdog_Adjust> 10d8a0: 83 c4 10 add $0x10,%esp 10d8a3: eb ca jmp 10d86f <_TOD_Set+0x33> 0010c05c <_TOD_To_seconds>: */ uint32_t _TOD_To_seconds( const rtems_time_of_day *the_tod ) { 10c05c: 55 push %ebp 10c05d: 89 e5 mov %esp,%ebp 10c05f: 56 push %esi 10c060: 53 push %ebx 10c061: 8b 55 08 mov 0x8(%ebp),%edx uint32_t time; uint32_t year_mod_4; time = the_tod->day - 1; 10c064: 8b 72 08 mov 0x8(%edx),%esi 10c067: 4e dec %esi year_mod_4 = the_tod->year & 3; 10c068: 8b 02 mov (%edx),%eax if ( year_mod_4 == 0 ) 10c06a: 89 c3 mov %eax,%ebx 10c06c: 83 e3 03 and $0x3,%ebx 10c06f: 74 67 je 10c0d8 <_TOD_To_seconds+0x7c> time += _TOD_Days_to_date[ 1 ][ the_tod->month ]; else time += _TOD_Days_to_date[ 0 ][ the_tod->month ]; 10c071: 8b 4a 04 mov 0x4(%edx),%ecx 10c074: 0f b7 8c 09 a0 23 12 movzwl 0x1223a0(%ecx,%ecx,1),%ecx 10c07b: 00 10c07c: 8d 34 31 lea (%ecx,%esi,1),%esi time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) * 10c07f: 0f b7 8c 1b d4 23 12 movzwl 0x1223d4(%ebx,%ebx,1),%ecx 10c086: 00 10c087: 2d c4 07 00 00 sub $0x7c4,%eax 10c08c: c1 e8 02 shr $0x2,%eax 10c08f: 8d 1c c0 lea (%eax,%eax,8),%ebx 10c092: 8d 1c d8 lea (%eax,%ebx,8),%ebx 10c095: 8d 1c 9b lea (%ebx,%ebx,4),%ebx 10c098: 8d 04 98 lea (%eax,%ebx,4),%eax 10c09b: 01 c1 add %eax,%ecx ( (TOD_DAYS_PER_YEAR * 4) + 1); time += _TOD_Days_since_last_leap_year[ year_mod_4 ]; 10c09d: 01 f1 add %esi,%ecx time *= TOD_SECONDS_PER_DAY; 10c09f: 8d 04 89 lea (%ecx,%ecx,4),%eax 10c0a2: 8d 04 81 lea (%ecx,%eax,4),%eax 10c0a5: 8d 04 c1 lea (%ecx,%eax,8),%eax 10c0a8: c1 e0 02 shl $0x2,%eax 10c0ab: 29 c8 sub %ecx,%eax 10c0ad: c1 e0 07 shl $0x7,%eax time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute) 10c0b0: 8b 5a 14 mov 0x14(%edx),%ebx * TOD_SECONDS_PER_MINUTE; time += the_tod->second; 10c0b3: 8b 4a 0c mov 0xc(%edx),%ecx 10c0b6: 8d 0c 49 lea (%ecx,%ecx,2),%ecx 10c0b9: 8d 0c 89 lea (%ecx,%ecx,4),%ecx 10c0bc: c1 e1 02 shl $0x2,%ecx 10c0bf: 03 4a 10 add 0x10(%edx),%ecx 10c0c2: 8d 14 49 lea (%ecx,%ecx,2),%edx 10c0c5: 8d 14 92 lea (%edx,%edx,4),%edx 10c0c8: 8d 94 93 00 e5 da 21 lea 0x21dae500(%ebx,%edx,4),%edx 10c0cf: 8d 04 02 lea (%edx,%eax,1),%eax time += TOD_SECONDS_1970_THROUGH_1988; return( time ); } 10c0d2: 5b pop %ebx 10c0d3: 5e pop %esi 10c0d4: c9 leave 10c0d5: c3 ret 10c0d6: 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 ]; 10c0d8: 8b 4a 04 mov 0x4(%edx),%ecx 10c0db: 0f b7 8c 09 ba 23 12 movzwl 0x1223ba(%ecx,%ecx,1),%ecx 10c0e2: 00 10c0e3: 8d 34 31 lea (%ecx,%esi,1),%esi 10c0e6: eb 97 jmp 10c07f <_TOD_To_seconds+0x23> 0010c0e8 <_TOD_Validate>: */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) { 10c0e8: 55 push %ebp 10c0e9: 89 e5 mov %esp,%ebp 10c0eb: 53 push %ebx 10c0ec: 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(); 10c0ef: 8b 1d 2c 42 12 00 mov 0x12422c,%ebx if ((!the_tod) || 10c0f5: 85 c9 test %ecx,%ecx 10c0f7: 74 53 je 10c14c <_TOD_Validate+0x64> 10c0f9: b8 40 42 0f 00 mov $0xf4240,%eax 10c0fe: 31 d2 xor %edx,%edx 10c100: f7 f3 div %ebx (the_tod->ticks >= ticks_per_second) || 10c102: 3b 41 18 cmp 0x18(%ecx),%eax 10c105: 76 45 jbe 10c14c <_TOD_Validate+0x64> (the_tod->second >= TOD_SECONDS_PER_MINUTE) || 10c107: 83 79 14 3b cmpl $0x3b,0x14(%ecx) 10c10b: 77 3f ja 10c14c <_TOD_Validate+0x64> (the_tod->minute >= TOD_MINUTES_PER_HOUR) || 10c10d: 83 79 10 3b cmpl $0x3b,0x10(%ecx) 10c111: 77 39 ja 10c14c <_TOD_Validate+0x64> (the_tod->hour >= TOD_HOURS_PER_DAY) || 10c113: 83 79 0c 17 cmpl $0x17,0xc(%ecx) 10c117: 77 33 ja 10c14c <_TOD_Validate+0x64> (the_tod->month == 0) || 10c119: 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) || 10c11c: 85 c0 test %eax,%eax 10c11e: 74 2c je 10c14c <_TOD_Validate+0x64> 10c120: 83 f8 0c cmp $0xc,%eax 10c123: 77 27 ja 10c14c <_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) || 10c125: 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) || 10c127: 81 fa c3 07 00 00 cmp $0x7c3,%edx 10c12d: 76 1d jbe 10c14c <_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) ) 10c12f: 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) || 10c132: 85 c9 test %ecx,%ecx 10c134: 74 16 je 10c14c <_TOD_Validate+0x64> (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 ) 10c136: 83 e2 03 and $0x3,%edx 10c139: 75 16 jne 10c151 <_TOD_Validate+0x69> days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ]; 10c13b: 8b 04 85 14 24 12 00 mov 0x122414(,%eax,4),%eax * false - if the the_tod is invalid * * NOTE: This routine only works for leap-years through 2099. */ bool _TOD_Validate( 10c142: 39 c8 cmp %ecx,%eax 10c144: 0f 93 c0 setae %al 10c147: eb 05 jmp 10c14e <_TOD_Validate+0x66> 10c149: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10c14c: 31 c0 xor %eax,%eax if ( the_tod->day > days_in_month ) return false; return true; } 10c14e: 5b pop %ebx 10c14f: c9 leave 10c150: 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 ]; 10c151: 8b 04 85 e0 23 12 00 mov 0x1223e0(,%eax,4),%eax 10c158: eb e8 jmp 10c142 <_TOD_Validate+0x5a> 0010cf10 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) { 10cf10: 55 push %ebp 10cf11: 89 e5 mov %esp,%ebp 10cf13: 57 push %edi 10cf14: 56 push %esi 10cf15: 53 push %ebx 10cf16: 83 ec 28 sub $0x28,%esp 10cf19: 8b 5d 08 mov 0x8(%ebp),%ebx 10cf1c: 8b 75 0c mov 0xc(%ebp),%esi 10cf1f: 8a 45 10 mov 0x10(%ebp),%al 10cf22: 88 45 e7 mov %al,-0x19(%ebp) */ /* * Save original state */ original_state = the_thread->current_state; 10cf25: 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 ); 10cf28: 53 push %ebx 10cf29: e8 2e 0e 00 00 call 10dd5c <_Thread_Set_transient> /* * Do not bother recomputing all the priority related information if * we are not REALLY changing priority. */ if ( the_thread->current_priority != new_priority ) 10cf2e: 83 c4 10 add $0x10,%esp 10cf31: 39 73 14 cmp %esi,0x14(%ebx) 10cf34: 74 0d je 10cf43 <_Thread_Change_priority+0x33> _Thread_Set_priority( the_thread, new_priority ); 10cf36: 83 ec 08 sub $0x8,%esp 10cf39: 56 push %esi 10cf3a: 53 push %ebx 10cf3b: e8 d4 0c 00 00 call 10dc14 <_Thread_Set_priority> 10cf40: 83 c4 10 add $0x10,%esp _ISR_Disable( level ); 10cf43: 9c pushf 10cf44: fa cli 10cf45: 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; 10cf46: 8b 43 10 mov 0x10(%ebx),%eax if ( state != STATES_TRANSIENT ) { 10cf49: 83 f8 04 cmp $0x4,%eax 10cf4c: 74 26 je 10cf74 <_Thread_Change_priority+0x64> /* Only clear the transient state if it wasn't set already */ if ( ! _States_Is_transient( original_state ) ) 10cf4e: 83 e7 04 and $0x4,%edi 10cf51: 74 15 je 10cf68 <_Thread_Change_priority+0x58> the_thread->current_state = _States_Clear( STATES_TRANSIENT, state ); _ISR_Enable( level ); 10cf53: 52 push %edx 10cf54: 9d popf if ( _States_Is_waiting_on_thread_queue( state ) ) { 10cf55: a9 e0 be 03 00 test $0x3bee0,%eax 10cf5a: 0f 85 bc 00 00 00 jne 10d01c <_Thread_Change_priority+0x10c> if ( !_Thread_Is_executing_also_the_heir() && _Thread_Executing->is_preemptible ) _Context_Switch_necessary = true; _ISR_Enable( level ); } 10cf60: 8d 65 f4 lea -0xc(%ebp),%esp 10cf63: 5b pop %ebx 10cf64: 5e pop %esi 10cf65: 5f pop %edi 10cf66: c9 leave 10cf67: 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 ); 10cf68: 89 c1 mov %eax,%ecx 10cf6a: 83 e1 fb and $0xfffffffb,%ecx 10cf6d: 89 4b 10 mov %ecx,0x10(%ebx) 10cf70: eb e1 jmp 10cf53 <_Thread_Change_priority+0x43> 10cf72: 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 ) ) { 10cf74: 83 e7 04 and $0x4,%edi 10cf77: 75 45 jne 10cfbe <_Thread_Change_priority+0xae> * 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 ); 10cf79: 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; 10cf80: 8b 83 90 00 00 00 mov 0x90(%ebx),%eax 10cf86: 66 8b 8b 96 00 00 00 mov 0x96(%ebx),%cx 10cf8d: 66 09 08 or %cx,(%eax) _Priority_Major_bit_map |= the_priority_map->ready_major; 10cf90: 66 a1 0c 54 12 00 mov 0x12540c,%ax 10cf96: 0b 83 94 00 00 00 or 0x94(%ebx),%eax 10cf9c: 66 a3 0c 54 12 00 mov %ax,0x12540c _Priority_Add_to_bit_map( &the_thread->Priority_map ); if ( prepend_it ) 10cfa2: 80 7d e7 00 cmpb $0x0,-0x19(%ebp) 10cfa6: 0f 84 88 00 00 00 je 10d034 <_Thread_Change_priority+0x124> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head( Chain_Control *the_chain ) { return (Chain_Node *) the_chain; 10cfac: 8b 83 8c 00 00 00 mov 0x8c(%ebx),%eax Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 10cfb2: 89 43 04 mov %eax,0x4(%ebx) before_node = after_node->next; 10cfb5: 8b 08 mov (%eax),%ecx after_node->next = the_node; 10cfb7: 89 18 mov %ebx,(%eax) the_node->next = before_node; 10cfb9: 89 0b mov %ecx,(%ebx) before_node->previous = the_node; 10cfbb: 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 ); 10cfbe: 52 push %edx 10cfbf: 9d popf 10cfc0: 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 ); 10cfc1: 66 8b 1d 0c 54 12 00 mov 0x12540c,%bx 10cfc8: 31 c0 xor %eax,%eax 10cfca: 89 c1 mov %eax,%ecx 10cfcc: 66 0f bc cb bsf %bx,%cx _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 10cfd0: 0f b7 c9 movzwl %cx,%ecx 10cfd3: 66 8b 9c 09 a0 54 12 mov 0x1254a0(%ecx,%ecx,1),%bx 10cfda: 00 10cfdb: 66 0f bc c3 bsf %bx,%ax * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 10cfdf: c1 e1 04 shl $0x4,%ecx 10cfe2: 0f b7 c0 movzwl %ax,%eax 10cfe5: 8d 04 01 lea (%ecx,%eax,1),%eax 10cfe8: 8d 0c 40 lea (%eax,%eax,2),%ecx 10cfeb: a1 20 53 12 00 mov 0x125320,%eax 10cff0: 8b 04 88 mov (%eax,%ecx,4),%eax 10cff3: a3 e8 53 12 00 mov %eax,0x1253e8 * is also the heir thread, and false otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void ) { return ( _Thread_Executing == _Thread_Heir ); 10cff8: 8b 0d 18 54 12 00 mov 0x125418,%ecx * We altered the set of thread priorities. So let's figure out * who is the heir and if we need to switch to them. */ _Thread_Calculate_heir(); if ( !_Thread_Is_executing_also_the_heir() && 10cffe: 39 c8 cmp %ecx,%eax 10d000: 74 0d je 10d00f <_Thread_Change_priority+0xff> _Thread_Executing->is_preemptible ) 10d002: 80 79 75 00 cmpb $0x0,0x75(%ecx) 10d006: 74 07 je 10d00f <_Thread_Change_priority+0xff> _Context_Switch_necessary = true; 10d008: c6 05 28 54 12 00 01 movb $0x1,0x125428 _ISR_Enable( level ); 10d00f: 52 push %edx 10d010: 9d popf } 10d011: 8d 65 f4 lea -0xc(%ebp),%esp 10d014: 5b pop %ebx 10d015: 5e pop %esi 10d016: 5f pop %edi 10d017: c9 leave 10d018: c3 ret 10d019: 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 ); 10d01c: 89 5d 0c mov %ebx,0xc(%ebp) 10d01f: 8b 43 44 mov 0x44(%ebx),%eax 10d022: 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 ); } 10d025: 8d 65 f4 lea -0xc(%ebp),%esp 10d028: 5b pop %ebx 10d029: 5e pop %esi 10d02a: 5f pop %edi 10d02b: 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 ); 10d02c: e9 4b 0b 00 00 jmp 10db7c <_Thread_queue_Requeue> 10d031: 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 ); 10d034: 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); 10d03a: 8d 48 04 lea 0x4(%eax),%ecx 10d03d: 89 0b mov %ecx,(%ebx) old_last_node = the_chain->last; 10d03f: 8b 48 08 mov 0x8(%eax),%ecx the_chain->last = the_node; 10d042: 89 58 08 mov %ebx,0x8(%eax) old_last_node->next = the_node; 10d045: 89 19 mov %ebx,(%ecx) the_node->previous = old_last_node; 10d047: 89 4b 04 mov %ecx,0x4(%ebx) 10d04a: e9 6f ff ff ff jmp 10cfbe <_Thread_Change_priority+0xae> 0010d050 <_Thread_Clear_state>: void _Thread_Clear_state( Thread_Control *the_thread, States_Control state ) { 10d050: 55 push %ebp 10d051: 89 e5 mov %esp,%ebp 10d053: 53 push %ebx 10d054: 8b 45 08 mov 0x8(%ebp),%eax 10d057: 8b 55 0c mov 0xc(%ebp),%edx ISR_Level level; States_Control current_state; _ISR_Disable( level ); 10d05a: 9c pushf 10d05b: fa cli 10d05c: 5b pop %ebx current_state = the_thread->current_state; 10d05d: 8b 48 10 mov 0x10(%eax),%ecx if ( current_state & state ) { 10d060: 85 ca test %ecx,%edx 10d062: 74 70 je 10d0d4 <_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); 10d064: f7 d2 not %edx 10d066: 21 ca and %ecx,%edx current_state = 10d068: 89 50 10 mov %edx,0x10(%eax) the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { 10d06b: 85 d2 test %edx,%edx 10d06d: 75 65 jne 10d0d4 <_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; 10d06f: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 10d075: 66 8b 88 96 00 00 00 mov 0x96(%eax),%cx 10d07c: 66 09 0a or %cx,(%edx) _Priority_Major_bit_map |= the_priority_map->ready_major; 10d07f: 66 8b 15 0c 54 12 00 mov 0x12540c,%dx 10d086: 0b 90 94 00 00 00 or 0x94(%eax),%edx 10d08c: 66 89 15 0c 54 12 00 mov %dx,0x12540c _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 10d093: 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); 10d099: 8d 4a 04 lea 0x4(%edx),%ecx 10d09c: 89 08 mov %ecx,(%eax) old_last_node = the_chain->last; 10d09e: 8b 4a 08 mov 0x8(%edx),%ecx the_chain->last = the_node; 10d0a1: 89 42 08 mov %eax,0x8(%edx) old_last_node->next = the_node; 10d0a4: 89 01 mov %eax,(%ecx) the_node->previous = old_last_node; 10d0a6: 89 48 04 mov %ecx,0x4(%eax) _ISR_Flash( level ); 10d0a9: 53 push %ebx 10d0aa: 9d popf 10d0ab: 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 ) { 10d0ac: 8b 50 14 mov 0x14(%eax),%edx 10d0af: 8b 0d e8 53 12 00 mov 0x1253e8,%ecx 10d0b5: 3b 51 14 cmp 0x14(%ecx),%edx 10d0b8: 73 1a jae 10d0d4 <_Thread_Clear_state+0x84> _Thread_Heir = the_thread; 10d0ba: a3 e8 53 12 00 mov %eax,0x1253e8 if ( _Thread_Executing->is_preemptible || 10d0bf: a1 18 54 12 00 mov 0x125418,%eax 10d0c4: 80 78 75 00 cmpb $0x0,0x75(%eax) 10d0c8: 74 12 je 10d0dc <_Thread_Clear_state+0x8c> the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 10d0ca: c6 05 28 54 12 00 01 movb $0x1,0x125428 10d0d1: 8d 76 00 lea 0x0(%esi),%esi } } } _ISR_Enable( level ); 10d0d4: 53 push %ebx 10d0d5: 9d popf } 10d0d6: 5b pop %ebx 10d0d7: c9 leave 10d0d8: c3 ret 10d0d9: 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 || 10d0dc: 85 d2 test %edx,%edx 10d0de: 74 ea je 10d0ca <_Thread_Clear_state+0x7a> 10d0e0: eb f2 jmp 10d0d4 <_Thread_Clear_state+0x84> 0010d0e4 <_Thread_Close>: void _Thread_Close( Objects_Information *information, Thread_Control *the_thread ) { 10d0e4: 55 push %ebp 10d0e5: 89 e5 mov %esp,%ebp 10d0e7: 56 push %esi 10d0e8: 53 push %ebx 10d0e9: 8b 75 08 mov 0x8(%ebp),%esi 10d0ec: 8b 5d 0c mov 0xc(%ebp),%ebx 10d0ef: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10d0f3: 8b 46 1c mov 0x1c(%esi),%eax 10d0f6: 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; 10d0fd: a1 58 53 12 00 mov 0x125358,%eax 10d102: 48 dec %eax 10d103: a3 58 53 12 00 mov %eax,0x125358 * disappear and set a transient state on it. So we temporarily * unnest dispatching. */ _Thread_Unnest_dispatch(); _User_extensions_Thread_delete( the_thread ); 10d108: 83 ec 0c sub $0xc,%esp 10d10b: 53 push %ebx 10d10c: e8 ff 10 00 00 call 10e210 <_User_extensions_Thread_delete> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10d111: a1 58 53 12 00 mov 0x125358,%eax 10d116: 40 inc %eax 10d117: a3 58 53 12 00 mov %eax,0x125358 /* * Now we are in a dispatching critical section again and we * can take the thread OUT of the published set. It is invalid * to use this thread's Id OR name after this call. */ _Objects_Close( information, &the_thread->Object ); 10d11c: 59 pop %ecx 10d11d: 58 pop %eax 10d11e: 53 push %ebx 10d11f: 56 push %esi 10d120: e8 57 f6 ff ff call 10c77c <_Objects_Close> /* * By setting the dormant state, the thread will not be considered * for scheduling when we remove any blocking states. */ _Thread_Set_state( the_thread, STATES_DORMANT ); 10d125: 58 pop %eax 10d126: 5a pop %edx 10d127: 6a 01 push $0x1 10d129: 53 push %ebx 10d12a: e8 51 0b 00 00 call 10dc80 <_Thread_Set_state> if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { 10d12f: 89 1c 24 mov %ebx,(%esp) 10d132: e8 9d 09 00 00 call 10dad4 <_Thread_queue_Extract_with_proxy> 10d137: 83 c4 10 add $0x10,%esp 10d13a: 84 c0 test %al,%al 10d13c: 75 06 jne 10d144 <_Thread_Close+0x60> if ( _Watchdog_Is_active( &the_thread->Timer ) ) 10d13e: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 10d142: 74 68 je 10d1ac <_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 ) ) 10d144: 3b 1d e0 53 12 00 cmp 0x1253e0,%ebx 10d14a: 74 74 je 10d1c0 <_Thread_Close+0xdc> _Thread_Deallocate_fp(); #endif the_thread->fp_context = NULL; 10d14c: c7 83 e8 00 00 00 00 movl $0x0,0xe8(%ebx) 10d153: 00 00 00 if ( the_thread->Start.fp_context ) 10d156: 8b 83 c8 00 00 00 mov 0xc8(%ebx),%eax 10d15c: 85 c0 test %eax,%eax 10d15e: 74 0c je 10d16c <_Thread_Close+0x88> (void) _Workspace_Free( the_thread->Start.fp_context ); 10d160: 83 ec 0c sub $0xc,%esp 10d163: 50 push %eax 10d164: e8 bf 13 00 00 call 10e528 <_Workspace_Free> 10d169: 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 ); 10d16c: 83 ec 0c sub $0xc,%esp 10d16f: 53 push %ebx 10d170: e8 bf 0c 00 00 call 10de34 <_Thread_Stack_Free> the_thread->Start.stack = NULL; 10d175: c7 83 cc 00 00 00 00 movl $0x0,0xcc(%ebx) 10d17c: 00 00 00 if ( the_thread->extensions ) 10d17f: 8b 83 fc 00 00 00 mov 0xfc(%ebx),%eax 10d185: 83 c4 10 add $0x10,%esp 10d188: 85 c0 test %eax,%eax 10d18a: 74 0c je 10d198 <_Thread_Close+0xb4> (void) _Workspace_Free( the_thread->extensions ); 10d18c: 83 ec 0c sub $0xc,%esp 10d18f: 50 push %eax 10d190: e8 93 13 00 00 call 10e528 <_Workspace_Free> 10d195: 83 c4 10 add $0x10,%esp the_thread->extensions = NULL; 10d198: c7 83 fc 00 00 00 00 movl $0x0,0xfc(%ebx) 10d19f: 00 00 00 } 10d1a2: 8d 65 f8 lea -0x8(%ebp),%esp 10d1a5: 5b pop %ebx 10d1a6: 5e pop %esi 10d1a7: c9 leave 10d1a8: c3 ret 10d1a9: 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 ); 10d1ac: 83 ec 0c sub $0xc,%esp 10d1af: 8d 43 48 lea 0x48(%ebx),%eax 10d1b2: 50 push %eax 10d1b3: e8 50 12 00 00 call 10e408 <_Watchdog_Remove> 10d1b8: 83 c4 10 add $0x10,%esp 10d1bb: eb 87 jmp 10d144 <_Thread_Close+0x60> 10d1bd: 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; 10d1c0: c7 05 e0 53 12 00 00 movl $0x0,0x1253e0 10d1c7: 00 00 00 10d1ca: eb 80 jmp 10d14c <_Thread_Close+0x68> 0010d29c <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) { 10d29c: 55 push %ebp 10d29d: 89 e5 mov %esp,%ebp 10d29f: 57 push %edi 10d2a0: 56 push %esi 10d2a1: 53 push %ebx 10d2a2: 83 ec 1c sub $0x1c,%esp Thread_Control *executing; Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; 10d2a5: 8b 1d 18 54 12 00 mov 0x125418,%ebx _ISR_Disable( level ); 10d2ab: 9c pushf 10d2ac: fa cli 10d2ad: 58 pop %eax while ( _Context_Switch_necessary == true ) { 10d2ae: 8a 15 28 54 12 00 mov 0x125428,%dl 10d2b4: 84 d2 test %dl,%dl 10d2b6: 0f 84 10 01 00 00 je 10d3cc <_Thread_Dispatch+0x130> 10d2bc: 8d 7d d8 lea -0x28(%ebp),%edi 10d2bf: e9 d1 00 00 00 jmp 10d395 <_Thread_Dispatch+0xf9> executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) heir->cpu_time_budget = _Thread_Ticks_per_timeslice; _ISR_Enable( level ); 10d2c4: 50 push %eax 10d2c5: 9d popf #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ { Timestamp_Control uptime, ran; _TOD_Get_uptime( &uptime ); 10d2c6: 83 ec 0c sub $0xc,%esp 10d2c9: 8d 45 e0 lea -0x20(%ebp),%eax 10d2cc: 50 push %eax 10d2cd: e8 4a 2f 00 00 call 11021c <_TOD_Get_uptime> _Timestamp_Subtract( 10d2d2: 83 c4 0c add $0xc,%esp 10d2d5: 57 push %edi 10d2d6: 8d 45 e0 lea -0x20(%ebp),%eax 10d2d9: 50 push %eax 10d2da: 68 20 54 12 00 push $0x125420 10d2df: e8 1c 0d 00 00 call 10e000 <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &ran ); _Timestamp_Add_to( &executing->cpu_time_used, &ran ); 10d2e4: 5a pop %edx 10d2e5: 59 pop %ecx 10d2e6: 57 push %edi 10d2e7: 8d 83 84 00 00 00 lea 0x84(%ebx),%eax 10d2ed: 50 push %eax 10d2ee: e8 d1 0c 00 00 call 10dfc4 <_Timespec_Add_to> _Thread_Time_of_last_context_switch = uptime; 10d2f3: 8b 45 e0 mov -0x20(%ebp),%eax 10d2f6: 8b 55 e4 mov -0x1c(%ebp),%edx 10d2f9: a3 20 54 12 00 mov %eax,0x125420 10d2fe: 89 15 24 54 12 00 mov %edx,0x125424 #endif /* * Switch libc's task specific data. */ if ( _Thread_libc_reent ) { 10d304: a1 e4 53 12 00 mov 0x1253e4,%eax 10d309: 83 c4 10 add $0x10,%esp 10d30c: 85 c0 test %eax,%eax 10d30e: 74 10 je 10d320 <_Thread_Dispatch+0x84> executing->libc_reent = *_Thread_libc_reent; 10d310: 8b 10 mov (%eax),%edx 10d312: 89 93 ec 00 00 00 mov %edx,0xec(%ebx) *_Thread_libc_reent = heir->libc_reent; 10d318: 8b 96 ec 00 00 00 mov 0xec(%esi),%edx 10d31e: 89 10 mov %edx,(%eax) } _User_extensions_Thread_switch( executing, heir ); 10d320: 83 ec 08 sub $0x8,%esp 10d323: 56 push %esi 10d324: 53 push %ebx 10d325: e8 66 0f 00 00 call 10e290 <_User_extensions_Thread_switch> if ( executing->fp_context != NULL ) _Context_Save_fp( &executing->fp_context ); #endif #endif _Context_Switch( &executing->Registers, &heir->Registers ); 10d32a: 59 pop %ecx 10d32b: 58 pop %eax 10d32c: 81 c6 d0 00 00 00 add $0xd0,%esi 10d332: 56 push %esi 10d333: 8d 83 d0 00 00 00 lea 0xd0(%ebx),%eax 10d339: 50 push %eax 10d33a: e8 51 12 00 00 call 10e590 <_CPU_Context_switch> #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 10d33f: 83 c4 10 add $0x10,%esp 10d342: 8b 93 e8 00 00 00 mov 0xe8(%ebx),%edx 10d348: 85 d2 test %edx,%edx 10d34a: 74 36 je 10d382 <_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 ); 10d34c: a1 e0 53 12 00 mov 0x1253e0,%eax 10d351: 39 c3 cmp %eax,%ebx 10d353: 74 2d je 10d382 <_Thread_Dispatch+0xe6> !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 10d355: 85 c0 test %eax,%eax 10d357: 74 11 je 10d36a <_Thread_Dispatch+0xce> _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 10d359: 83 ec 0c sub $0xc,%esp 10d35c: 05 e8 00 00 00 add $0xe8,%eax 10d361: 50 push %eax 10d362: e8 5d 12 00 00 call 10e5c4 <_CPU_Context_save_fp> 10d367: 83 c4 10 add $0x10,%esp _Context_Restore_fp( &executing->fp_context ); 10d36a: 83 ec 0c sub $0xc,%esp 10d36d: 8d 83 e8 00 00 00 lea 0xe8(%ebx),%eax 10d373: 50 push %eax 10d374: e8 55 12 00 00 call 10e5ce <_CPU_Context_restore_fp> _Thread_Allocated_fp = executing; 10d379: 89 1d e0 53 12 00 mov %ebx,0x1253e0 10d37f: 83 c4 10 add $0x10,%esp if ( executing->fp_context != NULL ) _Context_Restore_fp( &executing->fp_context ); #endif #endif executing = _Thread_Executing; 10d382: 8b 1d 18 54 12 00 mov 0x125418,%ebx _ISR_Disable( level ); 10d388: 9c pushf 10d389: fa cli 10d38a: 58 pop %eax Thread_Control *heir; ISR_Level level; executing = _Thread_Executing; _ISR_Disable( level ); while ( _Context_Switch_necessary == true ) { 10d38b: 8a 15 28 54 12 00 mov 0x125428,%dl 10d391: 84 d2 test %dl,%dl 10d393: 74 37 je 10d3cc <_Thread_Dispatch+0x130> heir = _Thread_Heir; 10d395: 8b 35 e8 53 12 00 mov 0x1253e8,%esi _Thread_Dispatch_disable_level = 1; 10d39b: c7 05 58 53 12 00 01 movl $0x1,0x125358 10d3a2: 00 00 00 _Context_Switch_necessary = false; 10d3a5: c6 05 28 54 12 00 00 movb $0x0,0x125428 _Thread_Executing = heir; 10d3ac: 89 35 18 54 12 00 mov %esi,0x125418 #if __RTEMS_ADA__ executing->rtems_ada_self = rtems_ada_self; rtems_ada_self = heir->rtems_ada_self; #endif if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE ) 10d3b2: 83 7e 7c 01 cmpl $0x1,0x7c(%esi) 10d3b6: 0f 85 08 ff ff ff jne 10d2c4 <_Thread_Dispatch+0x28> heir->cpu_time_budget = _Thread_Ticks_per_timeslice; 10d3bc: 8b 15 24 53 12 00 mov 0x125324,%edx 10d3c2: 89 56 78 mov %edx,0x78(%esi) 10d3c5: e9 fa fe ff ff jmp 10d2c4 <_Thread_Dispatch+0x28> 10d3ca: 66 90 xchg %ax,%ax <== NOT EXECUTED executing = _Thread_Executing; _ISR_Disable( level ); } _Thread_Dispatch_disable_level = 0; 10d3cc: c7 05 58 53 12 00 00 movl $0x0,0x125358 10d3d3: 00 00 00 _ISR_Enable( level ); 10d3d6: 50 push %eax 10d3d7: 9d popf if ( _Thread_Do_post_task_switch_extension || 10d3d8: a1 fc 53 12 00 mov 0x1253fc,%eax 10d3dd: 85 c0 test %eax,%eax 10d3df: 75 06 jne 10d3e7 <_Thread_Dispatch+0x14b> executing->do_post_task_switch_extension ) { 10d3e1: 80 7b 74 00 cmpb $0x0,0x74(%ebx) 10d3e5: 74 09 je 10d3f0 <_Thread_Dispatch+0x154> executing->do_post_task_switch_extension = false; 10d3e7: c6 43 74 00 movb $0x0,0x74(%ebx) _API_extensions_Run_postswitch(); 10d3eb: e8 5c e9 ff ff call 10bd4c <_API_extensions_Run_postswitch> } } 10d3f0: 8d 65 f4 lea -0xc(%ebp),%esp 10d3f3: 5b pop %ebx 10d3f4: 5e pop %esi 10d3f5: 5f pop %edi 10d3f6: c9 leave 10d3f7: c3 ret 0010d41c <_Thread_Get>: Thread_Control *_Thread_Get ( Objects_Id id, Objects_Locations *location ) { 10d41c: 55 push %ebp 10d41d: 89 e5 mov %esp,%ebp 10d41f: 53 push %ebx 10d420: 83 ec 04 sub $0x4,%esp 10d423: 8b 45 08 mov 0x8(%ebp),%eax 10d426: 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 ) ) { 10d429: 85 c0 test %eax,%eax 10d42b: 74 4b je 10d478 <_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); 10d42d: 89 c2 mov %eax,%edx 10d42f: c1 ea 18 shr $0x18,%edx 10d432: 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 ) 10d435: 8d 5a ff lea -0x1(%edx),%ebx 10d438: 83 fb 03 cmp $0x3,%ebx 10d43b: 77 2b ja 10d468 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } the_class = _Objects_Get_class( id ); if ( the_class != 1 ) { /* threads are always first class :) */ 10d43d: 89 c3 mov %eax,%ebx 10d43f: c1 eb 1b shr $0x1b,%ebx 10d442: 4b dec %ebx 10d443: 75 23 jne 10d468 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } api_information = _Objects_Information_table[ the_api ]; 10d445: 8b 14 95 2c 53 12 00 mov 0x12532c(,%edx,4),%edx if ( !api_information ) { 10d44c: 85 d2 test %edx,%edx 10d44e: 74 18 je 10d468 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } information = api_information[ the_class ]; 10d450: 8b 52 04 mov 0x4(%edx),%edx if ( !information ) { 10d453: 85 d2 test %edx,%edx 10d455: 74 11 je 10d468 <_Thread_Get+0x4c> *location = OBJECTS_ERROR; goto done; } tp = (Thread_Control *) _Objects_Get( information, id, location ); 10d457: 53 push %ebx 10d458: 51 push %ecx 10d459: 50 push %eax 10d45a: 52 push %edx 10d45b: e8 50 f7 ff ff call 10cbb0 <_Objects_Get> 10d460: 83 c4 10 add $0x10,%esp done: return tp; } 10d463: 8b 5d fc mov -0x4(%ebp),%ebx 10d466: c9 leave 10d467: c3 ret goto done; } information = api_information[ the_class ]; if ( !information ) { *location = OBJECTS_ERROR; 10d468: c7 01 01 00 00 00 movl $0x1,(%ecx) 10d46e: 31 c0 xor %eax,%eax tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 10d470: 8b 5d fc mov -0x4(%ebp),%ebx 10d473: c9 leave 10d474: c3 ret 10d475: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10d478: a1 58 53 12 00 mov 0x125358,%eax 10d47d: 40 inc %eax 10d47e: a3 58 53 12 00 mov %eax,0x125358 Objects_Information *information; Thread_Control *tp = (Thread_Control *) 0; if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) { _Thread_Disable_dispatch(); *location = OBJECTS_LOCAL; 10d483: c7 01 00 00 00 00 movl $0x0,(%ecx) tp = _Thread_Executing; 10d489: a1 18 54 12 00 mov 0x125418,%eax tp = (Thread_Control *) _Objects_Get( information, id, location ); done: return tp; } 10d48e: 8b 5d fc mov -0x4(%ebp),%ebx 10d491: c9 leave 10d492: c3 ret 00111e1c <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) { 111e1c: 55 push %ebp 111e1d: 89 e5 mov %esp,%ebp 111e1f: 53 push %ebx 111e20: 83 ec 14 sub $0x14,%esp #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) static char doneConstructors; char doneCons; #endif executing = _Thread_Executing; 111e23: 8b 1d 18 54 12 00 mov 0x125418,%ebx /* * have to put level into a register for those cpu's that use * inline asm here */ level = executing->Start.isr_level; 111e29: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax _ISR_Set_level(level); 111e2f: 85 c0 test %eax,%eax 111e31: 74 79 je 111eac <_Thread_Handler+0x90> 111e33: fa cli #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) doneCons = doneConstructors; 111e34: a0 90 4f 12 00 mov 0x124f90,%al 111e39: 88 45 f7 mov %al,-0x9(%ebp) doneConstructors = 1; 111e3c: c6 05 90 4f 12 00 01 movb $0x1,0x124f90 #endif #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) if ( (executing->fp_context != NULL) && 111e43: 8b 93 e8 00 00 00 mov 0xe8(%ebx),%edx 111e49: 85 d2 test %edx,%edx 111e4b: 74 24 je 111e71 <_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 ); 111e4d: a1 e0 53 12 00 mov 0x1253e0,%eax 111e52: 39 c3 cmp %eax,%ebx 111e54: 74 1b je 111e71 <_Thread_Handler+0x55> !_Thread_Is_allocated_fp( executing ) ) { if ( _Thread_Allocated_fp != NULL ) 111e56: 85 c0 test %eax,%eax 111e58: 74 11 je 111e6b <_Thread_Handler+0x4f> _Context_Save_fp( &_Thread_Allocated_fp->fp_context ); 111e5a: 83 ec 0c sub $0xc,%esp 111e5d: 05 e8 00 00 00 add $0xe8,%eax 111e62: 50 push %eax 111e63: e8 5c c7 ff ff call 10e5c4 <_CPU_Context_save_fp> 111e68: 83 c4 10 add $0x10,%esp _Thread_Allocated_fp = executing; 111e6b: 89 1d e0 53 12 00 mov %ebx,0x1253e0 /* * Take care that 'begin' extensions get to complete before * 'switch' extensions can run. This means must keep dispatch * disabled until all 'begin' extensions complete. */ _User_extensions_Thread_begin( executing ); 111e71: 83 ec 0c sub $0xc,%esp 111e74: 53 push %ebx 111e75: e8 86 c2 ff ff call 10e100 <_User_extensions_Thread_begin> /* * At this point, the dispatch disable level BETTER be 1. */ _Thread_Enable_dispatch(); 111e7a: e8 79 b5 ff ff call 10d3f8 <_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) */ { 111e7f: 83 c4 10 add $0x10,%esp 111e82: 80 7d f7 00 cmpb $0x0,-0x9(%ebp) 111e86: 74 28 je 111eb0 <_Thread_Handler+0x94> INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 111e88: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax 111e8e: 85 c0 test %eax,%eax 111e90: 74 2d je 111ebf <_Thread_Handler+0xa3> * 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 ); 111e92: 83 ec 0c sub $0xc,%esp 111e95: 53 push %ebx 111e96: e8 a1 c2 ff ff call 10e13c <_User_extensions_Thread_exitted> _Internal_error_Occurred( 111e9b: 83 c4 0c add $0xc,%esp 111e9e: 6a 06 push $0x6 111ea0: 6a 01 push $0x1 111ea2: 6a 00 push $0x0 111ea4: e8 bf a7 ff ff call 10c668 <_Internal_error_Occurred> 111ea9: 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); 111eac: fb sti 111ead: eb 85 jmp 111e34 <_Thread_Handler+0x18> 111eaf: 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 (); 111eb0: e8 9b c0 00 00 call 11df50 <__start_set_sysctl_set> } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { 111eb5: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax 111ebb: 85 c0 test %eax,%eax 111ebd: 75 d3 jne 111e92 <_Thread_Handler+0x76> executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( 111ebf: 83 ec 0c sub $0xc,%esp 111ec2: ff b3 a8 00 00 00 pushl 0xa8(%ebx) 111ec8: ff 93 9c 00 00 00 call *0x9c(%ebx) INIT_NAME (); } #endif if ( executing->Start.prototype == THREAD_START_NUMERIC ) { executing->Wait.return_argument = 111ece: 89 43 28 mov %eax,0x28(%ebx) 111ed1: 83 c4 10 add $0x10,%esp 111ed4: eb bc jmp 111e92 <_Thread_Handler+0x76> 0010d494 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) { 10d494: 55 push %ebp 10d495: 89 e5 mov %esp,%ebp 10d497: 57 push %edi 10d498: 56 push %esi 10d499: 53 push %ebx 10d49a: 83 ec 24 sub $0x24,%esp 10d49d: 8b 5d 0c mov 0xc(%ebp),%ebx 10d4a0: 8b 75 14 mov 0x14(%ebp),%esi 10d4a3: 0f b6 7d 18 movzbl 0x18(%ebp),%edi 10d4a7: 8a 45 20 mov 0x20(%ebp),%al 10d4aa: 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; 10d4ad: c7 83 f0 00 00 00 00 movl $0x0,0xf0(%ebx) 10d4b4: 00 00 00 10d4b7: c7 83 f4 00 00 00 00 movl $0x0,0xf4(%ebx) 10d4be: 00 00 00 10d4c1: c7 83 f8 00 00 00 00 movl $0x0,0xf8(%ebx) 10d4c8: 00 00 00 extensions_area = NULL; the_thread->libc_reent = NULL; 10d4cb: c7 83 ec 00 00 00 00 movl $0x0,0xec(%ebx) 10d4d2: 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 ); 10d4d5: 56 push %esi 10d4d6: 53 push %ebx 10d4d7: e8 f4 08 00 00 call 10ddd0 <_Thread_Stack_Allocate> if ( !actual_stack_size || actual_stack_size < stack_size ) 10d4dc: 83 c4 10 add $0x10,%esp 10d4df: 85 c0 test %eax,%eax 10d4e1: 0f 84 65 01 00 00 je 10d64c <_Thread_Initialize+0x1b8> 10d4e7: 39 c6 cmp %eax,%esi 10d4e9: 0f 87 5d 01 00 00 ja 10d64c <_Thread_Initialize+0x1b8> Stack_Control *the_stack, void *starting_address, size_t size ) { the_stack->area = starting_address; 10d4ef: 8b 93 cc 00 00 00 mov 0xcc(%ebx),%edx 10d4f5: 89 93 c4 00 00 00 mov %edx,0xc4(%ebx) the_stack->size = size; 10d4fb: 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 ) { 10d501: 89 f8 mov %edi,%eax 10d503: 84 c0 test %al,%al 10d505: 0f 85 59 01 00 00 jne 10d664 <_Thread_Initialize+0x1d0> 10d50b: 31 c0 xor %eax,%eax 10d50d: 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; 10d514: 89 83 e8 00 00 00 mov %eax,0xe8(%ebx) the_thread->Start.fp_context = fp_area; 10d51a: 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; 10d520: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx) the_watchdog->routine = routine; 10d527: c7 43 64 00 00 00 00 movl $0x0,0x64(%ebx) the_watchdog->id = id; 10d52e: c7 43 68 00 00 00 00 movl $0x0,0x68(%ebx) the_watchdog->user_data = user_data; 10d535: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx) #endif /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { 10d53c: a1 f8 53 12 00 mov 0x1253f8,%eax 10d541: 85 c0 test %eax,%eax 10d543: 0f 85 37 01 00 00 jne 10d680 <_Thread_Initialize+0x1ec> (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) goto failed; } the_thread->extensions = (void **) extensions_area; 10d549: c7 83 fc 00 00 00 00 movl $0x0,0xfc(%ebx) 10d550: 00 00 00 10d553: 31 ff xor %edi,%edi /* * General initialization */ the_thread->Start.is_preemptible = is_preemptible; 10d555: 8a 45 e7 mov -0x19(%ebp),%al 10d558: 88 83 ac 00 00 00 mov %al,0xac(%ebx) the_thread->Start.budget_algorithm = budget_algorithm; 10d55e: 8b 45 24 mov 0x24(%ebp),%eax 10d561: 89 83 b0 00 00 00 mov %eax,0xb0(%ebx) the_thread->Start.budget_callout = budget_callout; 10d567: 8b 45 28 mov 0x28(%ebp),%eax 10d56a: 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; 10d570: 8b 45 2c mov 0x2c(%ebp),%eax 10d573: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) the_thread->current_state = STATES_DORMANT; 10d579: c7 43 10 01 00 00 00 movl $0x1,0x10(%ebx) the_thread->Wait.queue = NULL; 10d580: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx) the_thread->resource_count = 0; 10d587: 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; 10d58e: 8b 45 1c mov 0x1c(%ebp),%eax 10d591: 89 43 18 mov %eax,0x18(%ebx) the_thread->Start.initial_priority = priority; 10d594: 89 83 bc 00 00 00 mov %eax,0xbc(%ebx) _Thread_Set_priority( the_thread, priority ); 10d59a: 83 ec 08 sub $0x8,%esp 10d59d: 50 push %eax 10d59e: 53 push %ebx 10d59f: e8 70 06 00 00 call 10dc14 <_Thread_Set_priority> /* * Initialize the CPU usage statistics */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Set_to_zero( &the_thread->cpu_time_used ); 10d5a4: c7 83 84 00 00 00 00 movl $0x0,0x84(%ebx) 10d5ab: 00 00 00 10d5ae: c7 83 88 00 00 00 00 movl $0x0,0x88(%ebx) 10d5b5: 00 00 00 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 10d5b8: 0f b7 53 08 movzwl 0x8(%ebx),%edx 10d5bc: 8b 45 08 mov 0x8(%ebp),%eax 10d5bf: 8b 40 1c mov 0x1c(%eax),%eax 10d5c2: 89 1c 90 mov %ebx,(%eax,%edx,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 10d5c5: 8b 45 30 mov 0x30(%ebp),%eax 10d5c8: 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 ); 10d5cb: 89 1c 24 mov %ebx,(%esp) 10d5ce: e8 f5 0b 00 00 call 10e1c8 <_User_extensions_Thread_create> if ( extension_status ) 10d5d3: 83 c4 10 add $0x10,%esp 10d5d6: 84 c0 test %al,%al 10d5d8: 75 7e jne 10d658 <_Thread_Initialize+0x1c4> return true; failed: if ( the_thread->libc_reent ) 10d5da: 8b 83 ec 00 00 00 mov 0xec(%ebx),%eax 10d5e0: 85 c0 test %eax,%eax 10d5e2: 74 0c je 10d5f0 <_Thread_Initialize+0x15c> _Workspace_Free( the_thread->libc_reent ); 10d5e4: 83 ec 0c sub $0xc,%esp 10d5e7: 50 push %eax 10d5e8: e8 3b 0f 00 00 call 10e528 <_Workspace_Free> 10d5ed: 83 c4 10 add $0x10,%esp 10d5f0: 31 f6 xor %esi,%esi for ( i=0 ; i <= THREAD_API_LAST ; i++ ) if ( the_thread->API_Extensions[i] ) 10d5f2: 8b 84 b3 f0 00 00 00 mov 0xf0(%ebx,%esi,4),%eax 10d5f9: 85 c0 test %eax,%eax 10d5fb: 74 0c je 10d609 <_Thread_Initialize+0x175> _Workspace_Free( the_thread->API_Extensions[i] ); 10d5fd: 83 ec 0c sub $0xc,%esp 10d600: 50 push %eax 10d601: e8 22 0f 00 00 call 10e528 <_Workspace_Free> 10d606: 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++ ) 10d609: 46 inc %esi 10d60a: 83 fe 03 cmp $0x3,%esi 10d60d: 75 e3 jne 10d5f2 <_Thread_Initialize+0x15e> if ( the_thread->API_Extensions[i] ) _Workspace_Free( the_thread->API_Extensions[i] ); if ( extensions_area ) 10d60f: 85 ff test %edi,%edi 10d611: 74 0c je 10d61f <_Thread_Initialize+0x18b> (void) _Workspace_Free( extensions_area ); 10d613: 83 ec 0c sub $0xc,%esp 10d616: 57 push %edi 10d617: e8 0c 0f 00 00 call 10e528 <_Workspace_Free> 10d61c: 83 c4 10 add $0x10,%esp #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( fp_area ) 10d61f: 8b 45 e0 mov -0x20(%ebp),%eax 10d622: 85 c0 test %eax,%eax 10d624: 74 0e je 10d634 <_Thread_Initialize+0x1a0> (void) _Workspace_Free( fp_area ); 10d626: 83 ec 0c sub $0xc,%esp 10d629: ff 75 e0 pushl -0x20(%ebp) 10d62c: e8 f7 0e 00 00 call 10e528 <_Workspace_Free> 10d631: 83 c4 10 add $0x10,%esp #endif _Thread_Stack_Free( the_thread ); 10d634: 83 ec 0c sub $0xc,%esp 10d637: 53 push %ebx 10d638: e8 f7 07 00 00 call 10de34 <_Thread_Stack_Free> 10d63d: 31 c0 xor %eax,%eax return false; 10d63f: 83 c4 10 add $0x10,%esp } 10d642: 8d 65 f4 lea -0xc(%ebp),%esp 10d645: 5b pop %ebx 10d646: 5e pop %esi 10d647: 5f pop %edi 10d648: c9 leave 10d649: c3 ret 10d64a: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( fp_area ) (void) _Workspace_Free( fp_area ); #endif _Thread_Stack_Free( the_thread ); return false; 10d64c: 31 c0 xor %eax,%eax } 10d64e: 8d 65 f4 lea -0xc(%ebp),%esp 10d651: 5b pop %ebx 10d652: 5e pop %esi 10d653: 5f pop %edi 10d654: c9 leave 10d655: c3 ret 10d656: 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 ) 10d658: b0 01 mov $0x1,%al _Thread_Stack_Free( the_thread ); return false; } 10d65a: 8d 65 f4 lea -0xc(%ebp),%esp 10d65d: 5b pop %ebx 10d65e: 5e pop %esi 10d65f: 5f pop %edi 10d660: c9 leave 10d661: c3 ret 10d662: 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 ); 10d664: 83 ec 0c sub $0xc,%esp 10d667: 6a 6c push $0x6c 10d669: e8 9e 0e 00 00 call 10e50c <_Workspace_Allocate> 10d66e: 89 45 e0 mov %eax,-0x20(%ebp) if ( !fp_area ) 10d671: 83 c4 10 add $0x10,%esp 10d674: 85 c0 test %eax,%eax 10d676: 74 55 je 10d6cd <_Thread_Initialize+0x239> 10d678: 8b 45 e0 mov -0x20(%ebp),%eax 10d67b: e9 94 fe ff ff jmp 10d514 <_Thread_Initialize+0x80> /* * Allocate the extensions area for this thread */ if ( _Thread_Maximum_extensions ) { extensions_area = _Workspace_Allocate( 10d680: 83 ec 0c sub $0xc,%esp 10d683: 8d 04 85 04 00 00 00 lea 0x4(,%eax,4),%eax 10d68a: 50 push %eax 10d68b: e8 7c 0e 00 00 call 10e50c <_Workspace_Allocate> 10d690: 89 c7 mov %eax,%edi (_Thread_Maximum_extensions + 1) * sizeof( void * ) ); if ( !extensions_area ) 10d692: 83 c4 10 add $0x10,%esp 10d695: 85 c0 test %eax,%eax 10d697: 0f 84 3d ff ff ff je 10d5da <_Thread_Initialize+0x146> goto failed; } the_thread->extensions = (void **) extensions_area; 10d69d: 89 c1 mov %eax,%ecx 10d69f: 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++ ) 10d6a5: 8b 35 f8 53 12 00 mov 0x1253f8,%esi 10d6ab: 31 d2 xor %edx,%edx 10d6ad: 31 c0 xor %eax,%eax 10d6af: eb 09 jmp 10d6ba <_Thread_Initialize+0x226> 10d6b1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10d6b4: 8b 8b fc 00 00 00 mov 0xfc(%ebx),%ecx the_thread->extensions[i] = NULL; 10d6ba: 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++ ) 10d6c1: 40 inc %eax 10d6c2: 89 c2 mov %eax,%edx 10d6c4: 39 f0 cmp %esi,%eax 10d6c6: 76 ec jbe 10d6b4 <_Thread_Initialize+0x220> 10d6c8: e9 88 fe ff ff jmp 10d555 <_Thread_Initialize+0xc1> * Allocate the floating point area for this thread */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) if ( is_fp ) { fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE ); if ( !fp_area ) 10d6cd: 31 ff xor %edi,%edi 10d6cf: e9 06 ff ff ff jmp 10d5da <_Thread_Initialize+0x146> 00111510 <_Thread_Reset>: void _Thread_Reset( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 111510: 55 push %ebp 111511: 89 e5 mov %esp,%ebp 111513: 53 push %ebx 111514: 83 ec 10 sub $0x10,%esp 111517: 8b 5d 08 mov 0x8(%ebp),%ebx the_thread->resource_count = 0; 11151a: 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; 111521: 8a 83 ac 00 00 00 mov 0xac(%ebx),%al 111527: 88 43 75 mov %al,0x75(%ebx) the_thread->budget_algorithm = the_thread->Start.budget_algorithm; 11152a: 8b 83 b0 00 00 00 mov 0xb0(%ebx),%eax 111530: 89 43 7c mov %eax,0x7c(%ebx) the_thread->budget_callout = the_thread->Start.budget_callout; 111533: 8b 83 b4 00 00 00 mov 0xb4(%ebx),%eax 111539: 89 83 80 00 00 00 mov %eax,0x80(%ebx) the_thread->Start.pointer_argument = pointer_argument; 11153f: 8b 45 0c mov 0xc(%ebp),%eax 111542: 89 83 a4 00 00 00 mov %eax,0xa4(%ebx) the_thread->Start.numeric_argument = numeric_argument; 111548: 8b 45 10 mov 0x10(%ebp),%eax 11154b: 89 83 a8 00 00 00 mov %eax,0xa8(%ebx) if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) { 111551: 53 push %ebx 111552: e8 55 d0 ff ff call 10e5ac <_Thread_queue_Extract_with_proxy> 111557: 83 c4 10 add $0x10,%esp 11155a: 84 c0 test %al,%al 11155c: 75 06 jne 111564 <_Thread_Reset+0x54> if ( _Watchdog_Is_active( &the_thread->Timer ) ) 11155e: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 111562: 74 28 je 11158c <_Thread_Reset+0x7c> (void) _Watchdog_Remove( &the_thread->Timer ); } if ( the_thread->current_priority != the_thread->Start.initial_priority ) { 111564: 8b 83 bc 00 00 00 mov 0xbc(%ebx),%eax 11156a: 39 43 14 cmp %eax,0x14(%ebx) 11156d: 74 15 je 111584 <_Thread_Reset+0x74> the_thread->real_priority = the_thread->Start.initial_priority; 11156f: 89 43 18 mov %eax,0x18(%ebx) _Thread_Set_priority( the_thread, the_thread->Start.initial_priority ); 111572: 89 45 0c mov %eax,0xc(%ebp) 111575: 89 5d 08 mov %ebx,0x8(%ebp) } } 111578: 8b 5d fc mov -0x4(%ebp),%ebx 11157b: 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 ); 11157c: e9 f7 d1 ff ff jmp 10e778 <_Thread_Set_priority> 111581: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } } 111584: 8b 5d fc mov -0x4(%ebp),%ebx 111587: c9 leave 111588: c3 ret 111589: 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 ); 11158c: 83 ec 0c sub $0xc,%esp 11158f: 8d 43 48 lea 0x48(%ebx),%eax 111592: 50 push %eax 111593: e8 14 da ff ff call 10efac <_Watchdog_Remove> 111598: 83 c4 10 add $0x10,%esp 11159b: eb c7 jmp 111564 <_Thread_Reset+0x54> 001108d8 <_Thread_Reset_timeslice>: * ready chain * select heir */ void _Thread_Reset_timeslice( void ) { 1108d8: 55 push %ebp 1108d9: 89 e5 mov %esp,%ebp 1108db: 56 push %esi 1108dc: 53 push %ebx ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 1108dd: a1 18 54 12 00 mov 0x125418,%eax ready = executing->ready; 1108e2: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx _ISR_Disable( level ); 1108e8: 9c pushf 1108e9: fa cli 1108ea: 59 pop %ecx if ( _Chain_Has_only_one_node( ready ) ) { 1108eb: 8b 1a mov (%edx),%ebx 1108ed: 3b 5a 08 cmp 0x8(%edx),%ebx 1108f0: 74 3e je 110930 <_Thread_Reset_timeslice+0x58> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 1108f2: 8b 30 mov (%eax),%esi previous = the_node->previous; 1108f4: 8b 58 04 mov 0x4(%eax),%ebx next->previous = previous; 1108f7: 89 5e 04 mov %ebx,0x4(%esi) previous->next = next; 1108fa: 89 33 mov %esi,(%ebx) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 1108fc: 8d 5a 04 lea 0x4(%edx),%ebx 1108ff: 89 18 mov %ebx,(%eax) old_last_node = the_chain->last; 110901: 8b 5a 08 mov 0x8(%edx),%ebx the_chain->last = the_node; 110904: 89 42 08 mov %eax,0x8(%edx) old_last_node->next = the_node; 110907: 89 03 mov %eax,(%ebx) the_node->previous = old_last_node; 110909: 89 58 04 mov %ebx,0x4(%eax) return; } _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 11090c: 51 push %ecx 11090d: 9d popf 11090e: fa cli if ( _Thread_Is_heir( executing ) ) 11090f: 3b 05 e8 53 12 00 cmp 0x1253e8,%eax 110915: 74 0d je 110924 <_Thread_Reset_timeslice+0x4c> _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; 110917: c6 05 28 54 12 00 01 movb $0x1,0x125428 _ISR_Enable( level ); 11091e: 51 push %ecx 11091f: 9d popf } 110920: 5b pop %ebx 110921: 5e pop %esi 110922: c9 leave 110923: c3 ret _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 110924: 8b 02 mov (%edx),%eax 110926: a3 e8 53 12 00 mov %eax,0x1253e8 11092b: eb ea jmp 110917 <_Thread_Reset_timeslice+0x3f> 11092d: 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 ); 110930: 51 push %ecx 110931: 9d popf _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; _ISR_Enable( level ); } 110932: 5b pop %ebx 110933: 5e pop %esi 110934: c9 leave 110935: c3 ret 0010e6ec <_Thread_Restart>: bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 10e6ec: 55 push %ebp 10e6ed: 89 e5 mov %esp,%ebp 10e6ef: 53 push %ebx 10e6f0: 83 ec 04 sub $0x4,%esp 10e6f3: 8b 5d 08 mov 0x8(%ebp),%ebx if ( !_States_Is_dormant( the_thread->current_state ) ) { 10e6f6: f6 43 10 01 testb $0x1,0x10(%ebx) 10e6fa: 74 08 je 10e704 <_Thread_Restart+0x18> 10e6fc: 31 c0 xor %eax,%eax return true; } return false; } 10e6fe: 8b 5d fc mov -0x4(%ebp),%ebx 10e701: c9 leave 10e702: c3 ret 10e703: 90 nop <== NOT EXECUTED Thread_Entry_numeric_type numeric_argument ) { if ( !_States_Is_dormant( the_thread->current_state ) ) { _Thread_Set_transient( the_thread ); 10e704: 83 ec 0c sub $0xc,%esp 10e707: 53 push %ebx 10e708: e8 b3 01 00 00 call 10e8c0 <_Thread_Set_transient> _Thread_Reset( the_thread, pointer_argument, numeric_argument ); 10e70d: 83 c4 0c add $0xc,%esp 10e710: ff 75 10 pushl 0x10(%ebp) 10e713: ff 75 0c pushl 0xc(%ebp) 10e716: 53 push %ebx 10e717: e8 f4 2d 00 00 call 111510 <_Thread_Reset> _Thread_Load_environment( the_thread ); 10e71c: 89 1c 24 mov %ebx,(%esp) 10e71f: e8 c8 2a 00 00 call 1111ec <_Thread_Load_environment> _Thread_Ready( the_thread ); 10e724: 89 1c 24 mov %ebx,(%esp) 10e727: e8 40 2d 00 00 call 11146c <_Thread_Ready> _User_extensions_Thread_restart( the_thread ); 10e72c: 89 1c 24 mov %ebx,(%esp) 10e72f: e8 80 06 00 00 call 10edb4 <_User_extensions_Thread_restart> if ( _Thread_Is_executing ( the_thread ) ) 10e734: 83 c4 10 add $0x10,%esp 10e737: 3b 1d 78 74 12 00 cmp 0x127478,%ebx 10e73d: 74 07 je 10e746 <_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 ); 10e73f: b0 01 mov $0x1,%al return true; } return false; } 10e741: 8b 5d fc mov -0x4(%ebp),%ebx 10e744: c9 leave 10e745: 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 ) 10e746: 83 bb e8 00 00 00 00 cmpl $0x0,0xe8(%ebx) 10e74d: 74 18 je 10e767 <_Thread_Restart+0x7b> _Context_Restore_fp( &_Thread_Executing->fp_context ); 10e74f: 83 ec 0c sub $0xc,%esp 10e752: 81 c3 e8 00 00 00 add $0xe8,%ebx 10e758: 53 push %ebx 10e759: e8 20 0a 00 00 call 10f17e <_CPU_Context_restore_fp> 10e75e: 8b 1d 78 74 12 00 mov 0x127478,%ebx 10e764: 83 c4 10 add $0x10,%esp #endif _CPU_Context_Restart_self( &_Thread_Executing->Registers ); 10e767: 83 ec 0c sub $0xc,%esp 10e76a: 81 c3 d0 00 00 00 add $0xd0,%ebx 10e770: 53 push %ebx 10e771: e8 f7 09 00 00 call 10f16d <_CPU_Context_restore> 0011153c <_Thread_Resume>: void _Thread_Resume( Thread_Control *the_thread, bool force ) { 11153c: 55 push %ebp 11153d: 89 e5 mov %esp,%ebp 11153f: 53 push %ebx 111540: 8b 45 08 mov 0x8(%ebp),%eax ISR_Level level; States_Control current_state; _ISR_Disable( level ); 111543: 9c pushf 111544: fa cli 111545: 59 pop %ecx _ISR_Enable( level ); return; } #endif current_state = the_thread->current_state; 111546: 8b 50 10 mov 0x10(%eax),%edx if ( current_state & STATES_SUSPENDED ) { 111549: f6 c2 02 test $0x2,%dl 11154c: 74 6e je 1115bc <_Thread_Resume+0x80> 11154e: 83 e2 fd and $0xfffffffd,%edx current_state = 111551: 89 50 10 mov %edx,0x10(%eax) the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { 111554: 85 d2 test %edx,%edx 111556: 75 64 jne 1115bc <_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; 111558: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 11155e: 66 8b 98 96 00 00 00 mov 0x96(%eax),%bx 111565: 66 09 1a or %bx,(%edx) _Priority_Major_bit_map |= the_priority_map->ready_major; 111568: 66 8b 15 0c a5 12 00 mov 0x12a50c,%dx 11156f: 0b 90 94 00 00 00 or 0x94(%eax),%edx 111575: 66 89 15 0c a5 12 00 mov %dx,0x12a50c _Priority_Add_to_bit_map( &the_thread->Priority_map ); _Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node); 11157c: 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); 111582: 8d 5a 04 lea 0x4(%edx),%ebx 111585: 89 18 mov %ebx,(%eax) old_last_node = the_chain->last; 111587: 8b 5a 08 mov 0x8(%edx),%ebx the_chain->last = the_node; 11158a: 89 42 08 mov %eax,0x8(%edx) old_last_node->next = the_node; 11158d: 89 03 mov %eax,(%ebx) the_node->previous = old_last_node; 11158f: 89 58 04 mov %ebx,0x4(%eax) _ISR_Flash( level ); 111592: 51 push %ecx 111593: 9d popf 111594: fa cli if ( the_thread->current_priority < _Thread_Heir->current_priority ) { 111595: 8b 50 14 mov 0x14(%eax),%edx 111598: 8b 1d e8 a4 12 00 mov 0x12a4e8,%ebx 11159e: 3b 53 14 cmp 0x14(%ebx),%edx 1115a1: 73 19 jae 1115bc <_Thread_Resume+0x80> _Thread_Heir = the_thread; 1115a3: a3 e8 a4 12 00 mov %eax,0x12a4e8 if ( _Thread_Executing->is_preemptible || 1115a8: a1 18 a5 12 00 mov 0x12a518,%eax 1115ad: 80 78 75 00 cmpb $0x0,0x75(%eax) 1115b1: 74 11 je 1115c4 <_Thread_Resume+0x88> the_thread->current_priority == 0 ) _Context_Switch_necessary = true; 1115b3: c6 05 28 a5 12 00 01 movb $0x1,0x12a528 1115ba: 66 90 xchg %ax,%ax } } } _ISR_Enable( level ); 1115bc: 51 push %ecx 1115bd: 9d popf } 1115be: 5b pop %ebx 1115bf: c9 leave 1115c0: c3 ret 1115c1: 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 || 1115c4: 85 d2 test %edx,%edx 1115c6: 74 eb je 1115b3 <_Thread_Resume+0x77> 1115c8: eb f2 jmp 1115bc <_Thread_Resume+0x80> 0010dc80 <_Thread_Set_state>: void _Thread_Set_state( Thread_Control *the_thread, States_Control state ) { 10dc80: 55 push %ebp 10dc81: 89 e5 mov %esp,%ebp 10dc83: 56 push %esi 10dc84: 53 push %ebx 10dc85: 8b 45 08 mov 0x8(%ebp),%eax 10dc88: 8b 75 0c mov 0xc(%ebp),%esi ISR_Level level; Chain_Control *ready; ready = the_thread->ready; 10dc8b: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx _ISR_Disable( level ); 10dc91: 9c pushf 10dc92: fa cli 10dc93: 59 pop %ecx if ( !_States_Is_ready( the_thread->current_state ) ) { 10dc94: 8b 58 10 mov 0x10(%eax),%ebx 10dc97: 85 db test %ebx,%ebx 10dc99: 75 2d jne 10dcc8 <_Thread_Set_state+0x48> _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = state; 10dc9b: 89 70 10 mov %esi,0x10(%eax) if ( _Chain_Has_only_one_node( ready ) ) { 10dc9e: 8b 1a mov (%edx),%ebx 10dca0: 3b 5a 08 cmp 0x8(%edx),%ebx 10dca3: 74 3b je 10dce0 <_Thread_Set_state+0x60> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 10dca5: 8b 18 mov (%eax),%ebx previous = the_node->previous; 10dca7: 8b 50 04 mov 0x4(%eax),%edx next->previous = previous; 10dcaa: 89 53 04 mov %edx,0x4(%ebx) previous->next = next; 10dcad: 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 ); 10dcaf: 51 push %ecx 10dcb0: 9d popf 10dcb1: fa cli if ( _Thread_Is_heir( the_thread ) ) 10dcb2: 3b 05 e8 53 12 00 cmp 0x1253e8,%eax 10dcb8: 74 62 je 10dd1c <_Thread_Set_state+0x9c> _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) 10dcba: 3b 05 18 54 12 00 cmp 0x125418,%eax 10dcc0: 74 12 je 10dcd4 <_Thread_Set_state+0x54> _Context_Switch_necessary = true; _ISR_Enable( level ); 10dcc2: 51 push %ecx 10dcc3: 9d popf } 10dcc4: 5b pop %ebx 10dcc5: 5e pop %esi 10dcc6: c9 leave 10dcc7: c3 ret Chain_Control *ready; ready = the_thread->ready; _ISR_Disable( level ); if ( !_States_Is_ready( the_thread->current_state ) ) { the_thread->current_state = 10dcc8: 09 f3 or %esi,%ebx 10dcca: 89 58 10 mov %ebx,0x10(%eax) _States_Set( state, the_thread->current_state ); _ISR_Enable( level ); 10dccd: 51 push %ecx 10dcce: 9d popf if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; _ISR_Enable( level ); } 10dccf: 5b pop %ebx 10dcd0: 5e pop %esi 10dcd1: c9 leave 10dcd2: c3 ret 10dcd3: 90 nop <== NOT EXECUTED if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; 10dcd4: c6 05 28 54 12 00 01 movb $0x1,0x125428 10dcdb: eb e5 jmp 10dcc2 <_Thread_Set_state+0x42> 10dcdd: 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); 10dce0: 8d 5a 04 lea 0x4(%edx),%ebx 10dce3: 89 1a mov %ebx,(%edx) the_chain->permanent_null = NULL; 10dce5: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) the_chain->last = _Chain_Head(the_chain); 10dcec: 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; 10dcef: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 10dcf5: 66 8b 98 9a 00 00 00 mov 0x9a(%eax),%bx 10dcfc: 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 ); 10dcff: 66 83 3a 00 cmpw $0x0,(%edx) 10dd03: 75 aa jne 10dcaf <_Thread_Set_state+0x2f> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; 10dd05: 66 8b 15 0c 54 12 00 mov 0x12540c,%dx 10dd0c: 23 90 98 00 00 00 and 0x98(%eax),%edx 10dd12: 66 89 15 0c 54 12 00 mov %dx,0x12540c 10dd19: eb 94 jmp 10dcaf <_Thread_Set_state+0x2f> 10dd1b: 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 ); 10dd1c: 66 8b 35 0c 54 12 00 mov 0x12540c,%si 10dd23: 31 d2 xor %edx,%edx 10dd25: 89 d3 mov %edx,%ebx 10dd27: 66 0f bc de bsf %si,%bx _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 10dd2b: 0f b7 db movzwl %bx,%ebx 10dd2e: 66 8b b4 1b a0 54 12 mov 0x1254a0(%ebx,%ebx,1),%si 10dd35: 00 10dd36: 66 0f bc d6 bsf %si,%dx * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 10dd3a: c1 e3 04 shl $0x4,%ebx 10dd3d: 0f b7 d2 movzwl %dx,%edx 10dd40: 8d 14 13 lea (%ebx,%edx,1),%edx 10dd43: 8d 1c 52 lea (%edx,%edx,2),%ebx 10dd46: 8b 15 20 53 12 00 mov 0x125320,%edx 10dd4c: 8b 14 9a mov (%edx,%ebx,4),%edx 10dd4f: 89 15 e8 53 12 00 mov %edx,0x1253e8 10dd55: e9 60 ff ff ff jmp 10dcba <_Thread_Set_state+0x3a> 0010dd5c <_Thread_Set_transient>: */ void _Thread_Set_transient( Thread_Control *the_thread ) { 10dd5c: 55 push %ebp 10dd5d: 89 e5 mov %esp,%ebp 10dd5f: 56 push %esi 10dd60: 53 push %ebx 10dd61: 8b 45 08 mov 0x8(%ebp),%eax ISR_Level level; uint32_t old_state; Chain_Control *ready; ready = the_thread->ready; 10dd64: 8b 88 8c 00 00 00 mov 0x8c(%eax),%ecx _ISR_Disable( level ); 10dd6a: 9c pushf 10dd6b: fa cli 10dd6c: 5b pop %ebx old_state = the_thread->current_state; 10dd6d: 8b 50 10 mov 0x10(%eax),%edx the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state ); 10dd70: 89 d6 mov %edx,%esi 10dd72: 83 ce 04 or $0x4,%esi 10dd75: 89 70 10 mov %esi,0x10(%eax) if ( _States_Is_ready( old_state ) ) { 10dd78: 85 d2 test %edx,%edx 10dd7a: 75 11 jne 10dd8d <_Thread_Set_transient+0x31> if ( _Chain_Has_only_one_node( ready ) ) { 10dd7c: 8b 11 mov (%ecx),%edx 10dd7e: 3b 51 08 cmp 0x8(%ecx),%edx 10dd81: 74 11 je 10dd94 <_Thread_Set_transient+0x38> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 10dd83: 8b 10 mov (%eax),%edx previous = the_node->previous; 10dd85: 8b 40 04 mov 0x4(%eax),%eax next->previous = previous; 10dd88: 89 42 04 mov %eax,0x4(%edx) previous->next = next; 10dd8b: 89 10 mov %edx,(%eax) } else _Chain_Extract_unprotected( &the_thread->Object.Node ); } _ISR_Enable( level ); 10dd8d: 53 push %ebx 10dd8e: 9d popf } 10dd8f: 5b pop %ebx 10dd90: 5e pop %esi 10dd91: c9 leave 10dd92: c3 ret 10dd93: 90 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 10dd94: 8d 51 04 lea 0x4(%ecx),%edx 10dd97: 89 11 mov %edx,(%ecx) the_chain->permanent_null = NULL; 10dd99: c7 41 04 00 00 00 00 movl $0x0,0x4(%ecx) the_chain->last = _Chain_Head(the_chain); 10dda0: 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; 10dda3: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 10dda9: 66 8b 88 9a 00 00 00 mov 0x9a(%eax),%cx 10ddb0: 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 ); 10ddb3: 66 83 3a 00 cmpw $0x0,(%edx) 10ddb7: 75 d4 jne 10dd8d <_Thread_Set_transient+0x31> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; 10ddb9: 66 8b 15 0c 54 12 00 mov 0x12540c,%dx 10ddc0: 23 90 98 00 00 00 and 0x98(%eax),%edx 10ddc6: 66 89 15 0c 54 12 00 mov %dx,0x12540c 10ddcd: eb be jmp 10dd8d <_Thread_Set_transient+0x31> 0010ddd0 <_Thread_Stack_Allocate>: size_t _Thread_Stack_Allocate( Thread_Control *the_thread, size_t stack_size ) { 10ddd0: 55 push %ebp 10ddd1: 89 e5 mov %esp,%ebp 10ddd3: 53 push %ebx 10ddd4: 83 ec 04 sub $0x4,%esp 10ddd7: a1 10 12 12 00 mov 0x121210,%eax 10dddc: 8b 5d 0c mov 0xc(%ebp),%ebx 10dddf: 39 c3 cmp %eax,%ebx 10dde1: 73 02 jae 10dde5 <_Thread_Stack_Allocate+0x15> 10dde3: 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 ) { 10dde5: a1 40 12 12 00 mov 0x121240,%eax 10ddea: 85 c0 test %eax,%eax 10ddec: 74 32 je 10de20 <_Thread_Stack_Allocate+0x50> stack_addr = (*Configuration.stack_allocate_hook)( the_stack_size ); 10ddee: 83 ec 0c sub $0xc,%esp 10ddf1: 53 push %ebx 10ddf2: ff d0 call *%eax 10ddf4: 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 ) 10ddf7: 85 c0 test %eax,%eax 10ddf9: 74 11 je 10de0c <_Thread_Stack_Allocate+0x3c> the_stack_size = 0; the_thread->Start.stack = stack_addr; 10ddfb: 8b 55 08 mov 0x8(%ebp),%edx 10ddfe: 89 82 cc 00 00 00 mov %eax,0xcc(%edx) return the_stack_size; } 10de04: 89 d8 mov %ebx,%eax 10de06: 8b 5d fc mov -0x4(%ebp),%ebx 10de09: c9 leave 10de0a: c3 ret 10de0b: 90 nop <== NOT EXECUTED the_stack_size = _Stack_Adjust_size( the_stack_size ); stack_addr = _Workspace_Allocate( the_stack_size ); } if ( !stack_addr ) 10de0c: 31 db xor %ebx,%ebx the_stack_size = 0; the_thread->Start.stack = stack_addr; 10de0e: 8b 55 08 mov 0x8(%ebp),%edx 10de11: 89 82 cc 00 00 00 mov %eax,0xcc(%edx) return the_stack_size; } 10de17: 89 d8 mov %ebx,%eax 10de19: 8b 5d fc mov -0x4(%ebp),%ebx 10de1c: c9 leave 10de1d: c3 ret 10de1e: 66 90 xchg %ax,%ax <== NOT EXECUTED RTEMS_INLINE_ROUTINE uint32_t _Stack_Adjust_size ( size_t size ) { return size + CPU_STACK_ALIGNMENT; 10de20: 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 ); 10de23: 83 ec 0c sub $0xc,%esp 10de26: 53 push %ebx 10de27: e8 e0 06 00 00 call 10e50c <_Workspace_Allocate> 10de2c: 83 c4 10 add $0x10,%esp 10de2f: eb c6 jmp 10ddf7 <_Thread_Stack_Allocate+0x27> 0010de34 <_Thread_Stack_Free>: */ void _Thread_Stack_Free( Thread_Control *the_thread ) { 10de34: 55 push %ebp 10de35: 89 e5 mov %esp,%ebp 10de37: 83 ec 08 sub $0x8,%esp 10de3a: 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 ) 10de3d: a1 44 12 12 00 mov 0x121244,%eax 10de42: 85 c0 test %eax,%eax 10de44: 74 0e je 10de54 <_Thread_Stack_Free+0x20> (*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area ); 10de46: 8b 92 c4 00 00 00 mov 0xc4(%edx),%edx 10de4c: 89 55 08 mov %edx,0x8(%ebp) else _Workspace_Free( the_thread->Start.Initial_stack.area ); } 10de4f: 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 ); 10de50: ff e0 jmp *%eax 10de52: 66 90 xchg %ax,%ax <== NOT EXECUTED else _Workspace_Free( the_thread->Start.Initial_stack.area ); 10de54: 8b 82 c4 00 00 00 mov 0xc4(%edx),%eax 10de5a: 89 45 08 mov %eax,0x8(%ebp) } 10de5d: 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 ); 10de5e: e9 c5 06 00 00 jmp 10e528 <_Workspace_Free> 0010dec0 <_Thread_Start>: Thread_Start_types the_prototype, void *entry_point, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) { 10dec0: 55 push %ebp 10dec1: 89 e5 mov %esp,%ebp 10dec3: 53 push %ebx 10dec4: 83 ec 04 sub $0x4,%esp 10dec7: 8b 5d 08 mov 0x8(%ebp),%ebx if ( _States_Is_dormant( the_thread->current_state ) ) { 10deca: f6 43 10 01 testb $0x1,0x10(%ebx) 10dece: 75 08 jne 10ded8 <_Thread_Start+0x18> 10ded0: 31 c0 xor %eax,%eax return true; } return false; } 10ded2: 8b 5d fc mov -0x4(%ebp),%ebx 10ded5: c9 leave 10ded6: c3 ret 10ded7: 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; 10ded8: 8b 45 10 mov 0x10(%ebp),%eax 10dedb: 89 83 9c 00 00 00 mov %eax,0x9c(%ebx) the_thread->Start.prototype = the_prototype; 10dee1: 8b 45 0c mov 0xc(%ebp),%eax 10dee4: 89 83 a0 00 00 00 mov %eax,0xa0(%ebx) the_thread->Start.pointer_argument = pointer_argument; 10deea: 8b 45 14 mov 0x14(%ebp),%eax 10deed: 89 83 a4 00 00 00 mov %eax,0xa4(%ebx) the_thread->Start.numeric_argument = numeric_argument; 10def3: 8b 45 18 mov 0x18(%ebp),%eax 10def6: 89 83 a8 00 00 00 mov %eax,0xa8(%ebx) _Thread_Load_environment( the_thread ); 10defc: 83 ec 0c sub $0xc,%esp 10deff: 53 push %ebx 10df00: e8 af 26 00 00 call 1105b4 <_Thread_Load_environment> _Thread_Ready( the_thread ); 10df05: 89 1c 24 mov %ebx,(%esp) 10df08: e8 27 29 00 00 call 110834 <_Thread_Ready> _User_extensions_Thread_start( the_thread ); 10df0d: 89 1c 24 mov %ebx,(%esp) 10df10: e8 3b 03 00 00 call 10e250 <_User_extensions_Thread_start> 10df15: b0 01 mov $0x1,%al return true; 10df17: 83 c4 10 add $0x10,%esp } return false; } 10df1a: 8b 5d fc mov -0x4(%ebp),%ebx 10df1d: c9 leave 10df1e: c3 ret 00110938 <_Thread_Suspend>: */ void _Thread_Suspend( Thread_Control *the_thread ) { 110938: 55 push %ebp 110939: 89 e5 mov %esp,%ebp 11093b: 56 push %esi 11093c: 53 push %ebx 11093d: 8b 45 08 mov 0x8(%ebp),%eax ISR_Level level; Chain_Control *ready; ready = the_thread->ready; 110940: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx _ISR_Disable( level ); 110946: 9c pushf 110947: fa cli 110948: 59 pop %ecx #if defined(RTEMS_ITRON_API) the_thread->suspend_count++; #endif if ( !_States_Is_ready( the_thread->current_state ) ) { 110949: 8b 58 10 mov 0x10(%eax),%ebx 11094c: 85 db test %ebx,%ebx 11094e: 75 34 jne 110984 <_Thread_Suspend+0x4c> _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); return; } the_thread->current_state = STATES_SUSPENDED; 110950: c7 40 10 02 00 00 00 movl $0x2,0x10(%eax) if ( _Chain_Has_only_one_node( ready ) ) { 110957: 8b 1a mov (%edx),%ebx 110959: 3b 5a 08 cmp 0x8(%edx),%ebx 11095c: 74 3e je 11099c <_Thread_Suspend+0x64> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 11095e: 8b 18 mov (%eax),%ebx previous = the_node->previous; 110960: 8b 50 04 mov 0x4(%eax),%edx next->previous = previous; 110963: 89 53 04 mov %edx,0x4(%ebx) previous->next = next; 110966: 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 ); 110968: 51 push %ecx 110969: 9d popf 11096a: fa cli if ( _Thread_Is_heir( the_thread ) ) 11096b: 3b 05 e8 53 12 00 cmp 0x1253e8,%eax 110971: 74 65 je 1109d8 <_Thread_Suspend+0xa0> _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) 110973: 3b 05 18 54 12 00 cmp 0x125418,%eax 110979: 74 15 je 110990 <_Thread_Suspend+0x58> _Context_Switch_necessary = true; _ISR_Enable( level ); 11097b: 51 push %ecx 11097c: 9d popf } 11097d: 5b pop %ebx 11097e: 5e pop %esi 11097f: c9 leave 110980: c3 ret 110981: 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 = 110984: 83 cb 02 or $0x2,%ebx 110987: 89 58 10 mov %ebx,0x10(%eax) _States_Set( STATES_SUSPENDED, the_thread->current_state ); _ISR_Enable( level ); 11098a: 51 push %ecx 11098b: 9d popf if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; _ISR_Enable( level ); } 11098c: 5b pop %ebx 11098d: 5e pop %esi 11098e: c9 leave 11098f: c3 ret if ( _Thread_Is_heir( the_thread ) ) _Thread_Calculate_heir(); if ( _Thread_Is_executing( the_thread ) ) _Context_Switch_necessary = true; 110990: c6 05 28 54 12 00 01 movb $0x1,0x125428 110997: eb e2 jmp 11097b <_Thread_Suspend+0x43> 110999: 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); 11099c: 8d 5a 04 lea 0x4(%edx),%ebx 11099f: 89 1a mov %ebx,(%edx) the_chain->permanent_null = NULL; 1109a1: c7 42 04 00 00 00 00 movl $0x0,0x4(%edx) the_chain->last = _Chain_Head(the_chain); 1109a8: 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; 1109ab: 8b 90 90 00 00 00 mov 0x90(%eax),%edx 1109b1: 66 8b 98 9a 00 00 00 mov 0x9a(%eax),%bx 1109b8: 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 ); 1109bb: 66 83 3a 00 cmpw $0x0,(%edx) 1109bf: 75 a7 jne 110968 <_Thread_Suspend+0x30> if ( *the_priority_map->minor == 0 ) _Priority_Major_bit_map &= the_priority_map->block_major; 1109c1: 66 8b 15 0c 54 12 00 mov 0x12540c,%dx 1109c8: 23 90 98 00 00 00 and 0x98(%eax),%edx 1109ce: 66 89 15 0c 54 12 00 mov %dx,0x12540c 1109d5: eb 91 jmp 110968 <_Thread_Suspend+0x30> 1109d7: 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 ); 1109d8: 66 8b 35 0c 54 12 00 mov 0x12540c,%si 1109df: 31 d2 xor %edx,%edx 1109e1: 89 d3 mov %edx,%ebx 1109e3: 66 0f bc de bsf %si,%bx _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); 1109e7: 0f b7 db movzwl %bx,%ebx 1109ea: 66 8b b4 1b a0 54 12 mov 0x1254a0(%ebx,%ebx,1),%si 1109f1: 00 1109f2: 66 0f bc d6 bsf %si,%dx * ready thread. */ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void ) { _Thread_Heir = (Thread_Control *) 1109f6: c1 e3 04 shl $0x4,%ebx 1109f9: 0f b7 d2 movzwl %dx,%edx 1109fc: 8d 14 13 lea (%ebx,%edx,1),%edx 1109ff: 8d 1c 52 lea (%edx,%edx,2),%ebx 110a02: 8b 15 20 53 12 00 mov 0x125320,%edx 110a08: 8b 14 9a mov (%edx,%ebx,4),%edx 110a0b: 89 15 e8 53 12 00 mov %edx,0x1253e8 110a11: e9 5d ff ff ff jmp 110973 <_Thread_Suspend+0x3b> 0010df60 <_Thread_Yield_processor>: * ready chain * select heir */ void _Thread_Yield_processor( void ) { 10df60: 55 push %ebp 10df61: 89 e5 mov %esp,%ebp 10df63: 56 push %esi 10df64: 53 push %ebx ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing; 10df65: a1 18 54 12 00 mov 0x125418,%eax ready = executing->ready; 10df6a: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx _ISR_Disable( level ); 10df70: 9c pushf 10df71: fa cli 10df72: 59 pop %ecx if ( !_Chain_Has_only_one_node( ready ) ) { 10df73: 8b 1a mov (%edx),%ebx 10df75: 3b 5a 08 cmp 0x8(%edx),%ebx 10df78: 74 3e je 10dfb8 <_Thread_Yield_processor+0x58> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 10df7a: 8b 30 mov (%eax),%esi previous = the_node->previous; 10df7c: 8b 58 04 mov 0x4(%eax),%ebx next->previous = previous; 10df7f: 89 5e 04 mov %ebx,0x4(%esi) previous->next = next; 10df82: 89 33 mov %esi,(%ebx) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 10df84: 8d 5a 04 lea 0x4(%edx),%ebx 10df87: 89 18 mov %ebx,(%eax) old_last_node = the_chain->last; 10df89: 8b 5a 08 mov 0x8(%edx),%ebx the_chain->last = the_node; 10df8c: 89 42 08 mov %eax,0x8(%edx) old_last_node->next = the_node; 10df8f: 89 03 mov %eax,(%ebx) the_node->previous = old_last_node; 10df91: 89 58 04 mov %ebx,0x4(%eax) _Chain_Extract_unprotected( &executing->Object.Node ); _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); 10df94: 51 push %ecx 10df95: 9d popf 10df96: fa cli if ( _Thread_Is_heir( executing ) ) 10df97: 3b 05 e8 53 12 00 cmp 0x1253e8,%eax 10df9d: 74 0d je 10dfac <_Thread_Yield_processor+0x4c> _Thread_Heir = (Thread_Control *) ready->first; _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) _Context_Switch_necessary = true; 10df9f: c6 05 28 54 12 00 01 movb $0x1,0x125428 _ISR_Enable( level ); 10dfa6: 51 push %ecx 10dfa7: 9d popf } 10dfa8: 5b pop %ebx 10dfa9: 5e pop %esi 10dfaa: c9 leave 10dfab: c3 ret _Chain_Append_unprotected( ready, &executing->Object.Node ); _ISR_Flash( level ); if ( _Thread_Is_heir( executing ) ) _Thread_Heir = (Thread_Control *) ready->first; 10dfac: 8b 02 mov (%edx),%eax 10dfae: a3 e8 53 12 00 mov %eax,0x1253e8 10dfb3: eb ea jmp 10df9f <_Thread_Yield_processor+0x3f> 10dfb5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED _Context_Switch_necessary = true; } else if ( !_Thread_Is_heir( executing ) ) 10dfb8: 3b 05 e8 53 12 00 cmp 0x1253e8,%eax 10dfbe: 75 df jne 10df9f <_Thread_Yield_processor+0x3f> 10dfc0: eb e4 jmp 10dfa6 <_Thread_Yield_processor+0x46> 0010cec4 <_Thread_blocking_operation_Cancel>: Thread_blocking_operation_States sync_state __attribute__((unused)), #endif Thread_Control *the_thread, ISR_Level level ) { 10cec4: 55 push %ebp 10cec5: 89 e5 mov %esp,%ebp 10cec7: 53 push %ebx 10cec8: 83 ec 04 sub $0x4,%esp 10cecb: 8b 5d 0c mov 0xc(%ebp),%ebx 10cece: 8b 45 10 mov 0x10(%ebp),%eax #endif /* * The thread is not waiting on anything after this completes. */ the_thread->Wait.queue = NULL; 10ced1: 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 ) ) { 10ced8: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 10cedc: 74 16 je 10cef4 <_Thread_blocking_operation_Cancel+0x30> _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); } else _ISR_Enable( level ); 10cede: 50 push %eax 10cedf: 9d popf RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 10cee0: c7 45 0c f8 ff 03 10 movl $0x1003fff8,0xc(%ebp) 10cee7: 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 } 10ceea: 8b 5d fc mov -0x4(%ebp),%ebx 10ceed: c9 leave 10ceee: e9 5d 01 00 00 jmp 10d050 <_Thread_Clear_state> 10cef3: 90 nop <== NOT EXECUTED RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 10cef4: 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 ); 10cefb: 50 push %eax 10cefc: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 10cefd: 83 ec 0c sub $0xc,%esp 10cf00: 8d 43 48 lea 0x48(%ebx),%eax 10cf03: 50 push %eax 10cf04: e8 ff 14 00 00 call 10e408 <_Watchdog_Remove> 10cf09: 83 c4 10 add $0x10,%esp 10cf0c: eb d2 jmp 10cee0 <_Thread_blocking_operation_Cancel+0x1c> 0010d7b0 <_Thread_queue_Dequeue>: */ Thread_Control *_Thread_queue_Dequeue( Thread_queue_Control *the_thread_queue ) { 10d7b0: 55 push %ebp 10d7b1: 89 e5 mov %esp,%ebp 10d7b3: 53 push %ebx 10d7b4: 83 ec 04 sub $0x4,%esp 10d7b7: 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 ) 10d7ba: 83 7b 34 01 cmpl $0x1,0x34(%ebx) 10d7be: 74 1c je 10d7dc <_Thread_queue_Dequeue+0x2c> 10d7c0: b8 44 06 11 00 mov $0x110644,%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 ); 10d7c5: 83 ec 0c sub $0xc,%esp 10d7c8: 53 push %ebx 10d7c9: ff d0 call *%eax _ISR_Disable( level ); 10d7cb: 9c pushf 10d7cc: fa cli 10d7cd: 5a pop %edx if ( !the_thread ) { 10d7ce: 83 c4 10 add $0x10,%esp 10d7d1: 85 c0 test %eax,%eax 10d7d3: 74 0f je 10d7e4 <_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 ); 10d7d5: 52 push %edx 10d7d6: 9d popf return the_thread; } 10d7d7: 8b 5d fc mov -0x4(%ebp),%ebx 10d7da: c9 leave 10d7db: 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 ) 10d7dc: b8 fc d7 10 00 mov $0x10d7fc,%eax 10d7e1: eb e2 jmp 10d7c5 <_Thread_queue_Dequeue+0x15> 10d7e3: 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; 10d7e4: 8b 4b 30 mov 0x30(%ebx),%ecx 10d7e7: 49 dec %ecx 10d7e8: 83 f9 01 cmp $0x1,%ecx 10d7eb: 77 e8 ja 10d7d5 <_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; 10d7ed: c7 43 30 03 00 00 00 movl $0x3,0x30(%ebx) the_thread = _Thread_Executing; 10d7f4: a1 18 54 12 00 mov 0x125418,%eax 10d7f9: eb da jmp 10d7d5 <_Thread_queue_Dequeue+0x25> 0010d7fc <_Thread_queue_Dequeue_priority>: */ Thread_Control *_Thread_queue_Dequeue_priority( Thread_queue_Control *the_thread_queue ) { 10d7fc: 55 push %ebp 10d7fd: 89 e5 mov %esp,%ebp 10d7ff: 57 push %edi 10d800: 56 push %esi 10d801: 53 push %ebx 10d802: 83 ec 1c sub $0x1c,%esp 10d805: 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 ); 10d808: 9c pushf 10d809: fa cli 10d80a: 58 pop %eax 10d80b: 89 f2 mov %esi,%edx 10d80d: 31 c9 xor %ecx,%ecx */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10d80f: 8d 5a 04 lea 0x4(%edx),%ebx 10d812: 39 1a cmp %ebx,(%edx) 10d814: 75 1a jne 10d830 <_Thread_queue_Dequeue_priority+0x34> for( index=0 ; index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ; index++ ) { 10d816: 41 inc %ecx 10d817: 83 c2 0c add $0xc,%edx Chain_Node *last_node; Chain_Node *next_node; Chain_Node *previous_node; _ISR_Disable( level ); for( index=0 ; 10d81a: 83 f9 04 cmp $0x4,%ecx 10d81d: 75 f0 jne 10d80f <_Thread_queue_Dequeue_priority+0x13> } /* * We did not find a thread to unblock. */ _ISR_Enable( level ); 10d81f: 50 push %eax 10d820: 9d popf 10d821: 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 ); } 10d823: 89 d8 mov %ebx,%eax 10d825: 8d 65 f4 lea -0xc(%ebp),%esp 10d828: 5b pop %ebx 10d829: 5e pop %esi 10d82a: 5f pop %edi 10d82b: c9 leave 10d82c: c3 ret 10d82d: 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 *) 10d830: 8d 14 49 lea (%ecx,%ecx,2),%edx 10d833: 8b 1c 96 mov (%esi,%edx,4),%ebx */ _ISR_Enable( level ); return NULL; dequeue: the_thread->Wait.queue = NULL; 10d836: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx) new_first_node = the_thread->Wait.Block2n.first; 10d83d: 8b 53 38 mov 0x38(%ebx),%edx new_first_thread = (Thread_Control *) new_first_node; next_node = the_thread->Object.Node.next; 10d840: 8b 0b mov (%ebx),%ecx previous_node = the_thread->Object.Node.previous; 10d842: 8b 73 04 mov 0x4(%ebx),%esi 10d845: 8d 7b 3c lea 0x3c(%ebx),%edi 10d848: 39 fa cmp %edi,%edx 10d84a: 74 76 je 10d8c2 <_Thread_queue_Dequeue_priority+0xc6> if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) { last_node = the_thread->Wait.Block2n.last; 10d84c: 8b 7b 40 mov 0x40(%ebx),%edi 10d84f: 89 7d e4 mov %edi,-0x1c(%ebp) new_second_node = new_first_node->next; 10d852: 8b 3a mov (%edx),%edi previous_node->next = new_first_node; 10d854: 89 16 mov %edx,(%esi) next_node->previous = new_first_node; 10d856: 89 51 04 mov %edx,0x4(%ecx) new_first_node->next = next_node; 10d859: 89 0a mov %ecx,(%edx) new_first_node->previous = previous_node; 10d85b: 89 72 04 mov %esi,0x4(%edx) if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 10d85e: 8b 4b 38 mov 0x38(%ebx),%ecx 10d861: 3b 4b 40 cmp 0x40(%ebx),%ecx 10d864: 74 14 je 10d87a <_Thread_queue_Dequeue_priority+0x7e> /* > two threads on 2-n */ new_second_node->previous = 10d866: 8d 4a 38 lea 0x38(%edx),%ecx 10d869: 89 4f 04 mov %ecx,0x4(%edi) _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 10d86c: 89 7a 38 mov %edi,0x38(%edx) new_first_thread->Wait.Block2n.last = last_node; 10d86f: 8b 4d e4 mov -0x1c(%ebp),%ecx 10d872: 89 4a 40 mov %ecx,0x40(%edx) last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 10d875: 83 c2 3c add $0x3c,%edx 10d878: 89 11 mov %edx,(%ecx) } else { previous_node->next = next_node; next_node->previous = previous_node; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 10d87a: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 10d87e: 74 18 je 10d898 <_Thread_queue_Dequeue_priority+0x9c> _ISR_Enable( level ); 10d880: 50 push %eax 10d881: 9d popf RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 10d882: 83 ec 08 sub $0x8,%esp 10d885: 68 f8 ff 03 10 push $0x1003fff8 10d88a: 53 push %ebx 10d88b: e8 c0 f7 ff ff call 10d050 <_Thread_Clear_state> 10d890: 83 c4 10 add $0x10,%esp 10d893: eb 8e jmp 10d823 <_Thread_queue_Dequeue_priority+0x27> 10d895: 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; 10d898: c7 43 50 03 00 00 00 movl $0x3,0x50(%ebx) _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); 10d89f: 50 push %eax 10d8a0: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 10d8a1: 83 ec 0c sub $0xc,%esp 10d8a4: 8d 43 48 lea 0x48(%ebx),%eax 10d8a7: 50 push %eax 10d8a8: e8 5b 0b 00 00 call 10e408 <_Watchdog_Remove> 10d8ad: 58 pop %eax 10d8ae: 5a pop %edx 10d8af: 68 f8 ff 03 10 push $0x1003fff8 10d8b4: 53 push %ebx 10d8b5: e8 96 f7 ff ff call 10d050 <_Thread_Clear_state> 10d8ba: 83 c4 10 add $0x10,%esp 10d8bd: e9 61 ff ff ff jmp 10d823 <_Thread_queue_Dequeue_priority+0x27> new_first_thread->Wait.Block2n.last = last_node; last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); } } else { previous_node->next = next_node; 10d8c2: 89 0e mov %ecx,(%esi) next_node->previous = previous_node; 10d8c4: 89 71 04 mov %esi,0x4(%ecx) 10d8c7: eb b1 jmp 10d87a <_Thread_queue_Dequeue_priority+0x7e> 001106bc <_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 ) { 1106bc: 55 push %ebp 1106bd: 89 e5 mov %esp,%ebp 1106bf: 56 push %esi 1106c0: 53 push %ebx 1106c1: 8b 55 08 mov 0x8(%ebp),%edx 1106c4: 8b 5d 0c mov 0xc(%ebp),%ebx Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level ); 1106c7: 9c pushf 1106c8: fa cli 1106c9: 59 pop %ecx sync_state = the_thread_queue->sync_state; 1106ca: 8b 42 30 mov 0x30(%edx),%eax the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 1106cd: c7 42 30 00 00 00 00 movl $0x0,0x30(%edx) if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) { 1106d4: 83 f8 01 cmp $0x1,%eax 1106d7: 74 0b je 1106e4 <_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; 1106d9: 8b 55 10 mov 0x10(%ebp),%edx 1106dc: 89 0a mov %ecx,(%edx) return sync_state; } 1106de: 5b pop %ebx 1106df: 5e pop %esi 1106e0: c9 leave 1106e1: c3 ret 1106e2: 66 90 xchg %ax,%ax <== NOT EXECUTED Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 1106e4: 8d 72 04 lea 0x4(%edx),%esi 1106e7: 89 33 mov %esi,(%ebx) old_last_node = the_chain->last; 1106e9: 8b 72 08 mov 0x8(%edx),%esi the_chain->last = the_node; 1106ec: 89 5a 08 mov %ebx,0x8(%edx) old_last_node->next = the_node; 1106ef: 89 1e mov %ebx,(%esi) the_node->previous = old_last_node; 1106f1: 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; 1106f4: 89 53 44 mov %edx,0x44(%ebx) the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; _ISR_Enable( level ); 1106f7: 51 push %ecx 1106f8: 9d popf * * WARNING! Returning with interrupts disabled! */ *level_p = level; return sync_state; } 1106f9: 5b pop %ebx 1106fa: 5e pop %esi 1106fb: c9 leave 1106fc: c3 ret 0010d964 <_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 ) { 10d964: 55 push %ebp 10d965: 89 e5 mov %esp,%ebp 10d967: 57 push %edi 10d968: 56 push %esi 10d969: 53 push %ebx 10d96a: 83 ec 08 sub $0x8,%esp 10d96d: 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); 10d970: 8d 47 3c lea 0x3c(%edi),%eax 10d973: 89 47 38 mov %eax,0x38(%edi) the_chain->permanent_null = NULL; 10d976: c7 47 3c 00 00 00 00 movl $0x0,0x3c(%edi) the_chain->last = _Chain_Head(the_chain); 10d97d: 8d 47 38 lea 0x38(%edi),%eax 10d980: 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; 10d983: 8b 57 14 mov 0x14(%edi),%edx header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 10d986: 89 d0 mov %edx,%eax 10d988: c1 e8 06 shr $0x6,%eax 10d98b: 8d 04 40 lea (%eax,%eax,2),%eax 10d98e: 8b 4d 08 mov 0x8(%ebp),%ecx 10d991: 8d 34 81 lea (%ecx,%eax,4),%esi block_state = the_thread_queue->state; 10d994: 8b 59 38 mov 0x38(%ecx),%ebx if ( _Thread_queue_Is_reverse_search( priority ) ) 10d997: f6 c2 20 test $0x20,%dl 10d99a: 75 60 jne 10d9fc <_Thread_queue_Enqueue_priority+0x98> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10d99c: 8d 46 04 lea 0x4(%esi),%eax 10d99f: 89 75 f0 mov %esi,-0x10(%ebp) 10d9a2: 89 7d ec mov %edi,-0x14(%ebp) 10d9a5: 89 c7 mov %eax,%edi goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); 10d9a7: 9c pushf 10d9a8: fa cli 10d9a9: 5e pop %esi search_thread = (Thread_Control *) header->first; 10d9aa: 8b 4d f0 mov -0x10(%ebp),%ecx 10d9ad: 8b 01 mov (%ecx),%eax while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 10d9af: 39 f8 cmp %edi,%eax 10d9b1: 75 17 jne 10d9ca <_Thread_queue_Enqueue_priority+0x66> 10d9b3: e9 09 01 00 00 jmp 10dac1 <_Thread_queue_Enqueue_priority+0x15d> break; search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); 10d9b8: 56 push %esi 10d9b9: 9d popf 10d9ba: fa cli if ( !_States_Are_set( search_thread->current_state, block_state) ) { 10d9bb: 85 58 10 test %ebx,0x10(%eax) 10d9be: 0f 84 a8 00 00 00 je 10da6c <_Thread_queue_Enqueue_priority+0x108> _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; 10d9c4: 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 ) ) { 10d9c6: 39 f8 cmp %edi,%eax 10d9c8: 74 07 je 10d9d1 <_Thread_queue_Enqueue_priority+0x6d> search_priority = search_thread->current_priority; 10d9ca: 8b 48 14 mov 0x14(%eax),%ecx if ( priority <= search_priority ) 10d9cd: 39 ca cmp %ecx,%edx 10d9cf: 77 e7 ja 10d9b8 <_Thread_queue_Enqueue_priority+0x54> 10d9d1: 89 4d f0 mov %ecx,-0x10(%ebp) 10d9d4: 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 ) ) { 10d9d7: 89 f3 mov %esi,%ebx } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 10d9d9: 8b 4d 08 mov 0x8(%ebp),%ecx 10d9dc: 83 79 30 01 cmpl $0x1,0x30(%ecx) 10d9e0: 0f 84 8e 00 00 00 je 10da74 <_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; 10d9e6: 8b 45 10 mov 0x10(%ebp),%eax 10d9e9: 89 18 mov %ebx,(%eax) return the_thread_queue->sync_state; 10d9eb: 8b 55 08 mov 0x8(%ebp),%edx 10d9ee: 8b 42 30 mov 0x30(%edx),%eax } 10d9f1: 83 c4 08 add $0x8,%esp 10d9f4: 5b pop %ebx 10d9f5: 5e pop %esi 10d9f6: 5f pop %edi 10d9f7: c9 leave 10d9f8: c3 ret 10d9f9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10d9fc: 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; 10d9ff: 0f b6 0d 14 12 12 00 movzbl 0x121214,%ecx 10da06: 41 inc %ecx _ISR_Disable( level ); 10da07: 9c pushf 10da08: fa cli 10da09: 5f pop %edi search_thread = (Thread_Control *) header->last; 10da0a: 8b 46 08 mov 0x8(%esi),%eax while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 10da0d: 39 f0 cmp %esi,%eax 10da0f: 75 12 jne 10da23 <_Thread_queue_Enqueue_priority+0xbf> 10da11: eb 17 jmp 10da2a <_Thread_queue_Enqueue_priority+0xc6> 10da13: 90 nop <== NOT EXECUTED break; search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); 10da14: 57 push %edi 10da15: 9d popf 10da16: fa cli if ( !_States_Are_set( search_thread->current_state, block_state) ) { 10da17: 85 58 10 test %ebx,0x10(%eax) 10da1a: 74 4c je 10da68 <_Thread_queue_Enqueue_priority+0x104> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) 10da1c: 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 ) ) { 10da1f: 39 f0 cmp %esi,%eax 10da21: 74 07 je 10da2a <_Thread_queue_Enqueue_priority+0xc6> search_priority = search_thread->current_priority; 10da23: 8b 48 14 mov 0x14(%eax),%ecx if ( priority >= search_priority ) 10da26: 39 ca cmp %ecx,%edx 10da28: 72 ea jb 10da14 <_Thread_queue_Enqueue_priority+0xb0> 10da2a: 89 fe mov %edi,%esi 10da2c: 89 4d ec mov %ecx,-0x14(%ebp) 10da2f: 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 ) ) { 10da32: 89 f3 mov %esi,%ebx } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 10da34: 8b 4d 08 mov 0x8(%ebp),%ecx 10da37: 83 79 30 01 cmpl $0x1,0x30(%ecx) 10da3b: 75 a9 jne 10d9e6 <_Thread_queue_Enqueue_priority+0x82> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 10da3d: c7 41 30 00 00 00 00 movl $0x0,0x30(%ecx) if ( priority == search_priority ) 10da44: 3b 55 ec cmp -0x14(%ebp),%edx 10da47: 74 56 je 10da9f <_Thread_queue_Enqueue_priority+0x13b> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 10da49: 8b 10 mov (%eax),%edx the_node = (Chain_Node *) the_thread; the_node->next = next_node; 10da4b: 89 17 mov %edx,(%edi) the_node->previous = search_node; 10da4d: 89 47 04 mov %eax,0x4(%edi) search_node->next = the_node; 10da50: 89 38 mov %edi,(%eax) next_node->previous = the_node; 10da52: 89 7a 04 mov %edi,0x4(%edx) the_thread->Wait.queue = the_thread_queue; 10da55: 89 4f 44 mov %ecx,0x44(%edi) _ISR_Enable( level ); 10da58: 56 push %esi 10da59: 9d popf 10da5a: b8 01 00 00 00 mov $0x1,%eax * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 10da5f: 83 c4 08 add $0x8,%esp 10da62: 5b pop %ebx 10da63: 5e pop %esi 10da64: 5f pop %edi 10da65: c9 leave 10da66: c3 ret 10da67: 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 ); 10da68: 57 push %edi 10da69: 9d popf goto restart_reverse_search; 10da6a: eb 93 jmp 10d9ff <_Thread_queue_Enqueue_priority+0x9b> if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { _ISR_Enable( level ); 10da6c: 56 push %esi <== NOT EXECUTED 10da6d: 9d popf <== NOT EXECUTED goto restart_forward_search; 10da6e: e9 34 ff ff ff jmp 10d9a7 <_Thread_queue_Enqueue_priority+0x43> <== NOT EXECUTED 10da73: 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; 10da74: c7 41 30 00 00 00 00 movl $0x0,0x30(%ecx) if ( priority == search_priority ) 10da7b: 3b 55 f0 cmp -0x10(%ebp),%edx 10da7e: 74 1f je 10da9f <_Thread_queue_Enqueue_priority+0x13b> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 10da80: 8b 50 04 mov 0x4(%eax),%edx the_node = (Chain_Node *) the_thread; the_node->next = search_node; 10da83: 89 07 mov %eax,(%edi) the_node->previous = previous_node; 10da85: 89 57 04 mov %edx,0x4(%edi) previous_node->next = the_node; 10da88: 89 3a mov %edi,(%edx) search_node->previous = the_node; 10da8a: 89 78 04 mov %edi,0x4(%eax) the_thread->Wait.queue = the_thread_queue; 10da8d: 89 4f 44 mov %ecx,0x44(%edi) _ISR_Enable( level ); 10da90: 56 push %esi 10da91: 9d popf 10da92: b8 01 00 00 00 mov $0x1,%eax * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; } 10da97: 83 c4 08 add $0x8,%esp 10da9a: 5b pop %ebx 10da9b: 5e pop %esi 10da9c: 5f pop %edi 10da9d: c9 leave 10da9e: c3 ret 10da9f: 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; 10daa2: 8b 50 04 mov 0x4(%eax),%edx the_node = (Chain_Node *) the_thread; the_node->next = search_node; 10daa5: 89 07 mov %eax,(%edi) the_node->previous = previous_node; 10daa7: 89 57 04 mov %edx,0x4(%edi) previous_node->next = the_node; 10daaa: 89 3a mov %edi,(%edx) search_node->previous = the_node; 10daac: 89 78 04 mov %edi,0x4(%eax) the_thread->Wait.queue = the_thread_queue; 10daaf: 8b 45 08 mov 0x8(%ebp),%eax 10dab2: 89 47 44 mov %eax,0x44(%edi) _ISR_Enable( level ); 10dab5: 53 push %ebx 10dab6: 9d popf 10dab7: b8 01 00 00 00 mov $0x1,%eax return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 10dabc: e9 30 ff ff ff jmp 10d9f1 <_Thread_queue_Enqueue_priority+0x8d> 10dac1: 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 ) ) { 10dac4: 89 f3 mov %esi,%ebx 10dac6: c7 45 f0 ff ff ff ff movl $0xffffffff,-0x10(%ebp) 10dacd: e9 07 ff ff ff jmp 10d9d9 <_Thread_queue_Enqueue_priority+0x75> 0010d8cc <_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 ) { 10d8cc: 55 push %ebp 10d8cd: 89 e5 mov %esp,%ebp 10d8cf: 57 push %edi 10d8d0: 56 push %esi 10d8d1: 53 push %ebx 10d8d2: 83 ec 24 sub $0x24,%esp 10d8d5: 8b 75 08 mov 0x8(%ebp),%esi 10d8d8: 8b 7d 0c mov 0xc(%ebp),%edi Thread_queue_Control *, Thread_Control *, ISR_Level * ); the_thread = _Thread_Executing; 10d8db: 8b 1d 18 54 12 00 mov 0x125418,%ebx else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state ); 10d8e1: ff 76 38 pushl 0x38(%esi) 10d8e4: 53 push %ebx 10d8e5: e8 96 03 00 00 call 10dc80 <_Thread_Set_state> /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { 10d8ea: 83 c4 10 add $0x10,%esp 10d8ed: 85 ff test %edi,%edi 10d8ef: 75 33 jne 10d924 <_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 ) 10d8f1: 83 7e 34 01 cmpl $0x1,0x34(%esi) 10d8f5: 74 64 je 10d95b <_Thread_queue_Enqueue_with_handler+0x8f> 10d8f7: b8 bc 06 11 00 mov $0x1106bc,%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 ); 10d8fc: 51 push %ecx 10d8fd: 8d 55 e4 lea -0x1c(%ebp),%edx 10d900: 52 push %edx 10d901: 53 push %ebx 10d902: 56 push %esi 10d903: ff d0 call *%eax if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) 10d905: 83 c4 10 add $0x10,%esp 10d908: 83 f8 01 cmp $0x1,%eax 10d90b: 74 0e je 10d91b <_Thread_queue_Enqueue_with_handler+0x4f> _Thread_blocking_operation_Cancel( sync_state, the_thread, level ); 10d90d: 52 push %edx 10d90e: ff 75 e4 pushl -0x1c(%ebp) 10d911: 53 push %ebx 10d912: 50 push %eax 10d913: e8 ac f5 ff ff call 10cec4 <_Thread_blocking_operation_Cancel> 10d918: 83 c4 10 add $0x10,%esp } 10d91b: 8d 65 f4 lea -0xc(%ebp),%esp 10d91e: 5b pop %ebx 10d91f: 5e pop %esi 10d920: 5f pop %edi 10d921: c9 leave 10d922: c3 ret 10d923: 90 nop <== NOT EXECUTED /* * If the thread wants to timeout, then schedule its timer. */ if ( timeout ) { _Watchdog_Initialize( 10d924: 8b 43 08 mov 0x8(%ebx),%eax Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 10d927: c7 43 50 00 00 00 00 movl $0x0,0x50(%ebx) the_watchdog->routine = routine; 10d92e: 8b 55 10 mov 0x10(%ebp),%edx 10d931: 89 53 64 mov %edx,0x64(%ebx) the_watchdog->id = id; 10d934: 89 43 68 mov %eax,0x68(%ebx) the_watchdog->user_data = user_data; 10d937: c7 43 6c 00 00 00 00 movl $0x0,0x6c(%ebx) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 10d93e: 89 7b 54 mov %edi,0x54(%ebx) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 10d941: 83 ec 08 sub $0x8,%esp 10d944: 8d 43 48 lea 0x48(%ebx),%eax 10d947: 50 push %eax 10d948: 68 38 54 12 00 push $0x125438 10d94d: e8 7e 09 00 00 call 10e2d0 <_Watchdog_Insert> 10d952: 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 ) 10d955: 83 7e 34 01 cmpl $0x1,0x34(%esi) 10d959: 75 9c jne 10d8f7 <_Thread_queue_Enqueue_with_handler+0x2b> 10d95b: b8 64 d9 10 00 mov $0x10d964,%eax 10d960: eb 9a jmp 10d8fc <_Thread_queue_Enqueue_with_handler+0x30> 00110700 <_Thread_queue_Extract>: void _Thread_queue_Extract( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 110700: 55 push %ebp 110701: 89 e5 mov %esp,%ebp 110703: 83 ec 08 sub $0x8,%esp 110706: 8b 45 08 mov 0x8(%ebp),%eax 110709: 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 ) 11070c: 83 78 34 01 cmpl $0x1,0x34(%eax) 110710: 74 0e je 110720 <_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 ); 110712: 89 55 0c mov %edx,0xc(%ebp) 110715: 89 45 08 mov %eax,0x8(%ebp) } 110718: 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 ); 110719: e9 ba 17 00 00 jmp 111ed8 <_Thread_queue_Extract_fifo> 11071e: 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 ); 110720: 51 push %ecx 110721: 6a 00 push $0x0 110723: 52 push %edx 110724: 50 push %eax 110725: e8 06 00 00 00 call 110730 <_Thread_queue_Extract_priority_helper> 11072a: 83 c4 10 add $0x10,%esp else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */ _Thread_queue_Extract_fifo( the_thread_queue, the_thread ); } 11072d: c9 leave 11072e: c3 ret 00111ed8 <_Thread_queue_Extract_fifo>: void _Thread_queue_Extract_fifo( Thread_queue_Control *the_thread_queue __attribute__((unused)), Thread_Control *the_thread ) { 111ed8: 55 push %ebp 111ed9: 89 e5 mov %esp,%ebp 111edb: 53 push %ebx 111edc: 83 ec 04 sub $0x4,%esp 111edf: 8b 5d 0c mov 0xc(%ebp),%ebx ISR_Level level; _ISR_Disable( level ); 111ee2: 9c pushf 111ee3: fa cli 111ee4: 58 pop %eax if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 111ee5: f7 43 10 e0 be 03 00 testl $0x3bee0,0x10(%ebx) 111eec: 74 2e je 111f1c <_Thread_queue_Extract_fifo+0x44> ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 111eee: 8b 0b mov (%ebx),%ecx previous = the_node->previous; 111ef0: 8b 53 04 mov 0x4(%ebx),%edx next->previous = previous; 111ef3: 89 51 04 mov %edx,0x4(%ecx) previous->next = next; 111ef6: 89 0a mov %ecx,(%edx) return; } _Chain_Extract_unprotected( &the_thread->Object.Node ); the_thread->Wait.queue = NULL; 111ef8: c7 43 44 00 00 00 00 movl $0x0,0x44(%ebx) if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 111eff: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 111f03: 74 1f je 111f24 <_Thread_queue_Extract_fifo+0x4c> _ISR_Enable( level ); 111f05: 50 push %eax 111f06: 9d popf RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 111f07: c7 45 0c f8 ff 03 10 movl $0x1003fff8,0xc(%ebp) 111f0e: 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 } 111f11: 8b 5d fc mov -0x4(%ebp),%ebx 111f14: c9 leave 111f15: e9 36 b1 ff ff jmp 10d050 <_Thread_Clear_state> 111f1a: 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 ); 111f1c: 50 push %eax 111f1d: 9d popf #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 111f1e: 8b 5d fc mov -0x4(%ebp),%ebx 111f21: c9 leave 111f22: c3 ret 111f23: 90 nop <== NOT EXECUTED 111f24: 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 ); 111f2b: 50 push %eax 111f2c: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 111f2d: 83 ec 0c sub $0xc,%esp 111f30: 8d 43 48 lea 0x48(%ebx),%eax 111f33: 50 push %eax 111f34: e8 cf c4 ff ff call 10e408 <_Watchdog_Remove> 111f39: 83 c4 10 add $0x10,%esp 111f3c: eb c9 jmp 111f07 <_Thread_queue_Extract_fifo+0x2f> 00110730 <_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 ) { 110730: 55 push %ebp 110731: 89 e5 mov %esp,%ebp 110733: 57 push %edi 110734: 56 push %esi 110735: 53 push %ebx 110736: 83 ec 1c sub $0x1c,%esp 110739: 8b 5d 0c mov 0xc(%ebp),%ebx 11073c: 8a 45 10 mov 0x10(%ebp),%al 11073f: 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 ); 110742: 9c pushf 110743: fa cli 110744: 8f 45 e4 popl -0x1c(%ebp) if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 110747: f7 43 10 e0 be 03 00 testl $0x3bee0,0x10(%ebx) 11074e: 74 6c je 1107bc <_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; 110750: 8b 13 mov (%ebx),%edx previous_node = the_node->previous; 110752: 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)); 110755: 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; 110758: 8d 73 3c lea 0x3c(%ebx),%esi 11075b: 39 f0 cmp %esi,%eax 11075d: 74 69 je 1107c8 <_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; 11075f: 8b 7b 40 mov 0x40(%ebx),%edi new_second_node = new_first_node->next; 110762: 8b 30 mov (%eax),%esi previous_node->next = new_first_node; 110764: 89 01 mov %eax,(%ecx) next_node->previous = new_first_node; 110766: 89 42 04 mov %eax,0x4(%edx) new_first_node->next = next_node; 110769: 89 10 mov %edx,(%eax) new_first_node->previous = previous_node; 11076b: 89 48 04 mov %ecx,0x4(%eax) if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) { 11076e: 8b 53 38 mov 0x38(%ebx),%edx 110771: 3b 53 40 cmp 0x40(%ebx),%edx 110774: 74 11 je 110787 <_Thread_queue_Extract_priority_helper+0x57> /* > two threads on 2-n */ new_second_node->previous = 110776: 8d 50 38 lea 0x38(%eax),%edx 110779: 89 56 04 mov %edx,0x4(%esi) _Chain_Head( &new_first_thread->Wait.Block2n ); new_first_thread->Wait.Block2n.first = new_second_node; 11077c: 89 70 38 mov %esi,0x38(%eax) new_first_thread->Wait.Block2n.last = last_node; 11077f: 89 78 40 mov %edi,0x40(%eax) last_node->next = _Chain_Tail( &new_first_thread->Wait.Block2n ); 110782: 83 c0 3c add $0x3c,%eax 110785: 89 07 mov %eax,(%edi) /* * If we are not supposed to touch timers or the thread's state, return. */ if ( requeuing ) { 110787: 80 7d e3 00 cmpb $0x0,-0x1d(%ebp) 11078b: 75 23 jne 1107b0 <_Thread_queue_Extract_priority_helper+0x80> _ISR_Enable( level ); return; } if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 11078d: 83 7b 50 02 cmpl $0x2,0x50(%ebx) 110791: 74 3d je 1107d0 <_Thread_queue_Extract_priority_helper+0xa0> _ISR_Enable( level ); 110793: ff 75 e4 pushl -0x1c(%ebp) 110796: 9d popf 110797: c7 45 0c f8 ff 03 10 movl $0x1003fff8,0xc(%ebp) 11079e: 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 } 1107a1: 8d 65 f4 lea -0xc(%ebp),%esp 1107a4: 5b pop %ebx 1107a5: 5e pop %esi 1107a6: 5f pop %edi 1107a7: c9 leave 1107a8: e9 a3 c8 ff ff jmp 10d050 <_Thread_Clear_state> 1107ad: 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 ); 1107b0: ff 75 e4 pushl -0x1c(%ebp) 1107b3: 9d popf #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 1107b4: 8d 65 f4 lea -0xc(%ebp),%esp 1107b7: 5b pop %ebx 1107b8: 5e pop %esi 1107b9: 5f pop %edi 1107ba: c9 leave 1107bb: 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 ); 1107bc: ff 75 e4 pushl -0x1c(%ebp) 1107bf: 9d popf #if defined(RTEMS_MULTIPROCESSING) if ( !_Objects_Is_local_id( the_thread->Object.id ) ) _Thread_MP_Free_proxy( the_thread ); #endif } 1107c0: 8d 65 f4 lea -0xc(%ebp),%esp 1107c3: 5b pop %ebx 1107c4: 5e pop %esi 1107c5: 5f pop %edi 1107c6: c9 leave 1107c7: 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; 1107c8: 89 11 mov %edx,(%ecx) next_node->previous = previous_node; 1107ca: 89 4a 04 mov %ecx,0x4(%edx) 1107cd: eb b8 jmp 110787 <_Thread_queue_Extract_priority_helper+0x57> 1107cf: 90 nop <== NOT EXECUTED 1107d0: 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 ); 1107d7: ff 75 e4 pushl -0x1c(%ebp) 1107da: 9d popf (void) _Watchdog_Remove( &the_thread->Timer ); 1107db: 83 ec 0c sub $0xc,%esp 1107de: 8d 43 48 lea 0x48(%ebx),%eax 1107e1: 50 push %eax 1107e2: e8 21 dc ff ff call 10e408 <_Watchdog_Remove> 1107e7: 83 c4 10 add $0x10,%esp 1107ea: eb ab jmp 110797 <_Thread_queue_Extract_priority_helper+0x67> 0010dad4 <_Thread_queue_Extract_with_proxy>: */ bool _Thread_queue_Extract_with_proxy( Thread_Control *the_thread ) { 10dad4: 55 push %ebp 10dad5: 89 e5 mov %esp,%ebp 10dad7: 83 ec 08 sub $0x8,%esp 10dada: 8b 45 08 mov 0x8(%ebp),%eax States_Control state; state = the_thread->current_state; 10dadd: f7 40 10 e0 be 03 00 testl $0x3bee0,0x10(%eax) 10dae4: 75 06 jne 10daec <_Thread_queue_Extract_with_proxy+0x18> 10dae6: 31 c0 xor %eax,%eax _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); return true; } return false; } 10dae8: c9 leave 10dae9: c3 ret 10daea: 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 ); 10daec: 83 ec 08 sub $0x8,%esp 10daef: 50 push %eax 10daf0: ff 70 44 pushl 0x44(%eax) 10daf3: e8 08 2c 00 00 call 110700 <_Thread_queue_Extract> 10daf8: b0 01 mov $0x1,%al return true; 10dafa: 83 c4 10 add $0x10,%esp } return false; } 10dafd: c9 leave 10dafe: c3 ret 0011e7f8 <_Thread_queue_First>: */ Thread_Control *_Thread_queue_First( Thread_queue_Control *the_thread_queue ) { 11e7f8: 55 push %ebp 11e7f9: 89 e5 mov %esp,%ebp 11e7fb: 83 ec 08 sub $0x8,%esp 11e7fe: 8b 45 08 mov 0x8(%ebp),%eax Thread_Control * (*first_p)(Thread_queue_Control *); if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) 11e801: 83 78 34 01 cmpl $0x1,0x34(%eax) 11e805: 74 0d je 11e814 <_Thread_queue_First+0x1c> 11e807: ba 74 fc 11 00 mov $0x11fc74,%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 ); 11e80c: 89 45 08 mov %eax,0x8(%ebp) } 11e80f: 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 ); 11e810: ff e2 jmp *%edx 11e812: 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 ) 11e814: ba 20 e8 11 00 mov $0x11e820,%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 ); 11e819: 89 45 08 mov %eax,0x8(%ebp) } 11e81c: 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 ); 11e81d: ff e2 jmp *%edx 0011fc74 <_Thread_queue_First_fifo>: */ Thread_Control *_Thread_queue_First_fifo( Thread_queue_Control *the_thread_queue ) { 11fc74: 55 push %ebp 11fc75: 89 e5 mov %esp,%ebp 11fc77: 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)); 11fc7a: 8b 02 mov (%edx),%eax */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 11fc7c: 83 c2 04 add $0x4,%edx 11fc7f: 39 d0 cmp %edx,%eax 11fc81: 74 05 je 11fc88 <_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; } 11fc83: c9 leave 11fc84: c3 ret 11fc85: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 11fc88: 31 c0 xor %eax,%eax 11fc8a: c9 leave 11fc8b: c3 ret 0010db00 <_Thread_queue_Flush>: #else Thread_queue_Flush_callout remote_extract_callout __attribute__((unused)), #endif uint32_t status ) { 10db00: 55 push %ebp 10db01: 89 e5 mov %esp,%ebp 10db03: 56 push %esi 10db04: 53 push %ebx 10db05: 8b 5d 08 mov 0x8(%ebp),%ebx 10db08: 8b 75 10 mov 0x10(%ebp),%esi Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { 10db0b: eb 06 jmp 10db13 <_Thread_queue_Flush+0x13> 10db0d: 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; 10db10: 89 70 34 mov %esi,0x34(%eax) uint32_t status ) { Thread_Control *the_thread; while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) { 10db13: 83 ec 0c sub $0xc,%esp 10db16: 53 push %ebx 10db17: e8 94 fc ff ff call 10d7b0 <_Thread_queue_Dequeue> 10db1c: 83 c4 10 add $0x10,%esp 10db1f: 85 c0 test %eax,%eax 10db21: 75 ed jne 10db10 <_Thread_queue_Flush+0x10> ( *remote_extract_callout )( the_thread ); else #endif the_thread->Wait.return_code = status; } } 10db23: 8d 65 f8 lea -0x8(%ebp),%esp 10db26: 5b pop %ebx 10db27: 5e pop %esi 10db28: c9 leave 10db29: c3 ret 0010db2c <_Thread_queue_Initialize>: Thread_queue_Control *the_thread_queue, Thread_queue_Disciplines the_discipline, States_Control state, uint32_t timeout_status ) { 10db2c: 55 push %ebp 10db2d: 89 e5 mov %esp,%ebp 10db2f: 8b 45 08 mov 0x8(%ebp),%eax 10db32: 8b 55 0c mov 0xc(%ebp),%edx the_thread_queue->state = state; 10db35: 8b 4d 10 mov 0x10(%ebp),%ecx 10db38: 89 48 38 mov %ecx,0x38(%eax) the_thread_queue->discipline = the_discipline; 10db3b: 89 50 34 mov %edx,0x34(%eax) the_thread_queue->timeout_status = timeout_status; 10db3e: 8b 4d 14 mov 0x14(%ebp),%ecx 10db41: 89 48 3c mov %ecx,0x3c(%eax) the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 10db44: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax) if ( the_discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) { 10db4b: 4a dec %edx 10db4c: 74 12 je 10db60 <_Thread_queue_Initialize+0x34> */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 10db4e: 8d 50 04 lea 0x4(%eax),%edx 10db51: 89 10 mov %edx,(%eax) the_chain->permanent_null = NULL; 10db53: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) the_chain->last = _Chain_Head(the_chain); 10db5a: 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 ); } } 10db5d: c9 leave 10db5e: c3 ret 10db5f: 90 nop <== NOT EXECUTED * timeout_status - return on a timeout * * Output parameters: NONE */ void _Thread_queue_Initialize( 10db60: 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); 10db63: 8d 50 04 lea 0x4(%eax),%edx 10db66: 89 10 mov %edx,(%eax) the_chain->permanent_null = NULL; 10db68: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) the_chain->last = _Chain_Head(the_chain); 10db6f: 89 40 08 mov %eax,0x8(%eax) 10db72: 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 ; 10db75: 39 c8 cmp %ecx,%eax 10db77: 75 ea jne 10db63 <_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 ); } } 10db79: c9 leave 10db7a: c3 ret 001107ec <_Thread_queue_Process_timeout>: #include void _Thread_queue_Process_timeout( Thread_Control *the_thread ) { 1107ec: 55 push %ebp 1107ed: 89 e5 mov %esp,%ebp 1107ef: 83 ec 08 sub $0x8,%esp 1107f2: 8b 45 08 mov 0x8(%ebp),%eax Thread_queue_Control *the_thread_queue = the_thread->Wait.queue; 1107f5: 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 && 1107f8: 8b 4a 30 mov 0x30(%edx),%ecx 1107fb: 85 c9 test %ecx,%ecx 1107fd: 74 08 je 110807 <_Thread_queue_Process_timeout+0x1b> 1107ff: 3b 05 18 54 12 00 cmp 0x125418,%eax 110805: 74 19 je 110820 <_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; 110807: 8b 52 3c mov 0x3c(%edx),%edx 11080a: 89 50 34 mov %edx,0x34(%eax) _Thread_queue_Extract( the_thread->Wait.queue, the_thread ); 11080d: 83 ec 08 sub $0x8,%esp 110810: 50 push %eax 110811: ff 70 44 pushl 0x44(%eax) 110814: e8 e7 fe ff ff call 110700 <_Thread_queue_Extract> 110819: 83 c4 10 add $0x10,%esp } } 11081c: c9 leave 11081d: c3 ret 11081e: 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 ) { 110820: 83 f9 03 cmp $0x3,%ecx 110823: 74 f7 je 11081c <_Thread_queue_Process_timeout+0x30> the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; 110825: 8b 4a 3c mov 0x3c(%edx),%ecx 110828: 89 48 34 mov %ecx,0x34(%eax) the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT; 11082b: 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 ); } } 110832: c9 leave 110833: c3 ret 0010db7c <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) { 10db7c: 55 push %ebp 10db7d: 89 e5 mov %esp,%ebp 10db7f: 57 push %edi 10db80: 56 push %esi 10db81: 53 push %ebx 10db82: 83 ec 1c sub $0x1c,%esp 10db85: 8b 75 08 mov 0x8(%ebp),%esi 10db88: 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 ) 10db8b: 85 f6 test %esi,%esi 10db8d: 74 06 je 10db95 <_Thread_queue_Requeue+0x19> /* * 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 ) { 10db8f: 83 7e 34 01 cmpl $0x1,0x34(%esi) 10db93: 74 0b je 10dba0 <_Thread_queue_Requeue+0x24> _Thread_queue_Extract_priority_helper( tq, the_thread, true ); (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); } _ISR_Enable( level ); } } 10db95: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10db98: 5b pop %ebx <== NOT EXECUTED 10db99: 5e pop %esi <== NOT EXECUTED 10db9a: 5f pop %edi <== NOT EXECUTED 10db9b: c9 leave <== NOT EXECUTED 10db9c: c3 ret <== NOT EXECUTED 10db9d: 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 ); 10dba0: 9c pushf 10dba1: fa cli 10dba2: 5b pop %ebx if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) { 10dba3: f7 47 10 e0 be 03 00 testl $0x3bee0,0x10(%edi) 10dbaa: 75 0c jne 10dbb8 <_Thread_queue_Requeue+0x3c> _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 ); 10dbac: 53 push %ebx 10dbad: 9d popf } } 10dbae: 8d 65 f4 lea -0xc(%ebp),%esp 10dbb1: 5b pop %ebx 10dbb2: 5e pop %esi 10dbb3: 5f pop %edi 10dbb4: c9 leave 10dbb5: c3 ret 10dbb6: 66 90 xchg %ax,%ax <== NOT EXECUTED 10dbb8: 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 ); 10dbbf: 50 push %eax 10dbc0: 6a 01 push $0x1 10dbc2: 57 push %edi 10dbc3: 56 push %esi 10dbc4: e8 67 2b 00 00 call 110730 <_Thread_queue_Extract_priority_helper> (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored ); 10dbc9: 83 c4 0c add $0xc,%esp 10dbcc: 8d 45 e4 lea -0x1c(%ebp),%eax 10dbcf: 50 push %eax 10dbd0: 57 push %edi 10dbd1: 56 push %esi 10dbd2: e8 8d fd ff ff call 10d964 <_Thread_queue_Enqueue_priority> 10dbd7: 83 c4 10 add $0x10,%esp 10dbda: eb d0 jmp 10dbac <_Thread_queue_Requeue+0x30> 00118b04 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 118b04: 55 push %ebp 118b05: 89 e5 mov %esp,%ebp 118b07: 57 push %edi 118b08: 56 push %esi 118b09: 53 push %ebx 118b0a: 83 ec 4c sub $0x4c,%esp 118b0d: 8b 5d 08 mov 0x8(%ebp),%ebx 118b10: 8d 45 e0 lea -0x20(%ebp),%eax 118b13: 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); 118b16: 89 45 dc mov %eax,-0x24(%ebp) the_chain->permanent_null = NULL; 118b19: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) the_chain->last = _Chain_Head(the_chain); 118b20: 8d 4d dc lea -0x24(%ebp),%ecx 118b23: 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; 118b26: 8d 7d d0 lea -0x30(%ebp),%edi 118b29: 8d 45 d4 lea -0x2c(%ebp),%eax 118b2c: 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); 118b2f: 89 45 d0 mov %eax,-0x30(%ebp) the_chain->permanent_null = NULL; 118b32: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) the_chain->last = _Chain_Head(the_chain); 118b39: 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 ); 118b3c: 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 ); 118b3f: 8d 4b 68 lea 0x68(%ebx),%ecx 118b42: 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 ); 118b45: 8d 43 08 lea 0x8(%ebx),%eax 118b48: 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 ); 118b4b: 8d 53 40 lea 0x40(%ebx),%edx 118b4e: 89 55 c0 mov %edx,-0x40(%ebp) 118b51: 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; 118b54: 8d 4d dc lea -0x24(%ebp),%ecx 118b57: 89 4b 78 mov %ecx,0x78(%ebx) 118b5a: 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; 118b5c: a1 e4 f8 13 00 mov 0x13f8e4,%eax /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 118b61: 8b 53 3c mov 0x3c(%ebx),%edx watchdogs->last_snapshot = snapshot; 118b64: 89 43 3c mov %eax,0x3c(%ebx) _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 118b67: 51 push %ecx 118b68: 57 push %edi 118b69: 29 d0 sub %edx,%eax 118b6b: 50 push %eax 118b6c: 56 push %esi 118b6d: e8 a2 3a 00 00 call 11c614 <_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(); 118b72: a1 0c f8 13 00 mov 0x13f80c,%eax Watchdog_Interval last_snapshot = watchdogs->last_snapshot; 118b77: 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 ) { 118b7a: 83 c4 10 add $0x10,%esp 118b7d: 39 d0 cmp %edx,%eax 118b7f: 77 63 ja 118be4 <_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 ) { 118b81: 72 7d jb 118c00 <_Timer_server_Body+0xfc> */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; 118b83: 89 43 74 mov %eax,0x74(%ebx) 118b86: 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 ); 118b88: 8b 43 78 mov 0x78(%ebx),%eax 118b8b: 83 ec 0c sub $0xc,%esp 118b8e: 50 push %eax 118b8f: e8 38 08 00 00 call 1193cc <_Chain_Get> if ( timer == NULL ) { 118b94: 83 c4 10 add $0x10,%esp 118b97: 85 c0 test %eax,%eax 118b99: 74 35 je 118bd0 <_Timer_server_Body+0xcc> static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 118b9b: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED 118b9e: 83 fa 01 cmp $0x1,%edx <== NOT EXECUTED 118ba1: 74 19 je 118bbc <_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 ) { 118ba3: 83 fa 03 cmp $0x3,%edx <== NOT EXECUTED 118ba6: 75 e0 jne 118b88 <_Timer_server_Body+0x84> <== NOT EXECUTED _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 118ba8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 118bab: 83 c0 10 add $0x10,%eax <== NOT EXECUTED 118bae: 50 push %eax <== NOT EXECUTED 118baf: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED 118bb2: e8 f5 3a 00 00 call 11c6ac <_Watchdog_Insert> <== NOT EXECUTED 118bb7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 118bba: eb cc jmp 118b88 <_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 ); 118bbc: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 118bbf: 83 c0 10 add $0x10,%eax <== NOT EXECUTED 118bc2: 50 push %eax <== NOT EXECUTED 118bc3: 56 push %esi <== NOT EXECUTED 118bc4: e8 e3 3a 00 00 call 11c6ac <_Watchdog_Insert> <== NOT EXECUTED 118bc9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 118bcc: eb ba jmp 118b88 <_Timer_server_Body+0x84> <== NOT EXECUTED 118bce: 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 ); 118bd0: 9c pushf 118bd1: fa cli 118bd2: 58 pop %eax if ( _Chain_Is_empty( insert_chain ) ) { 118bd3: 8b 55 b4 mov -0x4c(%ebp),%edx 118bd6: 3b 55 dc cmp -0x24(%ebp),%edx 118bd9: 74 41 je 118c1c <_Timer_server_Body+0x118> ts->insert_chain = NULL; _ISR_Enable( level ); break; } else { _ISR_Enable( level ); 118bdb: 50 push %eax <== NOT EXECUTED 118bdc: 9d popf <== NOT EXECUTED 118bdd: e9 7a ff ff ff jmp 118b5c <_Timer_server_Body+0x58> <== NOT EXECUTED 118be2: 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 ); 118be4: 51 push %ecx 118be5: 57 push %edi 118be6: 89 c1 mov %eax,%ecx 118be8: 29 d1 sub %edx,%ecx 118bea: 51 push %ecx 118beb: ff 75 c4 pushl -0x3c(%ebp) 118bee: 89 45 b8 mov %eax,-0x48(%ebp) 118bf1: e8 1e 3a 00 00 call 11c614 <_Watchdog_Adjust_to_chain> 118bf6: 83 c4 10 add $0x10,%esp 118bf9: 8b 45 b8 mov -0x48(%ebp),%eax 118bfc: eb 85 jmp 118b83 <_Timer_server_Body+0x7f> 118bfe: 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 ); 118c00: 51 push %ecx 118c01: 29 c2 sub %eax,%edx 118c03: 52 push %edx 118c04: 6a 01 push $0x1 118c06: ff 75 c4 pushl -0x3c(%ebp) 118c09: 89 45 b8 mov %eax,-0x48(%ebp) 118c0c: e8 8b 39 00 00 call 11c59c <_Watchdog_Adjust> 118c11: 83 c4 10 add $0x10,%esp 118c14: 8b 45 b8 mov -0x48(%ebp),%eax 118c17: e9 67 ff ff ff jmp 118b83 <_Timer_server_Body+0x7f> */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ts->insert_chain = NULL; 118c1c: c7 43 78 00 00 00 00 movl $0x0,0x78(%ebx) _ISR_Enable( level ); 118c23: 50 push %eax 118c24: 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 ) ) { 118c25: 8b 4d b0 mov -0x50(%ebp),%ecx 118c28: 3b 4d d0 cmp -0x30(%ebp),%ecx 118c2b: 75 23 jne 118c50 <_Timer_server_Body+0x14c> 118c2d: eb 33 jmp 118c62 <_Timer_server_Body+0x15e> 118c2f: 90 nop <== NOT EXECUTED { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 118c30: 8b 10 mov (%eax),%edx the_chain->first = new_first; 118c32: 89 55 d0 mov %edx,-0x30(%ebp) new_first->previous = _Chain_Head(the_chain); 118c35: 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; 118c38: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) _ISR_Enable( level ); 118c3f: 51 push %ecx 118c40: 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 ); 118c41: 83 ec 08 sub $0x8,%esp 118c44: ff 70 24 pushl 0x24(%eax) 118c47: ff 70 20 pushl 0x20(%eax) 118c4a: ff 50 1c call *0x1c(%eax) } 118c4d: 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 ); 118c50: 9c pushf 118c51: fa cli 118c52: 59 pop %ecx */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 118c53: 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)) 118c56: 39 45 b0 cmp %eax,-0x50(%ebp) 118c59: 75 d5 jne 118c30 <_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 ); 118c5b: 51 push %ecx 118c5c: 9d popf 118c5d: e9 f2 fe ff ff jmp 118b54 <_Timer_server_Body+0x50> * the active flag of the timer server is true. */ (*watchdog->routine)( watchdog->id, watchdog->user_data ); } } else { ts->active = false; 118c62: c6 43 7c 00 movb $0x0,0x7c(%ebx) 118c66: a1 78 f7 13 00 mov 0x13f778,%eax 118c6b: 40 inc %eax 118c6c: a3 78 f7 13 00 mov %eax,0x13f778 /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 118c71: 83 ec 08 sub $0x8,%esp 118c74: 6a 08 push $0x8 118c76: ff 33 pushl (%ebx) 118c78: e8 67 31 00 00 call 11bde4 <_Thread_Set_state> _Timer_server_Reset_interval_system_watchdog( ts ); 118c7d: 89 d8 mov %ebx,%eax 118c7f: e8 e0 fd ff ff call 118a64 <_Timer_server_Reset_interval_system_watchdog> _Timer_server_Reset_tod_system_watchdog( ts ); 118c84: 89 d8 mov %ebx,%eax 118c86: e8 29 fe ff ff call 118ab4 <_Timer_server_Reset_tod_system_watchdog> _Thread_Enable_dispatch(); 118c8b: e8 84 27 00 00 call 11b414 <_Thread_Enable_dispatch> ts->active = true; 118c90: 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 ); 118c94: 58 pop %eax 118c95: ff 75 bc pushl -0x44(%ebp) 118c98: e8 47 3b 00 00 call 11c7e4 <_Watchdog_Remove> static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 118c9d: 59 pop %ecx 118c9e: ff 75 c0 pushl -0x40(%ebp) 118ca1: e8 3e 3b 00 00 call 11c7e4 <_Watchdog_Remove> 118ca6: 83 c4 10 add $0x10,%esp 118ca9: e9 a6 fe ff ff jmp 118b54 <_Timer_server_Body+0x50> 00118a64 <_Timer_server_Reset_interval_system_watchdog>: } static void _Timer_server_Reset_interval_system_watchdog( Timer_server_Control *ts ) { 118a64: 55 push %ebp 118a65: 89 e5 mov %esp,%ebp 118a67: 56 push %esi 118a68: 53 push %ebx 118a69: 89 c3 mov %eax,%ebx static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 118a6b: 8d 70 08 lea 0x8(%eax),%esi 118a6e: 83 ec 0c sub $0xc,%esp 118a71: 56 push %esi 118a72: e8 6d 3d 00 00 call 11c7e4 <_Watchdog_Remove> { ISR_Level level; _Timer_server_Stop_interval_system_watchdog( ts ); _ISR_Disable( level ); 118a77: 9c pushf 118a78: fa cli 118a79: 59 pop %ecx */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 118a7a: 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; 118a7d: 8d 53 34 lea 0x34(%ebx),%edx 118a80: 83 c4 10 add $0x10,%esp 118a83: 39 d0 cmp %edx,%eax 118a85: 74 21 je 118aa8 <_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; 118a87: 8b 40 10 mov 0x10(%eax),%eax _ISR_Enable( level ); 118a8a: 51 push %ecx 118a8b: 9d popf Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 118a8c: 89 43 14 mov %eax,0x14(%ebx) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 118a8f: 83 ec 08 sub $0x8,%esp 118a92: 56 push %esi 118a93: 68 58 f8 13 00 push $0x13f858 118a98: e8 0f 3c 00 00 call 11c6ac <_Watchdog_Insert> 118a9d: 83 c4 10 add $0x10,%esp delta_interval ); } else { _ISR_Enable( level ); } } 118aa0: 8d 65 f8 lea -0x8(%ebp),%esp 118aa3: 5b pop %ebx 118aa4: 5e pop %esi 118aa5: c9 leave 118aa6: c3 ret 118aa7: 90 nop <== NOT EXECUTED _Watchdog_Insert_ticks( &ts->Interval_watchdogs.System_watchdog, delta_interval ); } else { _ISR_Enable( level ); 118aa8: 51 push %ecx 118aa9: 9d popf } } 118aaa: 8d 65 f8 lea -0x8(%ebp),%esp 118aad: 5b pop %ebx 118aae: 5e pop %esi 118aaf: c9 leave 118ab0: c3 ret 00118ab4 <_Timer_server_Reset_tod_system_watchdog>: } static void _Timer_server_Reset_tod_system_watchdog( Timer_server_Control *ts ) { 118ab4: 55 push %ebp 118ab5: 89 e5 mov %esp,%ebp 118ab7: 56 push %esi 118ab8: 53 push %ebx 118ab9: 89 c3 mov %eax,%ebx static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 118abb: 8d 70 40 lea 0x40(%eax),%esi 118abe: 83 ec 0c sub $0xc,%esp 118ac1: 56 push %esi 118ac2: e8 1d 3d 00 00 call 11c7e4 <_Watchdog_Remove> { ISR_Level level; _Timer_server_Stop_tod_system_watchdog( ts ); _ISR_Disable( level ); 118ac7: 9c pushf 118ac8: fa cli 118ac9: 59 pop %ecx */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 118aca: 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; 118acd: 8d 53 6c lea 0x6c(%ebx),%edx 118ad0: 83 c4 10 add $0x10,%esp 118ad3: 39 d0 cmp %edx,%eax 118ad5: 74 21 je 118af8 <_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; 118ad7: 8b 40 10 mov 0x10(%eax),%eax _ISR_Enable( level ); 118ada: 51 push %ecx 118adb: 9d popf Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 118adc: 89 43 4c mov %eax,0x4c(%ebx) _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 118adf: 83 ec 08 sub $0x8,%esp 118ae2: 56 push %esi 118ae3: 68 4c f8 13 00 push $0x13f84c 118ae8: e8 bf 3b 00 00 call 11c6ac <_Watchdog_Insert> 118aed: 83 c4 10 add $0x10,%esp delta_interval ); } else { _ISR_Enable( level ); } } 118af0: 8d 65 f8 lea -0x8(%ebp),%esp 118af3: 5b pop %ebx 118af4: 5e pop %esi 118af5: c9 leave 118af6: c3 ret 118af7: 90 nop <== NOT EXECUTED _Watchdog_Insert_seconds( &ts->TOD_watchdogs.System_watchdog, delta_interval ); } else { _ISR_Enable( level ); 118af8: 51 push %ecx 118af9: 9d popf } } 118afa: 8d 65 f8 lea -0x8(%ebp),%esp 118afd: 5b pop %ebx 118afe: 5e pop %esi 118aff: c9 leave 118b00: c3 ret 00118cb0 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) { 118cb0: 55 push %ebp 118cb1: 89 e5 mov %esp,%ebp 118cb3: 57 push %edi 118cb4: 56 push %esi 118cb5: 53 push %ebx 118cb6: 83 ec 2c sub $0x2c,%esp 118cb9: 8b 5d 08 mov 0x8(%ebp),%ebx 118cbc: 8b 45 0c mov 0xc(%ebp),%eax if ( ts->insert_chain == NULL ) { 118cbf: 8b 53 78 mov 0x78(%ebx),%edx 118cc2: 85 d2 test %edx,%edx 118cc4: 74 16 je 118cdc <_Timer_server_Schedule_operation_method+0x2c> * 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 ); 118cc6: 8b 53 78 mov 0x78(%ebx),%edx <== NOT EXECUTED 118cc9: 89 45 0c mov %eax,0xc(%ebp) <== NOT EXECUTED 118ccc: 89 55 08 mov %edx,0x8(%ebp) <== NOT EXECUTED } } 118ccf: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 118cd2: 5b pop %ebx <== NOT EXECUTED 118cd3: 5e pop %esi <== NOT EXECUTED 118cd4: 5f pop %edi <== NOT EXECUTED 118cd5: 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 ); 118cd6: e9 cd 06 00 00 jmp 1193a8 <_Chain_Append> <== NOT EXECUTED 118cdb: 90 nop <== NOT EXECUTED 118cdc: 8b 15 78 f7 13 00 mov 0x13f778,%edx 118ce2: 42 inc %edx 118ce3: 89 15 78 f7 13 00 mov %edx,0x13f778 * being inserted. This could result in an integer overflow. */ _Thread_Disable_dispatch(); if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 118ce9: 8b 50 38 mov 0x38(%eax),%edx 118cec: 83 fa 01 cmp $0x1,%edx 118cef: 74 77 je 118d68 <_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 ) { 118cf1: 83 fa 03 cmp $0x3,%edx 118cf4: 74 0e je 118d04 <_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 ); } } 118cf6: 8d 65 f4 lea -0xc(%ebp),%esp 118cf9: 5b pop %ebx 118cfa: 5e pop %esi 118cfb: 5f pop %edi 118cfc: c9 leave if ( !ts->active ) { _Timer_server_Reset_tod_system_watchdog( ts ); } } _Thread_Enable_dispatch(); 118cfd: e9 12 27 00 00 jmp 11b414 <_Thread_Enable_dispatch> 118d02: 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 ); 118d04: 9c pushf 118d05: fa cli 118d06: 8f 45 e4 popl -0x1c(%ebp) snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 118d09: 8b 0d 0c f8 13 00 mov 0x13f80c,%ecx last_snapshot = ts->TOD_watchdogs.last_snapshot; 118d0f: 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)); 118d12: 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; 118d15: 8d 7b 6c lea 0x6c(%ebx),%edi 118d18: 39 fa cmp %edi,%edx 118d1a: 74 22 je 118d3e <_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; 118d1c: 8b 7a 10 mov 0x10(%edx),%edi 118d1f: 89 7d d4 mov %edi,-0x2c(%ebp) if ( snapshot > last_snapshot ) { 118d22: 39 f1 cmp %esi,%ecx 118d24: 0f 86 9e 00 00 00 jbe 118dc8 <_Timer_server_Schedule_operation_method+0x118> /* * We advanced in time. */ delta = snapshot - last_snapshot; 118d2a: 89 cf mov %ecx,%edi 118d2c: 29 f7 sub %esi,%edi 118d2e: 89 fe mov %edi,%esi if (delta_interval > delta) { 118d30: 39 7d d4 cmp %edi,-0x2c(%ebp) 118d33: 0f 87 9b 00 00 00 ja 118dd4 <_Timer_server_Schedule_operation_method+0x124> 118d39: 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; 118d3b: 89 7a 10 mov %edi,0x10(%edx) } ts->TOD_watchdogs.last_snapshot = snapshot; 118d3e: 89 4b 74 mov %ecx,0x74(%ebx) _ISR_Enable( level ); 118d41: ff 75 e4 pushl -0x1c(%ebp) 118d44: 9d popf _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 118d45: 83 ec 08 sub $0x8,%esp 118d48: 83 c0 10 add $0x10,%eax 118d4b: 50 push %eax 118d4c: 8d 43 68 lea 0x68(%ebx),%eax 118d4f: 50 push %eax 118d50: e8 57 39 00 00 call 11c6ac <_Watchdog_Insert> if ( !ts->active ) { 118d55: 8a 43 7c mov 0x7c(%ebx),%al 118d58: 83 c4 10 add $0x10,%esp 118d5b: 84 c0 test %al,%al 118d5d: 75 97 jne 118cf6 <_Timer_server_Schedule_operation_method+0x46> _Timer_server_Reset_tod_system_watchdog( ts ); 118d5f: 89 d8 mov %ebx,%eax 118d61: e8 4e fd ff ff call 118ab4 <_Timer_server_Reset_tod_system_watchdog> 118d66: eb 8e jmp 118cf6 <_Timer_server_Schedule_operation_method+0x46> if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { /* * We have to advance the last known ticks value of the server and update * the watchdog chain accordingly. */ _ISR_Disable( level ); 118d68: 9c pushf 118d69: fa cli 118d6a: 8f 45 e4 popl -0x1c(%ebp) snapshot = _Watchdog_Ticks_since_boot; 118d6d: 8b 0d e4 f8 13 00 mov 0x13f8e4,%ecx last_snapshot = ts->Interval_watchdogs.last_snapshot; 118d73: 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)); 118d76: 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; 118d79: 8d 7b 34 lea 0x34(%ebx),%edi 118d7c: 39 fa cmp %edi,%edx 118d7e: 74 12 je 118d92 <_Timer_server_Schedule_operation_method+0xe2> first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain ); /* * We assume adequate unsigned arithmetic here. */ delta = snapshot - last_snapshot; 118d80: 89 cf mov %ecx,%edi 118d82: 29 f7 sub %esi,%edi 118d84: 89 fe mov %edi,%esi delta_interval = first_watchdog->delta_interval; 118d86: 8b 7a 10 mov 0x10(%edx),%edi if (delta_interval > delta) { 118d89: 39 fe cmp %edi,%esi 118d8b: 72 37 jb 118dc4 <_Timer_server_Schedule_operation_method+0x114> 118d8d: 31 ff xor %edi,%edi delta_interval -= delta; } else { delta_interval = 0; } first_watchdog->delta_interval = delta_interval; 118d8f: 89 7a 10 mov %edi,0x10(%edx) } ts->Interval_watchdogs.last_snapshot = snapshot; 118d92: 89 4b 3c mov %ecx,0x3c(%ebx) _ISR_Enable( level ); 118d95: ff 75 e4 pushl -0x1c(%ebp) 118d98: 9d popf _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 118d99: 83 ec 08 sub $0x8,%esp 118d9c: 83 c0 10 add $0x10,%eax 118d9f: 50 push %eax 118da0: 8d 43 30 lea 0x30(%ebx),%eax 118da3: 50 push %eax 118da4: e8 03 39 00 00 call 11c6ac <_Watchdog_Insert> if ( !ts->active ) { 118da9: 8a 43 7c mov 0x7c(%ebx),%al 118dac: 83 c4 10 add $0x10,%esp 118daf: 84 c0 test %al,%al 118db1: 0f 85 3f ff ff ff jne 118cf6 <_Timer_server_Schedule_operation_method+0x46> _Timer_server_Reset_interval_system_watchdog( ts ); 118db7: 89 d8 mov %ebx,%eax 118db9: e8 a6 fc ff ff call 118a64 <_Timer_server_Reset_interval_system_watchdog> 118dbe: e9 33 ff ff ff jmp 118cf6 <_Timer_server_Schedule_operation_method+0x46> 118dc3: 90 nop <== NOT EXECUTED */ delta = snapshot - last_snapshot; delta_interval = first_watchdog->delta_interval; if (delta_interval > delta) { delta_interval -= delta; 118dc4: 29 f7 sub %esi,%edi 118dc6: eb c7 jmp 118d8f <_Timer_server_Schedule_operation_method+0xdf> } } else { /* * Someone put us in the past. */ delta = last_snapshot - snapshot; 118dc8: 8b 7d d4 mov -0x2c(%ebp),%edi 118dcb: 01 f7 add %esi,%edi delta_interval += delta; 118dcd: 29 cf sub %ecx,%edi 118dcf: e9 67 ff ff ff jmp 118d3b <_Timer_server_Schedule_operation_method+0x8b> /* * We advanced in time. */ delta = snapshot - last_snapshot; if (delta_interval > delta) { delta_interval -= delta; 118dd4: 8b 7d d4 mov -0x2c(%ebp),%edi 118dd7: 29 f7 sub %esi,%edi 118dd9: e9 5d ff ff ff jmp 118d3b <_Timer_server_Schedule_operation_method+0x8b> 0010f8a8 <_Timespec_Divide>: const struct timespec *lhs, const struct timespec *rhs, uint32_t *ival_percentage, uint32_t *fval_percentage ) { 10f8a8: 55 push %ebp 10f8a9: 89 e5 mov %esp,%ebp 10f8ab: 57 push %edi 10f8ac: 56 push %esi 10f8ad: 53 push %ebx 10f8ae: 83 ec 2c sub $0x2c,%esp 10f8b1: 8b 45 08 mov 0x8(%ebp),%eax 10f8b4: 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; 10f8b7: 8b 10 mov (%eax),%edx 10f8b9: 89 55 e0 mov %edx,-0x20(%ebp) left += lhs->tv_nsec; 10f8bc: 8b 78 04 mov 0x4(%eax),%edi right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 10f8bf: b9 00 ca 9a 3b mov $0x3b9aca00,%ecx 10f8c4: 8b 03 mov (%ebx),%eax 10f8c6: f7 e9 imul %ecx 10f8c8: 89 45 d0 mov %eax,-0x30(%ebp) 10f8cb: 89 55 d4 mov %edx,-0x2c(%ebp) right += rhs->tv_nsec; 10f8ce: 8b 5b 04 mov 0x4(%ebx),%ebx 10f8d1: 89 de mov %ebx,%esi 10f8d3: c1 fe 1f sar $0x1f,%esi 10f8d6: 01 5d d0 add %ebx,-0x30(%ebp) 10f8d9: 11 75 d4 adc %esi,-0x2c(%ebp) if ( right == 0 ) { 10f8dc: 8b 55 d4 mov -0x2c(%ebp),%edx 10f8df: 0b 55 d0 or -0x30(%ebp),%edx 10f8e2: 74 7c je 10f960 <_Timespec_Divide+0xb8> /* * For math simplicity just convert the timespec to nanoseconds * in a 64-bit integer. */ left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND; 10f8e4: 8b 45 e0 mov -0x20(%ebp),%eax 10f8e7: f7 e9 imul %ecx 10f8e9: 89 45 e0 mov %eax,-0x20(%ebp) 10f8ec: 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; 10f8ef: 89 fb mov %edi,%ebx 10f8f1: c1 fb 1f sar $0x1f,%ebx 10f8f4: 01 7d e0 add %edi,-0x20(%ebp) 10f8f7: 11 5d e4 adc %ebx,-0x1c(%ebp) 10f8fa: 69 5d e4 a0 86 01 00 imul $0x186a0,-0x1c(%ebp),%ebx 10f901: b9 a0 86 01 00 mov $0x186a0,%ecx 10f906: 8b 45 e0 mov -0x20(%ebp),%eax 10f909: f7 e1 mul %ecx 10f90b: 89 45 e0 mov %eax,-0x20(%ebp) 10f90e: 01 da add %ebx,%edx 10f910: 89 55 e4 mov %edx,-0x1c(%ebp) 10f913: ff 75 d4 pushl -0x2c(%ebp) 10f916: ff 75 d0 pushl -0x30(%ebp) 10f919: ff 75 e4 pushl -0x1c(%ebp) 10f91c: ff 75 e0 pushl -0x20(%ebp) 10f91f: e8 08 fc 00 00 call 11f52c <__udivdi3> 10f924: 83 c4 10 add $0x10,%esp 10f927: 89 c3 mov %eax,%ebx 10f929: 89 d6 mov %edx,%esi *ival_percentage = answer / 1000; 10f92b: 6a 00 push $0x0 10f92d: 68 e8 03 00 00 push $0x3e8 10f932: 52 push %edx 10f933: 50 push %eax 10f934: e8 f3 fb 00 00 call 11f52c <__udivdi3> 10f939: 83 c4 10 add $0x10,%esp 10f93c: 8b 55 10 mov 0x10(%ebp),%edx 10f93f: 89 02 mov %eax,(%edx) *fval_percentage = answer % 1000; 10f941: 6a 00 push $0x0 10f943: 68 e8 03 00 00 push $0x3e8 10f948: 56 push %esi 10f949: 53 push %ebx 10f94a: e8 ed fc 00 00 call 11f63c <__umoddi3> 10f94f: 83 c4 10 add $0x10,%esp 10f952: 8b 55 14 mov 0x14(%ebp),%edx 10f955: 89 02 mov %eax,(%edx) } 10f957: 8d 65 f4 lea -0xc(%ebp),%esp 10f95a: 5b pop %ebx 10f95b: 5e pop %esi 10f95c: 5f pop %edi 10f95d: c9 leave 10f95e: c3 ret 10f95f: 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; 10f960: 8b 45 10 mov 0x10(%ebp),%eax 10f963: c7 00 00 00 00 00 movl $0x0,(%eax) *fval_percentage = 0; 10f969: 8b 55 14 mov 0x14(%ebp),%edx 10f96c: c7 02 00 00 00 00 movl $0x0,(%edx) answer = (left * 100000) / right; *ival_percentage = answer / 1000; *fval_percentage = answer % 1000; } 10f972: 8d 65 f4 lea -0xc(%ebp),%esp 10f975: 5b pop %ebx 10f976: 5e pop %esi 10f977: 5f pop %edi 10f978: c9 leave 10f979: c3 ret 00127da4 <_Timespec_Is_valid>: #include bool _Timespec_Is_valid( const struct timespec *time ) { 127da4: 55 push %ebp 127da5: 89 e5 mov %esp,%ebp 127da7: 8b 45 08 mov 0x8(%ebp),%eax if ( !time ) 127daa: 85 c0 test %eax,%eax 127dac: 74 1a je 127dc8 <_Timespec_Is_valid+0x24> return false; if ( time->tv_sec < 0 ) 127dae: 8b 10 mov (%eax),%edx 127db0: 85 d2 test %edx,%edx 127db2: 78 14 js 127dc8 <_Timespec_Is_valid+0x24> return false; if ( time->tv_nsec < 0 ) 127db4: 8b 40 04 mov 0x4(%eax),%eax 127db7: 85 c0 test %eax,%eax 127db9: 78 0d js 127dc8 <_Timespec_Is_valid+0x24> #include #include #include bool _Timespec_Is_valid( 127dbb: 3d ff c9 9a 3b cmp $0x3b9ac9ff,%eax 127dc0: 0f 96 c0 setbe %al if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } 127dc3: c9 leave 127dc4: c3 ret 127dc5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED #include #include #include bool _Timespec_Is_valid( 127dc8: 31 c0 xor %eax,%eax if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) return false; return true; } 127dca: c9 leave 127dcb: c3 ret 00127dcc <_Timespec_To_ticks>: */ uint32_t _Timespec_To_ticks( const struct timespec *time ) { 127dcc: 55 push %ebp 127dcd: 89 e5 mov %esp,%ebp 127dcf: 56 push %esi 127dd0: 53 push %ebx 127dd1: 8b 5d 08 mov 0x8(%ebp),%ebx uint32_t ticks; if ( (time->tv_sec == 0) && (time->tv_nsec == 0) ) 127dd4: 8b 33 mov (%ebx),%esi 127dd6: 85 f6 test %esi,%esi 127dd8: 75 07 jne 127de1 <_Timespec_To_ticks+0x15> 127dda: 8b 43 04 mov 0x4(%ebx),%eax 127ddd: 85 c0 test %eax,%eax 127ddf: 74 37 je 127e18 <_Timespec_To_ticks+0x4c> return 0; ticks = time->tv_sec * TOD_TICKS_PER_SECOND; 127de1: e8 da 00 00 00 call 127ec0 127de6: 89 c1 mov %eax,%ecx 127de8: 0f af ce imul %esi,%ecx ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); 127deb: a1 cc ef 12 00 mov 0x12efcc,%eax 127df0: 8d 04 80 lea (%eax,%eax,4),%eax 127df3: 8d 04 80 lea (%eax,%eax,4),%eax 127df6: 8d 34 80 lea (%eax,%eax,4),%esi 127df9: c1 e6 03 shl $0x3,%esi 127dfc: 8b 43 04 mov 0x4(%ebx),%eax 127dff: 31 d2 xor %edx,%edx 127e01: f7 f6 div %esi if (ticks) 127e03: 01 c8 add %ecx,%eax 127e05: 74 05 je 127e0c <_Timespec_To_ticks+0x40> return ticks; return 1; } 127e07: 5b pop %ebx 127e08: 5e pop %esi 127e09: c9 leave 127e0a: c3 ret 127e0b: 90 nop <== NOT EXECUTED ticks = time->tv_sec * TOD_TICKS_PER_SECOND; ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick(); if (ticks) 127e0c: b8 01 00 00 00 mov $0x1,%eax return ticks; return 1; } 127e11: 5b pop %ebx 127e12: 5e pop %esi 127e13: c9 leave 127e14: c3 ret 127e15: 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) ) 127e18: 31 c0 xor %eax,%eax if (ticks) return ticks; return 1; } 127e1a: 5b pop %ebx 127e1b: 5e pop %esi 127e1c: c9 leave 127e1d: c3 ret 00112ea0 <_User_extensions_Remove_set>: #include void _User_extensions_Remove_set ( User_extensions_Control *the_extension ) { 112ea0: 55 push %ebp 112ea1: 89 e5 mov %esp,%ebp 112ea3: 53 push %ebx 112ea4: 83 ec 10 sub $0x10,%esp 112ea7: 8b 5d 08 mov 0x8(%ebp),%ebx _Chain_Extract( &the_extension->Node ); 112eaa: 53 push %ebx 112eab: e8 b4 47 00 00 call 117664 <_Chain_Extract> /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) 112eb0: 83 c4 10 add $0x10,%esp 112eb3: 8b 43 24 mov 0x24(%ebx),%eax 112eb6: 85 c0 test %eax,%eax 112eb8: 74 12 je 112ecc <_User_extensions_Remove_set+0x2c> _Chain_Extract( &the_extension->Switch.Node ); 112eba: 83 c3 08 add $0x8,%ebx 112ebd: 89 5d 08 mov %ebx,0x8(%ebp) } 112ec0: 8b 5d fc mov -0x4(%ebp),%ebx 112ec3: c9 leave /* * If a switch handler is present, remove it. */ if ( the_extension->Callouts.thread_switch != NULL ) _Chain_Extract( &the_extension->Switch.Node ); 112ec4: e9 9b 47 00 00 jmp 117664 <_Chain_Extract> 112ec9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } 112ecc: 8b 5d fc mov -0x4(%ebp),%ebx 112ecf: c9 leave 112ed0: c3 ret 0010e13c <_User_extensions_Thread_exitted>: void _User_extensions_Thread_exitted ( Thread_Control *executing ) { 10e13c: 55 push %ebp 10e13d: 89 e5 mov %esp,%ebp 10e13f: 56 push %esi 10e140: 53 push %ebx 10e141: 8b 75 08 mov 0x8(%ebp),%esi Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 10e144: 8b 1d b4 55 12 00 mov 0x1255b4,%ebx 10e14a: 81 fb ac 55 12 00 cmp $0x1255ac,%ebx 10e150: 74 1d je 10e16f <_User_extensions_Thread_exitted+0x33> 10e152: 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 ) 10e154: 8b 43 2c mov 0x2c(%ebx),%eax 10e157: 85 c0 test %eax,%eax 10e159: 74 09 je 10e164 <_User_extensions_Thread_exitted+0x28> (*the_extension->Callouts.thread_exitted)( executing ); 10e15b: 83 ec 0c sub $0xc,%esp 10e15e: 56 push %esi 10e15f: ff d0 call *%eax 10e161: 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 ) { 10e164: 8b 5b 04 mov 0x4(%ebx),%ebx ) { Chain_Node *the_node; User_extensions_Control *the_extension; for ( the_node = _User_extensions_List.last ; 10e167: 81 fb ac 55 12 00 cmp $0x1255ac,%ebx 10e16d: 75 e5 jne 10e154 <_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 ); } } 10e16f: 8d 65 f8 lea -0x8(%ebp),%esp 10e172: 5b pop %ebx 10e173: 5e pop %esi 10e174: c9 leave 10e175: c3 ret 0010fc88 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 10fc88: 55 push %ebp 10fc89: 89 e5 mov %esp,%ebp 10fc8b: 57 push %edi 10fc8c: 56 push %esi 10fc8d: 53 push %ebx 10fc8e: 83 ec 1c sub $0x1c,%esp 10fc91: 8b 75 08 mov 0x8(%ebp),%esi 10fc94: 8b 4d 0c mov 0xc(%ebp),%ecx 10fc97: 8b 5d 10 mov 0x10(%ebp),%ebx ISR_Level level; _ISR_Disable( level ); 10fc9a: 9c pushf 10fc9b: fa cli 10fc9c: 58 pop %eax */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 10fc9d: 8b 16 mov (%esi),%edx */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 10fc9f: 8d 7e 04 lea 0x4(%esi),%edi 10fca2: 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 ) ) { 10fca5: 39 fa cmp %edi,%edx 10fca7: 74 3d je 10fce6 <_Watchdog_Adjust+0x5e> switch ( direction ) { 10fca9: 85 c9 test %ecx,%ecx 10fcab: 75 43 jne 10fcf0 <_Watchdog_Adjust+0x68> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 10fcad: 85 db test %ebx,%ebx 10fcaf: 74 35 je 10fce6 <_Watchdog_Adjust+0x5e> if ( units < _Watchdog_First( header )->delta_interval ) { 10fcb1: 8b 7a 10 mov 0x10(%edx),%edi 10fcb4: 39 fb cmp %edi,%ebx 10fcb6: 73 0f jae 10fcc7 <_Watchdog_Adjust+0x3f> 10fcb8: eb 3e jmp 10fcf8 <_Watchdog_Adjust+0x70> <== NOT EXECUTED 10fcba: 66 90 xchg %ax,%ax <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 10fcbc: 29 fb sub %edi,%ebx 10fcbe: 74 26 je 10fce6 <_Watchdog_Adjust+0x5e> if ( units < _Watchdog_First( header )->delta_interval ) { 10fcc0: 8b 7a 10 mov 0x10(%edx),%edi 10fcc3: 39 df cmp %ebx,%edi 10fcc5: 77 31 ja 10fcf8 <_Watchdog_Adjust+0x70> _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 10fcc7: c7 42 10 01 00 00 00 movl $0x1,0x10(%edx) _ISR_Enable( level ); 10fcce: 50 push %eax 10fccf: 9d popf _Watchdog_Tickle( header ); 10fcd0: 83 ec 0c sub $0xc,%esp 10fcd3: 56 push %esi 10fcd4: e8 cb 01 00 00 call 10fea4 <_Watchdog_Tickle> _ISR_Disable( level ); 10fcd9: 9c pushf 10fcda: fa cli 10fcdb: 58 pop %eax */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 10fcdc: 8b 16 mov (%esi),%edx if ( _Chain_Is_empty( header ) ) 10fcde: 83 c4 10 add $0x10,%esp 10fce1: 39 55 e4 cmp %edx,-0x1c(%ebp) 10fce4: 75 d6 jne 10fcbc <_Watchdog_Adjust+0x34> } break; } } _ISR_Enable( level ); 10fce6: 50 push %eax 10fce7: 9d popf } 10fce8: 8d 65 f4 lea -0xc(%ebp),%esp 10fceb: 5b pop %ebx 10fcec: 5e pop %esi 10fced: 5f pop %edi 10fcee: c9 leave 10fcef: c3 ret * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { 10fcf0: 49 dec %ecx 10fcf1: 75 f3 jne 10fce6 <_Watchdog_Adjust+0x5e> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 10fcf3: 01 5a 10 add %ebx,0x10(%edx) break; 10fcf6: eb ee jmp 10fce6 <_Watchdog_Adjust+0x5e> case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; 10fcf8: 29 df sub %ebx,%edi 10fcfa: 89 7a 10 mov %edi,0x10(%edx) break; 10fcfd: eb e7 jmp 10fce6 <_Watchdog_Adjust+0x5e> 0011c614 <_Watchdog_Adjust_to_chain>: Chain_Control *header, Watchdog_Interval units_arg, Chain_Control *to_fire ) { 11c614: 55 push %ebp 11c615: 89 e5 mov %esp,%ebp 11c617: 57 push %edi 11c618: 56 push %esi 11c619: 53 push %ebx 11c61a: 83 ec 0c sub $0xc,%esp 11c61d: 8b 75 08 mov 0x8(%ebp),%esi 11c620: 8b 55 0c mov 0xc(%ebp),%edx 11c623: 8b 5d 10 mov 0x10(%ebp),%ebx Watchdog_Interval units = units_arg; ISR_Level level; Watchdog_Control *first; if ( units <= 0 ) { 11c626: 85 d2 test %edx,%edx 11c628: 74 63 je 11c68d <_Watchdog_Adjust_to_chain+0x79> return; } _ISR_Disable( level ); 11c62a: 9c pushf 11c62b: fa cli 11c62c: 8f 45 ec popl -0x14(%ebp) 11c62f: 8b 06 mov (%esi),%eax */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 11c631: 8d 4e 04 lea 0x4(%esi),%ecx 11c634: 89 4d f0 mov %ecx,-0x10(%ebp) 11c637: 8d 7b 04 lea 0x4(%ebx),%edi 11c63a: 89 55 e8 mov %edx,-0x18(%ebp) 11c63d: 8d 76 00 lea 0x0(%esi),%esi while ( 1 ) { if ( units <= 0 ) { break; } if ( _Chain_Is_empty( header ) ) { 11c640: 39 45 f0 cmp %eax,-0x10(%ebp) 11c643: 74 44 je 11c689 <_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 ) { 11c645: 8b 50 10 mov 0x10(%eax),%edx 11c648: 3b 55 e8 cmp -0x18(%ebp),%edx 11c64b: 77 57 ja 11c6a4 <_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; 11c64d: 29 55 e8 sub %edx,-0x18(%ebp) first->delta_interval = 0; 11c650: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) 11c657: 90 nop ) { Chain_Node *next; Chain_Node *previous; next = the_node->next; 11c658: 8b 08 mov (%eax),%ecx previous = the_node->previous; 11c65a: 8b 50 04 mov 0x4(%eax),%edx next->previous = previous; 11c65d: 89 51 04 mov %edx,0x4(%ecx) previous->next = next; 11c660: 89 0a mov %ecx,(%edx) Chain_Node *the_node ) { Chain_Node *old_last_node; the_node->next = _Chain_Tail(the_chain); 11c662: 89 38 mov %edi,(%eax) old_last_node = the_chain->last; 11c664: 8b 53 08 mov 0x8(%ebx),%edx the_chain->last = the_node; 11c667: 89 43 08 mov %eax,0x8(%ebx) old_last_node->next = the_node; 11c66a: 89 02 mov %eax,(%edx) the_node->previous = old_last_node; 11c66c: 89 50 04 mov %edx,0x4(%eax) while ( 1 ) { _Chain_Extract_unprotected( &first->Node ); _Chain_Append_unprotected( to_fire, &first->Node ); _ISR_Flash( level ); 11c66f: ff 75 ec pushl -0x14(%ebp) 11c672: 9d popf 11c673: fa cli */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 11c674: 8b 06 mov (%esi),%eax if ( _Chain_Is_empty( header ) ) 11c676: 39 45 f0 cmp %eax,-0x10(%ebp) 11c679: 74 1d je 11c698 <_Watchdog_Adjust_to_chain+0x84> break; first = _Watchdog_First( header ); if ( first->delta_interval != 0 ) 11c67b: 8b 50 10 mov 0x10(%eax),%edx 11c67e: 85 d2 test %edx,%edx 11c680: 74 d6 je 11c658 <_Watchdog_Adjust_to_chain+0x44> } _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) { 11c682: 8b 4d e8 mov -0x18(%ebp),%ecx 11c685: 85 c9 test %ecx,%ecx 11c687: 75 b7 jne 11c640 <_Watchdog_Adjust_to_chain+0x2c> if ( first->delta_interval != 0 ) break; } } _ISR_Enable( level ); 11c689: ff 75 ec pushl -0x14(%ebp) 11c68c: 9d popf } 11c68d: 83 c4 0c add $0xc,%esp 11c690: 5b pop %ebx 11c691: 5e pop %esi 11c692: 5f pop %edi 11c693: c9 leave 11c694: c3 ret 11c695: 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; 11c698: 8b 45 f0 mov -0x10(%ebp),%eax } _ISR_Disable( level ); while ( 1 ) { if ( units <= 0 ) { 11c69b: 8b 4d e8 mov -0x18(%ebp),%ecx 11c69e: 85 c9 test %ecx,%ecx 11c6a0: 75 9e jne 11c640 <_Watchdog_Adjust_to_chain+0x2c> 11c6a2: eb e5 jmp 11c689 <_Watchdog_Adjust_to_chain+0x75> /* * If it is longer than "units" until the first element on the chain * fires, then bump it and quit. */ if ( units < first->delta_interval ) { first->delta_interval -= units; 11c6a4: 2b 55 e8 sub -0x18(%ebp),%edx 11c6a7: 89 50 10 mov %edx,0x10(%eax) break; 11c6aa: eb dd jmp 11c689 <_Watchdog_Adjust_to_chain+0x75> 0010e2d0 <_Watchdog_Insert>: void _Watchdog_Insert( Chain_Control *header, Watchdog_Control *the_watchdog ) { 10e2d0: 55 push %ebp 10e2d1: 89 e5 mov %esp,%ebp 10e2d3: 57 push %edi 10e2d4: 56 push %esi 10e2d5: 53 push %ebx 10e2d6: 83 ec 04 sub $0x4,%esp 10e2d9: 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; 10e2dc: 8b 3d f4 53 12 00 mov 0x1253f4,%edi _ISR_Disable( level ); 10e2e2: 9c pushf 10e2e3: fa cli 10e2e4: 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 ) { 10e2e7: 8b 43 08 mov 0x8(%ebx),%eax 10e2ea: 85 c0 test %eax,%eax 10e2ec: 0f 85 9e 00 00 00 jne 10e390 <_Watchdog_Insert+0xc0> _ISR_Enable( level ); return; } the_watchdog->state = WATCHDOG_BEING_INSERTED; 10e2f2: c7 43 08 01 00 00 00 movl $0x1,0x8(%ebx) _Watchdog_Sync_count++; 10e2f9: a1 c0 54 12 00 mov 0x1254c0,%eax 10e2fe: 40 inc %eax 10e2ff: a3 c0 54 12 00 mov %eax,0x1254c0 restart: delta_interval = the_watchdog->initial; 10e304: 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 ; 10e307: 8b 4d 08 mov 0x8(%ebp),%ecx 10e30a: 8b 11 mov (%ecx),%edx ; after = _Watchdog_Next( after ) ) { if ( delta_interval == 0 || !_Watchdog_Next( after ) ) 10e30c: 85 c0 test %eax,%eax 10e30e: 74 5d je 10e36d <_Watchdog_Insert+0x9d> 10e310: 8b 32 mov (%edx),%esi 10e312: 85 f6 test %esi,%esi 10e314: 74 57 je 10e36d <_Watchdog_Insert+0x9d> break; if ( delta_interval < after->delta_interval ) { 10e316: 8b 4a 10 mov 0x10(%edx),%ecx 10e319: 39 c8 cmp %ecx,%eax 10e31b: 73 22 jae 10e33f <_Watchdog_Insert+0x6f> 10e31d: eb 49 jmp 10e368 <_Watchdog_Insert+0x98> 10e31f: 90 nop <== NOT EXECUTED if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { goto exit_insert; } if ( _Watchdog_Sync_level > insert_isr_nest_level ) { 10e320: 8b 35 14 54 12 00 mov 0x125414,%esi 10e326: 39 f7 cmp %esi,%edi 10e328: 72 72 jb 10e39c <_Watchdog_Insert+0xcc> if ( delta_interval < after->delta_interval ) { after->delta_interval -= delta_interval; break; } delta_interval -= after->delta_interval; 10e32a: 29 c8 sub %ecx,%eax RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next( Watchdog_Control *the_watchdog ) { return ( (Watchdog_Control *) the_watchdog->Node.next ); 10e32c: 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 ) ) 10e32e: 85 c0 test %eax,%eax 10e330: 74 3b je 10e36d <_Watchdog_Insert+0x9d> 10e332: 8b 0a mov (%edx),%ecx 10e334: 85 c9 test %ecx,%ecx 10e336: 74 35 je 10e36d <_Watchdog_Insert+0x9d> break; if ( delta_interval < after->delta_interval ) { 10e338: 8b 4a 10 mov 0x10(%edx),%ecx 10e33b: 39 c1 cmp %eax,%ecx 10e33d: 77 29 ja 10e368 <_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 ); 10e33f: ff 75 f0 pushl -0x10(%ebp) 10e342: 9d popf 10e343: fa cli if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) { 10e344: 83 7b 08 01 cmpl $0x1,0x8(%ebx) 10e348: 74 d6 je 10e320 <_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; 10e34a: 89 3d 14 54 12 00 mov %edi,0x125414 _Watchdog_Sync_count--; 10e350: a1 c0 54 12 00 mov 0x1254c0,%eax 10e355: 48 dec %eax 10e356: a3 c0 54 12 00 mov %eax,0x1254c0 _ISR_Enable( level ); 10e35b: ff 75 f0 pushl -0x10(%ebp) 10e35e: 9d popf } 10e35f: 58 pop %eax 10e360: 5b pop %ebx 10e361: 5e pop %esi 10e362: 5f pop %edi 10e363: c9 leave 10e364: c3 ret 10e365: 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; 10e368: 29 c1 sub %eax,%ecx 10e36a: 89 4a 10 mov %ecx,0x10(%edx) RTEMS_INLINE_ROUTINE void _Watchdog_Activate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_ACTIVE; 10e36d: c7 43 08 02 00 00 00 movl $0x2,0x8(%ebx) } } _Watchdog_Activate( the_watchdog ); the_watchdog->delta_interval = delta_interval; 10e374: 89 43 10 mov %eax,0x10(%ebx) _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node ); 10e377: 8b 42 04 mov 0x4(%edx),%eax Chain_Node *the_node ) { Chain_Node *before_node; the_node->previous = after_node; 10e37a: 89 43 04 mov %eax,0x4(%ebx) before_node = after_node->next; 10e37d: 8b 10 mov (%eax),%edx after_node->next = the_node; 10e37f: 89 18 mov %ebx,(%eax) the_node->next = before_node; 10e381: 89 13 mov %edx,(%ebx) before_node->previous = the_node; 10e383: 89 5a 04 mov %ebx,0x4(%edx) the_watchdog->start_time = _Watchdog_Ticks_since_boot; 10e386: a1 c4 54 12 00 mov 0x1254c4,%eax 10e38b: 89 43 14 mov %eax,0x14(%ebx) 10e38e: eb ba jmp 10e34a <_Watchdog_Insert+0x7a> * Check to see if the watchdog has just been inserted by a * higher priority interrupt. If so, abandon this insert. */ if ( the_watchdog->state != WATCHDOG_INACTIVE ) { _ISR_Enable( level ); 10e390: ff 75 f0 pushl -0x10(%ebp) 10e393: 9d popf exit_insert: _Watchdog_Sync_level = insert_isr_nest_level; _Watchdog_Sync_count--; _ISR_Enable( level ); } 10e394: 58 pop %eax 10e395: 5b pop %ebx 10e396: 5e pop %esi 10e397: 5f pop %edi 10e398: c9 leave 10e399: c3 ret 10e39a: 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; 10e39c: 89 3d 14 54 12 00 mov %edi,0x125414 goto restart; 10e3a2: e9 5d ff ff ff jmp 10e304 <_Watchdog_Insert+0x34> 0010e408 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) { 10e408: 55 push %ebp 10e409: 89 e5 mov %esp,%ebp 10e40b: 56 push %esi 10e40c: 53 push %ebx 10e40d: 8b 55 08 mov 0x8(%ebp),%edx ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); 10e410: 9c pushf 10e411: fa cli 10e412: 59 pop %ecx previous_state = the_watchdog->state; 10e413: 8b 42 08 mov 0x8(%edx),%eax switch ( previous_state ) { 10e416: 83 f8 01 cmp $0x1,%eax 10e419: 74 4d je 10e468 <_Watchdog_Remove+0x60> 10e41b: 73 0f jae 10e42c <_Watchdog_Remove+0x24> _Watchdog_Sync_level = _ISR_Nest_level; _Chain_Extract_unprotected( &the_watchdog->Node ); break; } the_watchdog->stop_time = _Watchdog_Ticks_since_boot; 10e41d: 8b 1d c4 54 12 00 mov 0x1254c4,%ebx 10e423: 89 5a 18 mov %ebx,0x18(%edx) _ISR_Enable( level ); 10e426: 51 push %ecx 10e427: 9d popf return( previous_state ); } 10e428: 5b pop %ebx 10e429: 5e pop %esi 10e42a: c9 leave 10e42b: c3 ret Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level ); previous_state = the_watchdog->state; switch ( previous_state ) { 10e42c: 83 f8 03 cmp $0x3,%eax 10e42f: 77 ec ja 10e41d <_Watchdog_Remove+0x15> break; case WATCHDOG_ACTIVE: case WATCHDOG_REMOVE_IT: the_watchdog->state = WATCHDOG_INACTIVE; 10e431: 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 ); 10e438: 8b 1a mov (%edx),%ebx next_watchdog = _Watchdog_Next( the_watchdog ); if ( _Watchdog_Next(next_watchdog) ) 10e43a: 8b 33 mov (%ebx),%esi 10e43c: 85 f6 test %esi,%esi 10e43e: 74 06 je 10e446 <_Watchdog_Remove+0x3e> next_watchdog->delta_interval += the_watchdog->delta_interval; 10e440: 8b 72 10 mov 0x10(%edx),%esi 10e443: 01 73 10 add %esi,0x10(%ebx) if ( _Watchdog_Sync_count ) 10e446: 8b 35 c0 54 12 00 mov 0x1254c0,%esi 10e44c: 85 f6 test %esi,%esi 10e44e: 74 0c je 10e45c <_Watchdog_Remove+0x54> _Watchdog_Sync_level = _ISR_Nest_level; 10e450: 8b 35 f4 53 12 00 mov 0x1253f4,%esi 10e456: 89 35 14 54 12 00 mov %esi,0x125414 { Chain_Node *next; Chain_Node *previous; next = the_node->next; previous = the_node->previous; 10e45c: 8b 72 04 mov 0x4(%edx),%esi next->previous = previous; 10e45f: 89 73 04 mov %esi,0x4(%ebx) previous->next = next; 10e462: 89 1e mov %ebx,(%esi) 10e464: eb b7 jmp 10e41d <_Watchdog_Remove+0x15> 10e466: 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; 10e468: c7 42 08 00 00 00 00 movl $0x0,0x8(%edx) break; 10e46f: eb ac jmp 10e41d <_Watchdog_Remove+0x15> 0010f89c <_Watchdog_Report>: void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { 10f89c: 55 push %ebp 10f89d: 89 e5 mov %esp,%ebp 10f89f: 57 push %edi 10f8a0: 56 push %esi 10f8a1: 53 push %ebx 10f8a2: 83 ec 2c sub $0x2c,%esp 10f8a5: 8b 55 08 mov 0x8(%ebp),%edx 10f8a8: 8b 45 0c mov 0xc(%ebp),%eax printk( 10f8ab: 8b 78 24 mov 0x24(%eax),%edi 10f8ae: 8b 70 20 mov 0x20(%eax),%esi 10f8b1: 8b 58 1c mov 0x1c(%eax),%ebx 10f8b4: 8b 48 0c mov 0xc(%eax),%ecx 10f8b7: 89 4d d4 mov %ecx,-0x2c(%ebp) 10f8ba: 8b 48 10 mov 0x10(%eax),%ecx 10f8bd: 89 4d e0 mov %ecx,-0x20(%ebp) 10f8c0: 85 d2 test %edx,%edx 10f8c2: 74 2c je 10f8f0 <_Watchdog_Report+0x54> 10f8c4: b9 63 16 12 00 mov $0x121663,%ecx 10f8c9: 83 ec 0c sub $0xc,%esp 10f8cc: 57 push %edi 10f8cd: 56 push %esi 10f8ce: 53 push %ebx 10f8cf: 50 push %eax 10f8d0: ff 75 d4 pushl -0x2c(%ebp) 10f8d3: ff 75 e0 pushl -0x20(%ebp) 10f8d6: 51 push %ecx 10f8d7: 52 push %edx 10f8d8: 68 e6 1f 12 00 push $0x121fe6 10f8dd: e8 f2 9f ff ff call 1098d4 10f8e2: 83 c4 30 add $0x30,%esp watch, watch->routine, watch->id, watch->user_data ); } 10f8e5: 8d 65 f4 lea -0xc(%ebp),%esp 10f8e8: 5b pop %ebx 10f8e9: 5e pop %esi 10f8ea: 5f pop %edi 10f8eb: c9 leave 10f8ec: c3 ret 10f8ed: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void _Watchdog_Report( const char *name, Watchdog_Control *watch ) { printk( 10f8f0: b9 45 1e 12 00 mov $0x121e45,%ecx 10f8f5: 89 ca mov %ecx,%edx 10f8f7: eb d0 jmp 10f8c9 <_Watchdog_Report+0x2d> 0010e540 <_Workspace_Handler_initialization>: /* * _Workspace_Handler_initialization */ void _Workspace_Handler_initialization(void) { 10e540: 55 push %ebp 10e541: 89 e5 mov %esp,%ebp 10e543: 57 push %edi 10e544: 53 push %ebx uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start; 10e545: 8b 1d 20 12 12 00 mov 0x121220,%ebx uintptr_t size = Configuration.work_space_size; 10e54b: 8b 15 24 12 12 00 mov 0x121224,%edx if ( Configuration.do_zero_of_workspace ) 10e551: 80 3d 48 12 12 00 00 cmpb $0x0,0x121248 10e558: 75 1e jne 10e578 <_Workspace_Handler_initialization+0x38> memset( starting_address, 0, size ); memory_available = _Heap_Initialize( 10e55a: 6a 04 push $0x4 10e55c: 52 push %edx 10e55d: 53 push %ebx 10e55e: 68 80 53 12 00 push $0x125380 10e563: e8 dc dd ff ff call 10c344 <_Heap_Initialize> starting_address, size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) 10e568: 83 c4 10 add $0x10,%esp 10e56b: 85 c0 test %eax,%eax 10e56d: 74 13 je 10e582 <_Workspace_Handler_initialization+0x42> _Internal_error_Occurred( INTERNAL_ERROR_CORE, true, INTERNAL_ERROR_TOO_LITTLE_WORKSPACE ); } 10e56f: 8d 65 f8 lea -0x8(%ebp),%esp 10e572: 5b pop %ebx 10e573: 5f pop %edi 10e574: c9 leave 10e575: c3 ret 10e576: 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 ); 10e578: 31 c0 xor %eax,%eax 10e57a: 89 df mov %ebx,%edi 10e57c: 89 d1 mov %edx,%ecx 10e57e: f3 aa rep stos %al,%es:(%edi) 10e580: eb d8 jmp 10e55a <_Workspace_Handler_initialization+0x1a> size, CPU_HEAP_ALIGNMENT ); if ( memory_available == 0 ) _Internal_error_Occurred( 10e582: 52 push %edx 10e583: 6a 03 push $0x3 10e585: 6a 01 push $0x1 10e587: 6a 00 push $0x0 10e589: e8 da e0 ff ff call 10c668 <_Internal_error_Occurred> 001244c8 <__kill>: #endif int __kill( pid_t pid, int sig ) { 1244c8: 55 push %ebp <== NOT EXECUTED 1244c9: 89 e5 mov %esp,%ebp <== NOT EXECUTED return 0; } 1244cb: 31 c0 xor %eax,%eax <== NOT EXECUTED 1244cd: c9 leave <== NOT EXECUTED 1244ce: c3 ret <== NOT EXECUTED 0011d8a0 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 11d8a0: 55 push %ebp 11d8a1: 89 e5 mov %esp,%ebp 11d8a3: 83 ec 08 sub $0x8,%esp 11d8a6: e8 b2 06 00 00 call 11df5d <_fini> * We need to do the exit processing on the global reentrancy structure. * This has already been done on the per task reentrancy structure * associated with this task. */ libc_wrapup(); 11d8ab: e8 88 ff ff ff call 11d838 rtems_shutdown_executive(status); 11d8b0: 83 ec 0c sub $0xc,%esp 11d8b3: ff 75 08 pushl 0x8(%ebp) 11d8b6: e8 fd 00 00 00 call 11d9b8 11d8bb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11d8be: eb fe jmp 11d8be <_exit+0x1e> <== NOT EXECUTED 0013c334 <_fcntl_r>: struct _reent *ptr __attribute__((unused)), int fd, int cmd, int arg ) { 13c334: 55 push %ebp <== NOT EXECUTED 13c335: 89 e5 mov %esp,%ebp <== NOT EXECUTED 13c337: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 13c33a: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 13c33d: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED return fcntl( fd, cmd, arg ); 13c340: 8b 4d 14 mov 0x14(%ebp),%ecx <== NOT EXECUTED 13c343: 89 4d 10 mov %ecx,0x10(%ebp) <== NOT EXECUTED 13c346: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 13c349: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 13c34c: c9 leave <== NOT EXECUTED int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 13c34d: e9 4a fe ff ff jmp 13c19c <== NOT EXECUTED 00124498 <_getpid_r>: #include pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { 124498: 55 push %ebp <== NOT EXECUTED 124499: 89 e5 mov %esp,%ebp <== NOT EXECUTED return getpid(); } 12449b: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED 1244a0: c9 leave <== NOT EXECUTED 1244a1: c3 ret <== NOT EXECUTED 0010f95c <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { 10f95c: 55 push %ebp <== NOT EXECUTED 10f95d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10f95f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED return gettimeofday( tp, tzp ); } 10f962: c9 leave <== NOT EXECUTED int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 10f963: e9 90 ff ff ff jmp 10f8f8 <== NOT EXECUTED 001244c0 <_kill_r>: #if defined(RTEMS_NEWLIB) #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { 1244c0: 55 push %ebp <== NOT EXECUTED 1244c1: 89 e5 mov %esp,%ebp <== NOT EXECUTED return 0; } 1244c3: 31 c0 xor %eax,%eax <== NOT EXECUTED 1244c5: c9 leave <== NOT EXECUTED 1244c6: c3 ret <== NOT EXECUTED 0012c188 <_link_r>: int _link_r( struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { 12c188: 55 push %ebp <== NOT EXECUTED 12c189: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c18b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c18e: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED return link( existing, new ); 12c191: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 12c194: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 12c197: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 12c19a: c9 leave <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 12c19b: e9 e8 fd ff ff jmp 12bf88 <== NOT EXECUTED 0012c3a4 <_lstat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { 12c3a4: 55 push %ebp <== NOT EXECUTED 12c3a5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c3a7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c3aa: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED return _STAT_NAME( path, buf ); 12c3ad: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 12c3b0: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 12c3b3: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 12c3b6: c9 leave <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 12c3b7: e9 18 ff ff ff jmp 12c2d4 <== NOT EXECUTED 0011d980 <_realloc_r>: void *_realloc_r( struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { 11d980: 55 push %ebp <== NOT EXECUTED 11d981: 89 e5 mov %esp,%ebp <== NOT EXECUTED 11d983: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11d986: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED return realloc( ptr, size ); 11d989: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 11d98c: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 11d98f: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 11d992: c9 leave <== NOT EXECUTED struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 11d993: e9 48 00 00 00 jmp 11d9e0 <== NOT EXECUTED 0015739c <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 15739c: 55 push %ebp <== NOT EXECUTED 15739d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 15739f: 57 push %edi <== NOT EXECUTED 1573a0: 56 push %esi <== NOT EXECUTED 1573a1: 53 push %ebx <== NOT EXECUTED 1573a2: 83 ec 68 sub $0x68,%esp <== NOT EXECUTED 1573a5: 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 ); 1573a8: 52 push %edx <== NOT EXECUTED 1573a9: 89 55 9c mov %edx,-0x64(%ebp) <== NOT EXECUTED 1573ac: e8 d7 58 fb ff call 10cc88 <== NOT EXECUTED 1573b1: 89 c3 mov %eax,%ebx <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 1573b3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1573b6: 85 c0 test %eax,%eax <== NOT EXECUTED 1573b8: 8b 55 9c mov -0x64(%ebp),%edx <== NOT EXECUTED 1573bb: 0f 85 fb 02 00 00 jne 1576bc <_rename_r+0x320> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 1573c1: 8a 02 mov (%edx),%al <== NOT EXECUTED 1573c3: 3c 2f cmp $0x2f,%al <== NOT EXECUTED 1573c5: 74 0c je 1573d3 <_rename_r+0x37> <== NOT EXECUTED 1573c7: 3c 5c cmp $0x5c,%al <== NOT EXECUTED 1573c9: 74 08 je 1573d3 <_rename_r+0x37> <== NOT EXECUTED 1573cb: 84 c0 test %al,%al <== NOT EXECUTED 1573cd: 0f 85 75 01 00 00 jne 157548 <_rename_r+0x1ac> <== NOT EXECUTED 1573d3: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED 1573d6: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED 1573d9: 8b 35 24 83 16 00 mov 0x168324,%esi <== NOT EXECUTED 1573df: 83 c6 18 add $0x18,%esi <== NOT EXECUTED 1573e2: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 1573e7: 89 c7 mov %eax,%edi <== NOT EXECUTED 1573e9: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 1573eb: 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; 1573ef: 8d 7d d0 lea -0x30(%ebp),%edi <== NOT EXECUTED 1573f2: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 1573f7: 8b 75 a4 mov -0x5c(%ebp),%esi <== NOT EXECUTED 1573fa: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED name = old + old_parent_pathlen; 1573fc: 8d 1c 1a lea (%edx,%ebx,1),%ebx <== NOT EXECUTED 1573ff: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 157402: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 157407: 89 f1 mov %esi,%ecx <== NOT EXECUTED 157409: 89 df mov %ebx,%edi <== NOT EXECUTED 15740b: 31 c0 xor %eax,%eax <== NOT EXECUTED 15740d: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 15740f: f7 d1 not %ecx <== NOT EXECUTED 157411: 49 dec %ecx <== NOT EXECUTED 157412: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 157415: 51 push %ecx <== NOT EXECUTED 157416: 53 push %ebx <== NOT EXECUTED 157417: e8 30 58 fb ff call 10cc4c <== NOT EXECUTED 15741c: 01 c3 add %eax,%ebx <== NOT EXECUTED 15741e: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 157421: 89 f1 mov %esi,%ecx <== NOT EXECUTED 157423: 89 df mov %ebx,%edi <== NOT EXECUTED 157425: 31 c0 xor %eax,%eax <== NOT EXECUTED 157427: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 157429: 89 ce mov %ecx,%esi <== NOT EXECUTED 15742b: f7 d6 not %esi <== NOT EXECUTED 15742d: 4e dec %esi <== NOT EXECUTED 15742e: c7 04 24 00 00 00 00 movl $0x0,(%esp) <== NOT EXECUTED 157435: 8d 45 d0 lea -0x30(%ebp),%eax <== NOT EXECUTED 157438: 50 push %eax <== NOT EXECUTED 157439: 6a 00 push $0x0 <== NOT EXECUTED 15743b: 56 push %esi <== NOT EXECUTED 15743c: 53 push %ebx <== NOT EXECUTED 15743d: e8 96 58 fb ff call 10ccd8 <== NOT EXECUTED 157442: 89 c3 mov %eax,%ebx <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 157444: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 157447: 85 c0 test %eax,%eax <== NOT EXECUTED 157449: 0f 85 89 01 00 00 jne 1575d8 <_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 ); 15744f: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 157452: 8a 02 mov (%edx),%al <== NOT EXECUTED 157454: 3c 2f cmp $0x2f,%al <== NOT EXECUTED 157456: 74 24 je 15747c <_rename_r+0xe0> <== NOT EXECUTED 157458: 3c 5c cmp $0x5c,%al <== NOT EXECUTED 15745a: 74 20 je 15747c <_rename_r+0xe0> <== NOT EXECUTED 15745c: 84 c0 test %al,%al <== NOT EXECUTED 15745e: 74 1c je 15747c <_rename_r+0xe0> <== NOT EXECUTED 157460: 8d 5d a8 lea -0x58(%ebp),%ebx <== NOT EXECUTED 157463: 8b 35 24 83 16 00 mov 0x168324,%esi <== NOT EXECUTED 157469: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 15746c: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 157471: 89 df mov %ebx,%edi <== NOT EXECUTED 157473: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 157475: 31 d2 xor %edx,%edx <== NOT EXECUTED 157477: eb 1d jmp 157496 <_rename_r+0xfa> <== NOT EXECUTED 157479: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 15747c: 8d 5d a8 lea -0x58(%ebp),%ebx <== NOT EXECUTED 15747f: 8b 35 24 83 16 00 mov 0x168324,%esi <== NOT EXECUTED 157485: 83 c6 18 add $0x18,%esi <== NOT EXECUTED 157488: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 15748d: 89 df mov %ebx,%edi <== NOT EXECUTED 15748f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 157491: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 157496: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 157499: 8b 40 04 mov 0x4(%eax),%eax <== NOT EXECUTED 15749c: 85 c0 test %eax,%eax <== NOT EXECUTED 15749e: 0f 84 c8 01 00 00 je 15766c <_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 ); 1574a4: 51 push %ecx <== NOT EXECUTED 1574a5: 8d 4d e4 lea -0x1c(%ebp),%ecx <== NOT EXECUTED 1574a8: 51 push %ecx <== NOT EXECUTED 1574a9: 53 push %ebx <== NOT EXECUTED 1574aa: 03 55 10 add 0x10(%ebp),%edx <== NOT EXECUTED 1574ad: 52 push %edx <== NOT EXECUTED 1574ae: ff d0 call *%eax <== NOT EXECUTED 1574b0: 89 c6 mov %eax,%esi <== NOT EXECUTED if ( result != 0 ) { 1574b2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1574b5: 85 c0 test %eax,%eax <== NOT EXECUTED 1574b7: 0f 85 4b 01 00 00 jne 157608 <_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 ) { 1574bd: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 1574c0: 3b 45 b8 cmp -0x48(%ebp),%eax <== NOT EXECUTED 1574c3: 0f 85 a3 00 00 00 jne 15756c <_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 ) { 1574c9: 8b 55 b4 mov -0x4c(%ebp),%edx <== NOT EXECUTED 1574cc: 8b 42 40 mov 0x40(%edx),%eax <== NOT EXECUTED 1574cf: 85 c0 test %eax,%eax <== NOT EXECUTED 1574d1: 0f 84 15 02 00 00 je 1576ec <_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 ); 1574d7: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 1574da: 53 push %ebx <== NOT EXECUTED 1574db: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED 1574de: 51 push %ecx <== NOT EXECUTED 1574df: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 1574e2: ff d0 call *%eax <== NOT EXECUTED 1574e4: 89 c6 mov %eax,%esi <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 1574e6: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 1574e9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1574ec: 85 c0 test %eax,%eax <== NOT EXECUTED 1574ee: 74 10 je 157500 <_rename_r+0x164> <== NOT EXECUTED 1574f0: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1574f3: 85 c0 test %eax,%eax <== NOT EXECUTED 1574f5: 74 09 je 157500 <_rename_r+0x164> <== NOT EXECUTED 1574f7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1574fa: 53 push %ebx <== NOT EXECUTED 1574fb: ff d0 call *%eax <== NOT EXECUTED 1574fd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_old_parentloc ) 157500: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 157504: 75 26 jne 15752c <_rename_r+0x190> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); 157506: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 157509: 85 c0 test %eax,%eax <== NOT EXECUTED 15750b: 74 13 je 157520 <_rename_r+0x184> <== NOT EXECUTED 15750d: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 157510: 85 c0 test %eax,%eax <== NOT EXECUTED 157512: 74 0c je 157520 <_rename_r+0x184> <== NOT EXECUTED 157514: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157517: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 15751a: 52 push %edx <== NOT EXECUTED 15751b: ff d0 call *%eax <== NOT EXECUTED 15751d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return result; } 157520: 89 f0 mov %esi,%eax <== NOT EXECUTED 157522: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 157525: 5b pop %ebx <== NOT EXECUTED 157526: 5e pop %esi <== NOT EXECUTED 157527: 5f pop %edi <== NOT EXECUTED 157528: c9 leave <== NOT EXECUTED 157529: c3 ret <== NOT EXECUTED 15752a: 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 ); 15752c: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 15752f: 85 c0 test %eax,%eax <== NOT EXECUTED 157531: 74 d3 je 157506 <_rename_r+0x16a> <== NOT EXECUTED 157533: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 157536: 85 c0 test %eax,%eax <== NOT EXECUTED 157538: 74 cc je 157506 <_rename_r+0x16a> <== NOT EXECUTED 15753a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 15753d: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 157540: ff d0 call *%eax <== NOT EXECUTED 157542: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 157545: eb bf jmp 157506 <_rename_r+0x16a> <== NOT EXECUTED 157547: 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 ); 157548: 8d 4d bc lea -0x44(%ebp),%ecx <== NOT EXECUTED 15754b: 89 4d a4 mov %ecx,-0x5c(%ebp) <== NOT EXECUTED 15754e: 8b 35 24 83 16 00 mov 0x168324,%esi <== NOT EXECUTED 157554: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 157557: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 15755c: 8b 7d a4 mov -0x5c(%ebp),%edi <== NOT EXECUTED 15755f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 157561: c6 45 a3 00 movb $0x0,-0x5d(%ebp) <== NOT EXECUTED 157565: e9 85 fe ff ff jmp 1573ef <_rename_r+0x53> <== NOT EXECUTED 15756a: 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 ); 15756c: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 15756f: 85 c0 test %eax,%eax <== NOT EXECUTED 157571: 74 10 je 157583 <_rename_r+0x1e7> <== NOT EXECUTED 157573: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 157576: 85 c0 test %eax,%eax <== NOT EXECUTED 157578: 74 09 je 157583 <_rename_r+0x1e7> <== NOT EXECUTED 15757a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 15757d: 53 push %ebx <== NOT EXECUTED 15757e: ff d0 call *%eax <== NOT EXECUTED 157580: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_old_parentloc ) 157583: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 157587: 74 19 je 1575a2 <_rename_r+0x206> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 157589: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 15758c: 85 c0 test %eax,%eax <== NOT EXECUTED 15758e: 74 12 je 1575a2 <_rename_r+0x206> <== NOT EXECUTED 157590: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 157593: 85 c0 test %eax,%eax <== NOT EXECUTED 157595: 74 0b je 1575a2 <_rename_r+0x206> <== NOT EXECUTED 157597: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 15759a: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 15759d: ff d0 call *%eax <== NOT EXECUTED 15759f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 1575a2: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 1575a5: 85 c0 test %eax,%eax <== NOT EXECUTED 1575a7: 74 13 je 1575bc <_rename_r+0x220> <== NOT EXECUTED 1575a9: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1575ac: 85 c0 test %eax,%eax <== NOT EXECUTED 1575ae: 74 0c je 1575bc <_rename_r+0x220> <== NOT EXECUTED 1575b0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1575b3: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED 1575b6: 51 push %ecx <== NOT EXECUTED 1575b7: ff d0 call *%eax <== NOT EXECUTED 1575b9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 1575bc: e8 7b 9e fe ff call 14143c <__errno> <== NOT EXECUTED 1575c1: c7 00 12 00 00 00 movl $0x12,(%eax) <== NOT EXECUTED 1575c7: 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; } 1575cc: 89 f0 mov %esi,%eax <== NOT EXECUTED 1575ce: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1575d1: 5b pop %ebx <== NOT EXECUTED 1575d2: 5e pop %esi <== NOT EXECUTED 1575d3: 5f pop %edi <== NOT EXECUTED 1575d4: c9 leave <== NOT EXECUTED 1575d5: c3 ret <== NOT EXECUTED 1575d6: 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 ) 1575d8: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 1575dc: 74 19 je 1575f7 <_rename_r+0x25b> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 1575de: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 1575e1: 85 c0 test %eax,%eax <== NOT EXECUTED 1575e3: 74 12 je 1575f7 <_rename_r+0x25b> <== NOT EXECUTED 1575e5: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1575e8: 85 c0 test %eax,%eax <== NOT EXECUTED 1575ea: 74 0b je 1575f7 <_rename_r+0x25b> <== NOT EXECUTED 1575ec: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1575ef: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 1575f2: ff d0 call *%eax <== NOT EXECUTED 1575f4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 1575f7: e8 40 9e fe ff call 14143c <__errno> <== NOT EXECUTED 1575fc: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 1575fe: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 157603: e9 18 ff ff ff jmp 157520 <_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 ); 157608: 8b 45 b4 mov -0x4c(%ebp),%eax <== NOT EXECUTED 15760b: 85 c0 test %eax,%eax <== NOT EXECUTED 15760d: 74 10 je 15761f <_rename_r+0x283> <== NOT EXECUTED 15760f: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 157612: 85 c0 test %eax,%eax <== NOT EXECUTED 157614: 74 09 je 15761f <_rename_r+0x283> <== NOT EXECUTED 157616: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157619: 53 push %ebx <== NOT EXECUTED 15761a: ff d0 call *%eax <== NOT EXECUTED 15761c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_old_parentloc ) 15761f: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 157623: 74 19 je 15763e <_rename_r+0x2a2> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 157625: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 157628: 85 c0 test %eax,%eax <== NOT EXECUTED 15762a: 74 12 je 15763e <_rename_r+0x2a2> <== NOT EXECUTED 15762c: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 15762f: 85 c0 test %eax,%eax <== NOT EXECUTED 157631: 74 0b je 15763e <_rename_r+0x2a2> <== NOT EXECUTED 157633: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157636: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 157639: ff d0 call *%eax <== NOT EXECUTED 15763b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 15763e: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 157641: 85 c0 test %eax,%eax <== NOT EXECUTED 157643: 74 13 je 157658 <_rename_r+0x2bc> <== NOT EXECUTED 157645: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 157648: 85 c0 test %eax,%eax <== NOT EXECUTED 15764a: 74 0c je 157658 <_rename_r+0x2bc> <== NOT EXECUTED 15764c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 15764f: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 157652: 52 push %edx <== NOT EXECUTED 157653: ff d0 call *%eax <== NOT EXECUTED 157655: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 157658: e8 df 9d fe ff call 14143c <__errno> <== NOT EXECUTED 15765d: 89 30 mov %esi,(%eax) <== NOT EXECUTED 15765f: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 157664: e9 b7 fe ff ff jmp 157520 <_rename_r+0x184> <== NOT EXECUTED 157669: 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 ) 15766c: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 157670: 74 19 je 15768b <_rename_r+0x2ef> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 157672: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 157675: 85 c0 test %eax,%eax <== NOT EXECUTED 157677: 74 12 je 15768b <_rename_r+0x2ef> <== NOT EXECUTED 157679: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 15767c: 85 c0 test %eax,%eax <== NOT EXECUTED 15767e: 74 0b je 15768b <_rename_r+0x2ef> <== NOT EXECUTED 157680: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157683: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 157686: ff d0 call *%eax <== NOT EXECUTED 157688: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 15768b: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 15768e: 85 c0 test %eax,%eax <== NOT EXECUTED 157690: 74 13 je 1576a5 <_rename_r+0x309> <== NOT EXECUTED 157692: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 157695: 85 c0 test %eax,%eax <== NOT EXECUTED 157697: 74 0c je 1576a5 <_rename_r+0x309> <== NOT EXECUTED 157699: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 15769c: 8d 4d d0 lea -0x30(%ebp),%ecx <== NOT EXECUTED 15769f: 51 push %ecx <== NOT EXECUTED 1576a0: ff d0 call *%eax <== NOT EXECUTED 1576a2: 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 ); 1576a5: e8 92 9d fe ff call 14143c <__errno> <== NOT EXECUTED 1576aa: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 1576b0: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 1576b5: e9 66 fe ff ff jmp 157520 <_rename_r+0x184> <== NOT EXECUTED 1576ba: 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, 1576bc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1576bf: 6a 00 push $0x0 <== NOT EXECUTED 1576c1: 8d 45 bc lea -0x44(%ebp),%eax <== NOT EXECUTED 1576c4: 89 45 a4 mov %eax,-0x5c(%ebp) <== NOT EXECUTED 1576c7: 50 push %eax <== NOT EXECUTED 1576c8: 6a 02 push $0x2 <== NOT EXECUTED 1576ca: 53 push %ebx <== NOT EXECUTED 1576cb: 52 push %edx <== NOT EXECUTED 1576cc: 89 55 9c mov %edx,-0x64(%ebp) <== NOT EXECUTED 1576cf: e8 d8 56 fb ff call 10cdac <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 1576d4: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 1576d7: 85 c0 test %eax,%eax <== NOT EXECUTED 1576d9: 8b 55 9c mov -0x64(%ebp),%edx <== NOT EXECUTED 1576dc: 0f 85 1c ff ff ff jne 1575fe <_rename_r+0x262> <== NOT EXECUTED 1576e2: c6 45 a3 01 movb $0x1,-0x5d(%ebp) <== NOT EXECUTED 1576e6: e9 04 fd ff ff jmp 1573ef <_rename_r+0x53> <== NOT EXECUTED 1576eb: 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 ); 1576ec: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 1576ef: 85 c0 test %eax,%eax <== NOT EXECUTED 1576f1: 74 09 je 1576fc <_rename_r+0x360> <== NOT EXECUTED 1576f3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1576f6: 53 push %ebx <== NOT EXECUTED 1576f7: ff d0 call *%eax <== NOT EXECUTED 1576f9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_old_parentloc ) 1576fc: 80 7d a3 00 cmpb $0x0,-0x5d(%ebp) <== NOT EXECUTED 157700: 74 19 je 15771b <_rename_r+0x37f> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 157702: 8b 45 c8 mov -0x38(%ebp),%eax <== NOT EXECUTED 157705: 85 c0 test %eax,%eax <== NOT EXECUTED 157707: 74 12 je 15771b <_rename_r+0x37f> <== NOT EXECUTED 157709: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 15770c: 85 c0 test %eax,%eax <== NOT EXECUTED 15770e: 74 0b je 15771b <_rename_r+0x37f> <== NOT EXECUTED 157710: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157713: ff 75 a4 pushl -0x5c(%ebp) <== NOT EXECUTED 157716: ff d0 call *%eax <== NOT EXECUTED 157718: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 15771b: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 15771e: 85 c0 test %eax,%eax <== NOT EXECUTED 157720: 74 83 je 1576a5 <_rename_r+0x309> <== NOT EXECUTED 157722: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 157725: 85 c0 test %eax,%eax <== NOT EXECUTED 157727: 0f 84 78 ff ff ff je 1576a5 <_rename_r+0x309> <== NOT EXECUTED 15772d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 157730: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 157733: 52 push %edx <== NOT EXECUTED 157734: ff d0 call *%eax <== NOT EXECUTED 157736: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 157739: e9 67 ff ff ff jmp 1576a5 <_rename_r+0x309> <== NOT EXECUTED 0010e41c <_stat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { 10e41c: 55 push %ebp <== NOT EXECUTED 10e41d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10e41f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10e422: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED return _STAT_NAME( path, buf ); 10e425: 8b 55 10 mov 0x10(%ebp),%edx <== NOT EXECUTED 10e428: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 10e42b: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 10e42e: c9 leave <== NOT EXECUTED struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 10e42f: e9 18 ff ff ff jmp 10e34c <== NOT EXECUTED 00112364 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { 112364: 55 push %ebp <== NOT EXECUTED 112365: 89 e5 mov %esp,%ebp <== NOT EXECUTED 112367: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED return unlink( path ); 11236a: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 11236d: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 112370: c9 leave <== NOT EXECUTED int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 112371: e9 ae fd ff ff jmp 112124 <== NOT EXECUTED 0012ae10 : int access( const char *path, int amode ) { 12ae10: 55 push %ebp 12ae11: 89 e5 mov %esp,%ebp 12ae13: 53 push %ebx 12ae14: 83 ec 5c sub $0x5c,%esp 12ae17: 8b 5d 0c mov 0xc(%ebp),%ebx struct stat statbuf; if ( stat(path, &statbuf) ) 12ae1a: 8d 45 b0 lea -0x50(%ebp),%eax 12ae1d: 50 push %eax 12ae1e: ff 75 08 pushl 0x8(%ebp) 12ae21: e8 26 35 fe ff call 10e34c 12ae26: 83 c4 10 add $0x10,%esp 12ae29: 85 c0 test %eax,%eax 12ae2b: 75 1f jne 12ae4c return -1; if ( amode & R_OK ) { 12ae2d: f6 c3 04 test $0x4,%bl 12ae30: 75 12 jne 12ae44 if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { 12ae32: f6 c3 02 test $0x2,%bl 12ae35: 75 29 jne 12ae60 if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { 12ae37: 83 e3 01 and $0x1,%ebx 12ae3a: 75 1c jne 12ae58 if ( !( statbuf.st_mode & S_IEXEC ) ) 12ae3c: 31 c0 xor %eax,%eax return -1; } return 0; } 12ae3e: 8b 5d fc mov -0x4(%ebp),%ebx 12ae41: c9 leave 12ae42: c3 ret 12ae43: 90 nop <== NOT EXECUTED if ( stat(path, &statbuf) ) return -1; if ( amode & R_OK ) { if (!( statbuf.st_mode & S_IREAD )) 12ae44: f6 45 bd 01 testb $0x1,-0x43(%ebp) 12ae48: 75 e8 jne 12ae32 12ae4a: 66 90 xchg %ax,%ax if ( !( statbuf.st_mode & S_IWRITE ) ) return -1; } if ( amode & X_OK ) { if ( !( statbuf.st_mode & S_IEXEC ) ) 12ae4c: b8 ff ff ff ff mov $0xffffffff,%eax return -1; } return 0; } 12ae51: 8b 5d fc mov -0x4(%ebp),%ebx 12ae54: c9 leave 12ae55: c3 ret 12ae56: 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 ) ) 12ae58: f6 45 bc 40 testb $0x40,-0x44(%ebp) 12ae5c: 75 de jne 12ae3c 12ae5e: eb ec jmp 12ae4c if (!( statbuf.st_mode & S_IREAD )) return -1; } if ( amode & W_OK ) { if ( !( statbuf.st_mode & S_IWRITE ) ) 12ae60: 80 7d bc 00 cmpb $0x0,-0x44(%ebp) 12ae64: 78 d1 js 12ae37 12ae66: eb e4 jmp 12ae4c 0012af30 : #include int chdir( const char *pathname ) { 12af30: 55 push %ebp 12af31: 89 e5 mov %esp,%ebp 12af33: 57 push %edi 12af34: 56 push %esi 12af35: 83 ec 2c sub $0x2c,%esp 12af38: 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 ); 12af3b: 31 c0 xor %eax,%eax 12af3d: b9 ff ff ff ff mov $0xffffffff,%ecx 12af42: 89 d7 mov %edx,%edi 12af44: f2 ae repnz scas %es:(%edi),%al 12af46: f7 d1 not %ecx 12af48: 49 dec %ecx /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 12af49: 6a 01 push $0x1 12af4b: 8d 75 e4 lea -0x1c(%ebp),%esi 12af4e: 56 push %esi 12af4f: 6a 01 push $0x1 12af51: 51 push %ecx 12af52: 52 push %edx 12af53: e8 54 1e fe ff call 10cdac pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 12af58: 83 c4 20 add $0x20,%esp 12af5b: 85 c0 test %eax,%eax 12af5d: 75 6d jne 12afcc /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 12af5f: 8b 55 f0 mov -0x10(%ebp),%edx 12af62: 8b 42 10 mov 0x10(%edx),%eax 12af65: 85 c0 test %eax,%eax 12af67: 74 47 je 12afb0 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 12af69: 83 ec 0c sub $0xc,%esp 12af6c: 56 push %esi 12af6d: ff d0 call *%eax 12af6f: 83 c4 10 add $0x10,%esp 12af72: 48 dec %eax 12af73: 75 63 jne 12afd8 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); 12af75: 8b 3d 24 83 16 00 mov 0x168324,%edi 12af7b: 8b 47 10 mov 0x10(%edi),%eax 12af7e: 85 c0 test %eax,%eax 12af80: 74 19 je 12af9b 12af82: 8b 40 1c mov 0x1c(%eax),%eax 12af85: 85 c0 test %eax,%eax 12af87: 74 12 je 12af9b 12af89: 83 ec 0c sub $0xc,%esp 12af8c: 83 c7 04 add $0x4,%edi 12af8f: 57 push %edi 12af90: ff d0 call *%eax 12af92: 8b 3d 24 83 16 00 mov 0x168324,%edi 12af98: 83 c4 10 add $0x10,%esp rtems_filesystem_current = loc; 12af9b: 83 c7 04 add $0x4,%edi 12af9e: b9 05 00 00 00 mov $0x5,%ecx 12afa3: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12afa5: 31 c0 xor %eax,%eax return 0; } 12afa7: 8d 65 f8 lea -0x8(%ebp),%esp 12afaa: 5e pop %esi 12afab: 5f pop %edi 12afac: c9 leave 12afad: c3 ret 12afae: 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 ); 12afb0: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12afb3: 85 c0 test %eax,%eax <== NOT EXECUTED 12afb5: 74 09 je 12afc0 <== NOT EXECUTED 12afb7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12afba: 56 push %esi <== NOT EXECUTED 12afbb: ff d0 call *%eax <== NOT EXECUTED 12afbd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12afc0: e8 77 64 01 00 call 14143c <__errno> <== NOT EXECUTED 12afc5: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12afcb: 90 nop <== NOT EXECUTED 12afcc: b8 ff ff ff ff mov $0xffffffff,%eax rtems_filesystem_freenode( &rtems_filesystem_current ); rtems_filesystem_current = loc; return 0; } 12afd1: 8d 65 f8 lea -0x8(%ebp),%esp 12afd4: 5e pop %esi 12afd5: 5f pop %edi 12afd6: c9 leave 12afd7: 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 ); 12afd8: 8b 45 f0 mov -0x10(%ebp),%eax 12afdb: 85 c0 test %eax,%eax 12afdd: 74 10 je 12afef 12afdf: 8b 40 1c mov 0x1c(%eax),%eax 12afe2: 85 c0 test %eax,%eax 12afe4: 74 09 je 12afef 12afe6: 83 ec 0c sub $0xc,%esp 12afe9: 56 push %esi 12afea: ff d0 call *%eax 12afec: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( ENOTDIR ); 12afef: e8 48 64 01 00 call 14143c <__errno> 12aff4: c7 00 14 00 00 00 movl $0x14,(%eax) 12affa: b8 ff ff ff ff mov $0xffffffff,%eax 12afff: eb a6 jmp 12afa7 0010caf0 : int chmod( const char *path, mode_t mode ) { 10caf0: 55 push %ebp 10caf1: 89 e5 mov %esp,%ebp 10caf3: 57 push %edi 10caf4: 56 push %esi 10caf5: 53 push %ebx 10caf6: 83 ec 38 sub $0x38,%esp 10caf9: 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 ); 10cafc: 31 c0 xor %eax,%eax 10cafe: b9 ff ff ff ff mov $0xffffffff,%ecx 10cb03: 89 d7 mov %edx,%edi 10cb05: f2 ae repnz scas %es:(%edi),%al 10cb07: f7 d1 not %ecx 10cb09: 49 dec %ecx 10cb0a: 6a 01 push $0x1 10cb0c: 8d 5d d4 lea -0x2c(%ebp),%ebx 10cb0f: 53 push %ebx 10cb10: 6a 00 push $0x0 10cb12: 51 push %ecx 10cb13: 52 push %edx 10cb14: e8 93 02 00 00 call 10cdac if ( status != 0 ) 10cb19: 83 c4 20 add $0x20,%esp 10cb1c: 85 c0 test %eax,%eax 10cb1e: 75 60 jne 10cb80 return -1; if ( !loc.handlers ){ 10cb20: 8b 45 dc mov -0x24(%ebp),%eax 10cb23: 85 c0 test %eax,%eax 10cb25: 74 36 je 10cb5d rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ 10cb27: 8b 40 1c mov 0x1c(%eax),%eax 10cb2a: 85 c0 test %eax,%eax 10cb2c: 74 62 je 10cb90 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 10cb2e: 83 ec 08 sub $0x8,%esp 10cb31: ff 75 0c pushl 0xc(%ebp) 10cb34: 53 push %ebx 10cb35: ff d0 call *%eax 10cb37: 89 c6 mov %eax,%esi rtems_filesystem_freenode( &loc ); 10cb39: 8b 45 e0 mov -0x20(%ebp),%eax 10cb3c: 83 c4 10 add $0x10,%esp 10cb3f: 85 c0 test %eax,%eax 10cb41: 74 10 je 10cb53 10cb43: 8b 40 1c mov 0x1c(%eax),%eax 10cb46: 85 c0 test %eax,%eax 10cb48: 74 09 je 10cb53 10cb4a: 83 ec 0c sub $0xc,%esp 10cb4d: 53 push %ebx 10cb4e: ff d0 call *%eax 10cb50: 83 c4 10 add $0x10,%esp return result; } 10cb53: 89 f0 mov %esi,%eax 10cb55: 8d 65 f4 lea -0xc(%ebp),%esp 10cb58: 5b pop %ebx 10cb59: 5e pop %esi 10cb5a: 5f pop %edi 10cb5b: c9 leave 10cb5c: 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 ); 10cb5d: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10cb60: 85 c0 test %eax,%eax <== NOT EXECUTED 10cb62: 74 10 je 10cb74 <== NOT EXECUTED 10cb64: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10cb67: 85 c0 test %eax,%eax <== NOT EXECUTED 10cb69: 74 09 je 10cb74 <== NOT EXECUTED 10cb6b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10cb6e: 53 push %ebx <== NOT EXECUTED 10cb6f: ff d0 call *%eax <== NOT EXECUTED 10cb71: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 10cb74: e8 c3 48 03 00 call 14143c <__errno> <== NOT EXECUTED 10cb79: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 10cb7f: 90 nop <== NOT EXECUTED 10cb80: be ff ff ff ff mov $0xffffffff,%esi result = (*loc.handlers->fchmod_h)( &loc, mode ); rtems_filesystem_freenode( &loc ); return result; } 10cb85: 89 f0 mov %esi,%eax 10cb87: 8d 65 f4 lea -0xc(%ebp),%esp 10cb8a: 5b pop %ebx 10cb8b: 5e pop %esi 10cb8c: 5f pop %edi 10cb8d: c9 leave 10cb8e: c3 ret 10cb8f: 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 ); 10cb90: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10cb93: 85 c0 test %eax,%eax <== NOT EXECUTED 10cb95: 74 10 je 10cba7 <== NOT EXECUTED 10cb97: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10cb9a: 85 c0 test %eax,%eax <== NOT EXECUTED 10cb9c: 74 09 je 10cba7 <== NOT EXECUTED 10cb9e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10cba1: 53 push %ebx <== NOT EXECUTED 10cba2: ff d0 call *%eax <== NOT EXECUTED 10cba4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 10cba7: e8 90 48 03 00 call 14143c <__errno> <== NOT EXECUTED 10cbac: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10cbb2: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 10cbb7: eb 9a jmp 10cb53 <== NOT EXECUTED 0012b004 : int chown( const char *path, uid_t owner, gid_t group ) { 12b004: 55 push %ebp 12b005: 89 e5 mov %esp,%ebp 12b007: 57 push %edi 12b008: 56 push %esi 12b009: 53 push %ebx 12b00a: 83 ec 38 sub $0x38,%esp 12b00d: 8b 55 08 mov 0x8(%ebp),%edx 12b010: 8b 75 0c mov 0xc(%ebp),%esi 12b013: 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 ) ) 12b016: 31 c0 xor %eax,%eax 12b018: b9 ff ff ff ff mov $0xffffffff,%ecx 12b01d: 89 d7 mov %edx,%edi 12b01f: f2 ae repnz scas %es:(%edi),%al 12b021: f7 d1 not %ecx 12b023: 49 dec %ecx 12b024: 6a 01 push $0x1 12b026: 8d 7d d4 lea -0x2c(%ebp),%edi 12b029: 57 push %edi 12b02a: 6a 00 push $0x0 12b02c: 51 push %ecx 12b02d: 52 push %edx 12b02e: e8 79 1d fe ff call 10cdac 12b033: 83 c4 20 add $0x20,%esp 12b036: 85 c0 test %eax,%eax 12b038: 75 5a jne 12b094 return -1; if ( !loc.ops->chown_h ) { 12b03a: 8b 55 e0 mov -0x20(%ebp),%edx 12b03d: 8b 42 18 mov 0x18(%edx),%eax 12b040: 85 c0 test %eax,%eax 12b042: 74 34 je 12b078 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 12b044: 52 push %edx 12b045: 0f b7 db movzwl %bx,%ebx 12b048: 53 push %ebx 12b049: 0f b7 f6 movzwl %si,%esi 12b04c: 56 push %esi 12b04d: 57 push %edi 12b04e: ff d0 call *%eax 12b050: 89 c3 mov %eax,%ebx rtems_filesystem_freenode( &loc ); 12b052: 8b 45 e0 mov -0x20(%ebp),%eax 12b055: 83 c4 10 add $0x10,%esp 12b058: 85 c0 test %eax,%eax 12b05a: 74 10 je 12b06c 12b05c: 8b 40 1c mov 0x1c(%eax),%eax 12b05f: 85 c0 test %eax,%eax 12b061: 74 09 je 12b06c 12b063: 83 ec 0c sub $0xc,%esp 12b066: 57 push %edi 12b067: ff d0 call *%eax 12b069: 83 c4 10 add $0x10,%esp return result; } 12b06c: 89 d8 mov %ebx,%eax 12b06e: 8d 65 f4 lea -0xc(%ebp),%esp 12b071: 5b pop %ebx 12b072: 5e pop %esi 12b073: 5f pop %edi 12b074: c9 leave 12b075: c3 ret 12b076: 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 ); 12b078: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12b07b: 85 c0 test %eax,%eax <== NOT EXECUTED 12b07d: 74 09 je 12b088 <== NOT EXECUTED 12b07f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b082: 57 push %edi <== NOT EXECUTED 12b083: ff d0 call *%eax <== NOT EXECUTED 12b085: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b088: e8 af 63 01 00 call 14143c <__errno> <== NOT EXECUTED 12b08d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12b093: 90 nop <== NOT EXECUTED 12b094: bb ff ff ff ff mov $0xffffffff,%ebx result = (*loc.ops->chown_h)( &loc, owner, group ); rtems_filesystem_freenode( &loc ); return result; } 12b099: 89 d8 mov %ebx,%eax 12b09b: 8d 65 f4 lea -0xc(%ebp),%esp 12b09e: 5b pop %ebx 12b09f: 5e pop %esi 12b0a0: 5f pop %edi 12b0a1: c9 leave 12b0a2: c3 ret 0012b0a4 : #include int chroot( const char *pathname ) { 12b0a4: 55 push %ebp 12b0a5: 89 e5 mov %esp,%ebp 12b0a7: 57 push %edi 12b0a8: 56 push %esi 12b0a9: 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) { 12b0ac: 81 3d 24 83 16 00 e0 cmpl $0x16dde0,0x168324 12b0b3: dd 16 00 12b0b6: 74 6c je 12b124 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); 12b0b8: 83 ec 0c sub $0xc,%esp 12b0bb: ff 75 08 pushl 0x8(%ebp) 12b0be: e8 6d fe ff ff call 12af30 if (result) { 12b0c3: 83 c4 10 add $0x10,%esp 12b0c6: 85 c0 test %eax,%eax 12b0c8: 75 7e jne 12b148 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 12b0ca: 83 ec 0c sub $0xc,%esp 12b0cd: 6a 00 push $0x0 12b0cf: 8d 75 e4 lea -0x1c(%ebp),%esi 12b0d2: 56 push %esi 12b0d3: 6a 00 push $0x0 12b0d5: 6a 01 push $0x1 12b0d7: 68 fc ab 15 00 push $0x15abfc 12b0dc: e8 cb 1c fe ff call 10cdac 12b0e1: 83 c4 20 add $0x20,%esp 12b0e4: 85 c0 test %eax,%eax 12b0e6: 75 60 jne 12b148 /* 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); 12b0e8: 8b 3d 24 83 16 00 mov 0x168324,%edi 12b0ee: 8b 47 24 mov 0x24(%edi),%eax 12b0f1: 85 c0 test %eax,%eax 12b0f3: 74 19 je 12b10e 12b0f5: 8b 40 1c mov 0x1c(%eax),%eax 12b0f8: 85 c0 test %eax,%eax 12b0fa: 74 12 je 12b10e 12b0fc: 83 ec 0c sub $0xc,%esp 12b0ff: 83 c7 18 add $0x18,%edi 12b102: 57 push %edi 12b103: ff d0 call *%eax 12b105: 8b 3d 24 83 16 00 mov 0x168324,%edi 12b10b: 83 c4 10 add $0x10,%esp rtems_filesystem_root = loc; 12b10e: 83 c7 18 add $0x18,%edi 12b111: b9 05 00 00 00 mov $0x5,%ecx 12b116: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12b118: 31 c0 xor %eax,%eax return 0; } 12b11a: 8d 65 f8 lea -0x8(%ebp),%esp 12b11d: 5e pop %esi 12b11e: 5f pop %edi 12b11f: c9 leave 12b120: c3 ret 12b121: 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*/ 12b124: e8 43 15 00 00 call 12c66c if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 12b129: 81 3d 24 83 16 00 e0 cmpl $0x16dde0,0x168324 12b130: dd 16 00 12b133: 75 83 jne 12b0b8 rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b135: e8 02 63 01 00 call 14143c <__errno> <== NOT EXECUTED 12b13a: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12b140: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 12b143: eb d5 jmp 12b11a <== NOT EXECUTED 12b145: 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 ); 12b148: e8 ef 62 01 00 call 14143c <__errno> <== NOT EXECUTED 12b14d: 89 c6 mov %eax,%esi <== NOT EXECUTED 12b14f: e8 e8 62 01 00 call 14143c <__errno> <== NOT EXECUTED 12b154: 8b 00 mov (%eax),%eax <== NOT EXECUTED 12b156: 89 06 mov %eax,(%esi) <== NOT EXECUTED 12b158: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 12b15d: eb bb jmp 12b11a <== NOT EXECUTED 0010f7a0 : #include int close( int fd ) { 10f7a0: 55 push %ebp 10f7a1: 89 e5 mov %esp,%ebp 10f7a3: 56 push %esi 10f7a4: 53 push %ebx 10f7a5: 8b 5d 08 mov 0x8(%ebp),%ebx rtems_libio_t *iop; rtems_status_code rc; rtems_libio_check_fd(fd); 10f7a8: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx 10f7ae: 73 58 jae 10f808 iop = rtems_libio_iop(fd); 10f7b0: c1 e3 06 shl $0x6,%ebx 10f7b3: 03 1d c0 51 12 00 add 0x1251c0,%ebx rtems_libio_check_is_open(iop); 10f7b9: f6 43 15 01 testb $0x1,0x15(%ebx) 10f7bd: 74 49 je 10f808 rc = RTEMS_SUCCESSFUL; if ( iop->handlers->close_h ) 10f7bf: 8b 43 3c mov 0x3c(%ebx),%eax 10f7c2: 8b 40 04 mov 0x4(%eax),%eax 10f7c5: 85 c0 test %eax,%eax 10f7c7: 74 3b je 10f804 rc = (*iop->handlers->close_h)( iop ); 10f7c9: 83 ec 0c sub $0xc,%esp 10f7cc: 53 push %ebx 10f7cd: ff d0 call *%eax 10f7cf: 89 c6 mov %eax,%esi 10f7d1: 83 c4 10 add $0x10,%esp rtems_filesystem_freenode( &iop->pathinfo ); 10f7d4: 8b 43 24 mov 0x24(%ebx),%eax 10f7d7: 85 c0 test %eax,%eax 10f7d9: 74 13 je 10f7ee 10f7db: 8b 40 1c mov 0x1c(%eax),%eax 10f7de: 85 c0 test %eax,%eax 10f7e0: 74 0c je 10f7ee 10f7e2: 83 ec 0c sub $0xc,%esp 10f7e5: 8d 53 18 lea 0x18(%ebx),%edx 10f7e8: 52 push %edx 10f7e9: ff d0 call *%eax 10f7eb: 83 c4 10 add $0x10,%esp rtems_libio_free( iop ); 10f7ee: 83 ec 0c sub $0xc,%esp 10f7f1: 53 push %ebx 10f7f2: e8 91 02 00 00 call 10fa88 return rc; 10f7f7: 83 c4 10 add $0x10,%esp } 10f7fa: 89 f0 mov %esi,%eax 10f7fc: 8d 65 f8 lea -0x8(%ebp),%esp 10f7ff: 5b pop %ebx 10f800: 5e pop %esi 10f801: c9 leave 10f802: c3 ret 10f803: 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 ) 10f804: 31 f6 xor %esi,%esi <== NOT EXECUTED 10f806: eb cc jmp 10f7d4 <== 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); 10f808: e8 eb 2b 00 00 call 1123f8 <__errno> 10f80d: c7 00 09 00 00 00 movl $0x9,(%eax) 10f813: be ff ff ff ff mov $0xffffffff,%esi 10f818: eb e0 jmp 10f7fa 0010ed70 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { 10ed70: 55 push %ebp 10ed71: 89 e5 mov %esp,%ebp 10ed73: 83 ec 1c sub $0x1c,%esp 10ed76: 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; 10ed79: 8b 42 38 mov 0x38(%edx),%eax args.iop = iop; 10ed7c: 89 55 ec mov %edx,-0x14(%ebp) args.flags = 0; 10ed7f: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) args.mode = 0; 10ed86: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) status = rtems_io_close( 10ed8d: 8d 55 ec lea -0x14(%ebp),%edx 10ed90: 52 push %edx 10ed91: ff 70 0c pushl 0xc(%eax) 10ed94: ff 70 08 pushl 0x8(%eax) 10ed97: e8 18 09 00 00 call 10f6b4 np->major, np->minor, (void *) &args ); if ( status ) { 10ed9c: 83 c4 10 add $0x10,%esp 10ed9f: 85 c0 test %eax,%eax 10eda1: 75 05 jne 10eda8 return rtems_deviceio_errno(status); } return 0; } 10eda3: c9 leave 10eda4: c3 ret 10eda5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) { return rtems_deviceio_errno(status); 10eda8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10edab: 50 push %eax <== NOT EXECUTED 10edac: e8 c7 00 00 00 call 10ee78 <== NOT EXECUTED 10edb1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } return 0; } 10edb4: c9 leave <== NOT EXECUTED 10edb5: c3 ret <== NOT EXECUTED 0010edc8 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 10edc8: 55 push %ebp 10edc9: 89 e5 mov %esp,%ebp 10edcb: 57 push %edi 10edcc: 56 push %esi 10edcd: 53 push %ebx 10edce: 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; 10edd1: 8b 45 14 mov 0x14(%ebp),%eax 10edd4: 8b 00 mov (%eax),%eax 10edd6: 89 45 e4 mov %eax,-0x1c(%ebp) if (!device_name_table) 10edd9: 85 c0 test %eax,%eax 10eddb: 0f 84 87 00 00 00 je 10ee68 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 10ede1: 8b 15 50 f1 11 00 mov 0x11f150,%edx 10ede7: 89 55 e0 mov %edx,-0x20(%ebp) 10edea: 85 d2 test %edx,%edx 10edec: 74 38 je 10ee26 } /* 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 ); 10edee: 31 c0 xor %eax,%eax 10edf0: 31 db xor %ebx,%ebx for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) 10edf2: 8d 04 80 lea (%eax,%eax,4),%eax 10edf5: 8b 55 e4 mov -0x1c(%ebp),%edx 10edf8: 8d 3c 82 lea (%edx,%eax,4),%edi 10edfb: 8b 37 mov (%edi),%esi 10edfd: 85 f6 test %esi,%esi 10edff: 74 1d je 10ee1e continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 10ee01: 50 push %eax 10ee02: ff 75 0c pushl 0xc(%ebp) 10ee05: 56 push %esi 10ee06: ff 75 08 pushl 0x8(%ebp) 10ee09: e8 8e 22 00 00 call 11109c 10ee0e: 83 c4 10 add $0x10,%esp 10ee11: 85 c0 test %eax,%eax 10ee13: 75 09 jne 10ee1e continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 10ee15: 8b 45 0c mov 0xc(%ebp),%eax 10ee18: 80 3c 06 00 cmpb $0x0,(%esi,%eax,1) 10ee1c: 74 22 je 10ee40 /* 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++) { 10ee1e: 43 inc %ebx 10ee1f: 89 d8 mov %ebx,%eax 10ee21: 39 5d e0 cmp %ebx,-0x20(%ebp) 10ee24: 77 cc ja 10edf2 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); 10ee26: e8 c1 16 00 00 call 1104ec <__errno> 10ee2b: c7 00 02 00 00 00 movl $0x2,(%eax) 10ee31: b8 ff ff ff ff mov $0xffffffff,%eax } 10ee36: 8d 65 f4 lea -0xc(%ebp),%esp 10ee39: 5b pop %ebx 10ee3a: 5e pop %esi 10ee3b: 5f pop %edi 10ee3c: c9 leave 10ee3d: c3 ret 10ee3e: 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]; 10ee40: 8b 55 14 mov 0x14(%ebp),%edx 10ee43: 89 3a mov %edi,(%edx) pathloc->handlers = &devFS_file_handlers; 10ee45: c7 42 08 80 10 12 00 movl $0x121080,0x8(%edx) pathloc->ops = &devFS_ops; 10ee4c: c7 42 0c 20 10 12 00 movl $0x121020,0xc(%edx) pathloc->mt_entry = rtems_filesystem_root.mt_entry; 10ee53: a1 cc 10 12 00 mov 0x1210cc,%eax 10ee58: 8b 40 28 mov 0x28(%eax),%eax 10ee5b: 89 42 10 mov %eax,0x10(%edx) 10ee5e: 31 c0 xor %eax,%eax return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); } 10ee60: 8d 65 f4 lea -0xc(%ebp),%esp 10ee63: 5b pop %ebx 10ee64: 5e pop %esi 10ee65: 5f pop %edi 10ee66: c9 leave 10ee67: 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 ); 10ee68: e8 7f 16 00 00 call 1104ec <__errno> <== NOT EXECUTED 10ee6d: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 10ee73: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 10ee76: eb e8 jmp 10ee60 <== NOT EXECUTED 00107b2c : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 107b2c: 55 push %ebp 107b2d: 89 e5 mov %esp,%ebp 107b2f: 57 push %edi 107b30: 53 push %ebx 107b31: 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( 107b34: 83 ec 0c sub $0xc,%esp 107b37: a1 50 f1 11 00 mov 0x11f150,%eax 107b3c: 8d 04 80 lea (%eax,%eax,4),%eax 107b3f: c1 e0 02 shl $0x2,%eax 107b42: 50 push %eax 107b43: e8 98 6d 00 00 call 10e8e0 <_Workspace_Allocate> 107b48: 89 c2 mov %eax,%edx sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) 107b4a: 83 c4 10 add $0x10,%esp 107b4d: 85 c0 test %eax,%eax 107b4f: 74 2b je 107b7c rtems_set_errno_and_return_minus_one( ENOMEM ); memset( 107b51: a1 50 f1 11 00 mov 0x11f150,%eax 107b56: 8d 0c 80 lea (%eax,%eax,4),%ecx 107b59: c1 e1 02 shl $0x2,%ecx 107b5c: 31 c0 xor %eax,%eax 107b5e: 89 d7 mov %edx,%edi 107b60: 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; 107b62: c7 43 24 80 10 12 00 movl $0x121080,0x24(%ebx) temp_mt_entry->mt_fs_root.ops = &devFS_ops; 107b69: c7 43 28 20 10 12 00 movl $0x121020,0x28(%ebx) /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; 107b70: 89 53 1c mov %edx,0x1c(%ebx) 107b73: 31 c0 xor %eax,%eax return 0; } 107b75: 8d 65 f8 lea -0x8(%ebp),%esp 107b78: 5b pop %ebx 107b79: 5f pop %edi 107b7a: c9 leave 107b7b: 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 ); 107b7c: e8 6b 89 00 00 call 1104ec <__errno> <== NOT EXECUTED 107b81: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 107b87: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 107b8c: eb e7 jmp 107b75 <== NOT EXECUTED 00107ce8 : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 107ce8: 55 push %ebp 107ce9: 89 e5 mov %esp,%ebp 107ceb: 83 ec 1c sub $0x1c,%esp 107cee: 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; 107cf1: 8b 42 38 mov 0x38(%edx),%eax args.iop = iop; 107cf4: 89 55 e8 mov %edx,-0x18(%ebp) args.command = command; 107cf7: 8b 55 0c mov 0xc(%ebp),%edx 107cfa: 89 55 ec mov %edx,-0x14(%ebp) args.buffer = buffer; 107cfd: 8b 55 10 mov 0x10(%ebp),%edx 107d00: 89 55 f0 mov %edx,-0x10(%ebp) status = rtems_io_control( 107d03: 8d 55 e8 lea -0x18(%ebp),%edx 107d06: 52 push %edx 107d07: ff 70 0c pushl 0xc(%eax) 107d0a: ff 70 08 pushl 0x8(%eax) 107d0d: e8 7e 41 00 00 call 10be90 np->major, np->minor, (void *) &args ); if ( status ) 107d12: 83 c4 10 add $0x10,%esp 107d15: 85 c0 test %eax,%eax 107d17: 75 07 jne 107d20 return rtems_deviceio_errno(status); return args.ioctl_return; 107d19: 8b 45 f4 mov -0xc(%ebp),%eax } 107d1c: c9 leave 107d1d: c3 ret 107d1e: 66 90 xchg %ax,%ax <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 107d20: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107d23: 50 push %eax <== NOT EXECUTED 107d24: e8 4f 71 00 00 call 10ee78 <== NOT EXECUTED 107d29: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return args.ioctl_return; } 107d2c: c9 leave <== NOT EXECUTED 107d2d: c3 ret <== NOT EXECUTED 00107b90 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 107b90: 55 push %ebp 107b91: 89 e5 mov %esp,%ebp 107b93: 57 push %edi 107b94: 56 push %esi 107b95: 53 push %ebx 107b96: 83 ec 1c sub $0x1c,%esp 107b99: 8b 7d 08 mov 0x8(%ebp),%edi 107b9c: 8b 4d 10 mov 0x10(%ebp),%ecx 107b9f: 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') && 107ba2: 80 3f 64 cmpb $0x64,(%edi) 107ba5: 0f 84 dd 00 00 00 je 107c88 (path[2] == 'v') && (path[3] == '\0')) return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) 107bab: 8b 45 0c mov 0xc(%ebp),%eax 107bae: 25 00 f0 00 00 and $0xf000,%eax 107bb3: 3d 00 60 00 00 cmp $0x6000,%eax 107bb8: 74 0b je 107bc5 107bba: 3d 00 20 00 00 cmp $0x2000,%eax 107bbf: 0f 85 e3 00 00 00 jne 107ca8 ) { union __rtems_dev_t temp; temp.device = device; return temp.__overlay.major; 107bc5: 89 4d d8 mov %ecx,-0x28(%ebp) dev_t device ) { union __rtems_dev_t temp; temp.device = device; 107bc8: 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; 107bcb: 8b 45 18 mov 0x18(%ebp),%eax 107bce: 8b 30 mov (%eax),%esi if (!device_name_table) 107bd0: 85 f6 test %esi,%esi 107bd2: 0f 84 f2 00 00 00 je 107cca rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 107bd8: 8b 15 50 f1 11 00 mov 0x11f150,%edx 107bde: 85 d2 test %edx,%edx 107be0: 0f 84 d4 00 00 00 je 107cba 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 ); 107be6: 31 c0 xor %eax,%eax 107be8: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) 107bef: 31 db xor %ebx,%ebx 107bf1: 89 7d e4 mov %edi,-0x1c(%ebp) 107bf4: 89 d7 mov %edx,%edi 107bf6: eb 1a jmp 107c12 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) 107bf8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 107bfb: 50 push %eax <== NOT EXECUTED 107bfc: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 107bff: e8 74 93 00 00 call 110f78 <== NOT EXECUTED 107c04: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 107c07: 85 c0 test %eax,%eax <== NOT EXECUTED 107c09: 74 65 je 107c70 <== 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++){ 107c0b: 43 inc %ebx <== NOT EXECUTED 107c0c: 89 d8 mov %ebx,%eax <== NOT EXECUTED 107c0e: 39 fb cmp %edi,%ebx <== NOT EXECUTED 107c10: 73 16 jae 107c28 <== NOT EXECUTED if (device_name_table[i].device_name == NULL) 107c12: 8d 04 80 lea (%eax,%eax,4),%eax 107c15: 8b 04 86 mov (%esi,%eax,4),%eax 107c18: 85 c0 test %eax,%eax 107c1a: 75 dc jne 107bf8 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); 107c1c: 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++){ 107c1f: 43 inc %ebx 107c20: 89 d8 mov %ebx,%eax 107c22: 39 fb cmp %edi,%ebx 107c24: 72 ec jb 107c12 107c26: 66 90 xchg %ax,%ax 107c28: 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) 107c2b: 83 7d e0 ff cmpl $0xffffffff,-0x20(%ebp) 107c2f: 0f 84 85 00 00 00 je 107cba rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); 107c35: 9c pushf 107c36: fa cli 107c37: 5b pop %ebx device_name_table[slot].device_name = (char *)path; 107c38: 8b 55 e0 mov -0x20(%ebp),%edx 107c3b: 8d 04 92 lea (%edx,%edx,4),%eax 107c3e: 8d 14 86 lea (%esi,%eax,4),%edx 107c41: 89 3a mov %edi,(%edx) device_name_table[slot].device_name_length = strlen(path); 107c43: 31 c0 xor %eax,%eax 107c45: b9 ff ff ff ff mov $0xffffffff,%ecx 107c4a: f2 ae repnz scas %es:(%edi),%al 107c4c: f7 d1 not %ecx 107c4e: 49 dec %ecx 107c4f: 89 4a 04 mov %ecx,0x4(%edx) device_name_table[slot].major = major; 107c52: 8b 45 d8 mov -0x28(%ebp),%eax 107c55: 89 42 08 mov %eax,0x8(%edx) device_name_table[slot].minor = minor; 107c58: 8b 45 dc mov -0x24(%ebp),%eax 107c5b: 89 42 0c mov %eax,0xc(%edx) device_name_table[slot].mode = mode; 107c5e: 8b 45 0c mov 0xc(%ebp),%eax 107c61: 89 42 10 mov %eax,0x10(%edx) _ISR_Enable(level); 107c64: 53 push %ebx 107c65: 9d popf 107c66: 31 c0 xor %eax,%eax return 0; } 107c68: 8d 65 f4 lea -0xc(%ebp),%esp 107c6b: 5b pop %ebx 107c6c: 5e pop %esi 107c6d: 5f pop %edi 107c6e: c9 leave 107c6f: 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 ); 107c70: e8 77 88 00 00 call 1104ec <__errno> <== NOT EXECUTED 107c75: c7 00 11 00 00 00 movl $0x11,(%eax) <== NOT EXECUTED 107c7b: 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; } 107c80: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 107c83: 5b pop %ebx <== NOT EXECUTED 107c84: 5e pop %esi <== NOT EXECUTED 107c85: 5f pop %edi <== NOT EXECUTED 107c86: c9 leave <== NOT EXECUTED 107c87: 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') && 107c88: 80 7f 01 65 cmpb $0x65,0x1(%edi) 107c8c: 0f 85 19 ff ff ff jne 107bab (path[2] == 'v') && (path[3] == '\0')) 107c92: 80 7f 02 76 cmpb $0x76,0x2(%edi) 107c96: 0f 85 0f ff ff ff jne 107bab 107c9c: 80 7f 03 00 cmpb $0x0,0x3(%edi) 107ca0: 0f 85 05 ff ff ff jne 107bab 107ca6: eb be jmp 107c66 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 ); 107ca8: e8 3f 88 00 00 call 1104ec <__errno> <== NOT EXECUTED 107cad: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 107cb3: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 107cb8: eb ae jmp 107c68 <== 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 ); 107cba: e8 2d 88 00 00 call 1104ec <__errno> <== NOT EXECUTED 107cbf: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 107cc5: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 107cc8: eb 9e jmp 107c68 <== 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 ); 107cca: e8 1d 88 00 00 call 1104ec <__errno> <== NOT EXECUTED 107ccf: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 107cd5: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 107cd8: eb 8e jmp 107c68 <== NOT EXECUTED 00107d30 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 107d30: 55 push %ebp 107d31: 89 e5 mov %esp,%ebp 107d33: 83 ec 1c sub $0x1c,%esp 107d36: 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; 107d39: 8b 50 38 mov 0x38(%eax),%edx args.iop = iop; 107d3c: 89 45 ec mov %eax,-0x14(%ebp) args.flags = iop->flags; 107d3f: 8b 40 14 mov 0x14(%eax),%eax 107d42: 89 45 f0 mov %eax,-0x10(%ebp) args.mode = mode; 107d45: 8b 45 14 mov 0x14(%ebp),%eax 107d48: 89 45 f4 mov %eax,-0xc(%ebp) status = rtems_io_open( 107d4b: 8d 45 ec lea -0x14(%ebp),%eax 107d4e: 50 push %eax 107d4f: ff 72 0c pushl 0xc(%edx) 107d52: ff 72 08 pushl 0x8(%edx) 107d55: e8 4a 42 00 00 call 10bfa4 np->major, np->minor, (void *) &args ); if ( status ) 107d5a: 83 c4 10 add $0x10,%esp 107d5d: 85 c0 test %eax,%eax 107d5f: 75 03 jne 107d64 return rtems_deviceio_errno(status); return 0; } 107d61: c9 leave 107d62: c3 ret 107d63: 90 nop <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 107d64: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107d67: 50 push %eax <== NOT EXECUTED 107d68: e8 0b 71 00 00 call 10ee78 <== NOT EXECUTED 107d6d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return 0; } 107d70: c9 leave <== NOT EXECUTED 107d71: c3 ret <== NOT EXECUTED 00107d74 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 107d74: 55 push %ebp <== NOT EXECUTED 107d75: 89 e5 mov %esp,%ebp <== NOT EXECUTED 107d77: 53 push %ebx <== NOT EXECUTED 107d78: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED 107d7b: 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; 107d7e: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED args.iop = iop; 107d81: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED args.offset = iop->offset; 107d84: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED 107d87: 8b 58 10 mov 0x10(%eax),%ebx <== NOT EXECUTED 107d8a: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 107d8d: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED args.buffer = buffer; 107d90: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 107d93: 89 4d e8 mov %ecx,-0x18(%ebp) <== NOT EXECUTED args.count = count; 107d96: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED 107d99: 89 4d ec mov %ecx,-0x14(%ebp) <== NOT EXECUTED args.flags = iop->flags; 107d9c: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED 107d9f: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED args.bytes_moved = 0; 107da2: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED status = rtems_io_read( 107da9: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED 107dac: 50 push %eax <== NOT EXECUTED 107dad: ff 72 0c pushl 0xc(%edx) <== NOT EXECUTED 107db0: ff 72 08 pushl 0x8(%edx) <== NOT EXECUTED 107db3: e8 38 42 00 00 call 10bff0 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) 107db8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 107dbb: 85 c0 test %eax,%eax <== NOT EXECUTED 107dbd: 75 09 jne 107dc8 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 107dbf: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED } 107dc2: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 107dc5: c9 leave <== NOT EXECUTED 107dc6: c3 ret <== NOT EXECUTED 107dc7: 90 nop <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 107dc8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107dcb: 50 push %eax <== NOT EXECUTED 107dcc: e8 a7 70 00 00 call 10ee78 <== NOT EXECUTED 107dd1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 107dd4: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 107dd7: c9 leave <== NOT EXECUTED 107dd8: c3 ret <== NOT EXECUTED 00107ddc : int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 107ddc: 55 push %ebp 107ddd: 89 e5 mov %esp,%ebp 107ddf: 53 push %ebx 107de0: 83 ec 04 sub $0x4,%esp 107de3: 8b 55 0c mov 0xc(%ebp),%edx rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; 107de6: 8b 45 08 mov 0x8(%ebp),%eax 107de9: 8b 00 mov (%eax),%eax if (!the_dev) 107deb: 85 c0 test %eax,%eax 107ded: 74 18 je 107e07 rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); 107def: 8b 48 0c mov 0xc(%eax),%ecx rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 107df2: 8b 58 08 mov 0x8(%eax),%ebx 107df5: 89 5a 18 mov %ebx,0x18(%edx) 107df8: 89 4a 1c mov %ecx,0x1c(%edx) buf->st_mode = the_dev->mode; 107dfb: 8b 40 10 mov 0x10(%eax),%eax 107dfe: 89 42 0c mov %eax,0xc(%edx) 107e01: 31 c0 xor %eax,%eax return 0; } 107e03: 5a pop %edx 107e04: 5b pop %ebx 107e05: c9 leave 107e06: 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 ); 107e07: e8 e0 86 00 00 call 1104ec <__errno> <== NOT EXECUTED 107e0c: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 107e12: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 107e17: eb ea jmp 107e03 <== NOT EXECUTED 00107e1c : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 107e1c: 55 push %ebp 107e1d: 89 e5 mov %esp,%ebp 107e1f: 53 push %ebx 107e20: 83 ec 28 sub $0x28,%esp 107e23: 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; 107e26: 8b 50 38 mov 0x38(%eax),%edx args.iop = iop; 107e29: 89 45 dc mov %eax,-0x24(%ebp) args.offset = iop->offset; 107e2c: 8b 48 0c mov 0xc(%eax),%ecx 107e2f: 8b 58 10 mov 0x10(%eax),%ebx 107e32: 89 4d e0 mov %ecx,-0x20(%ebp) 107e35: 89 5d e4 mov %ebx,-0x1c(%ebp) args.buffer = (void *) buffer; 107e38: 8b 4d 0c mov 0xc(%ebp),%ecx 107e3b: 89 4d e8 mov %ecx,-0x18(%ebp) args.count = count; 107e3e: 8b 4d 10 mov 0x10(%ebp),%ecx 107e41: 89 4d ec mov %ecx,-0x14(%ebp) args.flags = iop->flags; 107e44: 8b 40 14 mov 0x14(%eax),%eax 107e47: 89 45 f0 mov %eax,-0x10(%ebp) args.bytes_moved = 0; 107e4a: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) status = rtems_io_write( 107e51: 8d 45 dc lea -0x24(%ebp),%eax 107e54: 50 push %eax 107e55: ff 72 0c pushl 0xc(%edx) 107e58: ff 72 08 pushl 0x8(%edx) 107e5b: e8 dc 41 00 00 call 10c03c np->major, np->minor, (void *) &args ); if ( status ) 107e60: 83 c4 10 add $0x10,%esp 107e63: 85 c0 test %eax,%eax 107e65: 75 09 jne 107e70 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 107e67: 8b 45 f4 mov -0xc(%ebp),%eax } 107e6a: 8b 5d fc mov -0x4(%ebp),%ebx 107e6d: c9 leave 107e6e: c3 ret 107e6f: 90 nop <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 107e70: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107e73: 50 push %eax <== NOT EXECUTED 107e74: e8 ff 6f 00 00 call 10ee78 <== NOT EXECUTED 107e79: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 107e7c: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 107e7f: c9 leave <== NOT EXECUTED 107e80: c3 ret <== NOT EXECUTED 00110b80 : */ int device_close( rtems_libio_t *iop ) { 110b80: 55 push %ebp 110b81: 89 e5 mov %esp,%ebp 110b83: 83 ec 1c sub $0x1c,%esp 110b86: 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; 110b89: 8b 42 38 mov 0x38(%edx),%eax args.iop = iop; 110b8c: 89 55 ec mov %edx,-0x14(%ebp) args.flags = 0; 110b8f: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) args.mode = 0; 110b96: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) status = rtems_io_close( 110b9d: 8d 55 ec lea -0x14(%ebp),%edx 110ba0: 52 push %edx 110ba1: ff 70 54 pushl 0x54(%eax) 110ba4: ff 70 50 pushl 0x50(%eax) 110ba7: e8 e0 0f 00 00 call 111b8c the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { 110bac: 83 c4 10 add $0x10,%esp 110baf: 85 c0 test %eax,%eax 110bb1: 75 05 jne 110bb8 return rtems_deviceio_errno(status); } return 0; } 110bb3: c9 leave 110bb4: c3 ret 110bb5: 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); 110bb8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110bbb: 50 push %eax <== NOT EXECUTED 110bbc: e8 f7 14 00 00 call 1120b8 <== NOT EXECUTED 110bc1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } return 0; } 110bc4: c9 leave <== NOT EXECUTED 110bc5: c3 ret <== NOT EXECUTED 00110a68 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 110a68: 55 push %ebp 110a69: 89 e5 mov %esp,%ebp 110a6b: 83 ec 1c sub $0x1c,%esp 110a6e: 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; 110a71: 89 45 e8 mov %eax,-0x18(%ebp) args.command = command; 110a74: 8b 55 0c mov 0xc(%ebp),%edx 110a77: 89 55 ec mov %edx,-0x14(%ebp) args.buffer = buffer; 110a7a: 8b 55 10 mov 0x10(%ebp),%edx 110a7d: 89 55 f0 mov %edx,-0x10(%ebp) the_jnode = iop->file_info; 110a80: 8b 40 38 mov 0x38(%eax),%eax status = rtems_io_control( 110a83: 8d 55 e8 lea -0x18(%ebp),%edx 110a86: 52 push %edx 110a87: ff 70 54 pushl 0x54(%eax) 110a8a: ff 70 50 pushl 0x50(%eax) 110a8d: e8 46 11 00 00 call 111bd8 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 110a92: 83 c4 10 add $0x10,%esp 110a95: 85 c0 test %eax,%eax 110a97: 75 07 jne 110aa0 return rtems_deviceio_errno(status); return args.ioctl_return; 110a99: 8b 45 f4 mov -0xc(%ebp),%eax } 110a9c: c9 leave 110a9d: c3 ret 110a9e: 66 90 xchg %ax,%ax <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 110aa0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110aa3: 50 push %eax <== NOT EXECUTED 110aa4: e8 0f 16 00 00 call 1120b8 <== NOT EXECUTED 110aa9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return args.ioctl_return; } 110aac: c9 leave <== NOT EXECUTED 110aad: c3 ret <== NOT EXECUTED 00110bc8 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 110bc8: 55 push %ebp 110bc9: 89 e5 mov %esp,%ebp 110bcb: 83 ec 1c sub $0x1c,%esp 110bce: 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; 110bd1: 8b 50 38 mov 0x38(%eax),%edx args.iop = iop; 110bd4: 89 45 ec mov %eax,-0x14(%ebp) args.flags = iop->flags; 110bd7: 8b 40 14 mov 0x14(%eax),%eax 110bda: 89 45 f0 mov %eax,-0x10(%ebp) args.mode = mode; 110bdd: 8b 45 14 mov 0x14(%ebp),%eax 110be0: 89 45 f4 mov %eax,-0xc(%ebp) status = rtems_io_open( 110be3: 8d 45 ec lea -0x14(%ebp),%eax 110be6: 50 push %eax 110be7: ff 72 54 pushl 0x54(%edx) 110bea: ff 72 50 pushl 0x50(%edx) 110bed: e8 32 10 00 00 call 111c24 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 110bf2: 83 c4 10 add $0x10,%esp 110bf5: 85 c0 test %eax,%eax 110bf7: 75 03 jne 110bfc return rtems_deviceio_errno(status); return 0; } 110bf9: c9 leave 110bfa: c3 ret 110bfb: 90 nop <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 110bfc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110bff: 50 push %eax <== NOT EXECUTED 110c00: e8 b3 14 00 00 call 1120b8 <== NOT EXECUTED 110c05: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return 0; } 110c08: c9 leave <== NOT EXECUTED 110c09: c3 ret <== NOT EXECUTED 00110b18 : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 110b18: 55 push %ebp <== NOT EXECUTED 110b19: 89 e5 mov %esp,%ebp <== NOT EXECUTED 110b1b: 53 push %ebx <== NOT EXECUTED 110b1c: 83 ec 28 sub $0x28,%esp <== NOT EXECUTED 110b1f: 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; 110b22: 8b 50 38 mov 0x38(%eax),%edx <== NOT EXECUTED args.iop = iop; 110b25: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED args.offset = iop->offset; 110b28: 8b 48 0c mov 0xc(%eax),%ecx <== NOT EXECUTED 110b2b: 8b 58 10 mov 0x10(%eax),%ebx <== NOT EXECUTED 110b2e: 89 4d e0 mov %ecx,-0x20(%ebp) <== NOT EXECUTED 110b31: 89 5d e4 mov %ebx,-0x1c(%ebp) <== NOT EXECUTED args.buffer = buffer; 110b34: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 110b37: 89 4d e8 mov %ecx,-0x18(%ebp) <== NOT EXECUTED args.count = count; 110b3a: 8b 4d 10 mov 0x10(%ebp),%ecx <== NOT EXECUTED 110b3d: 89 4d ec mov %ecx,-0x14(%ebp) <== NOT EXECUTED args.flags = iop->flags; 110b40: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED 110b43: 89 45 f0 mov %eax,-0x10(%ebp) <== NOT EXECUTED args.bytes_moved = 0; 110b46: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) <== NOT EXECUTED status = rtems_io_read( 110b4d: 8d 45 dc lea -0x24(%ebp),%eax <== NOT EXECUTED 110b50: 50 push %eax <== NOT EXECUTED 110b51: ff 72 54 pushl 0x54(%edx) <== NOT EXECUTED 110b54: ff 72 50 pushl 0x50(%edx) <== NOT EXECUTED 110b57: e8 14 11 00 00 call 111c70 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 110b5c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110b5f: 85 c0 test %eax,%eax <== NOT EXECUTED 110b61: 75 09 jne 110b6c <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 110b63: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED } 110b66: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 110b69: c9 leave <== NOT EXECUTED 110b6a: c3 ret <== NOT EXECUTED 110b6b: 90 nop <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 110b6c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110b6f: 50 push %eax <== NOT EXECUTED 110b70: e8 43 15 00 00 call 1120b8 <== NOT EXECUTED 110b75: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 110b78: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 110b7b: c9 leave <== NOT EXECUTED 110b7c: c3 ret <== NOT EXECUTED 00110ab0 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 110ab0: 55 push %ebp 110ab1: 89 e5 mov %esp,%ebp 110ab3: 53 push %ebx 110ab4: 83 ec 28 sub $0x28,%esp 110ab7: 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; 110aba: 8b 50 38 mov 0x38(%eax),%edx args.iop = iop; 110abd: 89 45 dc mov %eax,-0x24(%ebp) args.offset = iop->offset; 110ac0: 8b 48 0c mov 0xc(%eax),%ecx 110ac3: 8b 58 10 mov 0x10(%eax),%ebx 110ac6: 89 4d e0 mov %ecx,-0x20(%ebp) 110ac9: 89 5d e4 mov %ebx,-0x1c(%ebp) args.buffer = (void *) buffer; 110acc: 8b 4d 0c mov 0xc(%ebp),%ecx 110acf: 89 4d e8 mov %ecx,-0x18(%ebp) args.count = count; 110ad2: 8b 4d 10 mov 0x10(%ebp),%ecx 110ad5: 89 4d ec mov %ecx,-0x14(%ebp) args.flags = iop->flags; 110ad8: 8b 40 14 mov 0x14(%eax),%eax 110adb: 89 45 f0 mov %eax,-0x10(%ebp) args.bytes_moved = 0; 110ade: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) status = rtems_io_write( 110ae5: 8d 45 dc lea -0x24(%ebp),%eax 110ae8: 50 push %eax 110ae9: ff 72 54 pushl 0x54(%edx) 110aec: ff 72 50 pushl 0x50(%edx) 110aef: e8 c8 11 00 00 call 111cbc the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 110af4: 83 c4 10 add $0x10,%esp 110af7: 85 c0 test %eax,%eax 110af9: 75 09 jne 110b04 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 110afb: 8b 45 f4 mov -0xc(%ebp),%eax } 110afe: 8b 5d fc mov -0x4(%ebp),%ebx 110b01: c9 leave 110b02: c3 ret 110b03: 90 nop <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 110b04: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110b07: 50 push %eax <== NOT EXECUTED 110b08: e8 ab 15 00 00 call 1120b8 <== NOT EXECUTED 110b0d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 110b10: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 110b13: c9 leave <== NOT EXECUTED 110b14: c3 ret <== NOT EXECUTED 00109bcc : /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 109bcc: 55 push %ebp 109bcd: 89 e5 mov %esp,%ebp 109bcf: 53 push %ebx 109bd0: 83 ec 04 sub $0x4,%esp 109bd3: 89 c3 mov %eax,%ebx rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 109bd5: 8b 90 b4 00 00 00 mov 0xb4(%eax),%edx 109bdb: 85 d2 test %edx,%edx 109bdd: 74 4d je 109c2c rtems_interrupt_disable (level); 109bdf: 9c pushf 109be0: fa cli 109be1: 58 pop %eax while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 109be2: 8b 8b 84 00 00 00 mov 0x84(%ebx),%ecx 109be8: 8b 93 80 00 00 00 mov 0x80(%ebx),%edx 109bee: 39 d1 cmp %edx,%ecx 109bf0: 74 38 je 109c2a 109bf2: 66 90 xchg %ax,%ax tty->rawOutBufState = rob_wait; 109bf4: c7 83 94 00 00 00 02 movl $0x2,0x94(%ebx) 109bfb: 00 00 00 rtems_interrupt_enable (level); 109bfe: 50 push %eax 109bff: 9d popf sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 109c00: 50 push %eax 109c01: 6a 00 push $0x0 109c03: 6a 00 push $0x0 109c05: ff b3 8c 00 00 00 pushl 0x8c(%ebx) 109c0b: e8 90 19 00 00 call 10b5a0 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 109c10: 83 c4 10 add $0x10,%esp 109c13: 85 c0 test %eax,%eax 109c15: 75 1a jne 109c31 rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 109c17: 9c pushf 109c18: fa cli 109c19: 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) { 109c1a: 8b 8b 84 00 00 00 mov 0x84(%ebx),%ecx 109c20: 8b 93 80 00 00 00 mov 0x80(%ebx),%edx 109c26: 39 d1 cmp %edx,%ecx 109c28: 75 ca jne 109bf4 RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } rtems_interrupt_enable (level); 109c2a: 50 push %eax 109c2b: 9d popf } } 109c2c: 8b 5d fc mov -0x4(%ebp),%ebx 109c2f: c9 leave 109c30: 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); 109c31: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109c34: 50 push %eax <== NOT EXECUTED 109c35: e8 9e 1f 00 00 call 10bbd8 <== NOT EXECUTED 00108d00 : int dup2( int fildes, int fildes2 ) { 108d00: 55 push %ebp 108d01: 89 e5 mov %esp,%ebp 108d03: 57 push %edi 108d04: 56 push %esi 108d05: 53 push %ebx 108d06: 83 ec 64 sub $0x64,%esp 108d09: 8b 75 08 mov 0x8(%ebp),%esi 108d0c: 8b 7d 0c mov 0xc(%ebp),%edi /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 108d0f: 8d 5d a0 lea -0x60(%ebp),%ebx 108d12: 53 push %ebx 108d13: 56 push %esi 108d14: e8 bf 05 00 00 call 1092d8 if ( status == -1 ) 108d19: 83 c4 10 add $0x10,%esp 108d1c: 40 inc %eax 108d1d: 75 0d jne 108d2c /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 108d1f: b8 ff ff ff ff mov $0xffffffff,%eax } 108d24: 8d 65 f4 lea -0xc(%ebp),%esp 108d27: 5b pop %ebx 108d28: 5e pop %esi 108d29: 5f pop %edi 108d2a: c9 leave 108d2b: c3 ret /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 108d2c: 83 ec 08 sub $0x8,%esp 108d2f: 53 push %ebx 108d30: 57 push %edi 108d31: e8 a2 05 00 00 call 1092d8 if ( status == -1 ) 108d36: 83 c4 10 add $0x10,%esp 108d39: 40 inc %eax 108d3a: 74 e3 je 108d1f /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 108d3c: 50 push %eax <== NOT EXECUTED 108d3d: 57 push %edi <== NOT EXECUTED 108d3e: 6a 00 push $0x0 <== NOT EXECUTED 108d40: 56 push %esi <== NOT EXECUTED 108d41: e8 2e 02 00 00 call 108f74 <== NOT EXECUTED 108d46: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108d49: eb d9 jmp 108d24 <== NOT EXECUTED 00109740 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 109740: 55 push %ebp <== NOT EXECUTED 109741: 89 e5 mov %esp,%ebp <== NOT EXECUTED 109743: 53 push %ebx <== NOT EXECUTED 109744: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 109747: f6 42 3d 02 testb $0x2,0x3d(%edx) <== NOT EXECUTED 10974b: 74 1b je 109768 <== NOT EXECUTED 10974d: 0f b6 c8 movzbl %al,%ecx <== NOT EXECUTED 109750: 8b 1d a8 30 12 00 mov 0x1230a8,%ebx <== NOT EXECUTED 109756: f6 44 0b 01 20 testb $0x20,0x1(%ebx,%ecx,1) <== NOT EXECUTED 10975b: 74 0b je 109768 <== NOT EXECUTED 10975d: 3c 09 cmp $0x9,%al <== NOT EXECUTED 10975f: 74 07 je 109768 <== NOT EXECUTED 109761: 3c 0a cmp $0xa,%al <== NOT EXECUTED 109763: 75 13 jne 109778 <== NOT EXECUTED 109765: 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); 109768: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 10976b: e8 94 fe ff ff call 109604 <== NOT EXECUTED } } 109770: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 109773: c9 leave <== NOT EXECUTED 109774: c3 ret <== NOT EXECUTED 109775: 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] = '^'; 109778: c6 45 f6 5e movb $0x5e,-0xa(%ebp) <== NOT EXECUTED echobuf[1] = c ^ 0x40; 10977c: 83 f0 40 xor $0x40,%eax <== NOT EXECUTED 10977f: 88 45 f7 mov %al,-0x9(%ebp) <== NOT EXECUTED rtems_termios_puts (echobuf, 2, tty); 109782: 50 push %eax <== NOT EXECUTED 109783: 52 push %edx <== NOT EXECUTED 109784: 6a 02 push $0x2 <== NOT EXECUTED 109786: 8d 45 f6 lea -0xa(%ebp),%eax <== NOT EXECUTED 109789: 50 push %eax <== NOT EXECUTED 10978a: 89 55 e4 mov %edx,-0x1c(%ebp) <== NOT EXECUTED 10978d: e8 3e fd ff ff call 1094d0 <== NOT EXECUTED tty->column += 2; 109792: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 109795: 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')) { 109799: 83 c4 10 add $0x10,%esp <== NOT EXECUTED tty->column += 2; } else { oproc (c, tty); } } 10979c: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10979f: c9 leave <== NOT EXECUTED 1097a0: c3 ret <== NOT EXECUTED 0012b654 : fclose(group_fp); group_fp = fopen("/etc/group", "r"); } void endgrent(void) { 12b654: 55 push %ebp <== NOT EXECUTED 12b655: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b657: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED if (group_fp != NULL) 12b65a: a1 44 d9 16 00 mov 0x16d944,%eax <== NOT EXECUTED 12b65f: 85 c0 test %eax,%eax <== NOT EXECUTED 12b661: 74 0c je 12b66f <== NOT EXECUTED fclose(group_fp); 12b663: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b666: 50 push %eax <== NOT EXECUTED 12b667: e8 1c 5f 01 00 call 141588 <== NOT EXECUTED 12b66c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 12b66f: c9 leave <== NOT EXECUTED 12b670: c3 ret <== NOT EXECUTED 0012b674 : fclose(passwd_fp); passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { 12b674: 55 push %ebp <== NOT EXECUTED 12b675: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b677: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED if (passwd_fp != NULL) 12b67a: a1 44 d8 16 00 mov 0x16d844,%eax <== NOT EXECUTED 12b67f: 85 c0 test %eax,%eax <== NOT EXECUTED 12b681: 74 0c je 12b68f <== NOT EXECUTED fclose(passwd_fp); 12b683: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b686: 50 push %eax <== NOT EXECUTED 12b687: e8 fc 5e 01 00 call 141588 <== NOT EXECUTED 12b68c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 12b68f: c9 leave <== NOT EXECUTED 12b690: c3 ret <== NOT EXECUTED 001097a4 : * 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) { 1097a4: 55 push %ebp <== NOT EXECUTED 1097a5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 1097a7: 57 push %edi <== NOT EXECUTED 1097a8: 56 push %esi <== NOT EXECUTED 1097a9: 53 push %ebx <== NOT EXECUTED 1097aa: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED 1097ad: 89 c3 mov %eax,%ebx <== NOT EXECUTED 1097af: 89 d7 mov %edx,%edi <== NOT EXECUTED if (tty->ccount == 0) 1097b1: 8b 48 20 mov 0x20(%eax),%ecx <== NOT EXECUTED 1097b4: 85 c9 test %ecx,%ecx <== NOT EXECUTED 1097b6: 0f 84 84 00 00 00 je 109840 <== NOT EXECUTED return; if (lineFlag) { 1097bc: 85 d2 test %edx,%edx <== NOT EXECUTED 1097be: 0f 85 84 00 00 00 jne 109848 <== NOT EXECUTED 1097c4: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED 1097c7: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED 1097ca: eb 1d jmp 1097e9 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 1097cc: 80 e6 02 and $0x2,%dh <== NOT EXECUTED 1097cf: 0f 85 37 01 00 00 jne 10990c <== NOT EXECUTED 1097d5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 1097d8: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 1097db: 85 d2 test %edx,%edx <== NOT EXECUTED 1097dd: 74 61 je 109840 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 1097df: 8b 4b 20 mov 0x20(%ebx),%ecx <== NOT EXECUTED 1097e2: 85 c9 test %ecx,%ecx <== NOT EXECUTED 1097e4: 74 5a je 109840 <== NOT EXECUTED 1097e6: 8b 53 3c mov 0x3c(%ebx),%edx <== NOT EXECUTED unsigned char c = tty->cbuf[--tty->ccount]; 1097e9: 8b 7b 1c mov 0x1c(%ebx),%edi <== NOT EXECUTED 1097ec: 49 dec %ecx <== NOT EXECUTED 1097ed: 89 4b 20 mov %ecx,0x20(%ebx) <== NOT EXECUTED 1097f0: 8a 04 0f mov (%edi,%ecx,1),%al <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 1097f3: f6 c2 08 test $0x8,%dl <== NOT EXECUTED 1097f6: 74 e0 je 1097d8 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 1097f8: 8b 75 e4 mov -0x1c(%ebp),%esi <== NOT EXECUTED 1097fb: 85 f6 test %esi,%esi <== NOT EXECUTED 1097fd: 75 09 jne 109808 <== NOT EXECUTED 1097ff: f6 c2 10 test $0x10,%dl <== NOT EXECUTED 109802: 0f 84 f0 00 00 00 je 1098f8 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { 109808: 3c 09 cmp $0x9,%al <== NOT EXECUTED 10980a: 74 58 je 109864 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 10980c: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 10980f: 8d 70 01 lea 0x1(%eax),%esi <== NOT EXECUTED 109812: a1 a8 30 12 00 mov 0x1230a8,%eax <== NOT EXECUTED 109817: f6 04 30 20 testb $0x20,(%eax,%esi,1) <== NOT EXECUTED 10981b: 75 af jne 1097cc <== 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); 10981d: 51 push %ecx <== NOT EXECUTED 10981e: 53 push %ebx <== NOT EXECUTED 10981f: 6a 03 push $0x3 <== NOT EXECUTED 109821: 68 76 f9 11 00 push $0x11f976 <== NOT EXECUTED 109826: e8 a5 fc ff ff call 1094d0 <== NOT EXECUTED if (tty->column) 10982b: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED 10982e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109831: 85 c0 test %eax,%eax <== NOT EXECUTED 109833: 74 a3 je 1097d8 <== NOT EXECUTED tty->column--; 109835: 48 dec %eax <== NOT EXECUTED 109836: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED } } } if (!lineFlag) 109839: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10983c: 85 d2 test %edx,%edx <== NOT EXECUTED 10983e: 75 9f jne 1097df <== NOT EXECUTED break; } } 109840: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109843: 5b pop %ebx <== NOT EXECUTED 109844: 5e pop %esi <== NOT EXECUTED 109845: 5f pop %edi <== NOT EXECUTED 109846: c9 leave <== NOT EXECUTED 109847: 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)) { 109848: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED 10984b: f6 c2 08 test $0x8,%dl <== NOT EXECUTED 10984e: 0f 84 94 00 00 00 je 1098e8 <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 109854: f6 c2 10 test $0x10,%dl <== NOT EXECUTED 109857: 0f 84 eb 00 00 00 je 109948 <== NOT EXECUTED 10985d: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED 109860: eb 87 jmp 1097e9 <== NOT EXECUTED 109862: 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; 109864: 8b 73 2c mov 0x2c(%ebx),%esi <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 109867: 85 c9 test %ecx,%ecx <== NOT EXECUTED 109869: 74 46 je 1098b1 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 10986b: a1 a8 30 12 00 mov 0x1230a8,%eax <== NOT EXECUTED 109870: 89 45 dc mov %eax,-0x24(%ebp) <== NOT EXECUTED 109873: 31 c0 xor %eax,%eax <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 109875: 81 e2 00 02 00 00 and $0x200,%edx <== NOT EXECUTED 10987b: 89 55 e0 mov %edx,-0x20(%ebp) <== NOT EXECUTED 10987e: 89 5d d8 mov %ebx,-0x28(%ebp) <== NOT EXECUTED 109881: 8b 5d dc mov -0x24(%ebp),%ebx <== NOT EXECUTED 109884: eb 10 jmp 109896 <== NOT EXECUTED 109886: 66 90 xchg %ax,%ax <== NOT EXECUTED 109888: 8b 55 e0 mov -0x20(%ebp),%edx <== NOT EXECUTED 10988b: 85 d2 test %edx,%edx <== NOT EXECUTED 10988d: 74 03 je 109892 <== NOT EXECUTED col += 2; 10988f: 83 c6 02 add $0x2,%esi <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 109892: 39 c1 cmp %eax,%ecx <== NOT EXECUTED 109894: 74 18 je 1098ae <== NOT EXECUTED c = tty->cbuf[i++]; 109896: 8a 14 07 mov (%edi,%eax,1),%dl <== NOT EXECUTED 109899: 40 inc %eax <== NOT EXECUTED if (c == '\t') { 10989a: 80 fa 09 cmp $0x9,%dl <== NOT EXECUTED 10989d: 74 41 je 1098e0 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 10989f: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED 1098a2: f6 44 13 01 20 testb $0x20,0x1(%ebx,%edx,1) <== NOT EXECUTED 1098a7: 75 df jne 109888 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; 1098a9: 46 inc %esi <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 1098aa: 39 c1 cmp %eax,%ecx <== NOT EXECUTED 1098ac: 75 e8 jne 109896 <== NOT EXECUTED 1098ae: 8b 5d d8 mov -0x28(%ebp),%ebx <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 1098b1: 3b 73 28 cmp 0x28(%ebx),%esi <== NOT EXECUTED 1098b4: 0f 8d 1e ff ff ff jge 1097d8 <== NOT EXECUTED 1098ba: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 1098bc: 50 push %eax <== NOT EXECUTED 1098bd: 53 push %ebx <== NOT EXECUTED 1098be: 6a 01 push $0x1 <== NOT EXECUTED 1098c0: 68 78 f9 11 00 push $0x11f978 <== NOT EXECUTED 1098c5: e8 06 fc ff ff call 1094d0 <== NOT EXECUTED tty->column--; 1098ca: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED 1098cd: 48 dec %eax <== NOT EXECUTED 1098ce: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 1098d1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1098d4: 39 c6 cmp %eax,%esi <== NOT EXECUTED 1098d6: 7c e4 jl 1098bc <== NOT EXECUTED 1098d8: e9 fb fe ff ff jmp 1097d8 <== NOT EXECUTED 1098dd: 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; 1098e0: 83 ce 07 or $0x7,%esi <== NOT EXECUTED 1098e3: 46 inc %esi <== NOT EXECUTED 1098e4: eb ac jmp 109892 <== NOT EXECUTED 1098e6: 66 90 xchg %ax,%ax <== NOT EXECUTED { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { tty->ccount = 0; 1098e8: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) <== NOT EXECUTED } } if (!lineFlag) break; } } 1098ef: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1098f2: 5b pop %ebx <== NOT EXECUTED 1098f3: 5e pop %esi <== NOT EXECUTED 1098f4: 5f pop %edi <== NOT EXECUTED 1098f5: c9 leave <== NOT EXECUTED 1098f6: c3 ret <== NOT EXECUTED 1098f7: 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); 1098f8: 0f b6 43 43 movzbl 0x43(%ebx),%eax <== NOT EXECUTED 1098fc: 89 da mov %ebx,%edx <== NOT EXECUTED } } if (!lineFlag) break; } } 1098fe: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109901: 5b pop %ebx <== NOT EXECUTED 109902: 5e pop %esi <== NOT EXECUTED 109903: 5f pop %edi <== NOT EXECUTED 109904: 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); 109905: e9 36 fe ff ff jmp 109740 <== NOT EXECUTED 10990a: 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); 10990c: 57 push %edi <== NOT EXECUTED 10990d: 53 push %ebx <== NOT EXECUTED 10990e: 6a 03 push $0x3 <== NOT EXECUTED 109910: 68 76 f9 11 00 push $0x11f976 <== NOT EXECUTED 109915: e8 b6 fb ff ff call 1094d0 <== NOT EXECUTED if (tty->column) 10991a: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED 10991d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109920: 85 c0 test %eax,%eax <== NOT EXECUTED 109922: 74 04 je 109928 <== NOT EXECUTED tty->column--; 109924: 48 dec %eax <== NOT EXECUTED 109925: 89 43 28 mov %eax,0x28(%ebx) <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 109928: a1 a8 30 12 00 mov 0x1230a8,%eax <== NOT EXECUTED 10992d: f6 04 30 20 testb $0x20,(%eax,%esi,1) <== NOT EXECUTED 109931: 0f 84 e6 fe ff ff je 10981d <== NOT EXECUTED 109937: f6 43 3d 02 testb $0x2,0x3d(%ebx) <== NOT EXECUTED 10993b: 0f 85 dc fe ff ff jne 10981d <== NOT EXECUTED 109941: e9 92 fe ff ff jmp 1097d8 <== NOT EXECUTED 109946: 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; 109948: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 10994f: 0f b6 40 44 movzbl 0x44(%eax),%eax <== NOT EXECUTED 109953: 89 da mov %ebx,%edx <== NOT EXECUTED 109955: e8 e6 fd ff ff call 109740 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 10995a: f6 43 3c 20 testb $0x20,0x3c(%ebx) <== NOT EXECUTED 10995e: 0f 84 dc fe ff ff je 109840 <== NOT EXECUTED echo ('\n', tty); 109964: 89 da mov %ebx,%edx <== NOT EXECUTED 109966: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED 10996b: eb 91 jmp 1098fe <== NOT EXECUTED 0013c068 : #include int fchdir( int fd ) { 13c068: 55 push %ebp <== NOT EXECUTED 13c069: 89 e5 mov %esp,%ebp <== NOT EXECUTED 13c06b: 57 push %edi <== NOT EXECUTED 13c06c: 56 push %esi <== NOT EXECUTED 13c06d: 53 push %ebx <== NOT EXECUTED 13c06e: 83 ec 4c sub $0x4c,%esp <== NOT EXECUTED 13c071: 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 ); 13c074: 3b 1d ec 61 16 00 cmp 0x1661ec,%ebx <== NOT EXECUTED 13c07a: 0f 83 c8 00 00 00 jae 13c148 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 13c080: c1 e3 06 shl $0x6,%ebx <== NOT EXECUTED 13c083: 03 1d 58 dd 16 00 add 0x16dd58,%ebx <== NOT EXECUTED rtems_libio_check_is_open(iop); 13c089: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 13c08c: f6 c4 01 test $0x1,%ah <== NOT EXECUTED 13c08f: 0f 84 b3 00 00 00 je 13c148 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 13c095: a8 02 test $0x2,%al <== NOT EXECUTED 13c097: 0f 84 db 00 00 00 je 13c178 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 13c09d: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED 13c0a0: 85 c0 test %eax,%eax <== NOT EXECUTED 13c0a2: 0f 84 e2 00 00 00 je 13c18a <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 13c0a8: 8b 40 10 mov 0x10(%eax),%eax <== NOT EXECUTED 13c0ab: 85 c0 test %eax,%eax <== NOT EXECUTED 13c0ad: 0f 84 d7 00 00 00 je 13c18a <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 13c0b3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 13c0b6: 83 c3 18 add $0x18,%ebx <== NOT EXECUTED 13c0b9: 53 push %ebx <== NOT EXECUTED 13c0ba: ff d0 call *%eax <== NOT EXECUTED 13c0bc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 13c0bf: 48 dec %eax <== NOT EXECUTED 13c0c0: 75 72 jne 13c134 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 13c0c2: a1 24 83 16 00 mov 0x168324,%eax <== NOT EXECUTED 13c0c7: 8d 55 c0 lea -0x40(%ebp),%edx <== NOT EXECUTED 13c0ca: 89 55 b4 mov %edx,-0x4c(%ebp) <== NOT EXECUTED 13c0cd: 8d 70 04 lea 0x4(%eax),%esi <== NOT EXECUTED 13c0d0: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 13c0d5: 89 d7 mov %edx,%edi <== NOT EXECUTED 13c0d7: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 13c0d9: 8d 78 04 lea 0x4(%eax),%edi <== NOT EXECUTED 13c0dc: b1 05 mov $0x5,%cl <== NOT EXECUTED 13c0de: 89 de mov %ebx,%esi <== NOT EXECUTED 13c0e0: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 13c0e2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 13c0e5: 6a 00 push $0x0 <== NOT EXECUTED 13c0e7: 8d 75 d4 lea -0x2c(%ebp),%esi <== NOT EXECUTED 13c0ea: 56 push %esi <== NOT EXECUTED 13c0eb: 6a 00 push $0x0 <== NOT EXECUTED 13c0ed: 6a 01 push $0x1 <== NOT EXECUTED 13c0ef: 68 fc ab 15 00 push $0x15abfc <== NOT EXECUTED 13c0f4: e8 b3 0c fd ff call 10cdac <== NOT EXECUTED 13c0f9: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 13c0fc: 85 c0 test %eax,%eax <== NOT EXECUTED 13c0fe: 75 5c jne 13c15c <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 13c100: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 13c103: 85 c0 test %eax,%eax <== NOT EXECUTED 13c105: 74 13 je 13c11a <== NOT EXECUTED 13c107: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 13c10a: 85 c0 test %eax,%eax <== NOT EXECUTED 13c10c: 74 0c je 13c11a <== NOT EXECUTED 13c10e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 13c111: 8d 55 c0 lea -0x40(%ebp),%edx <== NOT EXECUTED 13c114: 52 push %edx <== NOT EXECUTED 13c115: ff d0 call *%eax <== NOT EXECUTED 13c117: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_current = loc; 13c11a: 8b 3d 24 83 16 00 mov 0x168324,%edi <== NOT EXECUTED 13c120: 83 c7 04 add $0x4,%edi <== NOT EXECUTED 13c123: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 13c128: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 13c12a: 31 c0 xor %eax,%eax <== NOT EXECUTED return 0; } 13c12c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 13c12f: 5b pop %ebx <== NOT EXECUTED 13c130: 5e pop %esi <== NOT EXECUTED 13c131: 5f pop %edi <== NOT EXECUTED 13c132: c9 leave <== NOT EXECUTED 13c133: 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 ); 13c134: e8 03 53 00 00 call 14143c <__errno> <== NOT EXECUTED 13c139: c7 00 14 00 00 00 movl $0x14,(%eax) <== NOT EXECUTED 13c13f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13c144: eb e6 jmp 13c12c <== NOT EXECUTED 13c146: 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); 13c148: e8 ef 52 00 00 call 14143c <__errno> <== NOT EXECUTED 13c14d: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 13c153: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13c158: eb d2 jmp 13c12c <== NOT EXECUTED 13c15a: 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; 13c15c: 8b 3d 24 83 16 00 mov 0x168324,%edi <== NOT EXECUTED 13c162: 83 c7 04 add $0x4,%edi <== NOT EXECUTED 13c165: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 13c16a: 8b 75 b4 mov -0x4c(%ebp),%esi <== NOT EXECUTED 13c16d: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 13c16f: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return -1; 13c174: eb b6 jmp 13c12c <== NOT EXECUTED 13c176: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 13c178: e8 bf 52 00 00 call 14143c <__errno> <== NOT EXECUTED 13c17d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 13c183: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13c188: eb a2 jmp 13c12c <== 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 ); 13c18a: e8 ad 52 00 00 call 14143c <__errno> <== NOT EXECUTED 13c18f: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 13c195: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 13c19a: eb 90 jmp 13c12c <== NOT EXECUTED 0012b348 : int fchmod( int fd, mode_t mode ) { 12b348: 55 push %ebp <== NOT EXECUTED 12b349: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b34b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12b34e: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 12b351: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 12b354: 3b 05 ec 61 16 00 cmp 0x1661ec,%eax <== NOT EXECUTED 12b35a: 73 34 jae 12b390 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 12b35c: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 12b35f: 03 05 58 dd 16 00 add 0x16dd58,%eax <== NOT EXECUTED rtems_libio_check_is_open(iop); 12b365: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED 12b368: f6 c6 01 test $0x1,%dh <== NOT EXECUTED 12b36b: 74 23 je 12b390 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 12b36d: 83 e2 04 and $0x4,%edx <== NOT EXECUTED 12b370: 74 32 je 12b3a4 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 12b372: 8b 50 3c mov 0x3c(%eax),%edx <== NOT EXECUTED 12b375: 8b 52 1c mov 0x1c(%edx),%edx <== NOT EXECUTED 12b378: 85 d2 test %edx,%edx <== NOT EXECUTED 12b37a: 74 35 je 12b3b1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 12b37c: 8b 50 20 mov 0x20(%eax),%edx <== NOT EXECUTED 12b37f: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED 12b382: 83 c0 18 add $0x18,%eax <== NOT EXECUTED 12b385: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 12b388: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED } 12b38b: 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 ); 12b38c: ff e0 jmp *%eax <== NOT EXECUTED 12b38e: 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); 12b390: e8 a7 60 01 00 call 14143c <__errno> <== NOT EXECUTED 12b395: 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 ); } 12b39b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 12b3a0: c9 leave <== NOT EXECUTED 12b3a1: c3 ret <== NOT EXECUTED 12b3a2: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 12b3a4: e8 93 60 01 00 call 14143c <__errno> <== NOT EXECUTED 12b3a9: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12b3af: eb ea jmp 12b39b <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b3b1: e8 86 60 01 00 call 14143c <__errno> <== NOT EXECUTED 12b3b6: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12b3bc: eb dd jmp 12b39b <== NOT EXECUTED 0012b3c0 : int fchown( int fd, uid_t owner, gid_t group ) { 12b3c0: 55 push %ebp <== NOT EXECUTED 12b3c1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b3c3: 53 push %ebx <== NOT EXECUTED 12b3c4: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12b3c7: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 12b3ca: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 12b3cd: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 12b3d0: 3b 05 ec 61 16 00 cmp 0x1661ec,%eax <== NOT EXECUTED 12b3d6: 73 38 jae 12b410 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 12b3d8: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 12b3db: 03 05 58 dd 16 00 add 0x16dd58,%eax <== NOT EXECUTED rtems_libio_check_is_open(iop); 12b3e1: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED 12b3e4: f6 c6 01 test $0x1,%dh <== NOT EXECUTED 12b3e7: 74 27 je 12b410 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 12b3e9: 83 e2 04 and $0x4,%edx <== NOT EXECUTED 12b3ec: 74 36 je 12b424 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 12b3ee: 8b 50 24 mov 0x24(%eax),%edx <== NOT EXECUTED 12b3f1: 8b 52 18 mov 0x18(%edx),%edx <== NOT EXECUTED 12b3f4: 85 d2 test %edx,%edx <== NOT EXECUTED 12b3f6: 74 39 je 12b431 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 12b3f8: 0f b7 db movzwl %bx,%ebx <== NOT EXECUTED 12b3fb: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED 12b3fe: 0f b7 c9 movzwl %cx,%ecx <== NOT EXECUTED 12b401: 89 4d 0c mov %ecx,0xc(%ebp) <== NOT EXECUTED 12b404: 83 c0 18 add $0x18,%eax <== NOT EXECUTED 12b407: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } 12b40a: 59 pop %ecx <== NOT EXECUTED 12b40b: 5b pop %ebx <== NOT EXECUTED 12b40c: 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 ); 12b40d: ff e2 jmp *%edx <== NOT EXECUTED 12b40f: 90 nop <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 12b410: e8 27 60 01 00 call 14143c <__errno> <== NOT EXECUTED 12b415: 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 ); } 12b41b: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 12b420: 5a pop %edx <== NOT EXECUTED 12b421: 5b pop %ebx <== NOT EXECUTED 12b422: c9 leave <== NOT EXECUTED 12b423: 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 ); 12b424: e8 13 60 01 00 call 14143c <__errno> <== NOT EXECUTED 12b429: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12b42f: eb ea jmp 12b41b <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b431: e8 06 60 01 00 call 14143c <__errno> <== NOT EXECUTED 12b436: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12b43c: eb dd jmp 12b41b <== NOT EXECUTED 0013c19c : int fcntl( int fd, int cmd, ... ) { 13c19c: 55 push %ebp 13c19d: 89 e5 mov %esp,%ebp 13c19f: 57 push %edi 13c1a0: 56 push %esi 13c1a1: 53 push %ebx 13c1a2: 83 ec 1c sub $0x1c,%esp 13c1a5: 8b 5d 08 mov 0x8(%ebp),%ebx 13c1a8: 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, ...)); 13c1ab: 8d 7d 10 lea 0x10(%ebp),%edi int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 13c1ae: 8b 35 ec 61 16 00 mov 0x1661ec,%esi 13c1b4: 39 f3 cmp %esi,%ebx 13c1b6: 0f 83 3c 01 00 00 jae 13c2f8 iop = rtems_libio_iop( fd ); 13c1bc: a1 58 dd 16 00 mov 0x16dd58,%eax 13c1c1: c1 e3 06 shl $0x6,%ebx 13c1c4: 8d 1c 18 lea (%eax,%ebx,1),%ebx rtems_libio_check_is_open(iop); 13c1c7: 8b 4b 14 mov 0x14(%ebx),%ecx 13c1ca: f6 c5 01 test $0x1,%ch 13c1cd: 0f 84 25 01 00 00 je 13c2f8 /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 13c1d3: 83 fa 09 cmp $0x9,%edx 13c1d6: 76 14 jbe 13c1ec errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; 13c1d8: e8 5f 52 00 00 call 14143c <__errno> 13c1dd: c7 00 16 00 00 00 movl $0x16,(%eax) 13c1e3: be ff ff ff ff mov $0xffffffff,%esi 13c1e8: eb 1a jmp 13c204 13c1ea: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 13c1ec: ff 24 95 4c 28 16 00 jmp *0x16284c(,%edx,4) 13c1f3: 90 nop <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 13c1f4: e8 43 52 00 00 call 14143c <__errno> 13c1f9: c7 00 86 00 00 00 movl $0x86,(%eax) 13c1ff: 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; } 13c204: 89 f0 mov %esi,%eax 13c206: 8d 65 f4 lea -0xc(%ebp),%esp 13c209: 5b pop %ebx 13c20a: 5e pop %esi 13c20b: 5f pop %edi 13c20c: c9 leave 13c20d: c3 ret 13c20e: 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 ) ); 13c210: 83 ec 0c sub $0xc,%esp 13c213: ff 37 pushl (%edi) 13c215: 89 55 e0 mov %edx,-0x20(%ebp) 13c218: e8 fb 0f fd ff call 10d218 /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 13c21d: 25 01 02 00 00 and $0x201,%eax 13c222: 8b 4b 14 mov 0x14(%ebx),%ecx 13c225: 81 e1 fe fd ff ff and $0xfffffdfe,%ecx 13c22b: 09 c8 or %ecx,%eax 13c22d: 89 43 14 mov %eax,0x14(%ebx) 13c230: 31 f6 xor %esi,%esi 13c232: 83 c4 10 add $0x10,%esp 13c235: 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) { 13c238: 8b 43 3c mov 0x3c(%ebx),%eax 13c23b: 8b 40 30 mov 0x30(%eax),%eax 13c23e: 85 c0 test %eax,%eax 13c240: 74 c2 je 13c204 int err = (*iop->handlers->fcntl_h)( cmd, iop ); 13c242: 83 ec 08 sub $0x8,%esp 13c245: 53 push %ebx 13c246: 52 push %edx 13c247: ff d0 call *%eax 13c249: 89 c3 mov %eax,%ebx if (err) { 13c24b: 83 c4 10 add $0x10,%esp 13c24e: 85 c0 test %eax,%eax 13c250: 74 b2 je 13c204 errno = err; 13c252: e8 e5 51 00 00 call 14143c <__errno> <== NOT EXECUTED 13c257: 89 18 mov %ebx,(%eax) <== NOT EXECUTED 13c259: 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; } 13c25e: 89 f0 mov %esi,%eax <== NOT EXECUTED 13c260: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 13c263: 5b pop %ebx <== NOT EXECUTED 13c264: 5e pop %esi <== NOT EXECUTED 13c265: 5f pop %edi <== NOT EXECUTED 13c266: c9 leave <== NOT EXECUTED 13c267: 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 ); 13c268: 83 ec 0c sub $0xc,%esp 13c26b: 51 push %ecx 13c26c: 89 55 e0 mov %edx,-0x20(%ebp) 13c26f: e8 b8 0d fd ff call 10d02c 13c274: 89 c6 mov %eax,%esi 13c276: 83 c4 10 add $0x10,%esp 13c279: 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) { 13c27c: 85 f6 test %esi,%esi 13c27e: 79 b8 jns 13c238 13c280: eb 82 jmp 13c204 <== NOT EXECUTED 13c282: 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 ) ) 13c284: 8b 07 mov (%edi),%eax 13c286: 85 c0 test %eax,%eax 13c288: 74 52 je 13c2dc iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 13c28a: 80 cd 08 or $0x8,%ch 13c28d: 89 4b 14 mov %ecx,0x14(%ebx) 13c290: 31 f6 xor %esi,%esi 13c292: eb a4 jmp 13c238 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); 13c294: 89 ce mov %ecx,%esi 13c296: c1 ee 0b shr $0xb,%esi 13c299: 83 e6 01 and $0x1,%esi 13c29c: eb 9a jmp 13c238 13c29e: 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 ); 13c2a0: 8b 3f mov (%edi),%edi if ( fd2 ) 13c2a2: 85 ff test %edi,%edi 13c2a4: 74 6a je 13c310 diop = rtems_libio_iop( fd2 ); 13c2a6: 39 fe cmp %edi,%esi <== NOT EXECUTED 13c2a8: 77 42 ja 13c2ec <== NOT EXECUTED 13c2aa: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED 13c2b1: 31 ff xor %edi,%edi <== NOT EXECUTED ret = -1; break; } } diop->handlers = iop->handlers; 13c2b3: 8b 73 3c mov 0x3c(%ebx),%esi 13c2b6: 89 77 3c mov %esi,0x3c(%edi) diop->file_info = iop->file_info; 13c2b9: 8b 73 38 mov 0x38(%ebx),%esi 13c2bc: 89 77 38 mov %esi,0x38(%edi) diop->flags = iop->flags; 13c2bf: 89 4f 14 mov %ecx,0x14(%edi) diop->pathinfo = iop->pathinfo; 13c2c2: 83 c7 18 add $0x18,%edi 13c2c5: 8d 73 18 lea 0x18(%ebx),%esi 13c2c8: b9 05 00 00 00 mov $0x5,%ecx 13c2cd: f3 a5 rep movsl %ds:(%esi),%es:(%edi) ret = (int) (diop - rtems_libio_iops); 13c2cf: 8b 75 e4 mov -0x1c(%ebp),%esi 13c2d2: 29 c6 sub %eax,%esi 13c2d4: c1 fe 06 sar $0x6,%esi 13c2d7: eb a3 jmp 13c27c 13c2d9: 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; 13c2dc: 80 e5 f7 and $0xf7,%ch <== NOT EXECUTED 13c2df: 89 4b 14 mov %ecx,0x14(%ebx) <== NOT EXECUTED 13c2e2: 31 f6 xor %esi,%esi <== NOT EXECUTED 13c2e4: e9 4f ff ff ff jmp 13c238 <== NOT EXECUTED 13c2e9: 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 ); 13c2ec: c1 e7 06 shl $0x6,%edi <== NOT EXECUTED 13c2ef: 8d 3c 38 lea (%eax,%edi,1),%edi <== NOT EXECUTED 13c2f2: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED 13c2f5: eb bc jmp 13c2b3 <== NOT EXECUTED 13c2f7: 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); 13c2f8: e8 3f 51 00 00 call 14143c <__errno> <== NOT EXECUTED 13c2fd: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 13c303: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 13c308: e9 f7 fe ff ff jmp 13c204 <== NOT EXECUTED 13c30d: 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(); 13c310: 89 55 e0 mov %edx,-0x20(%ebp) 13c313: e8 74 0e fd ff call 10d18c 13c318: 89 c7 mov %eax,%edi if ( diop == 0 ) { 13c31a: 85 c0 test %eax,%eax 13c31c: 8b 55 e0 mov -0x20(%ebp),%edx 13c31f: 0f 84 34 ff ff ff je 13c259 13c325: 89 45 e4 mov %eax,-0x1c(%ebp) 13c328: a1 58 dd 16 00 mov 0x16dd58,%eax 13c32d: 8b 4b 14 mov 0x14(%ebx),%ecx 13c330: eb 81 jmp 13c2b3 0010912c : #include int fdatasync( int fd ) { 10912c: 55 push %ebp 10912d: 89 e5 mov %esp,%ebp 10912f: 83 ec 08 sub $0x8,%esp 109132: 8b 45 08 mov 0x8(%ebp),%eax rtems_libio_t *iop; rtems_libio_check_fd( fd ); 109135: 3b 05 ec 55 12 00 cmp 0x1255ec,%eax 10913b: 73 27 jae 109164 iop = rtems_libio_iop( fd ); 10913d: c1 e0 06 shl $0x6,%eax 109140: 03 05 60 96 12 00 add 0x129660,%eax rtems_libio_check_is_open(iop); 109146: 8b 50 14 mov 0x14(%eax),%edx 109149: f6 c6 01 test $0x1,%dh 10914c: 74 16 je 109164 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 10914e: 83 e2 04 and $0x4,%edx 109151: 74 25 je 109178 /* * Now process the fdatasync(). */ if ( !iop->handlers->fdatasync_h ) 109153: 8b 50 3c mov 0x3c(%eax),%edx 109156: 8b 52 2c mov 0x2c(%edx),%edx 109159: 85 d2 test %edx,%edx 10915b: 74 28 je 109185 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fdatasync_h)( iop ); 10915d: 89 45 08 mov %eax,0x8(%ebp) } 109160: c9 leave */ if ( !iop->handlers->fdatasync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fdatasync_h)( iop ); 109161: ff e2 jmp *%edx 109163: 90 nop <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 109164: e8 3f ba 00 00 call 114ba8 <__errno> 109169: 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 ); } 10916f: b8 ff ff ff ff mov $0xffffffff,%eax 109174: c9 leave 109175: c3 ret 109176: 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 ); 109178: e8 2b ba 00 00 call 114ba8 <__errno> 10917d: c7 00 16 00 00 00 movl $0x16,(%eax) 109183: eb ea jmp 10916f /* * Now process the fdatasync(). */ if ( !iop->handlers->fdatasync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 109185: e8 1e ba 00 00 call 114ba8 <__errno> 10918a: c7 00 86 00 00 00 movl $0x86,(%eax) 109190: eb dd jmp 10916f 00111184 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 111184: 55 push %ebp 111185: 89 e5 mov %esp,%ebp 111187: 57 push %edi 111188: 56 push %esi 111189: 53 push %ebx 11118a: 83 ec 30 sub $0x30,%esp 11118d: 8b 75 08 mov 0x8(%ebp),%esi ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 111190: 6a 00 push $0x0 111192: 6a 00 push $0x0 111194: ff 35 8c 4f 12 00 pushl 0x124f8c 11119a: e8 01 a4 ff ff call 10b5a0 11119f: 83 c4 10 add $0x10,%esp 1111a2: 85 c0 test %eax,%eax 1111a4: 0f 85 82 00 00 00 jne 11122c RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 1111aa: 8b 1e mov (%esi),%ebx <== NOT EXECUTED if (pipe == NULL) { 1111ac: 85 db test %ebx,%ebx <== NOT EXECUTED 1111ae: 0f 84 d0 01 00 00 je 111384 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 1111b4: 57 push %edi <== NOT EXECUTED 1111b5: 6a 00 push $0x0 <== NOT EXECUTED 1111b7: 6a 00 push $0x0 <== NOT EXECUTED 1111b9: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 1111bc: e8 df a3 ff ff call 10b5a0 <== NOT EXECUTED 1111c1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1111c4: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED 1111c7: 19 ff sbb %edi,%edi <== NOT EXECUTED 1111c9: f7 d7 not %edi <== NOT EXECUTED 1111cb: 83 e7 fc and $0xfffffffc,%edi <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 1111ce: 8b 0e mov (%esi),%ecx <== NOT EXECUTED 1111d0: 85 c9 test %ecx,%ecx <== NOT EXECUTED 1111d2: 0f 84 d8 00 00 00 je 1112b0 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 1111d8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1111db: ff 35 8c 4f 12 00 pushl 0x124f8c <== NOT EXECUTED 1111e1: e8 b6 a4 ff ff call 10b69c <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 1111e6: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1111e9: 85 ff test %edi,%edi <== NOT EXECUTED 1111eb: 75 34 jne 111221 <== NOT EXECUTED return err; pipe = *pipep; 1111ed: 8b 1e mov (%esi),%ebx <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { 1111ef: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 1111f2: 8b 50 14 mov 0x14(%eax),%edx <== NOT EXECUTED 1111f5: 89 d0 mov %edx,%eax <== NOT EXECUTED 1111f7: 83 e0 06 and $0x6,%eax <== NOT EXECUTED 1111fa: 83 f8 04 cmp $0x4,%eax <== NOT EXECUTED 1111fd: 74 3d je 11123c <== NOT EXECUTED 1111ff: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED 111202: 0f 84 3c 01 00 00 je 111344 <== NOT EXECUTED 111208: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED 11120b: 0f 84 bf 00 00 00 je 1112d0 <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); 111211: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111214: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111217: e8 80 a4 ff ff call 10b69c <== NOT EXECUTED 11121c: 31 ff xor %edi,%edi <== NOT EXECUTED return 0; 11121e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED out_error: pipe_release(pipep, iop); return err; } 111221: 89 f8 mov %edi,%eax <== NOT EXECUTED 111223: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 111226: 5b pop %ebx <== NOT EXECUTED 111227: 5e pop %esi <== NOT EXECUTED 111228: 5f pop %edi <== NOT EXECUTED 111229: c9 leave <== NOT EXECUTED 11122a: c3 ret <== NOT EXECUTED 11122b: 90 nop <== NOT EXECUTED ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 11122c: bf fc ff ff ff mov $0xfffffffc,%edi return 0; out_error: pipe_release(pipep, iop); return err; } 111231: 89 f8 mov %edi,%eax 111233: 8d 65 f4 lea -0xc(%ebp),%esp 111236: 5b pop %ebx 111237: 5e pop %esi 111238: 5f pop %edi 111239: c9 leave 11123a: c3 ret 11123b: 90 nop <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 11123c: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 11123f: 85 c0 test %eax,%eax <== NOT EXECUTED 111241: 75 09 jne 11124c <== NOT EXECUTED 111243: 83 e2 01 and $0x1,%edx <== NOT EXECUTED 111246: 0f 85 70 02 00 00 jne 1114bc <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; 11124c: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED if (pipe->Writers ++ == 0) 11124f: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 111252: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 111255: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED 111258: 85 c0 test %eax,%eax <== NOT EXECUTED 11125a: 0f 84 a8 02 00 00 je 111508 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); if (pipe->Readers == 0) { 111260: 8b 7b 10 mov 0x10(%ebx),%edi <== NOT EXECUTED 111263: 85 ff test %edi,%edi <== NOT EXECUTED 111265: 75 aa jne 111211 <== NOT EXECUTED prevCounter = pipe->readerCounter; 111267: 8b 7b 20 mov 0x20(%ebx),%edi <== NOT EXECUTED 11126a: eb 19 jmp 111285 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) 11126c: 50 push %eax <== NOT EXECUTED 11126d: 6a 00 push $0x0 <== NOT EXECUTED 11126f: 6a 00 push $0x0 <== NOT EXECUTED 111271: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111274: e8 27 a3 ff ff call 10b5a0 <== NOT EXECUTED 111279: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11127c: 85 c0 test %eax,%eax <== NOT EXECUTED 11127e: 75 23 jne 1112a3 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 111280: 39 7b 20 cmp %edi,0x20(%ebx) <== NOT EXECUTED 111283: 75 8c jne 111211 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); 111285: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111288: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 11128b: e8 0c a4 ff ff call 10b69c <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 111290: 5a pop %edx <== NOT EXECUTED 111291: 59 pop %ecx <== NOT EXECUTED 111292: 6a 00 push $0x0 <== NOT EXECUTED 111294: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 111297: e8 4c 07 00 00 call 1119e8 <== NOT EXECUTED 11129c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11129f: 85 c0 test %eax,%eax <== NOT EXECUTED 1112a1: 74 c9 je 11126c <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; 1112a3: bf fc ff ff ff mov $0xfffffffc,%edi <== NOT EXECUTED 1112a8: e9 14 02 00 00 jmp 1114c1 <== NOT EXECUTED 1112ad: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) 1112b0: 85 ff test %edi,%edi <== NOT EXECUTED 1112b2: 0f 85 68 02 00 00 jne 111520 <== NOT EXECUTED pipe_free(pipe); else *pipep = pipe; 1112b8: 89 1e mov %ebx,(%esi) <== NOT EXECUTED } out: rtems_semaphore_release(rtems_pipe_semaphore); 1112ba: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1112bd: ff 35 8c 4f 12 00 pushl 0x124f8c <== NOT EXECUTED 1112c3: e8 d4 a3 ff ff call 10b69c <== NOT EXECUTED 1112c8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1112cb: e9 1d ff ff ff jmp 1111ed <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 1112d0: ff 43 20 incl 0x20(%ebx) <== NOT EXECUTED if (pipe->Readers ++ == 0) 1112d3: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 1112d6: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 1112d9: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED 1112dc: 85 c0 test %eax,%eax <== NOT EXECUTED 1112de: 0f 84 0c 02 00 00 je 1114f0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); if (pipe->Writers == 0) { 1112e4: 8b 53 14 mov 0x14(%ebx),%edx <== NOT EXECUTED 1112e7: 85 d2 test %edx,%edx <== NOT EXECUTED 1112e9: 0f 85 22 ff ff ff jne 111211 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 1112ef: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 1112f2: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED 1112f6: 0f 85 15 ff ff ff jne 111211 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 1112fc: 8b 7b 24 mov 0x24(%ebx),%edi <== NOT EXECUTED 1112ff: eb 20 jmp 111321 <== NOT EXECUTED 111301: 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)) 111304: 52 push %edx <== NOT EXECUTED 111305: 6a 00 push $0x0 <== NOT EXECUTED 111307: 6a 00 push $0x0 <== NOT EXECUTED 111309: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 11130c: e8 8f a2 ff ff call 10b5a0 <== NOT EXECUTED 111311: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111314: 85 c0 test %eax,%eax <== NOT EXECUTED 111316: 75 8b jne 1112a3 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 111318: 39 7b 24 cmp %edi,0x24(%ebx) <== NOT EXECUTED 11131b: 0f 85 f0 fe ff ff jne 111211 <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 111321: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111324: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111327: e8 70 a3 ff ff call 10b69c <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 11132c: 59 pop %ecx <== NOT EXECUTED 11132d: 58 pop %eax <== NOT EXECUTED 11132e: 6a 00 push $0x0 <== NOT EXECUTED 111330: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 111333: e8 b0 06 00 00 call 1119e8 <== NOT EXECUTED 111338: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11133b: 85 c0 test %eax,%eax <== NOT EXECUTED 11133d: 74 c5 je 111304 <== NOT EXECUTED 11133f: e9 5f ff ff ff jmp 1112a3 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 111344: ff 43 20 incl 0x20(%ebx) <== NOT EXECUTED if (pipe->Readers ++ == 0) 111347: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 11134a: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 11134d: 89 53 10 mov %edx,0x10(%ebx) <== NOT EXECUTED 111350: 85 c0 test %eax,%eax <== NOT EXECUTED 111352: 0f 84 80 01 00 00 je 1114d8 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 111358: ff 43 24 incl 0x24(%ebx) <== NOT EXECUTED if (pipe->Writers ++ == 0) 11135b: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 11135e: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 111361: 89 53 14 mov %edx,0x14(%ebx) <== NOT EXECUTED 111364: 85 c0 test %eax,%eax <== NOT EXECUTED 111366: 0f 85 a5 fe ff ff jne 111211 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 11136c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11136f: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 111372: 50 push %eax <== NOT EXECUTED 111373: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 111376: e8 09 06 00 00 call 111984 <== NOT EXECUTED 11137b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11137e: e9 8e fe ff ff jmp 111211 <== NOT EXECUTED 111383: 90 nop <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 111384: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111387: 6a 34 push $0x34 <== NOT EXECUTED 111389: e8 de 6e ff ff call 10826c <== NOT EXECUTED 11138e: 89 c2 mov %eax,%edx <== NOT EXECUTED 111390: 89 c3 mov %eax,%ebx <== NOT EXECUTED if (pipe == NULL) 111392: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111395: 85 c0 test %eax,%eax <== NOT EXECUTED 111397: 0f 84 c7 01 00 00 je 111564 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 11139d: b9 34 00 00 00 mov $0x34,%ecx <== NOT EXECUTED 1113a2: 31 c0 xor %eax,%eax <== NOT EXECUTED 1113a4: 89 d7 mov %edx,%edi <== NOT EXECUTED 1113a6: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED pipe->Size = PIPE_BUF; 1113a8: c7 42 04 00 02 00 00 movl $0x200,0x4(%edx) <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 1113af: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1113b2: 68 00 02 00 00 push $0x200 <== NOT EXECUTED 1113b7: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 1113ba: e8 ad 6e ff ff call 10826c <== NOT EXECUTED 1113bf: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 1113c2: 89 02 mov %eax,(%edx) <== NOT EXECUTED if (! pipe->Buffer) 1113c4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1113c7: 85 c0 test %eax,%eax <== NOT EXECUTED 1113c9: 0f 84 a1 01 00 00 je 111570 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 1113cf: 8d 43 2c lea 0x2c(%ebx),%eax <== NOT EXECUTED 1113d2: 50 push %eax <== NOT EXECUTED 1113d3: 6a 00 push $0x0 <== NOT EXECUTED 1113d5: 6a 00 push $0x0 <== NOT EXECUTED 1113d7: 0f be 05 94 30 12 00 movsbl 0x123094,%eax <== NOT EXECUTED 1113de: 0d 00 72 49 50 or $0x50497200,%eax <== NOT EXECUTED 1113e3: 50 push %eax <== NOT EXECUTED 1113e4: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 1113e7: e8 48 04 00 00 call 111834 <== NOT EXECUTED 1113ec: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1113ef: 85 c0 test %eax,%eax <== NOT EXECUTED 1113f1: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 1113f4: 0f 85 97 00 00 00 jne 111491 <== 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( 1113fa: 8d 43 30 lea 0x30(%ebx),%eax <== NOT EXECUTED 1113fd: 50 push %eax <== NOT EXECUTED 1113fe: 6a 00 push $0x0 <== NOT EXECUTED 111400: 6a 00 push $0x0 <== NOT EXECUTED 111402: 0f be 05 94 30 12 00 movsbl 0x123094,%eax <== NOT EXECUTED 111409: 0d 00 77 49 50 or $0x50497700,%eax <== NOT EXECUTED 11140e: 50 push %eax <== NOT EXECUTED 11140f: e8 20 04 00 00 call 111834 <== NOT EXECUTED 111414: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111417: 85 c0 test %eax,%eax <== NOT EXECUTED 111419: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 11141c: 75 5f jne 11147d <== 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( 11141e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111421: 8d 43 28 lea 0x28(%ebx),%eax <== NOT EXECUTED 111424: 50 push %eax <== NOT EXECUTED 111425: 6a 00 push $0x0 <== NOT EXECUTED 111427: 6a 10 push $0x10 <== NOT EXECUTED 111429: 6a 01 push $0x1 <== NOT EXECUTED 11142b: 0f be 05 94 30 12 00 movsbl 0x123094,%eax <== NOT EXECUTED 111432: 0d 00 73 49 50 or $0x50497300,%eax <== NOT EXECUTED 111437: 50 push %eax <== NOT EXECUTED 111438: e8 eb 9e ff ff call 10b328 <== NOT EXECUTED 11143d: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 111440: 85 c0 test %eax,%eax <== NOT EXECUTED 111442: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 111445: 75 22 jne 111469 <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 111447: a0 94 30 12 00 mov 0x123094,%al <== NOT EXECUTED 11144c: 8d 50 01 lea 0x1(%eax),%edx <== NOT EXECUTED 11144f: 88 15 94 30 12 00 mov %dl,0x123094 <== NOT EXECUTED 111455: 3c 7a cmp $0x7a,%al <== NOT EXECUTED 111457: 0f 85 57 fd ff ff jne 1111b4 <== NOT EXECUTED c = 'a'; 11145d: c6 05 94 30 12 00 61 movb $0x61,0x123094 <== NOT EXECUTED 111464: e9 4b fd ff ff jmp 1111b4 <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 111469: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11146c: ff 72 30 pushl 0x30(%edx) <== NOT EXECUTED 11146f: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 111472: e8 a5 04 00 00 call 11191c <== NOT EXECUTED 111477: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11147a: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 11147d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111480: ff 72 2c pushl 0x2c(%edx) <== NOT EXECUTED 111483: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 111486: e8 91 04 00 00 call 11191c <== NOT EXECUTED 11148b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11148e: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED err_rbar: free(pipe->Buffer); 111491: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111494: ff 32 pushl (%edx) <== NOT EXECUTED 111496: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 111499: e8 7e 6b ff ff call 10801c <== NOT EXECUTED 11149e: bf fc ff ff ff mov $0xfffffffc,%edi <== NOT EXECUTED 1114a3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1114a6: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED err_buf: free(pipe); 1114a9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1114ac: 52 push %edx <== NOT EXECUTED 1114ad: e8 6a 6b ff ff call 10801c <== NOT EXECUTED 1114b2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1114b5: e9 1e fd ff ff jmp 1111d8 <== NOT EXECUTED 1114ba: 66 90 xchg %ax,%ax <== NOT EXECUTED } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 1114bc: bf fa ff ff ff mov $0xfffffffa,%edi <== NOT EXECUTED PIPE_UNLOCK(pipe); return 0; out_error: pipe_release(pipep, iop); 1114c1: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1114c4: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 1114c7: 56 push %esi <== NOT EXECUTED 1114c8: e8 a3 fb ff ff call 111070 <== NOT EXECUTED return err; 1114cd: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1114d0: e9 4c fd ff ff jmp 111221 <== NOT EXECUTED 1114d5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 1114d8: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1114db: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 1114de: 50 push %eax <== NOT EXECUTED 1114df: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 1114e2: e8 9d 04 00 00 call 111984 <== NOT EXECUTED 1114e7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1114ea: e9 69 fe ff ff jmp 111358 <== NOT EXECUTED 1114ef: 90 nop <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 1114f0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1114f3: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 1114f6: 50 push %eax <== NOT EXECUTED 1114f7: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 1114fa: e8 85 04 00 00 call 111984 <== NOT EXECUTED 1114ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111502: e9 dd fd ff ff jmp 1112e4 <== NOT EXECUTED 111507: 90 nop <== NOT EXECUTED goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); 111508: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11150b: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 11150e: 50 push %eax <== NOT EXECUTED 11150f: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 111512: e8 6d 04 00 00 call 111984 <== NOT EXECUTED 111517: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11151a: e9 41 fd ff ff jmp 111260 <== NOT EXECUTED 11151f: 90 nop <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 111520: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111523: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 111526: e8 f1 03 00 00 call 11191c <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 11152b: 5a pop %edx <== NOT EXECUTED 11152c: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 11152f: e8 e8 03 00 00 call 11191c <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 111534: 58 pop %eax <== NOT EXECUTED 111535: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111538: e8 bf 9f ff ff call 10b4fc <== NOT EXECUTED free(pipe->Buffer); 11153d: 5e pop %esi <== NOT EXECUTED 11153e: ff 33 pushl (%ebx) <== NOT EXECUTED 111540: e8 d7 6a ff ff call 10801c <== NOT EXECUTED free(pipe); 111545: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED 111548: e8 cf 6a ff ff call 10801c <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 11154d: 59 pop %ecx <== NOT EXECUTED 11154e: ff 35 8c 4f 12 00 pushl 0x124f8c <== NOT EXECUTED 111554: e8 43 a1 ff ff call 10b69c <== NOT EXECUTED 111559: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11155c: e9 c0 fc ff ff jmp 111221 <== NOT EXECUTED 111561: 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) 111564: bf f4 ff ff ff mov $0xfffffff4,%edi <== NOT EXECUTED 111569: e9 6a fc ff ff jmp 1111d8 <== NOT EXECUTED 11156e: 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) 111570: bf f4 ff ff ff mov $0xfffffff4,%edi <== NOT EXECUTED 111575: e9 2f ff ff ff jmp 1114a9 <== NOT EXECUTED 00110424 : 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)) ) { 110424: 55 push %ebp <== NOT EXECUTED 110425: 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; 110427: a1 ac dd 16 00 mov 0x16ddac,%eax <== NOT EXECUTED 11042c: 3d b0 dd 16 00 cmp $0x16ddb0,%eax <== NOT EXECUTED 110431: 74 1b je 11044e <== 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 ) { 110433: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 110436: 8b 52 10 mov 0x10(%edx),%edx <== NOT EXECUTED 110439: 39 50 18 cmp %edx,0x18(%eax) <== NOT EXECUTED 11043c: 75 07 jne 110445 <== NOT EXECUTED 11043e: eb 14 jmp 110454 <== NOT EXECUTED 110440: 39 50 18 cmp %edx,0x18(%eax) <== NOT EXECUTED 110443: 74 0f je 110454 <== 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 ) { 110445: 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; 110447: 3d b0 dd 16 00 cmp $0x16ddb0,%eax <== NOT EXECUTED 11044c: 75 f2 jne 110440 <== NOT EXECUTED 11044e: 31 c0 xor %eax,%eax <== NOT EXECUTED return true; } } return false; } 110450: c9 leave <== NOT EXECUTED 110451: c3 ret <== NOT EXECUTED 110452: 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; 110454: b0 01 mov $0x1,%al <== NOT EXECUTED return true; } } return false; } 110456: c9 leave <== NOT EXECUTED 110457: c3 ret <== NOT EXECUTED 00109194 : long fpathconf( int fd, int name ) { 109194: 55 push %ebp 109195: 89 e5 mov %esp,%ebp 109197: 83 ec 08 sub $0x8,%esp 10919a: 8b 45 08 mov 0x8(%ebp),%eax 10919d: 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); 1091a0: 3b 05 ec 55 12 00 cmp 0x1255ec,%eax 1091a6: 0f 83 9c 00 00 00 jae 109248 iop = rtems_libio_iop(fd); 1091ac: c1 e0 06 shl $0x6,%eax 1091af: 03 05 60 96 12 00 add 0x129660,%eax rtems_libio_check_is_open(iop); 1091b5: 8b 48 14 mov 0x14(%eax),%ecx 1091b8: f6 c5 01 test $0x1,%ch 1091bb: 0f 84 87 00 00 00 je 109248 rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 1091c1: 83 e1 02 and $0x2,%ecx 1091c4: 74 08 je 1091ce /* * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; 1091c6: 8b 40 28 mov 0x28(%eax),%eax switch ( name ) { 1091c9: 83 fa 0b cmp $0xb,%edx 1091cc: 76 12 jbe 1091e0 break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 1091ce: e8 d5 b9 00 00 call 114ba8 <__errno> 1091d3: c7 00 16 00 00 00 movl $0x16,(%eax) 1091d9: b8 ff ff ff ff mov $0xffffffff,%eax break; } return return_value; } 1091de: c9 leave 1091df: c3 ret * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { 1091e0: ff 24 95 18 2f 12 00 jmp *0x122f18(,%edx,4) 1091e7: 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; 1091e8: 8b 40 5c mov 0x5c(%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 break; case _PC_VDISABLE: return_value = the_limits->posix_vdisable; break; case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; 1091f0: 8b 40 50 mov 0x50(%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 break; case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; break; case _PC_VDISABLE: return_value = the_limits->posix_vdisable; 1091f8: 8b 40 64 mov 0x64(%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_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; break; case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; 109200: 8b 40 58 mov 0x58(%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 break; case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; break; case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; 109208: 8b 40 54 mov 0x54(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 10920b: c9 leave 10920c: c3 ret 10920d: 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; 109210: 8b 40 4c mov 0x4c(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 109213: c9 leave 109214: c3 ret 109215: 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; 109218: 8b 40 48 mov 0x48(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 10921b: c9 leave 10921c: c3 ret 10921d: 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; 109220: 8b 40 44 mov 0x44(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 109223: c9 leave 109224: c3 ret 109225: 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; 109228: 8b 40 40 mov 0x40(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 10922b: c9 leave 10922c: c3 ret 10922d: 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; 109230: 8b 40 3c mov 0x3c(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 109233: c9 leave 109234: c3 ret 109235: 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; 109238: 8b 40 38 mov 0x38(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 10923b: c9 leave 10923c: c3 ret 10923d: 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; 109240: 8b 40 60 mov 0x60(%eax),%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 109243: c9 leave 109244: c3 ret 109245: 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); 109248: e8 5b b9 00 00 call 114ba8 <__errno> 10924d: c7 00 09 00 00 00 movl $0x9,(%eax) 109253: b8 ff ff ff ff mov $0xffffffff,%eax rtems_set_errno_and_return_minus_one( EINVAL ); break; } return return_value; } 109258: c9 leave 109259: c3 ret 0010801c : void free( void *ptr ) { MSBUMP(free_calls, 1); 10801c: 55 push %ebp 10801d: 89 e5 mov %esp,%ebp 10801f: 53 push %ebx 108020: 83 ec 04 sub $0x4,%esp 108023: 8b 5d 08 mov 0x8(%ebp),%ebx 108026: ff 05 ec 51 12 00 incl 0x1251ec if ( !ptr ) 10802c: 85 db test %ebx,%ebx 10802e: 74 4b je 10807b /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 108030: 83 3d 20 55 12 00 03 cmpl $0x3,0x125520 108037: 74 47 je 108080 #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 108039: a1 c8 35 12 00 mov 0x1235c8,%eax 10803e: 85 c0 test %eax,%eax 108040: 74 0a je 10804c (*rtems_malloc_statistics_helpers->at_free)(ptr); 108042: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108045: 53 push %ebx <== NOT EXECUTED 108046: ff 50 08 call *0x8(%eax) <== NOT EXECUTED 108049: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 10804c: 83 ec 08 sub $0x8,%esp 10804f: 53 push %ebx 108050: ff 35 58 11 12 00 pushl 0x121158 108056: e8 29 4e 00 00 call 10ce84 <_Protected_heap_Free> 10805b: 83 c4 10 add $0x10,%esp 10805e: 84 c0 test %al,%al 108060: 75 19 jne 10807b printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end 108062: 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", 108067: ff 70 1c pushl 0x1c(%eax) <== NOT EXECUTED 10806a: ff 70 18 pushl 0x18(%eax) <== NOT EXECUTED 10806d: 53 push %ebx <== NOT EXECUTED 10806e: 68 3c f9 11 00 push $0x11f93c <== NOT EXECUTED 108073: e8 cc 0c 00 00 call 108d44 <== NOT EXECUTED 108078: 83 c4 10 add $0x10,%esp <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 10807b: 8b 5d fc mov -0x4(%ebp),%ebx 10807e: c9 leave 10807f: c3 ret /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 108080: e8 b7 00 00 00 call 10813c 108085: 84 c0 test %al,%al 108087: 75 b0 jne 108039 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 108089: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 10808c: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 10808f: 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); 108090: e9 e7 00 00 00 jmp 10817c <== NOT EXECUTED 0012c578 : * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 12c578: 55 push %ebp <== NOT EXECUTED 12c579: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c57b: 53 push %ebx <== NOT EXECUTED 12c57c: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12c57f: 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 12c582: 81 fb e0 dd 16 00 cmp $0x16dde0,%ebx <== NOT EXECUTED 12c588: 74 42 je 12c5cc <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 12c58a: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 12c58d: 85 c0 test %eax,%eax <== NOT EXECUTED 12c58f: 74 13 je 12c5a4 <== NOT EXECUTED 12c591: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c594: 85 c0 test %eax,%eax <== NOT EXECUTED 12c596: 74 0c je 12c5a4 <== NOT EXECUTED 12c598: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c59b: 8d 53 04 lea 0x4(%ebx),%edx <== NOT EXECUTED 12c59e: 52 push %edx <== NOT EXECUTED 12c59f: ff d0 call *%eax <== NOT EXECUTED 12c5a1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 12c5a4: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED 12c5a7: 85 c0 test %eax,%eax <== NOT EXECUTED 12c5a9: 74 13 je 12c5be <== NOT EXECUTED 12c5ab: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c5ae: 85 c0 test %eax,%eax <== NOT EXECUTED 12c5b0: 74 0c je 12c5be <== NOT EXECUTED 12c5b2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c5b5: 8d 53 18 lea 0x18(%ebx),%edx <== NOT EXECUTED 12c5b8: 52 push %edx <== NOT EXECUTED 12c5b9: ff d0 call *%eax <== NOT EXECUTED 12c5bb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED free(env); 12c5be: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED } } 12c5c1: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12c5c4: c9 leave <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 12c5c5: e9 96 08 fe ff jmp 10ce60 <== NOT EXECUTED 12c5ca: 66 90 xchg %ax,%ax <== NOT EXECUTED } } 12c5cc: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12c5cf: c9 leave <== NOT EXECUTED 12c5d0: c3 ret <== NOT EXECUTED 0011d640 : int fstat( int fd, struct stat *sbuf ) { 11d640: 55 push %ebp 11d641: 89 e5 mov %esp,%ebp 11d643: 57 push %edi 11d644: 53 push %ebx 11d645: 8b 55 08 mov 0x8(%ebp),%edx 11d648: 8b 5d 0c mov 0xc(%ebp),%ebx /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 11d64b: 85 db test %ebx,%ebx 11d64d: 74 66 je 11d6b5 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 11d64f: 3b 15 4c 11 12 00 cmp 0x12114c,%edx 11d655: 73 3d jae 11d694 11d657: c1 e2 06 shl $0x6,%edx 11d65a: 03 15 c0 51 12 00 add 0x1251c0,%edx rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 11d660: f6 42 15 01 testb $0x1,0x15(%edx) 11d664: 74 2e je 11d694 if ( !iop->handlers ) 11d666: 8b 42 3c mov 0x3c(%edx),%eax 11d669: 85 c0 test %eax,%eax 11d66b: 74 27 je 11d694 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 11d66d: 8b 40 18 mov 0x18(%eax),%eax 11d670: 85 c0 test %eax,%eax 11d672: 74 34 je 11d6a8 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 11d674: b9 48 00 00 00 mov $0x48,%ecx 11d679: 31 c0 xor %eax,%eax 11d67b: 89 df mov %ebx,%edi 11d67d: f3 aa rep stos %al,%es:(%edi) return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 11d67f: 8b 42 3c mov 0x3c(%edx),%eax 11d682: 89 5d 0c mov %ebx,0xc(%ebp) 11d685: 83 c2 18 add $0x18,%edx 11d688: 89 55 08 mov %edx,0x8(%ebp) 11d68b: 8b 40 18 mov 0x18(%eax),%eax } 11d68e: 5b pop %ebx 11d68f: 5f pop %edi 11d690: 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 ); 11d691: ff e0 jmp *%eax 11d693: 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 ); 11d694: e8 5f 4d ff ff call 1123f8 <__errno> 11d699: 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 ); } 11d69f: b8 ff ff ff ff mov $0xffffffff,%eax 11d6a4: 5b pop %ebx 11d6a5: 5f pop %edi 11d6a6: c9 leave 11d6a7: 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 ); 11d6a8: e8 4b 4d ff ff call 1123f8 <__errno> <== NOT EXECUTED 11d6ad: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11d6b3: eb ea jmp 11d69f <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 11d6b5: e8 3e 4d ff ff call 1123f8 <__errno> 11d6ba: c7 00 0e 00 00 00 movl $0xe,(%eax) 11d6c0: eb dd jmp 11d69f 0012b4dc : #include int fsync( int fd ) { 12b4dc: 55 push %ebp 12b4dd: 89 e5 mov %esp,%ebp 12b4df: 83 ec 08 sub $0x8,%esp 12b4e2: 8b 45 08 mov 0x8(%ebp),%eax rtems_libio_t *iop; rtems_libio_check_fd( fd ); 12b4e5: 3b 05 ec 61 16 00 cmp 0x1661ec,%eax 12b4eb: 73 2b jae 12b518 iop = rtems_libio_iop( fd ); 12b4ed: c1 e0 06 shl $0x6,%eax 12b4f0: 03 05 58 dd 16 00 add 0x16dd58,%eax rtems_libio_check_is_open(iop); 12b4f6: 8b 50 14 mov 0x14(%eax),%edx 12b4f9: f6 c6 01 test $0x1,%dh 12b4fc: 74 1a je 12b518 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 12b4fe: 83 e2 04 and $0x4,%edx 12b501: 74 29 je 12b52c /* * Now process the fsync(). */ if ( !iop->handlers ) 12b503: 8b 50 3c mov 0x3c(%eax),%edx 12b506: 85 d2 test %edx,%edx 12b508: 74 0e je 12b518 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) 12b50a: 8b 52 28 mov 0x28(%edx),%edx 12b50d: 85 d2 test %edx,%edx 12b50f: 74 28 je 12b539 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 12b511: 89 45 08 mov %eax,0x8(%ebp) } 12b514: 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 ); 12b515: ff e2 jmp *%edx 12b517: 90 nop <== NOT EXECUTED /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 12b518: e8 1f 5f 01 00 call 14143c <__errno> <== NOT EXECUTED 12b51d: 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 ); } 12b523: b8 ff ff ff ff mov $0xffffffff,%eax 12b528: c9 leave 12b529: c3 ret 12b52a: 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 ); 12b52c: e8 0b 5f 01 00 call 14143c <__errno> 12b531: c7 00 16 00 00 00 movl $0x16,(%eax) 12b537: eb ea jmp 12b523 if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 12b539: e8 fe 5e 01 00 call 14143c <__errno> 12b53e: c7 00 86 00 00 00 movl $0x86,(%eax) 12b544: eb dd jmp 12b523 0010f830 : int ftruncate( int fd, off_t length ) { 10f830: 55 push %ebp 10f831: 89 e5 mov %esp,%ebp 10f833: 57 push %edi 10f834: 56 push %esi 10f835: 53 push %ebx 10f836: 83 ec 3c sub $0x3c,%esp 10f839: 8b 5d 08 mov 0x8(%ebp),%ebx 10f83c: 8b 45 0c mov 0xc(%ebp),%eax 10f83f: 8b 55 10 mov 0x10(%ebp),%edx 10f842: 89 45 c0 mov %eax,-0x40(%ebp) 10f845: 89 55 c4 mov %edx,-0x3c(%ebp) rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 10f848: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx 10f84e: 73 5c jae 10f8ac iop = rtems_libio_iop( fd ); 10f850: c1 e3 06 shl $0x6,%ebx 10f853: 03 1d c0 51 12 00 add 0x1251c0,%ebx rtems_libio_check_is_open(iop); 10f859: f6 43 15 01 testb $0x1,0x15(%ebx) 10f85d: 74 4d je 10f8ac /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 10f85f: 8d 45 d4 lea -0x2c(%ebp),%eax 10f862: 8d 73 18 lea 0x18(%ebx),%esi 10f865: b9 05 00 00 00 mov $0x5,%ecx 10f86a: 89 c7 mov %eax,%edi 10f86c: f3 a5 rep movsl %ds:(%esi),%es:(%edi) if ( !loc.ops->node_type_h ) 10f86e: 8b 55 e0 mov -0x20(%ebp),%edx 10f871: 8b 52 10 mov 0x10(%edx),%edx 10f874: 85 d2 test %edx,%edx 10f876: 74 5c je 10f8d4 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 10f878: 83 ec 0c sub $0xc,%esp 10f87b: 50 push %eax 10f87c: ff d2 call *%edx 10f87e: 83 c4 10 add $0x10,%esp 10f881: 48 dec %eax 10f882: 74 62 je 10f8e6 rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 10f884: f6 43 14 04 testb $0x4,0x14(%ebx) 10f888: 74 36 je 10f8c0 if ( !iop->handlers->ftruncate_h ) 10f88a: 8b 43 3c mov 0x3c(%ebx),%eax 10f88d: 8b 40 20 mov 0x20(%eax),%eax 10f890: 85 c0 test %eax,%eax 10f892: 74 40 je 10f8d4 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 10f894: 52 push %edx 10f895: ff 75 c4 pushl -0x3c(%ebp) 10f898: ff 75 c0 pushl -0x40(%ebp) 10f89b: 53 push %ebx 10f89c: ff d0 call *%eax 10f89e: 83 c4 10 add $0x10,%esp } 10f8a1: 8d 65 f4 lea -0xc(%ebp),%esp 10f8a4: 5b pop %ebx 10f8a5: 5e pop %esi 10f8a6: 5f pop %edi 10f8a7: c9 leave 10f8a8: c3 ret 10f8a9: 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); 10f8ac: e8 47 2b 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10f8b1: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 10f8b7: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f8bc: eb e3 jmp 10f8a1 <== NOT EXECUTED 10f8be: 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 ); 10f8c0: e8 33 2b 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10f8c5: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 10f8cb: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f8d0: eb cf jmp 10f8a1 <== NOT EXECUTED 10f8d2: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 10f8d4: e8 1f 2b 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10f8d9: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10f8df: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 10f8e4: eb bb jmp 10f8a1 <== 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 ); 10f8e6: e8 0d 2b 00 00 call 1123f8 <__errno> 10f8eb: c7 00 15 00 00 00 movl $0x15,(%eax) 10f8f1: b8 ff ff ff ff mov $0xffffffff,%eax 10f8f6: eb a9 jmp 10f8a1 0015729c : int getdents( int dd_fd, char *dd_buf, int dd_len ) { 15729c: 55 push %ebp 15729d: 89 e5 mov %esp,%ebp 15729f: 57 push %edi 1572a0: 56 push %esi 1572a1: 53 push %ebx 1572a2: 83 ec 2c sub $0x2c,%esp 1572a5: 8b 5d 08 mov 0x8(%ebp),%ebx /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 1572a8: 3b 1d ec 61 16 00 cmp 0x1661ec,%ebx 1572ae: 72 48 jb 1572f8 1572b0: 31 db xor %ebx,%ebx <== NOT EXECUTED /* * Make sure we are working on a directory */ loc = iop->pathinfo; 1572b2: 8d 45 d4 lea -0x2c(%ebp),%eax 1572b5: 8d 73 18 lea 0x18(%ebx),%esi 1572b8: b9 05 00 00 00 mov $0x5,%ecx 1572bd: 89 c7 mov %eax,%edi 1572bf: f3 a5 rep movsl %ds:(%esi),%es:(%edi) if ( !loc.ops->node_type_h ) 1572c1: 8b 55 e0 mov -0x20(%ebp),%edx 1572c4: 8b 52 10 mov 0x10(%edx),%edx 1572c7: 85 d2 test %edx,%edx 1572c9: 74 4d je 157318 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 1572cb: 83 ec 0c sub $0xc,%esp 1572ce: 50 push %eax 1572cf: ff d2 call *%edx 1572d1: 83 c4 10 add $0x10,%esp 1572d4: 48 dec %eax 1572d5: 75 2d jne 157304 /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 1572d7: 8b 43 3c mov 0x3c(%ebx),%eax 1572da: 8b 40 08 mov 0x8(%eax),%eax 1572dd: 85 c0 test %eax,%eax 1572df: 74 37 je 157318 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 1572e1: 52 push %edx 1572e2: ff 75 10 pushl 0x10(%ebp) 1572e5: ff 75 0c pushl 0xc(%ebp) 1572e8: 53 push %ebx 1572e9: ff d0 call *%eax 1572eb: 83 c4 10 add $0x10,%esp } 1572ee: 8d 65 f4 lea -0xc(%ebp),%esp 1572f1: 5b pop %ebx 1572f2: 5e pop %esi 1572f3: 5f pop %edi 1572f4: c9 leave 1572f5: c3 ret 1572f6: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 1572f8: c1 e3 06 shl $0x6,%ebx 1572fb: 03 1d 58 dd 16 00 add 0x16dd58,%ebx 157301: eb af jmp 1572b2 157303: 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 ); 157304: e8 33 a1 fe ff call 14143c <__errno> 157309: c7 00 14 00 00 00 movl $0x14,(%eax) 15730f: b8 ff ff ff ff mov $0xffffffff,%eax 157314: eb d8 jmp 1572ee 157316: 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 ); 157318: e8 1f a1 fe ff call 14143c <__errno> <== NOT EXECUTED 15731d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 157323: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 157328: eb c4 jmp 1572ee <== NOT EXECUTED 0012b630 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 12b630: 55 push %ebp <== NOT EXECUTED 12b631: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b633: a1 24 83 16 00 mov 0x168324,%eax <== NOT EXECUTED 12b638: 8b 40 34 mov 0x34(%eax),%eax <== NOT EXECUTED return _POSIX_types_Gid; } 12b63b: c9 leave <== NOT EXECUTED 12b63c: c3 ret <== NOT EXECUTED 0012bbc8 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 12bbc8: 55 push %ebp 12bbc9: 89 e5 mov %esp,%ebp 12bbcb: 57 push %edi 12bbcc: 56 push %esi 12bbcd: 53 push %ebx 12bbce: 83 ec 1c sub $0x1c,%esp 12bbd1: 89 c3 mov %eax,%ebx 12bbd3: 89 55 e4 mov %edx,-0x1c(%ebp) 12bbd6: 89 ce mov %ecx,%esi FILE *fp; int match; init_etc_passwd_group(); 12bbd8: e8 af fe ff ff call 12ba8c if ((fp = fopen("/etc/group", "r")) == NULL) { 12bbdd: 83 ec 08 sub $0x8,%esp 12bbe0: 68 cd ad 15 00 push $0x15adcd 12bbe5: 68 b7 7a 15 00 push $0x157ab7 12bbea: e8 b1 61 01 00 call 141da0 12bbef: 89 c7 mov %eax,%edi 12bbf1: 83 c4 10 add $0x10,%esp 12bbf4: 85 c0 test %eax,%eax 12bbf6: 75 22 jne 12bc1a 12bbf8: e9 8b 00 00 00 jmp 12bc88 <== NOT EXECUTED 12bbfd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 12bc00: 83 ec 08 sub $0x8,%esp 12bc03: 53 push %ebx 12bc04: ff 36 pushl (%esi) 12bc06: e8 f1 ae 01 00 call 146afc 12bc0b: 83 c4 10 add $0x10,%esp 12bc0e: 85 c0 test %eax,%eax 12bc10: 0f 94 c0 sete %al 12bc13: 0f b6 c0 movzbl %al,%eax } else { match = (grp->gr_gid == gid); } if (match) { 12bc16: 85 c0 test %eax,%eax 12bc18: 75 2e jne 12bc48 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 12bc1a: 83 ec 0c sub $0xc,%esp 12bc1d: ff 75 0c pushl 0xc(%ebp) 12bc20: 8b 4d 08 mov 0x8(%ebp),%ecx 12bc23: 89 f2 mov %esi,%edx 12bc25: 89 f8 mov %edi,%eax 12bc27: e8 d4 fb ff ff call 12b800 12bc2c: 83 c4 10 add $0x10,%esp 12bc2f: 85 c0 test %eax,%eax 12bc31: 74 31 je 12bc64 errno = EINVAL; fclose(fp); return -1; } if (name) { 12bc33: 85 db test %ebx,%ebx 12bc35: 75 c9 jne 12bc00 match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); 12bc37: 0f b7 46 08 movzwl 0x8(%esi),%eax <== NOT EXECUTED 12bc3b: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED 12bc3e: 0f 94 c0 sete %al <== NOT EXECUTED 12bc41: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED } if (match) { 12bc44: 85 c0 test %eax,%eax <== NOT EXECUTED 12bc46: 74 d2 je 12bc1a <== NOT EXECUTED fclose(fp); 12bc48: 83 ec 0c sub $0xc,%esp 12bc4b: 57 push %edi 12bc4c: e8 37 59 01 00 call 141588 *result = grp; 12bc51: 8b 45 10 mov 0x10(%ebp),%eax 12bc54: 89 30 mov %esi,(%eax) 12bc56: 31 c0 xor %eax,%eax return 0; 12bc58: 83 c4 10 add $0x10,%esp } } fclose(fp); errno = EINVAL; return -1; } 12bc5b: 8d 65 f4 lea -0xc(%ebp),%esp 12bc5e: 5b pop %ebx 12bc5f: 5e pop %esi 12bc60: 5f pop %edi 12bc61: c9 leave 12bc62: c3 ret 12bc63: 90 nop <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; 12bc64: e8 d3 57 01 00 call 14143c <__errno> <== NOT EXECUTED 12bc69: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED fclose(fp); 12bc6f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bc72: 57 push %edi <== NOT EXECUTED 12bc73: e8 10 59 01 00 call 141588 <== NOT EXECUTED 12bc78: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return -1; 12bc7d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 12bc80: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12bc83: 5b pop %ebx <== NOT EXECUTED 12bc84: 5e pop %esi <== NOT EXECUTED 12bc85: 5f pop %edi <== NOT EXECUTED 12bc86: c9 leave <== NOT EXECUTED 12bc87: c3 ret <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 12bc88: e8 af 57 01 00 call 14143c <__errno> <== NOT EXECUTED 12bc8d: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12bc93: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED return -1; 12bc96: eb c3 jmp 12bc5b <== NOT EXECUTED 0012b918 : return NULL; return p; } struct group *getgrent(void) { 12b918: 55 push %ebp <== NOT EXECUTED 12b919: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12b91b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED if (group_fp == NULL) 12b91e: a1 44 d9 16 00 mov 0x16d944,%eax <== NOT EXECUTED 12b923: 85 c0 test %eax,%eax <== NOT EXECUTED 12b925: 75 05 jne 12b92c <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 12b927: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return &grent; } 12b929: c9 leave <== NOT EXECUTED 12b92a: c3 ret <== NOT EXECUTED 12b92b: 90 nop <== NOT EXECUTED struct group *getgrent(void) { if (group_fp == NULL) return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 12b92c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12b92f: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12b934: b9 60 d9 16 00 mov $0x16d960,%ecx <== NOT EXECUTED 12b939: ba 28 da 16 00 mov $0x16da28,%edx <== NOT EXECUTED 12b93e: e8 bd fe ff ff call 12b800 <== NOT EXECUTED 12b943: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12b946: 85 c0 test %eax,%eax <== NOT EXECUTED 12b948: 74 dd je 12b927 <== NOT EXECUTED 12b94a: b8 28 da 16 00 mov $0x16da28,%eax <== NOT EXECUTED return NULL; return &grent; } 12b94f: c9 leave <== NOT EXECUTED 12b950: c3 ret <== NOT EXECUTED 0012bcc4 : } struct group *getgrgid( gid_t gid ) { 12bcc4: 55 push %ebp <== NOT EXECUTED 12bcc5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bcc7: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 12bcca: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 12bccd: 50 push %eax <== NOT EXECUTED 12bcce: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12bcd3: 68 60 d9 16 00 push $0x16d960 <== NOT EXECUTED 12bcd8: 68 28 da 16 00 push $0x16da28 <== NOT EXECUTED 12bcdd: 0f b7 45 08 movzwl 0x8(%ebp),%eax <== NOT EXECUTED 12bce1: 50 push %eax <== NOT EXECUTED 12bce2: e8 b1 ff ff ff call 12bc98 <== NOT EXECUTED 12bce7: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12bcea: 85 c0 test %eax,%eax <== NOT EXECUTED 12bcec: 75 06 jne 12bcf4 <== NOT EXECUTED return NULL; return p; 12bcee: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED } 12bcf1: c9 leave <== NOT EXECUTED 12bcf2: c3 ret <== NOT EXECUTED 12bcf3: 90 nop <== NOT EXECUTED gid_t gid ) { struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 12bcf4: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return p; } 12bcf6: c9 leave <== NOT EXECUTED 12bcf7: c3 ret <== NOT EXECUTED 0012bc98 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 12bc98: 55 push %ebp <== NOT EXECUTED 12bc99: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bc9b: 53 push %ebx <== NOT EXECUTED 12bc9c: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12bc9f: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 12bca2: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 12bca5: 0f b7 55 08 movzwl 0x8(%ebp),%edx <== NOT EXECUTED 12bca9: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED 12bcac: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED 12bcaf: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED 12bcb2: 89 5d 0c mov %ebx,0xc(%ebp) <== NOT EXECUTED 12bcb5: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 12bcb8: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12bcba: 5b pop %ebx <== NOT EXECUTED 12bcbb: 5b pop %ebx <== NOT EXECUTED 12bcbc: c9 leave <== NOT EXECUTED char *buffer, size_t bufsize, struct group **result ) { return getgr_r(NULL, gid, grp, buffer, bufsize, result); 12bcbd: e9 06 ff ff ff jmp 12bbc8 <== NOT EXECUTED 0012bd24 : } struct group *getgrnam( const char *name ) { 12bd24: 55 push %ebp 12bd25: 89 e5 mov %esp,%ebp 12bd27: 83 ec 24 sub $0x24,%esp struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 12bd2a: 8d 45 f4 lea -0xc(%ebp),%eax 12bd2d: 50 push %eax 12bd2e: 68 c8 00 00 00 push $0xc8 12bd33: 68 60 d9 16 00 push $0x16d960 12bd38: 68 28 da 16 00 push $0x16da28 12bd3d: ff 75 08 pushl 0x8(%ebp) 12bd40: e8 b3 ff ff ff call 12bcf8 12bd45: 83 c4 20 add $0x20,%esp 12bd48: 85 c0 test %eax,%eax 12bd4a: 75 08 jne 12bd54 return NULL; return p; 12bd4c: 8b 45 f4 mov -0xc(%ebp),%eax } 12bd4f: c9 leave 12bd50: c3 ret 12bd51: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED const char *name ) { struct group *p; if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p)) 12bd54: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return p; } 12bd56: c9 leave <== NOT EXECUTED 12bd57: c3 ret <== NOT EXECUTED 0012448c : * * 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83 */ pid_t getpid( void ) { 12448c: 55 push %ebp <== NOT EXECUTED 12448d: 89 e5 mov %esp,%ebp <== NOT EXECUTED return _Objects_Local_node; } 12448f: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED 124494: c9 leave <== NOT EXECUTED 124495: c3 ret <== NOT EXECUTED 0012bd94 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 12bd94: 55 push %ebp 12bd95: 89 e5 mov %esp,%ebp 12bd97: 57 push %edi 12bd98: 56 push %esi 12bd99: 53 push %ebx 12bd9a: 83 ec 1c sub $0x1c,%esp 12bd9d: 89 c3 mov %eax,%ebx 12bd9f: 89 55 e4 mov %edx,-0x1c(%ebp) 12bda2: 89 ce mov %ecx,%esi FILE *fp; int match; init_etc_passwd_group(); 12bda4: e8 e3 fc ff ff call 12ba8c if ((fp = fopen("/etc/passwd", "r")) == NULL) { 12bda9: 83 ec 08 sub $0x8,%esp 12bdac: 68 cd ad 15 00 push $0x15adcd 12bdb1: 68 ab 7a 15 00 push $0x157aab 12bdb6: e8 e5 5f 01 00 call 141da0 12bdbb: 89 c7 mov %eax,%edi 12bdbd: 83 c4 10 add $0x10,%esp 12bdc0: 85 c0 test %eax,%eax 12bdc2: 75 22 jne 12bde6 12bdc4: e9 8b 00 00 00 jmp 12be54 <== NOT EXECUTED 12bdc9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 12bdcc: 83 ec 08 sub $0x8,%esp 12bdcf: 53 push %ebx 12bdd0: ff 36 pushl (%esi) 12bdd2: e8 25 ad 01 00 call 146afc 12bdd7: 83 c4 10 add $0x10,%esp 12bdda: 85 c0 test %eax,%eax 12bddc: 0f 94 c0 sete %al 12bddf: 0f b6 c0 movzbl %al,%eax } else { match = (pwd->pw_uid == uid); } if (match) { 12bde2: 85 c0 test %eax,%eax 12bde4: 75 2e jne 12be14 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 12bde6: 83 ec 0c sub $0xc,%esp 12bde9: ff 75 0c pushl 0xc(%ebp) 12bdec: 8b 4d 08 mov 0x8(%ebp),%ecx 12bdef: 89 f2 mov %esi,%edx 12bdf1: 89 f8 mov %edi,%eax 12bdf3: e8 5c fb ff ff call 12b954 12bdf8: 83 c4 10 add $0x10,%esp 12bdfb: 85 c0 test %eax,%eax 12bdfd: 74 31 je 12be30 errno = EINVAL; fclose(fp); return -1; } if (name) { 12bdff: 85 db test %ebx,%ebx 12be01: 75 c9 jne 12bdcc match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); 12be03: 0f b7 46 08 movzwl 0x8(%esi),%eax <== NOT EXECUTED 12be07: 3b 45 e4 cmp -0x1c(%ebp),%eax <== NOT EXECUTED 12be0a: 0f 94 c0 sete %al <== NOT EXECUTED 12be0d: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED } if (match) { 12be10: 85 c0 test %eax,%eax <== NOT EXECUTED 12be12: 74 d2 je 12bde6 <== NOT EXECUTED fclose(fp); 12be14: 83 ec 0c sub $0xc,%esp 12be17: 57 push %edi 12be18: e8 6b 57 01 00 call 141588 *result = pwd; 12be1d: 8b 45 10 mov 0x10(%ebp),%eax 12be20: 89 30 mov %esi,(%eax) 12be22: 31 c0 xor %eax,%eax return 0; 12be24: 83 c4 10 add $0x10,%esp } } fclose(fp); errno = EINVAL; return -1; } 12be27: 8d 65 f4 lea -0xc(%ebp),%esp 12be2a: 5b pop %ebx 12be2b: 5e pop %esi 12be2c: 5f pop %edi 12be2d: c9 leave 12be2e: c3 ret 12be2f: 90 nop <== NOT EXECUTED errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; 12be30: e8 07 56 01 00 call 14143c <__errno> <== NOT EXECUTED 12be35: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED fclose(fp); 12be3b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12be3e: 57 push %edi <== NOT EXECUTED 12be3f: e8 44 57 01 00 call 141588 <== NOT EXECUTED 12be44: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return -1; 12be49: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } } fclose(fp); errno = EINVAL; return -1; } 12be4c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12be4f: 5b pop %ebx <== NOT EXECUTED 12be50: 5e pop %esi <== NOT EXECUTED 12be51: 5f pop %edi <== NOT EXECUTED 12be52: c9 leave <== NOT EXECUTED 12be53: c3 ret <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; 12be54: e8 e3 55 01 00 call 14143c <__errno> <== NOT EXECUTED 12be59: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 12be5f: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED return -1; 12be62: eb c3 jmp 12be27 <== NOT EXECUTED 0012ba50 : return NULL; return p; } struct passwd *getpwent(void) { 12ba50: 55 push %ebp <== NOT EXECUTED 12ba51: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12ba53: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED if (passwd_fp == NULL) 12ba56: a1 44 d8 16 00 mov 0x16d844,%eax <== NOT EXECUTED 12ba5b: 85 c0 test %eax,%eax <== NOT EXECUTED 12ba5d: 75 05 jne 12ba64 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 12ba5f: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return &pwent; } 12ba61: c9 leave <== NOT EXECUTED 12ba62: c3 ret <== NOT EXECUTED 12ba63: 90 nop <== NOT EXECUTED struct passwd *getpwent(void) { if (passwd_fp == NULL) return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 12ba64: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12ba67: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12ba6c: b9 60 d8 16 00 mov $0x16d860,%ecx <== NOT EXECUTED 12ba71: ba 28 d9 16 00 mov $0x16d928,%edx <== NOT EXECUTED 12ba76: e8 d9 fe ff ff call 12b954 <== NOT EXECUTED 12ba7b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12ba7e: 85 c0 test %eax,%eax <== NOT EXECUTED 12ba80: 74 dd je 12ba5f <== NOT EXECUTED 12ba82: b8 28 d9 16 00 mov $0x16d928,%eax <== NOT EXECUTED return NULL; return &pwent; } 12ba87: c9 leave <== NOT EXECUTED 12ba88: c3 ret <== NOT EXECUTED 0012bef0 : } struct passwd *getpwnam( const char *name ) { 12bef0: 55 push %ebp 12bef1: 89 e5 mov %esp,%ebp 12bef3: 83 ec 24 sub $0x24,%esp struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 12bef6: 8d 45 f4 lea -0xc(%ebp),%eax 12bef9: 50 push %eax 12befa: 68 c8 00 00 00 push $0xc8 12beff: 68 60 d8 16 00 push $0x16d860 12bf04: 68 28 d9 16 00 push $0x16d928 12bf09: ff 75 08 pushl 0x8(%ebp) 12bf0c: e8 b3 ff ff ff call 12bec4 12bf11: 83 c4 20 add $0x20,%esp 12bf14: 85 c0 test %eax,%eax 12bf16: 75 08 jne 12bf20 return NULL; return p; 12bf18: 8b 45 f4 mov -0xc(%ebp),%eax } 12bf1b: c9 leave 12bf1c: c3 ret 12bf1d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED const char *name ) { struct passwd *p; if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p)) 12bf20: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return p; } 12bf22: c9 leave <== NOT EXECUTED 12bf23: c3 ret <== NOT EXECUTED 0012be90 : } struct passwd *getpwuid( uid_t uid ) { 12be90: 55 push %ebp <== NOT EXECUTED 12be91: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12be93: 83 ec 24 sub $0x24,%esp <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 12be96: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 12be99: 50 push %eax <== NOT EXECUTED 12be9a: 68 c8 00 00 00 push $0xc8 <== NOT EXECUTED 12be9f: 68 60 d8 16 00 push $0x16d860 <== NOT EXECUTED 12bea4: 68 28 d9 16 00 push $0x16d928 <== NOT EXECUTED 12bea9: 0f b7 45 08 movzwl 0x8(%ebp),%eax <== NOT EXECUTED 12bead: 50 push %eax <== NOT EXECUTED 12beae: e8 b1 ff ff ff call 12be64 <== NOT EXECUTED 12beb3: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12beb6: 85 c0 test %eax,%eax <== NOT EXECUTED 12beb8: 75 06 jne 12bec0 <== NOT EXECUTED return NULL; return p; 12beba: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED } 12bebd: c9 leave <== NOT EXECUTED 12bebe: c3 ret <== NOT EXECUTED 12bebf: 90 nop <== NOT EXECUTED uid_t uid ) { struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 12bec0: 31 c0 xor %eax,%eax <== NOT EXECUTED return NULL; return p; } 12bec2: c9 leave <== NOT EXECUTED 12bec3: c3 ret <== NOT EXECUTED 0012be64 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 12be64: 55 push %ebp <== NOT EXECUTED 12be65: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12be67: 53 push %ebx <== NOT EXECUTED 12be68: 83 ec 04 sub $0x4,%esp <== NOT EXECUTED 12be6b: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 12be6e: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 12be71: 0f b7 55 08 movzwl 0x8(%ebp),%edx <== NOT EXECUTED 12be75: 8b 5d 18 mov 0x18(%ebp),%ebx <== NOT EXECUTED 12be78: 89 5d 10 mov %ebx,0x10(%ebp) <== NOT EXECUTED 12be7b: 8b 5d 14 mov 0x14(%ebp),%ebx <== NOT EXECUTED 12be7e: 89 5d 0c mov %ebx,0xc(%ebp) <== NOT EXECUTED 12be81: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 12be84: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12be86: 5b pop %ebx <== NOT EXECUTED 12be87: 5b pop %ebx <== NOT EXECUTED 12be88: c9 leave <== NOT EXECUTED char *buffer, size_t bufsize, struct passwd **result ) { return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 12be89: e9 06 ff ff ff jmp 12bd94 <== NOT EXECUTED 0010f8f8 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 10f8f8: 55 push %ebp 10f8f9: 89 e5 mov %esp,%ebp 10f8fb: 56 push %esi 10f8fc: 53 push %ebx 10f8fd: 83 ec 20 sub $0x20,%esp 10f900: 8b 5d 08 mov 0x8(%ebp),%ebx /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 10f903: 85 db test %ebx,%ebx 10f905: 74 42 je 10f949 { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 10f907: 9c pushf 10f908: fa cli 10f909: 5e pop %esi _TOD_Get( &now ); 10f90a: 83 ec 0c sub $0xc,%esp 10f90d: 8d 45 f0 lea -0x10(%ebp),%eax 10f910: 50 push %eax 10f911: e8 ae 08 00 00 call 1101c4 <_TOD_Get> _ISR_Enable(level); 10f916: 56 push %esi 10f917: 9d popf useconds = (suseconds_t)now.tv_nsec; 10f918: 8b 4d f4 mov -0xc(%ebp),%ecx useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 10f91b: 8b 45 f0 mov -0x10(%ebp),%eax 10f91e: 89 03 mov %eax,(%ebx) time->tv_usec = useconds; 10f920: be d3 4d 62 10 mov $0x10624dd3,%esi 10f925: 89 c8 mov %ecx,%eax 10f927: f7 ee imul %esi 10f929: 89 45 e0 mov %eax,-0x20(%ebp) 10f92c: 89 55 e4 mov %edx,-0x1c(%ebp) 10f92f: 8b 75 e4 mov -0x1c(%ebp),%esi 10f932: c1 fe 06 sar $0x6,%esi 10f935: 89 c8 mov %ecx,%eax 10f937: 99 cltd 10f938: 29 d6 sub %edx,%esi 10f93a: 89 73 04 mov %esi,0x4(%ebx) 10f93d: 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; 10f93f: 83 c4 10 add $0x10,%esp } 10f942: 8d 65 f8 lea -0x8(%ebp),%esp 10f945: 5b pop %ebx 10f946: 5e pop %esi 10f947: c9 leave 10f948: c3 ret void * __tz __attribute__((unused)) ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 10f949: e8 aa 2a 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10f94e: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 10f954: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return -1; 10f959: eb e7 jmp 10f942 <== NOT EXECUTED 0010cf64 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 10cf64: 55 push %ebp <== NOT EXECUTED 10cf65: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10cf67: a1 24 83 16 00 mov 0x168324,%eax <== NOT EXECUTED 10cf6c: 66 8b 40 32 mov 0x32(%eax),%ax <== NOT EXECUTED return _POSIX_types_Uid; } 10cf70: c9 leave <== NOT EXECUTED 10cf71: c3 ret <== NOT EXECUTED 00116dd8 : rtems_off64_t imfs_dir_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 116dd8: 55 push %ebp 116dd9: 89 e5 mov %esp,%ebp 116ddb: 57 push %edi 116ddc: 56 push %esi 116ddd: 53 push %ebx 116dde: 83 ec 1c sub $0x1c,%esp 116de1: 8b 5d 08 mov 0x8(%ebp),%ebx switch( whence ) { 116de4: 83 7d 14 01 cmpl $0x1,0x14(%ebp) 116de8: 76 1e jbe 116e08 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 ); 116dea: e8 41 07 00 00 call 117530 <__errno> 116def: c7 00 16 00 00 00 movl $0x16,(%eax) 116df5: b8 ff ff ff ff mov $0xffffffff,%eax 116dfa: ba ff ff ff ff mov $0xffffffff,%edx break; } return 0; } 116dff: 8d 65 f4 lea -0xc(%ebp),%esp 116e02: 5b pop %ebx 116e03: 5e pop %esi 116e04: 5f pop %edi 116e05: c9 leave 116e06: c3 ret 116e07: 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)) * 116e08: 6a 00 push $0x0 116e0a: 68 10 01 00 00 push $0x110 116e0f: ff 73 10 pushl 0x10(%ebx) 116e12: ff 73 0c pushl 0xc(%ebx) 116e15: e8 d2 b6 00 00 call 1224ec <__divdi3> 116e1a: 83 c4 10 add $0x10,%esp 116e1d: 69 f2 10 01 00 00 imul $0x110,%edx,%esi 116e23: b9 10 01 00 00 mov $0x110,%ecx 116e28: f7 e1 mul %ecx 116e2a: 89 45 e0 mov %eax,-0x20(%ebp) 116e2d: 01 f2 add %esi,%edx 116e2f: 89 55 e4 mov %edx,-0x1c(%ebp) 116e32: 8b 45 e0 mov -0x20(%ebp),%eax 116e35: 8b 55 e4 mov -0x1c(%ebp),%edx 116e38: 89 43 0c mov %eax,0xc(%ebx) 116e3b: 89 53 10 mov %edx,0x10(%ebx) 116e3e: 31 c0 xor %eax,%eax 116e40: 31 d2 xor %edx,%edx rtems_set_errno_and_return_minus_one( EINVAL ); break; } return 0; } 116e42: 8d 65 f4 lea -0xc(%ebp),%esp 116e45: 5b pop %ebx 116e46: 5e pop %esi 116e47: 5f pop %edi 116e48: c9 leave 116e49: c3 ret 00116cf0 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 116cf0: 55 push %ebp 116cf1: 89 e5 mov %esp,%ebp 116cf3: 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; 116cf6: 8b 50 38 mov 0x38(%eax),%edx 116cf9: 83 7a 4c 01 cmpl $0x1,0x4c(%edx) 116cfd: 74 09 je 116d08 116cff: 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; } 116d04: c9 leave <== NOT EXECUTED 116d05: c3 ret <== NOT EXECUTED 116d06: 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; 116d08: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) 116d0f: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) 116d16: 31 c0 xor %eax,%eax return 0; } 116d18: c9 leave 116d19: c3 ret 00116f28 : ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) { 116f28: 55 push %ebp 116f29: 89 e5 mov %esp,%ebp 116f2b: 57 push %edi 116f2c: 56 push %esi 116f2d: 53 push %ebx 116f2e: 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; 116f34: 8b 55 08 mov 0x8(%ebp),%edx 116f37: 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)); 116f3a: 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; 116f3d: 83 c0 54 add $0x54,%eax 116f40: 89 85 cc fe ff ff mov %eax,-0x134(%ebp) the_chain = &the_jnode->info.directory.Entries; if ( rtems_chain_is_empty( the_chain ) ) 116f46: 39 c3 cmp %eax,%ebx 116f48: 0f 84 2a 01 00 00 je 117078 /* Move to the first of the desired directory entries */ the_node = the_chain->first; bytes_transferred = 0; first_entry = iop->offset; 116f4e: 8b 45 08 mov 0x8(%ebp),%eax 116f51: 8b 40 0c mov 0xc(%eax),%eax 116f54: 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); 116f5a: ba f1 f0 f0 f0 mov $0xf0f0f0f1,%edx 116f5f: 8b 45 10 mov 0x10(%ebp),%eax 116f62: f7 e2 mul %edx 116f64: c1 ea 08 shr $0x8,%edx 116f67: 89 d0 mov %edx,%eax 116f69: c1 e0 04 shl $0x4,%eax 116f6c: c1 e2 08 shl $0x8,%edx 116f6f: 8d 14 10 lea (%eax,%edx,1),%edx 116f72: 03 95 d0 fe ff ff add -0x130(%ebp),%edx 116f78: 89 95 d4 fe ff ff mov %edx,-0x12c(%ebp) /* The directory was not empty so try to move to the desired entry in chain*/ for ( 116f7e: 85 d2 test %edx,%edx 116f80: 0f 8e f2 00 00 00 jle 117078 116f86: 31 d2 xor %edx,%edx 116f88: c7 85 c8 fe ff ff 00 movl $0x0,-0x138(%ebp) 116f8f: 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 ); 116f92: 8d 85 d8 fe ff ff lea -0x128(%ebp),%eax 116f98: 89 85 b4 fe ff ff mov %eax,-0x14c(%ebp) 116f9e: eb 20 jmp 116fc0 ); iop->offset = iop->offset + sizeof(struct dirent); bytes_transferred = bytes_transferred + sizeof( struct dirent ); } the_node = the_node->next; 116fa0: 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( 116fa2: 81 c2 10 01 00 00 add $0x110,%edx /* protect against using sizes that are not exact multiples of the */ /* -dirent- size. These could result in unexpected results */ last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent); /* The directory was not empty so try to move to the desired entry in chain*/ for ( 116fa8: 3b 95 d4 fe ff ff cmp -0x12c(%ebp),%edx 116fae: 0f 8d b4 00 00 00 jge 117068 current_entry = 0; current_entry < last_entry; current_entry = current_entry + sizeof(struct dirent) ){ if ( rtems_chain_is_tail( the_chain, the_node ) ){ 116fb4: 3b 9d cc fe ff ff cmp -0x134(%ebp),%ebx 116fba: 0f 84 a8 00 00 00 je 117068 /* entry in the read */ return bytes_transferred; /* Indicate that there are no more */ /* entries to return */ } if( current_entry >= first_entry ) { 116fc0: 39 95 d0 fe ff ff cmp %edx,-0x130(%ebp) 116fc6: 7f d8 jg 116fa0 /* Move the entry to the return buffer */ tmp_dirent.d_off = current_entry; 116fc8: 89 95 dc fe ff ff mov %edx,-0x124(%ebp) 116fce: 89 d0 mov %edx,%eax 116fd0: c1 f8 1f sar $0x1f,%eax 116fd3: 89 85 e0 fe ff ff mov %eax,-0x120(%ebp) tmp_dirent.d_reclen = sizeof( struct dirent ); 116fd9: 66 c7 85 e4 fe ff ff movw $0x110,-0x11c(%ebp) 116fe0: 10 01 the_jnode = (IMFS_jnode_t *) the_node; tmp_dirent.d_ino = the_jnode->st_ino; 116fe2: 8b 43 38 mov 0x38(%ebx),%eax 116fe5: 89 85 d8 fe ff ff mov %eax,-0x128(%ebp) tmp_dirent.d_namlen = strlen( the_jnode->name ); 116feb: 8d 73 0c lea 0xc(%ebx),%esi 116fee: 31 c0 xor %eax,%eax 116ff0: b9 ff ff ff ff mov $0xffffffff,%ecx 116ff5: 89 f7 mov %esi,%edi 116ff7: f2 ae repnz scas %es:(%edi),%al 116ff9: f7 d1 not %ecx 116ffb: 49 dec %ecx 116ffc: 66 89 8d e6 fe ff ff mov %cx,-0x11a(%ebp) strcpy( tmp_dirent.d_name, the_jnode->name ); 117003: 83 ec 08 sub $0x8,%esp 117006: 56 push %esi 117007: 8d 85 e8 fe ff ff lea -0x118(%ebp),%eax 11700d: 50 push %eax 11700e: 89 95 c4 fe ff ff mov %edx,-0x13c(%ebp) 117014: e8 9f 0f 00 00 call 117fb8 memcpy( 117019: 8b 45 0c mov 0xc(%ebp),%eax 11701c: 03 85 c8 fe ff ff add -0x138(%ebp),%eax 117022: b9 44 00 00 00 mov $0x44,%ecx 117027: 89 c7 mov %eax,%edi 117029: 8b b5 b4 fe ff ff mov -0x14c(%ebp),%esi 11702f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) buffer + bytes_transferred, (void *)&tmp_dirent, sizeof( struct dirent ) ); iop->offset = iop->offset + sizeof(struct dirent); 117031: 8b 45 08 mov 0x8(%ebp),%eax 117034: 81 40 0c 10 01 00 00 addl $0x110,0xc(%eax) 11703b: 83 50 10 00 adcl $0x0,0x10(%eax) bytes_transferred = bytes_transferred + sizeof( struct dirent ); 11703f: 81 85 c8 fe ff ff 10 addl $0x110,-0x138(%ebp) 117046: 01 00 00 117049: 83 c4 10 add $0x10,%esp 11704c: 8b 95 c4 fe ff ff mov -0x13c(%ebp),%edx } the_node = the_node->next; 117052: 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( 117054: 81 c2 10 01 00 00 add $0x110,%edx /* protect against using sizes that are not exact multiples of the */ /* -dirent- size. These could result in unexpected results */ last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent); /* The directory was not empty so try to move to the desired entry in chain*/ for ( 11705a: 3b 95 d4 fe ff ff cmp -0x12c(%ebp),%edx 117060: 0f 8c 4e ff ff ff jl 116fb4 117066: 66 90 xchg %ax,%ax the_node = the_node->next; } /* Success */ return bytes_transferred; } 117068: 8b 85 c8 fe ff ff mov -0x138(%ebp),%eax 11706e: 8d 65 f4 lea -0xc(%ebp),%esp 117071: 5b pop %ebx 117072: 5e pop %esi 117073: 5f pop %edi 117074: c9 leave 117075: c3 ret 117076: 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 ( 117078: c7 85 c8 fe ff ff 00 movl $0x0,-0x138(%ebp) 11707f: 00 00 00 the_node = the_node->next; } /* Success */ return bytes_transferred; } 117082: 8b 85 c8 fe ff ff mov -0x138(%ebp),%eax 117088: 8d 65 f4 lea -0xc(%ebp),%esp 11708b: 5b pop %ebx 11708c: 5e pop %esi 11708d: 5f pop %edi 11708e: c9 leave 11708f: c3 ret 00116e4c : int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) { 116e4c: 55 push %ebp 116e4d: 89 e5 mov %esp,%ebp 116e4f: 56 push %esi 116e50: 53 push %ebx 116e51: 83 ec 10 sub $0x10,%esp 116e54: 8b 75 0c mov 0xc(%ebp),%esi IMFS_jnode_t *the_jnode; the_jnode = (IMFS_jnode_t *) pathloc->node_access; 116e57: 8b 1e mov (%esi),%ebx 116e59: 8d 43 54 lea 0x54(%ebx),%eax 116e5c: 39 43 50 cmp %eax,0x50(%ebx) 116e5f: 0f 85 8f 00 00 00 jne 116ef4 /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) 116e65: 8b 46 10 mov 0x10(%esi),%eax 116e68: 3b 58 1c cmp 0x1c(%eax),%ebx 116e6b: 0f 84 97 00 00 00 je 116f08 /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) 116e71: 8b 43 5c mov 0x5c(%ebx),%eax 116e74: 85 c0 test %eax,%eax 116e76: 0f 85 8c 00 00 00 jne 116f08 /* * Take the node out of the parent's chain that contains this node */ if ( the_jnode->Parent != NULL ) { 116e7c: 8b 4b 08 mov 0x8(%ebx),%ecx 116e7f: 85 c9 test %ecx,%ecx 116e81: 74 13 je 116e96 116e83: 83 ec 0c sub $0xc,%esp 116e86: 53 push %ebx 116e87: e8 b4 68 ff ff call 10d740 <_Chain_Extract> rtems_chain_extract( (rtems_chain_node *) the_jnode ); the_jnode->Parent = NULL; 116e8c: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 116e93: 83 c4 10 add $0x10,%esp /* * Decrement the link counter and see if we can free the space. */ the_jnode->st_nlink--; 116e96: 66 ff 4b 34 decw 0x34(%ebx) IMFS_update_ctime( the_jnode ); 116e9a: 83 ec 08 sub $0x8,%esp 116e9d: 6a 00 push $0x0 116e9f: 8d 45 f0 lea -0x10(%ebp),%eax 116ea2: 50 push %eax 116ea3: e8 74 25 ff ff call 10941c 116ea8: 8b 45 f0 mov -0x10(%ebp),%eax 116eab: 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) ) { 116eae: 89 1c 24 mov %ebx,(%esp) 116eb1: e8 ae d5 ff ff call 114464 116eb6: 83 c4 10 add $0x10,%esp 116eb9: 85 c0 test %eax,%eax 116ebb: 75 2b jne 116ee8 116ebd: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx) 116ec2: 75 24 jne 116ee8 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == pathloc->node_access ) 116ec4: a1 98 91 12 00 mov 0x129198,%eax 116ec9: 8b 50 04 mov 0x4(%eax),%edx 116ecc: 3b 16 cmp (%esi),%edx 116ece: 74 4c je 116f1c /* * Free memory associated with a memory file. */ free( the_jnode ); 116ed0: 83 ec 0c sub $0xc,%esp 116ed3: 53 push %ebx 116ed4: e8 c7 24 ff ff call 1093a0 116ed9: 31 c0 xor %eax,%eax 116edb: 83 c4 10 add $0x10,%esp } return 0; } 116ede: 8d 65 f8 lea -0x8(%ebp),%esp 116ee1: 5b pop %ebx 116ee2: 5e pop %esi 116ee3: c9 leave 116ee4: c3 ret 116ee5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED /* * Free memory associated with a memory file. */ free( the_jnode ); 116ee8: 31 c0 xor %eax,%eax } return 0; } 116eea: 8d 65 f8 lea -0x8(%ebp),%esp 116eed: 5b pop %ebx 116eee: 5e pop %esi 116eef: c9 leave 116ef0: c3 ret 116ef1: 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 ); 116ef4: e8 37 06 00 00 call 117530 <__errno> 116ef9: c7 00 5a 00 00 00 movl $0x5a,(%eax) 116eff: b8 ff ff ff ff mov $0xffffffff,%eax 116f04: eb e4 jmp 116eea 116f06: 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 ); 116f08: e8 23 06 00 00 call 117530 <__errno> 116f0d: c7 00 10 00 00 00 movl $0x10,(%eax) 116f13: b8 ff ff ff ff mov $0xffffffff,%eax 116f18: eb d0 jmp 116eea 116f1a: 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; 116f1c: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED 116f23: eb ab jmp 116ed0 <== NOT EXECUTED 0012ba8c : /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) { 12ba8c: 55 push %ebp 12ba8d: 89 e5 mov %esp,%ebp 12ba8f: 53 push %ebx 12ba90: 83 ec 04 sub $0x4,%esp FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted) 12ba93: 80 3d 40 d8 16 00 00 cmpb $0x0,0x16d840 12ba9a: 74 08 je 12baa4 fprintf( fp, "root:x:0:root\n" "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); } } 12ba9c: 8b 5d fc mov -0x4(%ebp),%ebx 12ba9f: c9 leave 12baa0: c3 ret 12baa1: 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; 12baa4: c6 05 40 d8 16 00 01 movb $0x1,0x16d840 mkdir("/etc", 0777); 12baab: 83 ec 08 sub $0x8,%esp 12baae: 68 ff 01 00 00 push $0x1ff 12bab3: 68 95 7a 15 00 push $0x157a95 12bab8: e8 47 1a fe ff call 10d504 /* * Initialize /etc/passwd */ if ((fp = fopen("/etc/passwd", "r")) != NULL) { 12babd: 59 pop %ecx 12babe: 5b pop %ebx 12babf: 68 cd ad 15 00 push $0x15adcd 12bac4: 68 ab 7a 15 00 push $0x157aab 12bac9: e8 d2 62 01 00 call 141da0 12bace: 83 c4 10 add $0x10,%esp 12bad1: 85 c0 test %eax,%eax 12bad3: 74 77 je 12bb4c fclose(fp); 12bad5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bad8: 50 push %eax <== NOT EXECUTED 12bad9: e8 aa 5a 01 00 call 141588 <== NOT EXECUTED 12bade: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } /* * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { 12bae1: 83 ec 08 sub $0x8,%esp 12bae4: 68 cd ad 15 00 push $0x15adcd 12bae9: 68 b7 7a 15 00 push $0x157ab7 12baee: e8 ad 62 01 00 call 141da0 12baf3: 83 c4 10 add $0x10,%esp 12baf6: 85 c0 test %eax,%eax 12baf8: 74 12 je 12bb0c fclose(fp); 12bafa: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bafd: 50 push %eax <== NOT EXECUTED 12bafe: e8 85 5a 01 00 call 141588 <== NOT EXECUTED 12bb03: 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); } } 12bb06: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12bb09: c9 leave <== NOT EXECUTED 12bb0a: c3 ret <== NOT EXECUTED 12bb0b: 90 nop <== NOT EXECUTED * Initialize /etc/group */ if ((fp = fopen("/etc/group", "r")) != NULL) { fclose(fp); } else if ((fp = fopen("/etc/group", "w")) != NULL) { 12bb0c: 83 ec 08 sub $0x8,%esp 12bb0f: 68 50 a9 15 00 push $0x15a950 12bb14: 68 b7 7a 15 00 push $0x157ab7 12bb19: e8 82 62 01 00 call 141da0 12bb1e: 89 c3 mov %eax,%ebx 12bb20: 83 c4 10 add $0x10,%esp 12bb23: 85 c0 test %eax,%eax 12bb25: 0f 84 71 ff ff ff je 12ba9c fprintf( fp, "root:x:0:root\n" 12bb2b: 50 push %eax 12bb2c: 6a 2a push $0x2a 12bb2e: 6a 01 push $0x1 12bb30: 68 90 ed 15 00 push $0x15ed90 12bb35: e8 e2 74 01 00 call 14301c "rtems:x:1:rtems\n" "tty:x:2:tty\n" ); fclose(fp); 12bb3a: 89 1c 24 mov %ebx,(%esp) 12bb3d: e8 46 5a 01 00 call 141588 12bb42: 83 c4 10 add $0x10,%esp 12bb45: e9 52 ff ff ff jmp 12ba9c 12bb4a: 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) { 12bb4c: 83 ec 08 sub $0x8,%esp 12bb4f: 68 50 a9 15 00 push $0x15a950 12bb54: 68 ab 7a 15 00 push $0x157aab 12bb59: e8 42 62 01 00 call 141da0 12bb5e: 89 c3 mov %eax,%ebx 12bb60: 83 c4 10 add $0x10,%esp 12bb63: 85 c0 test %eax,%eax 12bb65: 0f 84 76 ff ff ff je 12bae1 fprintf(fp, "root:*:0:0:root::/:/bin/sh\n" 12bb6b: 50 push %eax 12bb6c: 6a 66 push $0x66 12bb6e: 6a 01 push $0x1 12bb70: 68 28 ed 15 00 push $0x15ed28 12bb75: e8 a2 74 01 00 call 14301c "rtems:*:1:1:RTEMS Application::/:/bin/sh\n" "tty:!:2:2:tty owner::/:/bin/false\n" ); fclose(fp); 12bb7a: 89 1c 24 mov %ebx,(%esp) 12bb7d: e8 06 5a 01 00 call 141588 12bb82: 83 c4 10 add $0x10,%esp 12bb85: e9 57 ff ff ff jmp 12bae1 0010b710 : int ioctl( int fd, ioctl_command_t command, ... ) { 10b710: 55 push %ebp 10b711: 89 e5 mov %esp,%ebp 10b713: 83 ec 08 sub $0x8,%esp 10b716: 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 ); 10b719: 3b 05 6c 75 12 00 cmp 0x12756c,%eax 10b71f: 73 2f jae 10b750 iop = rtems_libio_iop( fd ); 10b721: c1 e0 06 shl $0x6,%eax 10b724: 03 05 e0 b6 12 00 add 0x12b6e0,%eax rtems_libio_check_is_open(iop); 10b72a: f6 40 15 01 testb $0x1,0x15(%eax) 10b72e: 74 20 je 10b750 va_start(ap, command); buffer = va_arg(ap, void *); 10b730: 8b 4d 10 mov 0x10(%ebp),%ecx /* * Now process the ioctl(). */ if ( !iop->handlers ) 10b733: 8b 50 3c mov 0x3c(%eax),%edx 10b736: 85 d2 test %edx,%edx 10b738: 74 16 je 10b750 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) 10b73a: 8b 52 10 mov 0x10(%edx),%edx 10b73d: 85 d2 test %edx,%edx 10b73f: 74 21 je 10b762 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 10b741: 83 ec 04 sub $0x4,%esp 10b744: 51 push %ecx 10b745: ff 75 0c pushl 0xc(%ebp) 10b748: 50 push %eax 10b749: ff d2 call *%edx return rc; 10b74b: 83 c4 10 add $0x10,%esp } 10b74e: c9 leave 10b74f: c3 ret /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 10b750: e8 0f c0 00 00 call 117764 <__errno> 10b755: c7 00 09 00 00 00 movl $0x9,(%eax) 10b75b: 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; } 10b760: c9 leave 10b761: 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 ); 10b762: e8 fd bf 00 00 call 117764 <__errno> <== NOT EXECUTED 10b767: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10b76d: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); return rc; } 10b772: c9 leave <== NOT EXECUTED 10b773: c3 ret <== NOT EXECUTED 00109970 : /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 109970: 55 push %ebp <== NOT EXECUTED 109971: 89 e5 mov %esp,%ebp <== NOT EXECUTED 109973: 56 push %esi <== NOT EXECUTED 109974: 53 push %ebx <== NOT EXECUTED 109975: 89 d6 mov %edx,%esi <== NOT EXECUTED 109977: 88 c3 mov %al,%bl <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 109979: 8b 42 30 mov 0x30(%edx),%eax <== NOT EXECUTED 10997c: a8 20 test $0x20,%al <== NOT EXECUTED 10997e: 74 03 je 109983 <== NOT EXECUTED c &= 0x7f; 109980: 83 e3 7f and $0x7f,%ebx <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 109983: f6 c4 02 test $0x2,%ah <== NOT EXECUTED 109986: 74 18 je 1099a0 <== NOT EXECUTED c = tolower (c); 109988: 0f b6 db movzbl %bl,%ebx <== NOT EXECUTED 10998b: 8b 15 a8 30 12 00 mov 0x1230a8,%edx <== NOT EXECUTED 109991: 0f be 54 1a 01 movsbl 0x1(%edx,%ebx,1),%edx <== NOT EXECUTED 109996: 83 e2 03 and $0x3,%edx <== NOT EXECUTED 109999: 4a dec %edx <== NOT EXECUTED 10999a: 0f 84 98 00 00 00 je 109a38 <== NOT EXECUTED if (c == '\r') { 1099a0: 80 fb 0d cmp $0xd,%bl <== NOT EXECUTED 1099a3: 74 33 je 1099d8 <== 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)) { 1099a5: 80 fb 0a cmp $0xa,%bl <== NOT EXECUTED 1099a8: 0f 84 82 00 00 00 je 109a30 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 1099ae: 84 db test %bl,%bl <== NOT EXECUTED 1099b0: 75 3a jne 1099ec <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 1099b2: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED 1099b5: 8b 15 08 30 12 00 mov 0x123008,%edx <== NOT EXECUTED 1099bb: 4a dec %edx <== NOT EXECUTED 1099bc: 39 d0 cmp %edx,%eax <== NOT EXECUTED 1099be: 7d 1c jge 1099dc <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 1099c0: f6 46 3c 08 testb $0x8,0x3c(%esi) <== NOT EXECUTED 1099c4: 75 7a jne 109a40 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 1099c6: 8b 56 1c mov 0x1c(%esi),%edx <== NOT EXECUTED 1099c9: 88 1c 02 mov %bl,(%edx,%eax,1) <== NOT EXECUTED 1099cc: 40 inc %eax <== NOT EXECUTED 1099cd: 89 46 20 mov %eax,0x20(%esi) <== NOT EXECUTED 1099d0: 31 c0 xor %eax,%eax <== NOT EXECUTED } return 0; } 1099d2: 5b pop %ebx <== NOT EXECUTED 1099d3: 5e pop %esi <== NOT EXECUTED 1099d4: c9 leave <== NOT EXECUTED 1099d5: c3 ret <== NOT EXECUTED 1099d6: 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) 1099d8: 84 c0 test %al,%al <== NOT EXECUTED 1099da: 79 08 jns 1099e4 <== 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; 1099dc: 31 c0 xor %eax,%eax <== NOT EXECUTED } return 0; } 1099de: 5b pop %ebx <== NOT EXECUTED 1099df: 5e pop %esi <== NOT EXECUTED 1099e0: c9 leave <== NOT EXECUTED 1099e1: c3 ret <== NOT EXECUTED 1099e2: 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) 1099e4: f6 c4 01 test $0x1,%ah <== NOT EXECUTED 1099e7: 74 03 je 1099ec <== NOT EXECUTED 1099e9: b3 0a mov $0xa,%bl <== NOT EXECUTED 1099eb: 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)) { 1099ec: 8b 46 3c mov 0x3c(%esi),%eax <== NOT EXECUTED 1099ef: a8 02 test $0x2,%al <== NOT EXECUTED 1099f1: 74 bf je 1099b2 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 1099f3: 38 5e 43 cmp %bl,0x43(%esi) <== NOT EXECUTED 1099f6: 0f 84 a0 00 00 00 je 109a9c <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 1099fc: 38 5e 44 cmp %bl,0x44(%esi) <== NOT EXECUTED 1099ff: 74 5f je 109a60 <== NOT EXECUTED erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { 109a01: 38 5e 45 cmp %bl,0x45(%esi) <== NOT EXECUTED 109a04: 74 20 je 109a26 <== NOT EXECUTED return 1; } else if (c == '\n') { 109a06: 80 fb 0a cmp $0xa,%bl <== NOT EXECUTED 109a09: 74 69 je 109a74 <== 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]) 109a0b: 38 5e 4c cmp %bl,0x4c(%esi) <== NOT EXECUTED 109a0e: 74 05 je 109a15 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { 109a10: 38 5e 51 cmp %bl,0x51(%esi) <== NOT EXECUTED 109a13: 75 9d jne 1099b2 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 109a15: a8 08 test $0x8,%al <== NOT EXECUTED 109a17: 75 3b jne 109a54 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 109a19: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED 109a1c: 8b 56 1c mov 0x1c(%esi),%edx <== NOT EXECUTED 109a1f: 88 1c 02 mov %bl,(%edx,%eax,1) <== NOT EXECUTED 109a22: 40 inc %eax <== NOT EXECUTED 109a23: 89 46 20 mov %eax,0x20(%esi) <== NOT EXECUTED 109a26: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED return 1; 109a2b: eb a5 jmp 1099d2 <== NOT EXECUTED 109a2d: 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)) { 109a30: a8 40 test $0x40,%al <== NOT EXECUTED 109a32: 74 b8 je 1099ec <== NOT EXECUTED 109a34: b3 0d mov $0xd,%bl <== NOT EXECUTED 109a36: eb b4 jmp 1099ec <== 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); 109a38: 83 c3 20 add $0x20,%ebx <== NOT EXECUTED 109a3b: e9 60 ff ff ff jmp 1099a0 <== NOT EXECUTED /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 109a40: 0f b6 c3 movzbl %bl,%eax <== NOT EXECUTED 109a43: 89 f2 mov %esi,%edx <== NOT EXECUTED 109a45: e8 f6 fc ff ff call 109740 <== NOT EXECUTED 109a4a: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED 109a4d: e9 74 ff ff ff jmp 1099c6 <== NOT EXECUTED 109a52: 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); 109a54: 0f b6 c3 movzbl %bl,%eax <== NOT EXECUTED 109a57: 89 f2 mov %esi,%edx <== NOT EXECUTED 109a59: e8 e2 fc ff ff call 109740 <== NOT EXECUTED 109a5e: eb b9 jmp 109a19 <== 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); 109a60: ba 01 00 00 00 mov $0x1,%edx <== NOT EXECUTED 109a65: 89 f0 mov %esi,%eax <== NOT EXECUTED 109a67: e8 38 fd ff ff call 1097a4 <== NOT EXECUTED 109a6c: 31 c0 xor %eax,%eax <== NOT EXECUTED return 0; 109a6e: e9 5f ff ff ff jmp 1099d2 <== NOT EXECUTED 109a73: 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)) 109a74: a8 48 test $0x48,%al <== NOT EXECUTED 109a76: 74 0c je 109a84 <== NOT EXECUTED echo (c, tty); 109a78: 89 f2 mov %esi,%edx <== NOT EXECUTED 109a7a: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED 109a7f: e8 bc fc ff ff call 109740 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 109a84: 8b 46 20 mov 0x20(%esi),%eax <== NOT EXECUTED 109a87: 8b 56 1c mov 0x1c(%esi),%edx <== NOT EXECUTED 109a8a: c6 04 02 0a movb $0xa,(%edx,%eax,1) <== NOT EXECUTED 109a8e: 40 inc %eax <== NOT EXECUTED 109a8f: 89 46 20 mov %eax,0x20(%esi) <== NOT EXECUTED 109a92: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED return 1; 109a97: e9 36 ff ff ff jmp 1099d2 <== 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); 109a9c: 31 d2 xor %edx,%edx <== NOT EXECUTED 109a9e: 89 f0 mov %esi,%eax <== NOT EXECUTED 109aa0: e8 ff fc ff ff call 1097a4 <== NOT EXECUTED 109aa5: 31 c0 xor %eax,%eax <== NOT EXECUTED return 0; 109aa7: e9 26 ff ff ff jmp 1099d2 <== NOT EXECUTED 001244b8 : * These are directly supported (and completely correct) in the posix api. */ #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { 1244b8: 55 push %ebp <== NOT EXECUTED 1244b9: 89 e5 mov %esp,%ebp <== NOT EXECUTED return 0; } 1244bb: 31 c0 xor %eax,%eax <== NOT EXECUTED 1244bd: c9 leave <== NOT EXECUTED 1244be: c3 ret <== NOT EXECUTED 0011d838 : extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { 11d838: 55 push %ebp 11d839: 89 e5 mov %esp,%ebp 11d83b: 53 push %ebx 11d83c: 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())) 11d83f: 83 3d 20 55 12 00 03 cmpl $0x3,0x125520 11d846: 74 08 je 11d850 */ fclose (stdin); fclose (stdout); fclose (stderr); } 11d848: 8b 5d fc mov -0x4(%ebp),%ebx 11d84b: c9 leave 11d84c: c3 ret 11d84d: 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) { 11d850: 8b 1d 00 04 12 00 mov 0x120400,%ebx 11d856: 39 1d c0 30 12 00 cmp %ebx,0x1230c0 11d85c: 74 12 je 11d870 _wrapup_reent(_global_impure_ptr); 11d85e: 83 ec 0c sub $0xc,%esp 11d861: 53 push %ebx 11d862: e8 f5 04 00 00 call 11dd5c <_wrapup_reent> /* Don't reclaim this one, just in case we do printfs * on the way out to ROM. */ _reclaim_reent(&libc_global_reent); #endif _REENT = _global_impure_ptr; 11d867: 89 1d c0 30 12 00 mov %ebx,0x1230c0 11d86d: 83 c4 10 add $0x10,%esp * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); 11d870: 83 ec 0c sub $0xc,%esp 11d873: ff 73 04 pushl 0x4(%ebx) 11d876: e8 c9 4c ff ff call 112544 fclose (stdout); 11d87b: 5a pop %edx 11d87c: a1 c0 30 12 00 mov 0x1230c0,%eax 11d881: ff 70 08 pushl 0x8(%eax) 11d884: e8 bb 4c ff ff call 112544 fclose (stderr); 11d889: 58 pop %eax 11d88a: a1 c0 30 12 00 mov 0x1230c0,%eax 11d88f: ff 70 0c pushl 0xc(%eax) 11d892: e8 ad 4c ff ff call 112544 11d897: 83 c4 10 add $0x10,%esp } 11d89a: 8b 5d fc mov -0x4(%ebp),%ebx 11d89d: c9 leave 11d89e: c3 ret 0012bf88 : int link( const char *existing, const char *new ) { 12bf88: 55 push %ebp 12bf89: 89 e5 mov %esp,%ebp 12bf8b: 57 push %edi 12bf8c: 56 push %esi 12bf8d: 53 push %ebx 12bf8e: 83 ec 48 sub $0x48,%esp 12bf91: 8b 55 08 mov 0x8(%ebp),%edx /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 12bf94: 31 c0 xor %eax,%eax 12bf96: b9 ff ff ff ff mov $0xffffffff,%ecx 12bf9b: 89 d7 mov %edx,%edi 12bf9d: f2 ae repnz scas %es:(%edi),%al 12bf9f: f7 d1 not %ecx 12bfa1: 49 dec %ecx 12bfa2: 6a 01 push $0x1 12bfa4: 8d 45 d0 lea -0x30(%ebp),%eax 12bfa7: 50 push %eax 12bfa8: 6a 00 push $0x0 12bfaa: 51 push %ecx 12bfab: 52 push %edx 12bfac: e8 fb 0d fe ff call 10cdac 0, &existing_loc, true ); if ( result != 0 ) 12bfb1: 83 c4 20 add $0x20,%esp 12bfb4: 85 c0 test %eax,%eax 12bfb6: 0f 85 e0 00 00 00 jne 12c09c /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 12bfbc: 8b 55 0c mov 0xc(%ebp),%edx 12bfbf: 8a 02 mov (%edx),%al 12bfc1: 3c 2f cmp $0x2f,%al 12bfc3: 74 0c je 12bfd1 12bfc5: 3c 5c cmp $0x5c,%al 12bfc7: 74 08 je 12bfd1 12bfc9: 84 c0 test %al,%al 12bfcb: 0f 85 db 00 00 00 jne 12c0ac 12bfd1: 8d 5d bc lea -0x44(%ebp),%ebx 12bfd4: 8b 35 24 83 16 00 mov 0x168324,%esi 12bfda: 83 c6 18 add $0x18,%esi 12bfdd: b9 05 00 00 00 mov $0x5,%ecx 12bfe2: 89 df mov %ebx,%edi 12bfe4: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12bfe6: ba 01 00 00 00 mov $0x1,%edx if ( !parent_loc.ops->evalformake_h ) { 12bfeb: 8b 45 c8 mov -0x38(%ebp),%eax 12bfee: 8b 40 04 mov 0x4(%eax),%eax 12bff1: 85 c0 test %eax,%eax 12bff3: 74 7f je 12c074 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 ); 12bff5: 51 push %ecx 12bff6: 8d 4d e4 lea -0x1c(%ebp),%ecx 12bff9: 51 push %ecx 12bffa: 53 push %ebx 12bffb: 03 55 0c add 0xc(%ebp),%edx 12bffe: 52 push %edx 12bfff: ff d0 call *%eax 12c001: 89 c6 mov %eax,%esi if ( result != 0 ) { 12c003: 83 c4 10 add $0x10,%esp 12c006: 85 c0 test %eax,%eax 12c008: 0f 85 06 01 00 00 jne 12c114 /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 12c00e: 8b 45 cc mov -0x34(%ebp),%eax 12c011: 3b 45 e0 cmp -0x20(%ebp),%eax 12c014: 0f 85 ae 00 00 00 jne 12c0c8 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { 12c01a: 8b 55 c8 mov -0x38(%ebp),%edx 12c01d: 8b 42 08 mov 0x8(%edx),%eax 12c020: 85 c0 test %eax,%eax 12c022: 0f 84 17 01 00 00 je 12c13f 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 ); 12c028: 52 push %edx 12c029: ff 75 e4 pushl -0x1c(%ebp) 12c02c: 53 push %ebx 12c02d: 8d 55 d0 lea -0x30(%ebp),%edx 12c030: 52 push %edx 12c031: ff d0 call *%eax 12c033: 89 c6 mov %eax,%esi rtems_filesystem_freenode( &existing_loc ); 12c035: 8b 45 dc mov -0x24(%ebp),%eax 12c038: 83 c4 10 add $0x10,%esp 12c03b: 85 c0 test %eax,%eax 12c03d: 74 13 je 12c052 12c03f: 8b 40 1c mov 0x1c(%eax),%eax 12c042: 85 c0 test %eax,%eax 12c044: 74 0c je 12c052 12c046: 83 ec 0c sub $0xc,%esp 12c049: 8d 55 d0 lea -0x30(%ebp),%edx 12c04c: 52 push %edx 12c04d: ff d0 call *%eax 12c04f: 83 c4 10 add $0x10,%esp rtems_filesystem_freenode( &parent_loc ); 12c052: 8b 45 c8 mov -0x38(%ebp),%eax 12c055: 85 c0 test %eax,%eax 12c057: 74 10 je 12c069 12c059: 8b 40 1c mov 0x1c(%eax),%eax 12c05c: 85 c0 test %eax,%eax 12c05e: 74 09 je 12c069 12c060: 83 ec 0c sub $0xc,%esp 12c063: 53 push %ebx 12c064: ff d0 call *%eax 12c066: 83 c4 10 add $0x10,%esp return result; } 12c069: 89 f0 mov %esi,%eax 12c06b: 8d 65 f4 lea -0xc(%ebp),%esp 12c06e: 5b pop %ebx 12c06f: 5e pop %esi 12c070: 5f pop %edi 12c071: c9 leave 12c072: c3 ret 12c073: 90 nop <== NOT EXECUTED */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); 12c074: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 12c077: 85 c0 test %eax,%eax <== NOT EXECUTED 12c079: 74 13 je 12c08e <== NOT EXECUTED 12c07b: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c07e: 85 c0 test %eax,%eax <== NOT EXECUTED 12c080: 74 0c je 12c08e <== NOT EXECUTED 12c082: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c085: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 12c088: 52 push %edx <== NOT EXECUTED 12c089: ff d0 call *%eax <== NOT EXECUTED 12c08b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12c08e: e8 a9 53 01 00 call 14143c <__errno> <== NOT EXECUTED 12c093: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c099: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 12c09c: be ff ff ff ff mov $0xffffffff,%esi rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 12c0a1: 89 f0 mov %esi,%eax 12c0a3: 8d 65 f4 lea -0xc(%ebp),%esp 12c0a6: 5b pop %ebx 12c0a7: 5e pop %esi 12c0a8: 5f pop %edi 12c0a9: c9 leave 12c0aa: c3 ret 12c0ab: 90 nop <== NOT EXECUTED /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 12c0ac: 8d 5d bc lea -0x44(%ebp),%ebx 12c0af: 8b 35 24 83 16 00 mov 0x168324,%esi 12c0b5: 83 c6 04 add $0x4,%esi 12c0b8: b9 05 00 00 00 mov $0x5,%ecx 12c0bd: 89 df mov %ebx,%edi 12c0bf: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12c0c1: 31 d2 xor %edx,%edx 12c0c3: e9 23 ff ff ff jmp 12bfeb * 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 ); 12c0c8: 8b 45 dc mov -0x24(%ebp),%eax 12c0cb: 85 c0 test %eax,%eax 12c0cd: 74 13 je 12c0e2 12c0cf: 8b 40 1c mov 0x1c(%eax),%eax 12c0d2: 85 c0 test %eax,%eax 12c0d4: 74 0c je 12c0e2 12c0d6: 83 ec 0c sub $0xc,%esp 12c0d9: 8d 55 d0 lea -0x30(%ebp),%edx 12c0dc: 52 push %edx 12c0dd: ff d0 call *%eax 12c0df: 83 c4 10 add $0x10,%esp rtems_filesystem_freenode( &parent_loc ); 12c0e2: 8b 45 c8 mov -0x38(%ebp),%eax 12c0e5: 85 c0 test %eax,%eax 12c0e7: 74 10 je 12c0f9 12c0e9: 8b 40 1c mov 0x1c(%eax),%eax 12c0ec: 85 c0 test %eax,%eax 12c0ee: 74 09 je 12c0f9 12c0f0: 83 ec 0c sub $0xc,%esp 12c0f3: 53 push %ebx 12c0f4: ff d0 call *%eax 12c0f6: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( EXDEV ); 12c0f9: e8 3e 53 01 00 call 14143c <__errno> 12c0fe: c7 00 12 00 00 00 movl $0x12,(%eax) 12c104: be ff ff ff ff mov $0xffffffff,%esi rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); return result; } 12c109: 89 f0 mov %esi,%eax 12c10b: 8d 65 f4 lea -0xc(%ebp),%esp 12c10e: 5b pop %ebx 12c10f: 5e pop %esi 12c110: 5f pop %edi 12c111: c9 leave 12c112: c3 ret 12c113: 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 ); 12c114: 8b 45 dc mov -0x24(%ebp),%eax 12c117: 85 c0 test %eax,%eax 12c119: 74 13 je 12c12e 12c11b: 8b 40 1c mov 0x1c(%eax),%eax 12c11e: 85 c0 test %eax,%eax 12c120: 74 0c je 12c12e 12c122: 83 ec 0c sub $0xc,%esp 12c125: 8d 55 d0 lea -0x30(%ebp),%edx 12c128: 52 push %edx 12c129: ff d0 call *%eax 12c12b: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( result ); 12c12e: e8 09 53 01 00 call 14143c <__errno> 12c133: 89 30 mov %esi,(%eax) 12c135: be ff ff ff ff mov $0xffffffff,%esi 12c13a: e9 2a ff ff ff jmp 12c069 rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); 12c13f: 8b 45 dc mov -0x24(%ebp),%eax <== NOT EXECUTED 12c142: 85 c0 test %eax,%eax <== NOT EXECUTED 12c144: 74 16 je 12c15c <== NOT EXECUTED 12c146: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c149: 85 c0 test %eax,%eax <== NOT EXECUTED 12c14b: 74 0f je 12c15c <== NOT EXECUTED 12c14d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c150: 8d 55 d0 lea -0x30(%ebp),%edx <== NOT EXECUTED 12c153: 52 push %edx <== NOT EXECUTED 12c154: ff d0 call *%eax <== NOT EXECUTED 12c156: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED 12c159: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 12c15c: 85 d2 test %edx,%edx <== NOT EXECUTED 12c15e: 74 10 je 12c170 <== NOT EXECUTED 12c160: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12c163: 85 c0 test %eax,%eax <== NOT EXECUTED 12c165: 74 09 je 12c170 <== NOT EXECUTED 12c167: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c16a: 53 push %ebx <== NOT EXECUTED 12c16b: ff d0 call *%eax <== NOT EXECUTED 12c16d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12c170: e8 c7 52 01 00 call 14143c <__errno> <== NOT EXECUTED 12c175: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c17b: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 12c180: e9 e4 fe ff ff jmp 12c069 <== NOT EXECUTED 0011d6f0 : off_t lseek( int fd, off_t offset, int whence ) { 11d6f0: 55 push %ebp 11d6f1: 89 e5 mov %esp,%ebp 11d6f3: 57 push %edi 11d6f4: 56 push %esi 11d6f5: 53 push %ebx 11d6f6: 83 ec 2c sub $0x2c,%esp 11d6f9: 8b 5d 08 mov 0x8(%ebp),%ebx 11d6fc: 8b 75 0c mov 0xc(%ebp),%esi 11d6ff: 8b 7d 10 mov 0x10(%ebp),%edi 11d702: 8b 45 14 mov 0x14(%ebp),%eax rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 11d705: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx 11d70b: 0f 83 b7 00 00 00 jae 11d7c8 iop = rtems_libio_iop( fd ); 11d711: c1 e3 06 shl $0x6,%ebx 11d714: 03 1d c0 51 12 00 add 0x1251c0,%ebx rtems_libio_check_is_open(iop); 11d71a: f6 43 15 01 testb $0x1,0x15(%ebx) 11d71e: 0f 84 a4 00 00 00 je 11d7c8 /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 11d724: 8b 53 3c mov 0x3c(%ebx),%edx 11d727: 89 55 d4 mov %edx,-0x2c(%ebp) 11d72a: 8b 52 14 mov 0x14(%edx),%edx 11d72d: 85 d2 test %edx,%edx 11d72f: 0f 84 aa 00 00 00 je 11d7df /* * Now process the lseek(). */ old_offset = iop->offset; 11d735: 8b 53 0c mov 0xc(%ebx),%edx 11d738: 8b 4b 10 mov 0x10(%ebx),%ecx 11d73b: 89 55 e0 mov %edx,-0x20(%ebp) 11d73e: 89 4d e4 mov %ecx,-0x1c(%ebp) switch ( whence ) { 11d741: 83 f8 01 cmp $0x1,%eax 11d744: 74 6e je 11d7b4 11d746: 83 f8 02 cmp $0x2,%eax 11d749: 74 35 je 11d780 11d74b: 85 c0 test %eax,%eax 11d74d: 75 45 jne 11d794 case SEEK_SET: iop->offset = offset; 11d74f: 89 73 0c mov %esi,0xc(%ebx) 11d752: 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 ); 11d755: 50 push %eax 11d756: 57 push %edi 11d757: 56 push %esi 11d758: 53 push %ebx 11d759: 8b 4d d4 mov -0x2c(%ebp),%ecx 11d75c: ff 51 14 call *0x14(%ecx) if ( status == (off_t) -1 ) 11d75f: 83 c4 10 add $0x10,%esp 11d762: 89 c1 mov %eax,%ecx 11d764: 21 d1 and %edx,%ecx 11d766: 41 inc %ecx 11d767: 75 0c jne 11d775 iop->offset = old_offset; 11d769: 8b 75 e0 mov -0x20(%ebp),%esi 11d76c: 8b 7d e4 mov -0x1c(%ebp),%edi 11d76f: 89 73 0c mov %esi,0xc(%ebx) 11d772: 89 7b 10 mov %edi,0x10(%ebx) /* * So if the operation failed, we have to restore iop->offset. */ return status; } 11d775: 8d 65 f4 lea -0xc(%ebp),%esp 11d778: 5b pop %ebx 11d779: 5e pop %esi 11d77a: 5f pop %edi 11d77b: c9 leave 11d77c: c3 ret 11d77d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 11d780: 89 f2 mov %esi,%edx 11d782: 89 f9 mov %edi,%ecx 11d784: 03 53 04 add 0x4(%ebx),%edx 11d787: 13 4b 08 adc 0x8(%ebx),%ecx 11d78a: 89 53 0c mov %edx,0xc(%ebx) 11d78d: 89 4b 10 mov %ecx,0x10(%ebx) break; 11d790: eb c3 jmp 11d755 11d792: 66 90 xchg %ax,%ax <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( EINVAL ); 11d794: e8 5f 4c ff ff call 1123f8 <__errno> 11d799: c7 00 16 00 00 00 movl $0x16,(%eax) 11d79f: b8 ff ff ff ff mov $0xffffffff,%eax 11d7a4: ba ff ff ff ff mov $0xffffffff,%edx /* * So if the operation failed, we have to restore iop->offset. */ return status; } 11d7a9: 8d 65 f4 lea -0xc(%ebp),%esp 11d7ac: 5b pop %ebx 11d7ad: 5e pop %esi 11d7ae: 5f pop %edi 11d7af: c9 leave 11d7b0: c3 ret 11d7b1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 11d7b4: 8b 55 e0 mov -0x20(%ebp),%edx 11d7b7: 8b 4d e4 mov -0x1c(%ebp),%ecx 11d7ba: 01 f2 add %esi,%edx 11d7bc: 11 f9 adc %edi,%ecx 11d7be: 89 53 0c mov %edx,0xc(%ebx) 11d7c1: 89 4b 10 mov %ecx,0x10(%ebx) break; 11d7c4: eb 8f jmp 11d755 11d7c6: 66 90 xchg %ax,%ax <== NOT EXECUTED off_t old_offset; off_t status; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 11d7c8: e8 2b 4c ff ff call 1123f8 <__errno> 11d7cd: c7 00 09 00 00 00 movl $0x9,(%eax) 11d7d3: b8 ff ff ff ff mov $0xffffffff,%eax 11d7d8: ba ff ff ff ff mov $0xffffffff,%edx 11d7dd: eb 96 jmp 11d775 /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 11d7df: e8 14 4c ff ff call 1123f8 <__errno> <== NOT EXECUTED 11d7e4: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11d7ea: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11d7ef: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED 11d7f4: e9 7c ff ff ff jmp 11d775 <== NOT EXECUTED 0012c2d4 : int _STAT_NAME( const char *path, struct stat *buf ) { 12c2d4: 55 push %ebp <== NOT EXECUTED 12c2d5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c2d7: 57 push %edi <== NOT EXECUTED 12c2d8: 56 push %esi <== NOT EXECUTED 12c2d9: 53 push %ebx <== NOT EXECUTED 12c2da: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED 12c2dd: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 12c2e0: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 12c2e3: 85 f6 test %esi,%esi <== NOT EXECUTED 12c2e5: 0f 84 9d 00 00 00 je 12c388 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 12c2eb: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 12c2f0: 89 d7 mov %edx,%edi <== NOT EXECUTED 12c2f2: 31 c0 xor %eax,%eax <== NOT EXECUTED 12c2f4: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 12c2f6: f7 d1 not %ecx <== NOT EXECUTED 12c2f8: 49 dec %ecx <== NOT EXECUTED 12c2f9: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c2fc: 6a 00 push $0x0 <== NOT EXECUTED 12c2fe: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED 12c301: 53 push %ebx <== NOT EXECUTED 12c302: 6a 00 push $0x0 <== NOT EXECUTED 12c304: 51 push %ecx <== NOT EXECUTED 12c305: 52 push %edx <== NOT EXECUTED 12c306: e8 a1 0a fe ff call 10cdac <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 12c30b: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12c30e: 85 c0 test %eax,%eax <== NOT EXECUTED 12c310: 75 66 jne 12c378 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 12c312: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED 12c315: 8b 42 18 mov 0x18(%edx),%eax <== NOT EXECUTED 12c318: 85 c0 test %eax,%eax <== NOT EXECUTED 12c31a: 74 39 je 12c355 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 12c31c: b9 48 00 00 00 mov $0x48,%ecx <== NOT EXECUTED 12c321: 89 f7 mov %esi,%edi <== NOT EXECUTED 12c323: 31 c0 xor %eax,%eax <== NOT EXECUTED 12c325: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 12c327: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c32a: 56 push %esi <== NOT EXECUTED 12c32b: 53 push %ebx <== NOT EXECUTED 12c32c: ff 52 18 call *0x18(%edx) <== NOT EXECUTED 12c32f: 89 c6 mov %eax,%esi <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 12c331: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 12c334: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c337: 85 c0 test %eax,%eax <== NOT EXECUTED 12c339: 74 10 je 12c34b <== NOT EXECUTED 12c33b: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c33e: 85 c0 test %eax,%eax <== NOT EXECUTED 12c340: 74 09 je 12c34b <== NOT EXECUTED 12c342: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c345: 53 push %ebx <== NOT EXECUTED 12c346: ff d0 call *%eax <== NOT EXECUTED 12c348: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return status; } 12c34b: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c34d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c350: 5b pop %ebx <== NOT EXECUTED 12c351: 5e pop %esi <== NOT EXECUTED 12c352: 5f pop %edi <== NOT EXECUTED 12c353: c9 leave <== NOT EXECUTED 12c354: c3 ret <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 12c355: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 12c358: 85 c0 test %eax,%eax <== NOT EXECUTED 12c35a: 74 10 je 12c36c <== NOT EXECUTED 12c35c: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c35f: 85 c0 test %eax,%eax <== NOT EXECUTED 12c361: 74 09 je 12c36c <== NOT EXECUTED 12c363: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c366: 53 push %ebx <== NOT EXECUTED 12c367: ff d0 call *%eax <== NOT EXECUTED 12c369: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12c36c: e8 cb 50 01 00 call 14143c <__errno> <== NOT EXECUTED 12c371: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c377: 90 nop <== NOT EXECUTED 12c378: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 12c37d: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c37f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c382: 5b pop %ebx <== NOT EXECUTED 12c383: 5e pop %esi <== NOT EXECUTED 12c384: 5f pop %edi <== NOT EXECUTED 12c385: c9 leave <== NOT EXECUTED 12c386: c3 ret <== NOT EXECUTED 12c387: 90 nop <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 12c388: e8 af 50 01 00 call 14143c <__errno> <== NOT EXECUTED 12c38d: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 12c393: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 12c398: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c39a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c39d: 5b pop %ebx <== NOT EXECUTED 12c39e: 5e pop %esi <== NOT EXECUTED 12c39f: 5f pop %edi <== NOT EXECUTED 12c3a0: c9 leave <== NOT EXECUTED 12c3a1: c3 ret <== NOT EXECUTED 0010826c : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 10826c: 55 push %ebp 10826d: 89 e5 mov %esp,%ebp 10826f: 57 push %edi 108270: 56 push %esi 108271: 53 push %ebx 108272: 83 ec 0c sub $0xc,%esp 108275: 8b 75 08 mov 0x8(%ebp),%esi 108278: ff 05 e4 51 12 00 incl 0x1251e4 /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 10827e: e8 11 ff ff ff call 108194 /* * Validate the parameters */ if ( !size ) 108283: 85 f6 test %esi,%esi 108285: 74 65 je 1082ec return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 108287: 83 3d 20 55 12 00 03 cmpl $0x3,0x125520 10828e: 74 50 je 1082e0 RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 108290: 6a 00 push $0x0 108292: 6a 00 push $0x0 108294: 56 push %esi 108295: ff 35 58 11 12 00 pushl 0x121158 10829b: e8 ac 4b 00 00 call 10ce4c <_Protected_heap_Allocate_aligned_with_boundary> 1082a0: 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 ) { 1082a2: 83 c4 10 add $0x10,%esp 1082a5: 85 c0 test %eax,%eax 1082a7: 74 5b je 108304 if (rtems_malloc_sbrk_helpers) return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); if ( !return_this ) { errno = ENOMEM; return (void *) 0; 1082a9: 89 c7 mov %eax,%edi } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 1082ab: a1 d0 35 12 00 mov 0x1235d0,%eax 1082b0: 85 c0 test %eax,%eax 1082b2: 74 0a je 1082be (*rtems_malloc_dirty_helper)( return_this, size ); 1082b4: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1082b7: 56 push %esi <== NOT EXECUTED 1082b8: 57 push %edi <== NOT EXECUTED 1082b9: ff 10 call *(%eax) <== NOT EXECUTED 1082bb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 1082be: a1 c8 35 12 00 mov 0x1235c8,%eax 1082c3: 85 c0 test %eax,%eax 1082c5: 74 31 je 1082f8 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 1082c7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1082ca: 57 push %edi <== NOT EXECUTED 1082cb: ff 50 04 call *0x4(%eax) <== NOT EXECUTED 1082ce: 89 fb mov %edi,%ebx <== NOT EXECUTED 1082d0: 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; } 1082d3: 89 d8 mov %ebx,%eax 1082d5: 8d 65 f4 lea -0xc(%ebp),%esp 1082d8: 5b pop %ebx 1082d9: 5e pop %esi 1082da: 5f pop %edi 1082db: c9 leave 1082dc: c3 ret 1082dd: 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()) && 1082e0: e8 57 fe ff ff call 10813c 1082e5: 84 c0 test %al,%al 1082e7: 75 a7 jne 108290 1082e9: 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); 1082ec: 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; } 1082ee: 89 d8 mov %ebx,%eax <== NOT EXECUTED 1082f0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1082f3: 5b pop %ebx <== NOT EXECUTED 1082f4: 5e pop %esi <== NOT EXECUTED 1082f5: 5f pop %edi <== NOT EXECUTED 1082f6: c9 leave <== NOT EXECUTED 1082f7: c3 ret <== NOT EXECUTED (*rtems_malloc_dirty_helper)( return_this, size ); /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 1082f8: 89 fb mov %edi,%ebx if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 1082fa: 89 d8 mov %ebx,%eax 1082fc: 8d 65 f4 lea -0xc(%ebp),%esp 1082ff: 5b pop %ebx 108300: 5e pop %esi 108301: 5f pop %edi 108302: c9 leave 108303: c3 ret */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers) 108304: a1 cc 35 12 00 mov 0x1235cc,%eax 108309: 85 c0 test %eax,%eax 10830b: 74 10 je 10831d return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 10830d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108310: 56 push %esi <== NOT EXECUTED 108311: ff 50 04 call *0x4(%eax) <== NOT EXECUTED 108314: 89 c7 mov %eax,%edi <== NOT EXECUTED if ( !return_this ) { 108316: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108319: 85 c0 test %eax,%eax <== NOT EXECUTED 10831b: 75 8e jne 1082ab <== NOT EXECUTED errno = ENOMEM; 10831d: e8 d6 a0 00 00 call 1123f8 <__errno> 108322: c7 00 0c 00 00 00 movl $0xc,(%eax) return (void *) 0; 108328: eb a9 jmp 1082d3 0010817c : } void malloc_deferred_free( void *pointer ) { 10817c: 55 push %ebp <== NOT EXECUTED 10817d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10817f: 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 ); 108182: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 108185: 68 cc 51 12 00 push $0x1251cc <== NOT EXECUTED 10818a: e8 dd 3c 00 00 call 10be6c <_Chain_Append> <== NOT EXECUTED 10818f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_chain_append(&RTEMS_Malloc_GC_list, (rtems_chain_node *)pointer); } 108192: c9 leave <== NOT EXECUTED 108193: c3 ret <== NOT EXECUTED 00108194 : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 108194: 55 push %ebp 108195: 89 e5 mov %esp,%ebp 108197: 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) 10819a: eb 0c jmp 1081a8 free(to_be_freed); 10819c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10819f: 50 push %eax <== NOT EXECUTED 1081a0: e8 77 fe ff ff call 10801c <== NOT EXECUTED 1081a5: 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 ); 1081a8: 83 ec 0c sub $0xc,%esp 1081ab: 68 cc 51 12 00 push $0x1251cc 1081b0: e8 db 3c 00 00 call 10be90 <_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) 1081b5: 83 c4 10 add $0x10,%esp 1081b8: 85 c0 test %eax,%eax 1081ba: 75 e0 jne 10819c free(to_be_freed); } 1081bc: c9 leave 1081bd: c3 ret 0012c3bc : */ int malloc_info( Heap_Information_block *the_info ) { 12c3bc: 55 push %ebp 12c3bd: 89 e5 mov %esp,%ebp 12c3bf: 83 ec 08 sub $0x8,%esp 12c3c2: 8b 45 08 mov 0x8(%ebp),%eax if ( !the_info ) 12c3c5: 85 c0 test %eax,%eax 12c3c7: 74 17 je 12c3e0 return -1; _Protected_heap_Get_information( RTEMS_Malloc_Heap, the_info ); 12c3c9: 83 ec 08 sub $0x8,%esp 12c3cc: 50 push %eax 12c3cd: ff 35 f8 61 16 00 pushl 0x1661f8 12c3d3: e8 cc 20 00 00 call 12e4a4 <_Protected_heap_Get_information> 12c3d8: 31 c0 xor %eax,%eax return 0; 12c3da: 83 c4 10 add $0x10,%esp } 12c3dd: c9 leave 12c3de: c3 ret 12c3df: 90 nop <== NOT EXECUTED int malloc_info( Heap_Information_block *the_info ) { if ( !the_info ) 12c3e0: b8 ff ff ff ff mov $0xffffffff,%eax return -1; _Protected_heap_Get_information( RTEMS_Malloc_Heap, the_info ); return 0; } 12c3e5: c9 leave 12c3e6: c3 ret 0010813c : #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { 10813c: 55 push %ebp 10813d: 89 e5 mov %esp,%ebp if ( _Thread_Dispatch_disable_level > 0 ) 10813f: a1 58 53 12 00 mov 0x125358,%eax 108144: 85 c0 test %eax,%eax 108146: 75 0c jne 108154 return false; if ( _ISR_Nest_level > 0 ) 108148: a1 f4 53 12 00 mov 0x1253f4,%eax #include "malloc_p.h" rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) 10814d: 85 c0 test %eax,%eax 10814f: 0f 94 c0 sete %al if ( _ISR_Nest_level > 0 ) return false; return true; } 108152: c9 leave 108153: c3 ret rtems_chain_control RTEMS_Malloc_GC_list; bool malloc_is_system_state_OK(void) { if ( _Thread_Dispatch_disable_level > 0 ) 108154: 31 c0 xor %eax,%eax <== NOT EXECUTED if ( _ISR_Nest_level > 0 ) return false; return true; } 108156: c9 leave <== NOT EXECUTED 108157: c3 ret <== NOT EXECUTED 00115ff0 : return memfile_check_rmnod( the_jnode ); } int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){ 115ff0: 55 push %ebp 115ff1: 89 e5 mov %esp,%ebp 115ff3: 53 push %ebx 115ff4: 83 ec 10 sub $0x10,%esp 115ff7: 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) ) { 115ffa: 53 push %ebx 115ffb: e8 64 e4 ff ff call 114464 116000: 83 c4 10 add $0x10,%esp 116003: 85 c0 test %eax,%eax 116005: 75 2f jne 116036 116007: 66 83 7b 34 00 cmpw $0x0,0x34(%ebx) 11600c: 75 28 jne 116036 /* * Is the rtems_filesystem_current is this node? */ if ( rtems_filesystem_current.node_access == the_jnode ) 11600e: a1 98 91 12 00 mov 0x129198,%eax 116013: 39 58 04 cmp %ebx,0x4(%eax) 116016: 74 28 je 116040 rtems_filesystem_current.node_access = NULL; /* * Free memory associated with a memory file. */ if (the_jnode->type != IMFS_LINEAR_FILE) 116018: 83 7b 4c 06 cmpl $0x6,0x4c(%ebx) 11601c: 74 0c je 11602a IMFS_memfile_remove( the_jnode ); 11601e: 83 ec 0c sub $0xc,%esp 116021: 53 push %ebx 116022: e8 21 fe ff ff call 115e48 116027: 83 c4 10 add $0x10,%esp free( the_jnode ); 11602a: 83 ec 0c sub $0xc,%esp 11602d: 53 push %ebx 11602e: e8 6d 33 ff ff call 1093a0 116033: 83 c4 10 add $0x10,%esp } return 0; } 116036: 31 c0 xor %eax,%eax 116038: 8b 5d fc mov -0x4(%ebp),%ebx 11603b: c9 leave 11603c: c3 ret 11603d: 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; 116040: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) <== NOT EXECUTED 116047: eb cf jmp 116018 <== NOT EXECUTED 00115d80 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 115d80: 55 push %ebp 115d81: 89 e5 mov %esp,%ebp 115d83: 57 push %edi 115d84: 56 push %esi 115d85: 53 push %ebx 115d86: 83 ec 0c sub $0xc,%esp 115d89: 8b 7d 0c mov 0xc(%ebp),%edi /* * Perform internal consistency checks */ assert( block_table ); 115d8c: 8b 45 08 mov 0x8(%ebp),%eax 115d8f: 85 c0 test %eax,%eax 115d91: 74 4e je 115de1 /* * Now go through all the slots in the table and free the memory. */ b = *block_table; 115d93: 8b 45 08 mov 0x8(%ebp),%eax 115d96: 8b 30 mov (%eax),%esi for ( i=0 ; i 115d9c: 31 db xor %ebx,%ebx 115d9e: 66 90 xchg %ax,%ax if ( b[i] ) { 115da0: 8b 04 9e mov (%esi,%ebx,4),%eax 115da3: 85 c0 test %eax,%eax 115da5: 74 13 je 115dba memfile_free_block( b[i] ); 115da7: 83 ec 0c sub $0xc,%esp 115daa: 50 push %eax 115dab: e8 b0 fd ff ff call 115b60 b[i] = 0; 115db0: c7 04 9e 00 00 00 00 movl $0x0,(%esi,%ebx,4) 115db7: 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 115dbf: 8b 45 08 mov 0x8(%ebp),%eax 115dc2: 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 ); 115dc4: 83 ec 0c sub $0xc,%esp 115dc7: 56 push %esi 115dc8: e8 93 fd ff ff call 115b60 *block_table = 0; 115dcd: 8b 45 08 mov 0x8(%ebp),%eax 115dd0: c7 00 00 00 00 00 movl $0x0,(%eax) 115dd6: 83 c4 10 add $0x10,%esp } 115dd9: 8d 65 f4 lea -0xc(%ebp),%esp 115ddc: 5b pop %ebx 115ddd: 5e pop %esi 115dde: 5f pop %edi 115ddf: c9 leave 115de0: c3 ret /* * Perform internal consistency checks */ assert( block_table ); 115de1: 68 2a 53 12 00 push $0x12532a <== NOT EXECUTED 115de6: 68 5c 54 12 00 push $0x12545c <== NOT EXECUTED 115deb: 68 b3 01 00 00 push $0x1b3 <== NOT EXECUTED 115df0: 68 4c 53 12 00 push $0x12534c <== NOT EXECUTED 115df5: e8 16 32 ff ff call 109010 <__assert_func> <== NOT EXECUTED 001162a4 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 1162a4: 55 push %ebp 1162a5: 89 e5 mov %esp,%ebp 1162a7: 53 push %ebx 1162a8: 83 ec 14 sub $0x14,%esp 1162ab: 8b 4d 08 mov 0x8(%ebp),%ecx 1162ae: 8b 45 0c mov 0xc(%ebp),%eax 1162b1: 8b 55 10 mov 0x10(%ebp),%edx IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 1162b4: 8b 59 38 mov 0x38(%ecx),%ebx * POSIX 1003.1b does not specify what happens if you truncate a file * and the new length is greater than the current size. We treat this * as an extend operation. */ if ( length > the_jnode->info.file.size ) 1162b7: 39 53 54 cmp %edx,0x54(%ebx) 1162ba: 7f 19 jg 1162d5 1162bc: 7d 12 jge 1162d0 return IMFS_memfile_extend( the_jnode, length ); 1162be: 51 push %ecx <== NOT EXECUTED 1162bf: 52 push %edx <== NOT EXECUTED 1162c0: 50 push %eax <== NOT EXECUTED 1162c1: 53 push %ebx <== NOT EXECUTED 1162c2: e8 79 fe ff ff call 116140 <== NOT EXECUTED 1162c7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); return 0; } 1162ca: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 1162cd: c9 leave <== NOT EXECUTED 1162ce: c3 ret <== NOT EXECUTED 1162cf: 90 nop <== NOT EXECUTED * POSIX 1003.1b does not specify what happens if you truncate a file * and the new length is greater than the current size. We treat this * as an extend operation. */ if ( length > the_jnode->info.file.size ) 1162d0: 39 43 50 cmp %eax,0x50(%ebx) 1162d3: 72 e9 jb 1162be * 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; 1162d5: 89 43 50 mov %eax,0x50(%ebx) 1162d8: 89 53 54 mov %edx,0x54(%ebx) iop->size = the_jnode->info.file.size; 1162db: 89 41 04 mov %eax,0x4(%ecx) 1162de: 89 51 08 mov %edx,0x8(%ecx) IMFS_update_atime( the_jnode ); 1162e1: 83 ec 08 sub $0x8,%esp 1162e4: 6a 00 push $0x0 1162e6: 8d 45 f0 lea -0x10(%ebp),%eax 1162e9: 50 push %eax 1162ea: e8 2d 31 ff ff call 10941c 1162ef: 8b 45 f0 mov -0x10(%ebp),%eax 1162f2: 89 43 40 mov %eax,0x40(%ebx) 1162f5: 31 c0 xor %eax,%eax return 0; 1162f7: 83 c4 10 add $0x10,%esp } 1162fa: 8b 5d fc mov -0x4(%ebp),%ebx 1162fd: c9 leave 1162fe: c3 ret 00116300 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 116300: 55 push %ebp 116301: 89 e5 mov %esp,%ebp 116303: 57 push %edi 116304: 56 push %esi 116305: 53 push %ebx 116306: 83 ec 0c sub $0xc,%esp 116309: 8b 5d 08 mov 0x8(%ebp),%ebx IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 11630c: 8b 73 38 mov 0x38(%ebx),%esi if (the_jnode->type == IMFS_LINEAR_FILE) { 11630f: 83 7e 4c 06 cmpl $0x6,0x4c(%esi) 116313: 74 2f je 116344 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 )) 116315: 57 push %edi 116316: ff 73 10 pushl 0x10(%ebx) 116319: ff 73 0c pushl 0xc(%ebx) 11631c: 56 push %esi 11631d: e8 1e fe ff ff call 116140 116322: 83 c4 10 add $0x10,%esp 116325: 85 c0 test %eax,%eax 116327: 75 4d jne 116376 rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; 116329: 8b 46 50 mov 0x50(%esi),%eax 11632c: 8b 56 54 mov 0x54(%esi),%edx 11632f: 89 43 04 mov %eax,0x4(%ebx) 116332: 89 53 08 mov %edx,0x8(%ebx) 116335: 8b 43 0c mov 0xc(%ebx),%eax 116338: 8b 53 10 mov 0x10(%ebx),%edx } return iop->offset; } 11633b: 8d 65 f4 lea -0xc(%ebp),%esp 11633e: 5b pop %ebx 11633f: 5e pop %esi 116340: 5f pop %edi 116341: c9 leave 116342: c3 ret 116343: 90 nop <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) 116344: 8b 7b 0c mov 0xc(%ebx),%edi <== NOT EXECUTED 116347: 8b 4b 10 mov 0x10(%ebx),%ecx <== NOT EXECUTED 11634a: 8b 46 50 mov 0x50(%esi),%eax <== NOT EXECUTED 11634d: 8b 56 54 mov 0x54(%esi),%edx <== NOT EXECUTED 116350: 39 d1 cmp %edx,%ecx <== NOT EXECUTED 116352: 7f 14 jg 116368 <== NOT EXECUTED 116354: 7d 0e jge 116364 <== NOT EXECUTED 116356: 89 f8 mov %edi,%eax <== NOT EXECUTED 116358: 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; } 11635a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 11635d: 5b pop %ebx <== NOT EXECUTED 11635e: 5e pop %esi <== NOT EXECUTED 11635f: 5f pop %edi <== NOT EXECUTED 116360: c9 leave <== NOT EXECUTED 116361: c3 ret <== NOT EXECUTED 116362: 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) 116364: 39 c7 cmp %eax,%edi <== NOT EXECUTED 116366: 76 ee jbe 116356 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 116368: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED 11636b: 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; } 11636e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 116371: 5b pop %ebx <== NOT EXECUTED 116372: 5e pop %esi <== NOT EXECUTED 116373: 5f pop %edi <== NOT EXECUTED 116374: c9 leave <== NOT EXECUTED 116375: 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 ); 116376: e8 b5 11 00 00 call 117530 <__errno> <== NOT EXECUTED 11637b: c7 00 1c 00 00 00 movl $0x1c,(%eax) <== NOT EXECUTED 116381: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 116386: ba ff ff ff ff mov $0xffffffff,%edx <== NOT EXECUTED 11638b: eb ae jmp 11633b <== NOT EXECUTED 0011661c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 11661c: 55 push %ebp 11661d: 89 e5 mov %esp,%ebp 11661f: 56 push %esi 116620: 53 push %ebx 116621: 8b 5d 08 mov 0x8(%ebp),%ebx IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 116624: 8b 73 38 mov 0x38(%ebx),%esi /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 116627: 8b 43 14 mov 0x14(%ebx),%eax 11662a: a9 04 02 00 00 test $0x204,%eax 11662f: 74 06 je 116637 && (the_jnode->type == IMFS_LINEAR_FILE)) { 116631: 83 7e 4c 06 cmpl $0x6,0x4c(%esi) 116635: 74 2d je 116664 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) 116637: 8b 56 50 mov 0x50(%esi),%edx 11663a: 8b 4e 54 mov 0x54(%esi),%ecx && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 11663d: f6 c4 02 test $0x2,%ah 116640: 75 12 jne 116654 iop->offset = the_jnode->info.file.size; iop->size = the_jnode->info.file.size; 116642: 89 53 04 mov %edx,0x4(%ebx) 116645: 89 4b 08 mov %ecx,0x8(%ebx) 116648: 31 c0 xor %eax,%eax return 0; } 11664a: 8d 65 f8 lea -0x8(%ebp),%esp 11664d: 5b pop %ebx 11664e: 5e pop %esi 11664f: c9 leave 116650: c3 ret 116651: 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; 116654: 89 53 0c mov %edx,0xc(%ebx) 116657: 89 4b 10 mov %ecx,0x10(%ebx) 11665a: 8b 56 50 mov 0x50(%esi),%edx 11665d: 8b 4e 54 mov 0x54(%esi),%ecx 116660: eb e0 jmp 116642 116662: 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; 116664: 8b 46 50 mov 0x50(%esi),%eax <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; 116667: 8b 56 58 mov 0x58(%esi),%edx <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; 11666a: c7 46 4c 05 00 00 00 movl $0x5,0x4c(%esi) <== NOT EXECUTED the_jnode->info.file.size = 0; 116671: c7 46 50 00 00 00 00 movl $0x0,0x50(%esi) <== NOT EXECUTED 116678: c7 46 54 00 00 00 00 movl $0x0,0x54(%esi) <== NOT EXECUTED the_jnode->info.file.indirect = 0; 11667f: c7 46 58 00 00 00 00 movl $0x0,0x58(%esi) <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; 116686: c7 46 5c 00 00 00 00 movl $0x0,0x5c(%esi) <== NOT EXECUTED the_jnode->info.file.triply_indirect = 0; 11668d: c7 46 60 00 00 00 00 movl $0x0,0x60(%esi) <== NOT EXECUTED if ((count != 0) 116694: 85 c0 test %eax,%eax <== NOT EXECUTED 116696: 75 09 jne 1166a1 <== NOT EXECUTED 116698: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 11669b: 31 d2 xor %edx,%edx <== NOT EXECUTED 11669d: 31 c9 xor %ecx,%ecx <== NOT EXECUTED 11669f: eb 9c jmp 11663d <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 1166a1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1166a4: 50 push %eax <== NOT EXECUTED 1166a5: 52 push %edx <== NOT EXECUTED 1166a6: 6a 00 push $0x0 <== NOT EXECUTED 1166a8: 6a 00 push $0x0 <== NOT EXECUTED 1166aa: 56 push %esi <== NOT EXECUTED 1166ab: e8 e0 fc ff ff call 116390 <== 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) 1166b0: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 1166b3: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED 1166b6: 74 92 je 11664a <== NOT EXECUTED 1166b8: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 1166bb: e9 77 ff ff ff jmp 116637 <== NOT EXECUTED 00108348 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 108348: 55 push %ebp 108349: 89 e5 mov %esp,%ebp 10834b: 57 push %edi 10834c: 56 push %esi 10834d: 53 push %ebx 10834e: 83 ec 3c sub $0x3c,%esp 108351: 8b 55 0c mov 0xc(%ebp),%edx 108354: 8b 4d 10 mov 0x10(%ebp),%ecx 108357: 8b 5d 14 mov 0x14(%ebp),%ebx 10835a: 89 4d c0 mov %ecx,-0x40(%ebp) 10835d: 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) ) ) 108360: f6 c6 f0 test $0xf0,%dh 108363: 0f 84 cb 00 00 00 je 108434 rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 108369: 8b 5d 08 mov 0x8(%ebp),%ebx 10836c: 8a 03 mov (%ebx),%al 10836e: 3c 2f cmp $0x2f,%al 108370: 74 08 je 10837a 108372: 3c 5c cmp $0x5c,%al 108374: 74 04 je 10837a 108376: 84 c0 test %al,%al 108378: 75 7e jne 1083f8 10837a: 8d 5d d0 lea -0x30(%ebp),%ebx 10837d: 8b 35 18 30 12 00 mov 0x123018,%esi 108383: 83 c6 18 add $0x18,%esi 108386: b9 05 00 00 00 mov $0x5,%ecx 10838b: 89 df mov %ebx,%edi 10838d: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 10838f: b1 01 mov $0x1,%cl if ( !temp_loc.ops->evalformake_h ) { 108391: 8b 45 dc mov -0x24(%ebp),%eax 108394: 8b 40 04 mov 0x4(%eax),%eax 108397: 85 c0 test %eax,%eax 108399: 74 7c je 108417 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 10839b: 56 push %esi 10839c: 8d 75 e4 lea -0x1c(%ebp),%esi 10839f: 56 push %esi 1083a0: 53 push %ebx 1083a1: 03 4d 08 add 0x8(%ebp),%ecx 1083a4: 51 push %ecx 1083a5: 89 55 bc mov %edx,-0x44(%ebp) 1083a8: ff d0 call *%eax &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 1083aa: 83 c4 10 add $0x10,%esp 1083ad: 85 c0 test %eax,%eax 1083af: 8b 55 bc mov -0x44(%ebp),%edx 1083b2: 75 6e jne 108422 return -1; if ( !temp_loc.ops->mknod_h ) { 1083b4: 8b 4d dc mov -0x24(%ebp),%ecx 1083b7: 8b 41 14 mov 0x14(%ecx),%eax 1083ba: 85 c0 test %eax,%eax 1083bc: 0f 84 84 00 00 00 je 108446 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 ); 1083c2: 83 ec 0c sub $0xc,%esp 1083c5: 53 push %ebx 1083c6: ff 75 c4 pushl -0x3c(%ebp) 1083c9: ff 75 c0 pushl -0x40(%ebp) 1083cc: 52 push %edx 1083cd: ff 75 e4 pushl -0x1c(%ebp) 1083d0: ff d0 call *%eax 1083d2: 89 c6 mov %eax,%esi rtems_filesystem_freenode( &temp_loc ); 1083d4: 8b 45 dc mov -0x24(%ebp),%eax 1083d7: 83 c4 20 add $0x20,%esp 1083da: 85 c0 test %eax,%eax 1083dc: 74 10 je 1083ee 1083de: 8b 40 1c mov 0x1c(%eax),%eax 1083e1: 85 c0 test %eax,%eax 1083e3: 74 09 je 1083ee 1083e5: 83 ec 0c sub $0xc,%esp 1083e8: 53 push %ebx 1083e9: ff d0 call *%eax 1083eb: 83 c4 10 add $0x10,%esp return result; } 1083ee: 89 f0 mov %esi,%eax 1083f0: 8d 65 f4 lea -0xc(%ebp),%esp 1083f3: 5b pop %ebx 1083f4: 5e pop %esi 1083f5: 5f pop %edi 1083f6: c9 leave 1083f7: 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 ); 1083f8: 8d 5d d0 lea -0x30(%ebp),%ebx 1083fb: 8b 35 18 30 12 00 mov 0x123018,%esi 108401: 83 c6 04 add $0x4,%esi 108404: b9 05 00 00 00 mov $0x5,%ecx 108409: 89 df mov %ebx,%edi 10840b: f3 a5 rep movsl %ds:(%esi),%es:(%edi) if ( !temp_loc.ops->evalformake_h ) { 10840d: 8b 45 dc mov -0x24(%ebp),%eax 108410: 8b 40 04 mov 0x4(%eax),%eax 108413: 85 c0 test %eax,%eax 108415: 75 84 jne 10839b if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 108417: e8 dc 9f 00 00 call 1123f8 <__errno> <== NOT EXECUTED 10841c: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 108422: 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; } 108427: 89 f0 mov %esi,%eax 108429: 8d 65 f4 lea -0xc(%ebp),%esp 10842c: 5b pop %ebx 10842d: 5e pop %esi 10842e: 5f pop %edi 10842f: c9 leave 108430: c3 ret 108431: 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 ); 108434: e8 bf 9f 00 00 call 1123f8 <__errno> <== NOT EXECUTED 108439: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 10843f: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 108444: eb a8 jmp 1083ee <== NOT EXECUTED ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); 108446: 8b 41 1c mov 0x1c(%ecx),%eax <== NOT EXECUTED 108449: 85 c0 test %eax,%eax <== NOT EXECUTED 10844b: 74 ca je 108417 <== NOT EXECUTED 10844d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108450: 53 push %ebx <== NOT EXECUTED 108451: ff d0 call *%eax <== NOT EXECUTED 108453: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108456: eb bf jmp 108417 <== NOT EXECUTED 00108480 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 108480: 55 push %ebp 108481: 89 e5 mov %esp,%ebp 108483: 57 push %edi 108484: 56 push %esi 108485: 53 push %ebx 108486: 83 ec 3c sub $0x3c,%esp 108489: 8b 75 14 mov 0x14(%ebp),%esi /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 10848c: 8b 5d 0c mov 0xc(%ebp),%ebx 10848f: 85 db test %ebx,%ebx 108491: 0f 84 1d 02 00 00 je 1086b4 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 108497: 83 7d 10 01 cmpl $0x1,0x10(%ebp) 10849b: 0f 87 13 02 00 00 ja 1086b4 errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 1084a1: 8b 45 0c mov 0xc(%ebp),%eax 1084a4: 8b 48 24 mov 0x24(%eax),%ecx 1084a7: 85 c9 test %ecx,%ecx 1084a9: 0f 84 32 02 00 00 je 1086e1 /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 1084af: 85 f6 test %esi,%esi 1084b1: 0f 84 a9 01 00 00 je 108660 size += strlen( device ) + 1; 1084b7: 31 c0 xor %eax,%eax <== NOT EXECUTED 1084b9: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 1084be: 89 f7 mov %esi,%edi <== NOT EXECUTED 1084c0: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 1084c2: f7 d1 not %ecx <== NOT EXECUTED 1084c4: 83 c1 6c add $0x6c,%ecx <== NOT EXECUTED temp_mt_entry = malloc( size ); 1084c7: 83 ec 0c sub $0xc,%esp 1084ca: 51 push %ecx 1084cb: e8 9c fd ff ff call 10826c 1084d0: 89 c3 mov %eax,%ebx 1084d2: 89 45 c4 mov %eax,-0x3c(%ebp) if ( !temp_mt_entry ) { 1084d5: 83 c4 10 add $0x10,%esp 1084d8: 85 c0 test %eax,%eax 1084da: 0f 84 3b 02 00 00 je 10871b errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; 1084e0: 89 43 2c mov %eax,0x2c(%ebx) temp_mt_entry->options = options; 1084e3: 8b 55 10 mov 0x10(%ebp),%edx 1084e6: 89 50 30 mov %edx,0x30(%eax) if ( device ) { 1084e9: 85 f6 test %esi,%esi 1084eb: 0f 84 63 01 00 00 je 108654 temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); 1084f1: 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 = 1084f4: 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 ); 1084f7: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1084fa: 56 push %esi <== NOT EXECUTED 1084fb: 50 push %eax <== NOT EXECUTED 1084fc: e8 17 aa 00 00 call 112f18 <== NOT EXECUTED 108501: 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 ) { 108504: 8b 55 18 mov 0x18(%ebp),%edx 108507: 85 d2 test %edx,%edx 108509: 0f 84 0d 01 00 00 je 10861c if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 10850f: 31 c0 xor %eax,%eax 108511: b9 ff ff ff ff mov $0xffffffff,%ecx 108516: 8b 7d 18 mov 0x18(%ebp),%edi 108519: f2 ae repnz scas %es:(%edi),%al 10851b: f7 d1 not %ecx 10851d: 49 dec %ecx * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 10851e: 83 ec 0c sub $0xc,%esp 108521: 6a 01 push $0x1 108523: 8d 75 d4 lea -0x2c(%ebp),%esi 108526: 56 push %esi 108527: 6a 07 push $0x7 108529: 51 push %ecx 10852a: ff 75 18 pushl 0x18(%ebp) 10852d: e8 36 fa ff ff call 107f68 108532: 83 c4 20 add $0x20,%esp 108535: 40 inc %eax 108536: 0f 84 b7 01 00 00 je 1086f3 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 10853c: 8b 45 e0 mov -0x20(%ebp),%eax 10853f: 8b 40 10 mov 0x10(%eax),%eax 108542: 85 c0 test %eax,%eax 108544: 0f 84 c1 01 00 00 je 10870b /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 10854a: 83 ec 0c sub $0xc,%esp 10854d: 56 push %esi 10854e: ff d0 call *%eax 108550: 83 c4 10 add $0x10,%esp 108553: 48 dec %eax 108554: 0f 85 77 01 00 00 jne 1086d1 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 10855a: a1 0c 52 12 00 mov 0x12520c,%eax 10855f: 3d 10 52 12 00 cmp $0x125210,%eax 108564: 0f 84 5f 01 00 00 je 1086c9 !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 ) 10856a: 8b 55 d4 mov -0x2c(%ebp),%edx 10856d: 39 50 1c cmp %edx,0x1c(%eax) 108570: 75 07 jne 108579 108572: eb 78 jmp 1085ec <== NOT EXECUTED 108574: 39 50 1c cmp %edx,0x1c(%eax) 108577: 74 73 je 1085ec * 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 ) { 108579: 8b 00 mov (%eax),%eax /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 10857b: 3d 10 52 12 00 cmp $0x125210,%eax 108580: 75 f2 jne 108574 * 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; 108582: 89 53 08 mov %edx,0x8(%ebx) temp_mt_entry->mt_point_node.handlers = loc.handlers; 108585: 8b 45 dc mov -0x24(%ebp),%eax 108588: 89 43 10 mov %eax,0x10(%ebx) temp_mt_entry->mt_point_node.ops = loc.ops; 10858b: 8b 45 e0 mov -0x20(%ebp),%eax 10858e: 89 43 14 mov %eax,0x14(%ebx) temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 108591: 8b 55 e4 mov -0x1c(%ebp),%edx 108594: 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 ){ 108597: 8b 40 20 mov 0x20(%eax),%eax 10859a: 85 c0 test %eax,%eax 10859c: 0f 84 69 01 00 00 je 10870b errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 1085a2: 83 ec 0c sub $0xc,%esp 1085a5: 53 push %ebx 1085a6: ff d0 call *%eax 1085a8: 83 c4 10 add $0x10,%esp 1085ab: 85 c0 test %eax,%eax 1085ad: 75 48 jne 1085f7 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 ) ) { 1085af: 83 ec 0c sub $0xc,%esp 1085b2: 53 push %ebx 1085b3: 8b 55 0c mov 0xc(%ebp),%edx 1085b6: ff 52 24 call *0x24(%edx) 1085b9: 83 c4 10 add $0x10,%esp 1085bc: 85 c0 test %eax,%eax 1085be: 0f 85 a8 00 00 00 jne 10866c RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 1085c4: 83 ec 08 sub $0x8,%esp 1085c7: 53 push %ebx 1085c8: 68 0c 52 12 00 push $0x12520c 1085cd: e8 9a 38 00 00 call 10be6c <_Chain_Append> */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 1085d2: 83 c4 10 add $0x10,%esp 1085d5: 8b 45 08 mov 0x8(%ebp),%eax 1085d8: 85 c0 test %eax,%eax 1085da: 74 05 je 1085e1 *mt_entry = temp_mt_entry; 1085dc: 8b 45 08 mov 0x8(%ebp),%eax 1085df: 89 18 mov %ebx,(%eax) 1085e1: 31 c0 xor %eax,%eax if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 1085e3: 8d 65 f4 lea -0xc(%ebp),%esp 1085e6: 5b pop %ebx 1085e7: 5e pop %esi 1085e8: 5f pop %edi 1085e9: c9 leave 1085ea: c3 ret 1085eb: 90 nop <== NOT EXECUTED /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 1085ec: e8 07 9e 00 00 call 1123f8 <__errno> 1085f1: c7 00 10 00 00 00 movl $0x10,(%eax) return 0; cleanup_and_bail: free( temp_mt_entry ); 1085f7: 83 ec 0c sub $0xc,%esp 1085fa: 53 push %ebx 1085fb: e8 1c fa ff ff call 10801c 108600: 83 c4 10 add $0x10,%esp if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 108603: 8b 46 0c mov 0xc(%esi),%eax 108606: 85 c0 test %eax,%eax 108608: 0f 85 8a 00 00 00 jne 108698 10860e: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED return -1; } 108613: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 108616: 5b pop %ebx <== NOT EXECUTED 108617: 5e pop %esi <== NOT EXECUTED 108618: 5f pop %edi <== NOT EXECUTED 108619: c9 leave <== NOT EXECUTED 10861a: c3 ret <== NOT EXECUTED 10861b: 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; 10861c: c7 43 1c 00 00 00 00 movl $0x0,0x1c(%ebx) temp_mt_entry->mt_fs_root.handlers = NULL; 108623: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) temp_mt_entry->mt_fs_root.ops = NULL; 10862a: c7 43 28 00 00 00 00 movl $0x0,0x28(%ebx) temp_mt_entry->mt_point_node.node_access = NULL; 108631: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) temp_mt_entry->mt_point_node.handlers = NULL; 108638: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) temp_mt_entry->mt_point_node.ops = NULL; 10863f: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) temp_mt_entry->mt_point_node.mt_entry = NULL; 108646: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) 10864d: 31 f6 xor %esi,%esi 10864f: e9 5b ff ff ff jmp 1085af 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; 108654: c7 40 68 00 00 00 00 movl $0x0,0x68(%eax) 10865b: e9 a4 fe ff ff jmp 108504 /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 108660: b9 6c 00 00 00 mov $0x6c,%ecx 108665: e9 5d fe ff ff jmp 1084c7 10866a: 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 ) { 10866c: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10866f: 8b 40 28 mov 0x28(%eax),%eax <== NOT EXECUTED 108672: 85 c0 test %eax,%eax <== NOT EXECUTED 108674: 74 09 je 10867f <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 108676: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108679: 53 push %ebx <== NOT EXECUTED 10867a: ff d0 call *%eax <== NOT EXECUTED 10867c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 10867f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108682: 53 push %ebx <== NOT EXECUTED 108683: e8 94 f9 ff ff call 10801c <== NOT EXECUTED if ( loc_to_free ) 108688: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10868b: 85 f6 test %esi,%esi <== NOT EXECUTED 10868d: 0f 84 7b ff ff ff je 10860e <== NOT EXECUTED 108693: e9 6b ff ff ff jmp 108603 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 108698: 8b 40 1c mov 0x1c(%eax),%eax 10869b: 85 c0 test %eax,%eax 10869d: 0f 84 6b ff ff ff je 10860e 1086a3: 83 ec 0c sub $0xc,%esp 1086a6: 56 push %esi 1086a7: ff d0 call *%eax 1086a9: 83 c8 ff or $0xffffffff,%eax 1086ac: 83 c4 10 add $0x10,%esp 1086af: e9 2f ff ff ff jmp 1085e3 * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 1086b4: e8 3f 9d 00 00 call 1123f8 <__errno> 1086b9: c7 00 16 00 00 00 movl $0x16,(%eax) 1086bf: b8 ff ff ff ff mov $0xffffffff,%eax return -1; 1086c4: e9 1a ff ff ff jmp 1085e3 cleanup_and_bail: free( temp_mt_entry ); if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 1086c9: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 1086cc: e9 b1 fe ff ff jmp 108582 <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { errno = ENOTDIR; 1086d1: e8 22 9d 00 00 call 1123f8 <__errno> 1086d6: c7 00 14 00 00 00 movl $0x14,(%eax) goto cleanup_and_bail; 1086dc: e9 16 ff ff ff jmp 1085f7 return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; 1086e1: e8 12 9d 00 00 call 1123f8 <__errno> <== NOT EXECUTED 1086e6: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 1086ec: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 1086f3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1086f6: ff 75 c4 pushl -0x3c(%ebp) <== NOT EXECUTED 1086f9: e8 1e f9 ff ff call 10801c <== NOT EXECUTED 1086fe: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 108703: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108706: e9 d8 fe ff ff jmp 1085e3 <== 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; 10870b: e8 e8 9c 00 00 call 1123f8 <__errno> <== NOT EXECUTED 108710: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED goto cleanup_and_bail; 108716: e9 dc fe ff ff jmp 1085f7 <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; 10871b: e8 d8 9c 00 00 call 1123f8 <__errno> <== NOT EXECUTED 108720: c7 00 0c 00 00 00 movl $0xc,(%eax) <== NOT EXECUTED 108726: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED return -1; 108729: e9 b5 fe ff ff jmp 1085e3 <== NOT EXECUTED 00108804 : */ bool newlib_create_hook( rtems_tcb *current_task __attribute__((unused)), rtems_tcb *creating_task ) { 108804: 55 push %ebp 108805: 89 e5 mov %esp,%ebp 108807: 57 push %edi 108808: 56 push %esi 108809: 53 push %ebx 10880a: 83 ec 0c sub $0xc,%esp struct _reent *ptr; if (_Thread_libc_reent == 0) 10880d: a1 e4 53 12 00 mov 0x1253e4,%eax 108812: 85 c0 test %eax,%eax 108814: 0f 84 52 02 00 00 je 108a6c 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)); 10881a: 83 ec 0c sub $0xc,%esp 10881d: 68 24 04 00 00 push $0x424 108822: e8 e5 5c 00 00 call 10e50c <_Workspace_Allocate> 108827: 89 c2 mov %eax,%edx #endif if (ptr) { 108829: 83 c4 10 add $0x10,%esp 10882c: 85 c0 test %eax,%eax 10882e: 0f 84 2c 02 00 00 je 108a60 _REENT_INIT_PTR((ptr)); /* GCC extension: structure constants */ 108834: c7 00 00 00 00 00 movl $0x0,(%eax) 10883a: 8d 98 ec 02 00 00 lea 0x2ec(%eax),%ebx 108840: 89 58 04 mov %ebx,0x4(%eax) 108843: 8d 80 54 03 00 00 lea 0x354(%eax),%eax 108849: 89 42 08 mov %eax,0x8(%edx) 10884c: 8d 82 bc 03 00 00 lea 0x3bc(%edx),%eax 108852: 89 42 0c mov %eax,0xc(%edx) 108855: c7 42 10 00 00 00 00 movl $0x0,0x10(%edx) 10885c: 8d 72 14 lea 0x14(%edx),%esi 10885f: 31 c0 xor %eax,%eax 108861: b9 19 00 00 00 mov $0x19,%ecx 108866: 89 f7 mov %esi,%edi 108868: f3 aa rep stos %al,%es:(%edi) 10886a: c7 42 30 00 00 00 00 movl $0x0,0x30(%edx) 108871: c7 42 34 0a f7 11 00 movl $0x11f70a,0x34(%edx) 108878: c7 42 38 00 00 00 00 movl $0x0,0x38(%edx) 10887f: c7 42 3c 00 00 00 00 movl $0x0,0x3c(%edx) 108886: c7 42 40 00 00 00 00 movl $0x0,0x40(%edx) 10888d: c7 42 44 00 00 00 00 movl $0x0,0x44(%edx) 108894: c7 42 48 00 00 00 00 movl $0x0,0x48(%edx) 10889b: c7 42 4c 00 00 00 00 movl $0x0,0x4c(%edx) 1088a2: c7 42 50 00 00 00 00 movl $0x0,0x50(%edx) 1088a9: c7 42 54 00 00 00 00 movl $0x0,0x54(%edx) 1088b0: c7 42 58 00 00 00 00 movl $0x0,0x58(%edx) 1088b7: c7 42 5c 00 00 00 00 movl $0x0,0x5c(%edx) 1088be: c6 42 60 00 movb $0x0,0x60(%edx) 1088c2: 8d 72 7c lea 0x7c(%edx),%esi 1088c5: b1 24 mov $0x24,%cl 1088c7: 89 f7 mov %esi,%edi 1088c9: f3 aa rep stos %al,%es:(%edi) 1088cb: c7 82 a0 00 00 00 00 movl $0x0,0xa0(%edx) 1088d2: 00 00 00 1088d5: c7 82 a4 00 00 00 01 movl $0x1,0xa4(%edx) 1088dc: 00 00 00 1088df: c7 82 a8 00 00 00 00 movl $0x0,0xa8(%edx) 1088e6: 00 00 00 1088e9: 66 c7 82 ac 00 00 00 movw $0x330e,0xac(%edx) 1088f0: 0e 33 1088f2: 66 c7 82 ae 00 00 00 movw $0xabcd,0xae(%edx) 1088f9: cd ab 1088fb: 66 c7 82 b0 00 00 00 movw $0x1234,0xb0(%edx) 108902: 34 12 108904: 66 c7 82 b2 00 00 00 movw $0xe66d,0xb2(%edx) 10890b: 6d e6 10890d: 66 c7 82 b4 00 00 00 movw $0xdeec,0xb4(%edx) 108914: ec de 108916: 66 c7 82 b6 00 00 00 movw $0x5,0xb6(%edx) 10891d: 05 00 10891f: 66 c7 82 b8 00 00 00 movw $0xb,0xb8(%edx) 108926: 0b 00 108928: c7 82 bc 00 00 00 00 movl $0x0,0xbc(%edx) 10892f: 00 00 00 108932: c7 82 c0 00 00 00 00 movl $0x0,0xc0(%edx) 108939: 00 00 00 10893c: c7 82 c4 00 00 00 00 movl $0x0,0xc4(%edx) 108943: 00 00 00 108946: c7 82 c8 00 00 00 00 movl $0x0,0xc8(%edx) 10894d: 00 00 00 108950: c7 82 cc 00 00 00 00 movl $0x0,0xcc(%edx) 108957: 00 00 00 10895a: c7 82 d0 00 00 00 00 movl $0x0,0xd0(%edx) 108961: 00 00 00 108964: c7 82 f8 00 00 00 00 movl $0x0,0xf8(%edx) 10896b: 00 00 00 10896e: c7 82 fc 00 00 00 00 movl $0x0,0xfc(%edx) 108975: 00 00 00 108978: c7 82 00 01 00 00 00 movl $0x0,0x100(%edx) 10897f: 00 00 00 108982: c7 82 04 01 00 00 00 movl $0x0,0x104(%edx) 108989: 00 00 00 10898c: c7 82 08 01 00 00 00 movl $0x0,0x108(%edx) 108993: 00 00 00 108996: c7 82 0c 01 00 00 00 movl $0x0,0x10c(%edx) 10899d: 00 00 00 1089a0: c7 82 10 01 00 00 00 movl $0x0,0x110(%edx) 1089a7: 00 00 00 1089aa: c7 82 14 01 00 00 00 movl $0x0,0x114(%edx) 1089b1: 00 00 00 1089b4: c7 82 18 01 00 00 00 movl $0x0,0x118(%edx) 1089bb: 00 00 00 1089be: c7 82 1c 01 00 00 00 movl $0x0,0x11c(%edx) 1089c5: 00 00 00 1089c8: c6 82 d4 00 00 00 00 movb $0x0,0xd4(%edx) 1089cf: c6 82 dc 00 00 00 00 movb $0x0,0xdc(%edx) 1089d6: c7 82 f4 00 00 00 00 movl $0x0,0xf4(%edx) 1089dd: 00 00 00 1089e0: c7 82 48 01 00 00 00 movl $0x0,0x148(%edx) 1089e7: 00 00 00 1089ea: c7 82 4c 01 00 00 00 movl $0x0,0x14c(%edx) 1089f1: 00 00 00 1089f4: c7 82 50 01 00 00 00 movl $0x0,0x150(%edx) 1089fb: 00 00 00 1089fe: c7 82 54 01 00 00 00 movl $0x0,0x154(%edx) 108a05: 00 00 00 108a08: c7 82 d4 02 00 00 00 movl $0x0,0x2d4(%edx) 108a0f: 00 00 00 108a12: c7 82 d4 01 00 00 00 movl $0x0,0x1d4(%edx) 108a19: 00 00 00 108a1c: c7 82 dc 02 00 00 00 movl $0x0,0x2dc(%edx) 108a23: 00 00 00 108a26: c7 82 e0 02 00 00 00 movl $0x0,0x2e0(%edx) 108a2d: 00 00 00 108a30: c7 82 e4 02 00 00 00 movl $0x0,0x2e4(%edx) 108a37: 00 00 00 108a3a: c7 82 e8 02 00 00 00 movl $0x0,0x2e8(%edx) 108a41: 00 00 00 108a44: 66 b9 38 01 mov $0x138,%cx 108a48: 89 df mov %ebx,%edi 108a4a: f3 aa rep stos %al,%es:(%edi) creating_task->libc_reent = ptr; 108a4c: 8b 45 0c mov 0xc(%ebp),%eax 108a4f: 89 90 ec 00 00 00 mov %edx,0xec(%eax) 108a55: b0 01 mov $0x1,%al return TRUE; } return FALSE; } 108a57: 8d 65 f4 lea -0xc(%ebp),%esp 108a5a: 5b pop %ebx 108a5b: 5e pop %esi 108a5c: 5f pop %edi 108a5d: c9 leave 108a5e: c3 ret 108a5f: 90 nop <== NOT EXECUTED * hooks run with thread dispatching disabled. */ ptr = (struct _reent *) _Workspace_Allocate(sizeof(struct _reent)); #endif if (ptr) { 108a60: 31 c0 xor %eax,%eax creating_task->libc_reent = ptr; return TRUE; } return FALSE; } 108a62: 8d 65 f4 lea -0xc(%ebp),%esp 108a65: 5b pop %ebx 108a66: 5e pop %esi 108a67: 5f pop %edi 108a68: c9 leave 108a69: c3 ret 108a6a: 66 90 xchg %ax,%ax <== NOT EXECUTED { struct _reent *ptr; if (_Thread_libc_reent == 0) { _REENT = _global_impure_ptr; 108a6c: a1 00 04 12 00 mov 0x120400,%eax 108a71: a3 c0 30 12 00 mov %eax,0x1230c0 RTEMS_INLINE_ROUTINE void _Thread_Set_libc_reent ( struct _reent **libc_reent ) { _Thread_libc_reent = libc_reent; 108a76: c7 05 e4 53 12 00 c0 movl $0x1230c0,0x1253e4 108a7d: 30 12 00 108a80: e9 95 fd ff ff jmp 10881a 00108738 : void newlib_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) { 108738: 55 push %ebp 108739: 89 e5 mov %esp,%ebp 10873b: 57 push %edi 10873c: 56 push %esi 10873d: 53 push %ebx 10873e: 83 ec 0c sub $0xc,%esp 108741: 8b 7d 08 mov 0x8(%ebp),%edi 108744: 8b 5d 0c mov 0xc(%ebp),%ebx /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) { 108747: 39 df cmp %ebx,%edi 108749: 74 55 je 1087a0 ptr = _REENT; } else { ptr = deleted_task->libc_reent; 10874b: 8b b3 ec 00 00 00 mov 0xec(%ebx),%esi } if (ptr && ptr != _global_impure_ptr) { 108751: 85 f6 test %esi,%esi 108753: 74 21 je 108776 108755: 3b 35 00 04 12 00 cmp 0x120400,%esi 10875b: 74 19 je 108776 _reclaim_reent(ptr); */ /* * Just in case there are some buffers lying around. */ _fwalk(ptr, newlib_free_buffers); 10875d: 83 ec 08 sub $0x8,%esp 108760: 68 a8 87 10 00 push $0x1087a8 108765: 56 push %esi 108766: e8 3d a4 00 00 call 112ba8 <_fwalk> #if REENT_MALLOCED free(ptr); #else _Workspace_Free(ptr); 10876b: 89 34 24 mov %esi,(%esp) 10876e: e8 b5 5d 00 00 call 10e528 <_Workspace_Free> 108773: 83 c4 10 add $0x10,%esp #endif } deleted_task->libc_reent = NULL; 108776: c7 83 ec 00 00 00 00 movl $0x0,0xec(%ebx) 10877d: 00 00 00 /* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) { 108780: 39 df cmp %ebx,%edi 108782: 74 08 je 10878c _REENT = 0; } } 108784: 8d 65 f4 lea -0xc(%ebp),%esp 108787: 5b pop %ebx 108788: 5e pop %esi 108789: 5f pop %edi 10878a: c9 leave 10878b: c3 ret /* * Require the switch back to another task to install its own */ if ( current_task == deleted_task ) { _REENT = 0; 10878c: c7 05 c0 30 12 00 00 movl $0x0,0x1230c0 108793: 00 00 00 } } 108796: 8d 65 f4 lea -0xc(%ebp),%esp 108799: 5b pop %ebx 10879a: 5e pop %esi 10879b: 5f pop %edi 10879c: c9 leave 10879d: c3 ret 10879e: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * The reentrancy structure was allocated by newlib using malloc() */ if (current_task == deleted_task) { ptr = _REENT; 1087a0: 8b 35 c0 30 12 00 mov 0x1230c0,%esi 1087a6: eb a9 jmp 108751 001087a8 : */ int newlib_free_buffers( FILE *fp ) { 1087a8: 55 push %ebp 1087a9: 89 e5 mov %esp,%ebp 1087ab: 53 push %ebx 1087ac: 83 ec 10 sub $0x10,%esp 1087af: 8b 5d 08 mov 0x8(%ebp),%ebx switch ( fileno(fp) ) { 1087b2: 53 push %ebx 1087b3: e8 f8 9f 00 00 call 1127b0 1087b8: 83 c4 10 add $0x10,%esp 1087bb: 83 f8 02 cmp $0x2,%eax 1087be: 76 14 jbe 1087d4 fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 1087c0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1087c3: 53 push %ebx <== NOT EXECUTED 1087c4: e8 7b 9d 00 00 call 112544 <== NOT EXECUTED 1087c9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } return 0; } 1087cc: 31 c0 xor %eax,%eax 1087ce: 8b 5d fc mov -0x4(%ebp),%ebx 1087d1: c9 leave 1087d2: c3 ret 1087d3: 90 nop <== NOT EXECUTED { switch ( fileno(fp) ) { case 0: case 1: case 2: if (fp->_flags & __SMBF) { 1087d4: 80 7b 0c 00 cmpb $0x0,0xc(%ebx) 1087d8: 79 f2 jns 1087cc free( fp->_bf._base ); 1087da: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1087dd: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 1087e0: e8 37 f8 ff ff call 10801c <== NOT EXECUTED fp->_flags &= ~__SMBF; 1087e5: 66 81 63 0c 7f ff andw $0xff7f,0xc(%ebx) <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 1087eb: c7 03 00 00 00 00 movl $0x0,(%ebx) <== NOT EXECUTED 1087f1: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) <== NOT EXECUTED 1087f8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED break; default: fclose(fp); } return 0; } 1087fb: 31 c0 xor %eax,%eax <== NOT EXECUTED 1087fd: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 108800: c9 leave <== NOT EXECUTED 108801: c3 ret <== NOT EXECUTED 001086a0 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { 1086a0: 55 push %ebp 1086a1: 89 e5 mov %esp,%ebp 1086a3: 53 push %ebx 1086a4: 83 ec 04 sub $0x4,%esp 1086a7: 8b 5d 08 mov 0x8(%ebp),%ebx rtems_device_driver status; if ( !initialized ) { 1086aa: 80 3d b8 80 12 00 00 cmpb $0x0,0x1280b8 1086b1: 74 09 je 1086bc NULL_major = major; } return RTEMS_SUCCESSFUL; } 1086b3: 31 c0 xor %eax,%eax 1086b5: 8b 5d fc mov -0x4(%ebp),%ebx 1086b8: c9 leave 1086b9: c3 ret 1086ba: 66 90 xchg %ax,%ax <== NOT EXECUTED ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 1086bc: c6 05 b8 80 12 00 01 movb $0x1,0x1280b8 status = rtems_io_register_name( 1086c3: 50 push %eax 1086c4: 6a 00 push $0x0 1086c6: 53 push %ebx 1086c7: 68 33 11 12 00 push $0x121133 1086cc: e8 1f 01 00 00 call 1087f0 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 1086d1: 83 c4 10 add $0x10,%esp 1086d4: 85 c0 test %eax,%eax 1086d6: 75 0d jne 1086e5 rtems_fatal_error_occurred(status); NULL_major = major; 1086d8: 89 1d 20 84 12 00 mov %ebx,0x128420 } return RTEMS_SUCCESSFUL; } 1086de: 31 c0 xor %eax,%eax 1086e0: 8b 5d fc mov -0x4(%ebp),%ebx 1086e3: c9 leave 1086e4: c3 ret major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); 1086e5: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1086e8: 50 push %eax <== NOT EXECUTED 1086e9: e8 92 42 00 00 call 10c980 <== NOT EXECUTED 00108684 : rtems_device_driver null_write( rtems_device_major_number major __attribute__((unused)), rtems_device_minor_number minor __attribute__((unused)), void *pargp ) { 108684: 55 push %ebp 108685: 89 e5 mov %esp,%ebp 108687: 8b 45 10 mov 0x10(%ebp),%eax rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp; if ( rw_args ) 10868a: 85 c0 test %eax,%eax 10868c: 74 06 je 108694 rw_args->bytes_moved = rw_args->count; 10868e: 8b 50 10 mov 0x10(%eax),%edx <== NOT EXECUTED 108691: 89 50 18 mov %edx,0x18(%eax) <== NOT EXECUTED return NULL_SUCCESSFUL; } 108694: 31 c0 xor %eax,%eax 108696: c9 leave 108697: c3 ret 00108ae8 : int open( const char *pathname, int flags, ... ) { 108ae8: 55 push %ebp 108ae9: 89 e5 mov %esp,%ebp 108aeb: 57 push %edi 108aec: 56 push %esi 108aed: 53 push %ebx 108aee: 83 ec 4c sub $0x4c,%esp /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 108af1: 8b 45 0c mov 0xc(%ebp),%eax 108af4: 40 inc %eax if ( ( status & _FREAD ) == _FREAD ) 108af5: 89 c6 mov %eax,%esi 108af7: 83 e6 01 and $0x1,%esi 108afa: f7 de neg %esi 108afc: 83 e6 04 and $0x4,%esi eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 108aff: a8 02 test $0x2,%al 108b01: 74 03 je 108b06 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; 108b03: 83 ce 02 or $0x2,%esi va_start(ap, flags); mode = va_arg( ap, int ); 108b06: 8b 45 10 mov 0x10(%ebp),%eax 108b09: 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(); 108b0c: e8 cf 6f 00 00 call 10fae0 108b11: 89 c3 mov %eax,%ebx if ( iop == 0 ) { 108b13: 85 c0 test %eax,%eax 108b15: 0f 84 bd 00 00 00 je 108bd8 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); 108b1b: b9 ff ff ff ff mov $0xffffffff,%ecx 108b20: 8b 7d 08 mov 0x8(%ebp),%edi 108b23: 31 c0 xor %eax,%eax 108b25: f2 ae repnz scas %es:(%edi),%al 108b27: f7 d1 not %ecx 108b29: 49 dec %ecx /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 108b2a: 83 ec 0c sub $0xc,%esp 108b2d: 6a 01 push $0x1 108b2f: 8d 45 d4 lea -0x2c(%ebp),%eax 108b32: 89 45 b4 mov %eax,-0x4c(%ebp) 108b35: 50 push %eax 108b36: 56 push %esi 108b37: 51 push %ecx 108b38: ff 75 08 pushl 0x8(%ebp) 108b3b: e8 28 f4 ff ff call 107f68 108b40: 89 c6 mov %eax,%esi pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { 108b42: 83 c4 20 add $0x20,%esp 108b45: 83 f8 ff cmp $0xffffffff,%eax 108b48: 0f 84 f2 00 00 00 je 108c40 if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 108b4e: 8b 45 0c mov 0xc(%ebp),%eax 108b51: 25 00 0a 00 00 and $0xa00,%eax 108b56: 3d 00 0a 00 00 cmp $0xa00,%eax 108b5b: 0f 84 8b 00 00 00 je 108bec /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 108b61: 8b 45 dc mov -0x24(%ebp),%eax 108b64: 89 43 3c mov %eax,0x3c(%ebx) iop->file_info = loc.node_access; 108b67: 8b 45 d4 mov -0x2c(%ebp),%eax 108b6a: 89 43 38 mov %eax,0x38(%ebx) iop->flags |= rtems_libio_fcntl_flags( flags ); 108b6d: 8b 73 14 mov 0x14(%ebx),%esi 108b70: 83 ec 0c sub $0xc,%esp 108b73: ff 75 0c pushl 0xc(%ebp) 108b76: e8 f1 6f 00 00 call 10fb6c 108b7b: 09 f0 or %esi,%eax 108b7d: 89 43 14 mov %eax,0x14(%ebx) iop->pathinfo = loc; 108b80: 8d 7b 18 lea 0x18(%ebx),%edi 108b83: b9 05 00 00 00 mov $0x5,%ecx 108b88: 8b 75 b4 mov -0x4c(%ebp),%esi 108b8b: f3 a5 rep movsl %ds:(%esi),%es:(%edi) if ( !iop->handlers || !iop->handlers->open_h ) { 108b8d: 8b 43 3c mov 0x3c(%ebx),%eax 108b90: 83 c4 10 add $0x10,%esp 108b93: 85 c0 test %eax,%eax 108b95: 0f 84 99 00 00 00 je 108c34 108b9b: 8b 00 mov (%eax),%eax 108b9d: 85 c0 test %eax,%eax 108b9f: 0f 84 8f 00 00 00 je 108c34 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 108ba5: ff 75 c4 pushl -0x3c(%ebp) 108ba8: ff 75 0c pushl 0xc(%ebp) 108bab: ff 75 08 pushl 0x8(%ebp) 108bae: 53 push %ebx 108baf: ff d0 call *%eax if ( rc ) { 108bb1: 83 c4 10 add $0x10,%esp 108bb4: 85 c0 test %eax,%eax 108bb6: 75 6c jne 108c24 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 108bb8: f7 45 0c 00 04 00 00 testl $0x400,0xc(%ebp) 108bbf: 0f 85 93 00 00 00 jne 108c58 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 108bc5: 89 d8 mov %ebx,%eax 108bc7: 2b 05 c0 51 12 00 sub 0x1251c0,%eax 108bcd: c1 f8 06 sar $0x6,%eax } 108bd0: 8d 65 f4 lea -0xc(%ebp),%esp 108bd3: 5b pop %ebx 108bd4: 5e pop %esi 108bd5: 5f pop %edi 108bd6: c9 leave 108bd7: c3 ret * descriptors are obtained using socket(), not open(). */ /* allocate a file control block */ iop = rtems_libio_allocate(); if ( iop == 0 ) { 108bd8: 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 ); 108bdd: e8 16 98 00 00 call 1123f8 <__errno> 108be2: 89 30 mov %esi,(%eax) 108be4: b8 ff ff ff ff mov $0xffffffff,%eax 108be9: eb e5 jmp 108bd0 108beb: 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)) { 108bec: 8d 7d d4 lea -0x2c(%ebp),%edi 108bef: be 11 00 00 00 mov $0x11,%esi done: va_end(ap); if ( rc ) { if ( iop ) 108bf4: 85 db test %ebx,%ebx 108bf6: 74 0c je 108c04 rtems_libio_free( iop ); 108bf8: 83 ec 0c sub $0xc,%esp 108bfb: 53 push %ebx 108bfc: e8 87 6e 00 00 call 10fa88 108c01: 83 c4 10 add $0x10,%esp if ( loc_to_free ) 108c04: 85 ff test %edi,%edi 108c06: 74 d5 je 108bdd rtems_filesystem_freenode( loc_to_free ); 108c08: 8b 47 0c mov 0xc(%edi),%eax 108c0b: 85 c0 test %eax,%eax 108c0d: 74 ce je 108bdd 108c0f: 8b 40 1c mov 0x1c(%eax),%eax 108c12: 85 c0 test %eax,%eax 108c14: 74 c7 je 108bdd 108c16: 83 ec 0c sub $0xc,%esp 108c19: 57 push %edi 108c1a: ff d0 call *%eax 108c1c: 83 c4 10 add $0x10,%esp 108c1f: eb bc jmp 108bdd 108c21: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); if ( rc ) { rc = errno; 108c24: e8 cf 97 00 00 call 1123f8 <__errno> 108c29: 8b 30 mov (%eax),%esi 108c2b: 8d 7d d4 lea -0x2c(%ebp),%edi */ done: va_end(ap); if ( rc ) { 108c2e: 85 f6 test %esi,%esi 108c30: 74 93 je 108bc5 108c32: eb c0 jmp 108bf4 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 108c34: 8d 7d d4 lea -0x2c(%ebp),%edi <== NOT EXECUTED 108c37: be 86 00 00 00 mov $0x86,%esi <== NOT EXECUTED 108c3c: eb b6 jmp 108bf4 <== NOT EXECUTED 108c3e: 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 ) { 108c40: e8 b3 97 00 00 call 1123f8 <__errno> 108c45: 83 38 02 cmpl $0x2,(%eax) 108c48: 74 5e je 108ca8 } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); if ( rc ) { rc = errno; 108c4a: e8 a9 97 00 00 call 1123f8 <__errno> 108c4f: 8b 30 mov (%eax),%esi 108c51: 31 ff xor %edi,%edi goto done; 108c53: eb d9 jmp 108c2e 108c55: 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 ); 108c58: 52 push %edx 108c59: 6a 00 push $0x0 108c5b: 6a 00 push $0x0 108c5d: 89 d8 mov %ebx,%eax 108c5f: 2b 05 c0 51 12 00 sub 0x1251c0,%eax 108c65: c1 f8 06 sar $0x6,%eax 108c68: 50 push %eax 108c69: e8 c2 6b 00 00 call 10f830 108c6e: 89 c6 mov %eax,%esi if ( rc ) { 108c70: 83 c4 10 add $0x10,%esp 108c73: 85 c0 test %eax,%eax 108c75: 0f 84 4a ff ff ff je 108bc5 if(errno) rc = errno; 108c7b: e8 78 97 00 00 call 1123f8 <__errno> <== NOT EXECUTED 108c80: 8b 00 mov (%eax),%eax <== NOT EXECUTED 108c82: 85 c0 test %eax,%eax <== NOT EXECUTED 108c84: 0f 85 8b 00 00 00 jne 108d15 <== NOT EXECUTED close( iop - rtems_libio_iops ); 108c8a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108c8d: 2b 1d c0 51 12 00 sub 0x1251c0,%ebx <== NOT EXECUTED 108c93: c1 fb 06 sar $0x6,%ebx <== NOT EXECUTED 108c96: 53 push %ebx <== NOT EXECUTED 108c97: e8 04 6b 00 00 call 10f7a0 <== NOT EXECUTED 108c9c: 31 ff xor %edi,%edi <== NOT EXECUTED 108c9e: 31 db xor %ebx,%ebx <== NOT EXECUTED 108ca0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108ca3: eb 89 jmp 108c2e <== NOT EXECUTED 108ca5: 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) ) { 108ca8: f7 45 0c 00 02 00 00 testl $0x200,0xc(%ebp) 108caf: 75 0f jne 108cc0 108cb1: 31 ff xor %edi,%edi 108cb3: be 02 00 00 00 mov $0x2,%esi 108cb8: e9 37 ff ff ff jmp 108bf4 108cbd: 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 ); 108cc0: 6a 00 push $0x0 108cc2: 6a 00 push $0x0 108cc4: 8b 45 c4 mov -0x3c(%ebp),%eax 108cc7: 80 cc 80 or $0x80,%ah 108cca: 50 push %eax 108ccb: ff 75 08 pushl 0x8(%ebp) 108cce: e8 75 f6 ff ff call 108348 if ( rc ) { 108cd3: 83 c4 10 add $0x10,%esp 108cd6: 85 c0 test %eax,%eax 108cd8: 0f 85 6c ff ff ff jne 108c4a 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 ); 108cde: 89 f1 mov %esi,%ecx 108ce0: 8b 7d 08 mov 0x8(%ebp),%edi 108ce3: 31 c0 xor %eax,%eax 108ce5: f2 ae repnz scas %es:(%edi),%al 108ce7: f7 d1 not %ecx 108ce9: 49 dec %ecx 108cea: 83 ec 0c sub $0xc,%esp 108ced: 6a 01 push $0x1 108cef: 8d 45 d4 lea -0x2c(%ebp),%eax 108cf2: 50 push %eax 108cf3: 6a 00 push $0x0 108cf5: 51 push %ecx 108cf6: ff 75 08 pushl 0x8(%ebp) 108cf9: e8 6a f2 ff ff call 107f68 if ( status != 0 ) { /* The file did not exist */ 108cfe: 83 c4 20 add $0x20,%esp 108d01: 85 c0 test %eax,%eax 108d03: 0f 84 58 fe ff ff je 108b61 108d09: 31 ff xor %edi,%edi <== NOT EXECUTED 108d0b: be 0d 00 00 00 mov $0xd,%esi <== NOT EXECUTED 108d10: e9 df fe ff ff jmp 108bf4 <== NOT EXECUTED */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; 108d15: e8 de 96 00 00 call 1123f8 <__errno> <== NOT EXECUTED 108d1a: 8b 30 mov (%eax),%esi <== NOT EXECUTED 108d1c: e9 69 ff ff ff jmp 108c8a <== NOT EXECUTED 00108a88 : /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { 108a88: 55 push %ebp 108a89: 89 e5 mov %esp,%ebp 108a8b: 83 ec 0c sub $0xc,%esp int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 108a8e: 6a 00 push $0x0 108a90: 6a 00 push $0x0 108a92: 68 10 e1 11 00 push $0x11e110 108a97: e8 4c 00 00 00 call 108ae8 108a9c: 83 c4 10 add $0x10,%esp 108a9f: 40 inc %eax 108aa0: 74 2a je 108acc /* * 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) 108aa2: 52 push %edx 108aa3: 6a 00 push $0x0 108aa5: 6a 01 push $0x1 108aa7: 68 10 e1 11 00 push $0x11e110 108aac: e8 37 00 00 00 call 108ae8 108ab1: 83 c4 10 add $0x10,%esp 108ab4: 40 inc %eax 108ab5: 74 24 je 108adb rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 108ab7: 50 push %eax 108ab8: 6a 00 push $0x0 108aba: 6a 01 push $0x1 108abc: 68 10 e1 11 00 push $0x11e110 108ac1: e8 22 00 00 00 call 108ae8 108ac6: 83 c4 10 add $0x10,%esp 108ac9: 40 inc %eax 108aca: 74 02 je 108ace rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ } 108acc: c9 leave 108acd: 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 */ 108ace: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108ad1: 68 32 44 54 55 push $0x55544432 <== NOT EXECUTED 108ad6: e8 fd 30 00 00 call 10bbd8 <== 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 */ 108adb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108ade: 68 31 44 54 55 push $0x55544431 <== NOT EXECUTED 108ae3: e8 f0 30 00 00 call 10bbd8 <== NOT EXECUTED 00109604 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 109604: 55 push %ebp 109605: 89 e5 mov %esp,%ebp 109607: 56 push %esi 109608: 53 push %ebx 109609: 83 ec 10 sub $0x10,%esp 10960c: 88 45 f4 mov %al,-0xc(%ebp) int i; if (tty->termios.c_oflag & OPOST) { 10960f: 8b 4a 34 mov 0x34(%edx),%ecx 109612: f6 c1 01 test $0x1,%cl 109615: 74 31 je 109648 switch (c) { 109617: 3c 09 cmp $0x9,%al 109619: 0f 84 b1 00 00 00 je 1096d0 10961f: 76 3f jbe 109660 109621: 3c 0a cmp $0xa,%al 109623: 74 4f je 109674 109625: 3c 0d cmp $0xd,%al 109627: 74 7f je 1096a8 if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 109629: 83 e1 02 and $0x2,%ecx 10962c: 0f 85 c6 00 00 00 jne 1096f8 109632: 8b 0d a8 30 12 00 mov 0x1230a8,%ecx c = toupper(c); if (!iscntrl(c)) 109638: 0f b6 c0 movzbl %al,%eax 10963b: f6 44 01 01 20 testb $0x20,0x1(%ecx,%eax,1) 109640: 75 06 jne 109648 tty->column++; 109642: ff 42 28 incl 0x28(%edx) 109645: 8d 76 00 lea 0x0(%esi),%esi break; } } rtems_termios_puts (&c, 1, tty); 109648: 50 push %eax 109649: 52 push %edx 10964a: 6a 01 push $0x1 10964c: 8d 45 f4 lea -0xc(%ebp),%eax 10964f: 50 push %eax 109650: e8 7b fe ff ff call 1094d0 109655: 83 c4 10 add $0x10,%esp } 109658: 8d 65 f8 lea -0x8(%ebp),%esp 10965b: 5b pop %ebx 10965c: 5e pop %esi 10965d: c9 leave 10965e: c3 ret 10965f: 90 nop <== NOT EXECUTED oproc (unsigned char c, struct rtems_termios_tty *tty) { int i; if (tty->termios.c_oflag & OPOST) { switch (c) { 109660: 3c 08 cmp $0x8,%al <== NOT EXECUTED 109662: 75 c5 jne 109629 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 109664: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED 109667: 85 c0 test %eax,%eax <== NOT EXECUTED 109669: 7e dd jle 109648 <== NOT EXECUTED tty->column--; 10966b: 48 dec %eax <== NOT EXECUTED 10966c: 89 42 28 mov %eax,0x28(%edx) <== NOT EXECUTED 10966f: eb d7 jmp 109648 <== NOT EXECUTED 109671: 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) 109674: f6 c1 20 test $0x20,%cl 109677: 74 07 je 109680 tty->column = 0; 109679: c7 42 28 00 00 00 00 movl $0x0,0x28(%edx) <== NOT EXECUTED if (tty->termios.c_oflag & ONLCR) { 109680: 83 e1 04 and $0x4,%ecx 109683: 74 c3 je 109648 rtems_termios_puts ("\r", 1, tty); 109685: 56 push %esi 109686: 52 push %edx 109687: 6a 01 push $0x1 109689: 68 74 f9 11 00 push $0x11f974 10968e: 89 55 f0 mov %edx,-0x10(%ebp) 109691: e8 3a fe ff ff call 1094d0 tty->column = 0; 109696: 8b 55 f0 mov -0x10(%ebp),%edx 109699: c7 42 28 00 00 00 00 movl $0x0,0x28(%edx) 1096a0: 83 c4 10 add $0x10,%esp 1096a3: eb a3 jmp 109648 1096a5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 1096a8: f6 c1 10 test $0x10,%cl <== NOT EXECUTED 1096ab: 74 07 je 1096b4 <== NOT EXECUTED 1096ad: 8b 5a 28 mov 0x28(%edx),%ebx <== NOT EXECUTED 1096b0: 85 db test %ebx,%ebx <== NOT EXECUTED 1096b2: 74 a4 je 109658 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 1096b4: f6 c1 08 test $0x8,%cl <== NOT EXECUTED 1096b7: 74 09 je 1096c2 <== NOT EXECUTED c = '\n'; 1096b9: c6 45 f4 0a movb $0xa,-0xc(%ebp) <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 1096bd: 83 e1 20 and $0x20,%ecx <== NOT EXECUTED 1096c0: 74 86 je 109648 <== NOT EXECUTED tty->column = 0; break; } tty->column = 0; 1096c2: c7 42 28 00 00 00 00 movl $0x0,0x28(%edx) <== NOT EXECUTED break; 1096c9: e9 7a ff ff ff jmp 109648 <== NOT EXECUTED 1096ce: 66 90 xchg %ax,%ax <== NOT EXECUTED case '\t': i = 8 - (tty->column & 7); 1096d0: 8b 5a 28 mov 0x28(%edx),%ebx 1096d3: 89 de mov %ebx,%esi 1096d5: 83 e6 07 and $0x7,%esi 1096d8: b8 08 00 00 00 mov $0x8,%eax 1096dd: 29 f0 sub %esi,%eax if ((tty->termios.c_oflag & TABDLY) == XTABS) { 1096df: 81 e1 00 18 00 00 and $0x1800,%ecx 1096e5: 81 f9 00 18 00 00 cmp $0x1800,%ecx 1096eb: 74 37 je 109724 tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; 1096ed: 01 d8 add %ebx,%eax <== NOT EXECUTED 1096ef: 89 42 28 mov %eax,0x28(%edx) <== NOT EXECUTED break; 1096f2: e9 51 ff ff ff jmp 109648 <== NOT EXECUTED 1096f7: 90 nop <== NOT EXECUTED tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) c = toupper(c); 1096f8: 8b 0d a8 30 12 00 mov 0x1230a8,%ecx <== NOT EXECUTED 1096fe: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 109701: 0f be 5c 01 01 movsbl 0x1(%ecx,%eax,1),%ebx <== NOT EXECUTED 109706: 83 e3 03 and $0x3,%ebx <== NOT EXECUTED 109709: 83 fb 02 cmp $0x2,%ebx <== NOT EXECUTED 10970c: 74 0e je 10971c <== NOT EXECUTED 10970e: 89 c3 mov %eax,%ebx <== NOT EXECUTED 109710: 88 d8 mov %bl,%al <== NOT EXECUTED 109712: 88 5d f4 mov %bl,-0xc(%ebp) <== NOT EXECUTED 109715: e9 1e ff ff ff jmp 109638 <== NOT EXECUTED 10971a: 66 90 xchg %ax,%ax <== NOT EXECUTED 10971c: 8d 58 e0 lea -0x20(%eax),%ebx <== NOT EXECUTED 10971f: eb ef jmp 109710 <== NOT EXECUTED 109721: 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; 109724: 8d 1c 18 lea (%eax,%ebx,1),%ebx 109727: 89 5a 28 mov %ebx,0x28(%edx) rtems_termios_puts ( " ", i, tty); 10972a: 51 push %ecx 10972b: 52 push %edx 10972c: 50 push %eax 10972d: 68 1c f6 11 00 push $0x11f61c 109732: e8 99 fd ff ff call 1094d0 return; 109737: 83 c4 10 add $0x10,%esp 10973a: e9 19 ff ff ff jmp 109658 0010a46c : long pathconf( const char *path, int name ) { 10a46c: 55 push %ebp 10a46d: 89 e5 mov %esp,%ebp 10a46f: 56 push %esi 10a470: 53 push %ebx int status; int fd; fd = open( path, O_RDONLY ); 10a471: 83 ec 08 sub $0x8,%esp 10a474: 6a 00 push $0x0 10a476: ff 75 08 pushl 0x8(%ebp) 10a479: e8 92 fd ff ff call 10a210 10a47e: 89 c3 mov %eax,%ebx if ( fd == -1 ) 10a480: 83 c4 10 add $0x10,%esp 10a483: 83 f8 ff cmp $0xffffffff,%eax 10a486: 74 24 je 10a4ac return -1; status = fpathconf( fd, name ); 10a488: 83 ec 08 sub $0x8,%esp 10a48b: ff 75 0c pushl 0xc(%ebp) 10a48e: 50 push %eax 10a48f: e8 00 ed ff ff call 109194 10a494: 89 c6 mov %eax,%esi (void) close( fd ); 10a496: 89 1c 24 mov %ebx,(%esp) 10a499: e8 d2 e7 ff ff call 108c70 return status; 10a49e: 83 c4 10 add $0x10,%esp } 10a4a1: 89 f0 mov %esi,%eax 10a4a3: 8d 65 f8 lea -0x8(%ebp),%esp 10a4a6: 5b pop %ebx 10a4a7: 5e pop %esi 10a4a8: c9 leave 10a4a9: c3 ret 10a4aa: 66 90 xchg %ax,%ax <== NOT EXECUTED { int status; int fd; fd = open( path, O_RDONLY ); if ( fd == -1 ) 10a4ac: be ff ff ff ff mov $0xffffffff,%esi status = fpathconf( fd, name ); (void) close( fd ); return status; } 10a4b1: 89 f0 mov %esi,%eax 10a4b3: 8d 65 f8 lea -0x8(%ebp),%esp 10a4b6: 5b pop %ebx 10a4b7: 5e pop %esi 10a4b8: c9 leave 10a4b9: c3 ret 00111f40 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 111f40: 55 push %ebp 111f41: 89 e5 mov %esp,%ebp 111f43: 57 push %edi 111f44: 56 push %esi 111f45: 53 push %ebx 111f46: 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) 111f49: 6a 01 push $0x1 111f4b: 8d 5d c4 lea -0x3c(%ebp),%ebx 111f4e: 53 push %ebx 111f4f: 6a 07 push $0x7 111f51: 6a 03 push $0x3 111f53: 68 37 00 12 00 push $0x120037 111f58: e8 0b 60 ff ff call 107f68 111f5d: 83 c4 20 add $0x20,%esp 111f60: 85 c0 test %eax,%eax 111f62: 0f 85 e0 00 00 00 jne 112048 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) return -1; } else rtems_filesystem_freenode(&loc); 111f68: 8b 45 d0 mov -0x30(%ebp),%eax <== NOT EXECUTED 111f6b: 85 c0 test %eax,%eax <== NOT EXECUTED 111f6d: 74 10 je 111f7f <== NOT EXECUTED 111f6f: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 111f72: 85 c0 test %eax,%eax <== NOT EXECUTED 111f74: 74 09 je 111f7f <== NOT EXECUTED 111f76: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111f79: 53 push %ebx <== NOT EXECUTED 111f7a: ff d0 call *%eax <== NOT EXECUTED 111f7c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 111f7f: 8d 5d d9 lea -0x27(%ebp),%ebx 111f82: be 3c 00 12 00 mov $0x12003c,%esi 111f87: b9 0a 00 00 00 mov $0xa,%ecx 111f8c: 89 df mov %ebx,%edi 111f8e: f3 a4 rep movsb %ds:(%esi),%es:(%edi) sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 111f90: 0f b7 05 94 4f 12 00 movzwl 0x124f94,%eax 111f97: 8d 50 01 lea 0x1(%eax),%edx 111f9a: 66 89 15 94 4f 12 00 mov %dx,0x124f94 111fa1: 51 push %ecx 111fa2: 50 push %eax 111fa3: 68 47 00 12 00 push $0x120047 111fa8: 8d 45 e3 lea -0x1d(%ebp),%eax 111fab: 50 push %eax 111fac: e8 87 0d 00 00 call 112d38 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 111fb1: 58 pop %eax 111fb2: 5a pop %edx 111fb3: 68 80 01 00 00 push $0x180 111fb8: 53 push %ebx 111fb9: e8 4a 01 00 00 call 112108 111fbe: 83 c4 10 add $0x10,%esp 111fc1: 85 c0 test %eax,%eax 111fc3: 75 6f jne 112034 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); 111fc5: 83 ec 08 sub $0x8,%esp 111fc8: 68 00 40 00 00 push $0x4000 111fcd: 53 push %ebx 111fce: e8 15 6b ff ff call 108ae8 111fd3: 8b 55 08 mov 0x8(%ebp),%edx 111fd6: 89 02 mov %eax,(%edx) if (filsdes[0] < 0) { 111fd8: 83 c4 10 add $0x10,%esp 111fdb: 85 c0 test %eax,%eax 111fdd: 0f 88 a1 00 00 00 js 112084 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]); 111fe3: 3b 05 4c 11 12 00 cmp 0x12114c,%eax <== NOT EXECUTED 111fe9: 0f 82 85 00 00 00 jb 112074 <== NOT EXECUTED 111fef: 31 c0 xor %eax,%eax <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 111ff1: 83 60 14 fe andl $0xfffffffe,0x14(%eax) <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 111ff5: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 111ff8: 6a 01 push $0x1 <== NOT EXECUTED 111ffa: 53 push %ebx <== NOT EXECUTED 111ffb: e8 e8 6a ff ff call 108ae8 <== NOT EXECUTED 112000: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 112003: 89 42 04 mov %eax,0x4(%edx) <== NOT EXECUTED if (filsdes[1] < 0) { 112006: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 112009: 85 c0 test %eax,%eax <== NOT EXECUTED 11200b: 0f 88 8b 00 00 00 js 11209c <== NOT EXECUTED 112011: 31 f6 xor %esi,%esi <== NOT EXECUTED err = errno; close(filsdes[0]); } unlink(fifopath); 112013: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 112016: 53 push %ebx <== NOT EXECUTED 112017: e8 08 01 00 00 call 112124 <== NOT EXECUTED 11201c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } rtems_set_errno_and_return_minus_one(err); 11201f: e8 d4 03 00 00 call 1123f8 <__errno> 112024: 89 30 mov %esi,(%eax) } 112026: b8 ff ff ff ff mov $0xffffffff,%eax 11202b: 8d 65 f4 lea -0xc(%ebp),%esp 11202e: 5b pop %ebx 11202f: 5e pop %esi 112030: 5f pop %edi 112031: c9 leave 112032: c3 ret 112033: 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){ 112034: e8 bf 03 00 00 call 1123f8 <__errno> <== NOT EXECUTED } unlink(fifopath); } rtems_set_errno_and_return_minus_one(err); } 112039: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11203e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 112041: 5b pop %ebx <== NOT EXECUTED 112042: 5e pop %esi <== NOT EXECUTED 112043: 5f pop %edi <== NOT EXECUTED 112044: c9 leave <== NOT EXECUTED 112045: c3 ret <== NOT EXECUTED 112046: 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) 112048: e8 ab 03 00 00 call 1123f8 <__errno> 11204d: 83 38 02 cmpl $0x2,(%eax) 112050: 75 e7 jne 112039 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 112052: 83 ec 08 sub $0x8,%esp 112055: 68 ff 03 00 00 push $0x3ff 11205a: 68 37 00 12 00 push $0x120037 11205f: e8 c8 62 ff ff call 10832c 112064: 83 c4 10 add $0x10,%esp 112067: 85 c0 test %eax,%eax 112069: 0f 84 10 ff ff ff je 111f7f 11206f: eb c8 jmp 112039 <== NOT EXECUTED 112071: 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]); 112074: c1 e0 06 shl $0x6,%eax <== NOT EXECUTED 112077: 03 05 c0 51 12 00 add 0x1251c0,%eax <== NOT EXECUTED 11207d: e9 6f ff ff ff jmp 111ff1 <== NOT EXECUTED 112082: 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; 112084: e8 6f 03 00 00 call 1123f8 <__errno> 112089: 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); 11208b: 83 ec 0c sub $0xc,%esp 11208e: 53 push %ebx 11208f: e8 90 00 00 00 call 112124 112094: 83 c4 10 add $0x10,%esp 112097: eb 86 jmp 11201f 112099: 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; 11209c: e8 57 03 00 00 call 1123f8 <__errno> <== NOT EXECUTED 1120a1: 8b 30 mov (%eax),%esi <== NOT EXECUTED close(filsdes[0]); 1120a3: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1120a6: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 1120a9: ff 30 pushl (%eax) <== NOT EXECUTED 1120ab: e8 f0 d6 ff ff call 10f7a0 <== NOT EXECUTED 1120b0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1120b3: e9 5b ff ff ff jmp 112013 <== NOT EXECUTED 00110c6c : pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 110c6c: 55 push %ebp <== NOT EXECUTED 110c6d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 110c6f: 56 push %esi <== NOT EXECUTED 110c70: 53 push %ebx <== NOT EXECUTED 110c71: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED 110c74: 8b 5d 10 mov 0x10(%ebp),%ebx <== NOT EXECUTED if (cmd == FIONREAD) { 110c77: 81 7d 0c 7f 66 04 40 cmpl $0x4004667f,0xc(%ebp) <== NOT EXECUTED 110c7e: 74 0c je 110c8c <== NOT EXECUTED 110c80: b8 ea ff ff ff mov $0xffffffea,%eax <== NOT EXECUTED PIPE_UNLOCK(pipe); return 0; } return -EINVAL; } 110c85: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 110c88: 5b pop %ebx <== NOT EXECUTED 110c89: 5e pop %esi <== NOT EXECUTED 110c8a: c9 leave <== NOT EXECUTED 110c8b: c3 ret <== NOT EXECUTED void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) { if (buffer == NULL) 110c8c: 85 db test %ebx,%ebx <== NOT EXECUTED 110c8e: 75 07 jne 110c97 <== NOT EXECUTED 110c90: b8 f2 ff ff ff mov $0xfffffff2,%eax <== NOT EXECUTED 110c95: eb ee jmp 110c85 <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 110c97: 52 push %edx <== NOT EXECUTED 110c98: 6a 00 push $0x0 <== NOT EXECUTED 110c9a: 6a 00 push $0x0 <== NOT EXECUTED 110c9c: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED 110c9f: e8 fc a8 ff ff call 10b5a0 <== NOT EXECUTED 110ca4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110ca7: 85 c0 test %eax,%eax <== NOT EXECUTED 110ca9: 74 07 je 110cb2 <== NOT EXECUTED 110cab: b8 fc ff ff ff mov $0xfffffffc,%eax <== NOT EXECUTED 110cb0: eb d3 jmp 110c85 <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 110cb2: 8b 46 0c mov 0xc(%esi),%eax <== NOT EXECUTED 110cb5: 89 03 mov %eax,(%ebx) <== NOT EXECUTED PIPE_UNLOCK(pipe); 110cb7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110cba: ff 76 28 pushl 0x28(%esi) <== NOT EXECUTED 110cbd: e8 da a9 ff ff call 10b69c <== NOT EXECUTED 110cc2: 31 c0 xor %eax,%eax <== NOT EXECUTED return 0; 110cc4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110cc7: eb bc jmp 110c85 <== NOT EXECUTED 00110c0c : pipe_control_t *pipe, off_t offset, int whence, rtems_libio_t *iop ) { 110c0c: 55 push %ebp <== NOT EXECUTED 110c0d: 89 e5 mov %esp,%ebp <== NOT EXECUTED /* Seek on pipe is not supported */ return -ESPIPE; } 110c0f: b8 e3 ff ff ff mov $0xffffffe3,%eax <== NOT EXECUTED 110c14: c9 leave <== NOT EXECUTED 110c15: c3 ret <== NOT EXECUTED 00110eb0 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 110eb0: 55 push %ebp <== NOT EXECUTED 110eb1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 110eb3: 57 push %edi <== NOT EXECUTED 110eb4: 56 push %esi <== NOT EXECUTED 110eb5: 53 push %ebx <== NOT EXECUTED 110eb6: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED 110eb9: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 110ebc: 6a 00 push $0x0 <== NOT EXECUTED 110ebe: 6a 00 push $0x0 <== NOT EXECUTED 110ec0: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110ec3: e8 d8 a6 ff ff call 10b5a0 <== NOT EXECUTED 110ec8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110ecb: 85 c0 test %eax,%eax <== NOT EXECUTED 110ecd: 0f 85 b1 00 00 00 jne 110f84 <== NOT EXECUTED return -EINTR; while (read < count) { 110ed3: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED 110ed6: 85 ff test %edi,%edi <== NOT EXECUTED 110ed8: 0f 84 82 01 00 00 je 111060 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) 110ede: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED 110ee5: 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)) { 110eec: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED 110eef: 85 d2 test %edx,%edx <== NOT EXECUTED 110ef1: 0f 85 a1 00 00 00 jne 110f98 <== NOT EXECUTED /* Not an error */ if (pipe->Writers == 0) 110ef7: 8b 73 14 mov 0x14(%ebx),%esi <== NOT EXECUTED 110efa: 85 f6 test %esi,%esi <== NOT EXECUTED 110efc: 0f 84 06 01 00 00 je 111008 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 110f02: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED 110f05: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED 110f09: 0f 85 01 01 00 00 jne 111010 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; 110f0f: ff 43 18 incl 0x18(%ebx) <== NOT EXECUTED PIPE_UNLOCK(pipe); 110f12: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110f15: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110f18: e8 7f a7 ff ff call 10b69c <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 110f1d: 5a pop %edx <== NOT EXECUTED 110f1e: 59 pop %ecx <== NOT EXECUTED 110f1f: 6a 00 push $0x0 <== NOT EXECUTED 110f21: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 110f24: e8 bf 0a 00 00 call 1119e8 <== NOT EXECUTED 110f29: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 110f2c: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED 110f2f: 19 f6 sbb %esi,%esi <== NOT EXECUTED 110f31: f7 d6 not %esi <== NOT EXECUTED 110f33: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 110f36: 6a 00 push $0x0 <== NOT EXECUTED 110f38: 6a 00 push $0x0 <== NOT EXECUTED 110f3a: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110f3d: e8 5e a6 ff ff call 10b5a0 <== NOT EXECUTED 110f42: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110f45: 85 c0 test %eax,%eax <== NOT EXECUTED 110f47: 0f 85 cf 00 00 00 jne 11101c <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 110f4d: ff 4b 18 decl 0x18(%ebx) <== NOT EXECUTED if (ret != 0) 110f50: 85 f6 test %esi,%esi <== NOT EXECUTED 110f52: 74 98 je 110eec <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 110f54: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110f57: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110f5a: e8 3d a7 ff ff call 10b69c <== NOT EXECUTED 110f5f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED out_nolock: if (read > 0) 110f62: 8b 7d d4 mov -0x2c(%ebp),%edi <== NOT EXECUTED 110f65: 85 ff test %edi,%edi <== NOT EXECUTED 110f67: 7e 0b jle 110f74 <== NOT EXECUTED return read; return ret; } 110f69: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 110f6c: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 110f6f: 5b pop %ebx <== NOT EXECUTED 110f70: 5e pop %esi <== NOT EXECUTED 110f71: 5f pop %edi <== NOT EXECUTED 110f72: c9 leave <== NOT EXECUTED 110f73: c3 ret <== NOT EXECUTED out_locked: PIPE_UNLOCK(pipe); out_nolock: if (read > 0) 110f74: 89 75 d4 mov %esi,-0x2c(%ebp) <== NOT EXECUTED return read; return ret; } 110f77: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 110f7a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 110f7d: 5b pop %ebx <== NOT EXECUTED 110f7e: 5e pop %esi <== NOT EXECUTED 110f7f: 5f pop %edi <== NOT EXECUTED 110f80: c9 leave <== NOT EXECUTED 110f81: c3 ret <== NOT EXECUTED 110f82: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_libio_t *iop ) { int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 110f84: c7 45 d4 fc ff ff ff movl $0xfffffffc,-0x2c(%ebp) <== NOT EXECUTED out_nolock: if (read > 0) return read; return ret; } 110f8b: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 110f8e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 110f91: 5b pop %ebx <== NOT EXECUTED 110f92: 5e pop %esi <== NOT EXECUTED 110f93: 5f pop %edi <== NOT EXECUTED 110f94: c9 leave <== NOT EXECUTED 110f95: c3 ret <== NOT EXECUTED 110f96: 66 90 xchg %ax,%ax <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); 110f98: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 110f9b: 2b 45 d0 sub -0x30(%ebp),%eax <== NOT EXECUTED 110f9e: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED 110fa1: 39 c2 cmp %eax,%edx <== NOT EXECUTED 110fa3: 76 03 jbe 110fa8 <== NOT EXECUTED 110fa5: 89 45 cc mov %eax,-0x34(%ebp) <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 110fa8: 8b 73 08 mov 0x8(%ebx),%esi <== NOT EXECUTED 110fab: 8b 43 04 mov 0x4(%ebx),%eax <== NOT EXECUTED 110fae: 29 f0 sub %esi,%eax <== NOT EXECUTED if (chunk > chunk1) { 110fb0: 39 45 cc cmp %eax,-0x34(%ebp) <== NOT EXECUTED 110fb3: 7f 71 jg 111026 <== 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); 110fb5: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 110fb8: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED 110fbb: 03 33 add (%ebx),%esi <== NOT EXECUTED 110fbd: 89 c7 mov %eax,%edi <== NOT EXECUTED 110fbf: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 110fc2: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED pipe->Start += chunk; 110fc4: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 110fc7: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED pipe->Start %= pipe->Size; 110fca: 31 d2 xor %edx,%edx <== NOT EXECUTED 110fcc: f7 73 04 divl 0x4(%ebx) <== NOT EXECUTED 110fcf: 89 53 08 mov %edx,0x8(%ebx) <== NOT EXECUTED pipe->Length -= chunk; 110fd2: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED 110fd5: 2b 45 cc sub -0x34(%ebp),%eax <== NOT EXECUTED 110fd8: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 110fdb: 85 c0 test %eax,%eax <== NOT EXECUTED 110fdd: 75 07 jne 110fe6 <== NOT EXECUTED pipe->Start = 0; 110fdf: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) <== NOT EXECUTED if (pipe->waitingWriters > 0) 110fe6: 8b 43 1c mov 0x1c(%ebx),%eax <== NOT EXECUTED 110fe9: 85 c0 test %eax,%eax <== NOT EXECUTED 110feb: 75 5f jne 11104c <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; 110fed: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 110ff0: 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) { 110ff3: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 110ff6: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED 110ff9: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 110ffc: 39 45 d4 cmp %eax,-0x2c(%ebp) <== NOT EXECUTED 110fff: 0f 82 e7 fe ff ff jb 110eec <== NOT EXECUTED 111005: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 111008: 31 f6 xor %esi,%esi <== NOT EXECUTED 11100a: e9 45 ff ff ff jmp 110f54 <== NOT EXECUTED 11100f: 90 nop <== NOT EXECUTED while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) goto out_locked; if (LIBIO_NODELAY(iop)) { 111010: be f5 ff ff ff mov $0xfffffff5,%esi <== NOT EXECUTED 111015: e9 3a ff ff ff jmp 110f54 <== NOT EXECUTED 11101a: 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)) { 11101c: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED 111021: e9 3c ff ff ff jmp 110f62 <== 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); 111026: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 111029: 03 55 d0 add -0x30(%ebp),%edx <== NOT EXECUTED 11102c: 03 33 add (%ebx),%esi <== NOT EXECUTED 11102e: 89 d7 mov %edx,%edi <== NOT EXECUTED 111030: 89 c1 mov %eax,%ecx <== NOT EXECUTED 111032: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 111034: 8b 55 d0 mov -0x30(%ebp),%edx <== NOT EXECUTED 111037: 01 c2 add %eax,%edx <== NOT EXECUTED 111039: 03 55 0c add 0xc(%ebp),%edx <== NOT EXECUTED 11103c: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 11103f: 29 c1 sub %eax,%ecx <== NOT EXECUTED 111041: 8b 33 mov (%ebx),%esi <== NOT EXECUTED 111043: 89 d7 mov %edx,%edi <== NOT EXECUTED 111045: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED 111047: e9 78 ff ff ff jmp 110fc4 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); 11104c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11104f: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 111052: 50 push %eax <== NOT EXECUTED 111053: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 111056: e8 29 09 00 00 call 111984 <== NOT EXECUTED 11105b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11105e: eb 8d jmp 110fed <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { 111060: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) <== NOT EXECUTED 111067: 31 f6 xor %esi,%esi 111069: e9 e6 fe ff ff jmp 110f54 <== NOT EXECUTED 00111070 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 111070: 55 push %ebp <== NOT EXECUTED 111071: 89 e5 mov %esp,%ebp <== NOT EXECUTED 111073: 57 push %edi <== NOT EXECUTED 111074: 56 push %esi <== NOT EXECUTED 111075: 53 push %ebx <== NOT EXECUTED 111076: 83 ec 20 sub $0x20,%esp <== NOT EXECUTED 111079: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED pipe_control_t *pipe = *pipep; 11107c: 8b 1f mov (%edi),%ebx <== NOT EXECUTED uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 11107e: 6a 00 push $0x0 <== NOT EXECUTED 111080: 6a 00 push $0x0 <== NOT EXECUTED 111082: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111085: e8 16 a5 ff ff call 10b5a0 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 11108a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11108d: 85 c0 test %eax,%eax <== NOT EXECUTED 11108f: 0f 85 e3 00 00 00 jne 111178 <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 111095: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 111098: 8b 40 14 mov 0x14(%eax),%eax <== NOT EXECUTED 11109b: 89 c6 mov %eax,%esi <== NOT EXECUTED 11109d: 83 e6 06 and $0x6,%esi <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) 1110a0: a8 02 test $0x2,%al <== NOT EXECUTED 1110a2: 74 03 je 1110a7 <== NOT EXECUTED pipe->Readers --; 1110a4: ff 4b 10 decl 0x10(%ebx) <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 1110a7: f7 c6 04 00 00 00 test $0x4,%esi <== NOT EXECUTED 1110ad: 75 69 jne 111118 <== NOT EXECUTED pipe->Writers --; sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 1110af: 51 push %ecx <== NOT EXECUTED 1110b0: 6a 00 push $0x0 <== NOT EXECUTED 1110b2: 6a 00 push $0x0 <== NOT EXECUTED 1110b4: ff 35 8c 4f 12 00 pushl 0x124f8c <== NOT EXECUTED 1110ba: e8 e1 a4 ff ff call 10b5a0 <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) 1110bf: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1110c2: 85 c0 test %eax,%eax <== NOT EXECUTED 1110c4: 0f 85 ae 00 00 00 jne 111178 <== NOT EXECUTED rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); 1110ca: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1110cd: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 1110d0: e8 c7 a5 ff ff call 10b69c <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 1110d5: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1110d8: 8b 53 10 mov 0x10(%ebx),%edx <== NOT EXECUTED 1110db: 85 d2 test %edx,%edx <== NOT EXECUTED 1110dd: 74 41 je 111120 <== 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) 1110df: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 1110e2: 85 c0 test %eax,%eax <== NOT EXECUTED 1110e4: 75 17 jne 1110fd <== NOT EXECUTED 1110e6: 83 fe 02 cmp $0x2,%esi <== NOT EXECUTED 1110e9: 74 12 je 1110fd <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 1110eb: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1110ee: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 1110f1: 50 push %eax <== NOT EXECUTED 1110f2: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 1110f5: e8 8a 08 00 00 call 111984 <== NOT EXECUTED 1110fa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 1110fd: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111100: ff 35 8c 4f 12 00 pushl 0x124f8c <== NOT EXECUTED 111106: e8 91 a5 ff ff call 10b69c <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 11110b: 31 c0 xor %eax,%eax <== NOT EXECUTED 11110d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 111110: 5b pop %ebx <== NOT EXECUTED 111111: 5e pop %esi <== NOT EXECUTED 111112: 5f pop %edi <== NOT EXECUTED 111113: c9 leave <== NOT EXECUTED 111114: c3 ret <== NOT EXECUTED 111115: 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 --; 111118: ff 4b 14 decl 0x14(%ebx) <== NOT EXECUTED 11111b: eb 92 jmp 1110af <== NOT EXECUTED 11111d: 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) { 111120: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 111123: 85 c0 test %eax,%eax <== NOT EXECUTED 111125: 74 19 je 111140 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 111127: 83 fe 04 cmp $0x4,%esi <== NOT EXECUTED 11112a: 74 d1 je 1110fd <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 11112c: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 11112f: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 111132: 50 push %eax <== NOT EXECUTED 111133: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 111136: e8 49 08 00 00 call 111984 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 11113b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11113e: eb bd jmp 1110fd <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 111140: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 111143: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 111146: e8 d1 07 00 00 call 11191c <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 11114b: 5e pop %esi <== NOT EXECUTED 11114c: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 11114f: e8 c8 07 00 00 call 11191c <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 111154: 59 pop %ecx <== NOT EXECUTED 111155: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 111158: e8 9f a3 ff ff call 10b4fc <== NOT EXECUTED free(pipe->Buffer); 11115d: 5a pop %edx <== NOT EXECUTED 11115e: ff 33 pushl (%ebx) <== NOT EXECUTED 111160: e8 b7 6e ff ff call 10801c <== NOT EXECUTED free(pipe); 111165: 89 1c 24 mov %ebx,(%esp) <== NOT EXECUTED 111168: e8 af 6e ff ff call 10801c <== NOT EXECUTED /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; 11116d: 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) { 111173: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 111176: eb 85 jmp 1110fd <== 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); 111178: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11117b: 50 push %eax <== NOT EXECUTED 11117c: e8 57 aa ff ff call 10bbd8 <== NOT EXECUTED 00110ccc : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 110ccc: 55 push %ebp <== NOT EXECUTED 110ccd: 89 e5 mov %esp,%ebp <== NOT EXECUTED 110ccf: 57 push %edi <== NOT EXECUTED 110cd0: 56 push %esi <== NOT EXECUTED 110cd1: 53 push %ebx <== NOT EXECUTED 110cd2: 83 ec 2c sub $0x2c,%esp <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 110cd5: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED 110cd8: 85 f6 test %esi,%esi <== NOT EXECUTED 110cda: 75 0c jne 110ce8 <== NOT EXECUTED 110cdc: 31 db xor %ebx,%ebx <== NOT EXECUTED #endif if (written > 0) return written; return ret; } 110cde: 89 d8 mov %ebx,%eax <== NOT EXECUTED 110ce0: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 110ce3: 5b pop %ebx <== NOT EXECUTED 110ce4: 5e pop %esi <== NOT EXECUTED 110ce5: 5f pop %edi <== NOT EXECUTED 110ce6: c9 leave <== NOT EXECUTED 110ce7: c3 ret <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) 110ce8: 53 push %ebx <== NOT EXECUTED 110ce9: 6a 00 push $0x0 <== NOT EXECUTED 110ceb: 6a 00 push $0x0 <== NOT EXECUTED 110ced: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 110cf0: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED 110cf3: e8 a8 a8 ff ff call 10b5a0 <== NOT EXECUTED 110cf8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110cfb: 85 c0 test %eax,%eax <== NOT EXECUTED 110cfd: 0f 85 1d 01 00 00 jne 110e20 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 110d03: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 110d06: 8b 48 10 mov 0x10(%eax),%ecx <== NOT EXECUTED 110d09: 85 c9 test %ecx,%ecx <== NOT EXECUTED 110d0b: 0f 84 4b 01 00 00 je 110e5c <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; 110d11: 8b 48 04 mov 0x4(%eax),%ecx <== NOT EXECUTED 110d14: 39 4d 10 cmp %ecx,0x10(%ebp) <== NOT EXECUTED 110d17: 0f 87 35 01 00 00 ja 110e52 <== NOT EXECUTED 110d1d: 8b 7d 10 mov 0x10(%ebp),%edi <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 110d20: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) <== NOT EXECUTED 110d27: 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); 110d29: 89 5d d4 mov %ebx,-0x2c(%ebp) <== NOT EXECUTED 110d2c: 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) { 110d2f: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED 110d32: 89 ca mov %ecx,%edx <== NOT EXECUTED 110d34: 29 c2 sub %eax,%edx <== NOT EXECUTED 110d36: 39 fa cmp %edi,%edx <== NOT EXECUTED 110d38: 73 6f jae 110da9 <== NOT EXECUTED if (LIBIO_NODELAY(iop)) { 110d3a: 8b 45 14 mov 0x14(%ebp),%eax <== NOT EXECUTED 110d3d: f6 40 14 01 testb $0x1,0x14(%eax) <== NOT EXECUTED 110d41: 0f 85 28 01 00 00 jne 110e6f <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; 110d47: ff 43 1c incl 0x1c(%ebx) <== NOT EXECUTED PIPE_UNLOCK(pipe); 110d4a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110d4d: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110d50: e8 47 a9 ff ff call 10b69c <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 110d55: 58 pop %eax <== NOT EXECUTED 110d56: 5a pop %edx <== NOT EXECUTED 110d57: 6a 00 push $0x0 <== NOT EXECUTED 110d59: ff 73 30 pushl 0x30(%ebx) <== NOT EXECUTED 110d5c: e8 87 0c 00 00 call 1119e8 <== NOT EXECUTED 110d61: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 110d64: 83 f8 01 cmp $0x1,%eax <== NOT EXECUTED 110d67: 19 f6 sbb %esi,%esi <== NOT EXECUTED 110d69: f7 d6 not %esi <== NOT EXECUTED 110d6b: 83 e6 fc and $0xfffffffc,%esi <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 110d6e: 6a 00 push $0x0 <== NOT EXECUTED 110d70: 6a 00 push $0x0 <== NOT EXECUTED 110d72: ff 73 28 pushl 0x28(%ebx) <== NOT EXECUTED 110d75: e8 26 a8 ff ff call 10b5a0 <== NOT EXECUTED 110d7a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110d7d: 85 c0 test %eax,%eax <== NOT EXECUTED 110d7f: 0f 85 e0 00 00 00 jne 110e65 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 110d85: ff 4b 1c decl 0x1c(%ebx) <== NOT EXECUTED if (ret != 0) 110d88: 85 f6 test %esi,%esi <== NOT EXECUTED 110d8a: 0f 85 e9 00 00 00 jne 110e79 <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 110d90: 8b 73 10 mov 0x10(%ebx),%esi <== NOT EXECUTED 110d93: 85 f6 test %esi,%esi <== NOT EXECUTED 110d95: 0f 84 8f 00 00 00 je 110e2a <== NOT EXECUTED 110d9b: 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) { 110d9e: 8b 43 0c mov 0xc(%ebx),%eax <== NOT EXECUTED 110da1: 89 ca mov %ecx,%edx <== NOT EXECUTED 110da3: 29 c2 sub %eax,%edx <== NOT EXECUTED 110da5: 39 fa cmp %edi,%edx <== NOT EXECUTED 110da7: 72 91 jb 110d3a <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 110da9: 8b 75 10 mov 0x10(%ebp),%esi <== NOT EXECUTED 110dac: 2b 75 d0 sub -0x30(%ebp),%esi <== NOT EXECUTED 110daf: 89 55 cc mov %edx,-0x34(%ebp) <== NOT EXECUTED 110db2: 39 f2 cmp %esi,%edx <== NOT EXECUTED 110db4: 76 03 jbe 110db9 <== NOT EXECUTED 110db6: 89 75 cc mov %esi,-0x34(%ebp) <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 110db9: 03 43 08 add 0x8(%ebx),%eax <== NOT EXECUTED 110dbc: 31 d2 xor %edx,%edx <== NOT EXECUTED 110dbe: f7 f1 div %ecx <== NOT EXECUTED 110dc0: 89 c8 mov %ecx,%eax <== NOT EXECUTED 110dc2: 29 d0 sub %edx,%eax <== NOT EXECUTED if (chunk > chunk1) { 110dc4: 39 45 cc cmp %eax,-0x34(%ebp) <== NOT EXECUTED 110dc7: 0f 8e b1 00 00 00 jle 110e7e <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 110dcd: 03 13 add (%ebx),%edx <== NOT EXECUTED 110dcf: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 110dd2: 03 75 d0 add -0x30(%ebp),%esi <== NOT EXECUTED 110dd5: 89 d7 mov %edx,%edi <== NOT EXECUTED 110dd7: 89 c1 mov %eax,%ecx <== NOT EXECUTED 110dd9: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 110ddb: 8b 13 mov (%ebx),%edx <== NOT EXECUTED 110ddd: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 110de0: 29 c1 sub %eax,%ecx <== NOT EXECUTED 110de2: 03 45 d0 add -0x30(%ebp),%eax <== NOT EXECUTED 110de5: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 110de8: 01 c6 add %eax,%esi <== NOT EXECUTED 110dea: 89 d7 mov %edx,%edi <== NOT EXECUTED 110dec: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; 110dee: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 110df1: 01 43 0c add %eax,0xc(%ebx) <== NOT EXECUTED if (pipe->waitingReaders > 0) 110df4: 83 7b 18 00 cmpl $0x0,0x18(%ebx) <== NOT EXECUTED 110df8: 0f 85 94 00 00 00 jne 110e92 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); written += chunk; 110dfe: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 110e01: 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) { 110e04: 8b 45 d4 mov -0x2c(%ebp),%eax <== NOT EXECUTED 110e07: 89 45 d0 mov %eax,-0x30(%ebp) <== NOT EXECUTED 110e0a: 39 45 10 cmp %eax,0x10(%ebp) <== NOT EXECUTED 110e0d: 0f 86 95 00 00 00 jbe 110ea8 <== NOT EXECUTED 110e13: 8b 4b 04 mov 0x4(%ebx),%ecx <== NOT EXECUTED 110e16: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED 110e1b: e9 0f ff ff ff jmp 110d2f <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) 110e20: bb fc ff ff ff mov $0xfffffffc,%ebx <== NOT EXECUTED 110e25: e9 b4 fe ff ff jmp 110cde <== NOT EXECUTED 110e2a: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 110e2d: 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); 110e32: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110e35: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 110e38: ff 70 28 pushl 0x28(%eax) <== NOT EXECUTED 110e3b: e8 5c a8 ff ff call 10b69c <== NOT EXECUTED 110e40: 83 c4 10 add $0x10,%esp <== NOT EXECUTED /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); #endif if (written > 0) 110e43: 85 db test %ebx,%ebx <== NOT EXECUTED 110e45: 0f 8f 93 fe ff ff jg 110cde <== NOT EXECUTED 110e4b: 89 f3 mov %esi,%ebx <== NOT EXECUTED 110e4d: e9 8c fe ff ff jmp 110cde <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 110e52: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED 110e57: e9 c4 fe ff ff jmp 110d20 <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { 110e5c: be e0 ff ff ff mov $0xffffffe0,%esi <== NOT EXECUTED 110e61: 31 db xor %ebx,%ebx <== NOT EXECUTED 110e63: eb cd jmp 110e32 <== NOT EXECUTED 110e65: 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)) { 110e68: be fc ff ff ff mov $0xfffffffc,%esi <== NOT EXECUTED 110e6d: eb d4 jmp 110e43 <== NOT EXECUTED 110e6f: 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)) { 110e72: be f5 ff ff ff mov $0xfffffff5,%esi <== NOT EXECUTED 110e77: eb b9 jmp 110e32 <== NOT EXECUTED 110e79: 8b 5d d4 mov -0x2c(%ebp),%ebx <== NOT EXECUTED 110e7c: eb b4 jmp 110e32 <== 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); 110e7e: 03 13 add (%ebx),%edx <== NOT EXECUTED 110e80: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 110e83: 03 75 d0 add -0x30(%ebp),%esi <== NOT EXECUTED 110e86: 89 d7 mov %edx,%edi <== NOT EXECUTED 110e88: 8b 4d cc mov -0x34(%ebp),%ecx <== NOT EXECUTED 110e8b: f3 a4 rep movsb %ds:(%esi),%es:(%edi) <== NOT EXECUTED 110e8d: e9 5c ff ff ff jmp 110dee <== NOT EXECUTED pipe->Length += chunk; if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); 110e92: 51 push %ecx <== NOT EXECUTED 110e93: 51 push %ecx <== NOT EXECUTED 110e94: 8d 45 e4 lea -0x1c(%ebp),%eax <== NOT EXECUTED 110e97: 50 push %eax <== NOT EXECUTED 110e98: ff 73 2c pushl 0x2c(%ebx) <== NOT EXECUTED 110e9b: e8 e4 0a 00 00 call 111984 <== NOT EXECUTED 110ea0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 110ea3: e9 56 ff ff ff jmp 110dfe <== NOT EXECUTED 110ea8: 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) { 110eaa: 31 f6 xor %esi,%esi 110eac: eb 84 jmp 110e32 <== NOT EXECUTED 0010b6b4 : int posix_memalign( void **pointer, size_t alignment, size_t size ) { 10b6b4: 55 push %ebp 10b6b5: 89 e5 mov %esp,%ebp 10b6b7: 53 push %ebx 10b6b8: 83 ec 04 sub $0x4,%esp 10b6bb: 8b 45 0c mov 0xc(%ebp),%eax /* * Update call statistics */ MSBUMP(memalign_calls, 1); 10b6be: ff 05 08 c9 12 00 incl 0x12c908 if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *))) 10b6c4: 8d 50 ff lea -0x1(%eax),%edx 10b6c7: 85 c2 test %eax,%edx 10b6c9: 75 05 jne 10b6d0 10b6cb: 83 f8 03 cmp $0x3,%eax 10b6ce: 77 0c ja 10b6dc /* * rtems_memalign does all of the error checking work EXCEPT * for adding restrictionso on the alignment. */ return rtems_memalign( pointer, alignment, size ); } 10b6d0: b8 16 00 00 00 mov $0x16,%eax 10b6d5: 5a pop %edx 10b6d6: 5b pop %ebx 10b6d7: c9 leave 10b6d8: c3 ret 10b6d9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10b6dc: 59 pop %ecx 10b6dd: 5b pop %ebx 10b6de: c9 leave /* * rtems_memalign does all of the error checking work EXCEPT * for adding restrictionso on the alignment. */ return rtems_memalign( pointer, alignment, size ); 10b6df: e9 20 01 00 00 jmp 10b804 0011d8c0 : ssize_t read( int fd, void *buffer, size_t count ) { 11d8c0: 55 push %ebp 11d8c1: 89 e5 mov %esp,%ebp 11d8c3: 53 push %ebx 11d8c4: 83 ec 04 sub $0x4,%esp 11d8c7: 8b 5d 08 mov 0x8(%ebp),%ebx 11d8ca: 8b 45 0c mov 0xc(%ebp),%eax 11d8cd: 8b 55 10 mov 0x10(%ebp),%edx ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 11d8d0: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx 11d8d6: 73 50 jae 11d928 iop = rtems_libio_iop( fd ); 11d8d8: c1 e3 06 shl $0x6,%ebx 11d8db: 03 1d c0 51 12 00 add 0x1251c0,%ebx rtems_libio_check_is_open( iop ); 11d8e1: 8b 4b 14 mov 0x14(%ebx),%ecx 11d8e4: f6 c5 01 test $0x1,%ch 11d8e7: 74 3f je 11d928 rtems_libio_check_buffer( buffer ); 11d8e9: 85 c0 test %eax,%eax 11d8eb: 74 4f je 11d93c rtems_libio_check_count( count ); 11d8ed: 85 d2 test %edx,%edx 11d8ef: 74 2f je 11d920 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 11d8f1: 83 e1 02 and $0x2,%ecx 11d8f4: 74 46 je 11d93c /* * Now process the read(). */ if ( !iop->handlers->read_h ) 11d8f6: 8b 4b 3c mov 0x3c(%ebx),%ecx 11d8f9: 8b 49 08 mov 0x8(%ecx),%ecx 11d8fc: 85 c9 test %ecx,%ecx 11d8fe: 74 4e je 11d94e rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); 11d900: 83 ec 04 sub $0x4,%esp 11d903: 52 push %edx 11d904: 50 push %eax 11d905: 53 push %ebx 11d906: ff d1 call *%ecx if ( rc > 0 ) 11d908: 83 c4 10 add $0x10,%esp 11d90b: 85 c0 test %eax,%eax 11d90d: 7e 0b jle 11d91a iop->offset += rc; 11d90f: 89 c1 mov %eax,%ecx 11d911: c1 f9 1f sar $0x1f,%ecx 11d914: 01 43 0c add %eax,0xc(%ebx) 11d917: 11 4b 10 adc %ecx,0x10(%ebx) return rc; } 11d91a: 8b 5d fc mov -0x4(%ebp),%ebx 11d91d: c9 leave 11d91e: c3 ret 11d91f: 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 ); 11d920: 31 c0 xor %eax,%eax <== NOT EXECUTED if ( rc > 0 ) iop->offset += rc; return rc; } 11d922: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 11d925: c9 leave <== NOT EXECUTED 11d926: c3 ret <== NOT EXECUTED 11d927: 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 ); 11d928: e8 cb 4a ff ff call 1123f8 <__errno> 11d92d: c7 00 09 00 00 00 movl $0x9,(%eax) 11d933: b8 ff ff ff ff mov $0xffffffff,%eax 11d938: eb e0 jmp 11d91a 11d93a: 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 ); 11d93c: e8 b7 4a ff ff call 1123f8 <__errno> <== NOT EXECUTED 11d941: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 11d947: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11d94c: eb cc jmp 11d91a <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 11d94e: e8 a5 4a ff ff call 1123f8 <__errno> <== NOT EXECUTED 11d953: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11d959: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11d95e: eb ba jmp 11d91a <== NOT EXECUTED 0012c774 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 12c774: 55 push %ebp 12c775: 89 e5 mov %esp,%ebp 12c777: 57 push %edi 12c778: 56 push %esi 12c779: 53 push %ebx 12c77a: 83 ec 2c sub $0x2c,%esp 12c77d: 8b 55 08 mov 0x8(%ebp),%edx 12c780: 8b 5d 0c mov 0xc(%ebp),%ebx rtems_filesystem_location_info_t loc; int result; if (!buf) 12c783: 85 db test %ebx,%ebx 12c785: 0f 84 ad 00 00 00 je 12c838 rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 12c78b: 31 c0 xor %eax,%eax 12c78d: b9 ff ff ff ff mov $0xffffffff,%ecx 12c792: 89 d7 mov %edx,%edi 12c794: f2 ae repnz scas %es:(%edi),%al 12c796: f7 d1 not %ecx 12c798: 49 dec %ecx 12c799: 83 ec 0c sub $0xc,%esp 12c79c: 6a 00 push $0x0 12c79e: 8d 75 d4 lea -0x2c(%ebp),%esi 12c7a1: 56 push %esi 12c7a2: 6a 00 push $0x0 12c7a4: 51 push %ecx 12c7a5: 52 push %edx 12c7a6: e8 01 06 fe ff call 10cdac 0, &loc, false ); if ( result != 0 ) 12c7ab: 83 c4 20 add $0x20,%esp 12c7ae: 85 c0 test %eax,%eax 12c7b0: 75 76 jne 12c828 return -1; if ( !loc.ops->node_type_h ){ 12c7b2: 8b 55 e0 mov -0x20(%ebp),%edx 12c7b5: 8b 42 10 mov 0x10(%edx),%eax 12c7b8: 85 c0 test %eax,%eax 12c7ba: 74 4e je 12c80a rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ 12c7bc: 83 ec 0c sub $0xc,%esp 12c7bf: 56 push %esi 12c7c0: ff d0 call *%eax 12c7c2: 83 c4 10 add $0x10,%esp 12c7c5: 83 f8 04 cmp $0x4,%eax 12c7c8: 0f 85 86 00 00 00 jne 12c854 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ 12c7ce: 8b 55 e0 mov -0x20(%ebp),%edx 12c7d1: 8b 42 3c mov 0x3c(%edx),%eax 12c7d4: 85 c0 test %eax,%eax 12c7d6: 0f 84 a1 00 00 00 je 12c87d rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 12c7dc: 52 push %edx 12c7dd: ff 75 10 pushl 0x10(%ebp) 12c7e0: 53 push %ebx 12c7e1: 56 push %esi 12c7e2: ff d0 call *%eax 12c7e4: 89 c3 mov %eax,%ebx rtems_filesystem_freenode( &loc ); 12c7e6: 8b 45 e0 mov -0x20(%ebp),%eax 12c7e9: 83 c4 10 add $0x10,%esp 12c7ec: 85 c0 test %eax,%eax 12c7ee: 74 10 je 12c800 12c7f0: 8b 40 1c mov 0x1c(%eax),%eax 12c7f3: 85 c0 test %eax,%eax 12c7f5: 74 09 je 12c800 12c7f7: 83 ec 0c sub $0xc,%esp 12c7fa: 56 push %esi 12c7fb: ff d0 call *%eax 12c7fd: 83 c4 10 add $0x10,%esp return result; } 12c800: 89 d8 mov %ebx,%eax 12c802: 8d 65 f4 lea -0xc(%ebp),%esp 12c805: 5b pop %ebx 12c806: 5e pop %esi 12c807: 5f pop %edi 12c808: c9 leave 12c809: c3 ret 0, &loc, false ); if ( result != 0 ) return -1; if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 12c80a: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12c80d: 85 c0 test %eax,%eax <== NOT EXECUTED 12c80f: 74 09 je 12c81a <== NOT EXECUTED 12c811: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c814: 56 push %esi <== NOT EXECUTED 12c815: ff d0 call *%eax <== NOT EXECUTED 12c817: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12c81a: e8 1d 4c 01 00 call 14143c <__errno> <== NOT EXECUTED 12c81f: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c825: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 12c828: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 12c82d: 89 d8 mov %ebx,%eax <== NOT EXECUTED 12c82f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c832: 5b pop %ebx <== NOT EXECUTED 12c833: 5e pop %esi <== NOT EXECUTED 12c834: 5f pop %edi <== NOT EXECUTED 12c835: c9 leave <== NOT EXECUTED 12c836: c3 ret <== NOT EXECUTED 12c837: 90 nop <== NOT EXECUTED { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 12c838: e8 ff 4b 01 00 call 14143c <__errno> <== NOT EXECUTED 12c83d: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 12c843: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); return result; } 12c848: 89 d8 mov %ebx,%eax <== NOT EXECUTED 12c84a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c84d: 5b pop %ebx <== NOT EXECUTED 12c84e: 5e pop %esi <== NOT EXECUTED 12c84f: 5f pop %edi <== NOT EXECUTED 12c850: c9 leave <== NOT EXECUTED 12c851: c3 ret <== NOT EXECUTED 12c852: 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 ); 12c854: 8b 45 e0 mov -0x20(%ebp),%eax 12c857: 85 c0 test %eax,%eax 12c859: 74 10 je 12c86b 12c85b: 8b 40 1c mov 0x1c(%eax),%eax 12c85e: 85 c0 test %eax,%eax 12c860: 74 09 je 12c86b 12c862: 83 ec 0c sub $0xc,%esp 12c865: 56 push %esi 12c866: ff d0 call *%eax 12c868: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( EINVAL ); 12c86b: e8 cc 4b 01 00 call 14143c <__errno> 12c870: c7 00 16 00 00 00 movl $0x16,(%eax) 12c876: bb ff ff ff ff mov $0xffffffff,%ebx 12c87b: eb 83 jmp 12c800 } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); 12c87d: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12c880: 85 c0 test %eax,%eax <== NOT EXECUTED 12c882: 74 09 je 12c88d <== NOT EXECUTED 12c884: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c887: 56 push %esi <== NOT EXECUTED 12c888: ff d0 call *%eax <== NOT EXECUTED 12c88a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12c88d: e8 aa 4b 01 00 call 14143c <__errno> <== NOT EXECUTED 12c892: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c898: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 12c89d: e9 5e ff ff ff jmp 12c800 <== NOT EXECUTED 00109ddc : ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 109ddc: 55 push %ebp 109ddd: 89 e5 mov %esp,%ebp 109ddf: 57 push %edi 109de0: 56 push %esi 109de1: 53 push %ebx 109de2: 83 ec 1c sub $0x1c,%esp 109de5: 8b 7d 08 mov 0x8(%ebp),%edi 109de8: 8b 5d 0c mov 0xc(%ebp),%ebx int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 109deb: 3b 3d cc 5c 12 00 cmp 0x125ccc,%edi 109df1: 0f 83 e2 00 00 00 jae 109ed9 iop = rtems_libio_iop( fd ); 109df7: c1 e7 06 shl $0x6,%edi 109dfa: 03 3d 40 a5 12 00 add 0x12a540,%edi rtems_libio_check_is_open( iop ); 109e00: 8b 47 14 mov 0x14(%edi),%eax 109e03: f6 c4 01 test $0x1,%ah 109e06: 0f 84 cd 00 00 00 je 109ed9 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 109e0c: a8 02 test $0x2,%al 109e0e: 0f 84 a8 00 00 00 je 109ebc /* * Argument validation on IO vector */ if ( !iov ) 109e14: 85 db test %ebx,%ebx 109e16: 0f 84 a0 00 00 00 je 109ebc rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 109e1c: 8b 75 10 mov 0x10(%ebp),%esi 109e1f: 85 f6 test %esi,%esi 109e21: 0f 8e 95 00 00 00 jle 109ebc rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 109e27: 81 7d 10 00 04 00 00 cmpl $0x400,0x10(%ebp) 109e2e: 0f 8f 88 00 00 00 jg 109ebc rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) 109e34: 8b 47 3c mov 0x3c(%edi),%eax 109e37: 8b 40 08 mov 0x8(%eax),%eax 109e3a: 89 45 e0 mov %eax,-0x20(%ebp) 109e3d: 85 c0 test %eax,%eax 109e3f: 0f 84 a8 00 00 00 je 109eed rtems_set_errno_and_return_minus_one( ENOTSUP ); 109e45: 31 d2 xor %edx,%edx 109e47: 31 c0 xor %eax,%eax 109e49: 8b 75 10 mov 0x10(%ebp),%esi 109e4c: eb 04 jmp 109e52 109e4e: 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++ ) { 109e50: 89 ca mov %ecx,%edx ssize_t old; if ( !iov[v].iov_base ) 109e52: 8b 0c c3 mov (%ebx,%eax,8),%ecx 109e55: 85 c9 test %ecx,%ecx 109e57: 74 63 je 109ebc rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 109e59: 8b 4c c3 04 mov 0x4(%ebx,%eax,8),%ecx 109e5d: 85 c9 test %ecx,%ecx 109e5f: 74 5b je 109ebc rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; 109e61: 8d 0c 0a lea (%edx,%ecx,1),%ecx if ( total < old ) 109e64: 39 ca cmp %ecx,%edx 109e66: 7f 54 jg 109ebc * 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++ ) { 109e68: 40 inc %eax 109e69: 39 c6 cmp %eax,%esi 109e6b: 7f e3 jg 109e50 109e6d: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 109e74: 31 f6 xor %esi,%esi 109e76: 8b 45 e0 mov -0x20(%ebp),%eax 109e79: eb 23 jmp 109e9e 109e7b: 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 ) { 109e7c: 74 0e je 109e8c iop->offset += bytes; 109e7e: 89 c1 mov %eax,%ecx <== NOT EXECUTED 109e80: c1 f9 1f sar $0x1f,%ecx <== NOT EXECUTED 109e83: 01 47 0c add %eax,0xc(%edi) <== NOT EXECUTED 109e86: 11 4f 10 adc %ecx,0x10(%edi) <== NOT EXECUTED total += bytes; 109e89: 01 45 e4 add %eax,-0x1c(%ebp) <== NOT EXECUTED } if (bytes != iov[ v ].iov_len) 109e8c: 3b 44 f3 04 cmp 0x4(%ebx,%esi,8),%eax 109e90: 75 3c jne 109ece } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 109e92: 46 inc %esi <== NOT EXECUTED 109e93: 39 75 10 cmp %esi,0x10(%ebp) <== NOT EXECUTED 109e96: 7e 36 jle 109ece <== NOT EXECUTED 109e98: 8b 47 3c mov 0x3c(%edi),%eax <== NOT EXECUTED 109e9b: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); 109e9e: 52 push %edx 109e9f: ff 74 f3 04 pushl 0x4(%ebx,%esi,8) 109ea3: ff 34 f3 pushl (%ebx,%esi,8) 109ea6: 57 push %edi 109ea7: ff d0 call *%eax if ( bytes < 0 ) 109ea9: 83 c4 10 add $0x10,%esp 109eac: 83 f8 00 cmp $0x0,%eax 109eaf: 7d cb jge 109e7c } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 109eb1: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp) <== NOT EXECUTED 109eb8: eb 14 jmp 109ece <== NOT EXECUTED 109eba: 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 ); 109ebc: e8 37 a8 00 00 call 1146f8 <__errno> 109ec1: c7 00 16 00 00 00 movl $0x16,(%eax) 109ec7: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp) if (bytes != iov[ v ].iov_len) break; } return total; } 109ece: 8b 45 e4 mov -0x1c(%ebp),%eax 109ed1: 8d 65 f4 lea -0xc(%ebp),%esp 109ed4: 5b pop %ebx 109ed5: 5e pop %esi 109ed6: 5f pop %edi 109ed7: c9 leave 109ed8: 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 ); 109ed9: e8 1a a8 00 00 call 1146f8 <__errno> <== NOT EXECUTED 109ede: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 109ee4: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp) <== NOT EXECUTED 109eeb: eb e1 jmp 109ece <== 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 ); 109eed: e8 06 a8 00 00 call 1146f8 <__errno> <== NOT EXECUTED 109ef2: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 109ef8: c7 45 e4 ff ff ff ff movl $0xffffffff,-0x1c(%ebp) <== NOT EXECUTED 109eff: eb cd jmp 109ece <== NOT EXECUTED 0011d9e0 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 11d9e0: 55 push %ebp 11d9e1: 89 e5 mov %esp,%ebp 11d9e3: 57 push %edi 11d9e4: 56 push %esi 11d9e5: 53 push %ebx 11d9e6: 83 ec 2c sub $0x2c,%esp 11d9e9: 8b 5d 08 mov 0x8(%ebp),%ebx 11d9ec: 8b 75 0c mov 0xc(%ebp),%esi 11d9ef: ff 05 f0 51 12 00 incl 0x1251f0 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 11d9f5: 83 3d 20 55 12 00 03 cmpl $0x3,0x125520 11d9fc: 74 72 je 11da70 } /* * Continue with realloc(). */ if ( !ptr ) 11d9fe: 85 db test %ebx,%ebx 11da00: 74 5e je 11da60 return malloc( size ); if ( !size ) { 11da02: 85 f6 test %esi,%esi 11da04: 74 3a je 11da40 free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 11da06: 52 push %edx 11da07: 8d 45 e4 lea -0x1c(%ebp),%eax 11da0a: 50 push %eax 11da0b: 53 push %ebx 11da0c: ff 35 58 11 12 00 pushl 0x121158 11da12: e8 59 01 00 00 call 11db70 <_Protected_heap_Get_block_size> 11da17: 83 c4 10 add $0x10,%esp 11da1a: 84 c0 test %al,%al 11da1c: 74 32 je 11da50 #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 ) ) { 11da1e: 50 push %eax 11da1f: 56 push %esi 11da20: 53 push %ebx 11da21: ff 35 58 11 12 00 pushl 0x121158 11da27: e8 7c 01 00 00 call 11dba8 <_Protected_heap_Resize_block> 11da2c: 83 c4 10 add $0x10,%esp 11da2f: 84 c0 test %al,%al 11da31: 74 5d je 11da90 memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 11da33: 89 d8 mov %ebx,%eax 11da35: 8d 65 f4 lea -0xc(%ebp),%esp 11da38: 5b pop %ebx 11da39: 5e pop %esi 11da3a: 5f pop %edi 11da3b: c9 leave 11da3c: c3 ret 11da3d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED */ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr ); 11da40: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11da43: 53 push %ebx <== NOT EXECUTED 11da44: e8 d3 a5 fe ff call 10801c <== NOT EXECUTED 11da49: 31 db xor %ebx,%ebx <== NOT EXECUTED return (void *) 0; 11da4b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11da4e: eb e3 jmp 11da33 <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; 11da50: e8 a3 49 ff ff call 1123f8 <__errno> 11da55: c7 00 16 00 00 00 movl $0x16,(%eax) 11da5b: 31 db xor %ebx,%ebx return (void *) 0; 11da5d: eb d4 jmp 11da33 11da5f: 90 nop <== NOT EXECUTED /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); 11da60: 83 ec 0c sub $0xc,%esp 11da63: 56 push %esi 11da64: e8 03 a8 fe ff call 10826c 11da69: 89 c3 mov %eax,%ebx 11da6b: 83 c4 10 add $0x10,%esp 11da6e: eb c3 jmp 11da33 /* * 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) 11da70: a1 58 53 12 00 mov 0x125358,%eax 11da75: 85 c0 test %eax,%eax 11da77: 74 04 je 11da7d } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 11da79: 31 db xor %ebx,%ebx 11da7b: eb b6 jmp 11da33 if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) return (void *) 0; if (_ISR_Nest_level > 0) 11da7d: a1 f4 53 12 00 mov 0x1253f4,%eax 11da82: 85 c0 test %eax,%eax 11da84: 0f 84 74 ff ff ff je 11d9fe } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 11da8a: 31 db xor %ebx,%ebx <== NOT EXECUTED 11da8c: eb a5 jmp 11da33 <== NOT EXECUTED 11da8e: 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 ); 11da90: 83 ec 0c sub $0xc,%esp 11da93: 56 push %esi 11da94: e8 d3 a7 fe ff call 10826c MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 11da99: ff 0d e4 51 12 00 decl 0x1251e4 if ( !new_area ) { 11da9f: 83 c4 10 add $0x10,%esp 11daa2: 85 c0 test %eax,%eax 11daa4: 74 d3 je 11da79 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 11daa6: 8b 55 e4 mov -0x1c(%ebp),%edx 11daa9: 89 f1 mov %esi,%ecx 11daab: 39 d6 cmp %edx,%esi 11daad: 76 02 jbe 11dab1 11daaf: 89 d1 mov %edx,%ecx 11dab1: 89 c7 mov %eax,%edi 11dab3: 89 de mov %ebx,%esi 11dab5: f3 a4 rep movsb %ds:(%esi),%es:(%edi) free( ptr ); 11dab7: 83 ec 0c sub $0xc,%esp 11daba: 53 push %ebx 11dabb: 89 45 d4 mov %eax,-0x2c(%ebp) 11dabe: e8 59 a5 fe ff call 10801c 11dac3: 8b 45 d4 mov -0x2c(%ebp),%eax 11dac6: 89 c3 mov %eax,%ebx return new_area; 11dac8: 83 c4 10 add $0x10,%esp 11dacb: e9 63 ff ff ff jmp 11da33 0010e0fc : #include int rmdir( const char *pathname ) { 10e0fc: 55 push %ebp 10e0fd: 89 e5 mov %esp,%ebp 10e0ff: 57 push %edi 10e100: 56 push %esi 10e101: 53 push %ebx 10e102: 83 ec 58 sub $0x58,%esp 10e105: 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 ); 10e108: 52 push %edx 10e109: 89 55 ac mov %edx,-0x54(%ebp) 10e10c: e8 77 eb ff ff call 10cc88 10e111: 89 c3 mov %eax,%ebx if ( parentpathlen == 0 ) 10e113: 83 c4 10 add $0x10,%esp 10e116: 85 c0 test %eax,%eax 10e118: 8b 55 ac mov -0x54(%ebp),%edx 10e11b: 0f 85 7f 01 00 00 jne 10e2a0 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 10e121: 8a 02 mov (%edx),%al 10e123: 3c 2f cmp $0x2f,%al 10e125: 74 0c je 10e133 10e127: 3c 5c cmp $0x5c,%al <== NOT EXECUTED 10e129: 74 08 je 10e133 <== NOT EXECUTED 10e12b: 84 c0 test %al,%al <== NOT EXECUTED 10e12d: 0f 85 ed 00 00 00 jne 10e220 <== NOT EXECUTED 10e133: 8d 45 d4 lea -0x2c(%ebp),%eax 10e136: 89 45 b4 mov %eax,-0x4c(%ebp) 10e139: 8b 35 24 83 16 00 mov 0x168324,%esi 10e13f: 83 c6 18 add $0x18,%esi 10e142: b9 05 00 00 00 mov $0x5,%ecx 10e147: 89 c7 mov %eax,%edi 10e149: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 10e14b: c6 45 b3 00 movb $0x0,-0x4d(%ebp) /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 10e14f: 8d 7d c0 lea -0x40(%ebp),%edi 10e152: b9 05 00 00 00 mov $0x5,%ecx 10e157: 8b 75 b4 mov -0x4c(%ebp),%esi 10e15a: f3 a5 rep movsl %ds:(%esi),%es:(%edi) name = pathname + parentpathlen; 10e15c: 8d 1c 1a lea (%edx,%ebx,1),%ebx name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 10e15f: be ff ff ff ff mov $0xffffffff,%esi 10e164: 89 f1 mov %esi,%ecx 10e166: 89 df mov %ebx,%edi 10e168: 31 c0 xor %eax,%eax 10e16a: f2 ae repnz scas %es:(%edi),%al 10e16c: f7 d1 not %ecx 10e16e: 49 dec %ecx 10e16f: 83 ec 08 sub $0x8,%esp 10e172: 51 push %ecx 10e173: 53 push %ebx 10e174: e8 d3 ea ff ff call 10cc4c 10e179: 01 c3 add %eax,%ebx result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 10e17b: 89 f1 mov %esi,%ecx 10e17d: 89 df mov %ebx,%edi 10e17f: 31 c0 xor %eax,%eax 10e181: f2 ae repnz scas %es:(%edi),%al 10e183: f7 d1 not %ecx 10e185: 49 dec %ecx 10e186: c7 04 24 00 00 00 00 movl $0x0,(%esp) 10e18d: 8d 75 c0 lea -0x40(%ebp),%esi 10e190: 56 push %esi 10e191: 6a 00 push $0x0 10e193: 51 push %ecx 10e194: 53 push %ebx 10e195: e8 3e eb ff ff call 10ccd8 0, &loc, false ); if ( result != 0 ) { 10e19a: 83 c4 20 add $0x20,%esp 10e19d: 85 c0 test %eax,%eax 10e19f: 0f 85 e7 00 00 00 jne 10e28c /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 10e1a5: 8b 55 cc mov -0x34(%ebp),%edx 10e1a8: 8b 42 10 mov 0x10(%edx),%eax 10e1ab: 85 c0 test %eax,%eax 10e1ad: 0f 84 65 01 00 00 je 10e318 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 ){ 10e1b3: 83 ec 0c sub $0xc,%esp 10e1b6: 56 push %esi 10e1b7: ff d0 call *%eax 10e1b9: 83 c4 10 add $0x10,%esp 10e1bc: 48 dec %eax 10e1bd: 0f 85 81 00 00 00 jne 10e244 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 10e1c3: 8b 45 c8 mov -0x38(%ebp),%eax 10e1c6: 8b 40 34 mov 0x34(%eax),%eax 10e1c9: 85 c0 test %eax,%eax 10e1cb: 0f 84 fb 00 00 00 je 10e2cc if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 10e1d1: 83 ec 08 sub $0x8,%esp 10e1d4: 56 push %esi 10e1d5: ff 75 b4 pushl -0x4c(%ebp) 10e1d8: ff d0 call *%eax 10e1da: 89 c3 mov %eax,%ebx rtems_filesystem_freenode( &loc ); 10e1dc: 8b 45 cc mov -0x34(%ebp),%eax 10e1df: 83 c4 10 add $0x10,%esp 10e1e2: 85 c0 test %eax,%eax 10e1e4: 74 10 je 10e1f6 10e1e6: 8b 40 1c mov 0x1c(%eax),%eax 10e1e9: 85 c0 test %eax,%eax 10e1eb: 74 09 je 10e1f6 10e1ed: 83 ec 0c sub $0xc,%esp 10e1f0: 56 push %esi 10e1f1: ff d0 call *%eax 10e1f3: 83 c4 10 add $0x10,%esp if ( free_parentloc ) 10e1f6: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 10e1fa: 74 19 je 10e215 rtems_filesystem_freenode( &parentloc ); 10e1fc: 8b 45 e0 mov -0x20(%ebp),%eax 10e1ff: 85 c0 test %eax,%eax 10e201: 74 12 je 10e215 10e203: 8b 40 1c mov 0x1c(%eax),%eax 10e206: 85 c0 test %eax,%eax 10e208: 74 0b je 10e215 10e20a: 83 ec 0c sub $0xc,%esp 10e20d: ff 75 b4 pushl -0x4c(%ebp) 10e210: ff d0 call *%eax 10e212: 83 c4 10 add $0x10,%esp return result; } 10e215: 89 d8 mov %ebx,%eax 10e217: 8d 65 f4 lea -0xc(%ebp),%esp 10e21a: 5b pop %ebx 10e21b: 5e pop %esi 10e21c: 5f pop %edi 10e21d: c9 leave 10e21e: c3 ret 10e21f: 90 nop <== NOT EXECUTED */ parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 10e220: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED 10e223: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED 10e226: 8b 35 24 83 16 00 mov 0x168324,%esi <== NOT EXECUTED 10e22c: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 10e22f: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 10e234: 89 c7 mov %eax,%edi <== NOT EXECUTED 10e236: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 10e238: c6 45 b3 00 movb $0x0,-0x4d(%ebp) <== NOT EXECUTED 10e23c: e9 0e ff ff ff jmp 10e14f <== NOT EXECUTED 10e241: 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 ); 10e244: 8b 45 cc mov -0x34(%ebp),%eax 10e247: 85 c0 test %eax,%eax 10e249: 74 10 je 10e25b 10e24b: 8b 40 1c mov 0x1c(%eax),%eax 10e24e: 85 c0 test %eax,%eax 10e250: 74 09 je 10e25b 10e252: 83 ec 0c sub $0xc,%esp 10e255: 56 push %esi 10e256: ff d0 call *%eax 10e258: 83 c4 10 add $0x10,%esp if ( free_parentloc ) 10e25b: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 10e25f: 74 19 je 10e27a rtems_filesystem_freenode( &parentloc ); 10e261: 8b 45 e0 mov -0x20(%ebp),%eax 10e264: 85 c0 test %eax,%eax 10e266: 74 12 je 10e27a 10e268: 8b 40 1c mov 0x1c(%eax),%eax 10e26b: 85 c0 test %eax,%eax 10e26d: 74 0b je 10e27a 10e26f: 83 ec 0c sub $0xc,%esp 10e272: ff 75 b4 pushl -0x4c(%ebp) 10e275: ff d0 call *%eax 10e277: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( ENOTDIR ); 10e27a: e8 bd 31 03 00 call 14143c <__errno> 10e27f: c7 00 14 00 00 00 movl $0x14,(%eax) 10e285: bb ff ff ff ff mov $0xffffffff,%ebx 10e28a: eb 89 jmp 10e215 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 ) 10e28c: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 10e290: 0f 85 8b 00 00 00 jne 10e321 result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 10e296: bb ff ff ff ff mov $0xffffffff,%ebx 10e29b: e9 75 ff ff ff jmp 10e215 parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, 10e2a0: 83 ec 0c sub $0xc,%esp 10e2a3: 6a 00 push $0x0 10e2a5: 8d 45 d4 lea -0x2c(%ebp),%eax 10e2a8: 89 45 b4 mov %eax,-0x4c(%ebp) 10e2ab: 50 push %eax 10e2ac: 6a 02 push $0x2 10e2ae: 53 push %ebx 10e2af: 52 push %edx 10e2b0: 89 55 ac mov %edx,-0x54(%ebp) 10e2b3: e8 f4 ea ff ff call 10cdac RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 10e2b8: 83 c4 20 add $0x20,%esp 10e2bb: 85 c0 test %eax,%eax 10e2bd: 8b 55 ac mov -0x54(%ebp),%edx 10e2c0: 75 d4 jne 10e296 10e2c2: c6 45 b3 01 movb $0x1,-0x4d(%ebp) 10e2c6: e9 84 fe ff ff jmp 10e14f 10e2cb: 90 nop <== NOT EXECUTED /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 10e2cc: 8b 45 cc mov -0x34(%ebp),%eax <== NOT EXECUTED 10e2cf: 85 c0 test %eax,%eax <== NOT EXECUTED 10e2d1: 74 10 je 10e2e3 <== NOT EXECUTED 10e2d3: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10e2d6: 85 c0 test %eax,%eax <== NOT EXECUTED 10e2d8: 74 09 je 10e2e3 <== NOT EXECUTED 10e2da: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10e2dd: 56 push %esi <== NOT EXECUTED 10e2de: ff d0 call *%eax <== NOT EXECUTED 10e2e0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_parentloc ) 10e2e3: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) <== NOT EXECUTED 10e2e7: 74 19 je 10e302 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 10e2e9: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10e2ec: 85 c0 test %eax,%eax <== NOT EXECUTED 10e2ee: 74 12 je 10e302 <== NOT EXECUTED 10e2f0: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10e2f3: 85 c0 test %eax,%eax <== NOT EXECUTED 10e2f5: 74 0b je 10e302 <== NOT EXECUTED 10e2f7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10e2fa: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED 10e2fd: ff d0 call *%eax <== NOT EXECUTED 10e2ff: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 10e302: e8 35 31 03 00 call 14143c <__errno> <== NOT EXECUTED 10e307: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10e30d: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 10e312: e9 fe fe ff ff jmp 10e215 <== NOT EXECUTED 10e317: 90 nop <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 10e318: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 10e31b: 85 c0 test %eax,%eax <== NOT EXECUTED 10e31d: 75 bb jne 10e2da <== NOT EXECUTED 10e31f: eb c2 jmp 10e2e3 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 10e321: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10e324: 85 c0 test %eax,%eax <== NOT EXECUTED 10e326: 0f 84 6a ff ff ff je 10e296 <== NOT EXECUTED 10e32c: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10e32f: 85 c0 test %eax,%eax <== NOT EXECUTED 10e331: 0f 84 5f ff ff ff je 10e296 <== NOT EXECUTED 10e337: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10e33a: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED 10e33d: ff d0 call *%eax <== NOT EXECUTED 10e33f: 83 cb ff or $0xffffffff,%ebx <== NOT EXECUTED 10e342: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10e345: e9 cb fe ff ff jmp 10e215 <== NOT EXECUTED 00118610 : uint32_t bad_value #else uint32_t bad_value __attribute((unused)) #endif ) { 118610: 55 push %ebp <== NOT EXECUTED 118611: 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; } 118613: b8 20 b1 12 00 mov $0x12b120,%eax <== NOT EXECUTED 118618: c9 leave <== NOT EXECUTED 118619: c3 ret <== NOT EXECUTED 00115978 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 115978: 55 push %ebp 115979: 89 e5 mov %esp,%ebp 11597b: 53 push %ebx 11597c: 83 ec 0c sub $0xc,%esp 11597f: 8b 5d 0c mov 0xc(%ebp),%ebx const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 115982: 53 push %ebx 115983: ff 75 08 pushl 0x8(%ebp) 115986: e8 1d 00 00 00 call 1159a8 if (nap) 11598b: 83 c4 10 add $0x10,%esp 11598e: 85 c0 test %eax,%eax 115990: 74 0a je 11599c return nap->name; 115992: 8b 00 mov (%eax),%eax return rtems_assoc_name_bad(local_value); } 115994: 8b 5d fc mov -0x4(%ebp),%ebx 115997: c9 leave 115998: c3 ret 115999: 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); 11599c: 89 5d 08 mov %ebx,0x8(%ebp) <== NOT EXECUTED } 11599f: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 1159a2: 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); 1159a3: e9 68 2c 00 00 jmp 118610 <== NOT EXECUTED 00112388 : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 112388: 55 push %ebp 112389: 89 e5 mov %esp,%ebp 11238b: 57 push %edi 11238c: 56 push %esi 11238d: 53 push %ebx 11238e: 8b 45 08 mov 0x8(%ebp),%eax 112391: 8b 55 0c mov 0xc(%ebp),%edx const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 112394: 8b 30 mov (%eax),%esi 112396: 85 f6 test %esi,%esi 112398: 74 3e je 1123d8 11239a: bf 2d 00 12 00 mov $0x12002d,%edi 11239f: b9 0a 00 00 00 mov $0xa,%ecx 1123a4: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 1123a6: 74 18 je 1123c0 1123a8: 31 c9 xor %ecx,%ecx 1123aa: eb 09 jmp 1123b5 default_ap = ap++; for ( ; ap->name; ap++) 1123ac: 83 c0 0c add $0xc,%eax 1123af: 8b 18 mov (%eax),%ebx 1123b1: 85 db test %ebx,%ebx 1123b3: 74 1b je 1123d0 if (ap->local_value == local_value) 1123b5: 39 50 04 cmp %edx,0x4(%eax) 1123b8: 75 f2 jne 1123ac return ap; return default_ap; } 1123ba: 5b pop %ebx 1123bb: 5e pop %esi 1123bc: 5f pop %edi 1123bd: c9 leave 1123be: c3 ret 1123bf: 90 nop <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; 1123c0: 8d 58 0c lea 0xc(%eax),%ebx <== NOT EXECUTED for ( ; ap->name; ap++) 1123c3: 8b 70 0c mov 0xc(%eax),%esi <== NOT EXECUTED 1123c6: 85 f6 test %esi,%esi <== NOT EXECUTED 1123c8: 74 f0 je 1123ba <== NOT EXECUTED 1123ca: 89 c1 mov %eax,%ecx <== NOT EXECUTED 1123cc: 89 d8 mov %ebx,%eax <== NOT EXECUTED 1123ce: eb e5 jmp 1123b5 <== NOT EXECUTED 1123d0: 89 c8 mov %ecx,%eax if (ap->local_value == local_value) return ap; return default_ap; } 1123d2: 5b pop %ebx 1123d3: 5e pop %esi 1123d4: 5f pop %edi 1123d5: c9 leave 1123d6: c3 ret 1123d7: 90 nop <== NOT EXECUTED uint32_t local_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 1123d8: 31 c0 xor %eax,%eax <== NOT EXECUTED for ( ; ap->name; ap++) if (ap->local_value == local_value) return ap; return default_ap; } 1123da: 5b pop %ebx <== NOT EXECUTED 1123db: 5e pop %esi <== NOT EXECUTED 1123dc: 5f pop %edi <== NOT EXECUTED 1123dd: c9 leave <== NOT EXECUTED 1123de: c3 ret <== NOT EXECUTED 001117dc : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 1117dc: 55 push %ebp 1117dd: 89 e5 mov %esp,%ebp 1117df: 57 push %edi 1117e0: 56 push %esi 1117e1: 53 push %ebx 1117e2: 8b 45 08 mov 0x8(%ebp),%eax 1117e5: 8b 55 0c mov 0xc(%ebp),%edx const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 1117e8: 8b 30 mov (%eax),%esi 1117ea: 85 f6 test %esi,%esi 1117ec: 74 3e je 11182c 1117ee: bf 2d 00 12 00 mov $0x12002d,%edi 1117f3: b9 0a 00 00 00 mov $0xa,%ecx 1117f8: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 1117fa: 74 18 je 111814 1117fc: 31 c9 xor %ecx,%ecx 1117fe: eb 09 jmp 111809 default_ap = ap++; for ( ; ap->name; ap++) 111800: 83 c0 0c add $0xc,%eax 111803: 8b 18 mov (%eax),%ebx 111805: 85 db test %ebx,%ebx 111807: 74 1b je 111824 if (ap->remote_value == remote_value) 111809: 39 50 08 cmp %edx,0x8(%eax) 11180c: 75 f2 jne 111800 return ap; return default_ap; } 11180e: 5b pop %ebx 11180f: 5e pop %esi 111810: 5f pop %edi 111811: c9 leave 111812: c3 ret 111813: 90 nop <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; 111814: 8d 58 0c lea 0xc(%eax),%ebx <== NOT EXECUTED for ( ; ap->name; ap++) 111817: 8b 70 0c mov 0xc(%eax),%esi <== NOT EXECUTED 11181a: 85 f6 test %esi,%esi <== NOT EXECUTED 11181c: 74 f0 je 11180e <== NOT EXECUTED 11181e: 89 c1 mov %eax,%ecx <== NOT EXECUTED 111820: 89 d8 mov %ebx,%eax <== NOT EXECUTED 111822: eb e5 jmp 111809 <== NOT EXECUTED 111824: 89 c8 mov %ecx,%eax if (ap->remote_value == remote_value) return ap; return default_ap; } 111826: 5b pop %ebx 111827: 5e pop %esi 111828: 5f pop %edi 111829: c9 leave 11182a: c3 ret 11182b: 90 nop <== NOT EXECUTED uint32_t remote_value ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 11182c: 31 c0 xor %eax,%eax <== NOT EXECUTED for ( ; ap->name; ap++) if (ap->remote_value == remote_value) return ap; return default_ap; } 11182e: 5b pop %ebx <== NOT EXECUTED 11182f: 5e pop %esi <== NOT EXECUTED 111830: 5f pop %edi <== NOT EXECUTED 111831: c9 leave <== NOT EXECUTED 111832: c3 ret <== NOT EXECUTED 001120e8 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 1120e8: 55 push %ebp <== NOT EXECUTED 1120e9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 1120eb: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 1120ee: ff 75 0c pushl 0xc(%ebp) <== NOT EXECUTED 1120f1: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 1120f4: e8 8f 02 00 00 call 112388 <== NOT EXECUTED if (nap) 1120f9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1120fc: 85 c0 test %eax,%eax <== NOT EXECUTED 1120fe: 74 03 je 112103 <== NOT EXECUTED return nap->remote_value; 112100: 8b 40 08 mov 0x8(%eax),%eax <== NOT EXECUTED return 0; } 112103: c9 leave <== NOT EXECUTED 112104: c3 ret <== NOT EXECUTED 00111834 : rtems_name name, rtems_attribute attribute_set, uint32_t maximum_waiters, rtems_id *id ) { 111834: 55 push %ebp 111835: 89 e5 mov %esp,%ebp 111837: 57 push %edi 111838: 56 push %esi 111839: 53 push %ebx 11183a: 83 ec 2c sub $0x2c,%esp 11183d: 8b 5d 08 mov 0x8(%ebp),%ebx 111840: 8b 7d 0c mov 0xc(%ebp),%edi 111843: 8b 45 10 mov 0x10(%ebp),%eax 111846: 8b 75 14 mov 0x14(%ebp),%esi Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) 111849: 85 db test %ebx,%ebx 11184b: 0f 84 87 00 00 00 je 1118d8 return RTEMS_INVALID_NAME; if ( !id ) 111851: 85 f6 test %esi,%esi 111853: 0f 84 bb 00 00 00 je 111914 return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { 111859: f7 c7 10 00 00 00 test $0x10,%edi 11185f: 0f 84 83 00 00 00 je 1118e8 the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; if ( maximum_waiters == 0 ) 111865: 85 c0 test %eax,%eax 111867: 0f 84 87 00 00 00 je 1118f4 if ( !id ) return RTEMS_INVALID_ADDRESS; /* Initialize core barrier attributes */ if ( _Attributes_Is_barrier_automatic( attribute_set ) ) { the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE; 11186d: 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; 111874: 89 45 e4 mov %eax,-0x1c(%ebp) 111877: a1 58 53 12 00 mov 0x125358,%eax 11187c: 40 inc %eax 11187d: a3 58 53 12 00 mov %eax,0x125358 * This function allocates a barrier control block from * the inactive chain of free barrier control blocks. */ RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Allocate( void ) { return (Barrier_Control *) _Objects_Allocate( &_Barrier_Information ); 111882: 83 ec 0c sub $0xc,%esp 111885: 68 c0 56 12 00 push $0x1256c0 11188a: e8 71 ae ff ff call 10c700 <_Objects_Allocate> _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { 11188f: 83 c4 10 add $0x10,%esp 111892: 85 c0 test %eax,%eax 111894: 74 6a je 111900 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_barrier->attribute_set = attribute_set; 111896: 89 78 10 mov %edi,0x10(%eax) _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 111899: 83 ec 08 sub $0x8,%esp 11189c: 8d 55 e0 lea -0x20(%ebp),%edx 11189f: 52 push %edx 1118a0: 8d 50 14 lea 0x14(%eax),%edx 1118a3: 52 push %edx 1118a4: 89 45 d4 mov %eax,-0x2c(%ebp) 1118a7: e8 5c 04 00 00 call 111d08 <_CORE_barrier_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 1118ac: 8b 45 d4 mov -0x2c(%ebp),%eax 1118af: 8b 50 08 mov 0x8(%eax),%edx 1118b2: 0f b7 fa movzwl %dx,%edi 1118b5: 8b 0d dc 56 12 00 mov 0x1256dc,%ecx 1118bb: 89 04 b9 mov %eax,(%ecx,%edi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 1118be: 89 58 0c mov %ebx,0xc(%eax) &_Barrier_Information, &the_barrier->Object, (Objects_Name) name ); *id = the_barrier->Object.id; 1118c1: 89 16 mov %edx,(%esi) _Thread_Enable_dispatch(); 1118c3: e8 30 bb ff ff call 10d3f8 <_Thread_Enable_dispatch> 1118c8: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 1118ca: 83 c4 10 add $0x10,%esp } 1118cd: 8d 65 f4 lea -0xc(%ebp),%esp 1118d0: 5b pop %ebx 1118d1: 5e pop %esi 1118d2: 5f pop %edi 1118d3: c9 leave 1118d4: c3 ret 1118d5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { Barrier_Control *the_barrier; CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) 1118d8: b8 03 00 00 00 mov $0x3,%eax *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 1118dd: 8d 65 f4 lea -0xc(%ebp),%esp 1118e0: 5b pop %ebx 1118e1: 5e pop %esi 1118e2: 5f pop %edi 1118e3: c9 leave 1118e4: c3 ret 1118e5: 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; 1118e8: c7 45 e0 01 00 00 00 movl $0x1,-0x20(%ebp) 1118ef: eb 83 jmp 111874 1118f1: 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 ) 1118f4: b0 0a mov $0xa,%al *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 1118f6: 8d 65 f4 lea -0xc(%ebp),%esp 1118f9: 5b pop %ebx 1118fa: 5e pop %esi 1118fb: 5f pop %edi 1118fc: c9 leave 1118fd: c3 ret 1118fe: 66 90 xchg %ax,%ax <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_barrier = _Barrier_Allocate(); if ( !the_barrier ) { _Thread_Enable_dispatch(); 111900: e8 f3 ba ff ff call 10d3f8 <_Thread_Enable_dispatch> 111905: b8 05 00 00 00 mov $0x5,%eax *id = the_barrier->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 11190a: 8d 65 f4 lea -0xc(%ebp),%esp 11190d: 5b pop %ebx 11190e: 5e pop %esi 11190f: 5f pop %edi 111910: c9 leave 111911: c3 ret 111912: 66 90 xchg %ax,%ax <== NOT EXECUTED CORE_barrier_Attributes the_attributes; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 111914: b8 09 00 00 00 mov $0x9,%eax 111919: eb b2 jmp 1118cd 0011191c : */ rtems_status_code rtems_barrier_delete( rtems_id id ) { 11191c: 55 push %ebp 11191d: 89 e5 mov %esp,%ebp 11191f: 53 push %ebx 111920: 83 ec 18 sub $0x18,%esp RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 111923: 8d 45 f4 lea -0xc(%ebp),%eax 111926: 50 push %eax 111927: ff 75 08 pushl 0x8(%ebp) 11192a: 68 c0 56 12 00 push $0x1256c0 11192f: e8 7c b2 ff ff call 10cbb0 <_Objects_Get> 111934: 89 c3 mov %eax,%ebx Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 111936: 83 c4 10 add $0x10,%esp 111939: 8b 4d f4 mov -0xc(%ebp),%ecx 11193c: 85 c9 test %ecx,%ecx 11193e: 75 38 jne 111978 case OBJECTS_LOCAL: _CORE_barrier_Flush( 111940: 52 push %edx 111941: 6a 02 push $0x2 111943: 6a 00 push $0x0 111945: 8d 40 14 lea 0x14(%eax),%eax 111948: 50 push %eax 111949: e8 b2 c1 ff ff call 10db00 <_Thread_queue_Flush> &the_barrier->Barrier, NULL, CORE_BARRIER_WAS_DELETED ); _Objects_Close( &_Barrier_Information, &the_barrier->Object ); 11194e: 59 pop %ecx 11194f: 58 pop %eax 111950: 53 push %ebx 111951: 68 c0 56 12 00 push $0x1256c0 111956: e8 21 ae ff ff call 10c77c <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Barrier_Free ( Barrier_Control *the_barrier ) { _Objects_Free( &_Barrier_Information, &the_barrier->Object ); 11195b: 58 pop %eax 11195c: 5a pop %edx 11195d: 53 push %ebx 11195e: 68 c0 56 12 00 push $0x1256c0 111963: e8 18 b1 ff ff call 10ca80 <_Objects_Free> _Barrier_Free( the_barrier ); _Thread_Enable_dispatch(); 111968: e8 8b ba ff ff call 10d3f8 <_Thread_Enable_dispatch> 11196d: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 11196f: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 111972: 8b 5d fc mov -0x4(%ebp),%ebx 111975: c9 leave 111976: c3 ret 111977: 90 nop <== NOT EXECUTED { Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 111978: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11197d: 8b 5d fc mov -0x4(%ebp),%ebx 111980: c9 leave 111981: c3 ret 001119e8 : rtems_status_code rtems_barrier_wait( rtems_id id, rtems_interval timeout ) { 1119e8: 55 push %ebp 1119e9: 89 e5 mov %esp,%ebp 1119eb: 53 push %ebx 1119ec: 83 ec 18 sub $0x18,%esp 1119ef: 8b 5d 08 mov 0x8(%ebp),%ebx 1119f2: 8d 45 f4 lea -0xc(%ebp),%eax 1119f5: 50 push %eax 1119f6: 53 push %ebx 1119f7: 68 c0 56 12 00 push $0x1256c0 1119fc: e8 af b1 ff ff call 10cbb0 <_Objects_Get> Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 111a01: 83 c4 10 add $0x10,%esp 111a04: 8b 55 f4 mov -0xc(%ebp),%edx 111a07: 85 d2 test %edx,%edx 111a09: 75 35 jne 111a40 case OBJECTS_LOCAL: _CORE_barrier_Wait( 111a0b: 83 ec 0c sub $0xc,%esp 111a0e: 6a 00 push $0x0 111a10: ff 75 0c pushl 0xc(%ebp) 111a13: 6a 01 push $0x1 111a15: 53 push %ebx 111a16: 83 c0 14 add $0x14,%eax 111a19: 50 push %eax 111a1a: e8 4d 03 00 00 call 111d6c <_CORE_barrier_Wait> id, true, timeout, NULL ); _Thread_Enable_dispatch(); 111a1f: 83 c4 20 add $0x20,%esp 111a22: e8 d1 b9 ff ff call 10d3f8 <_Thread_Enable_dispatch> return _Barrier_Translate_core_barrier_return_code( 111a27: 83 ec 0c sub $0xc,%esp 111a2a: a1 18 54 12 00 mov 0x125418,%eax 111a2f: ff 70 34 pushl 0x34(%eax) 111a32: e8 41 09 00 00 call 112378 <_Barrier_Translate_core_barrier_return_code> 111a37: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 111a3a: 8b 5d fc mov -0x4(%ebp),%ebx 111a3d: c9 leave 111a3e: c3 ret 111a3f: 90 nop <== NOT EXECUTED { Barrier_Control *the_barrier; Objects_Locations location; the_barrier = _Barrier_Get( id, &location ); switch ( location ) { 111a40: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 111a45: 8b 5d fc mov -0x4(%ebp),%ebx 111a48: c9 leave 111a49: c3 ret 00108038 : const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) { 108038: 55 push %ebp 108039: 89 e5 mov %esp,%ebp 10803b: 57 push %edi 10803c: 56 push %esi 10803d: 53 push %ebx 10803e: 83 ec 1c sub $0x1c,%esp 108041: 8b 45 08 mov 0x8(%ebp),%eax 108044: 8b 5d 0c mov 0xc(%ebp),%ebx 108047: 8b 75 10 mov 0x10(%ebp),%esi const char *p; if ( !name ) 10804a: 85 c0 test %eax,%eax 10804c: 75 0e jne 10805c int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i return NULL; if ( !length ) 108060: 85 f6 test %esi,%esi 108062: 74 ea je 10804e return NULL; value[0] = '\0'; 108064: c6 03 00 movb $0x0,(%ebx) p = rtems_bsp_cmdline_get_param_raw( name ); 108067: 83 ec 0c sub $0xc,%esp 10806a: 50 push %eax 10806b: e8 48 00 00 00 call 1080b8 if ( !p ) 108070: 83 c4 10 add $0x10,%esp 108073: 85 c0 test %eax,%eax 108075: 74 d7 je 10804e int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i 10807d: 4e dec %esi 10807e: 89 75 e4 mov %esi,-0x1c(%ebp) 108081: 74 cd je 108050 108083: 31 f6 xor %esi,%esi 108085: 31 d2 xor %edx,%edx 108087: 31 ff xor %edi,%edi 108089: eb 24 jmp 1080af 10808b: 90 nop <== NOT EXECUTED if ( *p == '\"' ) { quotes++; } else if ( ((quotes % 2) == 0) && *p == ' ' ) 10808c: f7 c7 01 00 00 00 test $0x1,%edi 108092: 75 05 jne 108099 108094: 80 f9 20 cmp $0x20,%cl 108097: 74 b7 je 108050 break; value[i++] = *p++; 108099: 88 0c 33 mov %cl,(%ebx,%esi,1) 10809c: 42 inc %edx 10809d: 89 d6 mov %edx,%esi value[i] = '\0'; 10809f: c6 04 13 00 movb $0x0,(%ebx,%edx,1) int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i 1080aa: 3b 55 e4 cmp -0x1c(%ebp),%edx 1080ad: 73 a1 jae 108050 if ( *p == '\"' ) { 1080af: 80 f9 22 cmp $0x22,%cl 1080b2: 75 d8 jne 10808c quotes++; 1080b4: 47 inc %edi <== NOT EXECUTED 1080b5: eb e2 jmp 108099 <== NOT EXECUTED 001080b8 : extern const char *bsp_boot_cmdline; const char *rtems_bsp_cmdline_get_param_raw( const char *name ) { 1080b8: 55 push %ebp 1080b9: 89 e5 mov %esp,%ebp 1080bb: 83 ec 08 sub $0x8,%esp 1080be: 8b 45 08 mov 0x8(%ebp),%eax const char *p; if ( !name ) 1080c1: 85 c0 test %eax,%eax 1080c3: 75 07 jne 1080cc if ( !bsp_boot_cmdline ) return NULL; p = strstr(bsp_boot_cmdline, name); /* printf( "raw: %p (%s)\n", p, p ); */ return p; 1080c5: 31 c0 xor %eax,%eax } 1080c7: c9 leave 1080c8: c3 ret 1080c9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED const char *p; if ( !name ) return NULL; if ( !bsp_boot_cmdline ) 1080cc: 8b 15 58 66 12 00 mov 0x126658,%edx 1080d2: 85 d2 test %edx,%edx 1080d4: 74 ef je 1080c5 return NULL; p = strstr(bsp_boot_cmdline, name); 1080d6: 83 ec 08 sub $0x8,%esp 1080d9: 50 push %eax 1080da: 52 push %edx 1080db: e8 68 b9 00 00 call 113a48 1080e0: 83 c4 10 add $0x10,%esp /* printf( "raw: %p (%s)\n", p, p ); */ return p; } 1080e3: c9 leave 1080e4: c3 ret 001080e8 : const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { 1080e8: 55 push %ebp <== NOT EXECUTED 1080e9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 1080eb: 57 push %edi <== NOT EXECUTED 1080ec: 53 push %ebx <== NOT EXECUTED 1080ed: 8b 7d 08 mov 0x8(%ebp),%edi <== NOT EXECUTED 1080f0: 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 ); 1080f3: 50 push %eax <== NOT EXECUTED 1080f4: ff 75 10 pushl 0x10(%ebp) <== NOT EXECUTED 1080f7: 53 push %ebx <== NOT EXECUTED 1080f8: 57 push %edi <== NOT EXECUTED 1080f9: e8 3a ff ff ff call 108038 <== NOT EXECUTED 1080fe: 89 c2 mov %eax,%edx <== NOT EXECUTED if ( !p ) 108100: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 108103: 85 c0 test %eax,%eax <== NOT EXECUTED 108105: 75 0d jne 108114 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) d--; *d = '\0'; return value; 108107: 31 db xor %ebx,%ebx <== NOT EXECUTED } 108109: 89 d8 mov %ebx,%eax <== NOT EXECUTED 10810b: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10810e: 5b pop %ebx <== NOT EXECUTED 10810f: 5f pop %edi <== NOT EXECUTED 108110: c9 leave <== NOT EXECUTED 108111: c3 ret <== NOT EXECUTED 108112: 66 90 xchg %ax,%ax <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; 108114: 31 c0 xor %eax,%eax <== NOT EXECUTED 108116: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 10811b: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 10811d: f7 d1 not %ecx <== NOT EXECUTED 10811f: 8d 44 0a ff lea -0x1(%edx,%ecx,1),%eax <== NOT EXECUTED if ( *rhs != '=' ) 108123: 80 38 3d cmpb $0x3d,(%eax) <== NOT EXECUTED 108126: 75 df jne 108107 <== NOT EXECUTED return NULL; rhs++; 108128: 8d 48 01 lea 0x1(%eax),%ecx <== NOT EXECUTED if ( *rhs == '\"' ) 10812b: 8a 50 01 mov 0x1(%eax),%dl <== NOT EXECUTED 10812e: 80 fa 22 cmp $0x22,%dl <== NOT EXECUTED 108131: 74 2d je 108160 <== NOT EXECUTED rhs++; for ( d=value ; *rhs ; ) 108133: 84 d2 test %dl,%dl <== NOT EXECUTED 108135: 74 31 je 108168 <== NOT EXECUTED 108137: 89 d8 mov %ebx,%eax <== NOT EXECUTED 108139: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED *d++ = *rhs++; 10813c: 88 10 mov %dl,(%eax) <== NOT EXECUTED 10813e: 40 inc %eax <== NOT EXECUTED 10813f: 41 inc %ecx <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) 108140: 8a 11 mov (%ecx),%dl <== NOT EXECUTED 108142: 84 d2 test %dl,%dl <== NOT EXECUTED 108144: 75 f6 jne 10813c <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) 108146: 8d 50 ff lea -0x1(%eax),%edx <== NOT EXECUTED 108149: 80 78 ff 22 cmpb $0x22,-0x1(%eax) <== NOT EXECUTED 10814d: 74 02 je 108151 <== NOT EXECUTED 10814f: 89 c2 mov %eax,%edx <== NOT EXECUTED d--; *d = '\0'; 108151: c6 02 00 movb $0x0,(%edx) <== NOT EXECUTED return value; } 108154: 89 d8 mov %ebx,%eax <== NOT EXECUTED 108156: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 108159: 5b pop %ebx <== NOT EXECUTED 10815a: 5f pop %edi <== NOT EXECUTED 10815b: c9 leave <== NOT EXECUTED 10815c: c3 ret <== NOT EXECUTED 10815d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if ( *rhs != '=' ) return NULL; rhs++; if ( *rhs == '\"' ) rhs++; 108160: 8d 48 02 lea 0x2(%eax),%ecx <== NOT EXECUTED 108163: 8a 50 02 mov 0x2(%eax),%dl <== NOT EXECUTED 108166: eb cb jmp 108133 <== NOT EXECUTED for ( d=value ; *rhs ; ) 108168: 89 d8 mov %ebx,%eax <== NOT EXECUTED 10816a: eb da jmp 108146 <== NOT EXECUTED 00110a40 : rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { 110a40: 55 push %ebp 110a41: 89 e5 mov %esp,%ebp 110a43: 53 push %ebx 110a44: 83 ec 04 sub $0x4,%esp 110a47: 8b 45 08 mov 0x8(%ebp),%eax 110a4a: 8b 5d 0c mov 0xc(%ebp),%ebx if ( !time_buffer ) 110a4d: 85 db test %ebx,%ebx 110a4f: 74 3b je 110a8c return RTEMS_INVALID_ADDRESS; if ( option == RTEMS_CLOCK_GET_TOD ) 110a51: 85 c0 test %eax,%eax 110a53: 74 2b je 110a80 return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer ); if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH ) 110a55: 83 f8 01 cmp $0x1,%eax 110a58: 74 3e je 110a98 return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer); if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) { 110a5a: 83 f8 02 cmp $0x2,%eax 110a5d: 74 45 je 110aa4 *interval = rtems_clock_get_ticks_since_boot(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) { 110a5f: 83 f8 03 cmp $0x3,%eax 110a62: 74 4c je 110ab0 *interval = rtems_clock_get_ticks_per_second(); return RTEMS_SUCCESSFUL; } if ( option == RTEMS_CLOCK_GET_TIME_VALUE ) 110a64: 83 f8 04 cmp $0x4,%eax 110a67: 74 0b je 110a74 110a69: b8 0a 00 00 00 mov $0xa,%eax return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer ); return RTEMS_INVALID_NUMBER; } 110a6e: 5a pop %edx 110a6f: 5b pop %ebx 110a70: c9 leave 110a71: c3 ret 110a72: 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 ); 110a74: 89 5d 08 mov %ebx,0x8(%ebp) return RTEMS_INVALID_NUMBER; } 110a77: 59 pop %ecx 110a78: 5b pop %ebx 110a79: 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 ); 110a7a: e9 49 01 00 00 jmp 110bc8 110a7f: 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 ); 110a80: 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; } 110a83: 58 pop %eax 110a84: 5b pop %ebx 110a85: 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 ); 110a86: e9 7d 00 00 00 jmp 110b08 110a8b: 90 nop <== NOT EXECUTED rtems_status_code rtems_clock_get( rtems_clock_get_options option, void *time_buffer ) { if ( !time_buffer ) 110a8c: 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; } 110a91: 5a pop %edx 110a92: 5b pop %ebx 110a93: c9 leave 110a94: c3 ret 110a95: 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); 110a98: 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; } 110a9b: 5b pop %ebx 110a9c: 5b pop %ebx 110a9d: 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); 110a9e: e9 19 00 00 00 jmp 110abc 110aa3: 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(); 110aa4: e8 53 00 00 00 call 110afc 110aa9: 89 03 mov %eax,(%ebx) 110aab: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 110aad: eb bf jmp 110a6e 110aaf: 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(); 110ab0: e8 33 00 00 00 call 110ae8 110ab5: 89 03 mov %eax,(%ebx) 110ab7: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 110ab9: eb b3 jmp 110a6e 0010be74 : #include rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { 10be74: 55 push %ebp 10be75: 89 e5 mov %esp,%ebp 10be77: 8b 45 08 mov 0x8(%ebp),%eax if ( !the_interval ) 10be7a: 85 c0 test %eax,%eax 10be7c: 74 1e je 10be9c return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 10be7e: 80 3d ac 01 13 00 00 cmpb $0x0,0x1301ac 10be85: 74 0d je 10be94 return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); 10be87: 8b 15 2c 02 13 00 mov 0x13022c,%edx 10be8d: 89 10 mov %edx,(%eax) 10be8f: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 10be91: c9 leave 10be92: c3 ret 10be93: 90 nop <== NOT EXECUTED ) { if ( !the_interval ) return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 10be94: b8 0b 00 00 00 mov $0xb,%eax return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); return RTEMS_SUCCESSFUL; } 10be99: c9 leave 10be9a: c3 ret 10be9b: 90 nop <== NOT EXECUTED rtems_status_code rtems_clock_get_seconds_since_epoch( rtems_interval *the_interval ) { if ( !the_interval ) 10be9c: b0 09 mov $0x9,%al if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; *the_interval = _TOD_Seconds_since_epoch(); return RTEMS_SUCCESSFUL; } 10be9e: c9 leave 10be9f: c3 ret 0010bec0 : #include rtems_status_code rtems_clock_get_tod( rtems_time_of_day *time_buffer ) { 10bec0: 55 push %ebp 10bec1: 89 e5 mov %esp,%ebp 10bec3: 56 push %esi 10bec4: 53 push %ebx 10bec5: 83 ec 50 sub $0x50,%esp 10bec8: 8b 5d 08 mov 0x8(%ebp),%ebx rtems_time_of_day *tmbuf = time_buffer; struct tm time; struct timeval now; if ( !time_buffer ) 10becb: 85 db test %ebx,%ebx 10becd: 0f 84 a1 00 00 00 je 10bf74 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 10bed3: 80 3d ac 01 13 00 00 cmpb $0x0,0x1301ac 10beda: 75 0c jne 10bee8 10bedc: 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; } 10bee1: 8d 65 f8 lea -0x8(%ebp),%esp 10bee4: 5b pop %ebx 10bee5: 5e pop %esi 10bee6: c9 leave 10bee7: c3 ret { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 10bee8: 9c pushf 10bee9: fa cli 10beea: 5e pop %esi _TOD_Get( &now ); 10beeb: 83 ec 0c sub $0xc,%esp 10beee: 8d 45 e8 lea -0x18(%ebp),%eax 10bef1: 50 push %eax 10bef2: e8 61 18 00 00 call 10d758 <_TOD_Get> _ISR_Enable(level); 10bef7: 56 push %esi 10bef8: 9d popf useconds = (suseconds_t)now.tv_nsec; 10bef9: 8b 4d ec mov -0x14(%ebp),%ecx useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 10befc: 8b 45 e8 mov -0x18(%ebp),%eax 10beff: 89 45 f0 mov %eax,-0x10(%ebp) time->tv_usec = useconds; 10bf02: be d3 4d 62 10 mov $0x10624dd3,%esi 10bf07: 89 c8 mov %ecx,%eax 10bf09: f7 ee imul %esi 10bf0b: 89 45 b0 mov %eax,-0x50(%ebp) 10bf0e: 89 55 b4 mov %edx,-0x4c(%ebp) 10bf11: 8b 75 b4 mov -0x4c(%ebp),%esi 10bf14: c1 fe 06 sar $0x6,%esi 10bf17: 89 c8 mov %ecx,%eax 10bf19: 99 cltd 10bf1a: 29 d6 sub %edx,%esi 10bf1c: 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 ); 10bf1f: 58 pop %eax 10bf20: 5a pop %edx 10bf21: 8d 45 c4 lea -0x3c(%ebp),%eax 10bf24: 50 push %eax 10bf25: 8d 45 f0 lea -0x10(%ebp),%eax 10bf28: 50 push %eax 10bf29: e8 ea 83 00 00 call 114318 /* Now adjust it to the RTEMS format */ tmbuf->year = time.tm_year + 1900; 10bf2e: 8b 45 d8 mov -0x28(%ebp),%eax 10bf31: 05 6c 07 00 00 add $0x76c,%eax 10bf36: 89 03 mov %eax,(%ebx) tmbuf->month = time.tm_mon + 1; 10bf38: 8b 45 d4 mov -0x2c(%ebp),%eax 10bf3b: 40 inc %eax 10bf3c: 89 43 04 mov %eax,0x4(%ebx) tmbuf->day = time.tm_mday; 10bf3f: 8b 45 d0 mov -0x30(%ebp),%eax 10bf42: 89 43 08 mov %eax,0x8(%ebx) tmbuf->hour = time.tm_hour; 10bf45: 8b 45 cc mov -0x34(%ebp),%eax 10bf48: 89 43 0c mov %eax,0xc(%ebx) tmbuf->minute = time.tm_min; 10bf4b: 8b 45 c8 mov -0x38(%ebp),%eax 10bf4e: 89 43 10 mov %eax,0x10(%ebx) tmbuf->second = time.tm_sec; 10bf51: 8b 45 c4 mov -0x3c(%ebp),%eax 10bf54: 89 43 14 mov %eax,0x14(%ebx) tmbuf->ticks = now.tv_usec / 10bf57: 8b 45 f4 mov -0xc(%ebp),%eax 10bf5a: 31 d2 xor %edx,%edx 10bf5c: f7 35 2c 42 12 00 divl 0x12422c 10bf62: 89 43 18 mov %eax,0x18(%ebx) 10bf65: 31 c0 xor %eax,%eax rtems_configuration_get_microseconds_per_tick(); return RTEMS_SUCCESSFUL; 10bf67: 83 c4 10 add $0x10,%esp } 10bf6a: 8d 65 f8 lea -0x8(%ebp),%esp 10bf6d: 5b pop %ebx 10bf6e: 5e pop %esi 10bf6f: c9 leave 10bf70: c3 ret 10bf71: 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 ) 10bf74: b8 09 00 00 00 mov $0x9,%eax 10bf79: e9 63 ff ff ff jmp 10bee1 00110bc8 : #include rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { 110bc8: 55 push %ebp 110bc9: 89 e5 mov %esp,%ebp 110bcb: 56 push %esi 110bcc: 53 push %ebx 110bcd: 83 ec 20 sub $0x20,%esp 110bd0: 8b 5d 08 mov 0x8(%ebp),%ebx if ( !time ) 110bd3: 85 db test %ebx,%ebx 110bd5: 74 59 je 110c30 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Is_set ) 110bd7: 80 3d 0c df 16 00 00 cmpb $0x0,0x16df0c 110bde: 75 0c jne 110bec 110be0: b8 0b 00 00 00 mov $0xb,%eax return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; } 110be5: 8d 65 f8 lea -0x8(%ebp),%esp 110be8: 5b pop %ebx 110be9: 5e pop %esi 110bea: c9 leave 110beb: c3 ret { ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); 110bec: 9c pushf 110bed: fa cli 110bee: 5e pop %esi _TOD_Get( &now ); 110bef: 83 ec 0c sub $0xc,%esp 110bf2: 8d 45 f0 lea -0x10(%ebp),%eax 110bf5: 50 push %eax 110bf6: e8 05 18 00 00 call 112400 <_TOD_Get> _ISR_Enable(level); 110bfb: 56 push %esi 110bfc: 9d popf useconds = (suseconds_t)now.tv_nsec; 110bfd: 8b 4d f4 mov -0xc(%ebp),%ecx useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 110c00: 8b 45 f0 mov -0x10(%ebp),%eax 110c03: 89 03 mov %eax,(%ebx) time->tv_usec = useconds; 110c05: be d3 4d 62 10 mov $0x10624dd3,%esi 110c0a: 89 c8 mov %ecx,%eax 110c0c: f7 ee imul %esi 110c0e: 89 45 e0 mov %eax,-0x20(%ebp) 110c11: 89 55 e4 mov %edx,-0x1c(%ebp) 110c14: 8b 75 e4 mov -0x1c(%ebp),%esi 110c17: c1 fe 06 sar $0x6,%esi 110c1a: 89 c8 mov %ecx,%eax 110c1c: 99 cltd 110c1d: 29 d6 sub %edx,%esi 110c1f: 89 73 04 mov %esi,0x4(%ebx) 110c22: 31 c0 xor %eax,%eax if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; _TOD_Get_timeval( time ); return RTEMS_SUCCESSFUL; 110c24: 83 c4 10 add $0x10,%esp } 110c27: 8d 65 f8 lea -0x8(%ebp),%esp 110c2a: 5b pop %ebx 110c2b: 5e pop %esi 110c2c: c9 leave 110c2d: c3 ret 110c2e: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_status_code rtems_clock_get_tod_timeval( struct timeval *time ) { if ( !time ) 110c30: b8 09 00 00 00 mov $0x9,%eax 110c35: eb ae jmp 110be5 0012cf8c : * error code - if unsuccessful */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { 12cf8c: 55 push %ebp 12cf8d: 89 e5 mov %esp,%ebp 12cf8f: 83 ec 08 sub $0x8,%esp 12cf92: 8b 45 08 mov 0x8(%ebp),%eax if ( !uptime ) 12cf95: 85 c0 test %eax,%eax 12cf97: 74 13 je 12cfac return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime ); 12cf99: 83 ec 0c sub $0xc,%esp 12cf9c: 50 push %eax 12cf9d: e8 7a 0f 00 00 call 12df1c <_TOD_Get_uptime_as_timespec> 12cfa2: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 12cfa4: 83 c4 10 add $0x10,%esp } 12cfa7: c9 leave 12cfa8: c3 ret 12cfa9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED */ rtems_status_code rtems_clock_get_uptime( struct timespec *uptime ) { if ( !uptime ) 12cfac: b0 09 mov $0x9,%al return RTEMS_INVALID_ADDRESS; _TOD_Get_uptime_as_timespec( uptime ); return RTEMS_SUCCESSFUL; } 12cfae: c9 leave 12cfaf: c3 ret 0010bf98 : */ rtems_status_code rtems_clock_set( rtems_time_of_day *time_buffer ) { 10bf98: 55 push %ebp 10bf99: 89 e5 mov %esp,%ebp 10bf9b: 53 push %ebx 10bf9c: 83 ec 14 sub $0x14,%esp 10bf9f: 8b 5d 08 mov 0x8(%ebp),%ebx struct timespec newtime; if ( !time_buffer ) 10bfa2: 85 db test %ebx,%ebx 10bfa4: 74 66 je 10c00c return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { 10bfa6: 83 ec 0c sub $0xc,%esp 10bfa9: 53 push %ebx 10bfaa: e8 39 01 00 00 call 10c0e8 <_TOD_Validate> 10bfaf: 83 c4 10 add $0x10,%esp 10bfb2: 84 c0 test %al,%al 10bfb4: 75 0a jne 10bfc0 10bfb6: b8 14 00 00 00 mov $0x14,%eax _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 10bfbb: 8b 5d fc mov -0x4(%ebp),%ebx 10bfbe: c9 leave 10bfbf: c3 ret if ( !time_buffer ) return RTEMS_INVALID_ADDRESS; if ( _TOD_Validate( time_buffer ) ) { newtime.tv_sec = _TOD_To_seconds( time_buffer ); 10bfc0: 83 ec 0c sub $0xc,%esp 10bfc3: 53 push %ebx 10bfc4: e8 93 00 00 00 call 10c05c <_TOD_To_seconds> 10bfc9: 89 45 f0 mov %eax,-0x10(%ebp) newtime.tv_nsec = time_buffer->ticks * 10bfcc: 8b 43 18 mov 0x18(%ebx),%eax 10bfcf: 0f af 05 2c 42 12 00 imul 0x12422c,%eax 10bfd6: 8d 04 80 lea (%eax,%eax,4),%eax 10bfd9: 8d 04 80 lea (%eax,%eax,4),%eax 10bfdc: 8d 04 80 lea (%eax,%eax,4),%eax 10bfdf: c1 e0 03 shl $0x3,%eax 10bfe2: 89 45 f4 mov %eax,-0xc(%ebp) rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10bfe5: a1 98 01 13 00 mov 0x130198,%eax 10bfea: 40 inc %eax 10bfeb: a3 98 01 13 00 mov %eax,0x130198 rtems_configuration_get_nanoseconds_per_tick(); _Thread_Disable_dispatch(); _TOD_Set( &newtime ); 10bff0: 8d 45 f0 lea -0x10(%ebp),%eax 10bff3: 89 04 24 mov %eax,(%esp) 10bff6: e8 41 18 00 00 call 10d83c <_TOD_Set> _Thread_Enable_dispatch(); 10bffb: e8 04 2b 00 00 call 10eb04 <_Thread_Enable_dispatch> 10c000: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10c002: 83 c4 10 add $0x10,%esp } return RTEMS_INVALID_CLOCK; } 10c005: 8b 5d fc mov -0x4(%ebp),%ebx 10c008: c9 leave 10c009: c3 ret 10c00a: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_time_of_day *time_buffer ) { struct timespec newtime; if ( !time_buffer ) 10c00c: b8 09 00 00 00 mov $0x9,%eax _TOD_Set( &newtime ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } return RTEMS_INVALID_CLOCK; } 10c011: 8b 5d fc mov -0x4(%ebp),%ebx 10c014: c9 leave 10c015: c3 ret 0010aeb0 : * error code - if unsuccessful */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { 10aeb0: 55 push %ebp 10aeb1: 89 e5 mov %esp,%ebp 10aeb3: 8b 45 08 mov 0x8(%ebp),%eax if ( !routine ) 10aeb6: 85 c0 test %eax,%eax 10aeb8: 74 0a je 10aec4 return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine; 10aeba: a3 24 55 12 00 mov %eax,0x125524 10aebf: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 10aec1: c9 leave 10aec2: c3 ret 10aec3: 90 nop <== NOT EXECUTED */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) { if ( !routine ) 10aec4: b0 09 mov $0x9,%al return RTEMS_INVALID_ADDRESS; _Watchdog_Nanoseconds_since_tick_handler = routine; return RTEMS_SUCCESSFUL; } 10aec6: c9 leave 10aec7: c3 ret 0010aec8 : * * NOTE: This routine only works for leap-years through 2099. */ rtems_status_code rtems_clock_tick( void ) { 10aec8: 55 push %ebp 10aec9: 89 e5 mov %esp,%ebp 10aecb: 83 ec 08 sub $0x8,%esp _TOD_Tickle_ticks(); 10aece: e8 f5 13 00 00 call 10c2c8 <_TOD_Tickle_ticks> */ RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void ) { _Watchdog_Tickle( &_Watchdog_Ticks_chain ); 10aed3: 83 ec 0c sub $0xc,%esp 10aed6: 68 38 54 12 00 push $0x125438 10aedb: e8 94 35 00 00 call 10e474 <_Watchdog_Tickle> _Watchdog_Tickle_ticks(); _Thread_Tickle_timeslice(); 10aee0: e8 3b 30 00 00 call 10df20 <_Thread_Tickle_timeslice> * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) { return ( _Context_Switch_necessary ); 10aee5: a0 28 54 12 00 mov 0x125428,%al if ( _Thread_Is_context_switch_necessary() && 10aeea: 83 c4 10 add $0x10,%esp 10aeed: 84 c0 test %al,%al 10aeef: 74 09 je 10aefa * otherwise. */ RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void ) { return ( _Thread_Dispatch_disable_level == 0 ); 10aef1: a1 58 53 12 00 mov 0x125358,%eax 10aef6: 85 c0 test %eax,%eax 10aef8: 74 06 je 10af00 _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); return RTEMS_SUCCESSFUL; } 10aefa: 31 c0 xor %eax,%eax 10aefc: c9 leave 10aefd: c3 ret 10aefe: 66 90 xchg %ax,%ax <== NOT EXECUTED _Thread_Tickle_timeslice(); if ( _Thread_Is_context_switch_necessary() && _Thread_Is_dispatching_enabled() ) _Thread_Dispatch(); 10af00: e8 97 23 00 00 call 10d29c <_Thread_Dispatch> return RTEMS_SUCCESSFUL; } 10af05: 31 c0 xor %eax,%eax 10af07: c9 leave 10af08: c3 ret 0010870c : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 10870c: 55 push %ebp 10870d: 89 e5 mov %esp,%ebp 10870f: 57 push %edi 108710: 56 push %esi 108711: 53 push %ebx 108712: 83 ec 6c sub $0x6c,%esp 108715: 8b 7d 08 mov 0x8(%ebp),%edi Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 108718: 8b 45 0c mov 0xc(%ebp),%eax 10871b: 85 c0 test %eax,%eax 10871d: 0f 84 5f 01 00 00 je 108882 * 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 ); 108723: 83 ec 0c sub $0xc,%esp 108726: 8d 45 d8 lea -0x28(%ebp),%eax 108729: 50 push %eax 10872a: e8 81 50 00 00 call 10d7b0 <_TOD_Get_uptime> _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 10872f: 83 c4 0c add $0xc,%esp 108732: 8d 55 d0 lea -0x30(%ebp),%edx 108735: 52 push %edx 108736: 8d 4d d8 lea -0x28(%ebp),%ecx 108739: 51 push %ecx 10873a: 68 8c 04 13 00 push $0x13048c 10873f: e8 38 72 00 00 call 10f97c <_Timespec_Subtract> } } } #endif (*print)( 108744: 5b pop %ebx 108745: 5e pop %esi 108746: 68 f4 1b 12 00 push $0x121bf4 10874b: 57 push %edi 10874c: ff 55 0c call *0xc(%ebp) 10874f: c7 45 a4 01 00 00 00 movl $0x1,-0x5c(%ebp) 108756: 83 c4 10 add $0x10,%esp ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 108759: 8b 5d a4 mov -0x5c(%ebp),%ebx 10875c: 8b 04 9d 6c 01 13 00 mov 0x13016c(,%ebx,4),%eax 108763: 85 c0 test %eax,%eax 108765: 0f 84 ed 00 00 00 je 108858 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 10876b: 8b 70 04 mov 0x4(%eax),%esi if ( information ) { 10876e: 85 f6 test %esi,%esi 108770: 0f 84 e2 00 00 00 je 108858 for ( i=1 ; i <= information->maximum ; i++ ) { 108776: 66 83 7e 10 00 cmpw $0x0,0x10(%esi) 10877b: 0f 84 d7 00 00 00 je 108858 108781: 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 ); 108786: 89 5d 94 mov %ebx,-0x6c(%ebp) 108789: eb 4b jmp 1087d6 10878b: 90 nop <== NOT EXECUTED }; _Timestamp_Divide( &ran, &total, &ival, &fval ); 10878c: 8d 5d e0 lea -0x20(%ebp),%ebx 10878f: 53 push %ebx 108790: 8d 45 e4 lea -0x1c(%ebp),%eax 108793: 50 push %eax 108794: 8d 55 d0 lea -0x30(%ebp),%edx 108797: 52 push %edx 108798: 8d 4d c8 lea -0x38(%ebp),%ecx 10879b: 51 push %ecx 10879c: e8 07 71 00 00 call 10f8a8 <_Timespec_Divide> /* * Print the information */ (*print)( context, 1087a1: 58 pop %eax 1087a2: 5a pop %edx 1087a3: ff 75 e0 pushl -0x20(%ebp) 1087a6: ff 75 e4 pushl -0x1c(%ebp) 1087a9: ba d3 4d 62 10 mov $0x10624dd3,%edx 1087ae: 8b 45 cc mov -0x34(%ebp),%eax 1087b1: f7 e2 mul %edx 1087b3: c1 ea 06 shr $0x6,%edx 1087b6: 52 push %edx 1087b7: ff 75 c8 pushl -0x38(%ebp) 1087ba: 68 67 1e 12 00 push $0x121e67 1087bf: 57 push %edi 1087c0: ff 55 0c call *0xc(%ebp) 1087c3: 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++ ) { 1087c6: ff 45 94 incl -0x6c(%ebp) 1087c9: 0f b7 46 10 movzwl 0x10(%esi),%eax 1087cd: 3b 45 94 cmp -0x6c(%ebp),%eax 1087d0: 0f 82 82 00 00 00 jb 108858 the_thread = (Thread_Control *)information->local_table[ i ]; 1087d6: 8b 46 1c mov 0x1c(%esi),%eax 1087d9: 8b 4d 94 mov -0x6c(%ebp),%ecx 1087dc: 8b 14 88 mov (%eax,%ecx,4),%edx if ( !the_thread ) 1087df: 85 d2 test %edx,%edx 1087e1: 74 e3 je 1087c6 continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 1087e3: 51 push %ecx 1087e4: 8d 5d b3 lea -0x4d(%ebp),%ebx 1087e7: 53 push %ebx 1087e8: 6a 0d push $0xd 1087ea: ff 72 08 pushl 0x8(%edx) 1087ed: 89 55 a0 mov %edx,-0x60(%ebp) 1087f0: e8 83 3d 00 00 call 10c578 (*print)( 1087f5: 53 push %ebx 1087f6: 8b 55 a0 mov -0x60(%ebp),%edx 1087f9: ff 72 08 pushl 0x8(%edx) 1087fc: 68 54 1e 12 00 push $0x121e54 108801: 57 push %edi 108802: 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; 108805: 8b 55 a0 mov -0x60(%ebp),%edx 108808: 8b 8a 84 00 00 00 mov 0x84(%edx),%ecx 10880e: 8b 9a 88 00 00 00 mov 0x88(%edx),%ebx 108814: 89 4d c8 mov %ecx,-0x38(%ebp) 108817: 89 5d cc mov %ebx,-0x34(%ebp) if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 10881a: 83 c4 20 add $0x20,%esp 10881d: a1 58 02 13 00 mov 0x130258,%eax 108822: 8b 40 08 mov 0x8(%eax),%eax 108825: 3b 42 08 cmp 0x8(%edx),%eax 108828: 0f 85 5e ff ff ff jne 10878c Timestamp_Control used; _Timestamp_Subtract( 10882e: 52 push %edx 10882f: 8d 5d c0 lea -0x40(%ebp),%ebx 108832: 53 push %ebx 108833: 8d 45 d8 lea -0x28(%ebp),%eax 108836: 50 push %eax 108837: 68 60 02 13 00 push $0x130260 10883c: e8 3b 71 00 00 call 10f97c <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); 108841: 59 pop %ecx 108842: 58 pop %eax 108843: 53 push %ebx 108844: 8d 4d c8 lea -0x38(%ebp),%ecx 108847: 51 push %ecx 108848: e8 1f 70 00 00 call 10f86c <_Timespec_Add_to> 10884d: 83 c4 10 add $0x10,%esp 108850: e9 37 ff ff ff jmp 10878c 108855: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { 108858: ff 45 a4 incl -0x5c(%ebp) " ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; 10885b: 83 7d a4 05 cmpl $0x5,-0x5c(%ebp) 10885f: 0f 85 f4 fe ff ff jne 108759 } } } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( 108865: ba d3 4d 62 10 mov $0x10624dd3,%edx 10886a: 8b 45 d4 mov -0x2c(%ebp),%eax 10886d: f7 e2 mul %edx 10886f: c1 ea 06 shr $0x6,%edx 108872: 52 push %edx 108873: ff 75 d0 pushl -0x30(%ebp) 108876: 68 68 1d 12 00 push $0x121d68 10887b: 57 push %edi 10887c: ff 55 0c call *0xc(%ebp) 10887f: 83 c4 10 add $0x10,%esp "-------------------------------------------------------------------------------\n", _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset, total_units ); #endif } 108882: 8d 65 f4 lea -0xc(%ebp),%esp 108885: 5b pop %ebx 108886: 5e pop %esi 108887: 5f pop %edi 108888: c9 leave 108889: c3 ret 001120b8 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 1120b8: 55 push %ebp <== NOT EXECUTED 1120b9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 1120bb: 53 push %ebx <== NOT EXECUTED 1120bc: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 1120bf: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 1120c2: 68 c0 00 12 00 push $0x1200c0 <== NOT EXECUTED 1120c7: e8 1c 00 00 00 call 1120e8 <== NOT EXECUTED 1120cc: 89 c3 mov %eax,%ebx <== NOT EXECUTED 1120ce: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1120d1: 85 c0 test %eax,%eax <== NOT EXECUTED 1120d3: 74 07 je 1120dc <== NOT EXECUTED { errno = rc; 1120d5: e8 1e 03 00 00 call 1123f8 <__errno> <== NOT EXECUTED 1120da: 89 18 mov %ebx,(%eax) <== NOT EXECUTED return -1; } return -1; } 1120dc: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 1120e1: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 1120e4: c9 leave <== NOT EXECUTED 1120e5: c3 ret <== NOT EXECUTED 0010cc64 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { 10cc64: 55 push %ebp <== NOT EXECUTED 10cc65: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10cc67: 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( 10cc6a: 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); 10cc6d: 8b 55 0c mov 0xc(%ebp),%edx <== NOT EXECUTED 10cc70: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 10cc73: e8 34 fe ff ff call 10caac <== NOT EXECUTED va_end(arglist); return chars_written; } 10cc78: c9 leave <== NOT EXECUTED 10cc79: c3 ret <== NOT EXECUTED 0010b090 : rtems_status_code rtems_event_send( rtems_id id, rtems_event_set event_in ) { 10b090: 55 push %ebp 10b091: 89 e5 mov %esp,%ebp 10b093: 53 push %ebx 10b094: 83 ec 1c sub $0x1c,%esp register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; the_thread = _Thread_Get( id, &location ); 10b097: 8d 45 f4 lea -0xc(%ebp),%eax 10b09a: 50 push %eax 10b09b: ff 75 08 pushl 0x8(%ebp) 10b09e: e8 79 23 00 00 call 10d41c <_Thread_Get> switch ( location ) { 10b0a3: 83 c4 10 add $0x10,%esp 10b0a6: 8b 55 f4 mov -0xc(%ebp),%edx 10b0a9: 85 d2 test %edx,%edx 10b0ab: 75 2b jne 10b0d8 case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 10b0ad: 8b 90 f0 00 00 00 mov 0xf0(%eax),%edx rtems_event_set *the_event_set ) { ISR_Level level; _ISR_Disable( level ); 10b0b3: 9c pushf 10b0b4: fa cli 10b0b5: 59 pop %ecx *the_event_set |= the_new_events; 10b0b6: 8b 5d 0c mov 0xc(%ebp),%ebx 10b0b9: 09 1a or %ebx,(%edx) _ISR_Enable( level ); 10b0bb: 51 push %ecx 10b0bc: 9d popf _Event_sets_Post( event_in, &api->pending_events ); _Event_Surrender( the_thread ); 10b0bd: 83 ec 0c sub $0xc,%esp 10b0c0: 50 push %eax 10b0c1: e8 1e 00 00 00 call 10b0e4 <_Event_Surrender> _Thread_Enable_dispatch(); 10b0c6: e8 2d 23 00 00 call 10d3f8 <_Thread_Enable_dispatch> 10b0cb: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10b0cd: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b0d0: 8b 5d fc mov -0x4(%ebp),%ebx 10b0d3: c9 leave 10b0d4: c3 ret 10b0d5: 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 ) { 10b0d8: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b0dd: 8b 5d fc mov -0x4(%ebp),%ebx 10b0e0: c9 leave 10b0e1: c3 ret 00110774 : rtems_status_code rtems_extension_create( rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id ) { 110774: 55 push %ebp 110775: 89 e5 mov %esp,%ebp 110777: 57 push %edi 110778: 56 push %esi 110779: 53 push %ebx 11077a: 83 ec 1c sub $0x1c,%esp 11077d: 8b 75 0c mov 0xc(%ebp),%esi 110780: 8b 5d 10 mov 0x10(%ebp),%ebx Extension_Control *the_extension; if ( !id ) 110783: 85 db test %ebx,%ebx 110785: 0f 84 85 00 00 00 je 110810 return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 11078b: 8b 45 08 mov 0x8(%ebp),%eax 11078e: 85 c0 test %eax,%eax 110790: 75 0e jne 1107a0 110792: b8 03 00 00 00 mov $0x3,%eax ); *id = the_extension->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 110797: 8d 65 f4 lea -0xc(%ebp),%esp 11079a: 5b pop %ebx 11079b: 5e pop %esi 11079c: 5f pop %edi 11079d: c9 leave 11079e: c3 ret 11079f: 90 nop <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 1107a0: a1 f8 39 13 00 mov 0x1339f8,%eax 1107a5: 40 inc %eax 1107a6: a3 f8 39 13 00 mov %eax,0x1339f8 #ifndef __EXTENSION_MANAGER_inl #define __EXTENSION_MANAGER_inl RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void ) { return (Extension_Control *) _Objects_Allocate( &_Extension_Information ); 1107ab: 83 ec 0c sub $0xc,%esp 1107ae: 68 80 3c 13 00 push $0x133c80 1107b3: e8 18 0c 00 00 call 1113d0 <_Objects_Allocate> _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { 1107b8: 83 c4 10 add $0x10,%esp 1107bb: 85 c0 test %eax,%eax 1107bd: 74 45 je 110804 RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table( User_extensions_Control *extension, const User_extensions_Table *extension_table ) { extension->Callouts = *extension_table; 1107bf: 8d 78 24 lea 0x24(%eax),%edi 1107c2: b9 08 00 00 00 mov $0x8,%ecx 1107c7: f3 a5 rep movsl %ds:(%esi),%es:(%edi) _User_extensions_Add_set( extension ); 1107c9: 83 ec 0c sub $0xc,%esp 1107cc: 8d 50 10 lea 0x10(%eax),%edx 1107cf: 52 push %edx 1107d0: 89 45 e4 mov %eax,-0x1c(%ebp) 1107d3: e8 c8 25 00 00 call 112da0 <_User_extensions_Add_set> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 1107d8: 8b 45 e4 mov -0x1c(%ebp),%eax 1107db: 8b 50 08 mov 0x8(%eax),%edx 1107de: 0f b7 f2 movzwl %dx,%esi 1107e1: 8b 0d 9c 3c 13 00 mov 0x133c9c,%ecx 1107e7: 89 04 b1 mov %eax,(%ecx,%esi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 1107ea: 8b 4d 08 mov 0x8(%ebp),%ecx 1107ed: 89 48 0c mov %ecx,0xc(%eax) &_Extension_Information, &the_extension->Object, (Objects_Name) name ); *id = the_extension->Object.id; 1107f0: 89 13 mov %edx,(%ebx) _Thread_Enable_dispatch(); 1107f2: e8 39 19 00 00 call 112130 <_Thread_Enable_dispatch> 1107f7: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 1107f9: 83 c4 10 add $0x10,%esp } 1107fc: 8d 65 f4 lea -0xc(%ebp),%esp 1107ff: 5b pop %ebx 110800: 5e pop %esi 110801: 5f pop %edi 110802: c9 leave 110803: c3 ret _Thread_Disable_dispatch(); /* to prevent deletion */ the_extension = _Extension_Allocate(); if ( !the_extension ) { _Thread_Enable_dispatch(); 110804: e8 27 19 00 00 call 112130 <_Thread_Enable_dispatch> 110809: b8 05 00 00 00 mov $0x5,%eax return RTEMS_TOO_MANY; 11080e: eb 87 jmp 110797 rtems_id *id ) { Extension_Control *the_extension; if ( !id ) 110810: b8 09 00 00 00 mov $0x9,%eax 110815: eb 80 jmp 110797 00110818 : #include rtems_status_code rtems_extension_delete( rtems_id id ) { 110818: 55 push %ebp 110819: 89 e5 mov %esp,%ebp 11081b: 53 push %ebx 11081c: 83 ec 18 sub $0x18,%esp RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get ( Objects_Id id, Objects_Locations *location ) { return (Extension_Control *) 11081f: 8d 45 f4 lea -0xc(%ebp),%eax 110822: 50 push %eax 110823: ff 75 08 pushl 0x8(%ebp) 110826: 68 80 3c 13 00 push $0x133c80 11082b: e8 50 10 00 00 call 111880 <_Objects_Get> 110830: 89 c3 mov %eax,%ebx Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { 110832: 83 c4 10 add $0x10,%esp 110835: 8b 55 f4 mov -0xc(%ebp),%edx 110838: 85 d2 test %edx,%edx 11083a: 75 38 jne 110874 case OBJECTS_LOCAL: _User_extensions_Remove_set( &the_extension->Extension ); 11083c: 83 ec 0c sub $0xc,%esp 11083f: 8d 40 10 lea 0x10(%eax),%eax 110842: 50 push %eax 110843: e8 58 26 00 00 call 112ea0 <_User_extensions_Remove_set> _Objects_Close( &_Extension_Information, &the_extension->Object ); 110848: 59 pop %ecx 110849: 58 pop %eax 11084a: 53 push %ebx 11084b: 68 80 3c 13 00 push $0x133c80 110850: e8 f7 0b 00 00 call 11144c <_Objects_Close> RTEMS_INLINE_ROUTINE void _Extension_Free ( Extension_Control *the_extension ) { _Objects_Free( &_Extension_Information, &the_extension->Object ); 110855: 58 pop %eax 110856: 5a pop %edx 110857: 53 push %ebx 110858: 68 80 3c 13 00 push $0x133c80 11085d: e8 ee 0e 00 00 call 111750 <_Objects_Free> _Extension_Free( the_extension ); _Thread_Enable_dispatch(); 110862: e8 c9 18 00 00 call 112130 <_Thread_Enable_dispatch> 110867: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 110869: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11086c: 8b 5d fc mov -0x4(%ebp),%ebx 11086f: c9 leave 110870: c3 ret 110871: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED { Extension_Control *the_extension; Objects_Locations location; the_extension = _Extension_Get( id, &location ); switch ( location ) { 110874: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 110879: 8b 5d fc mov -0x4(%ebp),%ebx 11087c: c9 leave 11087d: c3 ret 00107f68 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 107f68: 55 push %ebp 107f69: 89 e5 mov %esp,%ebp 107f6b: 57 push %edi 107f6c: 56 push %esi 107f6d: 53 push %ebx 107f6e: 83 ec 1c sub $0x1c,%esp 107f71: 8b 55 08 mov 0x8(%ebp),%edx 107f74: 8b 45 0c mov 0xc(%ebp),%eax 107f77: 89 45 e4 mov %eax,-0x1c(%ebp) 107f7a: 8b 45 10 mov 0x10(%ebp),%eax 107f7d: 89 45 e0 mov %eax,-0x20(%ebp) 107f80: 8b 45 14 mov 0x14(%ebp),%eax 107f83: 8b 5d 18 mov 0x18(%ebp),%ebx /* * Verify Input parameters. */ if ( !pathname ) 107f86: 85 d2 test %edx,%edx 107f88: 0f 84 80 00 00 00 je 10800e rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 107f8e: 85 c0 test %eax,%eax 107f90: 74 64 je 107ff6 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 107f92: 8a 0a mov (%edx),%cl 107f94: 80 f9 2f cmp $0x2f,%cl 107f97: 74 09 je 107fa2 107f99: 80 f9 5c cmp $0x5c,%cl 107f9c: 74 04 je 107fa2 107f9e: 84 c9 test %cl,%cl 107fa0: 75 3e jne 107fe0 107fa2: 8b 35 18 30 12 00 mov 0x123018,%esi 107fa8: 83 c6 18 add $0x18,%esi 107fab: b9 05 00 00 00 mov $0x5,%ecx 107fb0: 89 c7 mov %eax,%edi 107fb2: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 107fb4: b1 01 mov $0x1,%cl 107fb6: 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], 107fbb: 89 5d 18 mov %ebx,0x18(%ebp) 107fbe: 89 45 14 mov %eax,0x14(%ebp) 107fc1: 8b 45 e0 mov -0x20(%ebp),%eax 107fc4: 89 45 10 mov %eax,0x10(%ebp) 107fc7: 8b 45 e4 mov -0x1c(%ebp),%eax 107fca: 29 f0 sub %esi,%eax 107fcc: 89 45 0c mov %eax,0xc(%ebp) 107fcf: 01 ca add %ecx,%edx 107fd1: 89 55 08 mov %edx,0x8(%ebp) pathnamelen - i, flags, pathloc, follow_link ); } 107fd4: 83 c4 1c add $0x1c,%esp 107fd7: 5b pop %ebx 107fd8: 5e pop %esi 107fd9: 5f pop %edi 107fda: 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], 107fdb: e9 b4 fe ff ff jmp 107e94 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 107fe0: 8b 35 18 30 12 00 mov 0x123018,%esi 107fe6: 83 c6 04 add $0x4,%esi 107fe9: b9 05 00 00 00 mov $0x5,%ecx 107fee: 89 c7 mov %eax,%edi 107ff0: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 107ff2: 31 f6 xor %esi,%esi 107ff4: eb c5 jmp 107fbb if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 107ff6: e8 fd a3 00 00 call 1123f8 <__errno> <== NOT EXECUTED 107ffb: 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 ); } 108001: b8 ff ff ff ff mov $0xffffffff,%eax 108006: 83 c4 1c add $0x1c,%esp 108009: 5b pop %ebx 10800a: 5e pop %esi 10800b: 5f pop %edi 10800c: c9 leave 10800d: c3 ret /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 10800e: e8 e5 a3 00 00 call 1123f8 <__errno> 108013: c7 00 0e 00 00 00 movl $0xe,(%eax) 108019: eb e6 jmp 108001 00107e94 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 107e94: 55 push %ebp 107e95: 89 e5 mov %esp,%ebp 107e97: 57 push %edi 107e98: 56 push %esi 107e99: 53 push %ebx 107e9a: 83 ec 1c sub $0x1c,%esp 107e9d: 8b 45 08 mov 0x8(%ebp),%eax 107ea0: 8b 4d 0c mov 0xc(%ebp),%ecx 107ea3: 8b 7d 10 mov 0x10(%ebp),%edi 107ea6: 8b 5d 14 mov 0x14(%ebp),%ebx 107ea9: 8b 55 18 mov 0x18(%ebp),%edx 107eac: 89 55 e4 mov %edx,-0x1c(%ebp) /* * Verify Input parameters. */ if ( !pathname ) 107eaf: 85 c0 test %eax,%eax 107eb1: 0f 84 8c 00 00 00 je 107f43 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 107eb7: 85 db test %ebx,%ebx 107eb9: 0f 84 96 00 00 00 je 107f55 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) 107ebf: 8b 53 0c mov 0xc(%ebx),%edx 107ec2: 8b 12 mov (%edx),%edx 107ec4: 85 d2 test %edx,%edx 107ec6: 74 69 je 107f31 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); 107ec8: 53 push %ebx 107ec9: 57 push %edi 107eca: 51 push %ecx 107ecb: 50 push %eax 107ecc: ff d2 call *%edx 107ece: 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 ) { 107ed0: 83 c4 10 add $0x10,%esp 107ed3: 85 c0 test %eax,%eax 107ed5: 75 25 jne 107efc 107ed7: 8b 45 e4 mov -0x1c(%ebp),%eax 107eda: 85 c0 test %eax,%eax 107edc: 74 1e je 107efc if ( !pathloc->ops->node_type_h ){ 107ede: 8b 53 0c mov 0xc(%ebx),%edx 107ee1: 8b 42 10 mov 0x10(%edx),%eax 107ee4: 85 c0 test %eax,%eax 107ee6: 74 39 je 107f21 rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 107ee8: 83 ec 0c sub $0xc,%esp 107eeb: 53 push %ebx 107eec: ff d0 call *%eax if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 107eee: 83 e8 03 sub $0x3,%eax 107ef1: 83 c4 10 add $0x10,%esp 107ef4: 83 f8 01 cmp $0x1,%eax 107ef7: 76 0f jbe 107f08 107ef9: 8d 76 00 lea 0x0(%esi),%esi result = (*pathloc->ops->eval_link_h)( pathloc, flags ); } } return result; } 107efc: 89 f0 mov %esi,%eax 107efe: 8d 65 f4 lea -0xc(%ebp),%esp 107f01: 5b pop %ebx 107f02: 5e pop %esi 107f03: 5f pop %edi 107f04: c9 leave 107f05: c3 ret 107f06: 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 ){ 107f08: 8b 53 0c mov 0xc(%ebx),%edx 107f0b: 8b 42 34 mov 0x34(%edx),%eax 107f0e: 85 c0 test %eax,%eax 107f10: 74 0f je 107f21 * 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 ); 107f12: 89 7d 0c mov %edi,0xc(%ebp) 107f15: 89 5d 08 mov %ebx,0x8(%ebp) } } return result; } 107f18: 8d 65 f4 lea -0xc(%ebp),%esp 107f1b: 5b pop %ebx 107f1c: 5e pop %esi 107f1d: 5f pop %edi 107f1e: 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 ); 107f1f: 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 ); 107f21: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 107f24: 85 c0 test %eax,%eax <== NOT EXECUTED 107f26: 74 09 je 107f31 <== NOT EXECUTED 107f28: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107f2b: 53 push %ebx <== NOT EXECUTED 107f2c: ff d0 call *%eax <== NOT EXECUTED 107f2e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 107f31: e8 c2 a4 00 00 call 1123f8 <__errno> <== NOT EXECUTED 107f36: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 107f3c: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 107f41: eb b9 jmp 107efc <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 107f43: e8 b0 a4 00 00 call 1123f8 <__errno> <== NOT EXECUTED 107f48: c7 00 0e 00 00 00 movl $0xe,(%eax) <== NOT EXECUTED 107f4e: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 107f53: eb a7 jmp 107efc <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 107f55: e8 9e a4 00 00 call 1123f8 <__errno> <== NOT EXECUTED 107f5a: c7 00 05 00 00 00 movl $0x5,(%eax) <== NOT EXECUTED 107f60: be ff ff ff ff mov $0xffffffff,%esi <== NOT EXECUTED 107f65: eb 95 jmp 107efc <== NOT EXECUTED 00107d08 : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 107d08: 55 push %ebp 107d09: 89 e5 mov %esp,%ebp 107d0b: 57 push %edi 107d0c: 56 push %esi 107d0d: 53 push %ebx 107d0e: 83 ec 2c sub $0x2c,%esp /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 107d11: a1 18 30 12 00 mov 0x123018,%eax 107d16: c7 40 2c 12 00 00 00 movl $0x12,0x2c(%eax) init_fs_mount_table(); 107d1d: e8 36 07 00 00 call 108458 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 107d22: a1 ec df 11 00 mov 0x11dfec,%eax 107d27: 85 c0 test %eax,%eax 107d29: 0f 84 b2 00 00 00 je 107de1 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 107d2f: a1 54 11 12 00 mov 0x121154,%eax status = mount( 107d34: 83 ec 0c sub $0xc,%esp 107d37: ff 70 0c pushl 0xc(%eax) 107d3a: ff 70 08 pushl 0x8(%eax) 107d3d: ff 70 04 pushl 0x4(%eax) 107d40: ff 30 pushl (%eax) 107d42: 8d 45 e4 lea -0x1c(%ebp),%eax 107d45: 50 push %eax 107d46: e8 35 07 00 00 call 108480 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 107d4b: 83 c4 20 add $0x20,%esp 107d4e: 40 inc %eax 107d4f: 0f 84 a6 00 00 00 je 107dfb rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 107d55: 8b 3d 18 30 12 00 mov 0x123018,%edi 107d5b: 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; 107d61: 83 c7 18 add $0x18,%edi 107d64: 8b 75 e4 mov -0x1c(%ebp),%esi 107d67: 83 c6 1c add $0x1c,%esi 107d6a: b9 05 00 00 00 mov $0x5,%ecx 107d6f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 107d71: 83 ec 0c sub $0xc,%esp 107d74: 6a 00 push $0x0 107d76: 8d 5d d0 lea -0x30(%ebp),%ebx 107d79: 53 push %ebx 107d7a: 6a 00 push $0x0 107d7c: 6a 01 push $0x1 107d7e: 68 33 f9 11 00 push $0x11f933 107d83: e8 e0 01 00 00 call 107f68 rtems_filesystem_root = loc; 107d88: 8b 3d 18 30 12 00 mov 0x123018,%edi 107d8e: 83 c7 18 add $0x18,%edi 107d91: b9 05 00 00 00 mov $0x5,%ecx 107d96: 89 de mov %ebx,%esi 107d98: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 107d9a: 83 c4 14 add $0x14,%esp 107d9d: 6a 00 push $0x0 107d9f: 53 push %ebx 107da0: 6a 00 push $0x0 107da2: 6a 01 push $0x1 107da4: 68 33 f9 11 00 push $0x11f933 107da9: e8 ba 01 00 00 call 107f68 rtems_filesystem_current = loc; 107dae: 8b 3d 18 30 12 00 mov 0x123018,%edi 107db4: 83 c7 04 add $0x4,%edi 107db7: b9 05 00 00 00 mov $0x5,%ecx 107dbc: 89 de mov %ebx,%esi 107dbe: 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); 107dc0: 83 c4 18 add $0x18,%esp 107dc3: 68 ff 01 00 00 push $0x1ff 107dc8: 68 35 f9 11 00 push $0x11f935 107dcd: e8 5a 05 00 00 call 10832c if ( status != 0 ) 107dd2: 83 c4 10 add $0x10,%esp 107dd5: 85 c0 test %eax,%eax 107dd7: 75 15 jne 107dee * 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. */ } 107dd9: 8d 65 f4 lea -0xc(%ebp),%esp 107ddc: 5b pop %ebx 107ddd: 5e pop %esi 107dde: 5f pop %edi 107ddf: c9 leave 107de0: c3 ret /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); 107de1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107de4: 68 01 00 cd ab push $0xabcd0001 <== NOT EXECUTED 107de9: e8 ea 3d 00 00 call 10bbd8 <== NOT EXECUTED * created that way by the IMFS. */ status = mkdir( "/dev", 0777); if ( status != 0 ) rtems_fatal_error_occurred( 0xABCD0003 ); 107dee: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107df1: 68 03 00 cd ab push $0xabcd0003 <== NOT EXECUTED 107df6: e8 dd 3d 00 00 call 10bbd8 <== NOT EXECUTED status = mount( &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); 107dfb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107dfe: 68 02 00 cd ab push $0xabcd0002 <== NOT EXECUTED 107e03: e8 d0 3d 00 00 call 10bbd8 <== NOT EXECUTED 00110410 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 110410: 55 push %ebp <== NOT EXECUTED 110411: 89 e5 mov %esp,%ebp <== NOT EXECUTED 110413: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 110416: 8b 10 mov (%eax),%edx <== NOT EXECUTED 110418: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 11041b: 3b 10 cmp (%eax),%edx <== NOT EXECUTED 11041d: 0f 94 c0 sete %al <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 110420: c9 leave <== NOT EXECUTED 110421: c3 ret <== NOT EXECUTED 00107e08 : int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) { 107e08: 55 push %ebp 107e09: 89 e5 mov %esp,%ebp 107e0b: 53 push %ebx 107e0c: 8b 4d 08 mov 0x8(%ebp),%ecx 107e0f: 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 ) ) 107e12: 8a 11 mov (%ecx),%dl 107e14: 84 d2 test %dl,%dl 107e16: 74 27 je 107e3f 107e18: 85 db test %ebx,%ebx 107e1a: 74 23 je 107e3f 107e1c: 31 c0 xor %eax,%eax 107e1e: 66 90 xchg %ax,%ax 107e20: 80 fa 2f cmp $0x2f,%dl 107e23: 74 0b je 107e30 107e25: 80 fa 5c cmp $0x5c,%dl 107e28: 74 06 je 107e30 pathname++; pathnamelen--; stripped++; } return stripped; } 107e2a: 5b pop %ebx 107e2b: c9 leave 107e2c: c3 ret 107e2d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) { pathname++; pathnamelen--; stripped++; 107e30: 40 inc %eax { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 107e31: 8a 14 01 mov (%ecx,%eax,1),%dl 107e34: 84 d2 test %dl,%dl 107e36: 74 f2 je 107e2a 107e38: 39 c3 cmp %eax,%ebx 107e3a: 75 e4 jne 107e20 pathname++; pathnamelen--; stripped++; } return stripped; } 107e3c: 5b pop %ebx <== NOT EXECUTED 107e3d: c9 leave <== NOT EXECUTED 107e3e: c3 ret <== NOT EXECUTED { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 107e3f: 31 c0 xor %eax,%eax 107e41: eb e7 jmp 107e2a <== NOT EXECUTED 00111b8c : rtems_status_code rtems_io_close( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 111b8c: 55 push %ebp 111b8d: 89 e5 mov %esp,%ebp 111b8f: 56 push %esi 111b90: 53 push %ebx 111b91: 8b 45 08 mov 0x8(%ebp),%eax 111b94: 8b 4d 0c mov 0xc(%ebp),%ecx 111b97: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111b9a: 39 05 a0 56 12 00 cmp %eax,0x1256a0 111ba0: 76 22 jbe 111bc4 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].close_entry; 111ba2: 8d 34 40 lea (%eax,%eax,2),%esi 111ba5: 8b 15 a4 56 12 00 mov 0x1256a4,%edx 111bab: 8b 54 f2 08 mov 0x8(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 111baf: 85 d2 test %edx,%edx 111bb1: 74 1d je 111bd0 111bb3: 89 5d 10 mov %ebx,0x10(%ebp) 111bb6: 89 4d 0c mov %ecx,0xc(%ebp) 111bb9: 89 45 08 mov %eax,0x8(%ebp) } 111bbc: 5b pop %ebx 111bbd: 5e pop %esi 111bbe: 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; 111bbf: ff e2 jmp *%edx 111bc1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111bc4: 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; } 111bc9: 5b pop %ebx 111bca: 5e pop %esi 111bcb: c9 leave 111bcc: c3 ret 111bcd: 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; 111bd0: 31 c0 xor %eax,%eax } 111bd2: 5b pop %ebx 111bd3: 5e pop %esi 111bd4: c9 leave 111bd5: c3 ret 00111bd8 : rtems_status_code rtems_io_control( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 111bd8: 55 push %ebp 111bd9: 89 e5 mov %esp,%ebp 111bdb: 56 push %esi 111bdc: 53 push %ebx 111bdd: 8b 45 08 mov 0x8(%ebp),%eax 111be0: 8b 4d 0c mov 0xc(%ebp),%ecx 111be3: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111be6: 39 05 a0 56 12 00 cmp %eax,0x1256a0 111bec: 76 22 jbe 111c10 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].control_entry; 111bee: 8d 34 40 lea (%eax,%eax,2),%esi 111bf1: 8b 15 a4 56 12 00 mov 0x1256a4,%edx 111bf7: 8b 54 f2 14 mov 0x14(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 111bfb: 85 d2 test %edx,%edx 111bfd: 74 1d je 111c1c 111bff: 89 5d 10 mov %ebx,0x10(%ebp) 111c02: 89 4d 0c mov %ecx,0xc(%ebp) 111c05: 89 45 08 mov %eax,0x8(%ebp) } 111c08: 5b pop %ebx 111c09: 5e pop %esi 111c0a: 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; 111c0b: ff e2 jmp *%edx 111c0d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111c10: 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; } 111c15: 5b pop %ebx 111c16: 5e pop %esi 111c17: c9 leave 111c18: c3 ret 111c19: 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; 111c1c: 31 c0 xor %eax,%eax } 111c1e: 5b pop %ebx 111c1f: 5e pop %esi 111c20: c9 leave 111c21: c3 ret 0010ffd8 : rtems_status_code rtems_io_initialize( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 10ffd8: 55 push %ebp 10ffd9: 89 e5 mov %esp,%ebp 10ffdb: 56 push %esi 10ffdc: 53 push %ebx 10ffdd: 8b 45 08 mov 0x8(%ebp),%eax 10ffe0: 8b 4d 0c mov 0xc(%ebp),%ecx 10ffe3: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 10ffe6: 39 05 a0 56 12 00 cmp %eax,0x1256a0 10ffec: 76 1e jbe 11000c return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].initialization_entry; 10ffee: 8d 34 40 lea (%eax,%eax,2),%esi 10fff1: 8b 15 a4 56 12 00 mov 0x1256a4,%edx 10fff7: 8b 14 f2 mov (%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 10fffa: 85 d2 test %edx,%edx 10fffc: 74 1a je 110018 10fffe: 89 5d 10 mov %ebx,0x10(%ebp) 110001: 89 4d 0c mov %ecx,0xc(%ebp) 110004: 89 45 08 mov %eax,0x8(%ebp) } 110007: 5b pop %ebx 110008: 5e pop %esi 110009: 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; 11000a: ff e2 jmp *%edx void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 11000c: 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; } 110011: 5b pop %ebx 110012: 5e pop %esi 110013: c9 leave 110014: c3 ret 110015: 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; 110018: 31 c0 xor %eax,%eax } 11001a: 5b pop %ebx 11001b: 5e pop %esi 11001c: c9 leave 11001d: c3 ret 00107b9c : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 107b9c: 55 push %ebp <== NOT EXECUTED 107b9d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 107b9f: 57 push %edi <== NOT EXECUTED 107ba0: 56 push %esi <== NOT EXECUTED 107ba1: 53 push %ebx <== NOT EXECUTED 107ba2: 83 ec 48 sub $0x48,%esp <== NOT EXECUTED 107ba5: 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 ); 107ba8: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 107bad: 89 f7 mov %esi,%edi <== NOT EXECUTED 107baf: 31 c0 xor %eax,%eax <== NOT EXECUTED 107bb1: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 107bb3: f7 d1 not %ecx <== NOT EXECUTED 107bb5: 49 dec %ecx <== NOT EXECUTED 107bb6: 6a 01 push $0x1 <== NOT EXECUTED 107bb8: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED 107bbb: 53 push %ebx <== NOT EXECUTED 107bbc: 6a 00 push $0x0 <== NOT EXECUTED 107bbe: 51 push %ecx <== NOT EXECUTED 107bbf: 56 push %esi <== NOT EXECUTED 107bc0: e8 a3 03 00 00 call 107f68 <== NOT EXECUTED 107bc5: 89 c7 mov %eax,%edi <== NOT EXECUTED the_jnode = loc.node_access; 107bc7: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED if ( !loc.ops->node_type_h ) { 107bca: 8b 4d e0 mov -0x20(%ebp),%ecx <== NOT EXECUTED 107bcd: 8b 41 10 mov 0x10(%ecx),%eax <== NOT EXECUTED 107bd0: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 107bd3: 85 c0 test %eax,%eax <== NOT EXECUTED 107bd5: 74 41 je 107c18 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } node_type = (*loc.ops->node_type_h)( &loc ); 107bd7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107bda: 53 push %ebx <== NOT EXECUTED 107bdb: 89 55 c4 mov %edx,-0x3c(%ebp) <== NOT EXECUTED 107bde: ff d0 call *%eax <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 107be0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 107be3: 85 ff test %edi,%edi <== NOT EXECUTED 107be5: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED 107be8: 74 56 je 107c40 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 107bea: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 107bed: 85 c0 test %eax,%eax <== NOT EXECUTED 107bef: 0f 84 93 00 00 00 je 107c88 <== NOT EXECUTED 107bf5: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 107bf8: 85 c0 test %eax,%eax <== NOT EXECUTED 107bfa: 0f 84 88 00 00 00 je 107c88 <== NOT EXECUTED 107c00: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107c03: 53 push %ebx <== NOT EXECUTED 107c04: ff d0 call *%eax <== NOT EXECUTED 107c06: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED 107c0b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); return RTEMS_SUCCESSFUL; } 107c0e: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 107c11: 5b pop %ebx <== NOT EXECUTED 107c12: 5e pop %esi <== NOT EXECUTED 107c13: 5f pop %edi <== NOT EXECUTED 107c14: c9 leave <== NOT EXECUTED 107c15: c3 ret <== NOT EXECUTED 107c16: 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 ); 107c18: 8b 41 1c mov 0x1c(%ecx),%eax <== NOT EXECUTED 107c1b: 85 c0 test %eax,%eax <== NOT EXECUTED 107c1d: 74 09 je 107c28 <== NOT EXECUTED 107c1f: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107c22: 53 push %ebx <== NOT EXECUTED 107c23: ff d0 call *%eax <== NOT EXECUTED 107c25: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 107c28: e8 cb a7 00 00 call 1123f8 <__errno> <== NOT EXECUTED 107c2d: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 107c33: 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; } 107c38: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 107c3b: 5b pop %ebx <== NOT EXECUTED 107c3c: 5e pop %esi <== NOT EXECUTED 107c3d: 5f pop %edi <== NOT EXECUTED 107c3e: c9 leave <== NOT EXECUTED 107c3f: 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 ) { 107c40: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED 107c43: 75 a5 jne 107bea <== NOT EXECUTED rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; 107c45: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 107c48: 89 31 mov %esi,(%ecx) <== NOT EXECUTED device_info->device_name_length = strlen( name ); 107c4a: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 107c4f: 89 f7 mov %esi,%edi <== NOT EXECUTED 107c51: 31 c0 xor %eax,%eax <== NOT EXECUTED 107c53: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 107c55: f7 d1 not %ecx <== NOT EXECUTED 107c57: 49 dec %ecx <== NOT EXECUTED 107c58: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 107c5b: 89 48 04 mov %ecx,0x4(%eax) <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 107c5e: 8b 42 50 mov 0x50(%edx),%eax <== NOT EXECUTED 107c61: 8b 4d 0c mov 0xc(%ebp),%ecx <== NOT EXECUTED 107c64: 89 41 08 mov %eax,0x8(%ecx) <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 107c67: 8b 42 54 mov 0x54(%edx),%eax <== NOT EXECUTED 107c6a: 89 41 0c mov %eax,0xc(%ecx) <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 107c6d: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 107c70: 85 c0 test %eax,%eax <== NOT EXECUTED 107c72: 74 21 je 107c95 <== NOT EXECUTED 107c74: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 107c77: 85 c0 test %eax,%eax <== NOT EXECUTED 107c79: 74 1a je 107c95 <== NOT EXECUTED 107c7b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 107c7e: 53 push %ebx <== NOT EXECUTED 107c7f: ff d0 call *%eax <== NOT EXECUTED 107c81: 31 c0 xor %eax,%eax <== NOT EXECUTED 107c83: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 107c86: eb 86 jmp 107c0e <== NOT EXECUTED 107c88: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 107c8d: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 107c90: 5b pop %ebx <== NOT EXECUTED 107c91: 5e pop %esi <== NOT EXECUTED 107c92: 5f pop %edi <== NOT EXECUTED 107c93: c9 leave <== NOT EXECUTED 107c94: 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 ); 107c95: 31 c0 xor %eax,%eax <== NOT EXECUTED 107c97: e9 72 ff ff ff jmp 107c0e <== NOT EXECUTED 00111c24 : rtems_status_code rtems_io_open( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 111c24: 55 push %ebp 111c25: 89 e5 mov %esp,%ebp 111c27: 56 push %esi 111c28: 53 push %ebx 111c29: 8b 45 08 mov 0x8(%ebp),%eax 111c2c: 8b 4d 0c mov 0xc(%ebp),%ecx 111c2f: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111c32: 39 05 a0 56 12 00 cmp %eax,0x1256a0 111c38: 76 22 jbe 111c5c return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].open_entry; 111c3a: 8d 34 40 lea (%eax,%eax,2),%esi 111c3d: 8b 15 a4 56 12 00 mov 0x1256a4,%edx 111c43: 8b 54 f2 04 mov 0x4(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 111c47: 85 d2 test %edx,%edx 111c49: 74 1d je 111c68 111c4b: 89 5d 10 mov %ebx,0x10(%ebp) 111c4e: 89 4d 0c mov %ecx,0xc(%ebp) 111c51: 89 45 08 mov %eax,0x8(%ebp) } 111c54: 5b pop %ebx 111c55: 5e pop %esi 111c56: 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; 111c57: ff e2 jmp *%edx 111c59: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111c5c: 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; } 111c61: 5b pop %ebx 111c62: 5e pop %esi 111c63: c9 leave 111c64: c3 ret 111c65: 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; 111c68: 31 c0 xor %eax,%eax } 111c6a: 5b pop %ebx 111c6b: 5e pop %esi 111c6c: c9 leave 111c6d: c3 ret 00111c70 : rtems_status_code rtems_io_read( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 111c70: 55 push %ebp 111c71: 89 e5 mov %esp,%ebp 111c73: 56 push %esi 111c74: 53 push %ebx 111c75: 8b 45 08 mov 0x8(%ebp),%eax 111c78: 8b 4d 0c mov 0xc(%ebp),%ecx 111c7b: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111c7e: 39 05 a0 56 12 00 cmp %eax,0x1256a0 111c84: 76 22 jbe 111ca8 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].read_entry; 111c86: 8d 34 40 lea (%eax,%eax,2),%esi 111c89: 8b 15 a4 56 12 00 mov 0x1256a4,%edx 111c8f: 8b 54 f2 0c mov 0xc(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 111c93: 85 d2 test %edx,%edx 111c95: 74 1d je 111cb4 111c97: 89 5d 10 mov %ebx,0x10(%ebp) 111c9a: 89 4d 0c mov %ecx,0xc(%ebp) 111c9d: 89 45 08 mov %eax,0x8(%ebp) } 111ca0: 5b pop %ebx 111ca1: 5e pop %esi 111ca2: 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; 111ca3: ff e2 jmp *%edx 111ca5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111ca8: 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; } 111cad: 5b pop %ebx 111cae: 5e pop %esi 111caf: c9 leave 111cb0: c3 ret 111cb1: 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; 111cb4: 31 c0 xor %eax,%eax } 111cb6: 5b pop %ebx 111cb7: 5e pop %esi 111cb8: c9 leave 111cb9: c3 ret 0010d3c0 : 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 ) { 10d3c0: 55 push %ebp 10d3c1: 89 e5 mov %esp,%ebp 10d3c3: 57 push %edi 10d3c4: 56 push %esi 10d3c5: 53 push %ebx 10d3c6: 83 ec 0c sub $0xc,%esp 10d3c9: 8b 5d 08 mov 0x8(%ebp),%ebx 10d3cc: 8b 75 0c mov 0xc(%ebp),%esi 10d3cf: 8b 55 10 mov 0x10(%ebp),%edx rtems_device_major_number major_limit = _IO_Number_of_drivers; 10d3d2: a1 80 b9 12 00 mov 0x12b980,%eax if ( rtems_interrupt_is_in_progress() ) 10d3d7: 8b 0d 74 b6 12 00 mov 0x12b674,%ecx 10d3dd: 85 c9 test %ecx,%ecx 10d3df: 0f 85 ab 00 00 00 jne 10d490 return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) 10d3e5: 85 d2 test %edx,%edx 10d3e7: 0f 84 e3 00 00 00 je 10d4d0 return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; 10d3ed: 89 02 mov %eax,(%edx) if ( driver_table == NULL ) 10d3ef: 85 f6 test %esi,%esi 10d3f1: 0f 84 d9 00 00 00 je 10d4d0 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 10d3f7: 8b 3e mov (%esi),%edi 10d3f9: 85 ff test %edi,%edi 10d3fb: 0f 84 c3 00 00 00 je 10d4c4 return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) 10d401: 39 d8 cmp %ebx,%eax 10d403: 76 7b jbe 10d480 rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10d405: a1 d8 b5 12 00 mov 0x12b5d8,%eax 10d40a: 40 inc %eax 10d40b: a3 d8 b5 12 00 mov %eax,0x12b5d8 return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { 10d410: 85 db test %ebx,%ebx 10d412: 0f 85 88 00 00 00 jne 10d4a0 static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; 10d418: 8b 0d 80 b9 12 00 mov 0x12b980,%ecx rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { 10d41e: 85 c9 test %ecx,%ecx 10d420: 0f 84 b7 00 00 00 je 10d4dd 10d426: 8b 3d 84 b9 12 00 mov 0x12b984,%edi 10d42c: 89 f8 mov %edi,%eax 10d42e: eb 08 jmp 10d438 10d430: 43 inc %ebx 10d431: 83 c0 18 add $0x18,%eax 10d434: 39 d9 cmp %ebx,%ecx 10d436: 76 0b jbe 10d443 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 10d438: 83 38 00 cmpl $0x0,(%eax) 10d43b: 75 f3 jne 10d430 10d43d: 83 78 04 00 cmpl $0x0,0x4(%eax) 10d441: 75 ed jne 10d430 if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 10d443: 89 1a mov %ebx,(%edx) if ( m != n ) 10d445: 39 d9 cmp %ebx,%ecx 10d447: 0f 84 97 00 00 00 je 10d4e4 10d44d: 8d 04 5b lea (%ebx,%ebx,2),%eax 10d450: 8d 04 c7 lea (%edi,%eax,8),%eax } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 10d453: b9 06 00 00 00 mov $0x6,%ecx 10d458: 89 c7 mov %eax,%edi 10d45a: f3 a5 rep movsl %ds:(%esi),%es:(%edi) _Thread_Enable_dispatch(); 10d45c: e8 37 19 00 00 call 10ed98 <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); 10d461: c7 45 10 00 00 00 00 movl $0x0,0x10(%ebp) 10d468: c7 45 0c 00 00 00 00 movl $0x0,0xc(%ebp) 10d46f: 89 5d 08 mov %ebx,0x8(%ebp) } 10d472: 83 c4 0c add $0xc,%esp 10d475: 5b pop %ebx 10d476: 5e pop %esi 10d477: 5f pop %edi 10d478: c9 leave _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 10d479: e9 3a 7a 00 00 jmp 114eb8 10d47e: 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 ) 10d480: 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 ); } 10d485: 83 c4 0c add $0xc,%esp 10d488: 5b pop %ebx 10d489: 5e pop %esi 10d48a: 5f pop %edi 10d48b: c9 leave 10d48c: c3 ret 10d48d: 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() ) 10d490: 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 ); } 10d495: 83 c4 0c add $0xc,%esp 10d498: 5b pop %ebx 10d499: 5e pop %esi 10d49a: 5f pop %edi 10d49b: c9 leave 10d49c: c3 ret 10d49d: 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; 10d4a0: 8d 04 5b lea (%ebx,%ebx,2),%eax 10d4a3: c1 e0 03 shl $0x3,%eax 10d4a6: 03 05 84 b9 12 00 add 0x12b984,%eax static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 10d4ac: 8b 38 mov (%eax),%edi 10d4ae: 85 ff test %edi,%edi 10d4b0: 74 3e je 10d4f0 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(); 10d4b2: e8 e1 18 00 00 call 10ed98 <_Thread_Enable_dispatch> 10d4b7: 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 ); } 10d4bc: 83 c4 0c add $0xc,%esp 10d4bf: 5b pop %ebx 10d4c0: 5e pop %esi 10d4c1: 5f pop %edi 10d4c2: c9 leave 10d4c3: 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; 10d4c4: 8b 4e 04 mov 0x4(%esi),%ecx 10d4c7: 85 c9 test %ecx,%ecx 10d4c9: 0f 85 32 ff ff ff jne 10d401 10d4cf: 90 nop _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 10d4d0: b8 09 00 00 00 mov $0x9,%eax } 10d4d5: 83 c4 0c add $0xc,%esp 10d4d8: 5b pop %ebx 10d4d9: 5e pop %esi 10d4da: 5f pop %edi 10d4db: c9 leave 10d4dc: c3 ret if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 10d4dd: c7 02 00 00 00 00 movl $0x0,(%edx) <== NOT EXECUTED 10d4e3: 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(); 10d4e4: e8 af 18 00 00 call 10ed98 <_Thread_Enable_dispatch> 10d4e9: b8 05 00 00 00 mov $0x5,%eax return sc; 10d4ee: eb 95 jmp 10d485 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 10d4f0: 8b 48 04 mov 0x4(%eax),%ecx 10d4f3: 85 c9 test %ecx,%ecx 10d4f5: 75 bb jne 10d4b2 if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; 10d4f7: 89 1a mov %ebx,(%edx) 10d4f9: e9 55 ff ff ff jmp 10d453 0010d500 : */ rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { 10d500: 55 push %ebp 10d501: 89 e5 mov %esp,%ebp 10d503: 57 push %edi 10d504: 83 ec 04 sub $0x4,%esp 10d507: 8b 45 08 mov 0x8(%ebp),%eax if ( rtems_interrupt_is_in_progress() ) 10d50a: 8b 15 74 b6 12 00 mov 0x12b674,%edx 10d510: 85 d2 test %edx,%edx 10d512: 75 44 jne 10d558 return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { 10d514: 39 05 80 b9 12 00 cmp %eax,0x12b980 10d51a: 77 0c ja 10d528 10d51c: b8 0d 00 00 00 mov $0xd,%eax return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } 10d521: 5a pop %edx 10d522: 5f pop %edi 10d523: c9 leave 10d524: c3 ret 10d525: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 10d528: 8b 15 d8 b5 12 00 mov 0x12b5d8,%edx 10d52e: 42 inc %edx 10d52f: 89 15 d8 b5 12 00 mov %edx,0x12b5d8 if ( rtems_interrupt_is_in_progress() ) return RTEMS_CALLED_FROM_ISR; if ( major < _IO_Number_of_drivers ) { _Thread_Disable_dispatch(); memset( 10d535: 8d 14 40 lea (%eax,%eax,2),%edx 10d538: c1 e2 03 shl $0x3,%edx 10d53b: 03 15 84 b9 12 00 add 0x12b984,%edx 10d541: b9 18 00 00 00 mov $0x18,%ecx 10d546: 31 c0 xor %eax,%eax 10d548: 89 d7 mov %edx,%edi 10d54a: f3 aa rep stos %al,%es:(%edi) &_IO_Driver_address_table[major], 0, sizeof( rtems_driver_address_table ) ); _Thread_Enable_dispatch(); 10d54c: e8 47 18 00 00 call 10ed98 <_Thread_Enable_dispatch> 10d551: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } 10d553: 5a pop %edx 10d554: 5f pop %edi 10d555: c9 leave 10d556: c3 ret 10d557: 90 nop <== NOT EXECUTED rtems_status_code rtems_io_unregister_driver( rtems_device_major_number major ) { if ( rtems_interrupt_is_in_progress() ) 10d558: b8 12 00 00 00 mov $0x12,%eax return RTEMS_SUCCESSFUL; } return RTEMS_UNSATISFIED; } 10d55d: 5a pop %edx 10d55e: 5f pop %edi 10d55f: c9 leave 10d560: c3 ret 00111cbc : rtems_status_code rtems_io_write( rtems_device_major_number major, rtems_device_minor_number minor, void *argument ) { 111cbc: 55 push %ebp 111cbd: 89 e5 mov %esp,%ebp 111cbf: 56 push %esi 111cc0: 53 push %ebx 111cc1: 8b 45 08 mov 0x8(%ebp),%eax 111cc4: 8b 4d 0c mov 0xc(%ebp),%ecx 111cc7: 8b 5d 10 mov 0x10(%ebp),%ebx rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111cca: 39 05 a0 56 12 00 cmp %eax,0x1256a0 111cd0: 76 22 jbe 111cf4 return RTEMS_INVALID_NUMBER; callout = _IO_Driver_address_table[major].write_entry; 111cd2: 8d 34 40 lea (%eax,%eax,2),%esi 111cd5: 8b 15 a4 56 12 00 mov 0x1256a4,%edx 111cdb: 8b 54 f2 10 mov 0x10(%edx,%esi,8),%edx return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; 111cdf: 85 d2 test %edx,%edx 111ce1: 74 1d je 111d00 111ce3: 89 5d 10 mov %ebx,0x10(%ebp) 111ce6: 89 4d 0c mov %ecx,0xc(%ebp) 111ce9: 89 45 08 mov %eax,0x8(%ebp) } 111cec: 5b pop %ebx 111ced: 5e pop %esi 111cee: 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; 111cef: ff e2 jmp *%edx 111cf1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED void *argument ) { rtems_device_driver_entry callout; if ( major >= _IO_Number_of_drivers ) 111cf4: 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; } 111cf9: 5b pop %ebx 111cfa: 5e pop %esi 111cfb: c9 leave 111cfc: c3 ret 111cfd: 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; 111d00: 31 c0 xor %eax,%eax } 111d02: 5b pop %ebx 111d03: 5e pop %esi 111d04: c9 leave 111d05: c3 ret 00108098 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 108098: 55 push %ebp 108099: 89 e5 mov %esp,%ebp 10809b: 53 push %ebx 10809c: 83 ec 04 sub $0x4,%esp rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 10809f: a1 4c 11 12 00 mov 0x12114c,%eax 1080a4: 85 c0 test %eax,%eax 1080a6: 74 4d je 1080f5 { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 1080a8: 83 ec 08 sub $0x8,%esp 1080ab: 6a 40 push $0x40 1080ad: 50 push %eax 1080ae: e8 b1 76 00 00 call 10f764 1080b3: 89 c2 mov %eax,%edx 1080b5: a3 c0 51 12 00 mov %eax,0x1251c0 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 1080ba: 83 c4 10 add $0x10,%esp 1080bd: 85 c0 test %eax,%eax 1080bf: 74 71 je 108132 rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; 1080c1: a3 c4 51 12 00 mov %eax,0x1251c4 for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 1080c6: 8b 1d 4c 11 12 00 mov 0x12114c,%ebx 1080cc: 83 fb 01 cmp $0x1,%ebx 1080cf: 76 1d jbe 1080ee 1080d1: 8d 50 40 lea 0x40(%eax),%edx 1080d4: b9 01 00 00 00 mov $0x1,%ecx 1080d9: 8d 76 00 lea 0x0(%esi),%esi iop->data1 = iop + 1; 1080dc: 89 52 f4 mov %edx,-0xc(%edx) 1080df: 83 c2 40 add $0x40,%edx 1080e2: 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++) 1080e3: 39 d9 cmp %ebx,%ecx 1080e5: 75 f5 jne 1080dc 1080e7: c1 e1 06 shl $0x6,%ecx 1080ea: 8d 54 01 c0 lea -0x40(%ecx,%eax,1),%edx iop->data1 = iop + 1; iop->data1 = NULL; 1080ee: 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( 1080f5: 83 ec 0c sub $0xc,%esp 1080f8: 68 c8 51 12 00 push $0x1251c8 1080fd: 6a 00 push $0x0 1080ff: 6a 54 push $0x54 108101: 6a 01 push $0x1 108103: 68 4f 49 42 4c push $0x4c42494f 108108: e8 1b 32 00 00 call 10b328 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 10810d: 83 c4 20 add $0x20,%esp 108110: 85 c0 test %eax,%eax 108112: 75 15 jne 108129 /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) 108114: a1 48 11 12 00 mov 0x121148,%eax 108119: 85 c0 test %eax,%eax 10811b: 74 07 je 108124 (* rtems_fs_init_helper)(); } 10811d: 8b 5d fc mov -0x4(%ebp),%ebx 108120: c9 leave /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) (* rtems_fs_init_helper)(); 108121: ff e0 jmp *%eax 108123: 90 nop <== NOT EXECUTED } 108124: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 108127: c9 leave <== NOT EXECUTED 108128: 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 ); 108129: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10812c: 50 push %eax <== NOT EXECUTED 10812d: e8 a6 3a 00 00 call 10bbd8 <== 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); 108132: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108135: 6a 1a push $0x1a <== NOT EXECUTED 108137: e8 9c 3a 00 00 call 10bbd8 <== NOT EXECUTED 0010f9c0 : */ int rtems_libio_is_file_open( void *node_access ) { 10f9c0: 55 push %ebp 10f9c1: 89 e5 mov %esp,%ebp 10f9c3: 53 push %ebx 10f9c4: 83 ec 08 sub $0x8,%esp 10f9c7: 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 ); 10f9ca: 6a 00 push $0x0 10f9cc: 6a 00 push $0x0 10f9ce: ff 35 c8 51 12 00 pushl 0x1251c8 10f9d4: e8 c7 bb ff ff call 10b5a0 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 10f9d9: a1 c0 51 12 00 mov 0x1251c0,%eax 10f9de: 8b 0d 4c 11 12 00 mov 0x12114c,%ecx 10f9e4: 83 c4 10 add $0x10,%esp 10f9e7: 85 c9 test %ecx,%ecx 10f9e9: 74 18 je 10fa03 10f9eb: 31 d2 xor %edx,%edx 10f9ed: eb 04 jmp 10f9f3 10f9ef: 90 nop <== NOT EXECUTED 10f9f0: 83 c0 40 add $0x40,%eax if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 10f9f3: f6 40 15 01 testb $0x1,0x15(%eax) 10f9f7: 74 05 je 10f9fe /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.node_access == node_access ) { 10f9f9: 39 58 18 cmp %ebx,0x18(%eax) 10f9fc: 74 1e je 10fa1c /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 10f9fe: 42 inc %edx 10f9ff: 39 ca cmp %ecx,%edx 10fa01: 72 ed jb 10f9f0 10fa03: 31 db xor %ebx,%ebx break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 10fa05: 83 ec 0c sub $0xc,%esp 10fa08: ff 35 c8 51 12 00 pushl 0x1251c8 10fa0e: e8 89 bc ff ff call 10b69c return result; } 10fa13: 89 d8 mov %ebx,%eax 10fa15: 8b 5d fc mov -0x4(%ebp),%ebx 10fa18: c9 leave 10fa19: c3 ret 10fa1a: 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++){ 10fa1c: bb 01 00 00 00 mov $0x1,%ebx 10fa21: eb e2 jmp 10fa05 0010fa24 : */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) { 10fa24: 55 push %ebp 10fa25: 89 e5 mov %esp,%ebp 10fa27: 53 push %ebx 10fa28: 83 ec 08 sub $0x8,%esp 10fa2b: 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 ); 10fa2e: 6a 00 push $0x0 10fa30: 6a 00 push $0x0 10fa32: ff 35 c8 51 12 00 pushl 0x1251c8 10fa38: e8 63 bb ff ff call 10b5a0 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 10fa3d: a1 c0 51 12 00 mov 0x1251c0,%eax 10fa42: 8b 0d 4c 11 12 00 mov 0x12114c,%ecx 10fa48: 83 c4 10 add $0x10,%esp 10fa4b: 85 c9 test %ecx,%ecx 10fa4d: 74 18 je 10fa67 10fa4f: 31 d2 xor %edx,%edx 10fa51: eb 04 jmp 10fa57 10fa53: 90 nop <== NOT EXECUTED 10fa54: 83 c0 40 add $0x40,%eax if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) { 10fa57: f6 40 15 01 testb $0x1,0x15(%eax) 10fa5b: 74 05 je 10fa62 /* * Check if this node is under the file system that we * are trying to dismount. */ if ( iop->pathinfo.mt_entry == fs_mt_entry ) { 10fa5d: 39 58 28 cmp %ebx,0x28(%eax) 10fa60: 74 1e je 10fa80 /* * Look for any active file descriptor entry. */ for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 10fa62: 42 inc %edx 10fa63: 39 ca cmp %ecx,%edx 10fa65: 72 ed jb 10fa54 10fa67: 31 db xor %ebx,%ebx break; } } } rtems_semaphore_release( rtems_libio_semaphore ); 10fa69: 83 ec 0c sub $0xc,%esp 10fa6c: ff 35 c8 51 12 00 pushl 0x1251c8 10fa72: e8 25 bc ff ff call 10b69c return result; } 10fa77: 89 d8 mov %ebx,%eax 10fa79: 8b 5d fc mov -0x4(%ebp),%ebx 10fa7c: c9 leave 10fa7d: c3 ret 10fa7e: 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++){ 10fa80: bb 01 00 00 00 mov $0x1,%ebx 10fa85: eb e2 jmp 10fa69 0012c66c : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 12c66c: 55 push %ebp 12c66d: 89 e5 mov %esp,%ebp 12c66f: 57 push %edi 12c670: 56 push %esi 12c671: 53 push %ebx 12c672: 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); 12c675: 8d 45 e4 lea -0x1c(%ebp),%eax 12c678: 50 push %eax 12c679: 6a 00 push $0x0 12c67b: 6a 00 push $0x0 12c67d: e8 fe 0e 00 00 call 12d580 if (sc != RTEMS_SUCCESSFUL) return sc; 12c682: 83 c4 10 add $0x10,%esp 12c685: 85 c0 test %eax,%eax 12c687: 0f 85 89 00 00 00 jne 12c716 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 12c68d: 8b 1d 24 83 16 00 mov 0x168324,%ebx 12c693: 81 fb e0 dd 16 00 cmp $0x16dde0,%ebx 12c699: 0f 84 81 00 00 00 je 12c720 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 12c69f: be e0 dd 16 00 mov $0x16dde0,%esi 12c6a4: b9 12 00 00 00 mov $0x12,%ecx 12c6a9: 89 df mov %ebx,%edi 12c6ab: f3 a5 rep movsl %ds:(%esi),%es:(%edi) rtems_current_user_env->task_id=task_id; /* mark the local values*/ 12c6ad: 8b 45 e4 mov -0x1c(%ebp),%eax 12c6b0: 89 03 mov %eax,(%ebx) /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 12c6b2: 8d 7b 18 lea 0x18(%ebx),%edi 12c6b5: 8b 35 ac dd 16 00 mov 0x16ddac,%esi 12c6bb: 83 c6 1c add $0x1c,%esi 12c6be: b1 05 mov $0x5,%cl 12c6c0: 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); 12c6c2: 83 ec 0c sub $0xc,%esp 12c6c5: 6a 00 push $0x0 12c6c7: 8d 5d d0 lea -0x30(%ebp),%ebx 12c6ca: 53 push %ebx 12c6cb: 6a 00 push $0x0 12c6cd: 6a 01 push $0x1 12c6cf: 68 46 44 16 00 push $0x164446 12c6d4: e8 d3 06 fe ff call 10cdac rtems_filesystem_root = loc; 12c6d9: 8b 3d 24 83 16 00 mov 0x168324,%edi 12c6df: 83 c7 18 add $0x18,%edi 12c6e2: b9 05 00 00 00 mov $0x5,%ecx 12c6e7: 89 de mov %ebx,%esi 12c6e9: f3 a5 rep movsl %ds:(%esi),%es:(%edi) rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 12c6eb: 83 c4 14 add $0x14,%esp 12c6ee: 6a 00 push $0x0 12c6f0: 53 push %ebx 12c6f1: 6a 00 push $0x0 12c6f3: 6a 01 push $0x1 12c6f5: 68 46 44 16 00 push $0x164446 12c6fa: e8 ad 06 fe ff call 10cdac rtems_filesystem_current = loc; 12c6ff: 8b 3d 24 83 16 00 mov 0x168324,%edi 12c705: 83 c7 04 add $0x4,%edi 12c708: b9 05 00 00 00 mov $0x5,%ecx 12c70d: 89 de mov %ebx,%esi 12c70f: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12c711: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 12c713: 83 c4 20 add $0x20,%esp } 12c716: 8d 65 f4 lea -0xc(%ebp),%esp 12c719: 5b pop %ebx 12c71a: 5e pop %esi 12c71b: 5f pop %edi 12c71c: c9 leave 12c71d: c3 ret 12c71e: 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)); 12c720: 83 ec 0c sub $0xc,%esp 12c723: 6a 48 push $0x48 12c725: e8 72 0c fe ff call 10d39c 12c72a: 89 c3 mov %eax,%ebx if (!tmp) 12c72c: 83 c4 10 add $0x10,%esp 12c72f: 85 c0 test %eax,%eax 12c731: 74 25 je 12c758 #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); 12c733: 51 push %ecx 12c734: 68 78 c5 12 00 push $0x12c578 12c739: 68 24 83 16 00 push $0x168324 12c73e: 6a 00 push $0x0 12c740: e8 1f 12 00 00 call 12d964 if (sc != RTEMS_SUCCESSFUL) { 12c745: 83 c4 10 add $0x10,%esp 12c748: 85 c0 test %eax,%eax 12c74a: 75 14 jne 12c760 * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 12c74c: 89 1d 24 83 16 00 mov %ebx,0x168324 12c752: e9 48 ff ff ff jmp 12c69f 12c757: 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) 12c758: b8 1a 00 00 00 mov $0x1a,%eax <== NOT EXECUTED 12c75d: eb b7 jmp 12c716 <== NOT EXECUTED 12c75f: 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); 12c760: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c763: 53 push %ebx <== NOT EXECUTED 12c764: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED 12c767: e8 f4 06 fe ff call 10ce60 <== NOT EXECUTED return sc; 12c76c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c76f: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED 12c772: eb a2 jmp 12c716 <== NOT EXECUTED 0012c5d4 : * 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) { 12c5d4: 55 push %ebp <== NOT EXECUTED 12c5d5: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c5d7: 53 push %ebx <== NOT EXECUTED 12c5d8: 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); 12c5db: 8d 45 f0 lea -0x10(%ebp),%eax <== NOT EXECUTED 12c5de: 50 push %eax <== NOT EXECUTED 12c5df: 6a 00 push $0x0 <== NOT EXECUTED 12c5e1: 6a 00 push $0x0 <== NOT EXECUTED 12c5e3: e8 98 0f 00 00 call 12d580 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 12c5e8: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c5eb: 85 c0 test %eax,%eax <== NOT EXECUTED 12c5ed: 75 30 jne 12c61f <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 12c5ef: 8b 1d 24 83 16 00 mov 0x168324,%ebx <== NOT EXECUTED 12c5f5: 8b 03 mov (%ebx),%eax <== NOT EXECUTED 12c5f7: 3b 45 f0 cmp -0x10(%ebp),%eax <== NOT EXECUTED 12c5fa: 74 28 je 12c624 <== 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, 12c5fc: 52 push %edx <== NOT EXECUTED 12c5fd: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 12c600: 50 push %eax <== NOT EXECUTED 12c601: 68 24 83 16 00 push $0x168324 <== NOT EXECUTED 12c606: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 12c609: e8 a6 14 00 00 call 12dab4 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 12c60e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c611: 85 c0 test %eax,%eax <== NOT EXECUTED 12c613: 74 33 je 12c648 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 12c615: c7 05 24 83 16 00 e0 movl $0x16dde0,0x168324 <== NOT EXECUTED 12c61c: dd 16 00 <== NOT EXECUTED return sc; } 12c61f: 8b 5d fc mov -0x4(%ebp),%ebx <== NOT EXECUTED 12c622: c9 leave <== NOT EXECUTED 12c623: 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); 12c624: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c627: 68 24 83 16 00 push $0x168324 <== NOT EXECUTED 12c62c: 6a 00 push $0x0 <== NOT EXECUTED 12c62e: e8 f5 13 00 00 call 12da28 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 12c633: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c636: 85 c0 test %eax,%eax <== NOT EXECUTED 12c638: 75 e5 jne 12c61f <== NOT EXECUTED free_user_env(tmp); 12c63a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c63d: 53 push %ebx <== NOT EXECUTED 12c63e: e8 35 ff ff ff call 12c578 <== NOT EXECUTED 12c643: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c646: eb b4 jmp 12c5fc <== 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); 12c648: 50 push %eax <== NOT EXECUTED 12c649: 68 78 c5 12 00 push $0x12c578 <== NOT EXECUTED 12c64e: 68 24 83 16 00 push $0x168324 <== NOT EXECUTED 12c653: 6a 00 push $0x0 <== NOT EXECUTED 12c655: e8 0a 13 00 00 call 12d964 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 12c65a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c65d: 85 c0 test %eax,%eax <== NOT EXECUTED 12c65f: 75 b4 jne 12c615 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 12c661: 8b 55 f4 mov -0xc(%ebp),%edx <== NOT EXECUTED 12c664: 89 15 24 83 16 00 mov %edx,0x168324 <== NOT EXECUTED /* increase the reference count */ #ifdef HAVE_USERENV_REFCNT rtems_current_user_env->refcnt++; #endif return RTEMS_SUCCESSFUL; 12c66a: eb b3 jmp 12c61f <== NOT EXECUTED 0010f980 : */ uint32_t rtems_libio_to_fcntl_flags( uint32_t flags ) { 10f980: 55 push %ebp 10f981: 89 e5 mov %esp,%ebp 10f983: 8b 55 08 mov 0x8(%ebp),%edx uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 10f986: 89 d0 mov %edx,%eax 10f988: 83 e0 06 and $0x6,%eax 10f98b: 83 f8 06 cmp $0x6,%eax 10f98e: 74 2c je 10f9bc fcntl_flags |= O_RDWR; } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) { 10f990: f6 c2 02 test $0x2,%dl 10f993: 75 23 jne 10f9b8 10f995: 89 d0 mov %edx,%eax <== NOT EXECUTED 10f997: c1 e8 02 shr $0x2,%eax <== NOT EXECUTED 10f99a: 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 ) { 10f99d: f6 c2 01 test $0x1,%dl 10f9a0: 74 03 je 10f9a5 fcntl_flags |= O_NONBLOCK; 10f9a2: 80 cc 40 or $0x40,%ah } if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) { 10f9a5: f6 c6 02 test $0x2,%dh 10f9a8: 74 03 je 10f9ad fcntl_flags |= O_APPEND; 10f9aa: 83 c8 08 or $0x8,%eax } if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) { 10f9ad: 80 e6 04 and $0x4,%dh 10f9b0: 74 03 je 10f9b5 fcntl_flags |= O_CREAT; 10f9b2: 80 cc 02 or $0x2,%ah } return fcntl_flags; } 10f9b5: c9 leave 10f9b6: c3 ret 10f9b7: 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) { 10f9b8: 31 c0 xor %eax,%eax 10f9ba: eb e1 jmp 10f99d uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 10f9bc: b0 02 mov $0x2,%al <== NOT EXECUTED 10f9be: eb dd jmp 10f99d <== NOT EXECUTED 0010d45c : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 10d45c: 55 push %ebp <== NOT EXECUTED 10d45d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10d45f: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 10d462: 8d 45 f4 lea -0xc(%ebp),%eax <== NOT EXECUTED 10d465: 50 push %eax <== NOT EXECUTED 10d466: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 10d469: ff 35 f8 61 16 00 pushl 0x1661f8 <== NOT EXECUTED 10d46f: e8 34 5d 00 00 call 1131a8 <_Protected_heap_Get_block_size> <== NOT EXECUTED 10d474: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10d477: 84 c0 test %al,%al <== NOT EXECUTED 10d479: 74 11 je 10d48c <== NOT EXECUTED MSBUMP(lifetime_freed, size); 10d47b: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED 10d47e: 31 d2 xor %edx,%edx <== NOT EXECUTED 10d480: 01 05 a4 dd 16 00 add %eax,0x16dda4 <== NOT EXECUTED 10d486: 11 15 a8 dd 16 00 adc %edx,0x16dda8 <== NOT EXECUTED } } 10d48c: c9 leave <== NOT EXECUTED 10d48d: c3 ret <== NOT EXECUTED 0010d490 : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 10d490: 55 push %ebp <== NOT EXECUTED 10d491: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10d493: 83 ec 18 sub $0x18,%esp <== NOT EXECUTED 10d496: 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 ) 10d499: 85 c0 test %eax,%eax <== NOT EXECUTED 10d49b: 74 4a je 10d4e7 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 10d49d: 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); 10d4a4: 52 push %edx <== NOT EXECUTED 10d4a5: 8d 55 f4 lea -0xc(%ebp),%edx <== NOT EXECUTED 10d4a8: 52 push %edx <== NOT EXECUTED 10d4a9: 50 push %eax <== NOT EXECUTED 10d4aa: ff 35 f8 61 16 00 pushl 0x1661f8 <== NOT EXECUTED 10d4b0: e8 f3 5c 00 00 call 1131a8 <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 10d4b5: 8b 45 f4 mov -0xc(%ebp),%eax <== NOT EXECUTED 10d4b8: 31 d2 xor %edx,%edx <== NOT EXECUTED 10d4ba: 03 05 9c dd 16 00 add 0x16dd9c,%eax <== NOT EXECUTED 10d4c0: 13 15 a0 dd 16 00 adc 0x16dda0,%edx <== NOT EXECUTED 10d4c6: a3 9c dd 16 00 mov %eax,0x16dd9c <== NOT EXECUTED 10d4cb: 89 15 a0 dd 16 00 mov %edx,0x16dda0 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 10d4d1: 2b 05 a4 dd 16 00 sub 0x16dda4,%eax <== NOT EXECUTED if (current_depth > s->max_depth) 10d4d7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10d4da: 3b 05 98 dd 16 00 cmp 0x16dd98,%eax <== NOT EXECUTED 10d4e0: 76 05 jbe 10d4e7 <== NOT EXECUTED s->max_depth = current_depth; 10d4e2: a3 98 dd 16 00 mov %eax,0x16dd98 <== NOT EXECUTED } 10d4e7: c9 leave <== NOT EXECUTED 10d4e8: c3 ret <== NOT EXECUTED 0010d4ec : #include #include static void rtems_malloc_statistics_initialize( void ) { 10d4ec: 55 push %ebp <== NOT EXECUTED 10d4ed: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10d4ef: 57 push %edi <== NOT EXECUTED /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 10d4f0: ba 80 dd 16 00 mov $0x16dd80,%edx <== NOT EXECUTED 10d4f5: b9 2c 00 00 00 mov $0x2c,%ecx <== NOT EXECUTED 10d4fa: 31 c0 xor %eax,%eax <== NOT EXECUTED 10d4fc: 89 d7 mov %edx,%edi <== NOT EXECUTED 10d4fe: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED } 10d500: 5f pop %edi <== NOT EXECUTED 10d501: c9 leave <== NOT EXECUTED 10d502: c3 ret <== NOT EXECUTED 00114648 : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { 114648: 55 push %ebp 114649: 89 e5 mov %esp,%ebp 11464b: 53 push %ebx 11464c: 83 ec 14 sub $0x14,%esp 11464f: 8b 5d 08 mov 0x8(%ebp),%ebx void *return_this; /* * Parameter error checks */ if ( !pointer ) 114652: 85 db test %ebx,%ebx 114654: 74 5b je 1146b1 return EINVAL; *pointer = NULL; 114656: 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()) && 11465c: 83 3d a0 b7 12 00 03 cmpl $0x3,0x12b7a0 114663: 74 43 je 1146a8 /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 114665: e8 36 4f ff ff call 1095a0 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); 11466a: 6a 00 push $0x0 11466c: ff 75 0c pushl 0xc(%ebp) 11466f: ff 75 10 pushl 0x10(%ebp) 114672: ff 35 d8 72 12 00 pushl 0x1272d8 114678: e8 ef a0 ff ff call 10e76c <_Protected_heap_Allocate_aligned_with_boundary> return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 11467d: 83 c4 10 add $0x10,%esp 114680: 85 c0 test %eax,%eax 114682: 74 38 je 1146bc return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) 114684: 8b 15 88 97 12 00 mov 0x129788,%edx 11468a: 85 d2 test %edx,%edx 11468c: 74 10 je 11469e (*rtems_malloc_statistics_helpers->at_malloc)(pointer); 11468e: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 114691: 53 push %ebx <== NOT EXECUTED 114692: 89 45 f4 mov %eax,-0xc(%ebp) <== NOT EXECUTED 114695: ff 52 04 call *0x4(%edx) <== NOT EXECUTED 114698: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 11469b: 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; 11469e: 89 03 mov %eax,(%ebx) 1146a0: 31 c0 xor %eax,%eax return 0; } 1146a2: 8b 5d fc mov -0x4(%ebp),%ebx 1146a5: c9 leave 1146a6: c3 ret 1146a7: 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()) && 1146a8: e8 9b 4e ff ff call 109548 1146ad: 84 c0 test %al,%al 1146af: 75 b4 jne 114665 if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; return 0; 1146b1: b8 16 00 00 00 mov $0x16,%eax } 1146b6: 8b 5d fc mov -0x4(%ebp),%ebx 1146b9: c9 leave 1146ba: c3 ret 1146bb: 90 nop <== NOT EXECUTED return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) 1146bc: b0 0c mov $0xc,%al 1146be: eb e2 jmp 1146a2 00115f50 : rtems_id id, const void *buffer, size_t size, uint32_t *count ) { 115f50: 55 push %ebp 115f51: 89 e5 mov %esp,%ebp 115f53: 57 push %edi 115f54: 56 push %esi 115f55: 53 push %ebx 115f56: 83 ec 1c sub $0x1c,%esp 115f59: 8b 7d 08 mov 0x8(%ebp),%edi 115f5c: 8b 5d 0c mov 0xc(%ebp),%ebx 115f5f: 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 ) 115f62: 85 db test %ebx,%ebx 115f64: 74 62 je 115fc8 return RTEMS_INVALID_ADDRESS; if ( !count ) 115f66: 85 f6 test %esi,%esi 115f68: 74 5e je 115fc8 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 115f6a: 51 push %ecx 115f6b: 8d 45 e4 lea -0x1c(%ebp),%eax 115f6e: 50 push %eax 115f6f: 57 push %edi 115f70: 68 40 fa 13 00 push $0x13fa40 115f75: e8 ea 4b 00 00 call 11ab64 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 115f7a: 83 c4 10 add $0x10,%esp 115f7d: 8b 55 e4 mov -0x1c(%ebp),%edx 115f80: 85 d2 test %edx,%edx 115f82: 74 10 je 115f94 115f84: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115f89: 8d 65 f4 lea -0xc(%ebp),%esp 115f8c: 5b pop %ebx 115f8d: 5e pop %esi 115f8e: 5f pop %edi 115f8f: c9 leave 115f90: c3 ret 115f91: 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( 115f94: 83 ec 08 sub $0x8,%esp 115f97: 56 push %esi 115f98: 6a 00 push $0x0 115f9a: 57 push %edi 115f9b: ff 75 10 pushl 0x10(%ebp) 115f9e: 53 push %ebx 115f9f: 83 c0 14 add $0x14,%eax 115fa2: 50 push %eax 115fa3: e8 88 34 00 00 call 119430 <_CORE_message_queue_Broadcast> 115fa8: 89 c3 mov %eax,%ebx NULL, #endif count ); _Thread_Enable_dispatch(); 115faa: 83 c4 20 add $0x20,%esp 115fad: e8 62 54 00 00 call 11b414 <_Thread_Enable_dispatch> return _Message_queue_Translate_core_message_queue_return_code( core_status ); 115fb2: 83 ec 0c sub $0xc,%esp 115fb5: 53 push %ebx 115fb6: e8 69 03 00 00 call 116324 <_Message_queue_Translate_core_message_queue_return_code> #endif count ); _Thread_Enable_dispatch(); return 115fbb: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115fbe: 8d 65 f4 lea -0xc(%ebp),%esp 115fc1: 5b pop %ebx 115fc2: 5e pop %esi 115fc3: 5f pop %edi 115fc4: c9 leave 115fc5: c3 ret 115fc6: 66 90 xchg %ax,%ax <== NOT EXECUTED #endif count ); _Thread_Enable_dispatch(); return 115fc8: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115fcd: 8d 65 f4 lea -0xc(%ebp),%esp 115fd0: 5b pop %ebx 115fd1: 5e pop %esi 115fd2: 5f pop %edi 115fd3: c9 leave 115fd4: c3 ret 00113a24 : uint32_t count, size_t max_message_size, rtems_attribute attribute_set, rtems_id *id ) { 113a24: 55 push %ebp 113a25: 89 e5 mov %esp,%ebp 113a27: 57 push %edi 113a28: 56 push %esi 113a29: 53 push %ebx 113a2a: 83 ec 2c sub $0x2c,%esp 113a2d: 8b 5d 08 mov 0x8(%ebp),%ebx 113a30: 8b 75 0c mov 0xc(%ebp),%esi 113a33: 8b 4d 10 mov 0x10(%ebp),%ecx 113a36: 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 ) ) 113a39: 85 db test %ebx,%ebx 113a3b: 74 2f je 113a6c return RTEMS_INVALID_NAME; if ( !id ) 113a3d: 85 ff test %edi,%edi 113a3f: 0f 84 a3 00 00 00 je 113ae8 if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif if ( count == 0 ) 113a45: 85 f6 test %esi,%esi 113a47: 74 13 je 113a5c return RTEMS_INVALID_NUMBER; if ( max_message_size == 0 ) 113a49: 85 c9 test %ecx,%ecx 113a4b: 75 2f jne 113a7c 113a4d: b8 08 00 00 00 mov $0x8,%eax ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 113a52: 8d 65 f4 lea -0xc(%ebp),%esp 113a55: 5b pop %ebx 113a56: 5e pop %esi 113a57: 5f pop %edi 113a58: c9 leave 113a59: c3 ret 113a5a: 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 ) 113a5c: b8 0a 00 00 00 mov $0xa,%eax ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 113a61: 8d 65 f4 lea -0xc(%ebp),%esp 113a64: 5b pop %ebx 113a65: 5e pop %esi 113a66: 5f pop %edi 113a67: c9 leave 113a68: c3 ret 113a69: 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 ) ) 113a6c: b8 03 00 00 00 mov $0x3,%eax ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 113a71: 8d 65 f4 lea -0xc(%ebp),%esp 113a74: 5b pop %ebx 113a75: 5e pop %esi 113a76: 5f pop %edi 113a77: c9 leave 113a78: c3 ret 113a79: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 113a7c: a1 d8 f9 12 00 mov 0x12f9d8,%eax 113a81: 40 inc %eax 113a82: a3 d8 f9 12 00 mov %eax,0x12f9d8 #endif #endif _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); 113a87: 89 4d d4 mov %ecx,-0x2c(%ebp) 113a8a: e8 41 50 00 00 call 118ad0 <_Message_queue_Allocate> 113a8f: 89 c2 mov %eax,%edx if ( !the_message_queue ) { 113a91: 85 c0 test %eax,%eax 113a93: 8b 4d d4 mov -0x2c(%ebp),%ecx 113a96: 74 7c je 113b14 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_message_queue->attribute_set = attribute_set; 113a98: 8b 45 14 mov 0x14(%ebp),%eax 113a9b: 89 42 10 mov %eax,0x10(%edx) if (_Attributes_Is_priority( attribute_set ) ) the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; 113a9e: a8 04 test $0x4,%al 113aa0: 0f 95 c0 setne %al 113aa3: 0f b6 c0 movzbl %al,%eax 113aa6: 89 45 e4 mov %eax,-0x1c(%ebp) else the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; if ( ! _CORE_message_queue_Initialize( 113aa9: 51 push %ecx 113aaa: 56 push %esi 113aab: 8d 45 e4 lea -0x1c(%ebp),%eax 113aae: 50 push %eax 113aaf: 8d 42 14 lea 0x14(%edx),%eax 113ab2: 50 push %eax 113ab3: 89 55 d4 mov %edx,-0x2c(%ebp) 113ab6: e8 a5 10 00 00 call 114b60 <_CORE_message_queue_Initialize> 113abb: 83 c4 10 add $0x10,%esp 113abe: 84 c0 test %al,%al 113ac0: 8b 55 d4 mov -0x2c(%ebp),%edx 113ac3: 75 2f jne 113af4 */ RTEMS_INLINE_ROUTINE void _Message_queue_Free ( Message_queue_Control *the_message_queue ) { _Objects_Free( &_Message_queue_Information, &the_message_queue->Object ); 113ac5: 83 ec 08 sub $0x8,%esp 113ac8: 52 push %edx 113ac9: 68 a0 fc 12 00 push $0x12fca0 113ace: e8 e1 1d 00 00 call 1158b4 <_Objects_Free> _Objects_MP_Close( &_Message_queue_Information, the_message_queue->Object.id); #endif _Message_queue_Free( the_message_queue ); _Thread_Enable_dispatch(); 113ad3: e8 d4 27 00 00 call 1162ac <_Thread_Enable_dispatch> 113ad8: b8 0d 00 00 00 mov $0xd,%eax return RTEMS_UNSATISFIED; 113add: 83 c4 10 add $0x10,%esp 113ae0: e9 6d ff ff ff jmp 113a52 113ae5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED #endif if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 113ae8: b8 09 00 00 00 mov $0x9,%eax 113aed: e9 60 ff ff ff jmp 113a52 113af2: 66 90 xchg %ax,%ax <== NOT EXECUTED #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 113af4: 8b 42 08 mov 0x8(%edx),%eax 113af7: 0f b7 f0 movzwl %ax,%esi 113afa: 8b 0d bc fc 12 00 mov 0x12fcbc,%ecx 113b00: 89 14 b1 mov %edx,(%ecx,%esi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 113b03: 89 5a 0c mov %ebx,0xc(%edx) &_Message_queue_Information, &the_message_queue->Object, (Objects_Name) name ); *id = the_message_queue->Object.id; 113b06: 89 07 mov %eax,(%edi) name, 0 ); #endif _Thread_Enable_dispatch(); 113b08: e8 9f 27 00 00 call 1162ac <_Thread_Enable_dispatch> 113b0d: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 113b0f: e9 3e ff ff ff jmp 113a52 _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate(); if ( !the_message_queue ) { _Thread_Enable_dispatch(); 113b14: e8 93 27 00 00 call 1162ac <_Thread_Enable_dispatch> 113b19: b8 05 00 00 00 mov $0x5,%eax return RTEMS_TOO_MANY; 113b1e: e9 2f ff ff ff jmp 113a52 0011716c : */ rtems_status_code rtems_message_queue_delete( rtems_id id ) { 11716c: 55 push %ebp 11716d: 89 e5 mov %esp,%ebp 11716f: 53 push %ebx 117170: 83 ec 18 sub $0x18,%esp 117173: 8d 45 f4 lea -0xc(%ebp),%eax 117176: 50 push %eax 117177: ff 75 08 pushl 0x8(%ebp) 11717a: 68 20 3d 13 00 push $0x133d20 11717f: e8 fc a6 ff ff call 111880 <_Objects_Get> 117184: 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 ) { 117186: 83 c4 10 add $0x10,%esp 117189: 8b 4d f4 mov -0xc(%ebp),%ecx 11718c: 85 c9 test %ecx,%ecx 11718e: 75 3c jne 1171cc case OBJECTS_LOCAL: _Objects_Close( &_Message_queue_Information, 117190: 83 ec 08 sub $0x8,%esp 117193: 50 push %eax 117194: 68 20 3d 13 00 push $0x133d20 117199: e8 ae a2 ff ff call 11144c <_Objects_Close> &the_message_queue->Object ); _CORE_message_queue_Close( 11719e: 83 c4 0c add $0xc,%esp 1171a1: 6a 05 push $0x5 1171a3: 6a 00 push $0x0 1171a5: 8d 43 14 lea 0x14(%ebx),%eax 1171a8: 50 push %eax 1171a9: e8 0e 05 00 00 call 1176bc <_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 ); 1171ae: 58 pop %eax 1171af: 5a pop %edx 1171b0: 53 push %ebx 1171b1: 68 20 3d 13 00 push $0x133d20 1171b6: e8 95 a5 ff ff call 111750 <_Objects_Free> 0, /* Not used */ 0 ); } #endif _Thread_Enable_dispatch(); 1171bb: e8 70 af ff ff call 112130 <_Thread_Enable_dispatch> 1171c0: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 1171c2: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1171c5: 8b 5d fc mov -0x4(%ebp),%ebx 1171c8: c9 leave 1171c9: c3 ret 1171ca: 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 ) { 1171cc: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1171d1: 8b 5d fc mov -0x4(%ebp),%ebx 1171d4: c9 leave 1171d5: c3 ret 00116144 : rtems_status_code rtems_message_queue_flush( rtems_id id, uint32_t *count ) { 116144: 55 push %ebp 116145: 89 e5 mov %esp,%ebp 116147: 53 push %ebx 116148: 83 ec 14 sub $0x14,%esp 11614b: 8b 5d 0c mov 0xc(%ebp),%ebx register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 11614e: 85 db test %ebx,%ebx 116150: 74 46 je 116198 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 116152: 51 push %ecx 116153: 8d 45 f4 lea -0xc(%ebp),%eax 116156: 50 push %eax 116157: ff 75 08 pushl 0x8(%ebp) 11615a: 68 40 fa 13 00 push $0x13fa40 11615f: e8 00 4a 00 00 call 11ab64 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 116164: 83 c4 10 add $0x10,%esp 116167: 8b 55 f4 mov -0xc(%ebp),%edx 11616a: 85 d2 test %edx,%edx 11616c: 74 0a je 116178 11616e: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116173: 8b 5d fc mov -0x4(%ebp),%ebx 116176: c9 leave 116177: 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 ); 116178: 83 ec 0c sub $0xc,%esp 11617b: 83 c0 14 add $0x14,%eax 11617e: 50 push %eax 11617f: e8 6c 33 00 00 call 1194f0 <_CORE_message_queue_Flush> 116184: 89 03 mov %eax,(%ebx) _Thread_Enable_dispatch(); 116186: e8 89 52 00 00 call 11b414 <_Thread_Enable_dispatch> 11618b: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 11618d: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116190: 8b 5d fc mov -0x4(%ebp),%ebx 116193: c9 leave 116194: c3 ret 116195: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 116198: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11619d: 8b 5d fc mov -0x4(%ebp),%ebx 1161a0: c9 leave 1161a1: c3 ret 001161a4 : rtems_status_code rtems_message_queue_get_number_pending( rtems_id id, uint32_t *count ) { 1161a4: 55 push %ebp 1161a5: 89 e5 mov %esp,%ebp 1161a7: 53 push %ebx 1161a8: 83 ec 14 sub $0x14,%esp 1161ab: 8b 5d 0c mov 0xc(%ebp),%ebx register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 1161ae: 85 db test %ebx,%ebx 1161b0: 74 3a je 1161ec 1161b2: 51 push %ecx 1161b3: 8d 45 f4 lea -0xc(%ebp),%eax 1161b6: 50 push %eax 1161b7: ff 75 08 pushl 0x8(%ebp) 1161ba: 68 40 fa 13 00 push $0x13fa40 1161bf: e8 a0 49 00 00 call 11ab64 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 1161c4: 83 c4 10 add $0x10,%esp 1161c7: 8b 55 f4 mov -0xc(%ebp),%edx 1161ca: 85 d2 test %edx,%edx 1161cc: 74 0a je 1161d8 1161ce: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1161d3: 8b 5d fc mov -0x4(%ebp),%ebx 1161d6: c9 leave 1161d7: 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; 1161d8: 8b 40 5c mov 0x5c(%eax),%eax 1161db: 89 03 mov %eax,(%ebx) _Thread_Enable_dispatch(); 1161dd: e8 32 52 00 00 call 11b414 <_Thread_Enable_dispatch> 1161e2: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1161e4: 8b 5d fc mov -0x4(%ebp),%ebx 1161e7: c9 leave 1161e8: c3 ret 1161e9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { register Message_queue_Control *the_message_queue; Objects_Locations location; if ( !count ) 1161ec: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1161f1: 8b 5d fc mov -0x4(%ebp),%ebx 1161f4: c9 leave 1161f5: c3 ret 00113b48 : void *buffer, size_t *size, rtems_option option_set, rtems_interval timeout ) { 113b48: 55 push %ebp 113b49: 89 e5 mov %esp,%ebp 113b4b: 56 push %esi 113b4c: 53 push %ebx 113b4d: 83 ec 10 sub $0x10,%esp 113b50: 8b 5d 0c mov 0xc(%ebp),%ebx 113b53: 8b 75 10 mov 0x10(%ebp),%esi register Message_queue_Control *the_message_queue; Objects_Locations location; bool wait; if ( !buffer ) 113b56: 85 db test %ebx,%ebx 113b58: 74 6e je 113bc8 return RTEMS_INVALID_ADDRESS; if ( !size ) 113b5a: 85 f6 test %esi,%esi 113b5c: 74 6a je 113bc8 RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 113b5e: 51 push %ecx 113b5f: 8d 45 f4 lea -0xc(%ebp),%eax 113b62: 50 push %eax 113b63: ff 75 08 pushl 0x8(%ebp) 113b66: 68 a0 fc 12 00 push $0x12fca0 113b6b: e8 74 1e 00 00 call 1159e4 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 113b70: 83 c4 10 add $0x10,%esp 113b73: 8b 55 f4 mov -0xc(%ebp),%edx 113b76: 85 d2 test %edx,%edx 113b78: 75 42 jne 113bbc if ( _Options_Is_no_wait( option_set ) ) wait = false; else wait = true; _CORE_message_queue_Seize( 113b7a: 83 ec 08 sub $0x8,%esp 113b7d: ff 75 18 pushl 0x18(%ebp) 113b80: 8b 55 14 mov 0x14(%ebp),%edx 113b83: 83 e2 01 and $0x1,%edx 113b86: 83 f2 01 xor $0x1,%edx 113b89: 52 push %edx 113b8a: 56 push %esi 113b8b: 53 push %ebx 113b8c: ff 70 08 pushl 0x8(%eax) 113b8f: 83 c0 14 add $0x14,%eax 113b92: 50 push %eax 113b93: e8 78 10 00 00 call 114c10 <_CORE_message_queue_Seize> buffer, size, wait, timeout ); _Thread_Enable_dispatch(); 113b98: 83 c4 20 add $0x20,%esp 113b9b: e8 0c 27 00 00 call 1162ac <_Thread_Enable_dispatch> return _Message_queue_Translate_core_message_queue_return_code( 113ba0: 83 ec 0c sub $0xc,%esp 113ba3: a1 98 fa 12 00 mov 0x12fa98,%eax 113ba8: ff 70 34 pushl 0x34(%eax) 113bab: e8 a0 00 00 00 call 113c50 <_Message_queue_Translate_core_message_queue_return_code> 113bb0: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 113bb3: 8d 65 f8 lea -0x8(%ebp),%esp 113bb6: 5b pop %ebx 113bb7: 5e pop %esi 113bb8: c9 leave 113bb9: c3 ret 113bba: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( !size ) return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 113bbc: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 113bc1: 8d 65 f8 lea -0x8(%ebp),%esp 113bc4: 5b pop %ebx 113bc5: 5e pop %esi 113bc6: c9 leave 113bc7: c3 ret size, wait, timeout ); _Thread_Enable_dispatch(); return _Message_queue_Translate_core_message_queue_return_code( 113bc8: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 113bcd: 8d 65 f8 lea -0x8(%ebp),%esp 113bd0: 5b pop %ebx 113bd1: 5e pop %esi 113bd2: c9 leave 113bd3: c3 ret 0010b29c : rtems_status_code rtems_message_queue_send( rtems_id id, const void *buffer, size_t size ) { 10b29c: 55 push %ebp 10b29d: 89 e5 mov %esp,%ebp 10b29f: 56 push %esi 10b2a0: 53 push %ebx 10b2a1: 83 ec 10 sub $0x10,%esp 10b2a4: 8b 75 08 mov 0x8(%ebp),%esi 10b2a7: 8b 5d 0c mov 0xc(%ebp),%ebx register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 10b2aa: 85 db test %ebx,%ebx 10b2ac: 74 5e je 10b30c RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get ( Objects_Id id, Objects_Locations *location ) { return (Message_queue_Control *) 10b2ae: 51 push %ecx 10b2af: 8d 45 f4 lea -0xc(%ebp),%eax 10b2b2: 50 push %eax 10b2b3: 56 push %esi 10b2b4: 68 20 56 12 00 push $0x125620 10b2b9: e8 f2 18 00 00 call 10cbb0 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 10b2be: 83 c4 10 add $0x10,%esp 10b2c1: 8b 55 f4 mov -0xc(%ebp),%edx 10b2c4: 85 d2 test %edx,%edx 10b2c6: 74 0c je 10b2d4 10b2c8: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b2cd: 8d 65 f8 lea -0x8(%ebp),%esp 10b2d0: 5b pop %ebx 10b2d1: 5e pop %esi 10b2d2: c9 leave 10b2d3: c3 ret CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( 10b2d4: 6a 00 push $0x0 10b2d6: 6a 00 push $0x0 10b2d8: 68 ff ff ff 7f push $0x7fffffff 10b2dd: 6a 00 push $0x0 10b2df: 56 push %esi 10b2e0: ff 75 10 pushl 0x10(%ebp) 10b2e3: 53 push %ebx 10b2e4: 83 c0 14 add $0x14,%eax 10b2e7: 50 push %eax 10b2e8: e8 c7 0b 00 00 call 10beb4 <_CORE_message_queue_Submit> 10b2ed: 89 c3 mov %eax,%ebx MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); 10b2ef: 83 c4 20 add $0x20,%esp 10b2f2: e8 01 21 00 00 call 10d3f8 <_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); 10b2f7: 83 ec 0c sub $0xc,%esp 10b2fa: 53 push %ebx 10b2fb: e8 18 00 00 00 call 10b318 <_Message_queue_Translate_core_message_queue_return_code> 10b300: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b303: 8d 65 f8 lea -0x8(%ebp),%esp 10b306: 5b pop %ebx 10b307: 5e pop %esi 10b308: c9 leave 10b309: c3 ret 10b30a: 66 90 xchg %ax,%ax <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 10b30c: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b311: 8d 65 f8 lea -0x8(%ebp),%esp 10b314: 5b pop %ebx 10b315: 5e pop %esi 10b316: c9 leave 10b317: c3 ret 00116334 : rtems_status_code rtems_message_queue_urgent( rtems_id id, const void *buffer, size_t size ) { 116334: 55 push %ebp 116335: 89 e5 mov %esp,%ebp 116337: 56 push %esi 116338: 53 push %ebx 116339: 83 ec 10 sub $0x10,%esp 11633c: 8b 75 08 mov 0x8(%ebp),%esi 11633f: 8b 5d 0c mov 0xc(%ebp),%ebx register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 116342: 85 db test %ebx,%ebx 116344: 74 5e je 1163a4 116346: 51 push %ecx 116347: 8d 45 f4 lea -0xc(%ebp),%eax 11634a: 50 push %eax 11634b: 56 push %esi 11634c: 68 40 fa 13 00 push $0x13fa40 116351: e8 0e 48 00 00 call 11ab64 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { 116356: 83 c4 10 add $0x10,%esp 116359: 8b 55 f4 mov -0xc(%ebp),%edx 11635c: 85 d2 test %edx,%edx 11635e: 74 0c je 11636c 116360: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116365: 8d 65 f8 lea -0x8(%ebp),%esp 116368: 5b pop %ebx 116369: 5e pop %esi 11636a: c9 leave 11636b: c3 ret CORE_message_queue_API_mp_support_callout api_message_queue_mp_support, bool wait, Watchdog_Interval timeout ) { return _CORE_message_queue_Submit( 11636c: 6a 00 push $0x0 11636e: 6a 00 push $0x0 116370: 68 00 00 00 80 push $0x80000000 116375: 6a 00 push $0x0 116377: 56 push %esi 116378: ff 75 10 pushl 0x10(%ebp) 11637b: 53 push %ebx 11637c: 83 c0 14 add $0x14,%eax 11637f: 50 push %eax 116380: e8 5b 33 00 00 call 1196e0 <_CORE_message_queue_Submit> 116385: 89 c3 mov %eax,%ebx id, MESSAGE_QUEUE_MP_HANDLER, false, /* sender does not block */ 0 /* no timeout */ ); _Thread_Enable_dispatch(); 116387: 83 c4 20 add $0x20,%esp 11638a: e8 85 50 00 00 call 11b414 <_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); 11638f: 83 ec 0c sub $0xc,%esp 116392: 53 push %ebx 116393: e8 8c ff ff ff call 116324 <_Message_queue_Translate_core_message_queue_return_code> 116398: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11639b: 8d 65 f8 lea -0x8(%ebp),%esp 11639e: 5b pop %ebx 11639f: 5e pop %esi 1163a0: c9 leave 1163a1: c3 ret 1163a2: 66 90 xchg %ax,%ax <== NOT EXECUTED { register Message_queue_Control *the_message_queue; Objects_Locations location; CORE_message_queue_Status status; if ( !buffer ) 1163a4: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1163a9: 8d 65 f8 lea -0x8(%ebp),%esp 1163ac: 5b pop %ebx 1163ad: 5e pop %esi 1163ae: c9 leave 1163af: c3 ret 0010ccbc : const char *rtems_object_get_api_class_name( int the_api, int the_class ) { 10ccbc: 55 push %ebp 10ccbd: 89 e5 mov %esp,%ebp 10ccbf: 83 ec 08 sub $0x8,%esp 10ccc2: 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 ) 10ccc5: 83 f8 01 cmp $0x1,%eax 10ccc8: 74 2a je 10ccf4 api_assoc = rtems_object_api_internal_assoc; else if ( the_api == OBJECTS_CLASSIC_API ) 10ccca: 83 f8 02 cmp $0x2,%eax 10cccd: 74 09 je 10ccd8 10cccf: b8 f7 2c 12 00 mov $0x122cf7,%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"; } 10ccd4: c9 leave 10ccd5: c3 ret 10ccd6: 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 ) 10ccd8: b8 60 70 12 00 mov $0x127060,%eax else if ( the_api == OBJECTS_ITRON_API ) api_assoc = rtems_object_api_itron_assoc; #endif else return "BAD API"; class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class ); 10ccdd: 83 ec 08 sub $0x8,%esp 10cce0: ff 75 0c pushl 0xc(%ebp) 10cce3: 50 push %eax 10cce4: e8 ab 48 00 00 call 111594 if ( class_assoc ) 10cce9: 83 c4 10 add $0x10,%esp 10ccec: 85 c0 test %eax,%eax 10ccee: 74 0c je 10ccfc return class_assoc->name; 10ccf0: 8b 00 mov (%eax),%eax return "BAD CLASS"; } 10ccf2: c9 leave 10ccf3: c3 ret ) { const rtems_assoc_t *api_assoc; const rtems_assoc_t *class_assoc; if ( the_api == OBJECTS_INTERNAL_API ) 10ccf4: b8 40 70 12 00 mov $0x127040,%eax 10ccf9: eb e2 jmp 10ccdd 10ccfb: 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 ) 10ccfc: b8 ff 2c 12 00 mov $0x122cff,%eax return class_assoc->name; return "BAD CLASS"; } 10cd01: c9 leave 10cd02: c3 ret 0010cd04 : }; const char *rtems_object_get_api_name( int api ) { 10cd04: 55 push %ebp 10cd05: 89 e5 mov %esp,%ebp 10cd07: 83 ec 10 sub $0x10,%esp const rtems_assoc_t *api_assoc; api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api ); 10cd0a: ff 75 08 pushl 0x8(%ebp) 10cd0d: 68 e0 70 12 00 push $0x1270e0 10cd12: e8 7d 48 00 00 call 111594 if ( api_assoc ) 10cd17: 83 c4 10 add $0x10,%esp 10cd1a: 85 c0 test %eax,%eax 10cd1c: 74 06 je 10cd24 return api_assoc->name; 10cd1e: 8b 00 mov (%eax),%eax return "BAD CLASS"; } 10cd20: c9 leave 10cd21: c3 ret 10cd22: 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 ) 10cd24: b8 ff 2c 12 00 mov $0x122cff,%eax return api_assoc->name; return "BAD CLASS"; } 10cd29: c9 leave 10cd2a: c3 ret 0010cd6c : rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) { 10cd6c: 55 push %ebp 10cd6d: 89 e5 mov %esp,%ebp 10cd6f: 57 push %edi 10cd70: 56 push %esi 10cd71: 53 push %ebx 10cd72: 83 ec 0c sub $0xc,%esp 10cd75: 8b 5d 10 mov 0x10(%ebp),%ebx int i; /* * Validate parameters and look up information structure. */ if ( !info ) 10cd78: 85 db test %ebx,%ebx 10cd7a: 74 5c je 10cdd8 return RTEMS_INVALID_ADDRESS; obj_info = _Objects_Get_information( the_api, the_class ); 10cd7c: 83 ec 08 sub $0x8,%esp 10cd7f: ff 75 0c pushl 0xc(%ebp) 10cd82: ff 75 08 pushl 0x8(%ebp) 10cd85: e8 d2 19 00 00 call 10e75c <_Objects_Get_information> if ( !obj_info ) 10cd8a: 83 c4 10 add $0x10,%esp 10cd8d: 85 c0 test %eax,%eax 10cd8f: 74 57 je 10cde8 return RTEMS_INVALID_NUMBER; /* * Return information about this object class to the user. */ info->minimum_id = obj_info->minimum_id; 10cd91: 8b 50 08 mov 0x8(%eax),%edx 10cd94: 89 13 mov %edx,(%ebx) info->maximum_id = obj_info->maximum_id; 10cd96: 8b 50 0c mov 0xc(%eax),%edx 10cd99: 89 53 04 mov %edx,0x4(%ebx) info->auto_extend = obj_info->auto_extend; 10cd9c: 8a 50 12 mov 0x12(%eax),%dl 10cd9f: 88 53 0c mov %dl,0xc(%ebx) info->maximum = obj_info->maximum; 10cda2: 0f b7 70 10 movzwl 0x10(%eax),%esi 10cda6: 89 73 08 mov %esi,0x8(%ebx) for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) 10cda9: 85 f6 test %esi,%esi 10cdab: 74 3f je 10cdec 10cdad: 8b 78 1c mov 0x1c(%eax),%edi 10cdb0: b9 01 00 00 00 mov $0x1,%ecx 10cdb5: b8 01 00 00 00 mov $0x1,%eax 10cdba: 31 d2 xor %edx,%edx if ( !obj_info->local_table[i] ) unallocated++; 10cdbc: 83 3c 8f 01 cmpl $0x1,(%edi,%ecx,4) 10cdc0: 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++ ) 10cdc3: 40 inc %eax 10cdc4: 89 c1 mov %eax,%ecx 10cdc6: 39 c6 cmp %eax,%esi 10cdc8: 73 f2 jae 10cdbc if ( !obj_info->local_table[i] ) unallocated++; info->unallocated = unallocated; 10cdca: 89 53 10 mov %edx,0x10(%ebx) 10cdcd: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 10cdcf: 8d 65 f4 lea -0xc(%ebp),%esp 10cdd2: 5b pop %ebx 10cdd3: 5e pop %esi 10cdd4: 5f pop %edi 10cdd5: c9 leave 10cdd6: c3 ret 10cdd7: 90 nop <== NOT EXECUTED int i; /* * Validate parameters and look up information structure. */ if ( !info ) 10cdd8: b8 09 00 00 00 mov $0x9,%eax unallocated++; info->unallocated = unallocated; return RTEMS_SUCCESSFUL; } 10cddd: 8d 65 f4 lea -0xc(%ebp),%esp 10cde0: 5b pop %ebx 10cde1: 5e pop %esi 10cde2: 5f pop %edi 10cde3: c9 leave 10cde4: c3 ret 10cde5: 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 ) 10cde8: b0 0a mov $0xa,%al 10cdea: eb e3 jmp 10cdcf 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++ ) 10cdec: 31 d2 xor %edx,%edx <== NOT EXECUTED 10cdee: eb da jmp 10cdca <== NOT EXECUTED 0010fcb0 : rtems_status_code rtems_object_get_classic_name( rtems_id id, rtems_name *name ) { 10fcb0: 55 push %ebp 10fcb1: 89 e5 mov %esp,%ebp 10fcb3: 53 push %ebx 10fcb4: 83 ec 14 sub $0x14,%esp 10fcb7: 8b 5d 0c mov 0xc(%ebp),%ebx Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) 10fcba: 85 db test %ebx,%ebx 10fcbc: 74 26 je 10fce4 return RTEMS_INVALID_ADDRESS; status = _Objects_Id_to_name( id, &name_u ); 10fcbe: 83 ec 08 sub $0x8,%esp 10fcc1: 8d 45 f4 lea -0xc(%ebp),%eax 10fcc4: 50 push %eax 10fcc5: ff 75 08 pushl 0x8(%ebp) 10fcc8: e8 1b 1c 00 00 call 1118e8 <_Objects_Id_to_name> *name = name_u.name_u32; 10fccd: 8b 55 f4 mov -0xc(%ebp),%edx 10fcd0: 89 13 mov %edx,(%ebx) return _Status_Object_name_errors_to_status[ status ]; 10fcd2: 8b 04 85 ec ab 12 00 mov 0x12abec(,%eax,4),%eax 10fcd9: 83 c4 10 add $0x10,%esp } 10fcdc: 8b 5d fc mov -0x4(%ebp),%ebx 10fcdf: c9 leave 10fce0: c3 ret 10fce1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { Objects_Name_or_id_lookup_errors status; Objects_Name name_u; if ( !name ) 10fce4: 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 ]; } 10fce9: 8b 5d fc mov -0x4(%ebp),%ebx 10fcec: c9 leave 10fced: c3 ret 0010ce48 : */ rtems_status_code rtems_object_set_name( rtems_id id, const char *name ) { 10ce48: 55 push %ebp 10ce49: 89 e5 mov %esp,%ebp 10ce4b: 57 push %edi 10ce4c: 56 push %esi 10ce4d: 53 push %ebx 10ce4e: 83 ec 1c sub $0x1c,%esp 10ce51: 8b 75 08 mov 0x8(%ebp),%esi 10ce54: 8b 7d 0c mov 0xc(%ebp),%edi Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) 10ce57: 85 ff test %edi,%edi 10ce59: 74 61 je 10cebc return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 10ce5b: 85 f6 test %esi,%esi 10ce5d: 74 35 je 10ce94 information = _Objects_Get_information_id( tmpId ); 10ce5f: 83 ec 0c sub $0xc,%esp 10ce62: 56 push %esi 10ce63: e8 d4 18 00 00 call 10e73c <_Objects_Get_information_id> 10ce68: 89 c3 mov %eax,%ebx if ( !information ) 10ce6a: 83 c4 10 add $0x10,%esp 10ce6d: 85 c0 test %eax,%eax 10ce6f: 74 16 je 10ce87 return RTEMS_INVALID_ID; the_object = _Objects_Get( information, tmpId, &location ); 10ce71: 50 push %eax 10ce72: 8d 45 e4 lea -0x1c(%ebp),%eax 10ce75: 50 push %eax 10ce76: 56 push %esi 10ce77: 53 push %ebx 10ce78: e8 43 1a 00 00 call 10e8c0 <_Objects_Get> switch ( location ) { 10ce7d: 83 c4 10 add $0x10,%esp 10ce80: 8b 4d e4 mov -0x1c(%ebp),%ecx 10ce83: 85 c9 test %ecx,%ecx 10ce85: 74 19 je 10cea0 case OBJECTS_LOCAL: _Objects_Set_name( information, the_object, name ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 10ce87: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10ce8c: 8d 65 f4 lea -0xc(%ebp),%esp 10ce8f: 5b pop %ebx 10ce90: 5e pop %esi 10ce91: 5f pop %edi 10ce92: c9 leave 10ce93: c3 ret Objects_Id tmpId; if ( !name ) return RTEMS_INVALID_ADDRESS; tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id; 10ce94: a1 38 95 12 00 mov 0x129538,%eax 10ce99: 8b 70 08 mov 0x8(%eax),%esi 10ce9c: eb c1 jmp 10ce5f 10ce9e: 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 ); 10cea0: 52 push %edx 10cea1: 57 push %edi 10cea2: 50 push %eax 10cea3: 53 push %ebx 10cea4: e8 4f 1c 00 00 call 10eaf8 <_Objects_Set_name> _Thread_Enable_dispatch(); 10cea9: e8 42 23 00 00 call 10f1f0 <_Thread_Enable_dispatch> 10ceae: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10ceb0: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10ceb3: 8d 65 f4 lea -0xc(%ebp),%esp 10ceb6: 5b pop %ebx 10ceb7: 5e pop %esi 10ceb8: 5f pop %edi 10ceb9: c9 leave 10ceba: c3 ret 10cebb: 90 nop <== NOT EXECUTED Objects_Information *information; Objects_Locations location; Objects_Control *the_object; Objects_Id tmpId; if ( !name ) 10cebc: b8 09 00 00 00 mov $0x9,%eax 10cec1: eb c9 jmp 10ce8c 0010cc4c : void rtems_panic( const char *printf_format, ... ) { 10cc4c: 55 push %ebp <== NOT EXECUTED 10cc4d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10cc4f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED /* * rtems_panic is shorthand for rtems_error(RTEMS_ERROR_PANIC, ...) */ void rtems_panic( 10cc52: 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); 10cc55: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 10cc58: b8 00 00 00 20 mov $0x20000000,%eax <== NOT EXECUTED 10cc5d: e8 4a fe ff ff call 10caac <== NOT EXECUTED va_end(arglist); } 10cc62: c9 leave <== NOT EXECUTED 10cc63: c3 ret <== NOT EXECUTED 001163b0 : uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) { 1163b0: 55 push %ebp 1163b1: 89 e5 mov %esp,%ebp 1163b3: 57 push %edi 1163b4: 56 push %esi 1163b5: 53 push %ebx 1163b6: 83 ec 1c sub $0x1c,%esp 1163b9: 8b 5d 08 mov 0x8(%ebp),%ebx 1163bc: 8b 75 0c mov 0xc(%ebp),%esi 1163bf: 8b 55 10 mov 0x10(%ebp),%edx 1163c2: 8b 7d 14 mov 0x14(%ebp),%edi register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) 1163c5: 85 db test %ebx,%ebx 1163c7: 74 47 je 116410 return RTEMS_INVALID_NAME; if ( !starting_address ) 1163c9: 85 f6 test %esi,%esi 1163cb: 74 23 je 1163f0 return RTEMS_INVALID_ADDRESS; if ( !id ) 1163cd: 8b 45 1c mov 0x1c(%ebp),%eax 1163d0: 85 c0 test %eax,%eax 1163d2: 74 1c je 1163f0 return RTEMS_INVALID_ADDRESS; if ( length == 0 || buffer_size == 0 || length < buffer_size || 1163d4: 85 d2 test %edx,%edx 1163d6: 74 28 je 116400 1163d8: 85 ff test %edi,%edi 1163da: 74 24 je 116400 1163dc: 39 fa cmp %edi,%edx 1163de: 72 20 jb 116400 1163e0: f7 c7 03 00 00 00 test $0x3,%edi 1163e6: 75 18 jne 116400 !_Partition_Is_buffer_size_aligned( buffer_size ) ) return RTEMS_INVALID_SIZE; if ( !_Addresses_Is_aligned( starting_address ) ) 1163e8: f7 c6 03 00 00 00 test $0x3,%esi 1163ee: 74 30 je 116420 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 1163f0: b8 09 00 00 00 mov $0x9,%eax } 1163f5: 8d 65 f4 lea -0xc(%ebp),%esp 1163f8: 5b pop %ebx 1163f9: 5e pop %esi 1163fa: 5f pop %edi 1163fb: c9 leave 1163fc: c3 ret 1163fd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 116400: b8 08 00 00 00 mov $0x8,%eax } 116405: 8d 65 f4 lea -0xc(%ebp),%esp 116408: 5b pop %ebx 116409: 5e pop %esi 11640a: 5f pop %edi 11640b: c9 leave 11640c: c3 ret 11640d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED rtems_id *id ) { register Partition_Control *the_partition; if ( !rtems_is_name_valid( name ) ) 116410: b8 03 00 00 00 mov $0x3,%eax ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 116415: 8d 65 f4 lea -0xc(%ebp),%esp 116418: 5b pop %ebx 116419: 5e pop %esi 11641a: 5f pop %edi 11641b: c9 leave 11641c: c3 ret 11641d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 116420: a1 78 f7 13 00 mov 0x13f778,%eax 116425: 40 inc %eax 116426: a3 78 f7 13 00 mov %eax,0x13f778 * 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 ); 11642b: 83 ec 0c sub $0xc,%esp 11642e: 68 00 f6 13 00 push $0x13f600 116433: 89 55 e0 mov %edx,-0x20(%ebp) 116436: e8 3d 42 00 00 call 11a678 <_Objects_Allocate> 11643b: 89 45 e4 mov %eax,-0x1c(%ebp) _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { 11643e: 83 c4 10 add $0x10,%esp 116441: 85 c0 test %eax,%eax 116443: 8b 55 e0 mov -0x20(%ebp),%edx 116446: 74 58 je 1164a0 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_partition->starting_address = starting_address; 116448: 8b 45 e4 mov -0x1c(%ebp),%eax 11644b: 89 70 10 mov %esi,0x10(%eax) the_partition->length = length; 11644e: 89 50 14 mov %edx,0x14(%eax) the_partition->buffer_size = buffer_size; 116451: 89 78 18 mov %edi,0x18(%eax) the_partition->attribute_set = attribute_set; 116454: 8b 4d 18 mov 0x18(%ebp),%ecx 116457: 89 48 1c mov %ecx,0x1c(%eax) the_partition->number_of_used_blocks = 0; 11645a: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) _Chain_Initialize( &the_partition->Memory, starting_address, 116461: 57 push %edi 116462: 89 d0 mov %edx,%eax 116464: 31 d2 xor %edx,%edx 116466: f7 f7 div %edi 116468: 50 push %eax 116469: 56 push %esi 11646a: 8b 45 e4 mov -0x1c(%ebp),%eax 11646d: 83 c0 24 add $0x24,%eax 116470: 50 push %eax 116471: e8 7a 2f 00 00 call 1193f0 <_Chain_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 116476: 8b 7d e4 mov -0x1c(%ebp),%edi 116479: 8b 47 08 mov 0x8(%edi),%eax 11647c: 0f b7 f0 movzwl %ax,%esi 11647f: 8b 15 1c f6 13 00 mov 0x13f61c,%edx 116485: 89 3c b2 mov %edi,(%edx,%esi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 116488: 89 5f 0c mov %ebx,0xc(%edi) &_Partition_Information, &the_partition->Object, (Objects_Name) name ); *id = the_partition->Object.id; 11648b: 8b 55 1c mov 0x1c(%ebp),%edx 11648e: 89 02 mov %eax,(%edx) name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 116490: e8 7f 4f 00 00 call 11b414 <_Thread_Enable_dispatch> 116495: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 116497: 83 c4 10 add $0x10,%esp 11649a: e9 66 ff ff ff jmp 116405 11649f: 90 nop <== NOT EXECUTED _Thread_Disable_dispatch(); /* prevents deletion */ the_partition = _Partition_Allocate(); if ( !the_partition ) { _Thread_Enable_dispatch(); 1164a0: e8 6f 4f 00 00 call 11b414 <_Thread_Enable_dispatch> 1164a5: b8 05 00 00 00 mov $0x5,%eax return RTEMS_TOO_MANY; 1164aa: e9 56 ff ff ff jmp 116405 001164b0 : */ rtems_status_code rtems_partition_delete( rtems_id id ) { 1164b0: 55 push %ebp 1164b1: 89 e5 mov %esp,%ebp 1164b3: 83 ec 2c sub $0x2c,%esp RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) 1164b6: 8d 45 f4 lea -0xc(%ebp),%eax 1164b9: 50 push %eax 1164ba: ff 75 08 pushl 0x8(%ebp) 1164bd: 68 00 f6 13 00 push $0x13f600 1164c2: e8 9d 46 00 00 call 11ab64 <_Objects_Get> register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 1164c7: 83 c4 10 add $0x10,%esp 1164ca: 8b 55 f4 mov -0xc(%ebp),%edx 1164cd: 85 d2 test %edx,%edx 1164cf: 74 07 je 1164d8 1164d1: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1164d6: c9 leave 1164d7: c3 ret the_partition = _Partition_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_partition->number_of_used_blocks == 0 ) { 1164d8: 8b 48 20 mov 0x20(%eax),%ecx 1164db: 85 c9 test %ecx,%ecx 1164dd: 74 0d je 1164ec #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 1164df: e8 30 4f 00 00 call 11b414 <_Thread_Enable_dispatch> 1164e4: b8 0c 00 00 00 mov $0xc,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1164e9: c9 leave 1164ea: c3 ret 1164eb: 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 ); 1164ec: 83 ec 08 sub $0x8,%esp 1164ef: 50 push %eax 1164f0: 68 00 f6 13 00 push $0x13f600 1164f5: 89 45 e4 mov %eax,-0x1c(%ebp) 1164f8: e8 f7 41 00 00 call 11a6f4 <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Partition_Free ( Partition_Control *the_partition ) { _Objects_Free( &_Partition_Information, &the_partition->Object ); 1164fd: 58 pop %eax 1164fe: 5a pop %edx 1164ff: 8b 45 e4 mov -0x1c(%ebp),%eax 116502: 50 push %eax 116503: 68 00 f6 13 00 push $0x13f600 116508: e8 eb 44 00 00 call 11a9f8 <_Objects_Free> 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 11650d: e8 02 4f 00 00 call 11b414 <_Thread_Enable_dispatch> 116512: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 116514: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116517: c9 leave 116518: c3 ret 0011651c : rtems_status_code rtems_partition_get_buffer( rtems_id id, void **buffer ) { 11651c: 55 push %ebp 11651d: 89 e5 mov %esp,%ebp 11651f: 56 push %esi 116520: 53 push %ebx 116521: 83 ec 20 sub $0x20,%esp 116524: 8b 5d 0c mov 0xc(%ebp),%ebx register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) 116527: 85 db test %ebx,%ebx 116529: 74 59 je 116584 RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) 11652b: 52 push %edx 11652c: 8d 45 f4 lea -0xc(%ebp),%eax 11652f: 50 push %eax 116530: ff 75 08 pushl 0x8(%ebp) 116533: 68 00 f6 13 00 push $0x13f600 116538: e8 27 46 00 00 call 11ab64 <_Objects_Get> 11653d: 89 c6 mov %eax,%esi return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { 11653f: 83 c4 10 add $0x10,%esp 116542: 8b 45 f4 mov -0xc(%ebp),%eax 116545: 85 c0 test %eax,%eax 116547: 75 2f jne 116578 */ RTEMS_INLINE_ROUTINE void *_Partition_Allocate_buffer ( Partition_Control *the_partition ) { return _Chain_Get( &the_partition->Memory ); 116549: 83 ec 0c sub $0xc,%esp 11654c: 8d 46 24 lea 0x24(%esi),%eax 11654f: 50 push %eax 116550: e8 77 2e 00 00 call 1193cc <_Chain_Get> case OBJECTS_LOCAL: the_buffer = _Partition_Allocate_buffer( the_partition ); if ( the_buffer ) { 116555: 83 c4 10 add $0x10,%esp 116558: 85 c0 test %eax,%eax 11655a: 74 34 je 116590 the_partition->number_of_used_blocks += 1; 11655c: ff 46 20 incl 0x20(%esi) _Thread_Enable_dispatch(); 11655f: 89 45 e4 mov %eax,-0x1c(%ebp) 116562: e8 ad 4e 00 00 call 11b414 <_Thread_Enable_dispatch> *buffer = the_buffer; 116567: 8b 45 e4 mov -0x1c(%ebp),%eax 11656a: 89 03 mov %eax,(%ebx) 11656c: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11656e: 8d 65 f8 lea -0x8(%ebp),%esp 116571: 5b pop %ebx 116572: 5e pop %esi 116573: c9 leave 116574: c3 ret 116575: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if ( !buffer ) return RTEMS_INVALID_ADDRESS; the_partition = _Partition_Get( id, &location ); switch ( location ) { 116578: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11657d: 8d 65 f8 lea -0x8(%ebp),%esp 116580: 5b pop %ebx 116581: 5e pop %esi 116582: c9 leave 116583: c3 ret { register Partition_Control *the_partition; Objects_Locations location; void *the_buffer; if ( !buffer ) 116584: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116589: 8d 65 f8 lea -0x8(%ebp),%esp 11658c: 5b pop %ebx 11658d: 5e pop %esi 11658e: c9 leave 11658f: c3 ret the_partition->number_of_used_blocks += 1; _Thread_Enable_dispatch(); *buffer = the_buffer; return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 116590: e8 7f 4e 00 00 call 11b414 <_Thread_Enable_dispatch> 116595: b8 0d 00 00 00 mov $0xd,%eax return RTEMS_UNSATISFIED; 11659a: eb e1 jmp 11657d 001165c0 : rtems_status_code rtems_partition_return_buffer( rtems_id id, void *buffer ) { 1165c0: 55 push %ebp 1165c1: 89 e5 mov %esp,%ebp 1165c3: 56 push %esi 1165c4: 53 push %ebx 1165c5: 83 ec 14 sub $0x14,%esp 1165c8: 8b 75 0c mov 0xc(%ebp),%esi RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get ( Objects_Id id, Objects_Locations *location ) { return (Partition_Control *) 1165cb: 8d 45 f4 lea -0xc(%ebp),%eax 1165ce: 50 push %eax 1165cf: ff 75 08 pushl 0x8(%ebp) 1165d2: 68 00 f6 13 00 push $0x13f600 1165d7: e8 88 45 00 00 call 11ab64 <_Objects_Get> 1165dc: 89 c3 mov %eax,%ebx register Partition_Control *the_partition; Objects_Locations location; the_partition = _Partition_Get( id, &location ); switch ( location ) { 1165de: 83 c4 10 add $0x10,%esp 1165e1: 8b 45 f4 mov -0xc(%ebp),%eax 1165e4: 85 c0 test %eax,%eax 1165e6: 74 0c je 1165f4 1165e8: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1165ed: 8d 65 f8 lea -0x8(%ebp),%esp 1165f0: 5b pop %ebx 1165f1: 5e pop %esi 1165f2: c9 leave 1165f3: c3 ret ) { void *starting; void *ending; starting = the_partition->starting_address; 1165f4: 8b 43 10 mov 0x10(%ebx),%eax ending = _Addresses_Add_offset( starting, the_partition->length ); 1165f7: 8b 53 14 mov 0x14(%ebx),%edx const void *address, const void *base, const void *limit ) { return (address >= base && address <= limit); 1165fa: 39 c6 cmp %eax,%esi 1165fc: 72 3a jb 116638 1165fe: 8d 14 10 lea (%eax,%edx,1),%edx 116601: 39 d6 cmp %edx,%esi 116603: 77 33 ja 116638 return ( 116605: 89 f2 mov %esi,%edx 116607: 29 c2 sub %eax,%edx 116609: 89 d0 mov %edx,%eax 11660b: 31 d2 xor %edx,%edx 11660d: f7 73 18 divl 0x18(%ebx) 116610: 85 d2 test %edx,%edx 116612: 75 24 jne 116638 RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( Partition_Control *the_partition, Chain_Node *the_buffer ) { _Chain_Append( &the_partition->Memory, the_buffer ); 116614: 83 ec 08 sub $0x8,%esp 116617: 56 push %esi 116618: 8d 43 24 lea 0x24(%ebx),%eax 11661b: 50 push %eax 11661c: e8 87 2d 00 00 call 1193a8 <_Chain_Append> switch ( location ) { case OBJECTS_LOCAL: if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) { _Partition_Free_buffer( the_partition, buffer ); the_partition->number_of_used_blocks -= 1; 116621: ff 4b 20 decl 0x20(%ebx) _Thread_Enable_dispatch(); 116624: e8 eb 4d 00 00 call 11b414 <_Thread_Enable_dispatch> 116629: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 11662b: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11662e: 8d 65 f8 lea -0x8(%ebp),%esp 116631: 5b pop %ebx 116632: 5e pop %esi 116633: c9 leave 116634: c3 ret 116635: 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(); 116638: e8 d7 4d 00 00 call 11b414 <_Thread_Enable_dispatch> 11663d: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116642: 8d 65 f8 lea -0x8(%ebp),%esp 116645: 5b pop %ebx 116646: 5e pop %esi 116647: c9 leave 116648: c3 ret 00110c18 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 110c18: 55 push %ebp 110c19: 89 e5 mov %esp,%ebp 110c1b: 83 ec 08 sub $0x8,%esp if (!rtems_pipe_configured) 110c1e: 80 3d c4 35 12 00 00 cmpb $0x0,0x1235c4 110c25: 74 09 je 110c30 return; if (rtems_pipe_semaphore) 110c27: a1 8c 4f 12 00 mov 0x124f8c,%eax <== NOT EXECUTED 110c2c: 85 c0 test %eax,%eax <== NOT EXECUTED 110c2e: 74 04 je 110c34 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); rtems_pipe_no = now; } 110c30: c9 leave 110c31: c3 ret 110c32: 66 90 xchg %ax,%ax <== NOT EXECUTED if (rtems_pipe_semaphore) return; rtems_status_code sc; sc = rtems_semaphore_create( 110c34: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110c37: 68 8c 4f 12 00 push $0x124f8c <== NOT EXECUTED 110c3c: 6a 00 push $0x0 <== NOT EXECUTED 110c3e: 6a 54 push $0x54 <== NOT EXECUTED 110c40: 6a 01 push $0x1 <== NOT EXECUTED 110c42: 68 45 50 49 50 push $0x50495045 <== NOT EXECUTED 110c47: e8 dc a6 ff ff call 10b328 <== 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) 110c4c: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 110c4f: 85 c0 test %eax,%eax <== NOT EXECUTED 110c51: 75 0d jne 110c60 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 110c53: e8 4c a2 ff ff call 10aea4 <== NOT EXECUTED rtems_pipe_no = now; 110c58: 66 a3 94 4f 12 00 mov %ax,0x124f94 <== NOT EXECUTED } 110c5e: c9 leave <== NOT EXECUTED 110c5f: 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); 110c60: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 110c63: 50 push %eax <== NOT EXECUTED 110c64: e8 6f af ff ff call 10bbd8 <== NOT EXECUTED 001159e8 : void *internal_start, void *external_start, uint32_t length, rtems_id *id ) { 1159e8: 55 push %ebp 1159e9: 89 e5 mov %esp,%ebp 1159eb: 57 push %edi 1159ec: 56 push %esi 1159ed: 53 push %ebx 1159ee: 83 ec 1c sub $0x1c,%esp 1159f1: 8b 5d 08 mov 0x8(%ebp),%ebx 1159f4: 8b 55 0c mov 0xc(%ebp),%edx 1159f7: 8b 7d 10 mov 0x10(%ebp),%edi 1159fa: 8b 75 18 mov 0x18(%ebp),%esi register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) 1159fd: 85 db test %ebx,%ebx 1159ff: 74 1b je 115a1c return RTEMS_INVALID_NAME; if ( !id ) 115a01: 85 f6 test %esi,%esi 115a03: 74 08 je 115a0d return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( internal_start ) || 115a05: 89 f8 mov %edi,%eax 115a07: 09 d0 or %edx,%eax 115a09: a8 03 test $0x3,%al 115a0b: 74 1f je 115a2c (Objects_Name) name ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 115a0d: b8 09 00 00 00 mov $0x9,%eax } 115a12: 8d 65 f4 lea -0xc(%ebp),%esp 115a15: 5b pop %ebx 115a16: 5e pop %esi 115a17: 5f pop %edi 115a18: c9 leave 115a19: c3 ret 115a1a: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_id *id ) { register Dual_ported_memory_Control *the_port; if ( !rtems_is_name_valid( name ) ) 115a1c: b8 03 00 00 00 mov $0x3,%eax ); *id = the_port->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 115a21: 8d 65 f4 lea -0xc(%ebp),%esp 115a24: 5b pop %ebx 115a25: 5e pop %esi 115a26: 5f pop %edi 115a27: c9 leave 115a28: c3 ret 115a29: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 115a2c: a1 78 f7 13 00 mov 0x13f778,%eax 115a31: 40 inc %eax 115a32: a3 78 f7 13 00 mov %eax,0x13f778 * of free port control blocks. */ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Allocate ( void ) { return (Dual_ported_memory_Control *) 115a37: 83 ec 0c sub $0xc,%esp 115a3a: 68 c0 f5 13 00 push $0x13f5c0 115a3f: 89 55 e4 mov %edx,-0x1c(%ebp) 115a42: e8 31 4c 00 00 call 11a678 <_Objects_Allocate> _Thread_Disable_dispatch(); /* to prevent deletion */ the_port = _Dual_ported_memory_Allocate(); if ( !the_port ) { 115a47: 83 c4 10 add $0x10,%esp 115a4a: 85 c0 test %eax,%eax 115a4c: 8b 55 e4 mov -0x1c(%ebp),%edx 115a4f: 74 33 je 115a84 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_port->internal_base = internal_start; 115a51: 89 50 10 mov %edx,0x10(%eax) the_port->external_base = external_start; 115a54: 89 78 14 mov %edi,0x14(%eax) the_port->length = length - 1; 115a57: 8b 55 14 mov 0x14(%ebp),%edx 115a5a: 4a dec %edx 115a5b: 89 50 18 mov %edx,0x18(%eax) #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 115a5e: 8b 50 08 mov 0x8(%eax),%edx 115a61: 0f b7 fa movzwl %dx,%edi 115a64: 8b 0d dc f5 13 00 mov 0x13f5dc,%ecx 115a6a: 89 04 b9 mov %eax,(%ecx,%edi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 115a6d: 89 58 0c mov %ebx,0xc(%eax) &_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name ); *id = the_port->Object.id; 115a70: 89 16 mov %edx,(%esi) _Thread_Enable_dispatch(); 115a72: e8 9d 59 00 00 call 11b414 <_Thread_Enable_dispatch> 115a77: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 115a79: 8d 65 f4 lea -0xc(%ebp),%esp 115a7c: 5b pop %ebx 115a7d: 5e pop %esi 115a7e: 5f pop %edi 115a7f: c9 leave 115a80: c3 ret 115a81: 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(); 115a84: e8 8b 59 00 00 call 11b414 <_Thread_Enable_dispatch> 115a89: b8 05 00 00 00 mov $0x5,%eax return RTEMS_TOO_MANY; 115a8e: eb 82 jmp 115a12 00115a90 : */ rtems_status_code rtems_port_delete( rtems_id id ) { 115a90: 55 push %ebp 115a91: 89 e5 mov %esp,%ebp 115a93: 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 *) 115a96: 8d 45 f4 lea -0xc(%ebp),%eax 115a99: 50 push %eax 115a9a: ff 75 08 pushl 0x8(%ebp) 115a9d: 68 c0 f5 13 00 push $0x13f5c0 115aa2: e8 bd 50 00 00 call 11ab64 <_Objects_Get> register Dual_ported_memory_Control *the_port; Objects_Locations location; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 115aa7: 83 c4 10 add $0x10,%esp 115aaa: 8b 4d f4 mov -0xc(%ebp),%ecx 115aad: 85 c9 test %ecx,%ecx 115aaf: 75 2f jne 115ae0 case OBJECTS_LOCAL: _Objects_Close( &_Dual_ported_memory_Information, &the_port->Object ); 115ab1: 83 ec 08 sub $0x8,%esp 115ab4: 50 push %eax 115ab5: 68 c0 f5 13 00 push $0x13f5c0 115aba: 89 45 e4 mov %eax,-0x1c(%ebp) 115abd: e8 32 4c 00 00 call 11a6f4 <_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 ); 115ac2: 58 pop %eax 115ac3: 5a pop %edx 115ac4: 8b 45 e4 mov -0x1c(%ebp),%eax 115ac7: 50 push %eax 115ac8: 68 c0 f5 13 00 push $0x13f5c0 115acd: e8 26 4f 00 00 call 11a9f8 <_Objects_Free> _Dual_ported_memory_Free( the_port ); _Thread_Enable_dispatch(); 115ad2: e8 3d 59 00 00 call 11b414 <_Thread_Enable_dispatch> 115ad7: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 115ad9: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115adc: c9 leave 115add: c3 ret 115ade: 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 ) { 115ae0: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115ae5: c9 leave 115ae6: c3 ret 00115ae8 : rtems_status_code rtems_port_external_to_internal( rtems_id id, void *external, void **internal ) { 115ae8: 55 push %ebp 115ae9: 89 e5 mov %esp,%ebp 115aeb: 56 push %esi 115aec: 53 push %ebx 115aed: 83 ec 10 sub $0x10,%esp 115af0: 8b 75 0c mov 0xc(%ebp),%esi 115af3: 8b 5d 10 mov 0x10(%ebp),%ebx register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) 115af6: 85 db test %ebx,%ebx 115af8: 74 4e je 115b48 RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get ( Objects_Id id, Objects_Locations *location ) { return (Dual_ported_memory_Control *) 115afa: 51 push %ecx 115afb: 8d 45 f4 lea -0xc(%ebp),%eax 115afe: 50 push %eax 115aff: ff 75 08 pushl 0x8(%ebp) 115b02: 68 c0 f5 13 00 push $0x13f5c0 115b07: e8 58 50 00 00 call 11ab64 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 115b0c: 83 c4 10 add $0x10,%esp 115b0f: 8b 55 f4 mov -0xc(%ebp),%edx 115b12: 85 d2 test %edx,%edx 115b14: 74 0e je 115b24 115b16: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115b1b: 8d 65 f8 lea -0x8(%ebp),%esp 115b1e: 5b pop %ebx 115b1f: 5e pop %esi 115b20: c9 leave 115b21: c3 ret 115b22: 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 ); 115b24: 89 f2 mov %esi,%edx 115b26: 2b 50 14 sub 0x14(%eax),%edx if ( ending > the_port->length ) 115b29: 3b 50 18 cmp 0x18(%eax),%edx 115b2c: 77 16 ja 115b44 *internal = external; else *internal = _Addresses_Add_offset( the_port->internal_base, 115b2e: 03 50 10 add 0x10(%eax),%edx 115b31: 89 13 mov %edx,(%ebx) ending ); _Thread_Enable_dispatch(); 115b33: e8 dc 58 00 00 call 11b414 <_Thread_Enable_dispatch> 115b38: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115b3a: 8d 65 f8 lea -0x8(%ebp),%esp 115b3d: 5b pop %ebx 115b3e: 5e pop %esi 115b3f: c9 leave 115b40: c3 ret 115b41: 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; 115b44: 89 33 mov %esi,(%ebx) 115b46: eb eb jmp 115b33 { register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !internal ) 115b48: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115b4d: 8d 65 f8 lea -0x8(%ebp),%esp 115b50: 5b pop %ebx 115b51: 5e pop %esi 115b52: c9 leave 115b53: c3 ret 00115b78 : rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) { 115b78: 55 push %ebp 115b79: 89 e5 mov %esp,%ebp 115b7b: 56 push %esi 115b7c: 53 push %ebx 115b7d: 83 ec 10 sub $0x10,%esp 115b80: 8b 75 0c mov 0xc(%ebp),%esi 115b83: 8b 5d 10 mov 0x10(%ebp),%ebx register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) 115b86: 85 db test %ebx,%ebx 115b88: 74 4e je 115bd8 115b8a: 51 push %ecx 115b8b: 8d 45 f4 lea -0xc(%ebp),%eax 115b8e: 50 push %eax 115b8f: ff 75 08 pushl 0x8(%ebp) 115b92: 68 c0 f5 13 00 push $0x13f5c0 115b97: e8 c8 4f 00 00 call 11ab64 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_port = _Dual_ported_memory_Get( id, &location ); switch ( location ) { 115b9c: 83 c4 10 add $0x10,%esp 115b9f: 8b 55 f4 mov -0xc(%ebp),%edx 115ba2: 85 d2 test %edx,%edx 115ba4: 74 0e je 115bb4 115ba6: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115bab: 8d 65 f8 lea -0x8(%ebp),%esp 115bae: 5b pop %ebx 115baf: 5e pop %esi 115bb0: c9 leave 115bb1: c3 ret 115bb2: 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 ); 115bb4: 89 f2 mov %esi,%edx 115bb6: 2b 50 10 sub 0x10(%eax),%edx if ( ending > the_port->length ) 115bb9: 3b 50 18 cmp 0x18(%eax),%edx 115bbc: 77 16 ja 115bd4 *external = internal; else *external = _Addresses_Add_offset( the_port->external_base, 115bbe: 03 50 14 add 0x14(%eax),%edx 115bc1: 89 13 mov %edx,(%ebx) ending ); _Thread_Enable_dispatch(); 115bc3: e8 4c 58 00 00 call 11b414 <_Thread_Enable_dispatch> 115bc8: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115bca: 8d 65 f8 lea -0x8(%ebp),%esp 115bcd: 5b pop %ebx 115bce: 5e pop %esi 115bcf: c9 leave 115bd0: c3 ret 115bd1: 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; 115bd4: 89 33 mov %esi,(%ebx) 115bd6: eb eb jmp 115bc3 { register Dual_ported_memory_Control *the_port; Objects_Locations location; uint32_t ending; if ( !external ) 115bd8: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 115bdd: 8d 65 f8 lea -0x8(%ebp),%esp 115be0: 5b pop %ebx 115be1: 5e pop %esi 115be2: c9 leave 115be3: c3 ret 0011664c : */ rtems_status_code rtems_rate_monotonic_cancel( rtems_id id ) { 11664c: 55 push %ebp 11664d: 89 e5 mov %esp,%ebp 11664f: 53 push %ebx 116650: 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 *) 116653: 8d 45 f4 lea -0xc(%ebp),%eax 116656: 50 push %eax 116657: ff 75 08 pushl 0x8(%ebp) 11665a: 68 40 f6 13 00 push $0x13f640 11665f: e8 00 45 00 00 call 11ab64 <_Objects_Get> 116664: 89 c3 mov %eax,%ebx Rate_monotonic_Control *the_period; Objects_Locations location; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 116666: 83 c4 10 add $0x10,%esp 116669: 8b 45 f4 mov -0xc(%ebp),%eax 11666c: 85 c0 test %eax,%eax 11666e: 74 0c je 11667c 116670: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116675: 8b 5d fc mov -0x4(%ebp),%ebx 116678: c9 leave 116679: c3 ret 11667a: 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 ) ) { 11667c: 8b 43 40 mov 0x40(%ebx),%eax 11667f: 3b 05 38 f8 13 00 cmp 0x13f838,%eax 116685: 74 11 je 116698 _Thread_Enable_dispatch(); 116687: e8 88 4d 00 00 call 11b414 <_Thread_Enable_dispatch> 11668c: b8 17 00 00 00 mov $0x17,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 116691: 8b 5d fc mov -0x4(%ebp),%ebx 116694: c9 leave 116695: c3 ret 116696: 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 ); 116698: 83 ec 0c sub $0xc,%esp 11669b: 8d 43 10 lea 0x10(%ebx),%eax 11669e: 50 push %eax 11669f: e8 40 61 00 00 call 11c7e4 <_Watchdog_Remove> the_period->state = RATE_MONOTONIC_INACTIVE; 1166a4: c7 43 38 00 00 00 00 movl $0x0,0x38(%ebx) _Thread_Enable_dispatch(); 1166ab: e8 64 4d 00 00 call 11b414 <_Thread_Enable_dispatch> 1166b0: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 1166b2: 83 c4 10 add $0x10,%esp 1166b5: eb be jmp 116675 0010c1e8 : rtems_status_code rtems_rate_monotonic_create( rtems_name name, rtems_id *id ) { 10c1e8: 55 push %ebp 10c1e9: 89 e5 mov %esp,%ebp 10c1eb: 57 push %edi 10c1ec: 56 push %esi 10c1ed: 53 push %ebx 10c1ee: 83 ec 1c sub $0x1c,%esp 10c1f1: 8b 5d 08 mov 0x8(%ebp),%ebx 10c1f4: 8b 75 0c mov 0xc(%ebp),%esi Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) 10c1f7: 85 db test %ebx,%ebx 10c1f9: 0f 84 a9 00 00 00 je 10c2a8 return RTEMS_INVALID_NAME; if ( !id ) 10c1ff: 85 f6 test %esi,%esi 10c201: 0f 84 c5 00 00 00 je 10c2cc rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10c207: a1 78 84 12 00 mov 0x128478,%eax 10c20c: 40 inc %eax 10c20d: a3 78 84 12 00 mov %eax,0x128478 * This function allocates a period control block from * the inactive chain of free period control blocks. */ RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Allocate( void ) { return (Rate_monotonic_Control *) 10c212: 83 ec 0c sub $0xc,%esp 10c215: 68 80 83 12 00 push $0x128380 10c21a: e8 81 1d 00 00 call 10dfa0 <_Objects_Allocate> 10c21f: 89 c2 mov %eax,%edx _Thread_Disable_dispatch(); /* to prevent deletion */ the_period = _Rate_monotonic_Allocate(); if ( !the_period ) { 10c221: 83 c4 10 add $0x10,%esp 10c224: 85 c0 test %eax,%eax 10c226: 0f 84 8c 00 00 00 je 10c2b8 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_period->owner = _Thread_Executing; 10c22c: a1 38 85 12 00 mov 0x128538,%eax 10c231: 89 42 40 mov %eax,0x40(%edx) the_period->state = RATE_MONOTONIC_INACTIVE; 10c234: 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; 10c23b: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx) the_watchdog->routine = routine; 10c242: c7 42 2c 00 00 00 00 movl $0x0,0x2c(%edx) the_watchdog->id = id; 10c249: c7 42 30 00 00 00 00 movl $0x0,0x30(%edx) the_watchdog->user_data = user_data; 10c250: 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 ); 10c257: 8d 42 54 lea 0x54(%edx),%eax 10c25a: 89 45 e4 mov %eax,-0x1c(%ebp) 10c25d: b9 38 00 00 00 mov $0x38,%ecx 10c262: 31 c0 xor %eax,%eax 10c264: 8b 7d e4 mov -0x1c(%ebp),%edi 10c267: f3 aa rep stos %al,%es:(%edi) 10c269: c7 42 5c ff ff ff 7f movl $0x7fffffff,0x5c(%edx) 10c270: c7 42 60 ff ff ff 7f movl $0x7fffffff,0x60(%edx) 10c277: c7 42 74 ff ff ff 7f movl $0x7fffffff,0x74(%edx) 10c27e: 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; 10c285: 8b 42 08 mov 0x8(%edx),%eax 10c288: 0f b7 f8 movzwl %ax,%edi 10c28b: 8b 0d 9c 83 12 00 mov 0x12839c,%ecx 10c291: 89 14 b9 mov %edx,(%ecx,%edi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 10c294: 89 5a 0c mov %ebx,0xc(%edx) &_Rate_monotonic_Information, &the_period->Object, (Objects_Name) name ); *id = the_period->Object.id; 10c297: 89 06 mov %eax,(%esi) _Thread_Enable_dispatch(); 10c299: e8 be 2a 00 00 call 10ed5c <_Thread_Enable_dispatch> 10c29e: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 10c2a0: 8d 65 f4 lea -0xc(%ebp),%esp 10c2a3: 5b pop %ebx 10c2a4: 5e pop %esi 10c2a5: 5f pop %edi 10c2a6: c9 leave 10c2a7: c3 ret rtems_id *id ) { Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) 10c2a8: b8 03 00 00 00 mov $0x3,%eax ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10c2ad: 8d 65 f4 lea -0xc(%ebp),%esp 10c2b0: 5b pop %ebx 10c2b1: 5e pop %esi 10c2b2: 5f pop %edi 10c2b3: c9 leave 10c2b4: c3 ret 10c2b5: 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(); 10c2b8: e8 9f 2a 00 00 call 10ed5c <_Thread_Enable_dispatch> 10c2bd: b8 05 00 00 00 mov $0x5,%eax ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10c2c2: 8d 65 f4 lea -0xc(%ebp),%esp 10c2c5: 5b pop %ebx 10c2c6: 5e pop %esi 10c2c7: 5f pop %edi 10c2c8: c9 leave 10c2c9: c3 ret 10c2ca: 66 90 xchg %ax,%ax <== NOT EXECUTED Rate_monotonic_Control *the_period; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 10c2cc: b8 09 00 00 00 mov $0x9,%eax ); *id = the_period->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10c2d1: 8d 65 f4 lea -0xc(%ebp),%esp 10c2d4: 5b pop %ebx 10c2d5: 5e pop %esi 10c2d6: 5f pop %edi 10c2d7: c9 leave 10c2d8: c3 ret 0013c42c : rtems_status_code rtems_rate_monotonic_get_status( rtems_id id, rtems_rate_monotonic_period_status *status ) { 13c42c: 55 push %ebp 13c42d: 89 e5 mov %esp,%ebp 13c42f: 53 push %ebx 13c430: 83 ec 24 sub $0x24,%esp 13c433: 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 ) 13c436: 85 db test %ebx,%ebx 13c438: 0f 84 92 00 00 00 je 13c4d0 13c43e: 50 push %eax 13c43f: 8d 45 f4 lea -0xc(%ebp),%eax 13c442: 50 push %eax 13c443: ff 75 08 pushl 0x8(%ebp) 13c446: 68 80 e4 16 00 push $0x16e480 13c44b: e8 50 6a fd ff call 112ea0 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 13c450: 83 c4 10 add $0x10,%esp 13c453: 8b 4d f4 mov -0xc(%ebp),%ecx 13c456: 85 c9 test %ecx,%ecx 13c458: 74 0a je 13c464 13c45a: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13c45f: 8b 5d fc mov -0x4(%ebp),%ebx 13c462: c9 leave 13c463: c3 ret the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: status->owner = the_period->owner->Object.id; 13c464: 8b 50 40 mov 0x40(%eax),%edx 13c467: 8b 52 08 mov 0x8(%edx),%edx 13c46a: 89 13 mov %edx,(%ebx) status->state = the_period->state; 13c46c: 8b 50 38 mov 0x38(%eax),%edx 13c46f: 89 53 04 mov %edx,0x4(%ebx) /* * If the period is inactive, there is no information. */ if ( status->state == RATE_MONOTONIC_INACTIVE ) { 13c472: 85 d2 test %edx,%edx 13c474: 75 2a jne 13c4a0 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timespec_Set_to_zero( &status->since_last_period ); 13c476: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) 13c47d: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) _Timespec_Set_to_zero( &status->executed_since_last_period ); 13c484: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) 13c48b: 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(); 13c492: e8 01 73 fd ff call 113798 <_Thread_Enable_dispatch> 13c497: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13c499: 8b 5d fc mov -0x4(%ebp),%ebx 13c49c: c9 leave 13c49d: c3 ret 13c49e: 66 90 xchg %ax,%ax <== NOT EXECUTED /* * Grab the current status. */ valid_status = _Rate_monotonic_Get_status( 13c4a0: 52 push %edx 13c4a1: 8d 55 ec lea -0x14(%ebp),%edx 13c4a4: 52 push %edx 13c4a5: 8d 55 e4 lea -0x1c(%ebp),%edx 13c4a8: 52 push %edx 13c4a9: 50 push %eax 13c4aa: e8 b1 00 00 00 call 13c560 <_Rate_monotonic_Get_status> the_period, &since_last_period, &executed ); if (!valid_status) { 13c4af: 83 c4 10 add $0x10,%esp 13c4b2: 84 c0 test %al,%al 13c4b4: 74 26 je 13c4dc _Thread_Enable_dispatch(); return RTEMS_NOT_DEFINED; } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_To_timespec( 13c4b6: 8b 45 e4 mov -0x1c(%ebp),%eax 13c4b9: 8b 55 e8 mov -0x18(%ebp),%edx 13c4bc: 89 43 08 mov %eax,0x8(%ebx) 13c4bf: 89 53 0c mov %edx,0xc(%ebx) &since_last_period, &status->since_last_period ); _Timestamp_To_timespec( 13c4c2: 8b 45 ec mov -0x14(%ebp),%eax 13c4c5: 8b 55 f0 mov -0x10(%ebp),%edx 13c4c8: 89 43 10 mov %eax,0x10(%ebx) 13c4cb: 89 53 14 mov %edx,0x14(%ebx) 13c4ce: eb c2 jmp 13c492 Objects_Locations location; Rate_monotonic_Period_time_t since_last_period; Rate_monotonic_Control *the_period; bool valid_status; if ( !status ) 13c4d0: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13c4d5: 8b 5d fc mov -0x4(%ebp),%ebx 13c4d8: c9 leave 13c4d9: c3 ret 13c4da: 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(); 13c4dc: e8 b7 72 fd ff call 113798 <_Thread_Enable_dispatch> 13c4e1: b8 0b 00 00 00 mov $0xb,%eax return RTEMS_NOT_DEFINED; 13c4e6: e9 74 ff ff ff jmp 13c45f 0013c6e8 : rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) { 13c6e8: 55 push %ebp 13c6e9: 89 e5 mov %esp,%ebp 13c6eb: 57 push %edi 13c6ec: 56 push %esi 13c6ed: 53 push %ebx 13c6ee: 83 ec 30 sub $0x30,%esp 13c6f1: 8b 5d 08 mov 0x8(%ebp),%ebx 13c6f4: 8b 75 0c mov 0xc(%ebp),%esi 13c6f7: 8d 45 e4 lea -0x1c(%ebp),%eax 13c6fa: 50 push %eax 13c6fb: 53 push %ebx 13c6fc: 68 80 e4 16 00 push $0x16e480 13c701: e8 9a 67 fd ff call 112ea0 <_Objects_Get> rtems_rate_monotonic_period_states local_state; ISR_Level level; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 13c706: 83 c4 10 add $0x10,%esp 13c709: 8b 7d e4 mov -0x1c(%ebp),%edi 13c70c: 85 ff test %edi,%edi 13c70e: 74 10 je 13c720 the_period->state = RATE_MONOTONIC_ACTIVE; the_period->next_length = length; _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); return RTEMS_TIMEOUT; 13c710: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13c715: 8d 65 f4 lea -0xc(%ebp),%esp 13c718: 5b pop %ebx 13c719: 5e pop %esi 13c71a: 5f pop %edi 13c71b: c9 leave 13c71c: c3 ret 13c71d: 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 ) ) { 13c720: 8b 50 40 mov 0x40(%eax),%edx 13c723: 3b 15 b8 df 16 00 cmp 0x16dfb8,%edx 13c729: 74 15 je 13c740 _Thread_Enable_dispatch(); 13c72b: e8 68 70 fd ff call 113798 <_Thread_Enable_dispatch> 13c730: b8 17 00 00 00 mov $0x17,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 13c735: 8d 65 f4 lea -0xc(%ebp),%esp 13c738: 5b pop %ebx 13c739: 5e pop %esi 13c73a: 5f pop %edi 13c73b: c9 leave 13c73c: c3 ret 13c73d: 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 ) { 13c740: 85 f6 test %esi,%esi 13c742: 0f 84 b0 00 00 00 je 13c7f8 } _Thread_Enable_dispatch(); return( return_value ); } _ISR_Disable( level ); 13c748: 9c pushf 13c749: fa cli 13c74a: 5f pop %edi switch ( the_period->state ) { 13c74b: 8b 50 38 mov 0x38(%eax),%edx 13c74e: 83 fa 02 cmp $0x2,%edx 13c751: 0f 84 bd 00 00 00 je 13c814 13c757: 83 fa 04 cmp $0x4,%edx 13c75a: 74 5c je 13c7b8 13c75c: 85 d2 test %edx,%edx 13c75e: 75 b0 jne 13c710 case RATE_MONOTONIC_INACTIVE: { _ISR_Enable( level ); 13c760: 57 push %edi 13c761: 9d popf /* * Baseline statistics information for the beginning of a period. */ _Rate_monotonic_Initiate_statistics( the_period ); 13c762: 83 ec 0c sub $0xc,%esp 13c765: 50 push %eax 13c766: 89 45 d4 mov %eax,-0x2c(%ebp) 13c769: e8 7e fd ff ff call 13c4ec <_Rate_monotonic_Initiate_statistics> the_period->state = RATE_MONOTONIC_ACTIVE; 13c76e: 8b 45 d4 mov -0x2c(%ebp),%eax 13c771: 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; 13c778: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) the_watchdog->routine = routine; 13c77f: c7 40 2c 98 c8 13 00 movl $0x13c898,0x2c(%eax) the_watchdog->id = id; 13c786: 89 58 30 mov %ebx,0x30(%eax) the_watchdog->user_data = user_data; 13c789: c7 40 34 00 00 00 00 movl $0x0,0x34(%eax) _Rate_monotonic_Timeout, id, NULL ); the_period->next_length = length; 13c790: 89 70 3c mov %esi,0x3c(%eax) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 13c793: 89 70 1c mov %esi,0x1c(%eax) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 13c796: 5a pop %edx 13c797: 59 pop %ecx 13c798: 83 c0 10 add $0x10,%eax 13c79b: 50 push %eax 13c79c: 68 d8 df 16 00 push $0x16dfd8 13c7a1: e8 ca 7e fd ff call 114670 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 13c7a6: e8 ed 6f fd ff call 113798 <_Thread_Enable_dispatch> 13c7ab: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 13c7ad: 83 c4 10 add $0x10,%esp 13c7b0: e9 60 ff ff ff jmp 13c715 13c7b5: 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 ); 13c7b8: 83 ec 0c sub $0xc,%esp 13c7bb: 50 push %eax 13c7bc: 89 45 d4 mov %eax,-0x2c(%ebp) 13c7bf: e8 34 fe ff ff call 13c5f8 <_Rate_monotonic_Update_statistics> _ISR_Enable( level ); 13c7c4: 57 push %edi 13c7c5: 9d popf the_period->state = RATE_MONOTONIC_ACTIVE; 13c7c6: 8b 45 d4 mov -0x2c(%ebp),%eax 13c7c9: c7 40 38 02 00 00 00 movl $0x2,0x38(%eax) the_period->next_length = length; 13c7d0: 89 70 3c mov %esi,0x3c(%eax) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 13c7d3: 89 70 1c mov %esi,0x1c(%eax) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 13c7d6: 59 pop %ecx 13c7d7: 5b pop %ebx 13c7d8: 83 c0 10 add $0x10,%eax 13c7db: 50 push %eax 13c7dc: 68 d8 df 16 00 push $0x16dfd8 13c7e1: e8 8a 7e fd ff call 114670 <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_period->Timer, length ); _Thread_Enable_dispatch(); 13c7e6: e8 ad 6f fd ff call 113798 <_Thread_Enable_dispatch> 13c7eb: b8 06 00 00 00 mov $0x6,%eax return RTEMS_TIMEOUT; 13c7f0: 83 c4 10 add $0x10,%esp 13c7f3: e9 1d ff ff ff jmp 13c715 _Thread_Enable_dispatch(); return RTEMS_NOT_OWNER_OF_RESOURCE; } if ( length == RTEMS_PERIOD_STATUS ) { switch ( the_period->state ) { 13c7f8: 8b 40 38 mov 0x38(%eax),%eax 13c7fb: 83 f8 04 cmp $0x4,%eax 13c7fe: 76 74 jbe 13c874 13c800: 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(); 13c802: 89 45 d4 mov %eax,-0x2c(%ebp) 13c805: e8 8e 6f fd ff call 113798 <_Thread_Enable_dispatch> return( return_value ); 13c80a: 8b 45 d4 mov -0x2c(%ebp),%eax 13c80d: e9 03 ff ff ff jmp 13c715 13c812: 66 90 xchg %ax,%ax <== NOT EXECUTED case RATE_MONOTONIC_ACTIVE: /* * Update statistics from the concluding period. */ _Rate_monotonic_Update_statistics( the_period ); 13c814: 83 ec 0c sub $0xc,%esp 13c817: 50 push %eax 13c818: 89 45 d4 mov %eax,-0x2c(%ebp) 13c81b: e8 d8 fd ff ff call 13c5f8 <_Rate_monotonic_Update_statistics> /* * This tells the _Rate_monotonic_Timeout that this task is * in the process of blocking on the period and that we * may be changing the length of the next period. */ the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING; 13c820: 8b 45 d4 mov -0x2c(%ebp),%eax 13c823: c7 40 38 01 00 00 00 movl $0x1,0x38(%eax) the_period->next_length = length; 13c82a: 89 70 3c mov %esi,0x3c(%eax) _ISR_Enable( level ); 13c82d: 57 push %edi 13c82e: 9d popf _Thread_Executing->Wait.id = the_period->Object.id; 13c82f: 8b 15 b8 df 16 00 mov 0x16dfb8,%edx 13c835: 8b 48 08 mov 0x8(%eax),%ecx 13c838: 89 4a 20 mov %ecx,0x20(%edx) _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); 13c83b: 5e pop %esi 13c83c: 5f pop %edi 13c83d: 68 00 40 00 00 push $0x4000 13c842: 52 push %edx 13c843: 89 45 d4 mov %eax,-0x2c(%ebp) 13c846: e8 d5 77 fd ff call 114020 <_Thread_Set_state> /* * Did the watchdog timer expire while we were actually blocking * on it? */ _ISR_Disable( level ); 13c84b: 9c pushf 13c84c: fa cli 13c84d: 59 pop %ecx local_state = the_period->state; 13c84e: 8b 45 d4 mov -0x2c(%ebp),%eax 13c851: 8b 50 38 mov 0x38(%eax),%edx the_period->state = RATE_MONOTONIC_ACTIVE; 13c854: c7 40 38 02 00 00 00 movl $0x2,0x38(%eax) _ISR_Enable( level ); 13c85b: 51 push %ecx 13c85c: 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 ) 13c85d: 83 c4 10 add $0x10,%esp 13c860: 83 fa 03 cmp $0x3,%edx 13c863: 74 18 je 13c87d _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); _Thread_Enable_dispatch(); 13c865: e8 2e 6f fd ff call 113798 <_Thread_Enable_dispatch> 13c86a: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 13c86c: e9 a4 fe ff ff jmp 13c715 13c871: 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 ) { 13c874: 8b 04 85 74 28 16 00 mov 0x162874(,%eax,4),%eax 13c87b: eb 85 jmp 13c802 /* * 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 ); 13c87d: 83 ec 08 sub $0x8,%esp 13c880: 68 00 40 00 00 push $0x4000 13c885: ff 35 b8 df 16 00 pushl 0x16dfb8 13c88b: e8 60 6b fd ff call 1133f0 <_Thread_Clear_state> 13c890: 83 c4 10 add $0x10,%esp 13c893: eb d0 jmp 13c865 0012d1f4 : */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) { 12d1f4: 55 push %ebp 12d1f5: 89 e5 mov %esp,%ebp 12d1f7: 57 push %edi 12d1f8: 56 push %esi 12d1f9: 53 push %ebx 12d1fa: 83 ec 7c sub $0x7c,%esp 12d1fd: 8b 7d 08 mov 0x8(%ebp),%edi 12d200: 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 ) 12d203: 85 f6 test %esi,%esi 12d205: 0f 84 bd 00 00 00 je 12d2c8 return; (*print)( context, "Period information by period\n" ); 12d20b: 83 ec 08 sub $0x8,%esp 12d20e: 68 28 ef 15 00 push $0x15ef28 12d213: 57 push %edi 12d214: ff d6 call *%esi #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( context, "--- CPU times are in seconds ---\n" ); 12d216: 59 pop %ecx 12d217: 5b pop %ebx 12d218: 68 60 ef 15 00 push $0x15ef60 12d21d: 57 push %edi 12d21e: ff d6 call *%esi (*print)( context, "--- Wall times are in seconds ---\n" ); 12d220: 58 pop %eax 12d221: 5a pop %edx 12d222: 68 84 ef 15 00 push $0x15ef84 12d227: 57 push %edi 12d228: ff d6 call *%esi Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED " 12d22a: 59 pop %ecx 12d22b: 5b pop %ebx 12d22c: 68 a8 ef 15 00 push $0x15efa8 12d231: 57 push %edi 12d232: ff d6 call *%esi #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ " " #endif " WALL TIME\n" ); (*print)( context, " " 12d234: 58 pop %eax 12d235: 5a pop %edx 12d236: 68 f4 ef 15 00 push $0x15eff4 12d23b: 57 push %edi 12d23c: 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 ; 12d23e: 8b 1d 88 e4 16 00 mov 0x16e488,%ebx 12d244: 83 c4 10 add $0x10,%esp 12d247: 3b 1d 8c e4 16 00 cmp 0x16e48c,%ebx 12d24d: 77 79 ja 12d2c8 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); 12d24f: 89 75 84 mov %esi,-0x7c(%ebp) 12d252: eb 09 jmp 12d25d * 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++ ) { 12d254: 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 ; 12d255: 39 1d 8c e4 16 00 cmp %ebx,0x16e48c 12d25b: 72 6b jb 12d2c8 id <= _Rate_monotonic_Information.maximum_id ; id++ ) { status = rtems_rate_monotonic_get_statistics( id, &the_stats ); 12d25d: 83 ec 08 sub $0x8,%esp 12d260: 8d 45 88 lea -0x78(%ebp),%eax 12d263: 50 push %eax 12d264: 53 push %ebx 12d265: e8 16 f1 00 00 call 13c380 if ( status != RTEMS_SUCCESSFUL ) 12d26a: 83 c4 10 add $0x10,%esp 12d26d: 85 c0 test %eax,%eax 12d26f: 75 e3 jne 12d254 continue; /* If the above passed, so should this but check it anyway */ status = rtems_rate_monotonic_get_status( id, &the_status ); 12d271: 83 ec 08 sub $0x8,%esp 12d274: 8d 55 c0 lea -0x40(%ebp),%edx 12d277: 52 push %edx 12d278: 53 push %ebx 12d279: e8 ae f1 00 00 call 13c42c #if defined(RTEMS_DEBUG) if ( status != RTEMS_SUCCESSFUL ) continue; #endif rtems_object_get_name( the_status.owner, sizeof(name), name ); 12d27e: 83 c4 0c add $0xc,%esp 12d281: 8d 45 e3 lea -0x1d(%ebp),%eax 12d284: 50 push %eax 12d285: 6a 05 push $0x5 12d287: ff 75 c0 pushl -0x40(%ebp) 12d28a: e8 19 40 fe ff call 1112a8 /* * Print part of report line that is not dependent on granularity */ (*print)( context, 12d28f: 59 pop %ecx 12d290: 5e pop %esi 12d291: ff 75 8c pushl -0x74(%ebp) 12d294: ff 75 88 pushl -0x78(%ebp) 12d297: 8d 55 e3 lea -0x1d(%ebp),%edx 12d29a: 52 push %edx 12d29b: 53 push %ebx 12d29c: 68 46 ef 15 00 push $0x15ef46 12d2a1: 57 push %edi 12d2a2: ff 55 84 call *-0x7c(%ebp) ); /* * If the count is zero, don't print statistics */ if (the_stats.count == 0) { 12d2a5: 8b 45 88 mov -0x78(%ebp),%eax 12d2a8: 83 c4 20 add $0x20,%esp 12d2ab: 85 c0 test %eax,%eax 12d2ad: 75 21 jne 12d2d0 (*print)( context, "\n" ); 12d2af: 83 ec 08 sub $0x8,%esp 12d2b2: 68 21 0d 16 00 push $0x160d21 12d2b7: 57 push %edi 12d2b8: ff 55 84 call *-0x7c(%ebp) continue; 12d2bb: 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++ ) { 12d2be: 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 ; 12d2bf: 39 1d 8c e4 16 00 cmp %ebx,0x16e48c 12d2c5: 73 96 jae 12d25d 12d2c7: 90 nop <== NOT EXECUTED the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall ); #endif } } } 12d2c8: 8d 65 f4 lea -0xc(%ebp),%esp 12d2cb: 5b pop %ebx 12d2cc: 5e pop %esi 12d2cd: 5f pop %edi 12d2ce: c9 leave 12d2cf: 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 ); 12d2d0: 52 push %edx 12d2d1: 8d 55 d8 lea -0x28(%ebp),%edx 12d2d4: 52 push %edx 12d2d5: 50 push %eax 12d2d6: 8d 45 a0 lea -0x60(%ebp),%eax 12d2d9: 50 push %eax 12d2da: e8 a5 16 00 00 call 12e984 <_Timespec_Divide_by_integer> (*print)( context, 12d2df: 8b 4d dc mov -0x24(%ebp),%ecx 12d2e2: be d3 4d 62 10 mov $0x10624dd3,%esi 12d2e7: 89 c8 mov %ecx,%eax 12d2e9: f7 ee imul %esi 12d2eb: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d2f1: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d2f7: c1 f8 06 sar $0x6,%eax 12d2fa: c1 f9 1f sar $0x1f,%ecx 12d2fd: 29 c8 sub %ecx,%eax 12d2ff: 50 push %eax 12d300: ff 75 d8 pushl -0x28(%ebp) 12d303: 8b 4d 9c mov -0x64(%ebp),%ecx 12d306: 89 c8 mov %ecx,%eax 12d308: f7 ee imul %esi 12d30a: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d310: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d316: c1 f8 06 sar $0x6,%eax 12d319: c1 f9 1f sar $0x1f,%ecx 12d31c: 29 c8 sub %ecx,%eax 12d31e: 50 push %eax 12d31f: ff 75 98 pushl -0x68(%ebp) 12d322: 8b 4d 94 mov -0x6c(%ebp),%ecx 12d325: 89 c8 mov %ecx,%eax 12d327: f7 ee imul %esi 12d329: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) 12d32f: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d335: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d33b: c1 f8 06 sar $0x6,%eax 12d33e: c1 f9 1f sar $0x1f,%ecx 12d341: 29 c8 sub %ecx,%eax 12d343: 50 push %eax 12d344: ff 75 90 pushl -0x70(%ebp) 12d347: 68 40 f0 15 00 push $0x15f040 12d34c: 57 push %edi 12d34d: 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); 12d350: 83 c4 2c add $0x2c,%esp 12d353: 8d 55 d8 lea -0x28(%ebp),%edx 12d356: 52 push %edx 12d357: ff 75 88 pushl -0x78(%ebp) 12d35a: 8d 45 b8 lea -0x48(%ebp),%eax 12d35d: 50 push %eax 12d35e: e8 21 16 00 00 call 12e984 <_Timespec_Divide_by_integer> (*print)( context, 12d363: 8b 4d dc mov -0x24(%ebp),%ecx 12d366: 89 c8 mov %ecx,%eax 12d368: f7 ee imul %esi 12d36a: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d370: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d376: c1 f8 06 sar $0x6,%eax 12d379: c1 f9 1f sar $0x1f,%ecx 12d37c: 29 c8 sub %ecx,%eax 12d37e: 50 push %eax 12d37f: ff 75 d8 pushl -0x28(%ebp) 12d382: 8b 4d b4 mov -0x4c(%ebp),%ecx 12d385: 89 c8 mov %ecx,%eax 12d387: f7 ee imul %esi 12d389: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d38f: 8b 85 7c ff ff ff mov -0x84(%ebp),%eax 12d395: c1 f8 06 sar $0x6,%eax 12d398: c1 f9 1f sar $0x1f,%ecx 12d39b: 29 c8 sub %ecx,%eax 12d39d: 50 push %eax 12d39e: ff 75 b0 pushl -0x50(%ebp) 12d3a1: 8b 4d ac mov -0x54(%ebp),%ecx 12d3a4: 89 c8 mov %ecx,%eax 12d3a6: f7 ee imul %esi 12d3a8: 89 85 78 ff ff ff mov %eax,-0x88(%ebp) 12d3ae: 89 95 7c ff ff ff mov %edx,-0x84(%ebp) 12d3b4: 8b b5 7c ff ff ff mov -0x84(%ebp),%esi 12d3ba: c1 fe 06 sar $0x6,%esi 12d3bd: 89 c8 mov %ecx,%eax 12d3bf: 99 cltd 12d3c0: 29 d6 sub %edx,%esi 12d3c2: 56 push %esi 12d3c3: ff 75 a8 pushl -0x58(%ebp) 12d3c6: 68 60 f0 15 00 push $0x15f060 12d3cb: 57 push %edi 12d3cc: ff 55 84 call *-0x7c(%ebp) 12d3cf: 83 c4 30 add $0x30,%esp 12d3d2: e9 7d fe ff ff jmp 12d254 0012d430 : */ rtems_status_code rtems_rate_monotonic_reset_statistics( rtems_id id ) { 12d430: 55 push %ebp 12d431: 89 e5 mov %esp,%ebp 12d433: 57 push %edi 12d434: 53 push %ebx 12d435: 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 *) 12d438: 8d 45 f4 lea -0xc(%ebp),%eax 12d43b: 50 push %eax 12d43c: ff 75 08 pushl 0x8(%ebp) 12d43f: 68 80 e4 16 00 push $0x16e480 12d444: e8 57 5a fe ff call 112ea0 <_Objects_Get> 12d449: 89 c2 mov %eax,%edx Objects_Locations location; Rate_monotonic_Control *the_period; the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { 12d44b: 83 c4 10 add $0x10,%esp 12d44e: 8b 45 f4 mov -0xc(%ebp),%eax 12d451: 85 c0 test %eax,%eax 12d453: 75 3b jne 12d490 case OBJECTS_LOCAL: _Rate_monotonic_Reset_statistics( the_period ); 12d455: 8d 5a 54 lea 0x54(%edx),%ebx 12d458: b9 38 00 00 00 mov $0x38,%ecx 12d45d: 31 c0 xor %eax,%eax 12d45f: 89 df mov %ebx,%edi 12d461: f3 aa rep stos %al,%es:(%edi) 12d463: c7 42 5c ff ff ff 7f movl $0x7fffffff,0x5c(%edx) 12d46a: c7 42 60 ff ff ff 7f movl $0x7fffffff,0x60(%edx) 12d471: c7 42 74 ff ff ff 7f movl $0x7fffffff,0x74(%edx) 12d478: c7 42 78 ff ff ff 7f movl $0x7fffffff,0x78(%edx) _Thread_Enable_dispatch(); 12d47f: e8 14 63 fe ff call 113798 <_Thread_Enable_dispatch> 12d484: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12d486: 8d 65 f8 lea -0x8(%ebp),%esp 12d489: 5b pop %ebx 12d48a: 5f pop %edi 12d48b: c9 leave 12d48c: c3 ret 12d48d: 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 ) { 12d490: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12d495: 8d 65 f8 lea -0x8(%ebp),%esp 12d498: 5b pop %ebx 12d499: 5f pop %edi 12d49a: c9 leave 12d49b: c3 ret 00116df0 : uintptr_t length, uintptr_t page_size, rtems_attribute attribute_set, rtems_id *id ) { 116df0: 55 push %ebp 116df1: 89 e5 mov %esp,%ebp 116df3: 57 push %edi 116df4: 56 push %esi 116df5: 53 push %ebx 116df6: 83 ec 1c sub $0x1c,%esp 116df9: 8b 75 08 mov 0x8(%ebp),%esi 116dfc: 8b 5d 0c mov 0xc(%ebp),%ebx 116dff: 8b 7d 1c mov 0x1c(%ebp),%edi rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) 116e02: 85 f6 test %esi,%esi 116e04: 0f 84 92 00 00 00 je 116e9c return RTEMS_INVALID_NAME; if ( !starting_address ) 116e0a: 85 db test %ebx,%ebx 116e0c: 74 09 je 116e17 return RTEMS_INVALID_ADDRESS; if ( !id ) 116e0e: 85 ff test %edi,%edi 116e10: 74 05 je 116e17 return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( starting_address ) ) 116e12: f6 c3 03 test $0x3,%bl 116e15: 74 0d je 116e24 return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); return return_status; 116e17: b8 09 00 00 00 mov $0x9,%eax } 116e1c: 8d 65 f4 lea -0xc(%ebp),%esp 116e1f: 5b pop %ebx 116e20: 5e pop %esi 116e21: 5f pop %edi 116e22: c9 leave 116e23: c3 ret return RTEMS_INVALID_ADDRESS; if ( !_Addresses_Is_aligned( starting_address ) ) return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 116e24: 83 ec 0c sub $0xc,%esp 116e27: ff 35 30 f8 13 00 pushl 0x13f830 116e2d: e8 fe 24 00 00 call 119330 <_API_Mutex_Lock> * This function allocates a region control block from * the inactive chain of free region control blocks. */ RTEMS_INLINE_ROUTINE Region_Control *_Region_Allocate( void ) { return (Region_Control *) _Objects_Allocate( &_Region_Information ); 116e32: c7 04 24 80 f6 13 00 movl $0x13f680,(%esp) 116e39: e8 3a 38 00 00 call 11a678 <_Objects_Allocate> 116e3e: 89 c2 mov %eax,%edx the_region = _Region_Allocate(); if ( !the_region ) 116e40: 83 c4 10 add $0x10,%esp 116e43: 85 c0 test %eax,%eax 116e45: 74 65 je 116eac return_status = RTEMS_TOO_MANY; else { the_region->maximum_segment_size = _Heap_Initialize( 116e47: ff 75 14 pushl 0x14(%ebp) 116e4a: ff 75 10 pushl 0x10(%ebp) 116e4d: 53 push %ebx 116e4e: 8d 40 68 lea 0x68(%eax),%eax 116e51: 50 push %eax 116e52: 89 55 e4 mov %edx,-0x1c(%ebp) 116e55: e8 02 33 00 00 call 11a15c <_Heap_Initialize> 116e5a: 8b 55 e4 mov -0x1c(%ebp),%edx 116e5d: 89 42 5c mov %eax,0x5c(%edx) &the_region->Memory, starting_address, length, page_size ); if ( !the_region->maximum_segment_size ) { 116e60: 83 c4 10 add $0x10,%esp 116e63: 85 c0 test %eax,%eax 116e65: 75 4d jne 116eb4 */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); 116e67: 83 ec 08 sub $0x8,%esp 116e6a: 52 push %edx 116e6b: 68 80 f6 13 00 push $0x13f680 116e70: e8 83 3b 00 00 call 11a9f8 <_Objects_Free> 116e75: b8 08 00 00 00 mov $0x8,%eax 116e7a: 83 c4 10 add $0x10,%esp *id = the_region->Object.id; return_status = RTEMS_SUCCESSFUL; } } _RTEMS_Unlock_allocator(); 116e7d: 83 ec 0c sub $0xc,%esp 116e80: ff 35 30 f8 13 00 pushl 0x13f830 116e86: 89 45 e4 mov %eax,-0x1c(%ebp) 116e89: e8 ea 24 00 00 call 119378 <_API_Mutex_Unlock> return return_status; 116e8e: 83 c4 10 add $0x10,%esp 116e91: 8b 45 e4 mov -0x1c(%ebp),%eax } 116e94: 8d 65 f4 lea -0xc(%ebp),%esp 116e97: 5b pop %ebx 116e98: 5e pop %esi 116e99: 5f pop %edi 116e9a: c9 leave 116e9b: c3 ret ) { rtems_status_code return_status; Region_Control *the_region; if ( !rtems_is_name_valid( name ) ) 116e9c: b8 03 00 00 00 mov $0x3,%eax } } _RTEMS_Unlock_allocator(); return return_status; } 116ea1: 8d 65 f4 lea -0xc(%ebp),%esp 116ea4: 5b pop %ebx 116ea5: 5e pop %esi 116ea6: 5f pop %edi 116ea7: c9 leave 116ea8: c3 ret 116ea9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED _RTEMS_Lock_allocator(); /* to prevent deletion */ the_region = _Region_Allocate(); if ( !the_region ) 116eac: b8 05 00 00 00 mov $0x5,%eax 116eb1: eb ca jmp 116e7d 116eb3: 90 nop <== NOT EXECUTED return_status = RTEMS_INVALID_SIZE; } else { the_region->starting_address = starting_address; 116eb4: 89 5a 50 mov %ebx,0x50(%edx) the_region->length = length; 116eb7: 8b 45 10 mov 0x10(%ebp),%eax 116eba: 89 42 54 mov %eax,0x54(%edx) the_region->page_size = page_size; 116ebd: 8b 45 14 mov 0x14(%ebp),%eax 116ec0: 89 42 58 mov %eax,0x58(%edx) the_region->attribute_set = attribute_set; 116ec3: 8b 45 18 mov 0x18(%ebp),%eax 116ec6: 89 42 60 mov %eax,0x60(%edx) the_region->number_of_used_blocks = 0; 116ec9: c7 42 64 00 00 00 00 movl $0x0,0x64(%edx) _Thread_queue_Initialize( 116ed0: 6a 06 push $0x6 116ed2: 6a 40 push $0x40 116ed4: 8b 45 18 mov 0x18(%ebp),%eax 116ed7: c1 e8 02 shr $0x2,%eax 116eda: 83 e0 01 and $0x1,%eax 116edd: 50 push %eax 116ede: 8d 42 10 lea 0x10(%edx),%eax 116ee1: 50 push %eax 116ee2: 89 55 e4 mov %edx,-0x1c(%ebp) 116ee5: e8 8a 4c 00 00 call 11bb74 <_Thread_queue_Initialize> #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 116eea: 8b 55 e4 mov -0x1c(%ebp),%edx 116eed: 8b 42 08 mov 0x8(%edx),%eax 116ef0: 0f b7 d8 movzwl %ax,%ebx 116ef3: 8b 0d 9c f6 13 00 mov 0x13f69c,%ecx 116ef9: 89 14 99 mov %edx,(%ecx,%ebx,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 116efc: 89 72 0c mov %esi,0xc(%edx) &_Region_Information, &the_region->Object, (Objects_Name) name ); *id = the_region->Object.id; 116eff: 89 07 mov %eax,(%edi) 116f01: 31 c0 xor %eax,%eax 116f03: 83 c4 10 add $0x10,%esp 116f06: e9 72 ff ff ff jmp 116e7d 00116f0c : */ rtems_status_code rtems_region_delete( rtems_id id ) { 116f0c: 55 push %ebp 116f0d: 89 e5 mov %esp,%ebp 116f0f: 53 push %ebx 116f10: 83 ec 30 sub $0x30,%esp Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; _RTEMS_Lock_allocator(); 116f13: ff 35 30 f8 13 00 pushl 0x13f830 116f19: e8 12 24 00 00 call 119330 <_API_Mutex_Lock> RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 116f1e: 83 c4 0c add $0xc,%esp 116f21: 8d 45 f4 lea -0xc(%ebp),%eax 116f24: 50 push %eax 116f25: ff 75 08 pushl 0x8(%ebp) 116f28: 68 80 f6 13 00 push $0x13f680 116f2d: e8 f6 3b 00 00 call 11ab28 <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 116f32: 83 c4 10 add $0x10,%esp 116f35: 8b 5d f4 mov -0xc(%ebp),%ebx 116f38: 85 db test %ebx,%ebx 116f3a: 74 1c je 116f58 116f3c: bb 04 00 00 00 mov $0x4,%ebx default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 116f41: 83 ec 0c sub $0xc,%esp 116f44: ff 35 30 f8 13 00 pushl 0x13f830 116f4a: e8 29 24 00 00 call 119378 <_API_Mutex_Unlock> return return_status; } 116f4f: 89 d8 mov %ebx,%eax 116f51: 8b 5d fc mov -0x4(%ebp),%ebx 116f54: c9 leave 116f55: c3 ret 116f56: 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 ) 116f58: 8b 48 64 mov 0x64(%eax),%ecx 116f5b: 85 c9 test %ecx,%ecx 116f5d: 74 09 je 116f68 116f5f: bb 0c 00 00 00 mov $0xc,%ebx 116f64: eb db jmp 116f41 116f66: 66 90 xchg %ax,%ax <== NOT EXECUTED return_status = RTEMS_RESOURCE_IN_USE; else { _Objects_Close( &_Region_Information, &the_region->Object ); 116f68: 83 ec 08 sub $0x8,%esp 116f6b: 50 push %eax 116f6c: 68 80 f6 13 00 push $0x13f680 116f71: 89 45 e4 mov %eax,-0x1c(%ebp) 116f74: e8 7b 37 00 00 call 11a6f4 <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Region_Free ( Region_Control *the_region ) { _Objects_Free( &_Region_Information, &the_region->Object ); 116f79: 58 pop %eax 116f7a: 5a pop %edx 116f7b: 8b 45 e4 mov -0x1c(%ebp),%eax 116f7e: 50 push %eax 116f7f: 68 80 f6 13 00 push $0x13f680 116f84: e8 6f 3a 00 00 call 11a9f8 <_Objects_Free> 116f89: 31 db xor %ebx,%ebx 116f8b: 83 c4 10 add $0x10,%esp 116f8e: eb b1 jmp 116f41 00116f90 : rtems_status_code rtems_region_extend( rtems_id id, void *starting_address, uintptr_t length ) { 116f90: 55 push %ebp 116f91: 89 e5 mov %esp,%ebp 116f93: 56 push %esi 116f94: 53 push %ebx 116f95: 83 ec 10 sub $0x10,%esp 116f98: 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 ) 116f9b: 85 db test %ebx,%ebx 116f9d: 74 71 je 117010 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); /* to prevent deletion */ 116f9f: 83 ec 0c sub $0xc,%esp 116fa2: ff 35 30 f8 13 00 pushl 0x13f830 116fa8: e8 83 23 00 00 call 119330 <_API_Mutex_Lock> RTEMS_INLINE_ROUTINE Region_Control *_Region_Get ( Objects_Id id, Objects_Locations *location ) { return (Region_Control *) 116fad: 83 c4 0c add $0xc,%esp 116fb0: 8d 45 f0 lea -0x10(%ebp),%eax 116fb3: 50 push %eax 116fb4: ff 75 08 pushl 0x8(%ebp) 116fb7: 68 80 f6 13 00 push $0x13f680 116fbc: e8 67 3b 00 00 call 11ab28 <_Objects_Get_no_protection> 116fc1: 89 c6 mov %eax,%esi the_region = _Region_Get( id, &location ); switch ( location ) { 116fc3: 83 c4 10 add $0x10,%esp 116fc6: 8b 45 f0 mov -0x10(%ebp),%eax 116fc9: 85 c0 test %eax,%eax 116fcb: 74 1f je 116fec 116fcd: bb 04 00 00 00 mov $0x4,%ebx default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 116fd2: 83 ec 0c sub $0xc,%esp 116fd5: ff 35 30 f8 13 00 pushl 0x13f830 116fdb: e8 98 23 00 00 call 119378 <_API_Mutex_Unlock> return return_status; 116fe0: 83 c4 10 add $0x10,%esp } 116fe3: 89 d8 mov %ebx,%eax 116fe5: 8d 65 f8 lea -0x8(%ebp),%esp 116fe8: 5b pop %ebx 116fe9: 5e pop %esi 116fea: c9 leave 116feb: c3 ret the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: heap_status = _Heap_Extend( 116fec: 8d 45 f4 lea -0xc(%ebp),%eax 116fef: 50 push %eax 116ff0: ff 75 10 pushl 0x10(%ebp) 116ff3: 53 push %ebx 116ff4: 8d 46 68 lea 0x68(%esi),%eax 116ff7: 50 push %eax 116ff8: e8 67 2e 00 00 call 119e64 <_Heap_Extend> starting_address, length, &amount_extended ); if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) { 116ffd: 83 c4 10 add $0x10,%esp 117000: 85 c0 test %eax,%eax 117002: 74 18 je 11701c the_region->length += amount_extended; the_region->maximum_segment_size += amount_extended; return_status = RTEMS_SUCCESSFUL; } else if ( heap_status == HEAP_EXTEND_ERROR ) { 117004: 48 dec %eax 117005: 74 25 je 11702c 117007: bb 18 00 00 00 mov $0x18,%ebx 11700c: eb c4 jmp 116fd2 11700e: 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 ) 117010: b3 09 mov $0x9,%bl break; } _RTEMS_Unlock_allocator(); return return_status; } 117012: 89 d8 mov %ebx,%eax 117014: 8d 65 f8 lea -0x8(%ebp),%esp 117017: 5b pop %ebx 117018: 5e pop %esi 117019: c9 leave 11701a: c3 ret 11701b: 90 nop <== NOT EXECUTED length, &amount_extended ); if ( heap_status == HEAP_EXTEND_SUCCESSFUL ) { the_region->length += amount_extended; 11701c: 8b 45 f4 mov -0xc(%ebp),%eax 11701f: 01 46 54 add %eax,0x54(%esi) the_region->maximum_segment_size += amount_extended; 117022: 01 46 5c add %eax,0x5c(%esi) 117025: 31 db xor %ebx,%ebx 117027: eb a9 jmp 116fd2 117029: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return_status = RTEMS_SUCCESSFUL; } else if ( heap_status == HEAP_EXTEND_ERROR ) { 11702c: bb 09 00 00 00 mov $0x9,%ebx 117031: eb 9f jmp 116fd2 00117034 : rtems_status_code rtems_region_get_free_information( rtems_id id, Heap_Information_block *the_info ) { 117034: 55 push %ebp 117035: 89 e5 mov %esp,%ebp 117037: 53 push %ebx 117038: 83 ec 14 sub $0x14,%esp 11703b: 8b 5d 0c mov 0xc(%ebp),%ebx Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) 11703e: 85 db test %ebx,%ebx 117040: 74 76 je 1170b8 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 117042: 83 ec 0c sub $0xc,%esp 117045: ff 35 30 f8 13 00 pushl 0x13f830 11704b: e8 e0 22 00 00 call 119330 <_API_Mutex_Lock> 117050: 83 c4 0c add $0xc,%esp 117053: 8d 45 f4 lea -0xc(%ebp),%eax 117056: 50 push %eax 117057: ff 75 08 pushl 0x8(%ebp) 11705a: 68 80 f6 13 00 push $0x13f680 11705f: e8 c4 3a 00 00 call 11ab28 <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 117064: 83 c4 10 add $0x10,%esp 117067: 8b 55 f4 mov -0xc(%ebp),%edx 11706a: 85 d2 test %edx,%edx 11706c: 74 1e je 11708c 11706e: bb 04 00 00 00 mov $0x4,%ebx default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 117073: 83 ec 0c sub $0xc,%esp 117076: ff 35 30 f8 13 00 pushl 0x13f830 11707c: e8 f7 22 00 00 call 119378 <_API_Mutex_Unlock> return return_status; 117081: 83 c4 10 add $0x10,%esp } 117084: 89 d8 mov %ebx,%eax 117086: 8b 5d fc mov -0x4(%ebp),%ebx 117089: c9 leave 11708a: c3 ret 11708b: 90 nop <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->Used.number = 0; 11708c: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) the_info->Used.total = 0; 117093: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) the_info->Used.largest = 0; 11709a: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) _Heap_Get_free_information( &the_region->Memory, &the_info->Free ); 1170a1: 83 ec 08 sub $0x8,%esp 1170a4: 53 push %ebx 1170a5: 83 c0 68 add $0x68,%eax 1170a8: 50 push %eax 1170a9: e8 c6 2f 00 00 call 11a074 <_Heap_Get_free_information> 1170ae: 31 db xor %ebx,%ebx return_status = RTEMS_SUCCESSFUL; break; 1170b0: 83 c4 10 add $0x10,%esp 1170b3: eb be jmp 117073 1170b5: 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 ) 1170b8: b3 09 mov $0x9,%bl break; } _RTEMS_Unlock_allocator(); return return_status; } 1170ba: 89 d8 mov %ebx,%eax 1170bc: 8b 5d fc mov -0x4(%ebp),%ebx 1170bf: c9 leave 1170c0: c3 ret 001170c4 : rtems_status_code rtems_region_get_information( rtems_id id, Heap_Information_block *the_info ) { 1170c4: 55 push %ebp 1170c5: 89 e5 mov %esp,%ebp 1170c7: 53 push %ebx 1170c8: 83 ec 14 sub $0x14,%esp 1170cb: 8b 5d 0c mov 0xc(%ebp),%ebx Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) 1170ce: 85 db test %ebx,%ebx 1170d0: 74 5e je 117130 return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 1170d2: 83 ec 0c sub $0xc,%esp 1170d5: ff 35 30 f8 13 00 pushl 0x13f830 1170db: e8 50 22 00 00 call 119330 <_API_Mutex_Lock> 1170e0: 83 c4 0c add $0xc,%esp 1170e3: 8d 45 f4 lea -0xc(%ebp),%eax 1170e6: 50 push %eax 1170e7: ff 75 08 pushl 0x8(%ebp) 1170ea: 68 80 f6 13 00 push $0x13f680 1170ef: e8 34 3a 00 00 call 11ab28 <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 1170f4: 83 c4 10 add $0x10,%esp 1170f7: 8b 55 f4 mov -0xc(%ebp),%edx 1170fa: 85 d2 test %edx,%edx 1170fc: 74 1e je 11711c 1170fe: bb 04 00 00 00 mov $0x4,%ebx default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 117103: 83 ec 0c sub $0xc,%esp 117106: ff 35 30 f8 13 00 pushl 0x13f830 11710c: e8 67 22 00 00 call 119378 <_API_Mutex_Unlock> return return_status; 117111: 83 c4 10 add $0x10,%esp } 117114: 89 d8 mov %ebx,%eax 117116: 8b 5d fc mov -0x4(%ebp),%ebx 117119: c9 leave 11711a: c3 ret 11711b: 90 nop <== NOT EXECUTED the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: _Heap_Get_information( &the_region->Memory, the_info ); 11711c: 83 ec 08 sub $0x8,%esp 11711f: 53 push %ebx 117120: 83 c0 68 add $0x68,%eax 117123: 50 push %eax 117124: e8 a3 2f 00 00 call 11a0cc <_Heap_Get_information> 117129: 31 db xor %ebx,%ebx return_status = RTEMS_SUCCESSFUL; break; 11712b: 83 c4 10 add $0x10,%esp 11712e: eb d3 jmp 117103 { Objects_Locations location; rtems_status_code return_status; register Region_Control *the_region; if ( !the_info ) 117130: b3 09 mov $0x9,%bl break; } _RTEMS_Unlock_allocator(); return return_status; } 117132: 89 d8 mov %ebx,%eax 117134: 8b 5d fc mov -0x4(%ebp),%ebx 117137: c9 leave 117138: c3 ret 0011713c : uintptr_t size, rtems_option option_set, rtems_interval timeout, void **segment ) { 11713c: 55 push %ebp 11713d: 89 e5 mov %esp,%ebp 11713f: 57 push %edi 117140: 56 push %esi 117141: 53 push %ebx 117142: 83 ec 2c sub $0x2c,%esp 117145: 8b 75 0c mov 0xc(%ebp),%esi 117148: 8b 5d 18 mov 0x18(%ebp),%ebx Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) 11714b: 85 db test %ebx,%ebx 11714d: 0f 84 a1 00 00 00 je 1171f4 return RTEMS_INVALID_ADDRESS; *segment = NULL; 117153: c7 03 00 00 00 00 movl $0x0,(%ebx) if ( size == 0 ) 117159: 85 f6 test %esi,%esi 11715b: 75 0f jne 11716c 11715d: b8 08 00 00 00 mov $0x8,%eax break; } _RTEMS_Unlock_allocator(); return return_status; } 117162: 8d 65 f4 lea -0xc(%ebp),%esp 117165: 5b pop %ebx 117166: 5e pop %esi 117167: 5f pop %edi 117168: c9 leave 117169: c3 ret 11716a: 66 90 xchg %ax,%ax <== NOT EXECUTED *segment = NULL; if ( size == 0 ) return RTEMS_INVALID_SIZE; _RTEMS_Lock_allocator(); 11716c: 83 ec 0c sub $0xc,%esp 11716f: ff 35 30 f8 13 00 pushl 0x13f830 117175: e8 b6 21 00 00 call 119330 <_API_Mutex_Lock> executing = _Thread_Executing; 11717a: a1 38 f8 13 00 mov 0x13f838,%eax 11717f: 89 45 d4 mov %eax,-0x2c(%ebp) 117182: 83 c4 0c add $0xc,%esp 117185: 8d 45 e4 lea -0x1c(%ebp),%eax 117188: 50 push %eax 117189: ff 75 08 pushl 0x8(%ebp) 11718c: 68 80 f6 13 00 push $0x13f680 117191: e8 92 39 00 00 call 11ab28 <_Objects_Get_no_protection> 117196: 89 c7 mov %eax,%edi the_region = _Region_Get( id, &location ); switch ( location ) { 117198: 83 c4 10 add $0x10,%esp 11719b: 8b 45 e4 mov -0x1c(%ebp),%eax 11719e: 85 c0 test %eax,%eax 1171a0: 75 2a jne 1171cc case OBJECTS_LOCAL: if ( size > the_region->maximum_segment_size ) 1171a2: 3b 77 5c cmp 0x5c(%edi),%esi 1171a5: 76 2d jbe 1171d4 1171a7: b8 08 00 00 00 mov $0x8,%eax default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 1171ac: 83 ec 0c sub $0xc,%esp 1171af: ff 35 30 f8 13 00 pushl 0x13f830 1171b5: 89 45 d0 mov %eax,-0x30(%ebp) 1171b8: e8 bb 21 00 00 call 119378 <_API_Mutex_Unlock> return return_status; 1171bd: 83 c4 10 add $0x10,%esp 1171c0: 8b 45 d0 mov -0x30(%ebp),%eax } 1171c3: 8d 65 f4 lea -0xc(%ebp),%esp 1171c6: 5b pop %ebx 1171c7: 5e pop %esi 1171c8: 5f pop %edi 1171c9: c9 leave 1171ca: c3 ret 1171cb: 90 nop <== NOT EXECUTED _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); _Thread_Enable_dispatch(); return (rtems_status_code) executing->Wait.return_code; 1171cc: b8 04 00 00 00 mov $0x4,%eax 1171d1: eb d9 jmp 1171ac 1171d3: 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 ); 1171d4: 6a 00 push $0x0 1171d6: 6a 00 push $0x0 1171d8: 56 push %esi 1171d9: 8d 47 68 lea 0x68(%edi),%eax 1171dc: 50 push %eax 1171dd: e8 ce 2a 00 00 call 119cb0 <_Heap_Allocate_aligned_with_boundary> the_segment = _Region_Allocate_segment( the_region, size ); _Region_Debug_Walk( the_region, 2 ); if ( the_segment ) { 1171e2: 83 c4 10 add $0x10,%esp 1171e5: 85 c0 test %eax,%eax 1171e7: 74 17 je 117200 the_region->number_of_used_blocks += 1; 1171e9: ff 47 64 incl 0x64(%edi) *segment = the_segment; 1171ec: 89 03 mov %eax,(%ebx) 1171ee: 31 c0 xor %eax,%eax 1171f0: eb ba jmp 1171ac 1171f2: 66 90 xchg %ax,%ax <== NOT EXECUTED Objects_Locations location; rtems_status_code return_status; Region_Control *the_region; void *the_segment; if ( !segment ) 1171f4: b8 09 00 00 00 mov $0x9,%eax 1171f9: e9 64 ff ff ff jmp 117162 1171fe: 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 ) ) { 117200: f6 45 10 01 testb $0x1,0x10(%ebp) 117204: 74 07 je 11720d 117206: b8 0d 00 00 00 mov $0xd,%eax 11720b: eb 9f jmp 1171ac rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 11720d: a1 78 f7 13 00 mov 0x13f778,%eax 117212: 40 inc %eax 117213: a3 78 f7 13 00 mov %eax,0x13f778 * 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(); 117218: 83 ec 0c sub $0xc,%esp 11721b: ff 35 30 f8 13 00 pushl 0x13f830 117221: e8 52 21 00 00 call 119378 <_API_Mutex_Unlock> executing->Wait.queue = &the_region->Wait_queue; 117226: 8d 47 10 lea 0x10(%edi),%eax 117229: 8b 55 d4 mov -0x2c(%ebp),%edx 11722c: 89 42 44 mov %eax,0x44(%edx) executing->Wait.id = id; 11722f: 8b 4d 08 mov 0x8(%ebp),%ecx 117232: 89 4a 20 mov %ecx,0x20(%edx) executing->Wait.count = size; 117235: 89 72 24 mov %esi,0x24(%edx) executing->Wait.return_argument = segment; 117238: 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; 11723b: 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 ); 117242: 83 c4 0c add $0xc,%esp 117245: 68 24 bc 11 00 push $0x11bc24 11724a: ff 75 14 pushl 0x14(%ebp) 11724d: 50 push %eax 11724e: e8 c1 46 00 00 call 11b914 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); 117253: e8 bc 41 00 00 call 11b414 <_Thread_Enable_dispatch> return (rtems_status_code) executing->Wait.return_code; 117258: 8b 55 d4 mov -0x2c(%ebp),%edx 11725b: 8b 42 34 mov 0x34(%edx),%eax 11725e: 83 c4 10 add $0x10,%esp 117261: e9 fc fe ff ff jmp 117162 00117268 : rtems_status_code rtems_region_get_segment_size( rtems_id id, void *segment, uintptr_t *size ) { 117268: 55 push %ebp 117269: 89 e5 mov %esp,%ebp 11726b: 56 push %esi 11726c: 53 push %ebx 11726d: 83 ec 20 sub $0x20,%esp 117270: 8b 5d 0c mov 0xc(%ebp),%ebx 117273: 8b 75 10 mov 0x10(%ebp),%esi Objects_Locations location; rtems_status_code return_status = RTEMS_SUCCESSFUL; register Region_Control *the_region; if ( !segment ) 117276: 85 db test %ebx,%ebx 117278: 74 72 je 1172ec return RTEMS_INVALID_ADDRESS; if ( !size ) 11727a: 85 f6 test %esi,%esi 11727c: 74 6e je 1172ec return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 11727e: 83 ec 0c sub $0xc,%esp 117281: ff 35 30 f8 13 00 pushl 0x13f830 117287: e8 a4 20 00 00 call 119330 <_API_Mutex_Lock> 11728c: 83 c4 0c add $0xc,%esp 11728f: 8d 45 f4 lea -0xc(%ebp),%eax 117292: 50 push %eax 117293: ff 75 08 pushl 0x8(%ebp) 117296: 68 80 f6 13 00 push $0x13f680 11729b: e8 88 38 00 00 call 11ab28 <_Objects_Get_no_protection> the_region = _Region_Get( id, &location ); switch ( location ) { 1172a0: 83 c4 10 add $0x10,%esp 1172a3: 8b 55 f4 mov -0xc(%ebp),%edx 1172a6: 85 d2 test %edx,%edx 1172a8: 75 36 jne 1172e0 case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) 1172aa: 52 push %edx 1172ab: 56 push %esi 1172ac: 53 push %ebx 1172ad: 83 c0 68 add $0x68,%eax 1172b0: 50 push %eax 1172b1: e8 d6 32 00 00 call 11a58c <_Heap_Size_of_alloc_area> 1172b6: 83 c4 10 add $0x10,%esp 1172b9: 84 c0 test %al,%al 1172bb: 74 3b je 1172f8 1172bd: 31 c0 xor %eax,%eax case OBJECTS_ERROR: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 1172bf: 83 ec 0c sub $0xc,%esp 1172c2: ff 35 30 f8 13 00 pushl 0x13f830 1172c8: 89 45 e4 mov %eax,-0x1c(%ebp) 1172cb: e8 a8 20 00 00 call 119378 <_API_Mutex_Unlock> return return_status; 1172d0: 83 c4 10 add $0x10,%esp 1172d3: 8b 45 e4 mov -0x1c(%ebp),%eax } 1172d6: 8d 65 f8 lea -0x8(%ebp),%esp 1172d9: 5b pop %ebx 1172da: 5e pop %esi 1172db: c9 leave 1172dc: c3 ret 1172dd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); the_region = _Region_Get( id, &location ); switch ( location ) { 1172e0: 4a dec %edx 1172e1: 75 da jne 1172bd 1172e3: b8 04 00 00 00 mov $0x4,%eax 1172e8: eb d5 jmp 1172bf 1172ea: 66 90 xchg %ax,%ax <== NOT EXECUTED return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status; 1172ec: b8 09 00 00 00 mov $0x9,%eax } 1172f1: 8d 65 f8 lea -0x8(%ebp),%esp 1172f4: 5b pop %ebx 1172f5: 5e pop %esi 1172f6: c9 leave 1172f7: c3 ret the_region = _Region_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) ) 1172f8: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED 1172fd: eb c0 jmp 1172bf <== NOT EXECUTED 00117324 : rtems_id id, void *segment, uintptr_t size, uintptr_t *old_size ) { 117324: 55 push %ebp 117325: 89 e5 mov %esp,%ebp 117327: 56 push %esi 117328: 53 push %ebx 117329: 83 ec 20 sub $0x20,%esp 11732c: 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 ) 11732f: 85 db test %ebx,%ebx 117331: 0f 84 a5 00 00 00 je 1173dc return RTEMS_INVALID_ADDRESS; _RTEMS_Lock_allocator(); 117337: 83 ec 0c sub $0xc,%esp 11733a: ff 35 30 f8 13 00 pushl 0x13f830 117340: e8 eb 1f 00 00 call 119330 <_API_Mutex_Lock> 117345: 83 c4 0c add $0xc,%esp 117348: 8d 45 f0 lea -0x10(%ebp),%eax 11734b: 50 push %eax 11734c: ff 75 08 pushl 0x8(%ebp) 11734f: 68 80 f6 13 00 push $0x13f680 117354: e8 cf 37 00 00 call 11ab28 <_Objects_Get_no_protection> 117359: 89 c6 mov %eax,%esi the_region = _Region_Get( id, &location ); switch ( location ) { 11735b: 83 c4 10 add $0x10,%esp 11735e: 8b 45 f0 mov -0x10(%ebp),%eax 117361: 85 c0 test %eax,%eax 117363: 74 1f je 117384 default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 117365: 83 ec 0c sub $0xc,%esp 117368: ff 35 30 f8 13 00 pushl 0x13f830 11736e: e8 05 20 00 00 call 119378 <_API_Mutex_Unlock> 117373: b8 04 00 00 00 mov $0x4,%eax return return_status; 117378: 83 c4 10 add $0x10,%esp } 11737b: 8d 65 f8 lea -0x8(%ebp),%esp 11737e: 5b pop %ebx 11737f: 5e pop %esi 117380: c9 leave 117381: c3 ret 117382: 66 90 xchg %ax,%ax <== NOT EXECUTED case OBJECTS_LOCAL: _Region_Debug_Walk( the_region, 7 ); status = _Heap_Resize_block( 117384: 83 ec 0c sub $0xc,%esp 117387: 8d 45 f4 lea -0xc(%ebp),%eax 11738a: 50 push %eax 11738b: 8d 45 ec lea -0x14(%ebp),%eax 11738e: 50 push %eax 11738f: ff 75 10 pushl 0x10(%ebp) 117392: ff 75 0c pushl 0xc(%ebp) 117395: 8d 46 68 lea 0x68(%esi),%eax 117398: 50 push %eax 117399: e8 e2 30 00 00 call 11a480 <_Heap_Resize_block> segment, (uint32_t) size, &osize, &avail_size ); *old_size = (uint32_t) osize; 11739e: 8b 55 ec mov -0x14(%ebp),%edx 1173a1: 89 13 mov %edx,(%ebx) _Region_Debug_Walk( the_region, 8 ); if ( status == HEAP_RESIZE_SUCCESSFUL ) 1173a3: 83 c4 20 add $0x20,%esp 1173a6: 85 c0 test %eax,%eax 1173a8: 75 16 jne 1173c0 _Region_Process_queue( the_region ); /* unlocks allocator */ 1173aa: 83 ec 0c sub $0xc,%esp 1173ad: 56 push %esi 1173ae: e8 6d 6d 00 00 call 11e120 <_Region_Process_queue> 1173b3: 31 c0 xor %eax,%eax 1173b5: 83 c4 10 add $0x10,%esp break; } _RTEMS_Unlock_allocator(); return return_status; } 1173b8: 8d 65 f8 lea -0x8(%ebp),%esp 1173bb: 5b pop %ebx 1173bc: 5e pop %esi 1173bd: c9 leave 1173be: c3 ret 1173bf: 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(); 1173c0: 83 ec 0c sub $0xc,%esp 1173c3: ff 35 30 f8 13 00 pushl 0x13f830 1173c9: 89 45 e4 mov %eax,-0x1c(%ebp) 1173cc: e8 a7 1f 00 00 call 119378 <_API_Mutex_Unlock> if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED) 1173d1: 83 c4 10 add $0x10,%esp 1173d4: 8b 45 e4 mov -0x1c(%ebp),%eax 1173d7: 83 f8 01 cmp $0x1,%eax 1173da: 74 0c je 1173e8 return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); return return_status; 1173dc: b8 09 00 00 00 mov $0x9,%eax } 1173e1: 8d 65 f8 lea -0x8(%ebp),%esp 1173e4: 5b pop %ebx 1173e5: 5e pop %esi 1173e6: c9 leave 1173e7: c3 ret _RTEMS_Unlock_allocator(); if (status == HEAP_RESIZE_SUCCESSFUL) return RTEMS_SUCCESSFUL; if (status == HEAP_RESIZE_UNSATISFIED) 1173e8: b0 0d mov $0xd,%al 1173ea: eb 8f jmp 11737b 001173ec : rtems_status_code rtems_region_return_segment( rtems_id id, void *segment ) { 1173ec: 55 push %ebp 1173ed: 89 e5 mov %esp,%ebp 1173ef: 53 push %ebx 1173f0: 83 ec 20 sub $0x20,%esp uint32_t size; #endif int status; register Region_Control *the_region; _RTEMS_Lock_allocator(); 1173f3: ff 35 30 f8 13 00 pushl 0x13f830 1173f9: e8 32 1f 00 00 call 119330 <_API_Mutex_Lock> 1173fe: 83 c4 0c add $0xc,%esp 117401: 8d 45 f4 lea -0xc(%ebp),%eax 117404: 50 push %eax 117405: ff 75 08 pushl 0x8(%ebp) 117408: 68 80 f6 13 00 push $0x13f680 11740d: e8 16 37 00 00 call 11ab28 <_Objects_Get_no_protection> 117412: 89 c3 mov %eax,%ebx the_region = _Region_Get( id, &location ); switch ( location ) { 117414: 83 c4 10 add $0x10,%esp 117417: 8b 45 f4 mov -0xc(%ebp),%eax 11741a: 85 c0 test %eax,%eax 11741c: 74 1e je 11743c 11741e: bb 04 00 00 00 mov $0x4,%ebx default: return_status = RTEMS_INVALID_ID; break; } _RTEMS_Unlock_allocator(); 117423: 83 ec 0c sub $0xc,%esp 117426: ff 35 30 f8 13 00 pushl 0x13f830 11742c: e8 47 1f 00 00 call 119378 <_API_Mutex_Unlock> return return_status; 117431: 83 c4 10 add $0x10,%esp } 117434: 89 d8 mov %ebx,%eax 117436: 8b 5d fc mov -0x4(%ebp),%ebx 117439: c9 leave 11743a: c3 ret 11743b: 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 ); 11743c: 83 ec 08 sub $0x8,%esp 11743f: ff 75 0c pushl 0xc(%ebp) 117442: 8d 43 68 lea 0x68(%ebx),%eax 117445: 50 push %eax 117446: e8 b9 2a 00 00 call 119f04 <_Heap_Free> #endif status = _Region_Free_segment( the_region, segment ); _Region_Debug_Walk( the_region, 4 ); if ( !status ) 11744b: 83 c4 10 add $0x10,%esp 11744e: 84 c0 test %al,%al 117450: 75 0a jne 11745c else { the_region->number_of_used_blocks -= 1; _Region_Process_queue(the_region); /* unlocks allocator */ return RTEMS_SUCCESSFUL; 117452: bb 09 00 00 00 mov $0x9,%ebx 117457: eb ca jmp 117423 117459: 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; 11745c: ff 4b 64 decl 0x64(%ebx) _Region_Process_queue(the_region); /* unlocks allocator */ 11745f: 83 ec 0c sub $0xc,%esp 117462: 53 push %ebx 117463: e8 b8 6c 00 00 call 11e120 <_Region_Process_queue> 117468: 31 db xor %ebx,%ebx return RTEMS_SUCCESSFUL; 11746a: 83 c4 10 add $0x10,%esp break; } _RTEMS_Unlock_allocator(); return return_status; } 11746d: 89 d8 mov %ebx,%eax 11746f: 8b 5d fc mov -0x4(%ebp),%ebx 117472: c9 leave 117473: c3 ret 0010b328 : uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) { 10b328: 55 push %ebp 10b329: 89 e5 mov %esp,%ebp 10b32b: 57 push %edi 10b32c: 56 push %esi 10b32d: 53 push %ebx 10b32e: 83 ec 3c sub $0x3c,%esp 10b331: 8b 75 08 mov 0x8(%ebp),%esi 10b334: 8b 5d 10 mov 0x10(%ebp),%ebx 10b337: 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 ) ) 10b33a: 85 f6 test %esi,%esi 10b33c: 74 4a je 10b388 return RTEMS_INVALID_NAME; if ( !id ) 10b33e: 85 ff test %edi,%edi 10b340: 0f 84 f6 00 00 00 je 10b43c return RTEMS_NOT_DEFINED; } else #endif if ( _Attributes_Is_inherit_priority( attribute_set ) || 10b346: 89 da mov %ebx,%edx 10b348: 81 e2 c0 00 00 00 and $0xc0,%edx 10b34e: 74 48 je 10b398 _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) && 10b350: 89 d8 mov %ebx,%eax 10b352: 83 e0 30 and $0x30,%eax 10b355: 83 f8 10 cmp $0x10,%eax 10b358: 74 0e je 10b368 name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 10b35a: b8 0b 00 00 00 mov $0xb,%eax } 10b35f: 8d 65 f4 lea -0xc(%ebp),%esp 10b362: 5b pop %ebx 10b363: 5e pop %esi 10b364: 5f pop %edi 10b365: c9 leave 10b366: c3 ret 10b367: 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 ) && 10b368: f6 c3 04 test $0x4,%bl 10b36b: 74 ed je 10b35a _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; } if ( _Attributes_Is_inherit_priority( attribute_set ) && 10b36d: 81 fa c0 00 00 00 cmp $0xc0,%edx 10b373: 74 e5 je 10b35a 10b375: 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 ) ) 10b37a: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) 10b37e: 76 1f jbe 10b39f 10b380: b8 0a 00 00 00 mov $0xa,%eax 10b385: eb d8 jmp 10b35f 10b387: 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 ) ) 10b388: b8 03 00 00 00 mov $0x3,%eax 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10b38d: 8d 65 f4 lea -0xc(%ebp),%esp 10b390: 5b pop %ebx 10b391: 5e pop %esi 10b392: 5f pop %edi 10b393: c9 leave 10b394: c3 ret 10b395: 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 ) ) 10b398: 89 d9 mov %ebx,%ecx 10b39a: 83 e1 30 and $0x30,%ecx 10b39d: 75 db jne 10b37a rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10b39f: a1 58 53 12 00 mov 0x125358,%eax 10b3a4: 40 inc %eax 10b3a5: a3 58 53 12 00 mov %eax,0x125358 * This function allocates a semaphore control block from * the inactive chain of free semaphore control blocks. */ RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Allocate( void ) { return (Semaphore_Control *) _Objects_Allocate( &_Semaphore_Information ); 10b3aa: 83 ec 0c sub $0xc,%esp 10b3ad: 68 a0 52 12 00 push $0x1252a0 10b3b2: 89 4d c4 mov %ecx,-0x3c(%ebp) 10b3b5: e8 46 13 00 00 call 10c700 <_Objects_Allocate> 10b3ba: 89 c2 mov %eax,%edx _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { 10b3bc: 83 c4 10 add $0x10,%esp 10b3bf: 85 c0 test %eax,%eax 10b3c1: 8b 4d c4 mov -0x3c(%ebp),%ecx 10b3c4: 0f 84 ba 00 00 00 je 10b484 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } #endif the_semaphore->attribute_set = attribute_set; 10b3ca: 89 58 10 mov %ebx,0x10(%eax) /* * Initialize it as a counting semaphore. */ if ( _Attributes_Is_counting_semaphore( attribute_set ) ) { 10b3cd: 85 c9 test %ecx,%ecx 10b3cf: 74 77 je 10b448 /* * 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; 10b3d1: 31 c0 xor %eax,%eax 10b3d3: f6 c3 04 test $0x4,%bl 10b3d6: 0f 95 c0 setne %al 10b3d9: 89 45 d8 mov %eax,-0x28(%ebp) else the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO; if ( _Attributes_Is_binary_semaphore( attribute_set ) ) { 10b3dc: 83 f9 10 cmp $0x10,%ecx 10b3df: 0f 84 ae 00 00 00 je 10b493 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; 10b3e5: c7 45 d0 02 00 00 00 movl $0x2,-0x30(%ebp) the_mutex_attr.only_owner_release = false; 10b3ec: c6 45 d4 00 movb $0x0,-0x2c(%ebp) } mutex_status = _CORE_mutex_Initialize( 10b3f0: 50 push %eax 10b3f1: 31 c0 xor %eax,%eax 10b3f3: 83 7d 0c 01 cmpl $0x1,0xc(%ebp) 10b3f7: 0f 94 c0 sete %al 10b3fa: 50 push %eax 10b3fb: 8d 45 d0 lea -0x30(%ebp),%eax 10b3fe: 50 push %eax 10b3ff: 8d 42 14 lea 0x14(%edx),%eax 10b402: 50 push %eax 10b403: 89 55 c4 mov %edx,-0x3c(%ebp) 10b406: e8 65 0b 00 00 call 10bf70 <_CORE_mutex_Initialize> &the_semaphore->Core_control.mutex, &the_mutex_attr, (count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED ); if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) { 10b40b: 83 c4 10 add $0x10,%esp 10b40e: 83 f8 06 cmp $0x6,%eax 10b411: 8b 55 c4 mov -0x3c(%ebp),%edx 10b414: 0f 84 a9 00 00 00 je 10b4c3 #if defined(RTEMS_DEBUG) if ( index > information->maximum ) return; #endif information->local_table[ index ] = the_object; 10b41a: 8b 42 08 mov 0x8(%edx),%eax 10b41d: 0f b7 d8 movzwl %ax,%ebx 10b420: 8b 0d bc 52 12 00 mov 0x1252bc,%ecx 10b426: 89 14 99 mov %edx,(%ecx,%ebx,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 10b429: 89 72 0c mov %esi,0xc(%edx) &_Semaphore_Information, &the_semaphore->Object, (Objects_Name) name ); *id = the_semaphore->Object.id; 10b42c: 89 07 mov %eax,(%edi) the_semaphore->Object.id, name, 0 /* Not used */ ); #endif _Thread_Enable_dispatch(); 10b42e: e8 c5 1f 00 00 call 10d3f8 <_Thread_Enable_dispatch> 10b433: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10b435: e9 25 ff ff ff jmp 10b35f 10b43a: 66 90 xchg %ax,%ax <== NOT EXECUTED CORE_mutex_Status mutex_status; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 10b43c: b8 09 00 00 00 mov $0x9,%eax 10b441: e9 19 ff ff ff jmp 10b35f 10b446: 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; 10b448: 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; 10b44f: 31 c0 xor %eax,%eax 10b451: f6 c3 04 test $0x4,%bl 10b454: 0f 95 c0 setne %al 10b457: 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; 10b45a: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM; 10b461: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) _CORE_semaphore_Initialize( 10b468: 51 push %ecx 10b469: ff 75 0c pushl 0xc(%ebp) 10b46c: 8d 45 e0 lea -0x20(%ebp),%eax 10b46f: 50 push %eax 10b470: 8d 42 14 lea 0x14(%edx),%eax 10b473: 50 push %eax 10b474: 89 55 c4 mov %edx,-0x3c(%ebp) 10b477: e8 98 0d 00 00 call 10c214 <_CORE_semaphore_Initialize> 10b47c: 83 c4 10 add $0x10,%esp 10b47f: 8b 55 c4 mov -0x3c(%ebp),%edx 10b482: eb 96 jmp 10b41a _Thread_Disable_dispatch(); /* prevents deletion */ the_semaphore = _Semaphore_Allocate(); if ( !the_semaphore ) { _Thread_Enable_dispatch(); 10b484: e8 6f 1f 00 00 call 10d3f8 <_Thread_Enable_dispatch> 10b489: b8 05 00 00 00 mov $0x5,%eax return RTEMS_TOO_MANY; 10b48e: e9 cc fe ff ff jmp 10b35f 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; 10b493: 8b 45 14 mov 0x14(%ebp),%eax 10b496: 89 45 dc mov %eax,-0x24(%ebp) the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES; 10b499: c7 45 d0 00 00 00 00 movl $0x0,-0x30(%ebp) the_mutex_attr.only_owner_release = false; 10b4a0: c6 45 d4 00 movb $0x0,-0x2c(%ebp) if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) { 10b4a4: 83 7d d8 01 cmpl $0x1,-0x28(%ebp) 10b4a8: 0f 85 42 ff ff ff jne 10b3f0 if ( _Attributes_Is_inherit_priority( attribute_set ) ) { 10b4ae: f6 c3 40 test $0x40,%bl 10b4b1: 74 30 je 10b4e3 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 10b4b3: c7 45 d8 02 00 00 00 movl $0x2,-0x28(%ebp) the_mutex_attr.only_owner_release = true; 10b4ba: c6 45 d4 01 movb $0x1,-0x2c(%ebp) 10b4be: e9 2d ff ff ff jmp 10b3f0 */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 10b4c3: 83 ec 08 sub $0x8,%esp 10b4c6: 52 push %edx 10b4c7: 68 a0 52 12 00 push $0x1252a0 10b4cc: e8 af 15 00 00 call 10ca80 <_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(); 10b4d1: e8 22 1f 00 00 call 10d3f8 <_Thread_Enable_dispatch> 10b4d6: b8 13 00 00 00 mov $0x13,%eax return RTEMS_INVALID_PRIORITY; 10b4db: 83 c4 10 add $0x10,%esp 10b4de: e9 7c fe ff ff jmp 10b35f 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 ) ) { 10b4e3: 84 db test %bl,%bl 10b4e5: 0f 89 05 ff ff ff jns 10b3f0 the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING; 10b4eb: c7 45 d8 03 00 00 00 movl $0x3,-0x28(%ebp) the_mutex_attr.only_owner_release = true; 10b4f2: c6 45 d4 01 movb $0x1,-0x2c(%ebp) 10b4f6: e9 f5 fe ff ff jmp 10b3f0 0010b4fc : #endif rtems_status_code rtems_semaphore_delete( rtems_id id ) { 10b4fc: 55 push %ebp 10b4fd: 89 e5 mov %esp,%ebp 10b4ff: 53 push %ebx 10b500: 83 ec 18 sub $0x18,%esp RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) 10b503: 8d 45 f4 lea -0xc(%ebp),%eax 10b506: 50 push %eax 10b507: ff 75 08 pushl 0x8(%ebp) 10b50a: 68 a0 52 12 00 push $0x1252a0 10b50f: e8 9c 16 00 00 call 10cbb0 <_Objects_Get> 10b514: 89 c3 mov %eax,%ebx register Semaphore_Control *the_semaphore; Objects_Locations location; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 10b516: 83 c4 10 add $0x10,%esp 10b519: 8b 4d f4 mov -0xc(%ebp),%ecx 10b51c: 85 c9 test %ecx,%ecx 10b51e: 74 0c je 10b52c 10b520: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b525: 8b 5d fc mov -0x4(%ebp),%ebx 10b528: c9 leave 10b529: c3 ret 10b52a: 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); 10b52c: 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) ) { 10b52f: 83 e0 30 and $0x30,%eax 10b532: 74 58 je 10b58c if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) && 10b534: 8b 53 64 mov 0x64(%ebx),%edx 10b537: 85 d2 test %edx,%edx 10b539: 75 15 jne 10b550 10b53b: 83 f8 20 cmp $0x20,%eax 10b53e: 74 10 je 10b550 !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); 10b540: e8 b3 1e 00 00 call 10d3f8 <_Thread_Enable_dispatch> 10b545: b8 0c 00 00 00 mov $0xc,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b54a: 8b 5d fc mov -0x4(%ebp),%ebx 10b54d: c9 leave 10b54e: c3 ret 10b54f: 90 nop <== NOT EXECUTED !_Attributes_Is_simple_binary_semaphore( the_semaphore->attribute_set ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } _CORE_mutex_Flush( 10b550: 50 push %eax 10b551: 6a 04 push $0x4 10b553: 6a 00 push $0x0 10b555: 8d 43 14 lea 0x14(%ebx),%eax 10b558: 50 push %eax 10b559: e8 06 0a 00 00 call 10bf64 <_CORE_mutex_Flush> 10b55e: 83 c4 10 add $0x10,%esp SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); } _Objects_Close( &_Semaphore_Information, &the_semaphore->Object ); 10b561: 83 ec 08 sub $0x8,%esp 10b564: 53 push %ebx 10b565: 68 a0 52 12 00 push $0x1252a0 10b56a: e8 0d 12 00 00 call 10c77c <_Objects_Close> */ RTEMS_INLINE_ROUTINE void _Semaphore_Free ( Semaphore_Control *the_semaphore ) { _Objects_Free( &_Semaphore_Information, &the_semaphore->Object ); 10b56f: 58 pop %eax 10b570: 5a pop %edx 10b571: 53 push %ebx 10b572: 68 a0 52 12 00 push $0x1252a0 10b577: e8 04 15 00 00 call 10ca80 <_Objects_Free> 0, /* Not used */ 0 /* Not used */ ); } #endif _Thread_Enable_dispatch(); 10b57c: e8 77 1e 00 00 call 10d3f8 <_Thread_Enable_dispatch> 10b581: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10b583: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b586: 8b 5d fc mov -0x4(%ebp),%ebx 10b589: c9 leave 10b58a: c3 ret 10b58b: 90 nop <== NOT EXECUTED &the_semaphore->Core_control.mutex, SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_MUTEX_WAS_DELETED ); } else { _CORE_semaphore_Flush( 10b58c: 51 push %ecx 10b58d: 6a 02 push $0x2 10b58f: 6a 00 push $0x0 10b591: 8d 43 14 lea 0x14(%ebx),%eax 10b594: 50 push %eax 10b595: e8 6e 0c 00 00 call 10c208 <_CORE_semaphore_Flush> 10b59a: 83 c4 10 add $0x10,%esp 10b59d: eb c2 jmp 10b561 0010b5a0 : rtems_status_code rtems_semaphore_obtain( rtems_id id, rtems_option option_set, rtems_interval timeout ) { 10b5a0: 55 push %ebp 10b5a1: 89 e5 mov %esp,%ebp 10b5a3: 57 push %edi 10b5a4: 56 push %esi 10b5a5: 53 push %ebx 10b5a6: 83 ec 1c sub $0x1c,%esp 10b5a9: 8b 5d 08 mov 0x8(%ebp),%ebx 10b5ac: 8b 75 0c mov 0xc(%ebp),%esi 10b5af: 8b 7d 10 mov 0x10(%ebp),%edi Objects_Id id, Objects_Locations *location, ISR_Level *level ) { return (Semaphore_Control *) 10b5b2: 8d 45 e0 lea -0x20(%ebp),%eax 10b5b5: 50 push %eax 10b5b6: 8d 45 e4 lea -0x1c(%ebp),%eax 10b5b9: 50 push %eax 10b5ba: 53 push %ebx 10b5bb: 68 a0 52 12 00 push $0x1252a0 10b5c0: e8 93 15 00 00 call 10cb58 <_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 ) { 10b5c5: 83 c4 10 add $0x10,%esp 10b5c8: 8b 4d e4 mov -0x1c(%ebp),%ecx 10b5cb: 85 c9 test %ecx,%ecx 10b5cd: 74 0d je 10b5dc 10b5cf: b8 04 00 00 00 mov $0x4,%eax break; } return RTEMS_INVALID_ID; } 10b5d4: 8d 65 f4 lea -0xc(%ebp),%esp 10b5d7: 5b pop %ebx 10b5d8: 5e pop %esi 10b5d9: 5f pop %edi 10b5da: c9 leave 10b5db: 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) ) { 10b5dc: f6 40 10 30 testb $0x30,0x10(%eax) 10b5e0: 74 36 je 10b618 _CORE_mutex_Seize( 10b5e2: 83 ec 0c sub $0xc,%esp 10b5e5: ff 75 e0 pushl -0x20(%ebp) 10b5e8: 57 push %edi 10b5e9: 83 e6 01 and $0x1,%esi 10b5ec: 83 f6 01 xor $0x1,%esi 10b5ef: 56 push %esi 10b5f0: 53 push %ebx 10b5f1: 83 c0 14 add $0x14,%eax 10b5f4: 50 push %eax 10b5f5: e8 6e 0a 00 00 call 10c068 <_CORE_mutex_Seize> id, ((_Options_Is_no_wait( option_set )) ? false : true), timeout, level ); return _Semaphore_Translate_core_mutex_return_code( 10b5fa: 83 c4 14 add $0x14,%esp 10b5fd: a1 18 54 12 00 mov 0x125418,%eax 10b602: ff 70 34 pushl 0x34(%eax) 10b605: e8 12 01 00 00 call 10b71c <_Semaphore_Translate_core_mutex_return_code> 10b60a: 83 c4 10 add $0x10,%esp break; } return RTEMS_INVALID_ID; } 10b60d: 8d 65 f4 lea -0xc(%ebp),%esp 10b610: 5b pop %ebx 10b611: 5e pop %esi 10b612: 5f pop %edi 10b613: c9 leave 10b614: c3 ret 10b615: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 10b618: 8b 15 18 54 12 00 mov 0x125418,%edx executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL; 10b61e: c7 42 34 00 00 00 00 movl $0x0,0x34(%edx) if ( the_semaphore->count != 0 ) { 10b625: 8b 48 5c mov 0x5c(%eax),%ecx 10b628: 85 c9 test %ecx,%ecx 10b62a: 75 2c jne 10b658 the_semaphore->count -= 1; _ISR_Enable( *level_p ); return; } if ( !wait ) { 10b62c: 83 e6 01 and $0x1,%esi 10b62f: 74 33 je 10b664 _ISR_Enable( *level_p ); 10b631: ff 75 e0 pushl -0x20(%ebp) 10b634: 9d popf executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT; 10b635: 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( 10b63c: 83 ec 0c sub $0xc,%esp 10b63f: a1 18 54 12 00 mov 0x125418,%eax 10b644: ff 70 34 pushl 0x34(%eax) 10b647: e8 e0 00 00 00 call 10b72c <_Semaphore_Translate_core_semaphore_return_code> 10b64c: 83 c4 10 add $0x10,%esp break; } return RTEMS_INVALID_ID; } 10b64f: 8d 65 f4 lea -0xc(%ebp),%esp 10b652: 5b pop %ebx 10b653: 5e pop %esi 10b654: 5f pop %edi 10b655: c9 leave 10b656: c3 ret 10b657: 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; 10b658: 49 dec %ecx 10b659: 89 48 5c mov %ecx,0x5c(%eax) _ISR_Enable( *level_p ); 10b65c: ff 75 e0 pushl -0x20(%ebp) 10b65f: 9d popf 10b660: eb da jmp 10b63c 10b662: 66 90 xchg %ax,%ax <== NOT EXECUTED 10b664: 8b 0d 58 53 12 00 mov 0x125358,%ecx 10b66a: 41 inc %ecx 10b66b: 89 0d 58 53 12 00 mov %ecx,0x125358 RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 10b671: 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; 10b678: 83 c0 14 add $0x14,%eax 10b67b: 89 42 44 mov %eax,0x44(%edx) executing->Wait.id = id; 10b67e: 89 5a 20 mov %ebx,0x20(%edx) _ISR_Enable( *level_p ); 10b681: ff 75 e0 pushl -0x20(%ebp) 10b684: 9d popf _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout ); 10b685: 52 push %edx 10b686: 68 dc db 10 00 push $0x10dbdc 10b68b: 57 push %edi 10b68c: 50 push %eax 10b68d: e8 3a 22 00 00 call 10d8cc <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); 10b692: e8 61 1d 00 00 call 10d3f8 <_Thread_Enable_dispatch> 10b697: 83 c4 10 add $0x10,%esp 10b69a: eb a0 jmp 10b63c 0010b69c : #endif rtems_status_code rtems_semaphore_release( rtems_id id ) { 10b69c: 55 push %ebp 10b69d: 89 e5 mov %esp,%ebp 10b69f: 53 push %ebx 10b6a0: 83 ec 18 sub $0x18,%esp 10b6a3: 8b 5d 08 mov 0x8(%ebp),%ebx RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get ( Objects_Id id, Objects_Locations *location ) { return (Semaphore_Control *) 10b6a6: 8d 45 f4 lea -0xc(%ebp),%eax 10b6a9: 50 push %eax 10b6aa: 53 push %ebx 10b6ab: 68 a0 52 12 00 push $0x1252a0 10b6b0: e8 fb 14 00 00 call 10cbb0 <_Objects_Get> Objects_Locations location; CORE_mutex_Status mutex_status; CORE_semaphore_Status semaphore_status; the_semaphore = _Semaphore_Get( id, &location ); switch ( location ) { 10b6b5: 83 c4 10 add $0x10,%esp 10b6b8: 8b 55 f4 mov -0xc(%ebp),%edx 10b6bb: 85 d2 test %edx,%edx 10b6bd: 74 0d je 10b6cc 10b6bf: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b6c4: 8b 5d fc mov -0x4(%ebp),%ebx 10b6c7: c9 leave 10b6c8: c3 ret 10b6c9: 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) ) { 10b6cc: f6 40 10 30 testb $0x30,0x10(%eax) 10b6d0: 75 26 jne 10b6f8 MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return _Semaphore_Translate_core_mutex_return_code( mutex_status ); } else { semaphore_status = _CORE_semaphore_Surrender( 10b6d2: 52 push %edx 10b6d3: 6a 00 push $0x0 10b6d5: 53 push %ebx 10b6d6: 83 c0 14 add $0x14,%eax 10b6d9: 50 push %eax 10b6da: e8 75 0b 00 00 call 10c254 <_CORE_semaphore_Surrender> 10b6df: 89 c3 mov %eax,%ebx &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); 10b6e1: e8 12 1d 00 00 call 10d3f8 <_Thread_Enable_dispatch> return _Semaphore_Translate_core_semaphore_return_code( semaphore_status ); 10b6e6: 89 1c 24 mov %ebx,(%esp) 10b6e9: e8 3e 00 00 00 call 10b72c <_Semaphore_Translate_core_semaphore_return_code> &the_semaphore->Core_control.semaphore, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); return 10b6ee: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b6f1: 8b 5d fc mov -0x4(%ebp),%ebx 10b6f4: c9 leave 10b6f5: c3 ret 10b6f6: 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( 10b6f8: 51 push %ecx 10b6f9: 6a 00 push $0x0 10b6fb: 53 push %ebx 10b6fc: 83 c0 14 add $0x14,%eax 10b6ff: 50 push %eax 10b700: e8 03 0a 00 00 call 10c108 <_CORE_mutex_Surrender> 10b705: 89 c3 mov %eax,%ebx &the_semaphore->Core_control.mutex, id, MUTEX_MP_SUPPORT ); _Thread_Enable_dispatch(); 10b707: e8 ec 1c 00 00 call 10d3f8 <_Thread_Enable_dispatch> return _Semaphore_Translate_core_mutex_return_code( mutex_status ); 10b70c: 89 1c 24 mov %ebx,(%esp) 10b70f: e8 08 00 00 00 call 10b71c <_Semaphore_Translate_core_mutex_return_code> 10b714: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10b717: 8b 5d fc mov -0x4(%ebp),%ebx 10b71a: c9 leave 10b71b: c3 ret 0010c63c : rtems_status_code rtems_signal_catch( rtems_asr_entry asr_handler, rtems_mode mode_set ) { 10c63c: 55 push %ebp 10c63d: 89 e5 mov %esp,%ebp 10c63f: 83 ec 08 sub $0x8,%esp 10c642: 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 ]; 10c645: a1 d8 86 12 00 mov 0x1286d8,%eax 10c64a: 8b 80 f0 00 00 00 mov 0xf0(%eax),%eax 10c650: 8b 0d 18 86 12 00 mov 0x128618,%ecx 10c656: 41 inc %ecx 10c657: 89 0d 18 86 12 00 mov %ecx,0x128618 asr = &api->Signal; _Thread_Disable_dispatch(); /* cannot reschedule while */ /* the thread is inconsistent */ if ( !_ASR_Is_null_handler( asr_handler ) ) { 10c65d: 85 d2 test %edx,%edx 10c65f: 74 13 je 10c674 asr->mode_set = mode_set; 10c661: 8b 4d 0c mov 0xc(%ebp),%ecx 10c664: 89 48 10 mov %ecx,0x10(%eax) asr->handler = asr_handler; 10c667: 89 50 0c mov %edx,0xc(%eax) } else _ASR_Initialize( asr ); _Thread_Enable_dispatch(); 10c66a: e8 45 20 00 00 call 10e6b4 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; } 10c66f: 31 c0 xor %eax,%eax 10c671: c9 leave 10c672: c3 ret 10c673: 90 nop <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( ASR_Information *information ) { information->is_enabled = false; 10c674: c6 40 08 00 movb $0x0,0x8(%eax) information->handler = NULL; 10c678: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) information->mode_set = RTEMS_DEFAULT_MODES; 10c67f: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) information->signals_posted = 0; 10c686: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) information->signals_pending = 0; 10c68d: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) information->nest_level = 0; 10c694: 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(); 10c69b: e8 14 20 00 00 call 10e6b4 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; } 10c6a0: 31 c0 xor %eax,%eax 10c6a2: c9 leave 10c6a3: c3 ret 00117948 : rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) { 117948: 55 push %ebp 117949: 89 e5 mov %esp,%ebp 11794b: 53 push %ebx 11794c: 83 ec 14 sub $0x14,%esp 11794f: 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 ) 117952: 85 db test %ebx,%ebx 117954: 75 0a jne 117960 117956: b8 0a 00 00 00 mov $0xa,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11795b: 8b 5d fc mov -0x4(%ebp),%ebx 11795e: c9 leave 11795f: c3 ret ASR_Information *asr; if ( !signal_set ) return RTEMS_INVALID_NUMBER; the_thread = _Thread_Get( id, &location ); 117960: 83 ec 08 sub $0x8,%esp 117963: 8d 45 f4 lea -0xc(%ebp),%eax 117966: 50 push %eax 117967: ff 75 08 pushl 0x8(%ebp) 11796a: e8 f5 3a 00 00 call 11b464 <_Thread_Get> switch ( location ) { 11796f: 83 c4 10 add $0x10,%esp 117972: 8b 55 f4 mov -0xc(%ebp),%edx 117975: 85 d2 test %edx,%edx 117977: 74 0b je 117984 117979: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11797e: 8b 5d fc mov -0x4(%ebp),%ebx 117981: c9 leave 117982: c3 ret 117983: 90 nop <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; 117984: 8b 90 f0 00 00 00 mov 0xf0(%eax),%edx asr = &api->Signal; 11798a: 8b 4a 0c mov 0xc(%edx),%ecx 11798d: 85 c9 test %ecx,%ecx 11798f: 74 43 je 1179d4 if ( ! _ASR_Is_null_handler( asr->handler ) ) { if ( asr->is_enabled ) { 117991: 80 7a 08 00 cmpb $0x0,0x8(%edx) 117995: 74 29 je 1179c0 rtems_signal_set *signal_set ) { ISR_Level _level; _ISR_Disable( _level ); 117997: 9c pushf 117998: fa cli 117999: 59 pop %ecx *signal_set |= signals; 11799a: 09 5a 14 or %ebx,0x14(%edx) _ISR_Enable( _level ); 11799d: 51 push %ecx 11799e: 9d popf _ASR_Post_signals( signal_set, &asr->signals_posted ); the_thread->do_post_task_switch_extension = true; 11799f: c6 40 74 01 movb $0x1,0x74(%eax) if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) ) 1179a3: 8b 15 14 f8 13 00 mov 0x13f814,%edx 1179a9: 85 d2 test %edx,%edx 1179ab: 74 1b je 1179c8 1179ad: 3b 05 38 f8 13 00 cmp 0x13f838,%eax 1179b3: 75 13 jne 1179c8 _ISR_Signals_to_thread_executing = true; 1179b5: c6 05 e8 f8 13 00 01 movb $0x1,0x13f8e8 1179bc: eb 0a jmp 1179c8 1179be: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_signal_set *signal_set ) { ISR_Level _level; _ISR_Disable( _level ); 1179c0: 9c pushf 1179c1: fa cli 1179c2: 58 pop %eax *signal_set |= signals; 1179c3: 09 5a 18 or %ebx,0x18(%edx) _ISR_Enable( _level ); 1179c6: 50 push %eax 1179c7: 9d popf } else { _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); 1179c8: e8 47 3a 00 00 call 11b414 <_Thread_Enable_dispatch> 1179cd: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1179cf: 8b 5d fc mov -0x4(%ebp),%ebx 1179d2: c9 leave 1179d3: c3 ret _ASR_Post_signals( signal_set, &asr->signals_pending ); } _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 1179d4: e8 3b 3a 00 00 call 11b414 <_Thread_Enable_dispatch> 1179d9: b8 0b 00 00 00 mov $0xb,%eax return RTEMS_NOT_DEFINED; 1179de: e9 78 ff ff ff jmp 11795b 0010b69c : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 10b69c: 55 push %ebp 10b69d: 89 e5 mov %esp,%ebp 10b69f: 57 push %edi 10b6a0: 56 push %esi Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 10b6a1: a1 b8 df 16 00 mov 0x16dfb8,%eax ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 10b6a6: 8b b0 c4 00 00 00 mov 0xc4(%eax),%esi 10b6ac: 39 f5 cmp %esi,%ebp 10b6ae: 73 48 jae 10b6f8 10b6b0: 31 c0 xor %eax,%eax <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 10b6b2: 8b 0d d8 af 16 00 mov 0x16afd8,%ecx 10b6b8: 85 c9 test %ecx,%ecx 10b6ba: 75 28 jne 10b6e4 10b6bc: b2 01 mov $0x1,%dl <== NOT EXECUTED } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 10b6be: 84 c0 test %al,%al 10b6c0: 74 04 je 10b6c6 10b6c2: 84 d2 test %dl,%dl 10b6c4: 75 42 jne 10b708 return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 10b6c6: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10b6c9: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED 10b6cc: 52 push %edx <== NOT EXECUTED 10b6cd: ff 35 b8 df 16 00 pushl 0x16dfb8 <== NOT EXECUTED 10b6d3: e8 08 ff ff ff call 10b5e0 <== NOT EXECUTED 10b6d8: b0 01 mov $0x1,%al <== NOT EXECUTED return true; 10b6da: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 10b6dd: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10b6e0: 5e pop %esi <== NOT EXECUTED 10b6e1: 5f pop %edi <== NOT EXECUTED 10b6e2: c9 leave <== NOT EXECUTED 10b6e3: c3 ret <== NOT EXECUTED /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { pattern_ok = (!memcmp( 10b6e4: 83 c6 08 add $0x8,%esi 10b6e7: bf 40 dd 16 00 mov $0x16dd40,%edi 10b6ec: b9 10 00 00 00 mov $0x10,%ecx 10b6f1: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10b6f3: 0f 94 c2 sete %dl 10b6f6: eb c6 jmp 10b6be } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) 10b6f8: 8b 90 c0 00 00 00 mov 0xc0(%eax),%edx 10b6fe: 8d 04 16 lea (%esi,%edx,1),%eax 10b701: 39 c5 cmp %eax,%ebp 10b703: 0f 96 c0 setbe %al 10b706: eb aa jmp 10b6b2 } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 10b708: 31 c0 xor %eax,%eax /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); return true; } 10b70a: 8d 65 f8 lea -0x8(%ebp),%esp 10b70d: 5e pop %esi 10b70e: 5f pop %edi 10b70f: c9 leave 10b710: c3 ret 0010b5c8 : void rtems_stack_checker_report_usage( void ) { 10b5c8: 55 push %ebp <== NOT EXECUTED 10b5c9: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10b5cb: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 10b5ce: 68 34 df 10 00 push $0x10df34 <== NOT EXECUTED 10b5d3: 6a 00 push $0x0 <== NOT EXECUTED 10b5d5: e8 8a ff ff ff call 10b564 <== NOT EXECUTED 10b5da: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 10b5dd: c9 leave <== NOT EXECUTED 10b5de: c3 ret <== NOT EXECUTED 0010b564 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 10b564: 55 push %ebp <== NOT EXECUTED 10b565: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10b567: 56 push %esi <== NOT EXECUTED 10b568: 53 push %ebx <== NOT EXECUTED 10b569: 8b 75 08 mov 0x8(%ebp),%esi <== NOT EXECUTED 10b56c: 8b 5d 0c mov 0xc(%ebp),%ebx <== NOT EXECUTED print_context = context; 10b56f: 89 35 dc af 16 00 mov %esi,0x16afdc <== NOT EXECUTED print_handler = print; 10b575: 89 1d e0 af 16 00 mov %ebx,0x16afe0 <== NOT EXECUTED (*print)( context, "Stack usage by thread\n"); 10b57b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10b57e: 68 10 9e 15 00 push $0x159e10 <== NOT EXECUTED 10b583: 56 push %esi <== NOT EXECUTED 10b584: ff d3 call *%ebx <== NOT EXECUTED (*print)( context, 10b586: 58 pop %eax <== NOT EXECUTED 10b587: 5a pop %edx <== NOT EXECUTED 10b588: 68 90 9e 15 00 push $0x159e90 <== NOT EXECUTED 10b58d: 56 push %esi <== NOT EXECUTED 10b58e: 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 ); 10b590: c7 04 24 14 b4 10 00 movl $0x10b414,(%esp) <== NOT EXECUTED 10b597: e8 28 73 00 00 call 1128c4 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 10b59c: c7 04 24 ff ff ff ff movl $0xffffffff,(%esp) <== NOT EXECUTED 10b5a3: e8 6c fe ff ff call 10b414 <== NOT EXECUTED print_context = NULL; 10b5a8: c7 05 dc af 16 00 00 movl $0x0,0x16afdc <== NOT EXECUTED 10b5af: 00 00 00 <== NOT EXECUTED print_handler = NULL; 10b5b2: c7 05 e0 af 16 00 00 movl $0x0,0x16afe0 <== NOT EXECUTED 10b5b9: 00 00 00 <== NOT EXECUTED 10b5bc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 10b5bf: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 10b5c2: 5b pop %ebx <== NOT EXECUTED 10b5c3: 5e pop %esi <== NOT EXECUTED 10b5c4: c9 leave <== NOT EXECUTED 10b5c5: c3 ret <== NOT EXECUTED 0010b714 : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 10b714: 55 push %ebp 10b715: 89 e5 mov %esp,%ebp 10b717: 57 push %edi 10b718: 56 push %esi 10b719: 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; 10b71c: 8b 90 c4 00 00 00 mov 0xc4(%eax),%edx 10b722: 8d 72 08 lea 0x8(%edx),%esi ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 10b725: 39 d5 cmp %edx,%ebp 10b727: 72 0a jb 10b733 void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { Stack_Control *the_stack = &running->Start.Initial_stack; 10b729: 03 90 c0 00 00 00 add 0xc0(%eax),%edx 10b72f: 39 d5 cmp %edx,%ebp 10b731: 76 21 jbe 10b754 /* * 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, 10b733: bf 40 dd 16 00 mov $0x16dd40,%edi <== NOT EXECUTED 10b738: b9 10 00 00 00 mov $0x10,%ecx <== NOT EXECUTED 10b73d: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) <== NOT EXECUTED 10b73f: 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 ); 10b742: 0f b6 d2 movzbl %dl,%edx <== NOT EXECUTED 10b745: 89 55 0c mov %edx,0xc(%ebp) <== NOT EXECUTED 10b748: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED } } 10b74b: 5e pop %esi <== NOT EXECUTED 10b74c: 5f pop %edi <== NOT EXECUTED 10b74d: 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 ); 10b74e: e9 8d fe ff ff jmp 10b5e0 <== NOT EXECUTED 10b753: 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, 10b754: bf 40 dd 16 00 mov $0x16dd40,%edi 10b759: b9 10 00 00 00 mov $0x10,%ecx (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 10b75e: f3 a6 repz cmpsb %es:(%edi),%ds:(%esi) 10b760: 74 06 je 10b768 10b762: 31 d2 xor %edx,%edx <== NOT EXECUTED 10b764: eb dc jmp 10b742 <== NOT EXECUTED 10b766: 66 90 xchg %ax,%ax <== NOT EXECUTED Stack_check_report_blown_task( running, pattern_ok ); } } 10b768: 5e pop %esi 10b769: 5f pop %edi 10b76a: c9 leave 10b76b: c3 ret 00110bc0 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 110bc0: 55 push %ebp 110bc1: 89 e5 mov %esp,%ebp 110bc3: 57 push %edi 110bc4: 56 push %esi 110bc5: 53 push %ebx 110bc6: 83 ec 2c sub $0x2c,%esp 110bc9: 8b 75 08 mov 0x8(%ebp),%esi 110bcc: 8b 5d 0c mov 0xc(%ebp),%ebx 110bcf: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110bd2: 85 db test %ebx,%ebx 110bd4: 74 72 je 110c48 return RTEMS_INVALID_ADDRESS; errno = 0; 110bd6: e8 69 1d 00 00 call 112944 <__errno> 110bdb: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 110be1: c7 03 00 00 00 00 movl $0x0,(%ebx) 110be7: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 110bee: 83 ec 08 sub $0x8,%esp 110bf1: 8d 45 e4 lea -0x1c(%ebp),%eax 110bf4: 50 push %eax 110bf5: 56 push %esi 110bf6: e8 e5 47 00 00 call 1153e0 #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 ) 110bfb: 83 c4 10 add $0x10,%esp 110bfe: 85 ff test %edi,%edi 110c00: 74 05 je 110c07 *endptr = end; 110c02: 8b 45 e4 mov -0x1c(%ebp),%eax 110c05: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 110c07: 39 75 e4 cmp %esi,-0x1c(%ebp) 110c0a: 74 4c je 110c58 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110c0c: dd 05 f0 42 12 00 fldl 0x1242f0 110c12: d9 c9 fxch %st(1) 110c14: dd e1 fucom %st(1) 110c16: df e0 fnstsw %ax 110c18: dd d9 fstp %st(1) 110c1a: f6 c4 45 test $0x45,%ah 110c1d: 74 0d je 110c2c /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 110c1f: dd 1b fstpl (%ebx) 110c21: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 110c23: 8d 65 f4 lea -0xc(%ebp),%esp 110c26: 5b pop %ebx 110c27: 5e pop %esi 110c28: 5f pop %edi 110c29: c9 leave 110c2a: c3 ret 110c2b: 90 nop <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110c2c: dd 5d c8 fstpl -0x38(%ebp) 110c2f: e8 10 1d 00 00 call 112944 <__errno> 110c34: 83 38 22 cmpl $0x22,(%eax) 110c37: dd 45 c8 fldl -0x38(%ebp) 110c3a: 75 e3 jne 110c1f 110c3c: dd d8 fstp %st(0) 110c3e: b8 0a 00 00 00 mov $0xa,%eax 110c43: eb de jmp 110c23 110c45: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110c48: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 110c4d: 8d 65 f4 lea -0xc(%ebp),%esp 110c50: 5b pop %ebx 110c51: 5e pop %esi 110c52: 5f pop %edi 110c53: c9 leave 110c54: c3 ret 110c55: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 110c58: 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 ) 110c5a: b8 0b 00 00 00 mov $0xb,%eax 110c5f: eb c2 jmp 110c23 00110c64 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 110c64: 55 push %ebp 110c65: 89 e5 mov %esp,%ebp 110c67: 57 push %edi 110c68: 56 push %esi 110c69: 53 push %ebx 110c6a: 83 ec 2c sub $0x2c,%esp 110c6d: 8b 75 08 mov 0x8(%ebp),%esi 110c70: 8b 5d 0c mov 0xc(%ebp),%ebx 110c73: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110c76: 85 db test %ebx,%ebx 110c78: 74 6a je 110ce4 return RTEMS_INVALID_ADDRESS; errno = 0; 110c7a: e8 c5 1c 00 00 call 112944 <__errno> 110c7f: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 110c85: c7 03 00 00 00 00 movl $0x0,(%ebx) #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 110c8b: 83 ec 08 sub $0x8,%esp 110c8e: 8d 45 e4 lea -0x1c(%ebp),%eax 110c91: 50 push %eax 110c92: 56 push %esi 110c93: e8 04 47 00 00 call 11539c #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 ) 110c98: 83 c4 10 add $0x10,%esp 110c9b: 85 ff test %edi,%edi 110c9d: 74 05 je 110ca4 *endptr = end; 110c9f: 8b 45 e4 mov -0x1c(%ebp),%eax 110ca2: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 110ca4: 39 75 e4 cmp %esi,-0x1c(%ebp) 110ca7: 74 4b je 110cf4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110ca9: d9 05 f8 42 12 00 flds 0x1242f8 110caf: d9 c9 fxch %st(1) 110cb1: dd e1 fucom %st(1) 110cb3: df e0 fnstsw %ax 110cb5: dd d9 fstp %st(1) 110cb7: f6 c4 45 test $0x45,%ah 110cba: 74 0c je 110cc8 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 110cbc: d9 1b fstps (%ebx) 110cbe: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 110cc0: 8d 65 f4 lea -0xc(%ebp),%esp 110cc3: 5b pop %ebx 110cc4: 5e pop %esi 110cc5: 5f pop %edi 110cc6: c9 leave 110cc7: c3 ret return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110cc8: d9 5d c8 fstps -0x38(%ebp) 110ccb: e8 74 1c 00 00 call 112944 <__errno> 110cd0: 83 38 22 cmpl $0x22,(%eax) 110cd3: d9 45 c8 flds -0x38(%ebp) 110cd6: 75 e4 jne 110cbc 110cd8: dd d8 fstp %st(0) 110cda: b8 0a 00 00 00 mov $0xa,%eax 110cdf: eb df jmp 110cc0 110ce1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110ce4: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 110ce9: 8d 65 f4 lea -0xc(%ebp),%esp 110cec: 5b pop %ebx 110ced: 5e pop %esi 110cee: 5f pop %edi 110cef: c9 leave 110cf0: c3 ret 110cf1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 110cf4: 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 ) 110cf6: b8 0b 00 00 00 mov $0xb,%eax 110cfb: eb c3 jmp 110cc0 00122c40 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 122c40: 55 push %ebp 122c41: 89 e5 mov %esp,%ebp 122c43: 57 push %edi 122c44: 56 push %esi 122c45: 53 push %ebx 122c46: 83 ec 2c sub $0x2c,%esp 122c49: 8b 75 08 mov 0x8(%ebp),%esi 122c4c: 8b 5d 0c mov 0xc(%ebp),%ebx 122c4f: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122c52: 85 db test %ebx,%ebx 122c54: 74 5e je 122cb4 return RTEMS_INVALID_ADDRESS; errno = 0; 122c56: e8 e1 e7 01 00 call 14143c <__errno> 122c5b: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 122c61: 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 ); 122c67: 50 push %eax 122c68: ff 75 14 pushl 0x14(%ebp) 122c6b: 8d 45 e4 lea -0x1c(%ebp),%eax 122c6e: 50 push %eax 122c6f: 56 push %esi 122c70: e8 53 55 02 00 call 1481c8 122c75: 89 c2 mov %eax,%edx #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 122c77: 83 c4 10 add $0x10,%esp 122c7a: 85 ff test %edi,%edi 122c7c: 74 05 je 122c83 *endptr = end; 122c7e: 8b 45 e4 mov -0x1c(%ebp),%eax 122c81: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 122c83: 39 75 e4 cmp %esi,-0x1c(%ebp) 122c86: 74 3c je 122cc4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122c88: 81 fa ff ff ff 7f cmp $0x7fffffff,%edx 122c8e: 74 0c je 122c9c /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 122c90: 89 13 mov %edx,(%ebx) 122c92: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 122c94: 8d 65 f4 lea -0xc(%ebp),%esp 122c97: 5b pop %ebx 122c98: 5e pop %esi 122c99: 5f pop %edi 122c9a: c9 leave 122c9b: c3 ret return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122c9c: 89 55 d4 mov %edx,-0x2c(%ebp) 122c9f: e8 98 e7 01 00 call 14143c <__errno> 122ca4: 83 38 22 cmpl $0x22,(%eax) 122ca7: 8b 55 d4 mov -0x2c(%ebp),%edx 122caa: 75 e4 jne 122c90 122cac: b8 0a 00 00 00 mov $0xa,%eax 122cb1: eb e1 jmp 122c94 122cb3: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122cb4: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 122cb9: 8d 65 f4 lea -0xc(%ebp),%esp 122cbc: 5b pop %ebx 122cbd: 5e pop %esi 122cbe: 5f pop %edi 122cbf: c9 leave 122cc0: c3 ret 122cc1: 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 ) 122cc4: b8 0b 00 00 00 mov $0xb,%eax 122cc9: eb c9 jmp 122c94 00110e3c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 110e3c: 55 push %ebp 110e3d: 89 e5 mov %esp,%ebp 110e3f: 57 push %edi 110e40: 56 push %esi 110e41: 53 push %ebx 110e42: 83 ec 1c sub $0x1c,%esp 110e45: 8b 7d 08 mov 0x8(%ebp),%edi 110e48: 8b 5d 0c mov 0xc(%ebp),%ebx STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110e4b: 85 db test %ebx,%ebx 110e4d: 74 69 je 110eb8 return RTEMS_INVALID_ADDRESS; errno = 0; 110e4f: e8 f0 1a 00 00 call 112944 <__errno> 110e54: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 110e5a: 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 ); 110e60: 52 push %edx 110e61: ff 75 14 pushl 0x14(%ebp) 110e64: 8d 45 e4 lea -0x1c(%ebp),%eax 110e67: 50 push %eax 110e68: 57 push %edi 110e69: e8 0e 47 00 00 call 11557c 110e6e: 89 c6 mov %eax,%esi #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 110e70: 83 c4 10 add $0x10,%esp 110e73: 8b 45 10 mov 0x10(%ebp),%eax 110e76: 85 c0 test %eax,%eax 110e78: 74 08 je 110e82 *endptr = end; 110e7a: 8b 45 e4 mov -0x1c(%ebp),%eax 110e7d: 8b 55 10 mov 0x10(%ebp),%edx 110e80: 89 02 mov %eax,(%edx) /* nothing was converted */ if ( end == s ) 110e82: 39 7d e4 cmp %edi,-0x1c(%ebp) 110e85: 74 41 je 110ec8 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110e87: 81 fe ff ff ff 7f cmp $0x7fffffff,%esi 110e8d: 74 15 je 110ea4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 110e8f: 81 fe 00 00 00 80 cmp $0x80000000,%esi 110e95: 74 0d je 110ea4 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 110e97: 89 33 mov %esi,(%ebx) 110e99: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 110e9b: 8d 65 f4 lea -0xc(%ebp),%esp 110e9e: 5b pop %ebx 110e9f: 5e pop %esi 110ea0: 5f pop %edi 110ea1: c9 leave 110ea2: c3 ret 110ea3: 90 nop <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 110ea4: e8 9b 1a 00 00 call 112944 <__errno> 110ea9: 83 38 22 cmpl $0x22,(%eax) 110eac: 75 e9 jne 110e97 return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; 110eae: b8 0a 00 00 00 mov $0xa,%eax 110eb3: eb e6 jmp 110e9b 110eb5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110eb8: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 110ebd: 8d 65 f4 lea -0xc(%ebp),%esp 110ec0: 5b pop %ebx 110ec1: 5e pop %esi 110ec2: 5f pop %edi 110ec3: c9 leave 110ec4: c3 ret 110ec5: 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 ) 110ec8: b8 0b 00 00 00 mov $0xb,%eax 110ecd: eb cc jmp 110e9b 00110d8c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 110d8c: 55 push %ebp 110d8d: 89 e5 mov %esp,%ebp 110d8f: 57 push %edi 110d90: 56 push %esi 110d91: 53 push %ebx 110d92: 83 ec 2c sub $0x2c,%esp 110d95: 8b 7d 08 mov 0x8(%ebp),%edi 110d98: 8b 5d 0c mov 0xc(%ebp),%ebx STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110d9b: 85 db test %ebx,%ebx 110d9d: 0f 84 81 00 00 00 je 110e24 return RTEMS_INVALID_ADDRESS; errno = 0; 110da3: e8 9c 1b 00 00 call 112944 <__errno> 110da8: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 110dae: c7 03 00 00 00 00 movl $0x0,(%ebx) 110db4: 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 ); 110dbb: 52 push %edx 110dbc: ff 75 14 pushl 0x14(%ebp) 110dbf: 8d 45 e4 lea -0x1c(%ebp),%eax 110dc2: 50 push %eax 110dc3: 57 push %edi 110dc4: e8 cf 47 00 00 call 115598 110dc9: 89 c6 mov %eax,%esi #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 110dcb: 83 c4 10 add $0x10,%esp 110dce: 8b 45 10 mov 0x10(%ebp),%eax 110dd1: 85 c0 test %eax,%eax 110dd3: 74 08 je 110ddd *endptr = end; 110dd5: 8b 45 e4 mov -0x1c(%ebp),%eax 110dd8: 8b 4d 10 mov 0x10(%ebp),%ecx 110ddb: 89 01 mov %eax,(%ecx) /* nothing was converted */ if ( end == s ) 110ddd: 39 7d e4 cmp %edi,-0x1c(%ebp) 110de0: 74 52 je 110e34 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 110de2: 89 d1 mov %edx,%ecx 110de4: 81 f1 ff ff ff 7f xor $0x7fffffff,%ecx 110dea: 89 f0 mov %esi,%eax 110dec: f7 d0 not %eax 110dee: 09 c1 or %eax,%ecx 110df0: 74 1a je 110e0c return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 110df2: 8d 82 00 00 00 80 lea -0x80000000(%edx),%eax 110df8: 09 f0 or %esi,%eax 110dfa: 74 10 je 110e0c return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 110dfc: 89 33 mov %esi,(%ebx) 110dfe: 89 53 04 mov %edx,0x4(%ebx) 110e01: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 110e03: 8d 65 f4 lea -0xc(%ebp),%esp 110e06: 5b pop %ebx 110e07: 5e pop %esi 110e08: 5f pop %edi 110e09: c9 leave 110e0a: c3 ret 110e0b: 90 nop <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MIN /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) 110e0c: 89 55 d4 mov %edx,-0x2c(%ebp) 110e0f: e8 30 1b 00 00 call 112944 <__errno> 110e14: 83 38 22 cmpl $0x22,(%eax) 110e17: 8b 55 d4 mov -0x2c(%ebp),%edx 110e1a: 75 e0 jne 110dfc return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; 110e1c: b8 0a 00 00 00 mov $0xa,%eax 110e21: eb e0 jmp 110e03 110e23: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110e24: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 110e29: 8d 65 f4 lea -0xc(%ebp),%esp 110e2c: 5b pop %ebx 110e2d: 5e pop %esi 110e2e: 5f pop %edi 110e2f: c9 leave 110e30: c3 ret 110e31: 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 ) 110e34: b8 0b 00 00 00 mov $0xb,%eax 110e39: eb c8 jmp 110e03 00122ccc : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 122ccc: 55 push %ebp 122ccd: 89 e5 mov %esp,%ebp 122ccf: 57 push %edi 122cd0: 56 push %esi 122cd1: 53 push %ebx 122cd2: 83 ec 2c sub $0x2c,%esp 122cd5: 8b 75 08 mov 0x8(%ebp),%esi 122cd8: 8b 5d 0c mov 0xc(%ebp),%ebx 122cdb: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122cde: 85 db test %ebx,%ebx 122ce0: 74 5a je 122d3c return RTEMS_INVALID_ADDRESS; errno = 0; 122ce2: e8 55 e7 01 00 call 14143c <__errno> 122ce7: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 122ced: 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 ); 122cf3: 50 push %eax 122cf4: 6a 10 push $0x10 122cf6: 8d 45 e4 lea -0x1c(%ebp),%eax 122cf9: 50 push %eax 122cfa: 56 push %esi 122cfb: e8 44 59 02 00 call 148644 122d00: 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 ) 122d02: 83 c4 10 add $0x10,%esp 122d05: 85 ff test %edi,%edi 122d07: 74 05 je 122d0e *endptr = end; 122d09: 8b 45 e4 mov -0x1c(%ebp),%eax 122d0c: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 122d0e: 39 75 e4 cmp %esi,-0x1c(%ebp) 122d11: 74 39 je 122d4c return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122d13: 83 fa ff cmp $0xffffffff,%edx 122d16: 74 0c je 122d24 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 122d18: 89 13 mov %edx,(%ebx) 122d1a: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 122d1c: 8d 65 f4 lea -0xc(%ebp),%esp 122d1f: 5b pop %ebx 122d20: 5e pop %esi 122d21: 5f pop %edi 122d22: c9 leave 122d23: c3 ret return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122d24: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 122d27: e8 10 e7 01 00 call 14143c <__errno> <== NOT EXECUTED 122d2c: 83 38 22 cmpl $0x22,(%eax) <== NOT EXECUTED 122d2f: 8b 55 d4 mov -0x2c(%ebp),%edx <== NOT EXECUTED 122d32: 75 e4 jne 122d18 <== NOT EXECUTED 122d34: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED 122d39: eb e1 jmp 122d1c <== NOT EXECUTED 122d3b: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122d3c: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 122d41: 8d 65 f4 lea -0xc(%ebp),%esp 122d44: 5b pop %ebx 122d45: 5e pop %esi 122d46: 5f pop %edi 122d47: c9 leave 122d48: c3 ret 122d49: 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 ) 122d4c: b8 0b 00 00 00 mov $0xb,%eax 122d51: eb c9 jmp 122d1c 00122d54 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 122d54: 55 push %ebp 122d55: 89 e5 mov %esp,%ebp 122d57: 57 push %edi 122d58: 56 push %esi 122d59: 53 push %ebx 122d5a: 83 ec 1c sub $0x1c,%esp 122d5d: 8b 75 08 mov 0x8(%ebp),%esi 122d60: 8b 5d 0c mov 0xc(%ebp),%ebx 122d63: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122d66: 85 db test %ebx,%ebx 122d68: 74 3a je 122da4 return RTEMS_INVALID_ADDRESS; errno = 0; 122d6a: e8 cd e6 01 00 call 14143c <__errno> 122d6f: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 122d75: 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 ); 122d78: 50 push %eax 122d79: ff 75 14 pushl 0x14(%ebp) 122d7c: 8d 45 e4 lea -0x1c(%ebp),%eax 122d7f: 50 push %eax 122d80: 56 push %esi 122d81: e8 be 58 02 00 call 148644 #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 122d86: 83 c4 10 add $0x10,%esp 122d89: 85 ff test %edi,%edi 122d8b: 74 05 je 122d92 *endptr = end; 122d8d: 8b 55 e4 mov -0x1c(%ebp),%edx 122d90: 89 17 mov %edx,(%edi) /* nothing was converted */ if ( end == s ) 122d92: 39 75 e4 cmp %esi,-0x1c(%ebp) 122d95: 74 1d je 122db4 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 122d97: 88 03 mov %al,(%ebx) 122d99: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 122d9b: 8d 65 f4 lea -0xc(%ebp),%esp 122d9e: 5b pop %ebx 122d9f: 5e pop %esi 122da0: 5f pop %edi 122da1: c9 leave 122da2: c3 ret 122da3: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122da4: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 122da9: 8d 65 f4 lea -0xc(%ebp),%esp 122dac: 5b pop %ebx 122dad: 5e pop %esi 122dae: 5f pop %edi 122daf: c9 leave 122db0: c3 ret 122db1: 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 ) 122db4: b8 0b 00 00 00 mov $0xb,%eax 122db9: eb e0 jmp 122d9b 00110fc0 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 110fc0: 55 push %ebp 110fc1: 89 e5 mov %esp,%ebp 110fc3: 57 push %edi 110fc4: 56 push %esi 110fc5: 53 push %ebx 110fc6: 83 ec 2c sub $0x2c,%esp 110fc9: 8b 75 08 mov 0x8(%ebp),%esi 110fcc: 8b 5d 0c mov 0xc(%ebp),%ebx 110fcf: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 110fd2: 85 db test %ebx,%ebx 110fd4: 74 5e je 111034 return RTEMS_INVALID_ADDRESS; errno = 0; 110fd6: e8 69 19 00 00 call 112944 <__errno> 110fdb: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 110fe1: 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 ); 110fe7: 50 push %eax 110fe8: ff 75 14 pushl 0x14(%ebp) 110feb: 8d 45 e4 lea -0x1c(%ebp),%eax 110fee: 50 push %eax 110fef: 56 push %esi 110ff0: e8 03 4a 00 00 call 1159f8 110ff5: 89 c2 mov %eax,%edx #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 110ff7: 83 c4 10 add $0x10,%esp 110ffa: 85 ff test %edi,%edi 110ffc: 74 05 je 111003 *endptr = end; 110ffe: 8b 45 e4 mov -0x1c(%ebp),%eax 111001: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 111003: 39 75 e4 cmp %esi,-0x1c(%ebp) 111006: 74 3c je 111044 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 111008: 83 fa ff cmp $0xffffffff,%edx 11100b: 74 0f je 11101c /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 11100d: 89 13 mov %edx,(%ebx) 11100f: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 111011: 8d 65 f4 lea -0xc(%ebp),%esp 111014: 5b pop %ebx 111015: 5e pop %esi 111016: 5f pop %edi 111017: c9 leave 111018: c3 ret 111019: 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)) 11101c: 89 55 d4 mov %edx,-0x2c(%ebp) 11101f: e8 20 19 00 00 call 112944 <__errno> 111024: 83 38 22 cmpl $0x22,(%eax) 111027: 8b 55 d4 mov -0x2c(%ebp),%edx 11102a: 75 e1 jne 11100d 11102c: b8 0a 00 00 00 mov $0xa,%eax 111031: eb de jmp 111011 111033: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 111034: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 111039: 8d 65 f4 lea -0xc(%ebp),%esp 11103c: 5b pop %ebx 11103d: 5e pop %esi 11103e: 5f pop %edi 11103f: c9 leave 111040: c3 ret 111041: 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 ) 111044: b8 0b 00 00 00 mov $0xb,%eax 111049: eb c6 jmp 111011 00122dbc : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 122dbc: 55 push %ebp 122dbd: 89 e5 mov %esp,%ebp 122dbf: 57 push %edi 122dc0: 56 push %esi 122dc1: 53 push %ebx 122dc2: 83 ec 2c sub $0x2c,%esp 122dc5: 8b 75 08 mov 0x8(%ebp),%esi 122dc8: 8b 5d 0c mov 0xc(%ebp),%ebx 122dcb: 8b 7d 10 mov 0x10(%ebp),%edi STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122dce: 85 db test %ebx,%ebx 122dd0: 74 5e je 122e30 return RTEMS_INVALID_ADDRESS; errno = 0; 122dd2: e8 65 e6 01 00 call 14143c <__errno> 122dd7: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 122ddd: 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 ); 122de3: 50 push %eax 122de4: ff 75 14 pushl 0x14(%ebp) 122de7: 8d 45 e4 lea -0x1c(%ebp),%eax 122dea: 50 push %eax 122deb: 56 push %esi 122dec: e8 53 58 02 00 call 148644 122df1: 89 c2 mov %eax,%edx #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 122df3: 83 c4 10 add $0x10,%esp 122df6: 85 ff test %edi,%edi 122df8: 74 05 je 122dff *endptr = end; 122dfa: 8b 45 e4 mov -0x1c(%ebp),%eax 122dfd: 89 07 mov %eax,(%edi) /* nothing was converted */ if ( end == s ) 122dff: 39 75 e4 cmp %esi,-0x1c(%ebp) 122e02: 74 3c je 122e40 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 122e04: 83 fa ff cmp $0xffffffff,%edx 122e07: 74 0f je 122e18 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 122e09: 89 13 mov %edx,(%ebx) 122e0b: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 122e0d: 8d 65 f4 lea -0xc(%ebp),%esp 122e10: 5b pop %ebx 122e11: 5e pop %esi 122e12: 5f pop %edi 122e13: c9 leave 122e14: c3 ret 122e15: 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)) 122e18: 89 55 d4 mov %edx,-0x2c(%ebp) 122e1b: e8 1c e6 01 00 call 14143c <__errno> 122e20: 83 38 22 cmpl $0x22,(%eax) 122e23: 8b 55 d4 mov -0x2c(%ebp),%edx 122e26: 75 e1 jne 122e09 122e28: b8 0a 00 00 00 mov $0xa,%eax 122e2d: eb de jmp 122e0d 122e2f: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 122e30: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 122e35: 8d 65 f4 lea -0xc(%ebp),%esp 122e38: 5b pop %ebx 122e39: 5e pop %esi 122e3a: 5f pop %edi 122e3b: c9 leave 122e3c: c3 ret 122e3d: 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 ) 122e40: b8 0b 00 00 00 mov $0xb,%eax 122e45: eb c6 jmp 122e0d 0011104c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 11104c: 55 push %ebp 11104d: 89 e5 mov %esp,%ebp 11104f: 57 push %edi 111050: 56 push %esi 111051: 53 push %ebx 111052: 83 ec 2c sub $0x2c,%esp 111055: 8b 7d 08 mov 0x8(%ebp),%edi 111058: 8b 5d 0c mov 0xc(%ebp),%ebx STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 11105b: 85 db test %ebx,%ebx 11105d: 74 6d je 1110cc return RTEMS_INVALID_ADDRESS; errno = 0; 11105f: e8 e0 18 00 00 call 112944 <__errno> 111064: c7 00 00 00 00 00 movl $0x0,(%eax) *n = 0; 11106a: c7 03 00 00 00 00 movl $0x0,(%ebx) 111070: 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 ); 111077: 52 push %edx 111078: ff 75 14 pushl 0x14(%ebp) 11107b: 8d 45 e4 lea -0x1c(%ebp),%eax 11107e: 50 push %eax 11107f: 57 push %edi 111080: e8 8f 49 00 00 call 115a14 111085: 89 c6 mov %eax,%esi #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 111087: 83 c4 10 add $0x10,%esp 11108a: 8b 45 10 mov 0x10(%ebp),%eax 11108d: 85 c0 test %eax,%eax 11108f: 74 08 je 111099 *endptr = end; 111091: 8b 45 e4 mov -0x1c(%ebp),%eax 111094: 8b 4d 10 mov 0x10(%ebp),%ecx 111097: 89 01 mov %eax,(%ecx) /* nothing was converted */ if ( end == s ) 111099: 39 7d e4 cmp %edi,-0x1c(%ebp) 11109c: 74 3e je 1110dc return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 11109e: 89 f0 mov %esi,%eax 1110a0: 21 d0 and %edx,%eax 1110a2: 40 inc %eax 1110a3: 74 0f je 1110b4 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 1110a5: 89 33 mov %esi,(%ebx) 1110a7: 89 53 04 mov %edx,0x4(%ebx) 1110aa: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 1110ac: 8d 65 f4 lea -0xc(%ebp),%esp 1110af: 5b pop %ebx 1110b0: 5e pop %esi 1110b1: 5f pop %edi 1110b2: c9 leave 1110b3: c3 ret return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 1110b4: 89 55 d4 mov %edx,-0x2c(%ebp) 1110b7: e8 88 18 00 00 call 112944 <__errno> 1110bc: 83 38 22 cmpl $0x22,(%eax) 1110bf: 8b 55 d4 mov -0x2c(%ebp),%edx 1110c2: 75 e1 jne 1110a5 1110c4: b8 0a 00 00 00 mov $0xa,%eax 1110c9: eb e1 jmp 1110ac 1110cb: 90 nop <== NOT EXECUTED ) { STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 1110cc: b8 09 00 00 00 mov $0x9,%eax return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; return RTEMS_SUCCESSFUL; } 1110d1: 8d 65 f4 lea -0xc(%ebp),%esp 1110d4: 5b pop %ebx 1110d5: 5e pop %esi 1110d6: 5f pop %edi 1110d7: c9 leave 1110d8: c3 ret 1110d9: 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 ) 1110dc: b8 0b 00 00 00 mov $0xb,%eax 1110e1: eb c9 jmp 1110ac 0010b73c : size_t stack_size, rtems_mode initial_modes, rtems_attribute attribute_set, rtems_id *id ) { 10b73c: 55 push %ebp 10b73d: 89 e5 mov %esp,%ebp 10b73f: 57 push %edi 10b740: 56 push %esi 10b741: 53 push %ebx 10b742: 83 ec 1c sub $0x1c,%esp 10b745: 8b 5d 08 mov 0x8(%ebp),%ebx 10b748: 8b 4d 0c mov 0xc(%ebp),%ecx 10b74b: 8b 7d 18 mov 0x18(%ebp),%edi 10b74e: 8b 75 1c mov 0x1c(%ebp),%esi Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) 10b751: 85 f6 test %esi,%esi 10b753: 0f 84 37 01 00 00 je 10b890 return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 10b759: 85 db test %ebx,%ebx 10b75b: 0f 84 cb 00 00 00 je 10b82c /* * Validate the RTEMS API priority and convert it to the core priority range. */ if ( !_Attributes_Is_system_task( the_attribute_set ) ) { 10b761: 66 85 ff test %di,%di 10b764: 78 1d js 10b783 */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 10b766: 85 c9 test %ecx,%ecx 10b768: 75 0e jne 10b778 } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; 10b76a: b8 13 00 00 00 mov $0x13,%eax } 10b76f: 8d 65 f4 lea -0xc(%ebp),%esp 10b772: 5b pop %ebx 10b773: 5e pop %esi 10b774: 5f pop %edi 10b775: c9 leave 10b776: c3 ret 10b777: 90 nop <== NOT EXECUTED 10b778: 0f b6 05 14 12 12 00 movzbl 0x121214,%eax 10b77f: 39 c1 cmp %eax,%ecx 10b781: 77 e7 ja 10b76a */ /* * Lock the allocator mutex for protection */ _RTEMS_Lock_allocator(); 10b783: 83 ec 0c sub $0xc,%esp 10b786: ff 35 10 54 12 00 pushl 0x125410 10b78c: 89 4d e4 mov %ecx,-0x1c(%ebp) 10b78f: e8 60 06 00 00 call 10bdf4 <_API_Mutex_Lock> * This function allocates a task control block from * the inactive chain of free task control blocks. */ RTEMS_INLINE_ROUTINE Thread_Control *_RTEMS_tasks_Allocate( void ) { return (Thread_Control *) _Objects_Allocate( &_RTEMS_tasks_Information ); 10b794: c7 04 24 e0 52 12 00 movl $0x1252e0,(%esp) 10b79b: e8 60 0f 00 00 call 10c700 <_Objects_Allocate> 10b7a0: 89 c2 mov %eax,%edx * the event of an error. */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { 10b7a2: 83 c4 10 add $0x10,%esp 10b7a5: 85 c0 test %eax,%eax 10b7a7: 8b 4d e4 mov -0x1c(%ebp),%ecx 10b7aa: 0f 84 c0 00 00 00 je 10b870 /* * Initialize the core thread for this task. */ status = _Thread_Initialize( 10b7b0: 50 push %eax 10b7b1: 53 push %ebx 10b7b2: 8b 45 14 mov 0x14(%ebp),%eax 10b7b5: 83 e0 01 and $0x1,%eax 10b7b8: 50 push %eax 10b7b9: 6a 00 push $0x0 10b7bb: 8b 45 14 mov 0x14(%ebp),%eax 10b7be: c1 e8 09 shr $0x9,%eax 10b7c1: 83 e0 01 and $0x1,%eax 10b7c4: 50 push %eax 10b7c5: 8b 45 14 mov 0x14(%ebp),%eax 10b7c8: c1 e8 08 shr $0x8,%eax 10b7cb: 83 f0 01 xor $0x1,%eax 10b7ce: 83 e0 01 and $0x1,%eax 10b7d1: 50 push %eax 10b7d2: 51 push %ecx 10b7d3: 83 e7 01 and $0x1,%edi 10b7d6: 57 push %edi 10b7d7: ff 75 10 pushl 0x10(%ebp) 10b7da: 6a 00 push $0x0 10b7dc: 52 push %edx 10b7dd: 68 e0 52 12 00 push $0x1252e0 10b7e2: 89 55 e4 mov %edx,-0x1c(%ebp) 10b7e5: e8 aa 1c 00 00 call 10d494 <_Thread_Initialize> NULL, /* no budget algorithm callout */ _Modes_Get_interrupt_level(initial_modes), (Objects_Name) name ); if ( !status ) { 10b7ea: 83 c4 30 add $0x30,%esp 10b7ed: 84 c0 test %al,%al 10b7ef: 8b 55 e4 mov -0x1c(%ebp),%edx 10b7f2: 74 48 je 10b83c } api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true; 10b7f4: 8b 8a f0 00 00 00 mov 0xf0(%edx),%ecx 10b7fa: 8b 45 14 mov 0x14(%ebp),%eax 10b7fd: c1 e8 0a shr $0xa,%eax 10b800: 83 f0 01 xor $0x1,%eax 10b803: 83 e0 01 and $0x1,%eax 10b806: 88 41 08 mov %al,0x8(%ecx) *id = the_thread->Object.id; 10b809: 8b 42 08 mov 0x8(%edx),%eax 10b80c: 89 06 mov %eax,(%esi) ); } #endif _RTEMS_Unlock_allocator(); 10b80e: 83 ec 0c sub $0xc,%esp 10b811: ff 35 10 54 12 00 pushl 0x125410 10b817: e8 20 06 00 00 call 10be3c <_API_Mutex_Unlock> 10b81c: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10b81e: 83 c4 10 add $0x10,%esp } 10b821: 8d 65 f4 lea -0xc(%ebp),%esp 10b824: 5b pop %ebx 10b825: 5e pop %esi 10b826: 5f pop %edi 10b827: c9 leave 10b828: c3 ret 10b829: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if ( !id ) return RTEMS_INVALID_ADDRESS; if ( !rtems_is_name_valid( name ) ) 10b82c: b8 03 00 00 00 mov $0x3,%eax } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 10b831: 8d 65 f4 lea -0xc(%ebp),%esp 10b834: 5b pop %ebx 10b835: 5e pop %esi 10b836: 5f pop %edi 10b837: c9 leave 10b838: c3 ret 10b839: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _RTEMS_tasks_Free ( Thread_Control *the_task ) { _Objects_Free( 10b83c: 83 ec 0c sub $0xc,%esp 10b83f: ff 72 08 pushl 0x8(%edx) 10b842: e8 a9 12 00 00 call 10caf0 <_Objects_Get_information_id> 10b847: 5a pop %edx 10b848: 59 pop %ecx 10b849: 8b 55 e4 mov -0x1c(%ebp),%edx 10b84c: 52 push %edx 10b84d: 50 push %eax 10b84e: e8 2d 12 00 00 call 10ca80 <_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(); 10b853: 58 pop %eax 10b854: ff 35 10 54 12 00 pushl 0x125410 10b85a: e8 dd 05 00 00 call 10be3c <_API_Mutex_Unlock> 10b85f: b8 0d 00 00 00 mov $0xd,%eax return RTEMS_UNSATISFIED; 10b864: 83 c4 10 add $0x10,%esp } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 10b867: 8d 65 f4 lea -0xc(%ebp),%esp 10b86a: 5b pop %ebx 10b86b: 5e pop %esi 10b86c: 5f pop %edi 10b86d: c9 leave 10b86e: c3 ret 10b86f: 90 nop <== NOT EXECUTED */ the_thread = _RTEMS_tasks_Allocate(); if ( !the_thread ) { _RTEMS_Unlock_allocator(); 10b870: 83 ec 0c sub $0xc,%esp 10b873: ff 35 10 54 12 00 pushl 0x125410 10b879: e8 be 05 00 00 call 10be3c <_API_Mutex_Unlock> 10b87e: b8 05 00 00 00 mov $0x5,%eax return RTEMS_TOO_MANY; 10b883: 83 c4 10 add $0x10,%esp } #endif _RTEMS_Unlock_allocator(); return RTEMS_SUCCESSFUL; } 10b886: 8d 65 f4 lea -0xc(%ebp),%esp 10b889: 5b pop %ebx 10b88a: 5e pop %esi 10b88b: 5f pop %edi 10b88c: c9 leave 10b88d: c3 ret 10b88e: 66 90 xchg %ax,%ax <== NOT EXECUTED Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; if ( !id ) 10b890: b8 09 00 00 00 mov $0x9,%eax 10b895: e9 d5 fe ff ff jmp 10b76f 0010b89c : */ rtems_status_code rtems_task_delete( rtems_id id ) { 10b89c: 55 push %ebp 10b89d: 89 e5 mov %esp,%ebp 10b89f: 53 push %ebx 10b8a0: 83 ec 20 sub $0x20,%esp register Thread_Control *the_thread; Objects_Locations location; Objects_Information *the_information; _RTEMS_Lock_allocator(); 10b8a3: ff 35 10 54 12 00 pushl 0x125410 10b8a9: e8 46 05 00 00 call 10bdf4 <_API_Mutex_Lock> the_thread = _Thread_Get( id, &location ); 10b8ae: 5a pop %edx 10b8af: 59 pop %ecx 10b8b0: 8d 45 f4 lea -0xc(%ebp),%eax 10b8b3: 50 push %eax 10b8b4: ff 75 08 pushl 0x8(%ebp) 10b8b7: e8 60 1b 00 00 call 10d41c <_Thread_Get> 10b8bc: 89 c3 mov %eax,%ebx switch ( location ) { 10b8be: 83 c4 10 add $0x10,%esp 10b8c1: 8b 45 f4 mov -0xc(%ebp),%eax 10b8c4: 85 c0 test %eax,%eax 10b8c6: 75 44 jne 10b90c case OBJECTS_LOCAL: the_information = _Objects_Get_information_id( the_thread->Object.id ); 10b8c8: 83 ec 0c sub $0xc,%esp 10b8cb: ff 73 08 pushl 0x8(%ebx) 10b8ce: e8 1d 12 00 00 call 10caf0 <_Objects_Get_information_id> 0 /* Not used */ ); } #endif _Thread_Close( the_information, the_thread ); 10b8d3: 5a pop %edx 10b8d4: 59 pop %ecx 10b8d5: 53 push %ebx 10b8d6: 50 push %eax 10b8d7: e8 08 18 00 00 call 10d0e4 <_Thread_Close> 10b8dc: 58 pop %eax 10b8dd: ff 73 08 pushl 0x8(%ebx) 10b8e0: e8 0b 12 00 00 call 10caf0 <_Objects_Get_information_id> 10b8e5: 5a pop %edx 10b8e6: 59 pop %ecx 10b8e7: 53 push %ebx 10b8e8: 50 push %eax 10b8e9: e8 92 11 00 00 call 10ca80 <_Objects_Free> _RTEMS_tasks_Free( the_thread ); _RTEMS_Unlock_allocator(); 10b8ee: 58 pop %eax 10b8ef: ff 35 10 54 12 00 pushl 0x125410 10b8f5: e8 42 05 00 00 call 10be3c <_API_Mutex_Unlock> _Thread_Enable_dispatch(); 10b8fa: e8 f9 1a 00 00 call 10d3f8 <_Thread_Enable_dispatch> 10b8ff: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10b901: 83 c4 10 add $0x10,%esp break; } _RTEMS_Unlock_allocator(); return RTEMS_INVALID_ID; } 10b904: 8b 5d fc mov -0x4(%ebp),%ebx 10b907: c9 leave 10b908: c3 ret 10b909: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED case OBJECTS_ERROR: break; } _RTEMS_Unlock_allocator(); 10b90c: 83 ec 0c sub $0xc,%esp 10b90f: ff 35 10 54 12 00 pushl 0x125410 10b915: e8 22 05 00 00 call 10be3c <_API_Mutex_Unlock> 10b91a: b8 04 00 00 00 mov $0x4,%eax return RTEMS_INVALID_ID; 10b91f: 83 c4 10 add $0x10,%esp } 10b922: 8b 5d fc mov -0x4(%ebp),%ebx 10b925: c9 leave 10b926: c3 ret 0010d2e8 : rtems_status_code rtems_task_get_note( rtems_id id, uint32_t notepad, uint32_t *note ) { 10d2e8: 55 push %ebp 10d2e9: 89 e5 mov %esp,%ebp 10d2eb: 56 push %esi 10d2ec: 53 push %ebx 10d2ed: 83 ec 10 sub $0x10,%esp 10d2f0: 8b 45 08 mov 0x8(%ebp),%eax 10d2f3: 8b 75 0c mov 0xc(%ebp),%esi 10d2f6: 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() ) 10d2f9: 80 3d e4 51 12 00 00 cmpb $0x0,0x1251e4 10d300: 74 6e je 10d370 return RTEMS_NOT_CONFIGURED; if ( !note ) 10d302: 85 db test %ebx,%ebx 10d304: 74 7e je 10d384 /* * 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 ) 10d306: 83 fe 0f cmp $0xf,%esi 10d309: 77 3d ja 10d348 /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 10d30b: 85 c0 test %eax,%eax 10d30d: 74 45 je 10d354 _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { 10d30f: 8b 15 f8 96 12 00 mov 0x1296f8,%edx /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 10d315: 3b 42 08 cmp 0x8(%edx),%eax 10d318: 74 40 je 10d35a api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); 10d31a: 83 ec 08 sub $0x8,%esp 10d31d: 8d 55 f4 lea -0xc(%ebp),%edx 10d320: 52 push %edx 10d321: 50 push %eax 10d322: e8 49 1e 00 00 call 10f170 <_Thread_Get> switch ( location ) { 10d327: 83 c4 10 add $0x10,%esp 10d32a: 8b 55 f4 mov -0xc(%ebp),%edx 10d32d: 85 d2 test %edx,%edx 10d32f: 75 4b jne 10d37c case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; 10d331: 8b 80 f0 00 00 00 mov 0xf0(%eax),%eax <== NOT EXECUTED 10d337: 8b 44 b0 20 mov 0x20(%eax,%esi,4),%eax <== NOT EXECUTED 10d33b: 89 03 mov %eax,(%ebx) <== NOT EXECUTED _Thread_Enable_dispatch(); 10d33d: e8 0a 1e 00 00 call 10f14c <_Thread_Enable_dispatch> <== NOT EXECUTED 10d342: 31 c0 xor %eax,%eax <== NOT EXECUTED return RTEMS_SUCCESSFUL; 10d344: eb 07 jmp 10d34d <== NOT EXECUTED 10d346: 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 ) 10d348: b8 0a 00 00 00 mov $0xa,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10d34d: 8d 65 f8 lea -0x8(%ebp),%esp 10d350: 5b pop %ebx 10d351: 5e pop %esi 10d352: c9 leave 10d353: c3 ret /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 10d354: 8b 15 f8 96 12 00 mov 0x1296f8,%edx _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; *note = api->Notepads[ notepad ]; 10d35a: 8b 82 f0 00 00 00 mov 0xf0(%edx),%eax 10d360: 8b 44 b0 20 mov 0x20(%eax,%esi,4),%eax 10d364: 89 03 mov %eax,(%ebx) 10d366: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10d368: 8d 65 f8 lea -0x8(%ebp),%esp 10d36b: 5b pop %ebx 10d36c: 5e pop %esi 10d36d: c9 leave 10d36e: c3 ret 10d36f: 90 nop <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) 10d370: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10d375: 8d 65 f8 lea -0x8(%ebp),%esp 10d378: 5b pop %ebx 10d379: 5e pop %esi 10d37a: c9 leave 10d37b: c3 ret *note = api->Notepads[ notepad ]; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) { 10d37c: b8 04 00 00 00 mov $0x4,%eax 10d381: eb ca jmp 10d34d 10d383: 90 nop <== NOT EXECUTED RTEMS_API_Control *api; if ( !rtems_configuration_get_notepads_enabled() ) return RTEMS_NOT_CONFIGURED; if ( !note ) 10d384: b8 09 00 00 00 mov $0x9,%eax 10d389: eb c2 jmp 10d34d 0010b928 : rtems_status_code rtems_task_ident( rtems_name name, uint32_t node, rtems_id *id ) { 10b928: 55 push %ebp 10b929: 89 e5 mov %esp,%ebp 10b92b: 83 ec 08 sub $0x8,%esp 10b92e: 8b 55 08 mov 0x8(%ebp),%edx 10b931: 8b 45 10 mov 0x10(%ebp),%eax Objects_Name_or_id_lookup_errors status; if ( !id ) 10b934: 85 c0 test %eax,%eax 10b936: 74 30 je 10b968 return RTEMS_INVALID_ADDRESS; if ( name == OBJECTS_ID_OF_SELF ) { 10b938: 85 d2 test %edx,%edx 10b93a: 75 10 jne 10b94c *id = _Thread_Executing->Object.id; 10b93c: 8b 15 18 54 12 00 mov 0x125418,%edx 10b942: 8b 52 08 mov 0x8(%edx),%edx 10b945: 89 10 mov %edx,(%eax) 10b947: 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 ]; } 10b949: c9 leave 10b94a: c3 ret 10b94b: 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 ); 10b94c: 50 push %eax 10b94d: ff 75 0c pushl 0xc(%ebp) 10b950: 52 push %edx 10b951: 68 e0 52 12 00 push $0x1252e0 10b956: e8 ad 13 00 00 call 10cd08 <_Objects_Name_to_id_u32> return _Status_Object_name_errors_to_status[ status ]; 10b95b: 8b 04 85 0c fa 11 00 mov 0x11fa0c(,%eax,4),%eax 10b962: 83 c4 10 add $0x10,%esp } 10b965: c9 leave 10b966: c3 ret 10b967: 90 nop <== NOT EXECUTED rtems_id *id ) { Objects_Name_or_id_lookup_errors status; if ( !id ) 10b968: 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 ]; } 10b96a: c9 leave 10b96b: c3 ret 00117d2c : */ rtems_status_code rtems_task_is_suspended( rtems_id id ) { 117d2c: 55 push %ebp 117d2d: 89 e5 mov %esp,%ebp 117d2f: 83 ec 20 sub $0x20,%esp register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 117d32: 8d 45 f4 lea -0xc(%ebp),%eax 117d35: 50 push %eax 117d36: ff 75 08 pushl 0x8(%ebp) 117d39: e8 26 37 00 00 call 11b464 <_Thread_Get> switch ( location ) { 117d3e: 83 c4 10 add $0x10,%esp 117d41: 8b 55 f4 mov -0xc(%ebp),%edx 117d44: 85 d2 test %edx,%edx 117d46: 74 08 je 117d50 117d48: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 117d4d: c9 leave 117d4e: c3 ret 117d4f: 90 nop <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { 117d50: f6 40 10 02 testb $0x2,0x10(%eax) 117d54: 74 0e je 117d64 _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 117d56: e8 b9 36 00 00 call 11b414 <_Thread_Enable_dispatch> 117d5b: b8 0f 00 00 00 mov $0xf,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 117d60: c9 leave 117d61: c3 ret 117d62: 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(); 117d64: e8 ab 36 00 00 call 11b414 <_Thread_Enable_dispatch> 117d69: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 117d6b: c9 leave 117d6c: c3 ret 00111a4c : rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) { 111a4c: 55 push %ebp 111a4d: 89 e5 mov %esp,%ebp 111a4f: 57 push %edi 111a50: 56 push %esi 111a51: 53 push %ebx 111a52: 83 ec 1c sub $0x1c,%esp 111a55: 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 ) 111a58: 85 c9 test %ecx,%ecx 111a5a: 0f 84 1c 01 00 00 je 111b7c return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; 111a60: 8b 1d 18 54 12 00 mov 0x125418,%ebx api = executing->API_Extensions[ THREAD_API_RTEMS ]; 111a66: 8b bb f0 00 00 00 mov 0xf0(%ebx),%edi asr = &api->Signal; old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT; 111a6c: 80 7b 75 01 cmpb $0x1,0x75(%ebx) 111a70: 19 f6 sbb %esi,%esi 111a72: 81 e6 00 01 00 00 and $0x100,%esi if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE ) 111a78: 8b 53 7c mov 0x7c(%ebx),%edx 111a7b: 85 d2 test %edx,%edx 111a7d: 0f 85 b5 00 00 00 jne 111b38 if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; 111a83: 80 7f 08 01 cmpb $0x1,0x8(%edi) 111a87: 19 d2 sbb %edx,%edx 111a89: 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(); 111a8f: 89 55 e4 mov %edx,-0x1c(%ebp) 111a92: 89 4d e0 mov %ecx,-0x20(%ebp) 111a95: e8 e2 cc ff ff call 10e77c <_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; 111a9a: 8b 55 e4 mov -0x1c(%ebp),%edx 111a9d: 09 d0 or %edx,%eax old_mode |= _ISR_Get_level(); *previous_mode_set = old_mode; 111a9f: 09 f0 or %esi,%eax 111aa1: 8b 4d e0 mov -0x20(%ebp),%ecx 111aa4: 89 01 mov %eax,(%ecx) /* * These are generic thread scheduling characteristics. */ if ( mask & RTEMS_PREEMPT_MASK ) 111aa6: f7 45 0c 00 01 00 00 testl $0x100,0xc(%ebp) 111aad: 74 0f je 111abe executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false; 111aaf: 8b 45 08 mov 0x8(%ebp),%eax 111ab2: c1 e8 08 shr $0x8,%eax 111ab5: 83 f0 01 xor $0x1,%eax 111ab8: 83 e0 01 and $0x1,%eax 111abb: 88 43 75 mov %al,0x75(%ebx) if ( mask & RTEMS_TIMESLICE_MASK ) { 111abe: f7 45 0c 00 02 00 00 testl $0x200,0xc(%ebp) 111ac5: 74 18 je 111adf if ( _Modes_Is_timeslice(mode_set) ) { 111ac7: f7 45 08 00 02 00 00 testl $0x200,0x8(%ebp) 111ace: 74 74 je 111b44 executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; 111ad0: c7 43 7c 01 00 00 00 movl $0x1,0x7c(%ebx) executing->cpu_time_budget = _Thread_Ticks_per_timeslice; 111ad7: a1 24 53 12 00 mov 0x125324,%eax 111adc: 89 43 78 mov %eax,0x78(%ebx) /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 111adf: f6 45 0c 01 testb $0x1,0xc(%ebp) 111ae3: 74 07 je 111aec */ RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level ( Modes_Control mode_set ) { _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) ); 111ae5: f6 45 08 01 testb $0x1,0x8(%ebp) 111ae9: 74 69 je 111b54 111aeb: fa cli */ is_asr_enabled = false; needs_asr_dispatching = false; if ( mask & RTEMS_ASR_MASK ) { 111aec: f7 45 0c 00 04 00 00 testl $0x400,0xc(%ebp) 111af3: 74 2c je 111b21 * Output: * *previous_mode_set - previous mode set * always return RTEMS_SUCCESSFUL; */ rtems_status_code rtems_task_mode( 111af5: 8b 45 08 mov 0x8(%ebp),%eax 111af8: c1 e8 0a shr $0xa,%eax 111afb: 83 f0 01 xor $0x1,%eax 111afe: 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; 111b01: 38 47 08 cmp %al,0x8(%edi) 111b04: 74 1b je 111b21 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; 111b06: 88 47 08 mov %al,0x8(%edi) ) { rtems_signal_set _signals; ISR_Level _level; _ISR_Disable( _level ); 111b09: 9c pushf 111b0a: fa cli 111b0b: 58 pop %eax _signals = information->signals_pending; 111b0c: 8b 57 18 mov 0x18(%edi),%edx information->signals_pending = information->signals_posted; 111b0f: 8b 4f 14 mov 0x14(%edi),%ecx 111b12: 89 4f 18 mov %ecx,0x18(%edi) information->signals_posted = _signals; 111b15: 89 57 14 mov %edx,0x14(%edi) _ISR_Enable( _level ); 111b18: 50 push %eax 111b19: 9d popf if ( !previous_mode_set ) return RTEMS_INVALID_ADDRESS; executing = _Thread_Executing; api = executing->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; 111b1a: 8b 47 14 mov 0x14(%edi),%eax 111b1d: 85 c0 test %eax,%eax 111b1f: 75 53 jne 111b74 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; 111b21: 31 db xor %ebx,%ebx } } } if ( _System_state_Is_up( _System_state_Get() ) ) 111b23: 83 3d 20 55 12 00 03 cmpl $0x3,0x125520 111b2a: 74 2c je 111b58 if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) _Thread_Dispatch(); 111b2c: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 111b2e: 83 c4 1c add $0x1c,%esp 111b31: 5b pop %ebx 111b32: 5e pop %esi 111b33: 5f pop %edi 111b34: c9 leave 111b35: c3 ret 111b36: 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; 111b38: 81 ce 00 02 00 00 or $0x200,%esi 111b3e: e9 40 ff ff ff jmp 111a83 111b43: 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; 111b44: c7 43 7c 00 00 00 00 movl $0x0,0x7c(%ebx) /* * Set the new interrupt level */ if ( mask & RTEMS_INTERRUPT_MASK ) 111b4b: f6 45 0c 01 testb $0x1,0xc(%ebp) 111b4f: 74 9b je 111aec 111b51: eb 92 jmp 111ae5 111b53: 90 nop <== NOT EXECUTED 111b54: fb sti 111b55: eb 95 jmp 111aec 111b57: 90 nop <== NOT EXECUTED } } } if ( _System_state_Is_up( _System_state_Get() ) ) if ( _Thread_Evaluate_mode() || needs_asr_dispatching ) 111b58: e8 93 02 00 00 call 111df0 <_Thread_Evaluate_mode> 111b5d: 84 c0 test %al,%al 111b5f: 75 04 jne 111b65 111b61: 84 db test %bl,%bl 111b63: 74 c7 je 111b2c _Thread_Dispatch(); 111b65: e8 32 b7 ff ff call 10d29c <_Thread_Dispatch> 111b6a: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 111b6c: 83 c4 1c add $0x1c,%esp 111b6f: 5b pop %ebx 111b70: 5e pop %esi 111b71: 5f pop %edi 111b72: c9 leave 111b73: 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; 111b74: c6 43 74 01 movb $0x1,0x74(%ebx) 111b78: b3 01 mov $0x1,%bl 111b7a: eb a7 jmp 111b23 ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set ) 111b7c: 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; } 111b81: 83 c4 1c add $0x1c,%esp 111b84: 5b pop %ebx 111b85: 5e pop %esi 111b86: 5f pop %edi 111b87: c9 leave 111b88: c3 ret 0010c3ac : rtems_status_code rtems_task_restart( rtems_id id, uint32_t argument ) { 10c3ac: 55 push %ebp 10c3ad: 89 e5 mov %esp,%ebp 10c3af: 83 ec 20 sub $0x20,%esp register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 10c3b2: 8d 45 f4 lea -0xc(%ebp),%eax 10c3b5: 50 push %eax 10c3b6: ff 75 08 pushl 0x8(%ebp) 10c3b9: e8 36 1b 00 00 call 10def4 <_Thread_Get> switch ( location ) { 10c3be: 83 c4 10 add $0x10,%esp 10c3c1: 8b 4d f4 mov -0xc(%ebp),%ecx 10c3c4: 85 c9 test %ecx,%ecx 10c3c6: 75 20 jne 10c3e8 case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { 10c3c8: 52 push %edx 10c3c9: ff 75 0c pushl 0xc(%ebp) 10c3cc: 6a 00 push $0x0 10c3ce: 50 push %eax 10c3cf: e8 18 23 00 00 call 10e6ec <_Thread_Restart> 10c3d4: 83 c4 10 add $0x10,%esp 10c3d7: 84 c0 test %al,%al 10c3d9: 75 15 jne 10c3f0 _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 10c3db: e8 f0 1a 00 00 call 10ded0 <_Thread_Enable_dispatch> 10c3e0: b8 0e 00 00 00 mov $0xe,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10c3e5: c9 leave 10c3e6: c3 ret 10c3e7: 90 nop <== NOT EXECUTED { register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); switch ( location ) { 10c3e8: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10c3ed: c9 leave 10c3ee: c3 ret 10c3ef: 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(); 10c3f0: e8 db 1a 00 00 call 10ded0 <_Thread_Enable_dispatch> 10c3f5: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10c3f7: c9 leave 10c3f8: c3 ret 0010f11c : */ rtems_status_code rtems_task_resume( rtems_id id ) { 10f11c: 55 push %ebp 10f11d: 89 e5 mov %esp,%ebp 10f11f: 83 ec 20 sub $0x20,%esp register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 10f122: 8d 45 f4 lea -0xc(%ebp),%eax 10f125: 50 push %eax 10f126: ff 75 08 pushl 0x8(%ebp) 10f129: e8 16 1c 00 00 call 110d44 <_Thread_Get> switch ( location ) { 10f12e: 83 c4 10 add $0x10,%esp 10f131: 8b 55 f4 mov -0xc(%ebp),%edx 10f134: 85 d2 test %edx,%edx 10f136: 74 08 je 10f140 10f138: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10f13d: c9 leave 10f13e: c3 ret 10f13f: 90 nop <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( _States_Is_suspended( the_thread->current_state ) ) { 10f140: f6 40 10 02 testb $0x2,0x10(%eax) 10f144: 75 0e jne 10f154 _Thread_Resume( the_thread, true ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 10f146: e8 a9 1b 00 00 call 110cf4 <_Thread_Enable_dispatch> 10f14b: b8 0e 00 00 00 mov $0xe,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10f150: c9 leave 10f151: c3 ret 10f152: 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 ); 10f154: 83 ec 08 sub $0x8,%esp 10f157: 6a 01 push $0x1 10f159: 50 push %eax 10f15a: e8 dd 23 00 00 call 11153c <_Thread_Resume> _Thread_Enable_dispatch(); 10f15f: e8 90 1b 00 00 call 110cf4 <_Thread_Enable_dispatch> 10f164: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10f166: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10f169: c9 leave 10f16a: c3 ret 0010d460 : rtems_status_code rtems_task_set_note( rtems_id id, uint32_t notepad, uint32_t note ) { 10d460: 55 push %ebp 10d461: 89 e5 mov %esp,%ebp 10d463: 56 push %esi 10d464: 53 push %ebx 10d465: 83 ec 10 sub $0x10,%esp 10d468: 8b 45 08 mov 0x8(%ebp),%eax 10d46b: 8b 5d 0c mov 0xc(%ebp),%ebx 10d46e: 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() ) 10d471: 80 3d e4 51 12 00 00 cmpb $0x0,0x1251e4 10d478: 74 66 je 10d4e0 /* * 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 ) 10d47a: 83 fb 0f cmp $0xf,%ebx 10d47d: 77 39 ja 10d4b8 /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 10d47f: 85 c0 test %eax,%eax 10d481: 74 41 je 10d4c4 _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { 10d483: 8b 15 f8 96 12 00 mov 0x1296f8,%edx /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 10d489: 3b 42 08 cmp 0x8(%edx),%eax 10d48c: 74 3c je 10d4ca api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); 10d48e: 83 ec 08 sub $0x8,%esp 10d491: 8d 55 f4 lea -0xc(%ebp),%edx 10d494: 52 push %edx 10d495: 50 push %eax 10d496: e8 d5 1c 00 00 call 10f170 <_Thread_Get> switch ( location ) { 10d49b: 83 c4 10 add $0x10,%esp 10d49e: 8b 55 f4 mov -0xc(%ebp),%edx 10d4a1: 85 d2 test %edx,%edx 10d4a3: 75 47 jne 10d4ec case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; 10d4a5: 8b 80 f0 00 00 00 mov 0xf0(%eax),%eax 10d4ab: 89 74 98 20 mov %esi,0x20(%eax,%ebx,4) _Thread_Enable_dispatch(); 10d4af: e8 98 1c 00 00 call 10f14c <_Thread_Enable_dispatch> 10d4b4: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10d4b6: eb 05 jmp 10d4bd /* * 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 ) 10d4b8: b8 0a 00 00 00 mov $0xa,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10d4bd: 8d 65 f8 lea -0x8(%ebp),%esp 10d4c0: 5b pop %ebx 10d4c1: 5e pop %esi 10d4c2: c9 leave 10d4c3: c3 ret /* * Optimize the most likely case to avoid the Thread_Dispatch. */ if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) || 10d4c4: 8b 15 f8 96 12 00 mov 0x1296f8,%edx _Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) { api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ]; api->Notepads[ notepad ] = note; 10d4ca: 8b 82 f0 00 00 00 mov 0xf0(%edx),%eax 10d4d0: 89 74 98 20 mov %esi,0x20(%eax,%ebx,4) 10d4d4: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10d4d6: 8d 65 f8 lea -0x8(%ebp),%esp 10d4d9: 5b pop %ebx 10d4da: 5e pop %esi 10d4db: c9 leave 10d4dc: c3 ret 10d4dd: 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() ) 10d4e0: b8 16 00 00 00 mov $0x16,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10d4e5: 8d 65 f8 lea -0x8(%ebp),%esp 10d4e8: 5b pop %ebx 10d4e9: 5e pop %esi 10d4ea: c9 leave 10d4eb: c3 ret api->Notepads[ notepad ] = note; return RTEMS_SUCCESSFUL; } the_thread = _Thread_Get( id, &location ); switch ( location ) { 10d4ec: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10d4f1: 8d 65 f8 lea -0x8(%ebp),%esp 10d4f4: 5b pop %ebx 10d4f5: 5e pop %esi 10d4f6: c9 leave 10d4f7: c3 ret 0010fdd8 : rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) { 10fdd8: 55 push %ebp 10fdd9: 89 e5 mov %esp,%ebp 10fddb: 56 push %esi 10fddc: 53 push %ebx 10fddd: 83 ec 10 sub $0x10,%esp 10fde0: 8b 5d 0c mov 0xc(%ebp),%ebx 10fde3: 8b 75 10 mov 0x10(%ebp),%esi register Thread_Control *the_thread; Objects_Locations location; if ( new_priority != RTEMS_CURRENT_PRIORITY && 10fde6: 85 db test %ebx,%ebx 10fde8: 74 0b je 10fdf5 */ RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid ( rtems_task_priority the_priority ) { return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) && 10fdea: 0f b6 05 b4 77 12 00 movzbl 0x1277b4,%eax 10fdf1: 39 c3 cmp %eax,%ebx 10fdf3: 77 5f ja 10fe54 !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) 10fdf5: 85 f6 test %esi,%esi 10fdf7: 74 67 je 10fe60 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); 10fdf9: 83 ec 08 sub $0x8,%esp 10fdfc: 8d 45 f4 lea -0xc(%ebp),%eax 10fdff: 50 push %eax 10fe00: ff 75 08 pushl 0x8(%ebp) 10fe03: e8 6c 1d 00 00 call 111b74 <_Thread_Get> switch ( location ) { 10fe08: 83 c4 10 add $0x10,%esp 10fe0b: 8b 55 f4 mov -0xc(%ebp),%edx 10fe0e: 85 d2 test %edx,%edx 10fe10: 75 36 jne 10fe48 case OBJECTS_LOCAL: /* XXX need helper to "convert" from core priority */ *old_priority = the_thread->current_priority; 10fe12: 8b 50 14 mov 0x14(%eax),%edx 10fe15: 89 16 mov %edx,(%esi) if ( new_priority != RTEMS_CURRENT_PRIORITY ) { 10fe17: 85 db test %ebx,%ebx 10fe19: 74 1c je 10fe37 the_thread->real_priority = new_priority; 10fe1b: 89 58 18 mov %ebx,0x18(%eax) if ( the_thread->resource_count == 0 || 10fe1e: 8b 48 1c mov 0x1c(%eax),%ecx 10fe21: 85 c9 test %ecx,%ecx 10fe23: 74 05 je 10fe2a the_thread->current_priority > new_priority ) 10fe25: 3b 58 14 cmp 0x14(%eax),%ebx 10fe28: 73 0d jae 10fe37 _Thread_Change_priority( the_thread, new_priority, false ); 10fe2a: 52 push %edx 10fe2b: 6a 00 push $0x0 10fe2d: 53 push %ebx 10fe2e: 50 push %eax 10fe2f: e8 08 18 00 00 call 11163c <_Thread_Change_priority> 10fe34: 83 c4 10 add $0x10,%esp } _Thread_Enable_dispatch(); 10fe37: e8 e8 1c 00 00 call 111b24 <_Thread_Enable_dispatch> 10fe3c: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10fe3e: 8d 65 f8 lea -0x8(%ebp),%esp 10fe41: 5b pop %ebx 10fe42: 5e pop %esi 10fe43: c9 leave 10fe44: c3 ret 10fe45: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if ( !old_priority ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) { 10fe48: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10fe4d: 8d 65 f8 lea -0x8(%ebp),%esp 10fe50: 5b pop %ebx 10fe51: 5e pop %esi 10fe52: c9 leave 10fe53: c3 ret 10fe54: b8 13 00 00 00 mov $0x13,%eax 10fe59: 8d 65 f8 lea -0x8(%ebp),%esp 10fe5c: 5b pop %ebx 10fe5d: 5e pop %esi 10fe5e: c9 leave 10fe5f: c3 ret if ( new_priority != RTEMS_CURRENT_PRIORITY && !_RTEMS_tasks_Priority_is_valid( new_priority ) ) return RTEMS_INVALID_PRIORITY; if ( !old_priority ) 10fe60: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10fe65: 8d 65 f8 lea -0x8(%ebp),%esp 10fe68: 5b pop %ebx 10fe69: 5e pop %esi 10fe6a: c9 leave 10fe6b: c3 ret 0010b9e0 : rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) { 10b9e0: 55 push %ebp 10b9e1: 89 e5 mov %esp,%ebp 10b9e3: 53 push %ebx 10b9e4: 83 ec 14 sub $0x14,%esp 10b9e7: 8b 5d 0c mov 0xc(%ebp),%ebx register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) 10b9ea: 85 db test %ebx,%ebx 10b9ec: 74 4e je 10ba3c return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); 10b9ee: 83 ec 08 sub $0x8,%esp 10b9f1: 8d 45 f4 lea -0xc(%ebp),%eax 10b9f4: 50 push %eax 10b9f5: ff 75 08 pushl 0x8(%ebp) 10b9f8: e8 1f 1a 00 00 call 10d41c <_Thread_Get> switch ( location ) { 10b9fd: 83 c4 10 add $0x10,%esp 10ba00: 8b 55 f4 mov -0xc(%ebp),%edx 10ba03: 85 d2 test %edx,%edx 10ba05: 75 29 jne 10ba30 case OBJECTS_LOCAL: if ( _Thread_Start( 10ba07: 83 ec 0c sub $0xc,%esp 10ba0a: ff 75 10 pushl 0x10(%ebp) 10ba0d: 6a 00 push $0x0 10ba0f: 53 push %ebx 10ba10: 6a 00 push $0x0 10ba12: 50 push %eax 10ba13: e8 a8 24 00 00 call 10dec0 <_Thread_Start> 10ba18: 83 c4 20 add $0x20,%esp 10ba1b: 84 c0 test %al,%al 10ba1d: 75 29 jne 10ba48 the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) { _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 10ba1f: e8 d4 19 00 00 call 10d3f8 <_Thread_Enable_dispatch> 10ba24: b8 0e 00 00 00 mov $0xe,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10ba29: 8b 5d fc mov -0x4(%ebp),%ebx 10ba2c: c9 leave 10ba2d: c3 ret 10ba2e: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( entry_point == NULL ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get( id, &location ); switch ( location ) { 10ba30: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10ba35: 8b 5d fc mov -0x4(%ebp),%ebx 10ba38: c9 leave 10ba39: c3 ret 10ba3a: 66 90 xchg %ax,%ax <== NOT EXECUTED ) { register Thread_Control *the_thread; Objects_Locations location; if ( entry_point == NULL ) 10ba3c: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10ba41: 8b 5d fc mov -0x4(%ebp),%ebx 10ba44: c9 leave 10ba45: c3 ret 10ba46: 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(); 10ba48: e8 ab 19 00 00 call 10d3f8 <_Thread_Enable_dispatch> 10ba4d: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10ba4f: 8b 5d fc mov -0x4(%ebp),%ebx 10ba52: c9 leave 10ba53: c3 ret 0010ff04 : */ rtems_status_code rtems_task_suspend( rtems_id id ) { 10ff04: 55 push %ebp 10ff05: 89 e5 mov %esp,%ebp 10ff07: 83 ec 20 sub $0x20,%esp register Thread_Control *the_thread; Objects_Locations location; the_thread = _Thread_Get( id, &location ); 10ff0a: 8d 45 f4 lea -0xc(%ebp),%eax 10ff0d: 50 push %eax 10ff0e: ff 75 08 pushl 0x8(%ebp) 10ff11: e8 06 d5 ff ff call 10d41c <_Thread_Get> switch ( location ) { 10ff16: 83 c4 10 add $0x10,%esp 10ff19: 8b 55 f4 mov -0xc(%ebp),%edx 10ff1c: 85 d2 test %edx,%edx 10ff1e: 74 08 je 10ff28 10ff20: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10ff25: c9 leave 10ff26: c3 ret 10ff27: 90 nop <== NOT EXECUTED the_thread = _Thread_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( !_States_Is_suspended( the_thread->current_state ) ) { 10ff28: f6 40 10 02 testb $0x2,0x10(%eax) 10ff2c: 74 0e je 10ff3c _Thread_Suspend( the_thread ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } _Thread_Enable_dispatch(); 10ff2e: e8 c5 d4 ff ff call 10d3f8 <_Thread_Enable_dispatch> 10ff33: b8 0f 00 00 00 mov $0xf,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10ff38: c9 leave 10ff39: c3 ret 10ff3a: 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 ); 10ff3c: 83 ec 0c sub $0xc,%esp 10ff3f: 50 push %eax 10ff40: e8 f3 09 00 00 call 110938 <_Thread_Suspend> _Thread_Enable_dispatch(); 10ff45: e8 ae d4 ff ff call 10d3f8 <_Thread_Enable_dispatch> 10ff4a: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10ff4c: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 10ff4f: c9 leave 10ff50: c3 ret 0012d964 : rtems_status_code rtems_task_variable_add( rtems_id tid, void **ptr, void (*dtor)(void *) ) { 12d964: 55 push %ebp 12d965: 89 e5 mov %esp,%ebp 12d967: 57 push %edi 12d968: 56 push %esi 12d969: 53 push %ebx 12d96a: 83 ec 1c sub $0x1c,%esp 12d96d: 8b 5d 0c mov 0xc(%ebp),%ebx 12d970: 8b 7d 10 mov 0x10(%ebp),%edi Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) 12d973: 85 db test %ebx,%ebx 12d975: 0f 84 9d 00 00 00 je 12da18 return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 12d97b: 83 ec 08 sub $0x8,%esp 12d97e: 8d 45 e4 lea -0x1c(%ebp),%eax 12d981: 50 push %eax 12d982: ff 75 08 pushl 0x8(%ebp) 12d985: e8 32 5e fe ff call 1137bc <_Thread_Get> 12d98a: 89 c6 mov %eax,%esi switch (location) { 12d98c: 83 c4 10 add $0x10,%esp 12d98f: 8b 45 e4 mov -0x1c(%ebp),%eax 12d992: 85 c0 test %eax,%eax 12d994: 74 0e je 12d9a4 12d996: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12d99b: 8d 65 f4 lea -0xc(%ebp),%esp 12d99e: 5b pop %ebx 12d99f: 5e pop %esi 12d9a0: 5f pop %edi 12d9a1: c9 leave 12d9a2: c3 ret 12d9a3: 90 nop <== NOT EXECUTED case OBJECTS_LOCAL: /* * Figure out if the variable is already in this task's list. */ tvp = the_thread->task_variables; 12d9a4: 8b 86 00 01 00 00 mov 0x100(%esi),%eax while (tvp) { 12d9aa: 85 c0 test %eax,%eax 12d9ac: 75 44 jne 12d9f2 12d9ae: 66 90 xchg %ax,%ax } /* * Now allocate memory for this task variable. */ new = (rtems_task_variable_t *) 12d9b0: 83 ec 0c sub $0xc,%esp 12d9b3: 6a 14 push $0x14 12d9b5: e8 f2 6e fe ff call 1148ac <_Workspace_Allocate> _Workspace_Allocate(sizeof(rtems_task_variable_t)); if (new == NULL) { 12d9ba: 83 c4 10 add $0x10,%esp 12d9bd: 85 c0 test %eax,%eax 12d9bf: 74 4b je 12da0c _Thread_Enable_dispatch(); return RTEMS_NO_MEMORY; } new->gval = *ptr; 12d9c1: 8b 13 mov (%ebx),%edx 12d9c3: 89 50 08 mov %edx,0x8(%eax) new->ptr = ptr; 12d9c6: 89 58 04 mov %ebx,0x4(%eax) new->dtor = dtor; 12d9c9: 89 78 10 mov %edi,0x10(%eax) new->next = (struct rtems_task_variable_tt *)the_thread->task_variables; 12d9cc: 8b 96 00 01 00 00 mov 0x100(%esi),%edx 12d9d2: 89 10 mov %edx,(%eax) the_thread->task_variables = new; 12d9d4: 89 86 00 01 00 00 mov %eax,0x100(%esi) _Thread_Enable_dispatch(); 12d9da: e8 b9 5d fe ff call 113798 <_Thread_Enable_dispatch> 12d9df: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12d9e1: 8d 65 f4 lea -0xc(%ebp),%esp 12d9e4: 5b pop %ebx 12d9e5: 5e pop %esi 12d9e6: 5f pop %edi 12d9e7: c9 leave 12d9e8: c3 ret 12d9e9: 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; 12d9ec: 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) { 12d9ee: 85 c0 test %eax,%eax 12d9f0: 74 be je 12d9b0 if (tvp->ptr == ptr) { 12d9f2: 39 58 04 cmp %ebx,0x4(%eax) 12d9f5: 75 f5 jne 12d9ec tvp->dtor = dtor; 12d9f7: 89 78 10 mov %edi,0x10(%eax) _Thread_Enable_dispatch(); 12d9fa: e8 99 5d fe ff call 113798 <_Thread_Enable_dispatch> 12d9ff: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12da01: 8d 65 f4 lea -0xc(%ebp),%esp 12da04: 5b pop %ebx 12da05: 5e pop %esi 12da06: 5f pop %edi 12da07: c9 leave 12da08: c3 ret 12da09: 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(); 12da0c: e8 87 5d fe ff call 113798 <_Thread_Enable_dispatch> 12da11: b8 1a 00 00 00 mov $0x1a,%eax return RTEMS_NO_MEMORY; 12da16: eb 83 jmp 12d99b { Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *new; if ( !ptr ) 12da18: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12da1d: 8d 65 f4 lea -0xc(%ebp),%esp 12da20: 5b pop %ebx 12da21: 5e pop %esi 12da22: 5f pop %edi 12da23: c9 leave 12da24: c3 ret 0012da28 : rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) { 12da28: 55 push %ebp 12da29: 89 e5 mov %esp,%ebp 12da2b: 53 push %ebx 12da2c: 83 ec 14 sub $0x14,%esp 12da2f: 8b 5d 0c mov 0xc(%ebp),%ebx Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp, *prev; if ( !ptr ) 12da32: 85 db test %ebx,%ebx 12da34: 74 4c je 12da82 return RTEMS_INVALID_ADDRESS; prev = NULL; the_thread = _Thread_Get (tid, &location); 12da36: 83 ec 08 sub $0x8,%esp 12da39: 8d 45 f4 lea -0xc(%ebp),%eax 12da3c: 50 push %eax 12da3d: ff 75 08 pushl 0x8(%ebp) 12da40: e8 77 5d fe ff call 1137bc <_Thread_Get> switch (location) { 12da45: 83 c4 10 add $0x10,%esp 12da48: 8b 55 f4 mov -0xc(%ebp),%edx 12da4b: 85 d2 test %edx,%edx 12da4d: 74 0d je 12da5c 12da4f: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12da54: 8b 5d fc mov -0x4(%ebp),%ebx 12da57: c9 leave 12da58: c3 ret 12da59: 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; 12da5c: 8b 90 00 01 00 00 mov 0x100(%eax),%edx while (tvp) { 12da62: 85 d2 test %edx,%edx 12da64: 74 17 je 12da7d if (tvp->ptr == ptr) { 12da66: 39 5a 04 cmp %ebx,0x4(%edx) 12da69: 75 0a jne 12da75 12da6b: eb 3c jmp 12daa9 12da6d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED 12da70: 39 5a 04 cmp %ebx,0x4(%edx) 12da73: 74 17 je 12da8c 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; 12da75: 89 d1 mov %edx,%ecx } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; 12da77: 8b 12 mov (%edx),%edx the_thread = _Thread_Get (tid, &location); switch (location) { case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { 12da79: 85 d2 test %edx,%edx 12da7b: 75 f3 jne 12da70 return RTEMS_SUCCESSFUL; } prev = tvp; tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 12da7d: e8 16 5d fe ff call 113798 <_Thread_Enable_dispatch> 12da82: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12da87: 8b 5d fc mov -0x4(%ebp),%ebx 12da8a: c9 leave 12da8b: c3 ret case OBJECTS_LOCAL: tvp = the_thread->task_variables; while (tvp) { if (tvp->ptr == ptr) { if (prev) prev->next = tvp->next; 12da8c: 8b 1a mov (%edx),%ebx 12da8e: 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 ); 12da90: 83 ec 08 sub $0x8,%esp 12da93: 52 push %edx 12da94: 50 push %eax 12da95: e8 a2 00 00 00 call 12db3c <_RTEMS_Tasks_Invoke_task_variable_dtor> _Thread_Enable_dispatch(); 12da9a: e8 f9 5c fe ff call 113798 <_Thread_Enable_dispatch> 12da9f: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 12daa1: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12daa4: 8b 5d fc mov -0x4(%ebp),%ebx 12daa7: c9 leave 12daa8: 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; 12daa9: 8b 0a mov (%edx),%ecx 12daab: 89 88 00 01 00 00 mov %ecx,0x100(%eax) 12dab1: eb dd jmp 12da90 0012dab4 : rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) { 12dab4: 55 push %ebp 12dab5: 89 e5 mov %esp,%ebp 12dab7: 56 push %esi 12dab8: 53 push %ebx 12dab9: 83 ec 10 sub $0x10,%esp 12dabc: 8b 5d 0c mov 0xc(%ebp),%ebx 12dabf: 8b 75 10 mov 0x10(%ebp),%esi Thread_Control *the_thread; Objects_Locations location; rtems_task_variable_t *tvp; if ( !ptr ) 12dac2: 85 db test %ebx,%ebx 12dac4: 74 56 je 12db1c return RTEMS_INVALID_ADDRESS; if ( !result ) 12dac6: 85 f6 test %esi,%esi 12dac8: 74 52 je 12db1c return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); 12daca: 83 ec 08 sub $0x8,%esp 12dacd: 8d 45 f4 lea -0xc(%ebp),%eax 12dad0: 50 push %eax 12dad1: ff 75 08 pushl 0x8(%ebp) 12dad4: e8 e3 5c fe ff call 1137bc <_Thread_Get> switch (location) { 12dad9: 83 c4 10 add $0x10,%esp 12dadc: 8b 55 f4 mov -0xc(%ebp),%edx 12dadf: 85 d2 test %edx,%edx 12dae1: 75 2d jne 12db10 case OBJECTS_LOCAL: /* * Figure out if the variable is in this task's list. */ tvp = the_thread->task_variables; 12dae3: 8b 80 00 01 00 00 mov 0x100(%eax),%eax while (tvp) { 12dae9: 85 c0 test %eax,%eax 12daeb: 75 09 jne 12daf6 12daed: eb 39 jmp 12db28 12daef: 90 nop <== NOT EXECUTED */ *result = tvp->tval; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; 12daf0: 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) { 12daf2: 85 c0 test %eax,%eax 12daf4: 74 32 je 12db28 if (tvp->ptr == ptr) { 12daf6: 39 58 04 cmp %ebx,0x4(%eax) 12daf9: 75 f5 jne 12daf0 /* * Should this return the current (i.e not the * saved) value if `tid' is the current task? */ *result = tvp->tval; 12dafb: 8b 40 0c mov 0xc(%eax),%eax 12dafe: 89 06 mov %eax,(%esi) _Thread_Enable_dispatch(); 12db00: e8 93 5c fe ff call 113798 <_Thread_Enable_dispatch> 12db05: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12db07: 8d 65 f8 lea -0x8(%ebp),%esp 12db0a: 5b pop %ebx 12db0b: 5e pop %esi 12db0c: c9 leave 12db0d: c3 ret 12db0e: 66 90 xchg %ax,%ax <== NOT EXECUTED if ( !result ) return RTEMS_INVALID_ADDRESS; the_thread = _Thread_Get (tid, &location); switch (location) { 12db10: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12db15: 8d 65 f8 lea -0x8(%ebp),%esp 12db18: 5b pop %ebx 12db19: 5e pop %esi 12db1a: c9 leave 12db1b: c3 ret return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); return RTEMS_INVALID_ADDRESS; 12db1c: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12db21: 8d 65 f8 lea -0x8(%ebp),%esp 12db24: 5b pop %ebx 12db25: 5e pop %esi 12db26: c9 leave 12db27: c3 ret _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } tvp = (rtems_task_variable_t *)tvp->next; } _Thread_Enable_dispatch(); 12db28: e8 6b 5c fe ff call 113798 <_Thread_Enable_dispatch> 12db2d: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 12db32: 8d 65 f8 lea -0x8(%ebp),%esp 12db35: 5b pop %ebx 12db36: 5e pop %esi 12db37: c9 leave 12db38: c3 ret 0010ba54 : */ rtems_status_code rtems_task_wake_after( rtems_interval ticks ) { 10ba54: 55 push %ebp 10ba55: 89 e5 mov %esp,%ebp 10ba57: 53 push %ebx 10ba58: 83 ec 04 sub $0x4,%esp 10ba5b: 8b 5d 08 mov 0x8(%ebp),%ebx 10ba5e: a1 58 53 12 00 mov 0x125358,%eax 10ba63: 40 inc %eax 10ba64: a3 58 53 12 00 mov %eax,0x125358 _Thread_Disable_dispatch(); if ( ticks == 0 ) { 10ba69: 85 db test %ebx,%ebx 10ba6b: 74 53 je 10bac0 _Thread_Yield_processor(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); 10ba6d: 83 ec 08 sub $0x8,%esp 10ba70: 6a 08 push $0x8 10ba72: ff 35 18 54 12 00 pushl 0x125418 10ba78: e8 03 22 00 00 call 10dc80 <_Thread_Set_state> _Watchdog_Initialize( &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, 10ba7d: a1 18 54 12 00 mov 0x125418,%eax _Thread_Disable_dispatch(); if ( ticks == 0 ) { _Thread_Yield_processor(); } else { _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); _Watchdog_Initialize( 10ba82: 8b 50 08 mov 0x8(%eax),%edx Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 10ba85: c7 40 50 00 00 00 00 movl $0x0,0x50(%eax) the_watchdog->routine = routine; 10ba8c: c7 40 64 60 d2 10 00 movl $0x10d260,0x64(%eax) the_watchdog->id = id; 10ba93: 89 50 68 mov %edx,0x68(%eax) the_watchdog->user_data = user_data; 10ba96: c7 40 6c 00 00 00 00 movl $0x0,0x6c(%eax) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 10ba9d: 89 58 54 mov %ebx,0x54(%eax) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 10baa0: 5a pop %edx 10baa1: 59 pop %ecx 10baa2: 83 c0 48 add $0x48,%eax 10baa5: 50 push %eax 10baa6: 68 38 54 12 00 push $0x125438 10baab: e8 20 28 00 00 call 10e2d0 <_Watchdog_Insert> 10bab0: 83 c4 10 add $0x10,%esp _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); 10bab3: e8 40 19 00 00 call 10d3f8 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; } 10bab8: 31 c0 xor %eax,%eax 10baba: 8b 5d fc mov -0x4(%ebp),%ebx 10babd: c9 leave 10babe: c3 ret 10babf: 90 nop <== NOT EXECUTED rtems_interval ticks ) { _Thread_Disable_dispatch(); if ( ticks == 0 ) { _Thread_Yield_processor(); 10bac0: e8 9b 24 00 00 call 10df60 <_Thread_Yield_processor> _Thread_Executing->Object.id, NULL ); _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); } _Thread_Enable_dispatch(); 10bac5: e8 2e 19 00 00 call 10d3f8 <_Thread_Enable_dispatch> return RTEMS_SUCCESSFUL; } 10baca: 31 c0 xor %eax,%eax 10bacc: 8b 5d fc mov -0x4(%ebp),%ebx 10bacf: c9 leave 10bad0: c3 ret 0010c850 : */ rtems_status_code rtems_task_wake_when( rtems_time_of_day *time_buffer ) { 10c850: 55 push %ebp 10c851: 89 e5 mov %esp,%ebp 10c853: 53 push %ebx 10c854: 83 ec 14 sub $0x14,%esp 10c857: 8b 5d 08 mov 0x8(%ebp),%ebx Watchdog_Interval seconds; if ( !_TOD_Is_set ) 10c85a: 80 3d 4c 88 12 00 00 cmpb $0x0,0x12884c 10c861: 0f 84 a9 00 00 00 je 10c910 return RTEMS_NOT_DEFINED; if ( !time_buffer ) 10c867: 85 db test %ebx,%ebx 10c869: 0f 84 ad 00 00 00 je 10c91c return RTEMS_INVALID_ADDRESS; time_buffer->ticks = 0; 10c86f: c7 43 18 00 00 00 00 movl $0x0,0x18(%ebx) if ( !_TOD_Validate( time_buffer ) ) 10c876: 83 ec 0c sub $0xc,%esp 10c879: 53 push %ebx 10c87a: e8 d9 f3 ff ff call 10bc58 <_TOD_Validate> 10c87f: 83 c4 10 add $0x10,%esp 10c882: 84 c0 test %al,%al 10c884: 75 0a jne 10c890 _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 10c886: b8 14 00 00 00 mov $0x14,%eax } 10c88b: 8b 5d fc mov -0x4(%ebp),%ebx 10c88e: c9 leave 10c88f: c3 ret time_buffer->ticks = 0; if ( !_TOD_Validate( time_buffer ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( time_buffer ); 10c890: 83 ec 0c sub $0xc,%esp 10c893: 53 push %ebx 10c894: e8 33 f3 ff ff call 10bbcc <_TOD_To_seconds> if ( seconds <= _TOD_Seconds_since_epoch() ) 10c899: 83 c4 10 add $0x10,%esp 10c89c: 3b 05 cc 88 12 00 cmp 0x1288cc,%eax 10c8a2: 76 e2 jbe 10c886 10c8a4: 8b 15 38 88 12 00 mov 0x128838,%edx 10c8aa: 42 inc %edx 10c8ab: 89 15 38 88 12 00 mov %edx,0x128838 return RTEMS_INVALID_CLOCK; _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME ); 10c8b1: 83 ec 08 sub $0x8,%esp 10c8b4: 6a 10 push $0x10 10c8b6: ff 35 f8 88 12 00 pushl 0x1288f8 10c8bc: 89 45 f4 mov %eax,-0xc(%ebp) 10c8bf: e8 fc 22 00 00 call 10ebc0 <_Thread_Set_state> _Watchdog_Initialize( &_Thread_Executing->Timer, _Thread_Delay_ended, _Thread_Executing->Object.id, 10c8c4: 8b 15 f8 88 12 00 mov 0x1288f8,%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( 10c8ca: 8b 4a 08 mov 0x8(%edx),%ecx Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 10c8cd: c7 42 50 00 00 00 00 movl $0x0,0x50(%edx) the_watchdog->routine = routine; 10c8d4: c7 42 64 a0 e1 10 00 movl $0x10e1a0,0x64(%edx) the_watchdog->id = id; 10c8db: 89 4a 68 mov %ecx,0x68(%edx) the_watchdog->user_data = user_data; 10c8de: c7 42 6c 00 00 00 00 movl $0x0,0x6c(%edx) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 10c8e5: 8b 45 f4 mov -0xc(%ebp),%eax 10c8e8: 2b 05 cc 88 12 00 sub 0x1288cc,%eax 10c8ee: 89 42 54 mov %eax,0x54(%edx) _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 10c8f1: 58 pop %eax 10c8f2: 59 pop %ecx 10c8f3: 83 c2 48 add $0x48,%edx 10c8f6: 52 push %edx 10c8f7: 68 0c 89 12 00 push $0x12890c 10c8fc: e8 87 29 00 00 call 10f288 <_Watchdog_Insert> ); _Watchdog_Insert_seconds( &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); 10c901: e8 32 1a 00 00 call 10e338 <_Thread_Enable_dispatch> 10c906: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 10c908: 83 c4 10 add $0x10,%esp 10c90b: e9 7b ff ff ff jmp 10c88b rtems_time_of_day *time_buffer ) { Watchdog_Interval seconds; if ( !_TOD_Is_set ) 10c910: b8 0b 00 00 00 mov $0xb,%eax &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10c915: 8b 5d fc mov -0x4(%ebp),%ebx 10c918: c9 leave 10c919: c3 ret 10c91a: 66 90 xchg %ax,%ax <== NOT EXECUTED Watchdog_Interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !time_buffer ) 10c91c: b8 09 00 00 00 mov $0x9,%eax &_Thread_Executing->Timer, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 10c921: 8b 5d fc mov -0x4(%ebp),%ebx 10c924: c9 leave 10c925: c3 ret 0010a030 : #include int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) { 10a030: 55 push %ebp 10a031: 89 e5 mov %esp,%ebp 10a033: 8b 45 08 mov 0x8(%ebp),%eax int baud_index; switch (termios_baud) { 10a036: 83 f8 09 cmp $0x9,%eax 10a039: 0f 84 f1 00 00 00 je 10a130 10a03f: 7e 37 jle 10a078 10a041: 83 f8 0e cmp $0xe,%eax <== NOT EXECUTED 10a044: 0f 84 f6 00 00 00 je 10a140 <== NOT EXECUTED 10a04a: 7e 5c jle 10a0a8 <== NOT EXECUTED 10a04c: 3d 02 10 00 00 cmp $0x1002,%eax <== NOT EXECUTED 10a051: 0f 84 01 01 00 00 je 10a158 <== NOT EXECUTED 10a057: 0f 8e 97 00 00 00 jle 10a0f4 <== NOT EXECUTED 10a05d: 3d 03 10 00 00 cmp $0x1003,%eax <== NOT EXECUTED 10a062: 0f 84 e0 00 00 00 je 10a148 <== NOT EXECUTED 10a068: 3d 04 10 00 00 cmp $0x1004,%eax <== NOT EXECUTED 10a06d: 75 51 jne 10a0c0 <== 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; 10a06f: b8 13 00 00 00 mov $0x13,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a074: c9 leave <== NOT EXECUTED 10a075: c3 ret <== NOT EXECUTED 10a076: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 10a078: 83 f8 04 cmp $0x4,%eax 10a07b: 0f 84 b7 00 00 00 je 10a138 10a081: 7f 45 jg 10a0c8 10a083: 83 f8 01 cmp $0x1,%eax 10a086: 0f 84 8c 00 00 00 je 10a118 10a08c: 0f 8e de 00 00 00 jle 10a170 10a092: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED 10a095: 0f 84 c5 00 00 00 je 10a160 <== NOT EXECUTED 10a09b: 83 f8 03 cmp $0x3,%eax <== NOT EXECUTED 10a09e: 75 20 jne 10a0c0 <== NOT EXECUTED case B0: baud_index = 0; break; case B50: baud_index = 1; break; case B75: baud_index = 2; break; 10a0a0: b8 03 00 00 00 mov $0x3,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a0a5: c9 leave <== NOT EXECUTED 10a0a6: c3 ret <== NOT EXECUTED 10a0a7: 90 nop <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 10a0a8: 83 f8 0b cmp $0xb,%eax <== NOT EXECUTED 10a0ab: 0f 84 9f 00 00 00 je 10a150 <== NOT EXECUTED 10a0b1: 7c 39 jl 10a0ec <== NOT EXECUTED 10a0b3: 83 f8 0c cmp $0xc,%eax <== NOT EXECUTED 10a0b6: 74 50 je 10a108 <== NOT EXECUTED 10a0b8: 83 f8 0d cmp $0xd,%eax <== NOT EXECUTED 10a0bb: 74 62 je 10a11f <== NOT EXECUTED 10a0bd: 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; 10a0c0: b8 ff ff ff ff mov $0xffffffff,%eax default: baud_index = -1; break; } return baud_index; } 10a0c5: c9 leave 10a0c6: c3 ret 10a0c7: 90 nop <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 10a0c8: 83 f8 06 cmp $0x6,%eax <== NOT EXECUTED 10a0cb: 74 43 je 10a110 <== NOT EXECUTED 10a0cd: 7c 15 jl 10a0e4 <== NOT EXECUTED 10a0cf: 83 f8 07 cmp $0x7,%eax <== NOT EXECUTED 10a0d2: 0f 84 90 00 00 00 je 10a168 <== NOT EXECUTED 10a0d8: 83 f8 08 cmp $0x8,%eax <== NOT EXECUTED 10a0db: 75 e3 jne 10a0c0 <== 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; 10a0dd: b8 08 00 00 00 mov $0x8,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a0e2: c9 leave <== NOT EXECUTED 10a0e3: 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; 10a0e4: b8 05 00 00 00 mov $0x5,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a0e9: c9 leave <== NOT EXECUTED 10a0ea: c3 ret <== NOT EXECUTED 10a0eb: 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; 10a0ec: b8 0a 00 00 00 mov $0xa,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a0f1: c9 leave <== NOT EXECUTED 10a0f2: c3 ret <== NOT EXECUTED 10a0f3: 90 nop <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 10a0f4: 83 f8 0f cmp $0xf,%eax <== NOT EXECUTED 10a0f7: 74 2f je 10a128 <== NOT EXECUTED 10a0f9: 3d 01 10 00 00 cmp $0x1001,%eax <== NOT EXECUTED 10a0fe: 75 c0 jne 10a0c0 <== 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; 10a100: b8 10 00 00 00 mov $0x10,%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 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; 10a108: b8 0c 00 00 00 mov $0xc,%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 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; 10a110: b8 06 00 00 00 mov $0x6,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a115: c9 leave <== NOT EXECUTED 10a116: c3 ret <== NOT EXECUTED 10a117: 90 nop <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 10a118: b8 01 00 00 00 mov $0x1,%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 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; 10a11f: b8 0d 00 00 00 mov $0xd,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a124: c9 leave <== NOT EXECUTED 10a125: c3 ret <== NOT EXECUTED 10a126: 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; 10a128: b8 0f 00 00 00 mov $0xf,%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 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; 10a130: b8 09 00 00 00 mov $0x9,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a135: c9 leave <== NOT EXECUTED 10a136: c3 ret <== NOT EXECUTED 10a137: 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; 10a138: b8 04 00 00 00 mov $0x4,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a13d: c9 leave <== NOT EXECUTED 10a13e: c3 ret <== NOT EXECUTED 10a13f: 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; 10a140: b8 0e 00 00 00 mov $0xe,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a145: c9 leave <== NOT EXECUTED 10a146: c3 ret <== NOT EXECUTED 10a147: 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; 10a148: b8 12 00 00 00 mov $0x12,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a14d: c9 leave <== NOT EXECUTED 10a14e: c3 ret <== NOT EXECUTED 10a14f: 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; 10a150: b8 0b 00 00 00 mov $0xb,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a155: c9 leave <== NOT EXECUTED 10a156: c3 ret <== NOT EXECUTED 10a157: 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; 10a158: b8 11 00 00 00 mov $0x11,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a15d: c9 leave <== NOT EXECUTED 10a15e: c3 ret <== NOT EXECUTED 10a15f: 90 nop <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 10a160: b8 02 00 00 00 mov $0x2,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a165: c9 leave <== NOT EXECUTED 10a166: c3 ret <== NOT EXECUTED 10a167: 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; 10a168: b8 07 00 00 00 mov $0x7,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a16d: c9 leave <== NOT EXECUTED 10a16e: c3 ret <== NOT EXECUTED 10a16f: 90 nop <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 10a170: 85 c0 test %eax,%eax 10a172: 0f 85 48 ff ff ff jne 10a0c0 10a178: 31 c0 xor %eax,%eax <== NOT EXECUTED case B460800: baud_index = 19; break; default: baud_index = -1; break; } return baud_index; } 10a17a: c9 leave <== NOT EXECUTED 10a17b: c3 ret <== NOT EXECUTED 00108d5c : #include int32_t rtems_termios_baud_to_number( int termios_baud ) { 108d5c: 55 push %ebp 108d5d: 89 e5 mov %esp,%ebp 108d5f: 8b 45 08 mov 0x8(%ebp),%eax int32_t baud; switch (termios_baud) { 108d62: 83 f8 09 cmp $0x9,%eax 108d65: 0f 84 f1 00 00 00 je 108e5c 108d6b: 7e 37 jle 108da4 108d6d: 83 f8 0e cmp $0xe,%eax 108d70: 0f 84 f6 00 00 00 je 108e6c 108d76: 7e 5c jle 108dd4 108d78: 3d 02 10 00 00 cmp $0x1002,%eax 108d7d: 0f 84 01 01 00 00 je 108e84 108d83: 0f 8e 97 00 00 00 jle 108e20 108d89: 3d 03 10 00 00 cmp $0x1003,%eax 108d8e: 0f 84 e0 00 00 00 je 108e74 108d94: 3d 04 10 00 00 cmp $0x1004,%eax 108d99: 75 51 jne 108dec 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; 108d9b: b8 00 08 07 00 mov $0x70800,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108da0: c9 leave 108da1: c3 ret 108da2: 66 90 xchg %ax,%ax <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 108da4: 83 f8 04 cmp $0x4,%eax 108da7: 0f 84 b7 00 00 00 je 108e64 108dad: 7f 45 jg 108df4 108daf: 83 f8 01 cmp $0x1,%eax 108db2: 0f 84 8c 00 00 00 je 108e44 108db8: 0f 8e de 00 00 00 jle 108e9c 108dbe: 83 f8 02 cmp $0x2,%eax 108dc1: 0f 84 c5 00 00 00 je 108e8c 108dc7: 83 f8 03 cmp $0x3,%eax 108dca: 75 20 jne 108dec case B0: baud = 0; break; case B50: baud = 50; break; case B75: baud = 75; break; 108dcc: b8 6e 00 00 00 mov $0x6e,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108dd1: c9 leave 108dd2: c3 ret 108dd3: 90 nop <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 108dd4: 83 f8 0b cmp $0xb,%eax 108dd7: 0f 84 9f 00 00 00 je 108e7c 108ddd: 7c 39 jl 108e18 108ddf: 83 f8 0c cmp $0xc,%eax 108de2: 74 50 je 108e34 108de4: 83 f8 0d cmp $0xd,%eax 108de7: 74 62 je 108e4b 108de9: 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; 108dec: b8 ff ff ff ff mov $0xffffffff,%eax default: baud = -1; break; } return baud; } 108df1: c9 leave 108df2: c3 ret 108df3: 90 nop <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 108df4: 83 f8 06 cmp $0x6,%eax 108df7: 74 43 je 108e3c 108df9: 7c 15 jl 108e10 108dfb: 83 f8 07 cmp $0x7,%eax 108dfe: 0f 84 90 00 00 00 je 108e94 108e04: 83 f8 08 cmp $0x8,%eax 108e07: 75 e3 jne 108dec 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; 108e09: b8 58 02 00 00 mov $0x258,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e0e: c9 leave 108e0f: 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; 108e10: b8 96 00 00 00 mov $0x96,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e15: c9 leave 108e16: c3 ret 108e17: 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; 108e18: b8 08 07 00 00 mov $0x708,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e1d: c9 leave 108e1e: c3 ret 108e1f: 90 nop <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 108e20: 83 f8 0f cmp $0xf,%eax 108e23: 74 2f je 108e54 108e25: 3d 01 10 00 00 cmp $0x1001,%eax 108e2a: 75 c0 jne 108dec 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; 108e2c: b8 00 e1 00 00 mov $0xe100,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e31: c9 leave 108e32: c3 ret 108e33: 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; 108e34: b8 c0 12 00 00 mov $0x12c0,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e39: c9 leave 108e3a: c3 ret 108e3b: 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; 108e3c: b8 c8 00 00 00 mov $0xc8,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e41: c9 leave 108e42: c3 ret 108e43: 90 nop <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 108e44: b8 32 00 00 00 mov $0x32,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e49: c9 leave 108e4a: 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; 108e4b: b8 80 25 00 00 mov $0x2580,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e50: c9 leave 108e51: c3 ret 108e52: 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; 108e54: b8 00 96 00 00 mov $0x9600,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e59: c9 leave 108e5a: c3 ret 108e5b: 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; 108e5c: b8 b0 04 00 00 mov $0x4b0,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e61: c9 leave 108e62: c3 ret 108e63: 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; 108e64: b8 86 00 00 00 mov $0x86,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e69: c9 leave 108e6a: c3 ret 108e6b: 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; 108e6c: b8 00 4b 00 00 mov $0x4b00,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e71: c9 leave 108e72: c3 ret 108e73: 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; 108e74: b8 00 84 03 00 mov $0x38400,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e79: c9 leave 108e7a: c3 ret 108e7b: 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; 108e7c: b8 60 09 00 00 mov $0x960,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e81: c9 leave 108e82: c3 ret 108e83: 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; 108e84: b8 00 c2 01 00 mov $0x1c200,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e89: c9 leave 108e8a: c3 ret 108e8b: 90 nop <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 108e8c: b8 4b 00 00 00 mov $0x4b,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e91: c9 leave 108e92: c3 ret 108e93: 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; 108e94: b8 2c 01 00 00 mov $0x12c,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108e99: c9 leave 108e9a: c3 ret 108e9b: 90 nop <== NOT EXECUTED int termios_baud ) { int32_t baud; switch (termios_baud) { 108e9c: 85 c0 test %eax,%eax 108e9e: 0f 85 48 ff ff ff jne 108dec 108ea4: 31 c0 xor %eax,%eax case B460800: baud = 460800; break; default: baud = -1; break; } return baud; } 108ea6: c9 leave 108ea7: c3 ret 00108ee4 : rtems_status_code rtems_termios_bufsize ( int cbufsize, int raw_input, int raw_output ) { 108ee4: 55 push %ebp <== NOT EXECUTED 108ee5: 89 e5 mov %esp,%ebp <== NOT EXECUTED rtems_termios_cbufsize = cbufsize; 108ee7: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 108eea: a3 08 30 12 00 mov %eax,0x123008 <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; 108eef: 8b 45 0c mov 0xc(%ebp),%eax <== NOT EXECUTED 108ef2: a3 0c 30 12 00 mov %eax,0x12300c <== NOT EXECUTED rtems_termios_raw_output_size = raw_output; 108ef7: 8b 45 10 mov 0x10(%ebp),%eax <== NOT EXECUTED 108efa: a3 10 30 12 00 mov %eax,0x123010 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 108eff: 31 c0 xor %eax,%eax <== NOT EXECUTED 108f01: c9 leave <== NOT EXECUTED 108f02: c3 ret <== NOT EXECUTED 0010a390 : } } rtems_status_code rtems_termios_close (void *arg) { 10a390: 55 push %ebp 10a391: 89 e5 mov %esp,%ebp 10a393: 56 push %esi 10a394: 53 push %ebx 10a395: 8b 75 08 mov 0x8(%ebp),%esi rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 10a398: 8b 06 mov (%esi),%eax 10a39a: 8b 58 34 mov 0x34(%eax),%ebx rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 10a39d: 50 push %eax 10a39e: 6a 00 push $0x0 10a3a0: 6a 00 push $0x0 10a3a2: ff 35 18 52 12 00 pushl 0x125218 10a3a8: e8 f3 11 00 00 call 10b5a0 if (sc != RTEMS_SUCCESSFUL) 10a3ad: 83 c4 10 add $0x10,%esp 10a3b0: 85 c0 test %eax,%eax 10a3b2: 0f 85 92 01 00 00 jne 10a54a rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 10a3b8: 8b 43 08 mov 0x8(%ebx),%eax 10a3bb: 48 dec %eax 10a3bc: 89 43 08 mov %eax,0x8(%ebx) 10a3bf: 85 c0 test %eax,%eax 10a3c1: 0f 85 bf 00 00 00 jne 10a486 if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 10a3c7: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax 10a3cd: c1 e0 05 shl $0x5,%eax 10a3d0: 8b 80 84 4e 12 00 mov 0x124e84(%eax),%eax 10a3d6: 85 c0 test %eax,%eax 10a3d8: 0f 84 12 01 00 00 je 10a4f0 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 10a3de: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a3e1: 53 push %ebx <== NOT EXECUTED 10a3e2: ff d0 call *%eax <== NOT EXECUTED 10a3e4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_fatal_error_occurred (sc); } drainOutput (tty); } if (tty->device.outputUsesInterrupts 10a3e7: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx) <== NOT EXECUTED 10a3ee: 0f 84 24 01 00 00 je 10a518 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) 10a3f4: 8b 83 9c 00 00 00 mov 0x9c(%ebx),%eax 10a3fa: 85 c0 test %eax,%eax 10a3fc: 74 0d je 10a40b (*tty->device.lastClose)(tty->major, tty->minor, arg); 10a3fe: 52 push %edx 10a3ff: 56 push %esi 10a400: ff 73 10 pushl 0x10(%ebx) 10a403: ff 73 0c pushl 0xc(%ebx) 10a406: ff d0 call *%eax 10a408: 83 c4 10 add $0x10,%esp if (tty->forw == NULL) { 10a40b: 8b 03 mov (%ebx),%eax 10a40d: 85 c0 test %eax,%eax 10a40f: 0f 84 9b 00 00 00 je 10a4b0 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; 10a415: 8b 53 04 mov 0x4(%ebx),%edx 10a418: 89 50 04 mov %edx,0x4(%eax) } if (tty->back == NULL) { 10a41b: 8b 53 04 mov 0x4(%ebx),%edx 10a41e: 85 d2 test %edx,%edx 10a420: 0f 84 ae 00 00 00 je 10a4d4 if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 10a426: 89 02 mov %eax,(%edx) <== NOT EXECUTED } rtems_semaphore_delete (tty->isem); 10a428: 83 ec 0c sub $0xc,%esp 10a42b: ff 73 14 pushl 0x14(%ebx) 10a42e: e8 c9 10 00 00 call 10b4fc rtems_semaphore_delete (tty->osem); 10a433: 58 pop %eax 10a434: ff 73 18 pushl 0x18(%ebx) 10a437: e8 c0 10 00 00 call 10b4fc rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 10a43c: 5e pop %esi 10a43d: ff b3 8c 00 00 00 pushl 0x8c(%ebx) 10a443: e8 b4 10 00 00 call 10b4fc if ((tty->device.pollRead == NULL) || 10a448: 83 c4 10 add $0x10,%esp 10a44b: 8b 8b a0 00 00 00 mov 0xa0(%ebx),%ecx 10a451: 85 c9 test %ecx,%ecx 10a453: 74 4b je 10a4a0 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) 10a455: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx) 10a45c: 74 42 je 10a4a0 rtems_semaphore_delete (tty->rawInBuf.Semaphore); free (tty->rawInBuf.theBuf); 10a45e: 83 ec 0c sub $0xc,%esp 10a461: ff 73 58 pushl 0x58(%ebx) 10a464: e8 b3 db ff ff call 10801c free (tty->rawOutBuf.theBuf); 10a469: 5a pop %edx 10a46a: ff 73 7c pushl 0x7c(%ebx) 10a46d: e8 aa db ff ff call 10801c free (tty->cbuf); 10a472: 58 pop %eax 10a473: ff 73 1c pushl 0x1c(%ebx) 10a476: e8 a1 db ff ff call 10801c free (tty); 10a47b: 89 1c 24 mov %ebx,(%esp) 10a47e: e8 99 db ff ff call 10801c 10a483: 83 c4 10 add $0x10,%esp } rtems_semaphore_release (rtems_termios_ttyMutex); 10a486: 83 ec 0c sub $0xc,%esp 10a489: ff 35 18 52 12 00 pushl 0x125218 10a48f: e8 08 12 00 00 call 10b69c return RTEMS_SUCCESSFUL; } 10a494: 31 c0 xor %eax,%eax 10a496: 8d 65 f8 lea -0x8(%ebp),%esp 10a499: 5b pop %ebx 10a49a: 5e pop %esi 10a49b: c9 leave 10a49c: c3 ret 10a49d: 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); 10a4a0: 83 ec 0c sub $0xc,%esp 10a4a3: ff 73 68 pushl 0x68(%ebx) 10a4a6: e8 51 10 00 00 call 10b4fc 10a4ab: 83 c4 10 add $0x10,%esp 10a4ae: eb ae jmp 10a45e 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; 10a4b0: 8b 43 04 mov 0x4(%ebx),%eax 10a4b3: a3 1c 52 12 00 mov %eax,0x12521c if ( rtems_termios_ttyTail != NULL ) { 10a4b8: 85 c0 test %eax,%eax 10a4ba: 0f 84 94 00 00 00 je 10a554 rtems_termios_ttyTail->forw = NULL; 10a4c0: c7 00 00 00 00 00 movl $0x0,(%eax) <== NOT EXECUTED 10a4c6: 8b 03 mov (%ebx),%eax <== NOT EXECUTED } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 10a4c8: 8b 53 04 mov 0x4(%ebx),%edx <== NOT EXECUTED 10a4cb: 85 d2 test %edx,%edx <== NOT EXECUTED 10a4cd: 0f 85 53 ff ff ff jne 10a426 <== NOT EXECUTED 10a4d3: 90 nop <== NOT EXECUTED rtems_termios_ttyHead = tty->forw; 10a4d4: a3 20 52 12 00 mov %eax,0x125220 if ( rtems_termios_ttyHead != NULL ) { 10a4d9: 85 c0 test %eax,%eax 10a4db: 0f 84 47 ff ff ff je 10a428 rtems_termios_ttyHead->back = NULL; 10a4e1: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) 10a4e8: e9 3b ff ff ff jmp 10a428 10a4ed: 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); 10a4f0: 51 push %ecx 10a4f1: 6a 00 push $0x0 10a4f3: 6a 00 push $0x0 10a4f5: ff 73 18 pushl 0x18(%ebx) 10a4f8: e8 a3 10 00 00 call 10b5a0 if (sc != RTEMS_SUCCESSFUL) { 10a4fd: 83 c4 10 add $0x10,%esp 10a500: 85 c0 test %eax,%eax 10a502: 75 46 jne 10a54a rtems_fatal_error_occurred (sc); } drainOutput (tty); 10a504: 89 d8 mov %ebx,%eax 10a506: e8 c1 f6 ff ff call 109bcc } if (tty->device.outputUsesInterrupts 10a50b: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx) 10a512: 0f 85 dc fe ff ff jne 10a3f4 == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 10a518: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10a51b: 6a 01 push $0x1 <== NOT EXECUTED 10a51d: ff b3 c4 00 00 00 pushl 0xc4(%ebx) <== NOT EXECUTED 10a523: e8 68 0b 00 00 call 10b090 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 10a528: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a52b: 85 c0 test %eax,%eax <== NOT EXECUTED 10a52d: 75 1b jne 10a54a <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 10a52f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10a532: 6a 01 push $0x1 <== NOT EXECUTED 10a534: ff b3 c8 00 00 00 pushl 0xc8(%ebx) <== NOT EXECUTED 10a53a: e8 51 0b 00 00 call 10b090 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 10a53f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a542: 85 c0 test %eax,%eax <== NOT EXECUTED 10a544: 0f 84 aa fe ff ff je 10a3f4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 10a54a: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a54d: 50 push %eax <== NOT EXECUTED 10a54e: e8 85 16 00 00 call 10bbd8 <== NOT EXECUTED 10a553: 90 nop <== NOT EXECUTED } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 10a554: c7 05 20 52 12 00 00 movl $0x0,0x125220 10a55b: 00 00 00 10a55e: e9 c5 fe ff ff jmp 10a428 00109158 : * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 109158: 55 push %ebp 109159: 89 e5 mov %esp,%ebp 10915b: 83 ec 08 sub $0x8,%esp 10915e: 8b 45 08 mov 0x8(%ebp),%eax rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 109161: 8b 55 0c mov 0xc(%ebp),%edx 109164: 01 90 90 00 00 00 add %edx,0x90(%eax) if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 10916a: 83 b8 b4 00 00 00 02 cmpl $0x2,0xb4(%eax) 109171: 74 2d je 1091a0 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 ) { 109173: 83 b8 cc 00 00 00 05 cmpl $0x5,0xcc(%eax) 10917a: 74 0c je 109188 rtems_termios_linesw[tty->t_line].l_start(tty); } return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); 10917c: 89 45 08 mov %eax,0x8(%ebp) } } 10917f: 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); 109180: e9 9b fd ff ff jmp 108f20 109185: 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) { 109188: 8b 15 34 4f 12 00 mov 0x124f34,%edx <== NOT EXECUTED 10918e: 85 d2 test %edx,%edx <== NOT EXECUTED 109190: 74 09 je 10919b <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 109192: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109195: 50 push %eax <== NOT EXECUTED 109196: ff d2 call *%edx <== NOT EXECUTED 109198: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 10919b: 31 c0 xor %eax,%eax <== NOT EXECUTED 10919d: c9 leave <== NOT EXECUTED 10919e: c3 ret <== NOT EXECUTED 10919f: 90 nop <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 1091a0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 1091a3: 6a 02 push $0x2 <== NOT EXECUTED 1091a5: ff b0 c8 00 00 00 pushl 0xc8(%eax) <== NOT EXECUTED 1091ab: e8 e0 1e 00 00 call 10b090 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 1091b0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1091b3: 85 c0 test %eax,%eax <== NOT EXECUTED 1091b5: 74 e4 je 10919b <== NOT EXECUTED rtems_fatal_error_occurred (sc); 1091b7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1091ba: 50 push %eax <== NOT EXECUTED 1091bb: e8 18 2a 00 00 call 10bbd8 <== NOT EXECUTED 001091c0 : * 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) { 1091c0: 55 push %ebp <== NOT EXECUTED 1091c1: 89 e5 mov %esp,%ebp <== NOT EXECUTED 1091c3: 57 push %edi <== NOT EXECUTED 1091c4: 56 push %esi <== NOT EXECUTED 1091c5: 53 push %ebx <== NOT EXECUTED 1091c6: 83 ec 3c sub $0x3c,%esp <== NOT EXECUTED 1091c9: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 1091cc: 8b 75 0c mov 0xc(%ebp),%esi <== NOT EXECUTED 1091cf: 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) { 1091d2: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED 1091d8: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 1091db: 8b 80 90 4e 12 00 mov 0x124e90(%eax),%eax <== NOT EXECUTED 1091e1: 85 c0 test %eax,%eax <== NOT EXECUTED 1091e3: 0f 84 8b 00 00 00 je 109274 <== NOT EXECUTED while (len--) { 1091e9: 85 ff test %edi,%edi <== NOT EXECUTED 1091eb: 74 2e je 10921b <== NOT EXECUTED 1091ed: 31 d2 xor %edx,%edx <== NOT EXECUTED 1091ef: 89 7d e4 mov %edi,-0x1c(%ebp) <== NOT EXECUTED 1091f2: 89 f7 mov %esi,%edi <== NOT EXECUTED 1091f4: 89 d6 mov %edx,%esi <== NOT EXECUTED 1091f6: eb 0f jmp 109207 <== NOT EXECUTED 1091f8: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED 1091fe: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 109201: 8b 80 90 4e 12 00 mov 0x124e90(%eax),%eax <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 109207: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10920a: 53 push %ebx <== NOT EXECUTED 10920b: 0f be 14 37 movsbl (%edi,%esi,1),%edx <== NOT EXECUTED 10920f: 52 push %edx <== NOT EXECUTED 109210: ff d0 call *%eax <== NOT EXECUTED 109212: 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--) { 109213: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109216: 39 75 e4 cmp %esi,-0x1c(%ebp) <== NOT EXECUTED 109219: 75 dd jne 1091f8 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 10921b: 8b 93 e4 00 00 00 mov 0xe4(%ebx),%edx <== NOT EXECUTED 109221: 85 d2 test %edx,%edx <== NOT EXECUTED 109223: 75 3b jne 109260 <== NOT EXECUTED 109225: 8b 83 dc 00 00 00 mov 0xdc(%ebx),%eax <== NOT EXECUTED 10922b: 85 c0 test %eax,%eax <== NOT EXECUTED 10922d: 74 31 je 109260 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 10922f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 109232: ff b3 e0 00 00 00 pushl 0xe0(%ebx) <== NOT EXECUTED 109238: 8d 53 30 lea 0x30(%ebx),%edx <== NOT EXECUTED 10923b: 52 push %edx <== NOT EXECUTED 10923c: ff d0 call *%eax <== NOT EXECUTED tty->tty_rcvwakeup = 1; 10923e: c7 83 e4 00 00 00 01 movl $0x1,0xe4(%ebx) <== NOT EXECUTED 109245: 00 00 00 <== NOT EXECUTED 109248: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED 10924f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; } 109252: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 109255: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109258: 5b pop %ebx <== NOT EXECUTED 109259: 5e pop %esi <== NOT EXECUTED 10925a: 5f pop %edi <== NOT EXECUTED 10925b: c9 leave <== NOT EXECUTED 10925c: c3 ret <== NOT EXECUTED 10925d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 109260: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED } 109267: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10926a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10926d: 5b pop %ebx <== NOT EXECUTED 10926e: 5e pop %esi <== NOT EXECUTED 10926f: 5f pop %edi <== NOT EXECUTED 109270: c9 leave <== NOT EXECUTED 109271: c3 ret <== NOT EXECUTED 109272: 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, 109274: 8d 43 4a lea 0x4a(%ebx),%eax <== NOT EXECUTED 109277: 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); 10927a: 8d 53 30 lea 0x30(%ebx),%edx <== NOT EXECUTED 10927d: 89 55 d0 mov %edx,-0x30(%ebp) <== NOT EXECUTED 109280: c6 45 db 00 movb $0x0,-0x25(%ebp) <== NOT EXECUTED 109284: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 10928b: 85 ff test %edi,%edi <== NOT EXECUTED 10928d: 0f 84 0b 01 00 00 je 10939e <== NOT EXECUTED 109293: 90 nop <== NOT EXECUTED c = *buf++; 109294: 8a 06 mov (%esi),%al <== NOT EXECUTED 109296: 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) { 109299: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 10929f: f6 c4 02 test $0x2,%ah <== NOT EXECUTED 1092a2: 74 1c je 1092c0 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 1092a4: 0f be 45 e4 movsbl -0x1c(%ebp),%eax <== NOT EXECUTED 1092a8: 0f b6 53 4a movzbl 0x4a(%ebx),%edx <== NOT EXECUTED 1092ac: 39 d0 cmp %edx,%eax <== NOT EXECUTED 1092ae: 0f 84 0c 01 00 00 je 1093c0 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 1092b4: 0f b6 53 49 movzbl 0x49(%ebx),%edx <== NOT EXECUTED 1092b8: 39 d0 cmp %edx,%eax <== NOT EXECUTED 1092ba: 0f 84 54 01 00 00 je 109414 <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { 1092c0: 80 7d db 00 cmpb $0x0,-0x25(%ebp) <== NOT EXECUTED 1092c4: 0f 85 11 01 00 00 jne 1093db <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 1092ca: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 1092cd: 8b 53 64 mov 0x64(%ebx),%edx <== NOT EXECUTED 1092d0: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED 1092d3: 40 inc %eax <== NOT EXECUTED 1092d4: 31 d2 xor %edx,%edx <== NOT EXECUTED 1092d6: f7 75 dc divl -0x24(%ebp) <== NOT EXECUTED 1092d9: 89 d1 mov %edx,%ecx <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); 1092db: 9c pushf <== NOT EXECUTED 1092dc: fa cli <== NOT EXECUTED 1092dd: 8f 45 d4 popl -0x2c(%ebp) <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 1092e0: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED 1092e3: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED 1092e6: 8b 43 64 mov 0x64(%ebx),%eax <== NOT EXECUTED 1092e9: 8b 53 64 mov 0x64(%ebx),%edx <== NOT EXECUTED 1092ec: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED 1092ef: 2b 45 c4 sub -0x3c(%ebp),%eax <== NOT EXECUTED 1092f2: 01 c8 add %ecx,%eax <== NOT EXECUTED 1092f4: 31 d2 xor %edx,%edx <== NOT EXECUTED 1092f6: f7 75 dc divl -0x24(%ebp) <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && 1092f9: 3b 93 c0 00 00 00 cmp 0xc0(%ebx),%edx <== NOT EXECUTED 1092ff: 76 47 jbe 109348 <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { 109301: 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) 109307: a8 01 test $0x1,%al <== NOT EXECUTED 109309: 75 3d jne 109348 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 10930b: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109311: 83 c8 01 or $0x1,%eax <== NOT EXECUTED 109314: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 10931a: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109320: 25 02 04 00 00 and $0x402,%eax <== NOT EXECUTED 109325: 3d 00 04 00 00 cmp $0x400,%eax <== NOT EXECUTED 10932a: 0f 84 27 01 00 00 je 109457 <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 109330: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109336: 25 04 01 00 00 and $0x104,%eax <== NOT EXECUTED 10933b: 3d 00 01 00 00 cmp $0x100,%eax <== NOT EXECUTED 109340: 0f 84 55 01 00 00 je 10949b <== NOT EXECUTED 109346: 66 90 xchg %ax,%ax <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); } } } /* reenable interrupts */ rtems_interrupt_enable(level); 109348: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED 10934b: 9d popf <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { 10934c: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED 10934f: 39 c8 cmp %ecx,%eax <== NOT EXECUTED 109351: 0f 84 b5 00 00 00 je 10940c <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; 109357: 8b 43 58 mov 0x58(%ebx),%eax <== NOT EXECUTED 10935a: 8a 55 e4 mov -0x1c(%ebp),%dl <== NOT EXECUTED 10935d: 88 14 08 mov %dl,(%eax,%ecx,1) <== NOT EXECUTED tty->rawInBuf.Tail = newTail; 109360: 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 )) { 109363: 8b 83 e4 00 00 00 mov 0xe4(%ebx),%eax <== NOT EXECUTED 109369: 85 c0 test %eax,%eax <== NOT EXECUTED 10936b: 75 27 jne 109394 <== NOT EXECUTED 10936d: 8b 83 dc 00 00 00 mov 0xdc(%ebx),%eax <== NOT EXECUTED 109373: 85 c0 test %eax,%eax <== NOT EXECUTED 109375: 74 1d je 109394 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 109377: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10937a: ff b3 e0 00 00 00 pushl 0xe0(%ebx) <== NOT EXECUTED 109380: ff 75 d0 pushl -0x30(%ebp) <== NOT EXECUTED 109383: ff d0 call *%eax <== NOT EXECUTED tty->tty_rcvwakeup = 1; 109385: c7 83 e4 00 00 00 01 movl $0x1,0xe4(%ebx) <== NOT EXECUTED 10938c: 00 00 00 <== NOT EXECUTED 10938f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109392: 66 90 xchg %ax,%ax <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 109394: 46 inc %esi <== NOT EXECUTED 109395: 4f dec %edi <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 109396: 85 ff test %edi,%edi <== NOT EXECUTED 109398: 0f 85 f6 fe ff ff jne 109294 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 10939e: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 1093a1: 01 43 78 add %eax,0x78(%ebx) <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 1093a4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1093a7: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED 1093aa: e8 ed 22 00 00 call 10b69c <== NOT EXECUTED return dropped; 1093af: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 1093b2: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 1093b5: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1093b8: 5b pop %ebx <== NOT EXECUTED 1093b9: 5e pop %esi <== NOT EXECUTED 1093ba: 5f pop %edi <== NOT EXECUTED 1093bb: c9 leave <== NOT EXECUTED 1093bc: c3 ret <== NOT EXECUTED 1093bd: 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]) { 1093c0: 0f b6 53 49 movzbl 0x49(%ebx),%edx <== NOT EXECUTED 1093c4: 39 d0 cmp %edx,%eax <== NOT EXECUTED 1093c6: 74 7e je 109446 <== NOT EXECUTED tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 1093c8: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1093ce: 83 c8 10 or $0x10,%eax <== NOT EXECUTED 1093d1: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 1093d7: 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) { 1093db: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1093e1: 83 e0 30 and $0x30,%eax <== NOT EXECUTED 1093e4: 83 f8 20 cmp $0x20,%eax <== NOT EXECUTED 1093e7: 75 ab jne 109394 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 1093e9: 9c pushf <== NOT EXECUTED 1093ea: fa cli <== NOT EXECUTED 1093eb: 5a pop %edx <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 1093ec: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1093f2: 83 e0 df and $0xffffffdf,%eax <== NOT EXECUTED 1093f5: 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) { 1093fb: 8b 83 94 00 00 00 mov 0x94(%ebx),%eax <== NOT EXECUTED 109401: 85 c0 test %eax,%eax <== NOT EXECUTED 109403: 75 20 jne 109425 <== 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); 109405: 52 push %edx <== NOT EXECUTED 109406: 9d popf <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 109407: 46 inc %esi <== NOT EXECUTED 109408: 4f dec %edi <== NOT EXECUTED 109409: eb 8b jmp 109396 <== NOT EXECUTED 10940b: 90 nop <== NOT EXECUTED } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { dropped++; 10940c: ff 45 e0 incl -0x20(%ebp) <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 10940f: 46 inc %esi <== NOT EXECUTED 109410: 4f dec %edi <== NOT EXECUTED 109411: eb 83 jmp 109396 <== NOT EXECUTED 109413: 90 nop <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 109414: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 10941a: 83 e0 ef and $0xffffffef,%eax <== NOT EXECUTED 10941d: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED 109423: eb b2 jmp 1093d7 <== 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); 109425: 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, 10942b: 51 push %ecx <== NOT EXECUTED 10942c: 6a 01 push $0x1 <== NOT EXECUTED 10942e: 03 43 7c add 0x7c(%ebx),%eax <== NOT EXECUTED 109431: 50 push %eax <== NOT EXECUTED 109432: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109435: 89 55 c8 mov %edx,-0x38(%ebp) <== NOT EXECUTED 109438: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED 10943e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109441: 8b 55 c8 mov -0x38(%ebp),%edx <== NOT EXECUTED 109444: eb bf jmp 109405 <== 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; 109446: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 10944c: 83 f0 10 xor $0x10,%eax <== NOT EXECUTED 10944f: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED 109455: eb 80 jmp 1093d7 <== 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) || 109457: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 10945d: a8 20 test $0x20,%al <== NOT EXECUTED 10945f: 75 0e jne 10946f <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { 109461: 8b 83 94 00 00 00 mov 0x94(%ebx),%eax <== NOT EXECUTED 109467: 85 c0 test %eax,%eax <== NOT EXECUTED 109469: 0f 85 d9 fe ff ff jne 109348 <== NOT EXECUTED /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; 10946f: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109475: 83 c8 02 or $0x2,%eax <== NOT EXECUTED 109478: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED (*tty->device.write)(tty->minor, 10947e: 52 push %edx <== NOT EXECUTED 10947f: 6a 01 push $0x1 <== NOT EXECUTED 109481: ff 75 cc pushl -0x34(%ebp) <== NOT EXECUTED 109484: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109487: 89 4d c8 mov %ecx,-0x38(%ebp) <== NOT EXECUTED 10948a: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED 109490: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109493: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED 109496: e9 ad fe ff ff jmp 109348 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 10949b: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1094a1: 83 c8 04 or $0x4,%eax <== NOT EXECUTED 1094a4: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 1094aa: 8b 83 ac 00 00 00 mov 0xac(%ebx),%eax <== NOT EXECUTED 1094b0: 85 c0 test %eax,%eax <== NOT EXECUTED 1094b2: 0f 84 90 fe ff ff je 109348 <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 1094b8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1094bb: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 1094be: 89 4d c8 mov %ecx,-0x38(%ebp) <== NOT EXECUTED 1094c1: ff d0 call *%eax <== NOT EXECUTED 1094c3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1094c6: 8b 4d c8 mov -0x38(%ebp),%ecx <== NOT EXECUTED 1094c9: e9 7a fe ff ff jmp 109348 <== NOT EXECUTED 00108ea8 : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 108ea8: 55 push %ebp 108ea9: 89 e5 mov %esp,%ebp 108eab: 83 ec 08 sub $0x8,%esp rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 108eae: a1 18 52 12 00 mov 0x125218,%eax 108eb3: 85 c0 test %eax,%eax 108eb5: 74 05 je 108ebc RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } 108eb7: c9 leave 108eb8: c3 ret 108eb9: 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 ( 108ebc: 83 ec 0c sub $0xc,%esp 108ebf: 68 18 52 12 00 push $0x125218 108ec4: 6a 00 push $0x0 108ec6: 6a 54 push $0x54 108ec8: 6a 01 push $0x1 108eca: 68 69 6d 52 54 push $0x54526d69 108ecf: e8 54 24 00 00 call 10b328 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) 108ed4: 83 c4 20 add $0x20,%esp 108ed7: 85 c0 test %eax,%eax 108ed9: 74 dc je 108eb7 rtems_fatal_error_occurred (sc); 108edb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 108ede: 50 push %eax <== NOT EXECUTED 108edf: e8 f4 2c 00 00 call 10bbd8 <== NOT EXECUTED 00109f78 : } } rtems_status_code rtems_termios_ioctl (void *arg) { 109f78: 55 push %ebp 109f79: 89 e5 mov %esp,%ebp 109f7b: 57 push %edi 109f7c: 56 push %esi 109f7d: 53 push %ebx 109f7e: 83 ec 20 sub $0x20,%esp 109f81: 8b 5d 08 mov 0x8(%ebp),%ebx rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 109f84: 8b 03 mov (%ebx),%eax 109f86: 8b 40 34 mov 0x34(%eax),%eax 109f89: 89 45 e4 mov %eax,-0x1c(%ebp) struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; 109f8c: 8b 73 08 mov 0x8(%ebx),%esi rtems_status_code sc; args->ioctl_return = 0; 109f8f: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 109f96: 6a 00 push $0x0 109f98: 6a 00 push $0x0 109f9a: ff 70 18 pushl 0x18(%eax) 109f9d: e8 fe 15 00 00 call 10b5a0 109fa2: 89 45 e0 mov %eax,-0x20(%ebp) if (sc != RTEMS_SUCCESSFUL) { 109fa5: 83 c4 10 add $0x10,%esp 109fa8: 85 c0 test %eax,%eax 109faa: 75 24 jne 109fd0 args->ioctl_return = sc; return sc; } switch (args->command) { 109fac: 8b 43 04 mov 0x4(%ebx),%eax 109faf: 83 f8 04 cmp $0x4,%eax 109fb2: 74 74 je 10a028 109fb4: 77 2a ja 109fe0 109fb6: 83 f8 02 cmp $0x2,%eax 109fb9: 0f 84 a1 00 00 00 je 10a060 109fbf: 0f 86 3b 02 00 00 jbe 10a200 if (tty->device.setAttributes) (*tty->device.setAttributes)(tty->minor, &tty->termios); break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 109fc5: 8b 45 e4 mov -0x1c(%ebp),%eax 109fc8: e8 ff fb ff ff call 109bcc break; 109fcd: eb 6d jmp 10a03c 109fcf: 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; 109fd0: 89 43 0c mov %eax,0xc(%ebx) <== NOT EXECUTED break; } rtems_semaphore_release (tty->osem); args->ioctl_return = sc; return sc; } 109fd3: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 109fd6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109fd9: 5b pop %ebx <== NOT EXECUTED 109fda: 5e pop %esi <== NOT EXECUTED 109fdb: 5f pop %edi <== NOT EXECUTED 109fdc: c9 leave <== NOT EXECUTED 109fdd: c3 ret <== NOT EXECUTED 109fde: 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) { 109fe0: 3d 7f 66 04 40 cmp $0x4004667f,%eax <== NOT EXECUTED 109fe5: 0f 84 ed 01 00 00 je 10a1d8 <== NOT EXECUTED 109feb: 0f 87 2f 02 00 00 ja 10a220 <== NOT EXECUTED 109ff1: 83 f8 05 cmp $0x5,%eax <== NOT EXECUTED 109ff4: 0f 84 aa 02 00 00 je 10a2a4 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 109ffa: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 109ffd: 8b 82 cc 00 00 00 mov 0xcc(%edx),%eax <== NOT EXECUTED 10a003: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 10a006: 8b 80 98 4e 12 00 mov 0x124e98(%eax),%eax <== NOT EXECUTED 10a00c: 85 c0 test %eax,%eax <== NOT EXECUTED 10a00e: 0f 84 ac 02 00 00 je 10a2c0 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 10a014: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10a017: 53 push %ebx <== NOT EXECUTED 10a018: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 10a01b: ff d0 call *%eax <== NOT EXECUTED 10a01d: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED 10a020: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a023: eb 17 jmp 10a03c <== NOT EXECUTED 10a025: 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; 10a028: 8b 06 mov (%esi),%eax <== NOT EXECUTED 10a02a: 8b 56 04 mov 0x4(%esi),%edx <== NOT EXECUTED 10a02d: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a030: 89 81 dc 00 00 00 mov %eax,0xdc(%ecx) <== NOT EXECUTED 10a036: 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); 10a03c: 83 ec 0c sub $0xc,%esp 10a03f: 8b 45 e4 mov -0x1c(%ebp),%eax 10a042: ff 70 18 pushl 0x18(%eax) 10a045: e8 52 16 00 00 call 10b69c args->ioctl_return = sc; 10a04a: 8b 55 e0 mov -0x20(%ebp),%edx 10a04d: 89 53 0c mov %edx,0xc(%ebx) return sc; 10a050: 83 c4 10 add $0x10,%esp } 10a053: 8b 45 e0 mov -0x20(%ebp),%eax 10a056: 8d 65 f4 lea -0xc(%ebp),%esp 10a059: 5b pop %ebx 10a05a: 5e pop %esi 10a05b: 5f pop %edi 10a05c: c9 leave 10a05d: c3 ret 10a05e: 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; 10a060: 8b 73 08 mov 0x8(%ebx),%esi 10a063: 8b 4d e4 mov -0x1c(%ebp),%ecx 10a066: 83 c1 30 add $0x30,%ecx 10a069: 89 4d dc mov %ecx,-0x24(%ebp) 10a06c: b9 09 00 00 00 mov $0x9,%ecx 10a071: 8b 7d dc mov -0x24(%ebp),%edi 10a074: 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) && 10a076: 8b 55 e4 mov -0x1c(%ebp),%edx 10a079: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax 10a07f: f6 c4 02 test $0x2,%ah 10a082: 74 44 je 10a0c8 10a084: f6 42 31 04 testb $0x4,0x31(%edx) 10a088: 75 3e jne 10a0c8 !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 10a08a: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a090: 25 ef fd ff ff and $0xfffffdef,%eax <== NOT EXECUTED 10a095: 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) { 10a09b: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a0a1: a8 20 test $0x20,%al <== NOT EXECUTED 10a0a3: 74 23 je 10a0c8 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); 10a0a5: 9c pushf <== NOT EXECUTED 10a0a6: fa cli <== NOT EXECUTED 10a0a7: 5e pop %esi <== NOT EXECUTED tty->flow_ctrl &= ~FL_OSTOP; 10a0a8: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a0ae: 83 e0 df and $0xffffffdf,%eax <== NOT EXECUTED 10a0b1: 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) { 10a0b7: 8b ba 94 00 00 00 mov 0x94(%edx),%edi <== NOT EXECUTED 10a0bd: 85 ff test %edi,%edi <== NOT EXECUTED 10a0bf: 0f 85 ab 02 00 00 jne 10a370 <== 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); 10a0c5: 56 push %esi <== NOT EXECUTED 10a0c6: 9d popf <== NOT EXECUTED 10a0c7: 90 nop <== NOT EXECUTED } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 10a0c8: 8b 4d e4 mov -0x1c(%ebp),%ecx 10a0cb: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax 10a0d1: f6 c4 04 test $0x4,%ah 10a0d4: 74 24 je 10a0fa 10a0d6: f6 41 31 10 testb $0x10,0x31(%ecx) <== NOT EXECUTED 10a0da: 75 1e jne 10a0fa <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 10a0dc: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax <== NOT EXECUTED 10a0e2: 80 e4 fb and $0xfb,%ah <== NOT EXECUTED 10a0e5: 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); 10a0eb: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax <== NOT EXECUTED 10a0f1: 83 e0 fd and $0xfffffffd,%eax <== NOT EXECUTED 10a0f4: 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) && 10a0fa: 8b 55 e4 mov -0x1c(%ebp),%edx 10a0fd: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax 10a103: f6 c4 01 test $0x1,%ah 10a106: 74 4b je 10a153 10a108: 8b 7a 38 mov 0x38(%edx),%edi <== NOT EXECUTED 10a10b: 85 ff test %edi,%edi <== NOT EXECUTED 10a10d: 0f 88 09 02 00 00 js 10a31c <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 10a113: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a119: 80 e4 fe and $0xfe,%ah <== NOT EXECUTED 10a11c: 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) && 10a122: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a128: a8 04 test $0x4,%al <== NOT EXECUTED 10a12a: 74 15 je 10a141 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { 10a12c: 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) && 10a132: 85 c0 test %eax,%eax <== NOT EXECUTED 10a134: 74 0b je 10a141 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 10a136: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a139: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED 10a13c: ff d0 call *%eax <== NOT EXECUTED 10a13e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 10a141: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a144: 8b 81 b8 00 00 00 mov 0xb8(%ecx),%eax <== NOT EXECUTED 10a14a: 83 e0 fb and $0xfffffffb,%eax <== NOT EXECUTED 10a14d: 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) { 10a153: 8b 45 e4 mov -0x1c(%ebp),%eax 10a156: 8b 70 38 mov 0x38(%eax),%esi 10a159: 85 f6 test %esi,%esi 10a15b: 0f 88 bb 01 00 00 js 10a31c tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 10a161: 8b 4d e4 mov -0x1c(%ebp),%ecx 10a164: 8b 41 30 mov 0x30(%ecx),%eax 10a167: f6 c4 10 test $0x10,%ah 10a16a: 74 0f je 10a17b tty->flow_ctrl |= FL_MDXOF; 10a16c: 8b 91 b8 00 00 00 mov 0xb8(%ecx),%edx <== NOT EXECUTED 10a172: 80 ce 04 or $0x4,%dh <== NOT EXECUTED 10a175: 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) { 10a17b: f6 c4 04 test $0x4,%ah 10a17e: 74 12 je 10a192 tty->flow_ctrl |= FL_MDXON; 10a180: 8b 55 e4 mov -0x1c(%ebp),%edx 10a183: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax 10a189: 80 cc 02 or $0x2,%ah 10a18c: 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) { 10a192: 8b 4d e4 mov -0x1c(%ebp),%ecx 10a195: f6 41 3c 02 testb $0x2,0x3c(%ecx) 10a199: 0f 84 2d 01 00 00 je 10a2cc tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 10a19f: c7 41 6c 00 00 00 00 movl $0x0,0x6c(%ecx) tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 10a1a6: c7 41 70 00 00 00 00 movl $0x0,0x70(%ecx) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 10a1ad: c7 41 74 00 00 00 00 movl $0x0,0x74(%ecx) else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 10a1b4: 8b 55 e4 mov -0x1c(%ebp),%edx 10a1b7: 8b 82 a8 00 00 00 mov 0xa8(%edx),%eax 10a1bd: 85 c0 test %eax,%eax 10a1bf: 0f 84 77 fe ff ff je 10a03c (*tty->device.setAttributes)(tty->minor, &tty->termios); 10a1c5: 83 ec 08 sub $0x8,%esp 10a1c8: ff 75 dc pushl -0x24(%ebp) 10a1cb: ff 72 10 pushl 0x10(%edx) 10a1ce: ff d0 call *%eax 10a1d0: 83 c4 10 add $0x10,%esp 10a1d3: e9 64 fe ff ff jmp 10a03c *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 10a1d8: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10a1db: 8b 42 60 mov 0x60(%edx),%eax <== NOT EXECUTED 10a1de: 89 d1 mov %edx,%ecx <== NOT EXECUTED 10a1e0: 8b 52 5c mov 0x5c(%edx),%edx <== NOT EXECUTED if ( rawnc < 0 ) 10a1e3: 29 d0 sub %edx,%eax <== NOT EXECUTED 10a1e5: 0f 88 25 01 00 00 js 10a310 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 10a1eb: 8b 53 08 mov 0x8(%ebx),%edx <== NOT EXECUTED 10a1ee: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a1f1: 03 41 20 add 0x20(%ecx),%eax <== NOT EXECUTED 10a1f4: 2b 41 24 sub 0x24(%ecx),%eax <== NOT EXECUTED 10a1f7: 89 02 mov %eax,(%edx) <== NOT EXECUTED 10a1f9: e9 3e fe ff ff jmp 10a03c <== NOT EXECUTED 10a1fe: 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) { 10a200: 48 dec %eax 10a201: 0f 85 f3 fd ff ff jne 109ffa sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 10a207: 8b 43 08 mov 0x8(%ebx),%eax 10a20a: 8b 75 e4 mov -0x1c(%ebp),%esi 10a20d: 83 c6 30 add $0x30,%esi 10a210: b9 09 00 00 00 mov $0x9,%ecx 10a215: 89 c7 mov %eax,%edi 10a217: f3 a5 rep movsl %ds:(%esi),%es:(%edi) break; 10a219: e9 1e fe ff ff jmp 10a03c 10a21e: 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) { 10a220: 3d 1a 74 04 40 cmp $0x4004741a,%eax <== NOT EXECUTED 10a225: 74 69 je 10a290 <== NOT EXECUTED 10a227: 3d 1b 74 04 80 cmp $0x8004741b,%eax <== NOT EXECUTED 10a22c: 0f 85 c8 fd ff ff jne 109ffa <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 10a232: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10a235: 8b 82 cc 00 00 00 mov 0xcc(%edx),%eax <== NOT EXECUTED 10a23b: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 10a23e: 8b 80 84 4e 12 00 mov 0x124e84(%eax),%eax <== NOT EXECUTED 10a244: 85 c0 test %eax,%eax <== NOT EXECUTED 10a246: 74 0c je 10a254 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 10a248: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a24b: 52 push %edx <== NOT EXECUTED 10a24c: ff d0 call *%eax <== NOT EXECUTED 10a24e: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED 10a251: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 10a254: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED 10a257: 8b 00 mov (%eax),%eax <== NOT EXECUTED 10a259: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a25c: 89 81 cc 00 00 00 mov %eax,0xcc(%ecx) <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ 10a262: c7 81 d0 00 00 00 00 movl $0x0,0xd0(%ecx) <== NOT EXECUTED 10a269: 00 00 00 <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 10a26c: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 10a26f: 8b 80 80 4e 12 00 mov 0x124e80(%eax),%eax <== NOT EXECUTED 10a275: 85 c0 test %eax,%eax <== NOT EXECUTED 10a277: 0f 84 bf fd ff ff je 10a03c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 10a27d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a280: 51 push %ecx <== NOT EXECUTED 10a281: ff d0 call *%eax <== NOT EXECUTED 10a283: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED 10a286: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a289: e9 ae fd ff ff jmp 10a03c <== NOT EXECUTED 10a28e: 66 90 xchg %ax,%ax <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 10a290: 8b 43 08 mov 0x8(%ebx),%eax <== NOT EXECUTED 10a293: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a296: 8b 91 cc 00 00 00 mov 0xcc(%ecx),%edx <== NOT EXECUTED 10a29c: 89 10 mov %edx,(%eax) <== NOT EXECUTED break; 10a29e: e9 99 fd ff ff jmp 10a03c <== NOT EXECUTED 10a2a3: 90 nop <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 10a2a4: 8b 06 mov (%esi),%eax <== NOT EXECUTED 10a2a6: 8b 56 04 mov 0x4(%esi),%edx <== NOT EXECUTED 10a2a9: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a2ac: 89 81 d4 00 00 00 mov %eax,0xd4(%ecx) <== NOT EXECUTED 10a2b2: 89 91 d8 00 00 00 mov %edx,0xd8(%ecx) <== NOT EXECUTED break; 10a2b8: e9 7f fd ff ff jmp 10a03c <== NOT EXECUTED 10a2bd: 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) { 10a2c0: c7 45 e0 0a 00 00 00 movl $0xa,-0x20(%ebp) <== NOT EXECUTED 10a2c7: e9 70 fd ff ff jmp 10a03c <== 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; 10a2cc: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 10a2cf: 0f b6 70 46 movzbl 0x46(%eax),%esi <== NOT EXECUTED 10a2d3: e8 b8 0b 00 00 call 10ae90 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 10a2d8: 0f af c6 imul %esi,%eax <== NOT EXECUTED 10a2db: ba cd cc cc cc mov $0xcccccccd,%edx <== NOT EXECUTED 10a2e0: f7 e2 mul %edx <== NOT EXECUTED 10a2e2: c1 ea 03 shr $0x3,%edx <== NOT EXECUTED 10a2e5: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a2e8: 89 51 54 mov %edx,0x54(%ecx) <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 10a2eb: 80 79 46 00 cmpb $0x0,0x46(%ecx) <== NOT EXECUTED 10a2ef: 74 42 je 10a333 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 10a2f1: c7 41 6c 00 00 00 00 movl $0x0,0x6c(%ecx) <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; 10a2f8: 89 51 70 mov %edx,0x70(%ecx) <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) 10a2fb: 80 79 47 00 cmpb $0x0,0x47(%ecx) <== NOT EXECUTED 10a2ff: 74 55 je 10a356 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 10a301: c7 41 74 00 00 00 00 movl $0x0,0x74(%ecx) <== NOT EXECUTED 10a308: e9 a7 fe ff ff jmp 10a1b4 <== NOT EXECUTED 10a30d: 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; 10a310: 8b 51 64 mov 0x64(%ecx),%edx <== NOT EXECUTED 10a313: 01 d0 add %edx,%eax <== NOT EXECUTED 10a315: e9 d1 fe ff ff jmp 10a1eb <== NOT EXECUTED 10a31a: 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; 10a31c: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10a31f: 8b 82 b8 00 00 00 mov 0xb8(%edx),%eax <== NOT EXECUTED 10a325: 80 cc 01 or $0x1,%ah <== NOT EXECUTED 10a328: 89 82 b8 00 00 00 mov %eax,0xb8(%edx) <== NOT EXECUTED 10a32e: e9 2e fe ff ff jmp 10a161 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { 10a333: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 10a336: 80 7a 47 00 cmpb $0x0,0x47(%edx) <== NOT EXECUTED 10a33a: 74 25 je 10a361 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 10a33c: c7 42 6c 00 00 00 00 movl $0x0,0x6c(%edx) <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 10a343: c7 42 70 00 00 00 00 movl $0x0,0x70(%edx) <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 10a34a: c7 42 74 00 00 00 00 movl $0x0,0x74(%edx) <== NOT EXECUTED 10a351: e9 5e fe ff ff jmp 10a1b4 <== 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; 10a356: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 10a359: 89 50 74 mov %edx,0x74(%eax) <== NOT EXECUTED 10a35c: e9 53 fe ff ff jmp 10a1b4 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 10a361: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10a364: c7 41 6c 01 00 00 00 movl $0x1,0x6c(%ecx) <== NOT EXECUTED 10a36b: e9 44 fe ff ff jmp 10a1b4 <== 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); 10a370: 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, 10a376: 51 push %ecx <== NOT EXECUTED 10a377: 6a 01 push $0x1 <== NOT EXECUTED 10a379: 03 42 7c add 0x7c(%edx),%eax <== NOT EXECUTED 10a37c: 50 push %eax <== NOT EXECUTED 10a37d: ff 72 10 pushl 0x10(%edx) <== NOT EXECUTED 10a380: ff 92 a4 00 00 00 call *0xa4(%edx) <== NOT EXECUTED 10a386: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a389: e9 37 fd ff ff jmp 10a0c5 <== NOT EXECUTED 0010a304 : #include int rtems_termios_number_to_baud( int32_t baud ) { 10a304: 55 push %ebp 10a305: 89 e5 mov %esp,%ebp 10a307: 8b 45 08 mov 0x8(%ebp),%eax int termios_baud; switch (baud) { 10a30a: 3d b0 04 00 00 cmp $0x4b0,%eax 10a30f: 0f 84 47 01 00 00 je 10a45c 10a315: 7e 3d jle 10a354 10a317: 3d 00 4b 00 00 cmp $0x4b00,%eax 10a31c: 0f 84 4a 01 00 00 je 10a46c 10a322: 7e 64 jle 10a388 10a324: 3d 00 c2 01 00 cmp $0x1c200,%eax 10a329: 0f 84 15 01 00 00 je 10a444 10a32f: 0f 8e af 00 00 00 jle 10a3e4 10a335: 3d 00 84 03 00 cmp $0x38400,%eax 10a33a: 0f 84 fc 00 00 00 je 10a43c 10a340: 3d 00 08 07 00 cmp $0x70800,%eax 10a345: 0f 85 89 00 00 00 jne 10a3d4 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; 10a34b: b8 04 10 00 00 mov $0x1004,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a350: c9 leave 10a351: c3 ret 10a352: 66 90 xchg %ax,%ax <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 10a354: 3d 86 00 00 00 cmp $0x86,%eax 10a359: 0f 84 05 01 00 00 je 10a464 10a35f: 7e 4f jle 10a3b0 10a361: 3d c8 00 00 00 cmp $0xc8,%eax 10a366: 0f 84 b8 00 00 00 je 10a424 10a36c: 7e 5e jle 10a3cc 10a36e: 3d 2c 01 00 00 cmp $0x12c,%eax 10a373: 0f 84 9b 00 00 00 je 10a414 10a379: 3d 58 02 00 00 cmp $0x258,%eax 10a37e: 75 54 jne 10a3d4 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; 10a380: b8 08 00 00 00 mov $0x8,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a385: c9 leave 10a386: c3 ret 10a387: 90 nop <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 10a388: 3d 60 09 00 00 cmp $0x960,%eax 10a38d: 0f 84 c1 00 00 00 je 10a454 10a393: 7e 67 jle 10a3fc 10a395: 3d c0 12 00 00 cmp $0x12c0,%eax 10a39a: 0f 84 8c 00 00 00 je 10a42c 10a3a0: 3d 80 25 00 00 cmp $0x2580,%eax 10a3a5: 75 2d jne 10a3d4 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; 10a3a7: b8 0d 00 00 00 mov $0xd,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a3ac: c9 leave 10a3ad: c3 ret 10a3ae: 66 90 xchg %ax,%ax <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 10a3b0: 83 f8 32 cmp $0x32,%eax 10a3b3: 74 7f je 10a434 10a3b5: 7e 25 jle 10a3dc 10a3b7: 83 f8 4b cmp $0x4b,%eax 10a3ba: 0f 84 8c 00 00 00 je 10a44c 10a3c0: 83 f8 6e cmp $0x6e,%eax 10a3c3: 75 0f jne 10a3d4 case 0: termios_baud = B0; break; case 50: termios_baud = B50; break; case 75: termios_baud = B75; break; 10a3c5: b8 03 00 00 00 mov $0x3,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a3ca: c9 leave 10a3cb: c3 ret int32_t baud ) { int termios_baud; switch (baud) { 10a3cc: 3d 96 00 00 00 cmp $0x96,%eax 10a3d1: 74 39 je 10a40c 10a3d3: 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; 10a3d4: b8 ff ff ff ff mov $0xffffffff,%eax default: termios_baud = -1; break; } return termios_baud; } 10a3d9: c9 leave 10a3da: c3 ret 10a3db: 90 nop <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 10a3dc: 85 c0 test %eax,%eax 10a3de: 75 f4 jne 10a3d4 10a3e0: 31 c0 xor %eax,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a3e2: c9 leave 10a3e3: c3 ret int32_t baud ) { int termios_baud; switch (baud) { 10a3e4: 3d 00 96 00 00 cmp $0x9600,%eax 10a3e9: 74 31 je 10a41c 10a3eb: 3d 00 e1 00 00 cmp $0xe100,%eax 10a3f0: 75 e2 jne 10a3d4 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; 10a3f2: b8 01 10 00 00 mov $0x1001,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a3f7: c9 leave 10a3f8: c3 ret 10a3f9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 10a3fc: 3d 08 07 00 00 cmp $0x708,%eax 10a401: 75 d1 jne 10a3d4 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; 10a403: b8 0a 00 00 00 mov $0xa,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a408: c9 leave 10a409: c3 ret 10a40a: 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; 10a40c: b8 05 00 00 00 mov $0x5,%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 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; 10a414: b8 07 00 00 00 mov $0x7,%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 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; 10a41c: b8 0f 00 00 00 mov $0xf,%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 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; 10a424: b8 06 00 00 00 mov $0x6,%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 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; 10a42c: b8 0c 00 00 00 mov $0xc,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a431: c9 leave 10a432: c3 ret 10a433: 90 nop <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 10a434: b8 01 00 00 00 mov $0x1,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a439: c9 leave 10a43a: c3 ret 10a43b: 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; 10a43c: b8 03 10 00 00 mov $0x1003,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a441: c9 leave 10a442: c3 ret 10a443: 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; 10a444: b8 02 10 00 00 mov $0x1002,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a449: c9 leave 10a44a: c3 ret 10a44b: 90 nop <== NOT EXECUTED int32_t baud ) { int termios_baud; switch (baud) { 10a44c: b8 02 00 00 00 mov $0x2,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a451: c9 leave 10a452: c3 ret 10a453: 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; 10a454: b8 0b 00 00 00 mov $0xb,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a459: c9 leave 10a45a: c3 ret 10a45b: 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; 10a45c: b8 09 00 00 00 mov $0x9,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a461: c9 leave 10a462: c3 ret 10a463: 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; 10a464: b8 04 00 00 00 mov $0x4,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a469: c9 leave 10a46a: c3 ret 10a46b: 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; 10a46c: b8 0e 00 00 00 mov $0xe,%eax case 460800: termios_baud = B460800; break; default: termios_baud = -1; break; } return termios_baud; } 10a471: c9 leave 10a472: c3 ret 0010a564 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 10a564: 55 push %ebp 10a565: 89 e5 mov %esp,%ebp 10a567: 57 push %edi 10a568: 56 push %esi 10a569: 53 push %ebx 10a56a: 83 ec 20 sub $0x20,%esp 10a56d: 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, 10a570: 6a 00 push $0x0 10a572: 6a 00 push $0x0 10a574: ff 35 18 52 12 00 pushl 0x125218 10a57a: 89 55 dc mov %edx,-0x24(%ebp) 10a57d: e8 1e 10 00 00 call 10b5a0 10a582: 89 45 e4 mov %eax,-0x1c(%ebp) RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 10a585: 83 c4 10 add $0x10,%esp 10a588: 85 c0 test %eax,%eax 10a58a: 8b 55 dc mov -0x24(%ebp),%edx 10a58d: 75 6f jne 10a5fe return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 10a58f: 8b 1d 20 52 12 00 mov 0x125220,%ebx 10a595: 85 db test %ebx,%ebx 10a597: 0f 84 a7 00 00 00 je 10a644 10a59d: 8b 45 0c mov 0xc(%ebp),%eax 10a5a0: eb 0c jmp 10a5ae 10a5a2: 66 90 xchg %ax,%ax <== NOT EXECUTED 10a5a4: 8b 1b mov (%ebx),%ebx 10a5a6: 85 db test %ebx,%ebx 10a5a8: 0f 84 96 00 00 00 je 10a644 if ((tty->major == major) && (tty->minor == minor)) 10a5ae: 39 53 0c cmp %edx,0xc(%ebx) 10a5b1: 75 f1 jne 10a5a4 10a5b3: 39 43 10 cmp %eax,0x10(%ebx) 10a5b6: 75 ec jne 10a5a4 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 10a5b8: 8b 4d 10 mov 0x10(%ebp),%ecx 10a5bb: 8b 01 mov (%ecx),%eax 10a5bd: 89 58 34 mov %ebx,0x34(%eax) if (!tty->refcount++) { 10a5c0: 8b 43 08 mov 0x8(%ebx),%eax 10a5c3: 8d 48 01 lea 0x1(%eax),%ecx 10a5c6: 89 4b 08 mov %ecx,0x8(%ebx) 10a5c9: 85 c0 test %eax,%eax 10a5cb: 75 20 jne 10a5ed if (tty->device.firstOpen) 10a5cd: 8b 83 98 00 00 00 mov 0x98(%ebx),%eax 10a5d3: 85 c0 test %eax,%eax 10a5d5: 74 0d je 10a5e4 (*tty->device.firstOpen)(major, minor, arg); 10a5d7: 56 push %esi 10a5d8: ff 75 10 pushl 0x10(%ebp) 10a5db: ff 75 0c pushl 0xc(%ebp) 10a5de: 52 push %edx 10a5df: ff d0 call *%eax 10a5e1: 83 c4 10 add $0x10,%esp /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 10a5e4: 83 bb b4 00 00 00 02 cmpl $0x2,0xb4(%ebx) 10a5eb: 74 1c je 10a609 (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); 10a5ed: 83 ec 0c sub $0xc,%esp 10a5f0: ff 35 18 52 12 00 pushl 0x125218 10a5f6: e8 a1 10 00 00 call 10b69c return RTEMS_SUCCESSFUL; 10a5fb: 83 c4 10 add $0x10,%esp } 10a5fe: 8b 45 e4 mov -0x1c(%ebp),%eax 10a601: 8d 65 f4 lea -0xc(%ebp),%esp 10a604: 5b pop %ebx 10a605: 5e pop %esi 10a606: 5f pop %edi 10a607: c9 leave 10a608: 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, 10a609: 51 push %ecx <== NOT EXECUTED 10a60a: 53 push %ebx <== NOT EXECUTED 10a60b: 68 78 aa 10 00 push $0x10aa78 <== NOT EXECUTED 10a610: ff b3 c4 00 00 00 pushl 0xc4(%ebx) <== NOT EXECUTED 10a616: e8 c5 13 00 00 call 10b9e0 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 10a61b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a61e: 85 c0 test %eax,%eax <== NOT EXECUTED 10a620: 0f 85 3e 03 00 00 jne 10a964 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 10a626: 52 push %edx <== NOT EXECUTED 10a627: 53 push %ebx <== NOT EXECUTED 10a628: 68 0c aa 10 00 push $0x10aa0c <== NOT EXECUTED 10a62d: ff b3 c8 00 00 00 pushl 0xc8(%ebx) <== NOT EXECUTED 10a633: e8 a8 13 00 00 call 10b9e0 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 10a638: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a63b: 85 c0 test %eax,%eax <== NOT EXECUTED 10a63d: 74 ae je 10a5ed <== NOT EXECUTED 10a63f: e9 20 03 00 00 jmp 10a964 <== NOT EXECUTED static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 10a644: 83 ec 08 sub $0x8,%esp 10a647: 68 e8 00 00 00 push $0xe8 10a64c: 6a 01 push $0x1 10a64e: 89 55 dc mov %edx,-0x24(%ebp) 10a651: e8 0e 51 00 00 call 10f764 10a656: 89 45 e0 mov %eax,-0x20(%ebp) 10a659: 89 c3 mov %eax,%ebx if (tty == NULL) { 10a65b: 83 c4 10 add $0x10,%esp 10a65e: 85 c0 test %eax,%eax 10a660: 8b 55 dc mov -0x24(%ebp),%edx 10a663: 0f 84 79 02 00 00 je 10a8e2 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 10a669: a1 0c 30 12 00 mov 0x12300c,%eax 10a66e: 8b 4d e0 mov -0x20(%ebp),%ecx 10a671: 89 41 64 mov %eax,0x64(%ecx) tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 10a674: 8b 41 64 mov 0x64(%ecx),%eax 10a677: 83 ec 0c sub $0xc,%esp 10a67a: 50 push %eax 10a67b: 89 55 dc mov %edx,-0x24(%ebp) 10a67e: e8 e9 db ff ff call 10826c 10a683: 8b 75 e0 mov -0x20(%ebp),%esi 10a686: 89 46 58 mov %eax,0x58(%esi) if (tty->rawInBuf.theBuf == NULL) { 10a689: 83 c4 10 add $0x10,%esp 10a68c: 85 c0 test %eax,%eax 10a68e: 8b 55 dc mov -0x24(%ebp),%edx 10a691: 0f 84 68 02 00 00 je 10a8ff return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 10a697: a1 10 30 12 00 mov 0x123010,%eax 10a69c: 8b 4d e0 mov -0x20(%ebp),%ecx 10a69f: 89 81 88 00 00 00 mov %eax,0x88(%ecx) tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 10a6a5: 8b 81 88 00 00 00 mov 0x88(%ecx),%eax 10a6ab: 83 ec 0c sub $0xc,%esp 10a6ae: 50 push %eax 10a6af: 89 55 dc mov %edx,-0x24(%ebp) 10a6b2: e8 b5 db ff ff call 10826c 10a6b7: 8b 75 e0 mov -0x20(%ebp),%esi 10a6ba: 89 46 7c mov %eax,0x7c(%esi) if (tty->rawOutBuf.theBuf == NULL) { 10a6bd: 83 c4 10 add $0x10,%esp 10a6c0: 85 c0 test %eax,%eax 10a6c2: 8b 55 dc mov -0x24(%ebp),%edx 10a6c5: 0f 84 58 02 00 00 je 10a923 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 10a6cb: 83 ec 0c sub $0xc,%esp 10a6ce: ff 35 08 30 12 00 pushl 0x123008 10a6d4: 89 55 dc mov %edx,-0x24(%ebp) 10a6d7: e8 90 db ff ff call 10826c 10a6dc: 8b 4d e0 mov -0x20(%ebp),%ecx 10a6df: 89 41 1c mov %eax,0x1c(%ecx) if (tty->cbuf == NULL) { 10a6e2: 83 c4 10 add $0x10,%esp 10a6e5: 85 c0 test %eax,%eax 10a6e7: 8b 55 dc mov -0x24(%ebp),%edx 10a6ea: 0f 84 7d 02 00 00 je 10a96d return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 10a6f0: 8b 45 e0 mov -0x20(%ebp),%eax 10a6f3: c7 80 d4 00 00 00 00 movl $0x0,0xd4(%eax) 10a6fa: 00 00 00 tty->tty_snd.sw_arg = NULL; 10a6fd: c7 80 d8 00 00 00 00 movl $0x0,0xd8(%eax) 10a704: 00 00 00 tty->tty_rcv.sw_pfn = NULL; 10a707: c7 80 dc 00 00 00 00 movl $0x0,0xdc(%eax) 10a70e: 00 00 00 tty->tty_rcv.sw_arg = NULL; 10a711: c7 80 e0 00 00 00 00 movl $0x0,0xe0(%eax) 10a718: 00 00 00 tty->tty_rcvwakeup = 0; 10a71b: c7 80 e4 00 00 00 00 movl $0x0,0xe4(%eax) 10a722: 00 00 00 /* * link tty */ tty->forw = rtems_termios_ttyHead; 10a725: a1 20 52 12 00 mov 0x125220,%eax 10a72a: 8b 4d e0 mov -0x20(%ebp),%ecx 10a72d: 89 01 mov %eax,(%ecx) tty->back = NULL; 10a72f: c7 41 04 00 00 00 00 movl $0x0,0x4(%ecx) if (rtems_termios_ttyHead != NULL) 10a736: 85 c0 test %eax,%eax 10a738: 74 03 je 10a73d rtems_termios_ttyHead->back = tty; 10a73a: 89 48 04 mov %ecx,0x4(%eax) rtems_termios_ttyHead = tty; 10a73d: 8b 75 e0 mov -0x20(%ebp),%esi 10a740: 89 35 20 52 12 00 mov %esi,0x125220 if (rtems_termios_ttyTail == NULL) 10a746: 8b 3d 1c 52 12 00 mov 0x12521c,%edi 10a74c: 85 ff test %edi,%edi 10a74e: 0f 84 ac 02 00 00 je 10aa00 rtems_termios_ttyTail = tty; tty->minor = minor; 10a754: 8b 4d 0c mov 0xc(%ebp),%ecx 10a757: 8b 45 e0 mov -0x20(%ebp),%eax 10a75a: 89 48 10 mov %ecx,0x10(%eax) tty->major = major; 10a75d: 89 50 0c mov %edx,0xc(%eax) /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 10a760: 83 ec 0c sub $0xc,%esp 10a763: 83 c0 14 add $0x14,%eax 10a766: 50 push %eax 10a767: 6a 00 push $0x0 10a769: 6a 54 push $0x54 10a76b: 6a 01 push $0x1 10a76d: 0f be 05 14 30 12 00 movsbl 0x123014,%eax 10a774: 0d 00 69 52 54 or $0x54526900,%eax 10a779: 50 push %eax 10a77a: 89 55 dc mov %edx,-0x24(%ebp) 10a77d: e8 a6 0b 00 00 call 10b328 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) 10a782: 83 c4 20 add $0x20,%esp 10a785: 85 c0 test %eax,%eax 10a787: 8b 55 dc mov -0x24(%ebp),%edx 10a78a: 0f 85 d4 01 00 00 jne 10a964 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 10a790: 83 ec 0c sub $0xc,%esp 10a793: 8b 45 e0 mov -0x20(%ebp),%eax 10a796: 83 c0 18 add $0x18,%eax 10a799: 50 push %eax 10a79a: 6a 00 push $0x0 10a79c: 6a 54 push $0x54 10a79e: 6a 01 push $0x1 10a7a0: 0f be 05 14 30 12 00 movsbl 0x123014,%eax 10a7a7: 0d 00 6f 52 54 or $0x54526f00,%eax 10a7ac: 50 push %eax 10a7ad: 89 55 dc mov %edx,-0x24(%ebp) 10a7b0: e8 73 0b 00 00 call 10b328 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) 10a7b5: 83 c4 20 add $0x20,%esp 10a7b8: 85 c0 test %eax,%eax 10a7ba: 8b 55 dc mov -0x24(%ebp),%edx 10a7bd: 0f 85 a1 01 00 00 jne 10a964 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 10a7c3: 83 ec 0c sub $0xc,%esp 10a7c6: 8b 45 e0 mov -0x20(%ebp),%eax 10a7c9: 05 8c 00 00 00 add $0x8c,%eax 10a7ce: 50 push %eax 10a7cf: 6a 00 push $0x0 10a7d1: 6a 20 push $0x20 10a7d3: 6a 00 push $0x0 10a7d5: 0f be 05 14 30 12 00 movsbl 0x123014,%eax 10a7dc: 0d 00 78 52 54 or $0x54527800,%eax 10a7e1: 50 push %eax 10a7e2: 89 55 dc mov %edx,-0x24(%ebp) 10a7e5: e8 3e 0b 00 00 call 10b328 rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 10a7ea: 83 c4 20 add $0x20,%esp 10a7ed: 85 c0 test %eax,%eax 10a7ef: 8b 55 dc mov -0x24(%ebp),%edx 10a7f2: 0f 85 6c 01 00 00 jne 10a964 rtems_fatal_error_occurred (sc); tty->rawOutBufState = rob_idle; 10a7f8: 8b 75 e0 mov -0x20(%ebp),%esi 10a7fb: c7 86 94 00 00 00 00 movl $0x0,0x94(%esi) 10a802: 00 00 00 /* * Set callbacks */ tty->device = *callbacks; 10a805: 89 f7 mov %esi,%edi 10a807: 81 c7 98 00 00 00 add $0x98,%edi 10a80d: b9 08 00 00 00 mov $0x8,%ecx 10a812: 8b 75 14 mov 0x14(%ebp),%esi 10a815: f3 a5 rep movsl %ds:(%esi),%es:(%edi) /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 10a817: 8b 45 e0 mov -0x20(%ebp),%eax 10a81a: 83 b8 b4 00 00 00 02 cmpl $0x2,0xb4(%eax) 10a821: 0f 84 63 01 00 00 je 10a98a &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 10a827: 8b 4d e0 mov -0x20(%ebp),%ecx 10a82a: 8b b9 a0 00 00 00 mov 0xa0(%ecx),%edi 10a830: 85 ff test %edi,%edi 10a832: 0f 84 f9 00 00 00 je 10a931 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ 10a838: 83 b9 b4 00 00 00 02 cmpl $0x2,0xb4(%ecx) 10a83f: 0f 84 ec 00 00 00 je 10a931 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 10a845: 8b 75 e0 mov -0x20(%ebp),%esi 10a848: c7 46 30 02 25 00 00 movl $0x2502,0x30(%esi) tty->termios.c_oflag = OPOST | ONLCR | XTABS; 10a84f: c7 46 34 05 18 00 00 movl $0x1805,0x34(%esi) tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 10a856: c7 46 38 bd 08 00 00 movl $0x8bd,0x38(%esi) tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 10a85d: c7 46 3c 3b 82 00 00 movl $0x823b,0x3c(%esi) tty->termios.c_cc[VINTR] = '\003'; 10a864: c6 46 41 03 movb $0x3,0x41(%esi) tty->termios.c_cc[VQUIT] = '\034'; 10a868: c6 46 42 1c movb $0x1c,0x42(%esi) tty->termios.c_cc[VERASE] = '\177'; 10a86c: c6 46 43 7f movb $0x7f,0x43(%esi) tty->termios.c_cc[VKILL] = '\025'; 10a870: c6 46 44 15 movb $0x15,0x44(%esi) tty->termios.c_cc[VEOF] = '\004'; 10a874: c6 46 45 04 movb $0x4,0x45(%esi) tty->termios.c_cc[VEOL] = '\000'; 10a878: c6 46 4c 00 movb $0x0,0x4c(%esi) tty->termios.c_cc[VEOL2] = '\000'; 10a87c: c6 46 51 00 movb $0x0,0x51(%esi) tty->termios.c_cc[VSTART] = '\021'; 10a880: c6 46 49 11 movb $0x11,0x49(%esi) tty->termios.c_cc[VSTOP] = '\023'; 10a884: c6 46 4a 13 movb $0x13,0x4a(%esi) tty->termios.c_cc[VSUSP] = '\032'; 10a888: c6 46 4b 1a movb $0x1a,0x4b(%esi) tty->termios.c_cc[VREPRINT] = '\022'; 10a88c: c6 46 4d 12 movb $0x12,0x4d(%esi) tty->termios.c_cc[VDISCARD] = '\017'; 10a890: c6 46 4e 0f movb $0xf,0x4e(%esi) tty->termios.c_cc[VWERASE] = '\027'; 10a894: c6 46 4f 17 movb $0x17,0x4f(%esi) tty->termios.c_cc[VLNEXT] = '\026'; 10a898: c6 46 50 16 movb $0x16,0x50(%esi) /* start with no flow control, clear flow control flags */ tty->flow_ctrl = 0; 10a89c: c7 86 b8 00 00 00 00 movl $0x0,0xb8(%esi) 10a8a3: 00 00 00 /* * set low/highwater mark for XON/XOFF support */ tty->lowwater = tty->rawInBuf.Size * 1/2; 10a8a6: 8b 46 64 mov 0x64(%esi),%eax 10a8a9: d1 e8 shr %eax 10a8ab: 89 86 bc 00 00 00 mov %eax,0xbc(%esi) tty->highwater = tty->rawInBuf.Size * 3/4; 10a8b1: 8b 46 64 mov 0x64(%esi),%eax 10a8b4: 8d 04 40 lea (%eax,%eax,2),%eax 10a8b7: c1 e8 02 shr $0x2,%eax 10a8ba: 89 86 c0 00 00 00 mov %eax,0xc0(%esi) /* * Bump name characer */ if (c++ == 'z') 10a8c0: a0 14 30 12 00 mov 0x123014,%al 10a8c5: 8d 48 01 lea 0x1(%eax),%ecx 10a8c8: 88 0d 14 30 12 00 mov %cl,0x123014 10a8ce: 3c 7a cmp $0x7a,%al 10a8d0: 0f 85 e2 fc ff ff jne 10a5b8 c = 'a'; 10a8d6: c6 05 14 30 12 00 61 movb $0x61,0x123014 <== NOT EXECUTED 10a8dd: e9 d6 fc ff ff jmp 10a5b8 <== NOT EXECUTED /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); if (tty == NULL) { rtems_semaphore_release (rtems_termios_ttyMutex); 10a8e2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a8e5: ff 35 18 52 12 00 pushl 0x125218 <== NOT EXECUTED 10a8eb: e8 ac 0d 00 00 call 10b69c <== NOT EXECUTED 10a8f0: c7 45 e4 1a 00 00 00 movl $0x1a,-0x1c(%ebp) <== NOT EXECUTED return RTEMS_NO_MEMORY; 10a8f7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a8fa: e9 ff fc ff ff jmp 10a5fe <== 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); 10a8ff: 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); 10a902: 56 push %esi <== NOT EXECUTED 10a903: e8 14 d7 ff ff call 10801c <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 10a908: 59 pop %ecx <== NOT EXECUTED 10a909: ff 35 18 52 12 00 pushl 0x125218 <== NOT EXECUTED 10a90f: e8 88 0d 00 00 call 10b69c <== NOT EXECUTED 10a914: c7 45 e4 1a 00 00 00 movl $0x1a,-0x1c(%ebp) <== NOT EXECUTED return RTEMS_NO_MEMORY; 10a91b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10a91e: e9 db fc ff ff jmp 10a5fe <== 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)); 10a923: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a926: ff 76 58 pushl 0x58(%esi) <== NOT EXECUTED 10a929: e8 ee d6 ff ff call 10801c <== NOT EXECUTED free(tty); 10a92e: 5b pop %ebx <== NOT EXECUTED 10a92f: eb d1 jmp 10a902 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( 10a931: 83 ec 0c sub $0xc,%esp 10a934: 8b 45 e0 mov -0x20(%ebp),%eax 10a937: 83 c0 68 add $0x68,%eax 10a93a: 50 push %eax 10a93b: 6a 00 push $0x0 10a93d: 6a 24 push $0x24 10a93f: 6a 00 push $0x0 10a941: 0f be 05 14 30 12 00 movsbl 0x123014,%eax 10a948: 0d 00 72 52 54 or $0x54527200,%eax 10a94d: 50 push %eax 10a94e: 89 55 dc mov %edx,-0x24(%ebp) 10a951: e8 d2 09 00 00 call 10b328 rtems_build_name ('T', 'R', 'r', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &tty->rawInBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 10a956: 83 c4 20 add $0x20,%esp 10a959: 85 c0 test %eax,%eax 10a95b: 8b 55 dc mov -0x24(%ebp),%edx 10a95e: 0f 84 e1 fe ff ff je 10a845 sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 10a964: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a967: 50 push %eax <== NOT EXECUTED 10a968: e8 6b 12 00 00 call 10bbd8 <== NOT EXECUTED /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); 10a96d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10a970: ff 71 7c pushl 0x7c(%ecx) <== NOT EXECUTED 10a973: e8 a4 d6 ff ff call 10801c <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 10a978: 5a pop %edx <== NOT EXECUTED 10a979: 8b 75 e0 mov -0x20(%ebp),%esi <== NOT EXECUTED 10a97c: ff 76 58 pushl 0x58(%esi) <== NOT EXECUTED 10a97f: e8 98 d6 ff ff call 10801c <== NOT EXECUTED free(tty); 10a984: 58 pop %eax <== NOT EXECUTED 10a985: e9 78 ff ff ff jmp 10a902 <== NOT EXECUTED /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_create ( 10a98a: 51 push %ecx <== NOT EXECUTED 10a98b: 51 push %ecx <== NOT EXECUTED 10a98c: 05 c8 00 00 00 add $0xc8,%eax <== NOT EXECUTED 10a991: 50 push %eax <== NOT EXECUTED 10a992: 6a 00 push $0x0 <== NOT EXECUTED 10a994: 68 00 05 00 00 push $0x500 <== NOT EXECUTED 10a999: 68 00 04 00 00 push $0x400 <== NOT EXECUTED 10a99e: 6a 0a push $0xa <== NOT EXECUTED 10a9a0: 0f be 05 14 30 12 00 movsbl 0x123014,%eax <== NOT EXECUTED 10a9a7: 0d 00 54 78 54 or $0x54785400,%eax <== NOT EXECUTED 10a9ac: 50 push %eax <== NOT EXECUTED 10a9ad: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED 10a9b0: e8 87 0d 00 00 call 10b73c <== 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) 10a9b5: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10a9b8: 85 c0 test %eax,%eax <== NOT EXECUTED 10a9ba: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED 10a9bd: 75 a5 jne 10a964 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 10a9bf: 50 push %eax <== NOT EXECUTED 10a9c0: 50 push %eax <== NOT EXECUTED 10a9c1: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10a9c4: 05 c4 00 00 00 add $0xc4,%eax <== NOT EXECUTED 10a9c9: 50 push %eax <== NOT EXECUTED 10a9ca: 6a 00 push $0x0 <== NOT EXECUTED 10a9cc: 68 00 05 00 00 push $0x500 <== NOT EXECUTED 10a9d1: 68 00 04 00 00 push $0x400 <== NOT EXECUTED 10a9d6: 6a 09 push $0x9 <== NOT EXECUTED 10a9d8: 0f be 05 14 30 12 00 movsbl 0x123014,%eax <== NOT EXECUTED 10a9df: 0d 00 54 78 52 or $0x52785400,%eax <== NOT EXECUTED 10a9e4: 50 push %eax <== NOT EXECUTED 10a9e5: 89 55 dc mov %edx,-0x24(%ebp) <== NOT EXECUTED 10a9e8: e8 4f 0d 00 00 call 10b73c <== 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) 10a9ed: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 10a9f0: 85 c0 test %eax,%eax <== NOT EXECUTED 10a9f2: 8b 55 dc mov -0x24(%ebp),%edx <== NOT EXECUTED 10a9f5: 0f 84 2c fe ff ff je 10a827 <== NOT EXECUTED 10a9fb: e9 64 ff ff ff jmp 10a964 <== 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; 10aa00: 89 35 1c 52 12 00 mov %esi,0x12521c 10aa06: e9 49 fd ff ff jmp 10a754 001094d0 : * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 1094d0: 55 push %ebp 1094d1: 89 e5 mov %esp,%ebp 1094d3: 57 push %edi 1094d4: 56 push %esi 1094d5: 53 push %ebx 1094d6: 83 ec 1c sub $0x1c,%esp 1094d9: 8b 45 08 mov 0x8(%ebp),%eax 1094dc: 8b 55 0c mov 0xc(%ebp),%edx 1094df: 89 55 e4 mov %edx,-0x1c(%ebp) 1094e2: 8b 5d 10 mov 0x10(%ebp),%ebx const unsigned char *buf = _buf; 1094e5: 89 c6 mov %eax,%esi unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 1094e7: 8b bb b4 00 00 00 mov 0xb4(%ebx),%edi 1094ed: 85 ff test %edi,%edi 1094ef: 0f 84 eb 00 00 00 je 1095e0 (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; 1094f5: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax 1094fb: 89 45 e0 mov %eax,-0x20(%ebp) while (len) { 1094fe: 8b 4d e4 mov -0x1c(%ebp),%ecx 109501: 85 c9 test %ecx,%ecx 109503: 0f 84 cf 00 00 00 je 1095d8 109509: 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; 10950c: 8b 45 e0 mov -0x20(%ebp),%eax 10950f: 40 inc %eax 109510: 8b 8b 88 00 00 00 mov 0x88(%ebx),%ecx 109516: 31 d2 xor %edx,%edx 109518: f7 f1 div %ecx 10951a: 89 55 dc mov %edx,-0x24(%ebp) 10951d: 89 55 e0 mov %edx,-0x20(%ebp) rtems_interrupt_disable (level); 109520: 9c pushf 109521: fa cli 109522: 5f pop %edi while (newHead == tty->rawOutBuf.Tail) { 109523: 8b 93 84 00 00 00 mov 0x84(%ebx),%edx 109529: 3b 55 e0 cmp -0x20(%ebp),%edx 10952c: 75 3e jne 10956c 10952e: 89 f8 mov %edi,%eax 109530: 89 f7 mov %esi,%edi 109532: 89 d6 mov %edx,%esi tty->rawOutBufState = rob_wait; 109534: c7 83 94 00 00 00 02 movl $0x2,0x94(%ebx) 10953b: 00 00 00 rtems_interrupt_enable (level); 10953e: 50 push %eax 10953f: 9d popf sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 109540: 52 push %edx 109541: 6a 00 push $0x0 109543: 6a 00 push $0x0 109545: ff b3 8c 00 00 00 pushl 0x8c(%ebx) 10954b: e8 50 20 00 00 call 10b5a0 RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 109550: 83 c4 10 add $0x10,%esp 109553: 85 c0 test %eax,%eax 109555: 0f 85 a0 00 00 00 jne 1095fb rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); 10955b: 9c pushf 10955c: fa cli 10955d: 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) { 10955e: 8b 93 84 00 00 00 mov 0x84(%ebx),%edx 109564: 39 f2 cmp %esi,%edx 109566: 74 cc je 109534 109568: 89 fe mov %edi,%esi 10956a: 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++; 10956c: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax 109572: 8b 4b 7c mov 0x7c(%ebx),%ecx 109575: 8a 16 mov (%esi),%dl 109577: 88 14 01 mov %dl,(%ecx,%eax,1) tty->rawOutBuf.Head = newHead; 10957a: 8b 45 dc mov -0x24(%ebp),%eax 10957d: 89 83 80 00 00 00 mov %eax,0x80(%ebx) if (tty->rawOutBufState == rob_idle) { 109583: 8b 83 94 00 00 00 mov 0x94(%ebx),%eax 109589: 85 c0 test %eax,%eax 10958b: 75 23 jne 1095b0 /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 10958d: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 109593: a8 10 test $0x10,%al 109595: 74 26 je 1095bd (*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; 109597: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 10959d: 83 c8 20 or $0x20,%eax <== NOT EXECUTED 1095a0: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED } tty->rawOutBufState = rob_busy; 1095a6: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx) 1095ad: 00 00 00 } rtems_interrupt_enable (level); 1095b0: 57 push %edi 1095b1: 9d popf if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 1095b2: ff 4d e4 decl -0x1c(%ebp) 1095b5: 74 21 je 1095d8 RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; 1095b7: 46 inc %esi 1095b8: e9 4f ff ff ff jmp 10950c 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); 1095bd: 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, 1095c3: 51 push %ecx 1095c4: 6a 01 push $0x1 1095c6: 03 43 7c add 0x7c(%ebx),%eax 1095c9: 50 push %eax 1095ca: ff 73 10 pushl 0x10(%ebx) 1095cd: ff 93 a4 00 00 00 call *0xa4(%ebx) 1095d3: 83 c4 10 add $0x10,%esp 1095d6: eb ce jmp 1095a6 tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } 1095d8: 8d 65 f4 lea -0xc(%ebp),%esp 1095db: 5b pop %ebx 1095dc: 5e pop %esi 1095dd: 5f pop %edi 1095de: c9 leave 1095df: 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); 1095e0: 89 55 10 mov %edx,0x10(%ebp) <== NOT EXECUTED 1095e3: 89 45 0c mov %eax,0xc(%ebp) <== NOT EXECUTED 1095e6: 8b 43 10 mov 0x10(%ebx),%eax <== NOT EXECUTED 1095e9: 89 45 08 mov %eax,0x8(%ebp) <== NOT EXECUTED 1095ec: 8b 83 a4 00 00 00 mov 0xa4(%ebx),%eax <== NOT EXECUTED tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; } } 1095f2: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1095f5: 5b pop %ebx <== NOT EXECUTED 1095f6: 5e pop %esi <== NOT EXECUTED 1095f7: 5f pop %edi <== NOT EXECUTED 1095f8: 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); 1095f9: 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); 1095fb: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1095fe: 50 push %eax <== NOT EXECUTED 1095ff: e8 d4 25 00 00 call 10bbd8 <== NOT EXECUTED 00109c3c : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 109c3c: 55 push %ebp <== NOT EXECUTED 109c3d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 109c3f: 57 push %edi <== NOT EXECUTED 109c40: 56 push %esi <== NOT EXECUTED 109c41: 53 push %ebx <== NOT EXECUTED 109c42: 83 ec 30 sub $0x30,%esp <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 109c45: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 109c48: 8b 02 mov (%edx),%eax <== NOT EXECUTED 109c4a: 8b 58 34 mov 0x34(%eax),%ebx <== NOT EXECUTED uint32_t count = args->count; 109c4d: 8b 4a 10 mov 0x10(%edx),%ecx <== NOT EXECUTED 109c50: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED char *buffer = args->buffer; 109c53: 8b 42 0c mov 0xc(%edx),%eax <== NOT EXECUTED 109c56: 89 45 d8 mov %eax,-0x28(%ebp) <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 109c59: 6a 00 push $0x0 <== NOT EXECUTED 109c5b: 6a 00 push $0x0 <== NOT EXECUTED 109c5d: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED 109c60: e8 3b 19 00 00 call 10b5a0 <== NOT EXECUTED 109c65: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 109c68: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109c6b: 85 c0 test %eax,%eax <== NOT EXECUTED 109c6d: 75 35 jne 109ca4 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 109c6f: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED 109c75: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 109c78: 8b 80 88 4e 12 00 mov 0x124e88(%eax),%eax <== NOT EXECUTED 109c7e: 85 c0 test %eax,%eax <== NOT EXECUTED 109c80: 74 2e je 109cb0 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 109c82: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 109c85: ff 75 08 pushl 0x8(%ebp) <== NOT EXECUTED 109c88: 53 push %ebx <== NOT EXECUTED 109c89: ff d0 call *%eax <== NOT EXECUTED 109c8b: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED tty->tty_rcvwakeup = 0; 109c8e: c7 83 e4 00 00 00 00 movl $0x0,0xe4(%ebx) <== NOT EXECUTED 109c95: 00 00 00 <== NOT EXECUTED rtems_semaphore_release (tty->isem); 109c98: 59 pop %ecx <== NOT EXECUTED 109c99: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED 109c9c: e8 fb 19 00 00 call 10b69c <== NOT EXECUTED return sc; 109ca1: 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; } 109ca4: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 109ca7: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109caa: 5b pop %ebx <== NOT EXECUTED 109cab: 5e pop %esi <== NOT EXECUTED 109cac: 5f pop %edi <== NOT EXECUTED 109cad: c9 leave <== NOT EXECUTED 109cae: c3 ret <== NOT EXECUTED 109caf: 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) { 109cb0: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED 109cb3: 3b 43 20 cmp 0x20(%ebx),%eax <== NOT EXECUTED 109cb6: 74 5f je 109d17 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 109cb8: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED 109cbb: 85 c9 test %ecx,%ecx <== NOT EXECUTED 109cbd: 74 29 je 109ce8 <== NOT EXECUTED 109cbf: 8b 43 24 mov 0x24(%ebx),%eax <== NOT EXECUTED 109cc2: 3b 43 20 cmp 0x20(%ebx),%eax <== NOT EXECUTED 109cc5: 7d 21 jge 109ce8 <== NOT EXECUTED 109cc7: 8b 55 d8 mov -0x28(%ebp),%edx <== NOT EXECUTED 109cca: 8b 7d dc mov -0x24(%ebp),%edi <== NOT EXECUTED 109ccd: eb 06 jmp 109cd5 <== NOT EXECUTED 109ccf: 90 nop <== NOT EXECUTED 109cd0: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED 109cd3: 7e 10 jle 109ce5 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 109cd5: 8b 73 1c mov 0x1c(%ebx),%esi <== NOT EXECUTED 109cd8: 8a 0c 06 mov (%esi,%eax,1),%cl <== NOT EXECUTED 109cdb: 88 0a mov %cl,(%edx) <== NOT EXECUTED 109cdd: 42 inc %edx <== NOT EXECUTED 109cde: 40 inc %eax <== NOT EXECUTED 109cdf: 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)) { 109ce2: 4f dec %edi <== NOT EXECUTED 109ce3: 75 eb jne 109cd0 <== NOT EXECUTED 109ce5: 89 7d dc mov %edi,-0x24(%ebp) <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 109ce8: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 109ceb: 8b 42 10 mov 0x10(%edx),%eax <== NOT EXECUTED 109cee: 2b 45 dc sub -0x24(%ebp),%eax <== NOT EXECUTED 109cf1: 89 42 18 mov %eax,0x18(%edx) <== NOT EXECUTED tty->tty_rcvwakeup = 0; 109cf4: c7 83 e4 00 00 00 00 movl $0x0,0xe4(%ebx) <== NOT EXECUTED 109cfb: 00 00 00 <== NOT EXECUTED rtems_semaphore_release (tty->isem); 109cfe: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109d01: ff 73 14 pushl 0x14(%ebx) <== NOT EXECUTED 109d04: e8 93 19 00 00 call 10b69c <== NOT EXECUTED return sc; 109d09: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 109d0c: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 109d0f: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109d12: 5b pop %ebx <== NOT EXECUTED 109d13: 5e pop %esi <== NOT EXECUTED 109d14: 5f pop %edi <== NOT EXECUTED 109d15: c9 leave <== NOT EXECUTED 109d16: 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; 109d17: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx) <== NOT EXECUTED 109d1e: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) <== NOT EXECUTED tty->read_start_column = tty->column; 109d25: 8b 43 28 mov 0x28(%ebx),%eax <== NOT EXECUTED 109d28: 89 43 2c mov %eax,0x2c(%ebx) <== NOT EXECUTED if (tty->device.pollRead != NULL && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 109d2b: 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 109d31: 85 c0 test %eax,%eax <== NOT EXECUTED 109d33: 74 0e je 109d43 <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 109d35: 8b 93 b4 00 00 00 mov 0xb4(%ebx),%edx <== NOT EXECUTED 109d3b: 85 d2 test %edx,%edx <== NOT EXECUTED 109d3d: 0f 84 72 01 00 00 je 109eb5 <== 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; 109d43: 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, 109d46: 8d 53 49 lea 0x49(%ebx),%edx <== NOT EXECUTED 109d49: 89 55 d4 mov %edx,-0x2c(%ebp) <== NOT EXECUTED 109d4c: c7 45 e4 01 00 00 00 movl $0x1,-0x1c(%ebp) <== NOT EXECUTED 109d53: 90 nop <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 109d54: 8b 53 5c mov 0x5c(%ebx),%edx <== NOT EXECUTED 109d57: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 109d5a: 39 c2 cmp %eax,%edx <== NOT EXECUTED 109d5c: 75 2c jne 109d8a <== NOT EXECUTED 109d5e: e9 f5 00 00 00 jmp 109e58 <== NOT EXECUTED 109d63: 90 nop <== NOT EXECUTED } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty)) 109d64: 0f b6 c1 movzbl %cl,%eax <== NOT EXECUTED 109d67: 89 da mov %ebx,%edx <== NOT EXECUTED 109d69: e8 3e fd ff ff call 109aac <== NOT EXECUTED 109d6e: 85 c0 test %eax,%eax <== NOT EXECUTED 109d70: 74 07 je 109d79 <== NOT EXECUTED wait = 0; } else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) 109d72: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 109d79: 8b 73 70 mov 0x70(%ebx),%esi <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 109d7c: 8b 53 5c mov 0x5c(%ebx),%edx <== NOT EXECUTED 109d7f: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 109d82: 39 c2 cmp %eax,%edx <== NOT EXECUTED 109d84: 0f 84 ce 00 00 00 je 109e58 <== NOT EXECUTED 109d8a: a1 08 30 12 00 mov 0x123008,%eax <== NOT EXECUTED 109d8f: 48 dec %eax <== NOT EXECUTED 109d90: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED 109d93: 0f 8d bf 00 00 00 jge 109e58 <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 109d99: 8b 43 5c mov 0x5c(%ebx),%eax <== NOT EXECUTED 109d9c: 8b 4b 64 mov 0x64(%ebx),%ecx <== NOT EXECUTED 109d9f: 40 inc %eax <== NOT EXECUTED 109da0: 31 d2 xor %edx,%edx <== NOT EXECUTED 109da2: f7 f1 div %ecx <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 109da4: 8b 43 58 mov 0x58(%ebx),%eax <== NOT EXECUTED 109da7: 8a 0c 10 mov (%eax,%edx,1),%cl <== NOT EXECUTED tty->rawInBuf.Head = newHead; 109daa: 89 53 5c mov %edx,0x5c(%ebx) <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 109dad: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 109db0: 8b 7b 64 mov 0x64(%ebx),%edi <== NOT EXECUTED 109db3: 8b 73 64 mov 0x64(%ebx),%esi <== NOT EXECUTED 109db6: 8d 04 07 lea (%edi,%eax,1),%eax <== NOT EXECUTED 109db9: 29 d0 sub %edx,%eax <== NOT EXECUTED 109dbb: 31 d2 xor %edx,%edx <== NOT EXECUTED 109dbd: f7 f6 div %esi <== NOT EXECUTED 109dbf: 3b 93 bc 00 00 00 cmp 0xbc(%ebx),%edx <== NOT EXECUTED 109dc5: 73 5d jae 109e24 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 109dc7: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109dcd: 83 e0 fe and $0xfffffffe,%eax <== NOT EXECUTED 109dd0: 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)) 109dd6: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109ddc: 25 02 02 00 00 and $0x202,%eax <== NOT EXECUTED 109de1: 3d 02 02 00 00 cmp $0x202,%eax <== NOT EXECUTED 109de6: 0f 84 94 00 00 00 je 109e80 <== 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) { 109dec: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109df2: f6 c4 01 test $0x1,%ah <== NOT EXECUTED 109df5: 74 2d je 109e24 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 109df7: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109dfd: 83 e0 fb and $0xfffffffb,%eax <== NOT EXECUTED 109e00: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 109e06: 8b 83 b0 00 00 00 mov 0xb0(%ebx),%eax <== NOT EXECUTED 109e0c: 85 c0 test %eax,%eax <== NOT EXECUTED 109e0e: 74 14 je 109e24 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); 109e10: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109e13: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109e16: 88 4d d0 mov %cl,-0x30(%ebp) <== NOT EXECUTED 109e19: ff d0 call *%eax <== NOT EXECUTED 109e1b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109e1e: 8a 4d d0 mov -0x30(%ebp),%cl <== NOT EXECUTED 109e21: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 109e24: f6 43 3c 02 testb $0x2,0x3c(%ebx) <== NOT EXECUTED 109e28: 0f 85 36 ff ff ff jne 109d64 <== NOT EXECUTED if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); 109e2e: 0f b6 c1 movzbl %cl,%eax <== NOT EXECUTED 109e31: 89 da mov %ebx,%edx <== NOT EXECUTED 109e33: e8 74 fc ff ff call 109aac <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 109e38: 0f b6 43 47 movzbl 0x47(%ebx),%eax <== NOT EXECUTED 109e3c: 39 43 20 cmp %eax,0x20(%ebx) <== NOT EXECUTED 109e3f: 0f 8d 2d ff ff ff jge 109d72 <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 109e45: 8b 73 70 mov 0x70(%ebx),%esi <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 109e48: 8b 53 5c mov 0x5c(%ebx),%edx <== NOT EXECUTED 109e4b: 8b 43 60 mov 0x60(%ebx),%eax <== NOT EXECUTED 109e4e: 39 c2 cmp %eax,%edx <== NOT EXECUTED 109e50: 0f 85 34 ff ff ff jne 109d8a <== NOT EXECUTED 109e56: 66 90 xchg %ax,%ax <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 109e58: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 109e5b: 85 c0 test %eax,%eax <== NOT EXECUTED 109e5d: 0f 84 55 fe ff ff je 109cb8 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 109e63: 57 push %edi <== NOT EXECUTED 109e64: 56 push %esi <== NOT EXECUTED 109e65: ff 73 6c pushl 0x6c(%ebx) <== NOT EXECUTED 109e68: ff 73 68 pushl 0x68(%ebx) <== NOT EXECUTED 109e6b: e8 30 17 00 00 call 10b5a0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 109e70: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109e73: 85 c0 test %eax,%eax <== NOT EXECUTED 109e75: 0f 84 d9 fe ff ff je 109d54 <== NOT EXECUTED 109e7b: e9 38 fe ff ff jmp 109cb8 <== 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)) 109e80: 8b b3 94 00 00 00 mov 0x94(%ebx),%esi <== NOT EXECUTED 109e86: 85 f6 test %esi,%esi <== NOT EXECUTED 109e88: 74 0e je 109e98 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { 109e8a: 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)) 109e90: a8 20 test $0x20,%al <== NOT EXECUTED 109e92: 0f 84 54 ff ff ff je 109dec <== 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, 109e98: 52 push %edx <== NOT EXECUTED 109e99: 6a 01 push $0x1 <== NOT EXECUTED 109e9b: ff 75 d4 pushl -0x2c(%ebp) <== NOT EXECUTED 109e9e: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109ea1: 88 4d d0 mov %cl,-0x30(%ebp) <== NOT EXECUTED 109ea4: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED 109eaa: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109ead: 8a 4d d0 mov -0x30(%ebp),%cl <== NOT EXECUTED 109eb0: e9 6f ff ff ff jmp 109e24 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 109eb5: f6 43 3c 02 testb $0x2,0x3c(%ebx) <== NOT EXECUTED 109eb9: 75 1d jne 109ed8 <== NOT EXECUTED 109ebb: eb 39 jmp 109ef6 <== NOT EXECUTED 109ebd: 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)) 109ec0: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 109ec3: 89 da mov %ebx,%edx <== NOT EXECUTED 109ec5: e8 e2 fb ff ff call 109aac <== NOT EXECUTED 109eca: 85 c0 test %eax,%eax <== NOT EXECUTED 109ecc: 0f 85 e6 fd ff ff jne 109cb8 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 109ed2: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 109ed8: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109edb: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109ede: ff d0 call *%eax <== NOT EXECUTED if (n < 0) { 109ee0: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109ee3: 85 c0 test %eax,%eax <== NOT EXECUTED 109ee5: 79 d9 jns 109ec0 <== NOT EXECUTED rtems_task_wake_after (1); 109ee7: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109eea: 6a 01 push $0x1 <== NOT EXECUTED 109eec: e8 63 1b 00 00 call 10ba54 <== NOT EXECUTED 109ef1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109ef4: eb dc jmp 109ed2 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); 109ef6: e8 a9 0f 00 00 call 10aea4 <== NOT EXECUTED 109efb: 89 c6 mov %eax,%esi <== NOT EXECUTED 109efd: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 109f00: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109f03: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 109f06: ff 93 a0 00 00 00 call *0xa0(%ebx) <== NOT EXECUTED if (n < 0) { 109f0c: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109f0f: 85 c0 test %eax,%eax <== NOT EXECUTED 109f11: 78 25 js 109f38 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 109f13: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 109f16: 89 da mov %ebx,%edx <== NOT EXECUTED 109f18: e8 8f fb ff ff call 109aac <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 109f1d: 8a 43 47 mov 0x47(%ebx),%al <== NOT EXECUTED 109f20: 0f b6 d0 movzbl %al,%edx <== NOT EXECUTED 109f23: 39 53 20 cmp %edx,0x20(%ebx) <== NOT EXECUTED 109f26: 0f 8d 8c fd ff ff jge 109cb8 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 109f2c: 84 c0 test %al,%al <== NOT EXECUTED 109f2e: 74 d0 je 109f00 <== NOT EXECUTED 109f30: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED 109f34: 74 ca je 109f00 <== NOT EXECUTED 109f36: eb be jmp 109ef6 <== 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]) { 109f38: 80 7b 47 00 cmpb $0x0,0x47(%ebx) <== NOT EXECUTED 109f3c: 74 1d je 109f5b <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 109f3e: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED 109f42: 74 08 je 109f4c <== NOT EXECUTED 109f44: 8b 7b 20 mov 0x20(%ebx),%edi <== NOT EXECUTED 109f47: 85 ff test %edi,%edi <== NOT EXECUTED 109f49: 75 1a jne 109f65 <== NOT EXECUTED 109f4b: 90 nop <== NOT EXECUTED now = rtems_clock_get_ticks_since_boot(); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); 109f4c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109f4f: 6a 01 push $0x1 <== NOT EXECUTED 109f51: e8 fe 1a 00 00 call 10ba54 <== NOT EXECUTED 109f56: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109f59: eb a5 jmp 109f00 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 109f5b: 80 7b 46 00 cmpb $0x0,0x46(%ebx) <== NOT EXECUTED 109f5f: 0f 84 53 fd ff ff je 109cb8 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); 109f65: e8 3a 0f 00 00 call 10aea4 <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 109f6a: 29 f0 sub %esi,%eax <== NOT EXECUTED 109f6c: 3b 43 54 cmp 0x54(%ebx),%eax <== NOT EXECUTED 109f6f: 76 db jbe 109f4c <== NOT EXECUTED 109f71: e9 42 fd ff ff jmp 109cb8 <== NOT EXECUTED 00108f20 : * 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) { 108f20: 55 push %ebp 108f21: 89 e5 mov %esp,%ebp 108f23: 57 push %edi 108f24: 56 push %esi 108f25: 53 push %ebx 108f26: 83 ec 0c sub $0xc,%esp 108f29: 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)) 108f2c: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 108f32: 25 03 04 00 00 and $0x403,%eax 108f37: 3d 01 04 00 00 cmp $0x401,%eax 108f3c: 0f 84 86 01 00 00 je 1090c8 tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 108f42: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 108f48: 83 e0 03 and $0x3,%eax 108f4b: 83 f8 02 cmp $0x2,%eax 108f4e: 0f 84 b0 01 00 00 je 109104 rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 108f54: 8b 93 80 00 00 00 mov 0x80(%ebx),%edx 108f5a: 8b 83 84 00 00 00 mov 0x84(%ebx),%eax 108f60: 39 c2 cmp %eax,%edx 108f62: 0f 84 b0 00 00 00 je 109018 rtems_semaphore_release (tty->rawOutBuf.Semaphore); } return 0; } rtems_interrupt_disable(level); 108f68: 9c pushf 108f69: fa cli 108f6a: 58 pop %eax len = tty->t_dqlen; 108f6b: 8b 8b 90 00 00 00 mov 0x90(%ebx),%ecx tty->t_dqlen = 0; 108f71: c7 83 90 00 00 00 00 movl $0x0,0x90(%ebx) 108f78: 00 00 00 rtems_interrupt_enable(level); 108f7b: 50 push %eax 108f7c: 9d popf newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 108f7d: 8b 83 84 00 00 00 mov 0x84(%ebx),%eax 108f83: 8b bb 88 00 00 00 mov 0x88(%ebx),%edi 108f89: 8d 04 01 lea (%ecx,%eax,1),%eax 108f8c: 31 d2 xor %edx,%edx 108f8e: f7 f7 div %edi 108f90: 89 d6 mov %edx,%esi tty->rawOutBuf.Tail = newTail; 108f92: 89 93 84 00 00 00 mov %edx,0x84(%ebx) if (tty->rawOutBufState == rob_wait) { 108f98: 83 bb 94 00 00 00 02 cmpl $0x2,0x94(%ebx) 108f9f: 0f 84 e7 00 00 00 je 10908c /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); } if (newTail == tty->rawOutBuf.Head) { 108fa5: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax 108fab: 39 f0 cmp %esi,%eax 108fad: 0f 84 81 00 00 00 je 109034 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)) 108fb3: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 108fb9: 25 10 02 00 00 and $0x210,%eax 108fbe: 3d 10 02 00 00 cmp $0x210,%eax 108fc3: 0f 84 db 00 00 00 je 1090a4 } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 108fc9: 8b 83 80 00 00 00 mov 0x80(%ebx),%eax 108fcf: 39 c6 cmp %eax,%esi 108fd1: 0f 87 95 00 00 00 ja 10906c nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail; 108fd7: 8b bb 80 00 00 00 mov 0x80(%ebx),%edi 108fdd: 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)) { 108fdf: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 108fe5: f6 c4 06 test $0x6,%ah 108fe8: 0f 84 95 00 00 00 je 109083 108fee: b8 01 00 00 00 mov $0x1,%eax <== NOT EXECUTED 108ff3: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 108ff8: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx) 108fff: 00 00 00 (*tty->device.write)(tty->minor, 109002: 52 push %edx 109003: 50 push %eax 109004: 8b 43 7c mov 0x7c(%ebx),%eax 109007: 01 f0 add %esi,%eax 109009: 50 push %eax 10900a: ff 73 10 pushl 0x10(%ebx) 10900d: ff 93 a4 00 00 00 call *0xa4(%ebx) 109013: 83 c4 10 add $0x10,%esp 109016: eb 44 jmp 10905c else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 109018: 83 bb 94 00 00 00 02 cmpl $0x2,0x94(%ebx) <== NOT EXECUTED 10901f: 0f 84 1b 01 00 00 je 109140 <== NOT EXECUTED 109025: 31 ff xor %edi,%edi <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 109027: 89 f8 mov %edi,%eax <== NOT EXECUTED 109029: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10902c: 5b pop %ebx <== NOT EXECUTED 10902d: 5e pop %esi <== NOT EXECUTED 10902e: 5f pop %edi <== NOT EXECUTED 10902f: c9 leave <== NOT EXECUTED 109030: c3 ret <== NOT EXECUTED 109031: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 109034: c7 83 94 00 00 00 00 movl $0x0,0x94(%ebx) 10903b: 00 00 00 nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 10903e: 8b 83 d4 00 00 00 mov 0xd4(%ebx),%eax 109044: 85 c0 test %eax,%eax 109046: 74 7a je 1090c2 (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 109048: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10904b: ff b3 d8 00 00 00 pushl 0xd8(%ebx) <== NOT EXECUTED 109051: 8d 53 30 lea 0x30(%ebx),%edx <== NOT EXECUTED 109054: 52 push %edx <== NOT EXECUTED 109055: ff d0 call *%eax <== NOT EXECUTED 109057: 31 ff xor %edi,%edi <== NOT EXECUTED 109059: 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*/ 10905c: 89 b3 84 00 00 00 mov %esi,0x84(%ebx) } return nToSend; } 109062: 89 f8 mov %edi,%eax 109064: 8d 65 f4 lea -0xc(%ebp),%esp 109067: 5b pop %ebx 109068: 5e pop %esi 109069: 5f pop %edi 10906a: c9 leave 10906b: c3 ret else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; 10906c: 8b bb 88 00 00 00 mov 0x88(%ebx),%edi 109072: 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)) { 109074: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax 10907a: f6 c4 06 test $0x6,%ah 10907d: 0f 85 6b ff ff ff jne 108fee 109083: 89 f8 mov %edi,%eax 109085: e9 6e ff ff ff jmp 108ff8 10908a: 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); 10908c: 83 ec 0c sub $0xc,%esp 10908f: ff b3 8c 00 00 00 pushl 0x8c(%ebx) 109095: e8 02 26 00 00 call 10b69c 10909a: 83 c4 10 add $0x10,%esp 10909d: e9 03 ff ff ff jmp 108fa5 1090a2: 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); 1090a4: 9c pushf <== NOT EXECUTED 1090a5: fa cli <== NOT EXECUTED 1090a6: 5a pop %edx <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; 1090a7: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1090ad: 83 c8 20 or $0x20,%eax <== NOT EXECUTED 1090b0: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 1090b6: c7 83 94 00 00 00 01 movl $0x1,0x94(%ebx) <== NOT EXECUTED 1090bd: 00 00 00 <== NOT EXECUTED rtems_interrupt_enable(level); 1090c0: 52 push %edx <== NOT EXECUTED 1090c1: 9d popf <== NOT EXECUTED 1090c2: 31 ff xor %edi,%edi 1090c4: eb 96 jmp 10905c 1090c6: 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, 1090c8: 56 push %esi <== NOT EXECUTED 1090c9: 6a 01 push $0x1 <== NOT EXECUTED 1090cb: 8d 43 4a lea 0x4a(%ebx),%eax <== NOT EXECUTED 1090ce: 50 push %eax <== NOT EXECUTED 1090cf: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 1090d2: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); 1090d8: 9c pushf <== NOT EXECUTED 1090d9: fa cli <== NOT EXECUTED 1090da: 5a pop %edx <== NOT EXECUTED tty->t_dqlen--; 1090db: ff 8b 90 00 00 00 decl 0x90(%ebx) <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 1090e1: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 1090e7: 83 c8 02 or $0x2,%eax <== NOT EXECUTED 1090ea: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED rtems_interrupt_enable(level); 1090f0: 52 push %edx <== NOT EXECUTED 1090f1: 9d popf <== NOT EXECUTED 1090f2: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED 1090f7: 83 c4 10 add $0x10,%esp <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 1090fa: 89 f8 mov %edi,%eax <== NOT EXECUTED 1090fc: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1090ff: 5b pop %ebx <== NOT EXECUTED 109100: 5e pop %esi <== NOT EXECUTED 109101: 5f pop %edi <== NOT EXECUTED 109102: c9 leave <== NOT EXECUTED 109103: 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, 109104: 51 push %ecx <== NOT EXECUTED 109105: 6a 01 push $0x1 <== NOT EXECUTED 109107: 8d 43 49 lea 0x49(%ebx),%eax <== NOT EXECUTED 10910a: 50 push %eax <== NOT EXECUTED 10910b: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 10910e: ff 93 a4 00 00 00 call *0xa4(%ebx) <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); 109114: 9c pushf <== NOT EXECUTED 109115: fa cli <== NOT EXECUTED 109116: 5a pop %edx <== NOT EXECUTED tty->t_dqlen--; 109117: ff 8b 90 00 00 00 decl 0x90(%ebx) <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 10911d: 8b 83 b8 00 00 00 mov 0xb8(%ebx),%eax <== NOT EXECUTED 109123: 83 e0 fd and $0xfffffffd,%eax <== NOT EXECUTED 109126: 89 83 b8 00 00 00 mov %eax,0xb8(%ebx) <== NOT EXECUTED rtems_interrupt_enable(level); 10912c: 52 push %edx <== NOT EXECUTED 10912d: 9d popf <== NOT EXECUTED 10912e: bf 01 00 00 00 mov $0x1,%edi <== NOT EXECUTED 109133: 83 c4 10 add $0x10,%esp <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 109136: 89 f8 mov %edi,%eax <== NOT EXECUTED 109138: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10913b: 5b pop %ebx <== NOT EXECUTED 10913c: 5e pop %esi <== NOT EXECUTED 10913d: 5f pop %edi <== NOT EXECUTED 10913e: c9 leave <== NOT EXECUTED 10913f: c3 ret <== NOT EXECUTED */ if (tty->rawOutBufState == rob_wait) { /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 109140: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 109143: ff b3 8c 00 00 00 pushl 0x8c(%ebx) <== NOT EXECUTED 109149: e8 4e 25 00 00 call 10b69c <== NOT EXECUTED 10914e: 31 ff xor %edi,%edi <== NOT EXECUTED 109150: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109153: e9 cf fe ff ff jmp 109027 <== NOT EXECUTED 0010aa78 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 10aa78: 55 push %ebp <== NOT EXECUTED 10aa79: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10aa7b: 57 push %edi <== NOT EXECUTED 10aa7c: 56 push %esi <== NOT EXECUTED 10aa7d: 53 push %ebx <== NOT EXECUTED 10aa7e: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED 10aa81: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 10aa84: 8d 75 e0 lea -0x20(%ebp),%esi <== NOT EXECUTED 10aa87: 8d 7d e7 lea -0x19(%ebp),%edi <== NOT EXECUTED 10aa8a: 66 90 xchg %ax,%ax <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 10aa8c: 56 push %esi <== NOT EXECUTED 10aa8d: 6a 00 push $0x0 <== NOT EXECUTED 10aa8f: 6a 02 push $0x2 <== NOT EXECUTED 10aa91: 6a 03 push $0x3 <== NOT EXECUTED 10aa93: e8 74 04 00 00 call 10af0c <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 10aa98: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aa9b: f6 45 e0 01 testb $0x1,-0x20(%ebp) <== NOT EXECUTED 10aa9f: 75 27 jne 10aac8 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 10aaa1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10aaa4: ff 73 10 pushl 0x10(%ebx) <== NOT EXECUTED 10aaa7: ff 93 a0 00 00 00 call *0xa0(%ebx) <== NOT EXECUTED if (c != EOF) { 10aaad: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aab0: 83 f8 ff cmp $0xffffffff,%eax <== NOT EXECUTED 10aab3: 74 d7 je 10aa8c <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; 10aab5: 88 45 e7 mov %al,-0x19(%ebp) <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 10aab8: 50 push %eax <== NOT EXECUTED 10aab9: 6a 01 push $0x1 <== NOT EXECUTED 10aabb: 57 push %edi <== NOT EXECUTED 10aabc: 53 push %ebx <== NOT EXECUTED 10aabd: e8 fe e6 ff ff call 1091c0 <== NOT EXECUTED 10aac2: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aac5: eb c5 jmp 10aa8c <== NOT EXECUTED 10aac7: 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; 10aac8: c7 83 c4 00 00 00 00 movl $0x0,0xc4(%ebx) <== NOT EXECUTED 10aacf: 00 00 00 <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 10aad2: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10aad5: 6a 00 push $0x0 <== NOT EXECUTED 10aad7: e8 c0 0d 00 00 call 10b89c <== NOT EXECUTED 10aadc: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aadf: eb ab jmp 10aa8c <== NOT EXECUTED 00108f04 : * 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) { 108f04: 55 push %ebp <== NOT EXECUTED 108f05: 89 e5 mov %esp,%ebp <== NOT EXECUTED 108f07: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED /* * send event to rx daemon task */ rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT); 108f0a: 6a 02 push $0x2 <== NOT EXECUTED 108f0c: 8b 45 08 mov 0x8(%ebp),%eax <== NOT EXECUTED 108f0f: ff b0 c4 00 00 00 pushl 0xc4(%eax) <== NOT EXECUTED 108f15: e8 76 21 00 00 call 10b090 <== NOT EXECUTED 108f1a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 108f1d: c9 leave <== NOT EXECUTED 108f1e: c3 ret <== NOT EXECUTED 0010aa0c : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 10aa0c: 55 push %ebp <== NOT EXECUTED 10aa0d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10aa0f: 56 push %esi <== NOT EXECUTED 10aa10: 53 push %ebx <== NOT EXECUTED 10aa11: 83 ec 10 sub $0x10,%esp <== NOT EXECUTED 10aa14: 8b 5d 08 mov 0x8(%ebp),%ebx <== NOT EXECUTED 10aa17: 8d 75 f4 lea -0xc(%ebp),%esi <== NOT EXECUTED 10aa1a: 66 90 xchg %ax,%ax <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 10aa1c: 56 push %esi <== NOT EXECUTED 10aa1d: 6a 00 push $0x0 <== NOT EXECUTED 10aa1f: 6a 02 push $0x2 <== NOT EXECUTED 10aa21: 6a 03 push $0x3 <== NOT EXECUTED 10aa23: e8 e4 04 00 00 call 10af0c <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 10aa28: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aa2b: f6 45 f4 01 testb $0x1,-0xc(%ebp) <== NOT EXECUTED 10aa2f: 75 2b jne 10aa5c <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 10aa31: 8b 83 cc 00 00 00 mov 0xcc(%ebx),%eax <== NOT EXECUTED 10aa37: c1 e0 05 shl $0x5,%eax <== NOT EXECUTED 10aa3a: 8b 80 94 4e 12 00 mov 0x124e94(%eax),%eax <== NOT EXECUTED 10aa40: 85 c0 test %eax,%eax <== NOT EXECUTED 10aa42: 74 09 je 10aa4d <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 10aa44: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10aa47: 53 push %ebx <== NOT EXECUTED 10aa48: ff d0 call *%eax <== NOT EXECUTED 10aa4a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 10aa4d: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10aa50: 53 push %ebx <== NOT EXECUTED 10aa51: e8 ca e4 ff ff call 108f20 <== NOT EXECUTED 10aa56: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aa59: eb c1 jmp 10aa1c <== NOT EXECUTED 10aa5b: 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; 10aa5c: c7 83 c8 00 00 00 00 movl $0x0,0xc8(%ebx) <== NOT EXECUTED 10aa63: 00 00 00 <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 10aa66: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10aa69: 6a 00 push $0x0 <== NOT EXECUTED 10aa6b: e8 2c 0e 00 00 call 10b89c <== NOT EXECUTED 10aa70: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10aa73: eb a7 jmp 10aa1c <== NOT EXECUTED 00109b00 : rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 109b00: 55 push %ebp 109b01: 89 e5 mov %esp,%ebp 109b03: 57 push %edi 109b04: 56 push %esi 109b05: 53 push %ebx 109b06: 83 ec 20 sub $0x20,%esp 109b09: 8b 7d 08 mov 0x8(%ebp),%edi rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 109b0c: 8b 07 mov (%edi),%eax 109b0e: 8b 70 34 mov 0x34(%eax),%esi rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 109b11: 6a 00 push $0x0 109b13: 6a 00 push $0x0 109b15: ff 76 18 pushl 0x18(%esi) 109b18: e8 83 1a 00 00 call 10b5a0 109b1d: 89 45 e4 mov %eax,-0x1c(%ebp) if (sc != RTEMS_SUCCESSFUL) 109b20: 83 c4 10 add $0x10,%esp 109b23: 85 c0 test %eax,%eax 109b25: 75 29 jne 109b50 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 109b27: 8b 86 cc 00 00 00 mov 0xcc(%esi),%eax 109b2d: c1 e0 05 shl $0x5,%eax 109b30: 8b 80 8c 4e 12 00 mov 0x124e8c(%eax),%eax 109b36: 85 c0 test %eax,%eax 109b38: 74 22 je 109b5c sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 109b3a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 109b3d: 57 push %edi <== NOT EXECUTED 109b3e: 56 push %esi <== NOT EXECUTED 109b3f: ff d0 call *%eax <== NOT EXECUTED 109b41: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED rtems_semaphore_release (tty->osem); 109b44: 5f pop %edi <== NOT EXECUTED 109b45: ff 76 18 pushl 0x18(%esi) <== NOT EXECUTED 109b48: e8 4f 1b 00 00 call 10b69c <== NOT EXECUTED return sc; 109b4d: 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; } 109b50: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 109b53: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 109b56: 5b pop %ebx <== NOT EXECUTED 109b57: 5e pop %esi <== NOT EXECUTED 109b58: 5f pop %edi <== NOT EXECUTED 109b59: c9 leave <== NOT EXECUTED 109b5a: c3 ret <== NOT EXECUTED 109b5b: 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) { 109b5c: f6 46 34 01 testb $0x1,0x34(%esi) 109b60: 74 4e je 109bb0 uint32_t count = args->count; 109b62: 8b 47 10 mov 0x10(%edi),%eax 109b65: 89 45 e0 mov %eax,-0x20(%ebp) char *buffer = args->buffer; 109b68: 8b 47 0c mov 0xc(%edi),%eax while (count--) 109b6b: 8b 5d e0 mov -0x20(%ebp),%ebx 109b6e: 85 db test %ebx,%ebx 109b70: 74 56 je 109bc8 109b72: 31 db xor %ebx,%ebx 109b74: 89 7d dc mov %edi,-0x24(%ebp) 109b77: 89 c7 mov %eax,%edi 109b79: 8d 76 00 lea 0x0(%esi),%esi oproc (*buffer++, tty); 109b7c: 0f b6 04 1f movzbl (%edi,%ebx,1),%eax 109b80: 89 f2 mov %esi,%edx 109b82: e8 7d fa ff ff call 109604 109b87: 43 inc %ebx return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 109b88: 3b 5d e0 cmp -0x20(%ebp),%ebx 109b8b: 75 ef jne 109b7c 109b8d: 8b 7d dc mov -0x24(%ebp),%edi 109b90: 8b 47 10 mov 0x10(%edi),%eax oproc (*buffer++, tty); args->bytes_moved = args->count; 109b93: 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); 109b96: 83 ec 0c sub $0xc,%esp 109b99: ff 76 18 pushl 0x18(%esi) 109b9c: e8 fb 1a 00 00 call 10b69c return sc; 109ba1: 83 c4 10 add $0x10,%esp } 109ba4: 8b 45 e4 mov -0x1c(%ebp),%eax 109ba7: 8d 65 f4 lea -0xc(%ebp),%esp 109baa: 5b pop %ebx 109bab: 5e pop %esi 109bac: 5f pop %edi 109bad: c9 leave 109bae: c3 ret 109baf: 90 nop <== NOT EXECUTED while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 109bb0: 51 push %ecx <== NOT EXECUTED 109bb1: 56 push %esi <== NOT EXECUTED 109bb2: ff 77 10 pushl 0x10(%edi) <== NOT EXECUTED 109bb5: ff 77 0c pushl 0xc(%edi) <== NOT EXECUTED 109bb8: e8 13 f9 ff ff call 1094d0 <== NOT EXECUTED args->bytes_moved = args->count; 109bbd: 8b 47 10 mov 0x10(%edi),%eax <== NOT EXECUTED 109bc0: 89 47 18 mov %eax,0x18(%edi) <== NOT EXECUTED 109bc3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 109bc6: eb ce jmp 109b96 <== NOT EXECUTED return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 109bc8: 31 c0 xor %eax,%eax <== NOT EXECUTED 109bca: eb c7 jmp 109b93 <== NOT EXECUTED 001182e0 : rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) { 1182e0: 55 push %ebp 1182e1: 89 e5 mov %esp,%ebp 1182e3: 57 push %edi 1182e4: 56 push %esi 1182e5: 53 push %ebx 1182e6: 83 ec 0c sub $0xc,%esp 1182e9: 8b 5d 08 mov 0x8(%ebp),%ebx 1182ec: 8b 75 0c mov 0xc(%ebp),%esi Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) 1182ef: 85 db test %ebx,%ebx 1182f1: 74 6d je 118360 return RTEMS_INVALID_NAME; if ( !id ) 1182f3: 85 f6 test %esi,%esi 1182f5: 0f 84 89 00 00 00 je 118384 1182fb: a1 78 f7 13 00 mov 0x13f778,%eax 118300: 40 inc %eax 118301: a3 78 f7 13 00 mov %eax,0x13f778 * 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 ); 118306: 83 ec 0c sub $0xc,%esp 118309: 68 80 fa 13 00 push $0x13fa80 11830e: e8 65 23 00 00 call 11a678 <_Objects_Allocate> _Thread_Disable_dispatch(); /* to prevent deletion */ the_timer = _Timer_Allocate(); if ( !the_timer ) { 118313: 83 c4 10 add $0x10,%esp 118316: 85 c0 test %eax,%eax 118318: 74 56 je 118370 _Thread_Enable_dispatch(); return RTEMS_TOO_MANY; } the_timer->the_class = TIMER_DORMANT; 11831a: 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; 118321: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) the_watchdog->routine = routine; 118328: c7 40 2c 00 00 00 00 movl $0x0,0x2c(%eax) the_watchdog->id = id; 11832f: c7 40 30 00 00 00 00 movl $0x0,0x30(%eax) the_watchdog->user_data = user_data; 118336: 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; 11833d: 8b 50 08 mov 0x8(%eax),%edx 118340: 0f b7 fa movzwl %dx,%edi 118343: 8b 0d 9c fa 13 00 mov 0x13fa9c,%ecx 118349: 89 04 b9 mov %eax,(%ecx,%edi,4) information, _Objects_Get_index( the_object->id ), the_object ); the_object->name = name; 11834c: 89 58 0c mov %ebx,0xc(%eax) &_Timer_Information, &the_timer->Object, (Objects_Name) name ); *id = the_timer->Object.id; 11834f: 89 16 mov %edx,(%esi) _Thread_Enable_dispatch(); 118351: e8 be 30 00 00 call 11b414 <_Thread_Enable_dispatch> 118356: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; } 118358: 8d 65 f4 lea -0xc(%ebp),%esp 11835b: 5b pop %ebx 11835c: 5e pop %esi 11835d: 5f pop %edi 11835e: c9 leave 11835f: c3 ret rtems_id *id ) { Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) 118360: b8 03 00 00 00 mov $0x3,%eax ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 118365: 8d 65 f4 lea -0xc(%ebp),%esp 118368: 5b pop %ebx 118369: 5e pop %esi 11836a: 5f pop %edi 11836b: c9 leave 11836c: c3 ret 11836d: 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(); 118370: e8 9f 30 00 00 call 11b414 <_Thread_Enable_dispatch> 118375: b8 05 00 00 00 mov $0x5,%eax ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 11837a: 8d 65 f4 lea -0xc(%ebp),%esp 11837d: 5b pop %ebx 11837e: 5e pop %esi 11837f: 5f pop %edi 118380: c9 leave 118381: c3 ret 118382: 66 90 xchg %ax,%ax <== NOT EXECUTED Timer_Control *the_timer; if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; if ( !id ) 118384: b8 09 00 00 00 mov $0x9,%eax ); *id = the_timer->Object.id; _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; } 118389: 8d 65 f4 lea -0xc(%ebp),%esp 11838c: 5b pop %ebx 11838d: 5e pop %esi 11838e: 5f pop %edi 11838f: c9 leave 118390: c3 ret 00118394 : */ rtems_status_code rtems_timer_delete( rtems_id id ) { 118394: 55 push %ebp 118395: 89 e5 mov %esp,%ebp 118397: 53 push %ebx 118398: 83 ec 18 sub $0x18,%esp RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 11839b: 8d 45 f4 lea -0xc(%ebp),%eax 11839e: 50 push %eax 11839f: ff 75 08 pushl 0x8(%ebp) 1183a2: 68 80 fa 13 00 push $0x13fa80 1183a7: e8 b8 27 00 00 call 11ab64 <_Objects_Get> 1183ac: 89 c3 mov %eax,%ebx Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 1183ae: 83 c4 10 add $0x10,%esp 1183b1: 8b 4d f4 mov -0xc(%ebp),%ecx 1183b4: 85 c9 test %ecx,%ecx 1183b6: 75 38 jne 1183f0 case OBJECTS_LOCAL: _Objects_Close( &_Timer_Information, &the_timer->Object ); 1183b8: 83 ec 08 sub $0x8,%esp 1183bb: 50 push %eax 1183bc: 68 80 fa 13 00 push $0x13fa80 1183c1: e8 2e 23 00 00 call 11a6f4 <_Objects_Close> (void) _Watchdog_Remove( &the_timer->Ticker ); 1183c6: 8d 43 10 lea 0x10(%ebx),%eax 1183c9: 89 04 24 mov %eax,(%esp) 1183cc: e8 13 44 00 00 call 11c7e4 <_Watchdog_Remove> */ RTEMS_INLINE_ROUTINE void _Timer_Free ( Timer_Control *the_timer ) { _Objects_Free( &_Timer_Information, &the_timer->Object ); 1183d1: 58 pop %eax 1183d2: 5a pop %edx 1183d3: 53 push %ebx 1183d4: 68 80 fa 13 00 push $0x13fa80 1183d9: e8 1a 26 00 00 call 11a9f8 <_Objects_Free> _Timer_Free( the_timer ); _Thread_Enable_dispatch(); 1183de: e8 31 30 00 00 call 11b414 <_Thread_Enable_dispatch> 1183e3: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 1183e5: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1183e8: 8b 5d fc mov -0x4(%ebp),%ebx 1183eb: c9 leave 1183ec: c3 ret 1183ed: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; the_timer = _Timer_Get( id, &location ); switch ( location ) { 1183f0: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1183f5: 8b 5d fc mov -0x4(%ebp),%ebx 1183f8: c9 leave 1183f9: c3 ret 001183fc : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 1183fc: 55 push %ebp 1183fd: 89 e5 mov %esp,%ebp 1183ff: 57 push %edi 118400: 56 push %esi 118401: 53 push %ebx 118402: 83 ec 2c sub $0x2c,%esp 118405: 8b 5d 0c mov 0xc(%ebp),%ebx 118408: 8b 75 10 mov 0x10(%ebp),%esi Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 11840b: 85 db test %ebx,%ebx 11840d: 0f 84 99 00 00 00 je 1184ac return RTEMS_INVALID_NUMBER; if ( !routine ) 118413: 85 f6 test %esi,%esi 118415: 0f 84 b1 00 00 00 je 1184cc RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get ( Objects_Id id, Objects_Locations *location ) { return (Timer_Control *) 11841b: 57 push %edi 11841c: 8d 45 e4 lea -0x1c(%ebp),%eax 11841f: 50 push %eax 118420: ff 75 08 pushl 0x8(%ebp) 118423: 68 80 fa 13 00 push $0x13fa80 118428: e8 37 27 00 00 call 11ab64 <_Objects_Get> 11842d: 89 c7 mov %eax,%edi return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 11842f: 83 c4 10 add $0x10,%esp 118432: 8b 4d e4 mov -0x1c(%ebp),%ecx 118435: 85 c9 test %ecx,%ecx 118437: 74 0f je 118448 118439: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11843e: 8d 65 f4 lea -0xc(%ebp),%esp 118441: 5b pop %ebx 118442: 5e pop %esi 118443: 5f pop %edi 118444: c9 leave 118445: c3 ret 118446: 66 90 xchg %ax,%ax <== NOT EXECUTED the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 118448: 8d 50 10 lea 0x10(%eax),%edx 11844b: 83 ec 0c sub $0xc,%esp 11844e: 52 push %edx 11844f: 89 55 d4 mov %edx,-0x2c(%ebp) 118452: e8 8d 43 00 00 call 11c7e4 <_Watchdog_Remove> _ISR_Disable( level ); 118457: 9c pushf 118458: fa cli 118459: 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 ) { 11845a: 83 c4 10 add $0x10,%esp 11845d: 8b 57 18 mov 0x18(%edi),%edx 118460: 85 d2 test %edx,%edx 118462: 8b 55 d4 mov -0x2c(%ebp),%edx 118465: 75 55 jne 1184bc /* * 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; 118467: 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; 11846e: c7 47 18 00 00 00 00 movl $0x0,0x18(%edi) the_watchdog->routine = routine; 118475: 89 77 2c mov %esi,0x2c(%edi) the_watchdog->id = id; 118478: 8b 4d 08 mov 0x8(%ebp),%ecx 11847b: 89 4f 30 mov %ecx,0x30(%edi) the_watchdog->user_data = user_data; 11847e: 8b 4d 14 mov 0x14(%ebp),%ecx 118481: 89 4f 34 mov %ecx,0x34(%edi) _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); _ISR_Enable( level ); 118484: 50 push %eax 118485: 9d popf Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 118486: 89 5f 1c mov %ebx,0x1c(%edi) _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog ); 118489: 83 ec 08 sub $0x8,%esp 11848c: 52 push %edx 11848d: 68 58 f8 13 00 push $0x13f858 118492: e8 15 42 00 00 call 11c6ac <_Watchdog_Insert> _Watchdog_Insert_ticks( &the_timer->Ticker, ticks ); _Thread_Enable_dispatch(); 118497: e8 78 2f 00 00 call 11b414 <_Thread_Enable_dispatch> 11849c: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 11849e: 83 c4 10 add $0x10,%esp case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1184a1: 8d 65 f4 lea -0xc(%ebp),%esp 1184a4: 5b pop %ebx 1184a5: 5e pop %esi 1184a6: 5f pop %edi 1184a7: c9 leave 1184a8: c3 ret 1184a9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED { Timer_Control *the_timer; Objects_Locations location; ISR_Level level; if ( ticks == 0 ) 1184ac: b8 0a 00 00 00 mov $0xa,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1184b1: 8d 65 f4 lea -0xc(%ebp),%esp 1184b4: 5b pop %ebx 1184b5: 5e pop %esi 1184b6: 5f pop %edi 1184b7: c9 leave 1184b8: c3 ret 1184b9: 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 ); 1184bc: 50 push %eax 1184bd: 9d popf _Thread_Enable_dispatch(); 1184be: e8 51 2f 00 00 call 11b414 <_Thread_Enable_dispatch> 1184c3: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 1184c5: e9 74 ff ff ff jmp 11843e 1184ca: 66 90 xchg %ax,%ax <== NOT EXECUTED ISR_Level level; if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; if ( !routine ) 1184cc: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1184d1: 8d 65 f4 lea -0xc(%ebp),%esp 1184d4: 5b pop %ebx 1184d5: 5e pop %esi 1184d6: 5f pop %edi 1184d7: c9 leave 1184d8: c3 ret 001184dc : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 1184dc: 55 push %ebp 1184dd: 89 e5 mov %esp,%ebp 1184df: 57 push %edi 1184e0: 56 push %esi 1184e1: 53 push %ebx 1184e2: 83 ec 2c sub $0x2c,%esp 1184e5: 8b 75 08 mov 0x8(%ebp),%esi 1184e8: 8b 7d 0c mov 0xc(%ebp),%edi 1184eb: 8b 5d 10 mov 0x10(%ebp),%ebx Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; if ( !_TOD_Is_set ) 1184ee: 80 3d 8c f7 13 00 00 cmpb $0x0,0x13f78c 1184f5: 75 0d jne 118504 1184f7: b8 0b 00 00 00 mov $0xb,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1184fc: 8d 65 f4 lea -0xc(%ebp),%esp 1184ff: 5b pop %ebx 118500: 5e pop %esi 118501: 5f pop %edi 118502: c9 leave 118503: c3 ret rtems_interval seconds; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) 118504: 83 ec 0c sub $0xc,%esp 118507: 57 push %edi 118508: e8 67 d4 ff ff call 115974 <_TOD_Validate> 11850d: 83 c4 10 add $0x10,%esp 118510: 84 c0 test %al,%al 118512: 74 1e je 118532 return RTEMS_INVALID_CLOCK; if ( !routine ) 118514: 85 db test %ebx,%ebx 118516: 0f 84 a4 00 00 00 je 1185c0 return RTEMS_INVALID_ADDRESS; seconds = _TOD_To_seconds( wall_time ); 11851c: 83 ec 0c sub $0xc,%esp 11851f: 57 push %edi 118520: e8 c3 d3 ff ff call 1158e8 <_TOD_To_seconds> 118525: 89 c7 mov %eax,%edi if ( seconds <= _TOD_Seconds_since_epoch() ) 118527: 83 c4 10 add $0x10,%esp 11852a: 3b 05 0c f8 13 00 cmp 0x13f80c,%eax 118530: 77 0e ja 118540 _Watchdog_Insert_seconds( &the_timer->Ticker, seconds - _TOD_Seconds_since_epoch() ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 118532: b8 14 00 00 00 mov $0x14,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 118537: 8d 65 f4 lea -0xc(%ebp),%esp 11853a: 5b pop %ebx 11853b: 5e pop %esi 11853c: 5f pop %edi 11853d: c9 leave 11853e: c3 ret 11853f: 90 nop <== NOT EXECUTED 118540: 50 push %eax 118541: 8d 45 e4 lea -0x1c(%ebp),%eax 118544: 50 push %eax 118545: 56 push %esi 118546: 68 80 fa 13 00 push $0x13fa80 11854b: e8 14 26 00 00 call 11ab64 <_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 ) { 118550: 83 c4 10 add $0x10,%esp 118553: 8b 4d e4 mov -0x1c(%ebp),%ecx 118556: 85 c9 test %ecx,%ecx 118558: 75 5a jne 1185b4 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 11855a: 8d 48 10 lea 0x10(%eax),%ecx 11855d: 83 ec 0c sub $0xc,%esp 118560: 51 push %ecx 118561: 89 45 d4 mov %eax,-0x2c(%ebp) 118564: 89 4d d0 mov %ecx,-0x30(%ebp) 118567: e8 78 42 00 00 call 11c7e4 <_Watchdog_Remove> the_timer->the_class = TIMER_TIME_OF_DAY; 11856c: 8b 55 d4 mov -0x2c(%ebp),%edx 11856f: 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; 118576: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx) the_watchdog->routine = routine; 11857d: 89 5a 2c mov %ebx,0x2c(%edx) the_watchdog->id = id; 118580: 89 72 30 mov %esi,0x30(%edx) the_watchdog->user_data = user_data; 118583: 8b 45 14 mov 0x14(%ebp),%eax 118586: 89 42 34 mov %eax,0x34(%edx) Watchdog_Control *the_watchdog, Watchdog_Interval units ) { the_watchdog->initial = units; 118589: 2b 3d 0c f8 13 00 sub 0x13f80c,%edi 11858f: 89 7a 1c mov %edi,0x1c(%edx) _Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog ); 118592: 58 pop %eax 118593: 5a pop %edx 118594: 8b 4d d0 mov -0x30(%ebp),%ecx 118597: 51 push %ecx 118598: 68 4c f8 13 00 push $0x13f84c 11859d: e8 0a 41 00 00 call 11c6ac <_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(); 1185a2: e8 6d 2e 00 00 call 11b414 <_Thread_Enable_dispatch> 1185a7: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 1185a9: 83 c4 10 add $0x10,%esp 1185ac: e9 4b ff ff ff jmp 1184fc 1185b1: 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 ) { 1185b4: b8 04 00 00 00 mov $0x4,%eax 1185b9: e9 3e ff ff ff jmp 1184fc 1185be: 66 90 xchg %ax,%ax <== NOT EXECUTED return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; if ( !routine ) 1185c0: b8 09 00 00 00 mov $0x9,%eax 1185c5: e9 32 ff ff ff jmp 1184fc 001185cc : rtems_status_code rtems_timer_get_information( rtems_id id, rtems_timer_information *the_info ) { 1185cc: 55 push %ebp 1185cd: 89 e5 mov %esp,%ebp 1185cf: 53 push %ebx 1185d0: 83 ec 14 sub $0x14,%esp 1185d3: 8b 5d 0c mov 0xc(%ebp),%ebx Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) 1185d6: 85 db test %ebx,%ebx 1185d8: 74 4a je 118624 1185da: 51 push %ecx 1185db: 8d 45 f4 lea -0xc(%ebp),%eax 1185de: 50 push %eax 1185df: ff 75 08 pushl 0x8(%ebp) 1185e2: 68 80 fa 13 00 push $0x13fa80 1185e7: e8 78 25 00 00 call 11ab64 <_Objects_Get> return RTEMS_INVALID_ADDRESS; the_timer = _Timer_Get( id, &location ); switch ( location ) { 1185ec: 83 c4 10 add $0x10,%esp 1185ef: 8b 55 f4 mov -0xc(%ebp),%edx 1185f2: 85 d2 test %edx,%edx 1185f4: 74 0a je 118600 1185f6: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1185fb: 8b 5d fc mov -0x4(%ebp),%ebx 1185fe: c9 leave 1185ff: c3 ret the_timer = _Timer_Get( id, &location ); switch ( location ) { case OBJECTS_LOCAL: the_info->the_class = the_timer->the_class; 118600: 8b 50 38 mov 0x38(%eax),%edx 118603: 89 13 mov %edx,(%ebx) the_info->initial = the_timer->Ticker.initial; 118605: 8b 50 1c mov 0x1c(%eax),%edx 118608: 89 53 04 mov %edx,0x4(%ebx) the_info->start_time = the_timer->Ticker.start_time; 11860b: 8b 50 24 mov 0x24(%eax),%edx 11860e: 89 53 08 mov %edx,0x8(%ebx) the_info->stop_time = the_timer->Ticker.stop_time; 118611: 8b 40 28 mov 0x28(%eax),%eax 118614: 89 43 0c mov %eax,0xc(%ebx) _Thread_Enable_dispatch(); 118617: e8 f8 2d 00 00 call 11b414 <_Thread_Enable_dispatch> 11861c: 31 c0 xor %eax,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11861e: 8b 5d fc mov -0x4(%ebp),%ebx 118621: c9 leave 118622: c3 ret 118623: 90 nop <== NOT EXECUTED ) { Timer_Control *the_timer; Objects_Locations location; if ( !the_info ) 118624: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 118629: 8b 5d fc mov -0x4(%ebp),%ebx 11862c: c9 leave 11862d: c3 ret 001188dc : rtems_status_code rtems_timer_initiate_server( uint32_t priority, uint32_t stack_size, rtems_attribute attribute_set ) { 1188dc: 55 push %ebp 1188dd: 89 e5 mov %esp,%ebp 1188df: 56 push %esi 1188e0: 53 push %ebx 1188e1: 83 ec 10 sub $0x10,%esp 1188e4: 8b 45 08 mov 0x8(%ebp),%eax 1188e7: 85 c0 test %eax,%eax 1188e9: 75 0d jne 1188f8 if (status) { initialized = false; } #endif return status; 1188eb: b8 13 00 00 00 mov $0x13,%eax } 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: 0f b6 15 14 72 13 00 movzbl 0x137214,%edx 1188ff: 39 d0 cmp %edx,%eax 118901: 76 35 jbe 118938 * 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 ) 118903: 40 inc %eax 118904: 75 e5 jne 1188eb 118906: 31 f6 xor %esi,%esi 118908: 8b 15 78 f7 13 00 mov 0x13f778,%edx 11890e: 42 inc %edx 11890f: 89 15 78 f7 13 00 mov %edx,0x13f778 /* * Just to make sure this is only called once. */ _Thread_Disable_dispatch(); tmpInitialized = initialized; 118915: 8a 1d e0 af 13 00 mov 0x13afe0,%bl initialized = true; 11891b: c6 05 e0 af 13 00 01 movb $0x1,0x13afe0 _Thread_Enable_dispatch(); 118922: e8 ed 2a 00 00 call 11b414 <_Thread_Enable_dispatch> if ( tmpInitialized ) 118927: 84 db test %bl,%bl 118929: 74 11 je 11893c 11892b: b8 0e 00 00 00 mov $0xe,%eax initialized = false; } #endif return status; } 118930: 8d 65 f8 lea -0x8(%ebp),%esp 118933: 5b pop %ebx 118934: 5e pop %esi 118935: c9 leave 118936: c3 ret 118937: 90 nop <== NOT EXECUTED 118938: 89 c6 mov %eax,%esi 11893a: eb cc jmp 118908 * 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( 11893c: 83 ec 08 sub $0x8,%esp 11893f: 8d 45 f4 lea -0xc(%ebp),%eax 118942: 50 push %eax 118943: 8b 45 10 mov 0x10(%ebp),%eax 118946: 80 cc 80 or $0x80,%ah 118949: 50 push %eax 11894a: 68 00 01 00 00 push $0x100 11894f: ff 75 0c pushl 0xc(%ebp) 118952: 56 push %esi 118953: 68 45 4d 49 54 push $0x54494d45 118958: e8 87 f0 ff ff call 1179e4 /* 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) { 11895d: 83 c4 20 add $0x20,%esp 118960: 85 c0 test %eax,%eax 118962: 74 10 je 118974 initialized = false; 118964: c6 05 e0 af 13 00 00 movb $0x0,0x13afe0 initialized = false; } #endif return status; } 11896b: 8d 65 f8 lea -0x8(%ebp),%esp 11896e: 5b pop %ebx 11896f: 5e pop %esi 118970: c9 leave 118971: c3 ret 118972: 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) 118974: 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( 118977: 0f b7 c8 movzwl %ax,%ecx 11897a: 8b 15 1c f7 13 00 mov 0x13f71c,%edx 118980: 8b 14 8a mov (%edx,%ecx,4),%edx 118983: 89 15 00 b0 13 00 mov %edx,0x13b000 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 118989: c7 05 30 b0 13 00 34 movl $0x13b034,0x13b030 118990: b0 13 00 the_chain->permanent_null = NULL; 118993: c7 05 34 b0 13 00 00 movl $0x0,0x13b034 11899a: 00 00 00 the_chain->last = _Chain_Head(the_chain); 11899d: c7 05 38 b0 13 00 30 movl $0x13b030,0x13b038 1189a4: b0 13 00 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 1189a7: c7 05 68 b0 13 00 6c movl $0x13b06c,0x13b068 1189ae: b0 13 00 the_chain->permanent_null = NULL; 1189b1: c7 05 6c b0 13 00 00 movl $0x0,0x13b06c 1189b8: 00 00 00 the_chain->last = _Chain_Head(the_chain); 1189bb: c7 05 70 b0 13 00 68 movl $0x13b068,0x13b070 1189c2: b0 13 00 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 1189c5: c7 05 10 b0 13 00 00 movl $0x0,0x13b010 1189cc: 00 00 00 the_watchdog->routine = routine; 1189cf: c7 05 24 b0 13 00 7c movl $0x11b27c,0x13b024 1189d6: b2 11 00 the_watchdog->id = id; 1189d9: a3 28 b0 13 00 mov %eax,0x13b028 the_watchdog->user_data = user_data; 1189de: c7 05 2c b0 13 00 00 movl $0x0,0x13b02c 1189e5: 00 00 00 Watchdog_Service_routine_entry routine, Objects_Id id, void *user_data ) { the_watchdog->state = WATCHDOG_INACTIVE; 1189e8: c7 05 48 b0 13 00 00 movl $0x0,0x13b048 1189ef: 00 00 00 the_watchdog->routine = routine; 1189f2: c7 05 5c b0 13 00 7c movl $0x11b27c,0x13b05c 1189f9: b2 11 00 the_watchdog->id = id; 1189fc: a3 60 b0 13 00 mov %eax,0x13b060 the_watchdog->user_data = user_data; 118a01: c7 05 64 b0 13 00 00 movl $0x0,0x13b064 118a08: 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; 118a0b: c7 05 04 b0 13 00 b0 movl $0x118cb0,0x13b004 118a12: 8c 11 00 ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot; 118a15: 8b 15 e4 f8 13 00 mov 0x13f8e4,%edx 118a1b: 89 15 3c b0 13 00 mov %edx,0x13b03c ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 118a21: 8b 15 0c f8 13 00 mov 0x13f80c,%edx 118a27: 89 15 74 b0 13 00 mov %edx,0x13b074 ts->insert_chain = NULL; 118a2d: c7 05 78 b0 13 00 00 movl $0x0,0x13b078 118a34: 00 00 00 ts->active = false; 118a37: c6 05 7c b0 13 00 00 movb $0x0,0x13b07c /* * The default timer server is now available. */ _Timer_server = ts; 118a3e: c7 05 c0 fa 13 00 00 movl $0x13b000,0x13fac0 118a45: b0 13 00 /* * Start the timer server */ status = rtems_task_start( 118a48: 52 push %edx 118a49: 68 00 b0 13 00 push $0x13b000 118a4e: 68 04 8b 11 00 push $0x118b04 118a53: 50 push %eax 118a54: e8 23 f6 ff ff call 11807c if (status) { initialized = false; } #endif return status; 118a59: 83 c4 10 add $0x10,%esp 118a5c: e9 8f fe ff ff jmp 1188f0 00118654 : */ rtems_status_code rtems_timer_reset( rtems_id id ) { 118654: 55 push %ebp 118655: 89 e5 mov %esp,%ebp 118657: 56 push %esi 118658: 53 push %ebx 118659: 83 ec 24 sub $0x24,%esp 11865c: 8d 45 f4 lea -0xc(%ebp),%eax 11865f: 50 push %eax 118660: ff 75 08 pushl 0x8(%ebp) 118663: 68 80 fa 13 00 push $0x13fa80 118668: e8 f7 24 00 00 call 11ab64 <_Objects_Get> 11866d: 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 ) { 11866f: 83 c4 10 add $0x10,%esp 118672: 8b 45 f4 mov -0xc(%ebp),%eax 118675: 85 c0 test %eax,%eax 118677: 74 0f je 118688 118679: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11867e: 8d 65 f8 lea -0x8(%ebp),%esp 118681: 5b pop %ebx 118682: 5e pop %esi 118683: c9 leave 118684: c3 ret 118685: 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 ) { 118688: 8b 43 38 mov 0x38(%ebx),%eax 11868b: 85 c0 test %eax,%eax 11868d: 74 1d je 1186ac _Watchdog_Remove( &the_timer->Ticker ); _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); } else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { 11868f: 48 dec %eax 118690: 74 3a je 1186cc 118692: 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(); 118697: 89 45 e4 mov %eax,-0x1c(%ebp) 11869a: e8 75 2d 00 00 call 11b414 <_Thread_Enable_dispatch> 11869f: 8b 45 e4 mov -0x1c(%ebp),%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1186a2: 8d 65 f8 lea -0x8(%ebp),%esp 1186a5: 5b pop %ebx 1186a6: 5e pop %esi 1186a7: c9 leave 1186a8: c3 ret 1186a9: 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 ); 1186ac: 83 c3 10 add $0x10,%ebx 1186af: 83 ec 0c sub $0xc,%esp 1186b2: 53 push %ebx 1186b3: e8 2c 41 00 00 call 11c7e4 <_Watchdog_Remove> _Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker ); 1186b8: 59 pop %ecx 1186b9: 5e pop %esi 1186ba: 53 push %ebx 1186bb: 68 58 f8 13 00 push $0x13f858 1186c0: e8 e7 3f 00 00 call 11c6ac <_Watchdog_Insert> 1186c5: 31 c0 xor %eax,%eax 1186c7: 83 c4 10 add $0x10,%esp 1186ca: eb cb jmp 118697 } else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) { Timer_server_Control *timer_server = _Timer_server; 1186cc: 8b 35 c0 fa 13 00 mov 0x13fac0,%esi if ( !timer_server ) { _Thread_Enable_dispatch(); return RTEMS_INCORRECT_STATE; } #endif _Watchdog_Remove( &the_timer->Ticker ); 1186d2: 83 ec 0c sub $0xc,%esp 1186d5: 8d 43 10 lea 0x10(%ebx),%eax 1186d8: 50 push %eax 1186d9: e8 06 41 00 00 call 11c7e4 <_Watchdog_Remove> (*timer_server->schedule_operation)( timer_server, the_timer ); 1186de: 58 pop %eax 1186df: 5a pop %edx 1186e0: 53 push %ebx 1186e1: 56 push %esi 1186e2: ff 56 04 call *0x4(%esi) 1186e5: 31 c0 xor %eax,%eax 1186e7: 83 c4 10 add $0x10,%esp 1186ea: eb ab jmp 118697 001186ec : rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) { 1186ec: 55 push %ebp 1186ed: 89 e5 mov %esp,%ebp 1186ef: 57 push %edi 1186f0: 56 push %esi 1186f1: 53 push %ebx 1186f2: 83 ec 2c sub $0x2c,%esp 1186f5: 8b 7d 0c mov 0xc(%ebp),%edi 1186f8: 8b 75 10 mov 0x10(%ebp),%esi Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server; 1186fb: 8b 1d c0 fa 13 00 mov 0x13fac0,%ebx if ( !timer_server ) 118701: 85 db test %ebx,%ebx 118703: 0f 84 9f 00 00 00 je 1187a8 return RTEMS_INCORRECT_STATE; if ( !routine ) 118709: 85 f6 test %esi,%esi 11870b: 0f 84 a3 00 00 00 je 1187b4 return RTEMS_INVALID_ADDRESS; if ( ticks == 0 ) 118711: 85 ff test %edi,%edi 118713: 75 0f jne 118724 118715: b8 0a 00 00 00 mov $0xa,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11871a: 8d 65 f4 lea -0xc(%ebp),%esp 11871d: 5b pop %ebx 11871e: 5e pop %esi 11871f: 5f pop %edi 118720: c9 leave 118721: c3 ret 118722: 66 90 xchg %ax,%ax <== NOT EXECUTED 118724: 52 push %edx 118725: 8d 45 e4 lea -0x1c(%ebp),%eax 118728: 50 push %eax 118729: ff 75 08 pushl 0x8(%ebp) 11872c: 68 80 fa 13 00 push $0x13fa80 118731: e8 2e 24 00 00 call 11ab64 <_Objects_Get> 118736: 89 c2 mov %eax,%edx if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { 118738: 83 c4 10 add $0x10,%esp 11873b: 8b 45 e4 mov -0x1c(%ebp),%eax 11873e: 85 c0 test %eax,%eax 118740: 75 56 jne 118798 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 118742: 83 ec 0c sub $0xc,%esp 118745: 8d 42 10 lea 0x10(%edx),%eax 118748: 50 push %eax 118749: 89 55 d4 mov %edx,-0x2c(%ebp) 11874c: e8 93 40 00 00 call 11c7e4 <_Watchdog_Remove> _ISR_Disable( level ); 118751: 9c pushf 118752: fa cli 118753: 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 ) { 118754: 83 c4 10 add $0x10,%esp 118757: 8b 55 d4 mov -0x2c(%ebp),%edx 11875a: 8b 4a 18 mov 0x18(%edx),%ecx 11875d: 85 c9 test %ecx,%ecx 11875f: 75 5f jne 1187c0 /* * 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; 118761: 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; 118768: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx) the_watchdog->routine = routine; 11876f: 89 72 2c mov %esi,0x2c(%edx) the_watchdog->id = id; 118772: 8b 4d 08 mov 0x8(%ebp),%ecx 118775: 89 4a 30 mov %ecx,0x30(%edx) the_watchdog->user_data = user_data; 118778: 8b 4d 14 mov 0x14(%ebp),%ecx 11877b: 89 4a 34 mov %ecx,0x34(%edx) _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data ); the_timer->Ticker.initial = ticks; 11877e: 89 7a 1c mov %edi,0x1c(%edx) _ISR_Enable( level ); 118781: 50 push %eax 118782: 9d popf (*timer_server->schedule_operation)( timer_server, the_timer ); 118783: 83 ec 08 sub $0x8,%esp 118786: 52 push %edx 118787: 53 push %ebx 118788: ff 53 04 call *0x4(%ebx) _Thread_Enable_dispatch(); 11878b: e8 84 2c 00 00 call 11b414 <_Thread_Enable_dispatch> 118790: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 118792: 83 c4 10 add $0x10,%esp 118795: eb 83 jmp 11871a 118797: 90 nop <== NOT EXECUTED if ( ticks == 0 ) return RTEMS_INVALID_NUMBER; the_timer = _Timer_Get( id, &location ); switch ( location ) { 118798: b8 04 00 00 00 mov $0x4,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 11879d: 8d 65 f4 lea -0xc(%ebp),%esp 1187a0: 5b pop %ebx 1187a1: 5e pop %esi 1187a2: 5f pop %edi 1187a3: c9 leave 1187a4: c3 ret 1187a5: 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 ) 1187a8: b8 0e 00 00 00 mov $0xe,%eax 1187ad: e9 68 ff ff ff jmp 11871a 1187b2: 66 90 xchg %ax,%ax <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !routine ) 1187b4: b8 09 00 00 00 mov $0x9,%eax 1187b9: e9 5c ff ff ff jmp 11871a 1187be: 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 ); 1187c0: 50 push %eax 1187c1: 9d popf _Thread_Enable_dispatch(); 1187c2: e8 4d 2c 00 00 call 11b414 <_Thread_Enable_dispatch> 1187c7: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 1187c9: e9 4c ff ff ff jmp 11871a 001187d0 : rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) { 1187d0: 55 push %ebp 1187d1: 89 e5 mov %esp,%ebp 1187d3: 57 push %edi 1187d4: 56 push %esi 1187d5: 53 push %ebx 1187d6: 83 ec 2c sub $0x2c,%esp 1187d9: 8b 7d 0c mov 0xc(%ebp),%edi 1187dc: 8b 75 10 mov 0x10(%ebp),%esi Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server; 1187df: 8b 1d c0 fa 13 00 mov 0x13fac0,%ebx if ( !timer_server ) 1187e5: 85 db test %ebx,%ebx 1187e7: 0f 84 d7 00 00 00 je 1188c4 return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) 1187ed: 80 3d 8c f7 13 00 00 cmpb $0x0,0x13f78c 1187f4: 0f 84 aa 00 00 00 je 1188a4 return RTEMS_NOT_DEFINED; if ( !routine ) 1187fa: 85 f6 test %esi,%esi 1187fc: 0f 84 b2 00 00 00 je 1188b4 return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) 118802: 83 ec 0c sub $0xc,%esp 118805: 57 push %edi 118806: e8 69 d1 ff ff call 115974 <_TOD_Validate> 11880b: 83 c4 10 add $0x10,%esp 11880e: 84 c0 test %al,%al 118810: 75 0e jne 118820 the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch(); (*timer_server->schedule_operation)( timer_server, the_timer ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; 118812: b8 14 00 00 00 mov $0x14,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 118817: 8d 65 f4 lea -0xc(%ebp),%esp 11881a: 5b pop %ebx 11881b: 5e pop %esi 11881c: 5f pop %edi 11881d: c9 leave 11881e: c3 ret 11881f: 90 nop <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; if ( !_TOD_Validate( wall_time ) ) return RTEMS_INVALID_CLOCK; seconds = _TOD_To_seconds( wall_time ); 118820: 83 ec 0c sub $0xc,%esp 118823: 57 push %edi 118824: e8 bf d0 ff ff call 1158e8 <_TOD_To_seconds> 118829: 89 c7 mov %eax,%edi if ( seconds <= _TOD_Seconds_since_epoch() ) 11882b: 83 c4 10 add $0x10,%esp 11882e: 3b 05 0c f8 13 00 cmp 0x13f80c,%eax 118834: 76 dc jbe 118812 118836: 52 push %edx 118837: 8d 45 e4 lea -0x1c(%ebp),%eax 11883a: 50 push %eax 11883b: ff 75 08 pushl 0x8(%ebp) 11883e: 68 80 fa 13 00 push $0x13fa80 118843: e8 1c 23 00 00 call 11ab64 <_Objects_Get> 118848: 89 c2 mov %eax,%edx return RTEMS_INVALID_CLOCK; the_timer = _Timer_Get( id, &location ); switch ( location ) { 11884a: 83 c4 10 add $0x10,%esp 11884d: 8b 45 e4 mov -0x1c(%ebp),%eax 118850: 85 c0 test %eax,%eax 118852: 75 7c jne 1188d0 case OBJECTS_LOCAL: (void) _Watchdog_Remove( &the_timer->Ticker ); 118854: 83 ec 0c sub $0xc,%esp 118857: 8d 42 10 lea 0x10(%edx),%eax 11885a: 50 push %eax 11885b: 89 55 d4 mov %edx,-0x2c(%ebp) 11885e: e8 81 3f 00 00 call 11c7e4 <_Watchdog_Remove> the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK; 118863: 8b 55 d4 mov -0x2c(%ebp),%edx 118866: 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; 11886d: c7 42 18 00 00 00 00 movl $0x0,0x18(%edx) the_watchdog->routine = routine; 118874: 89 72 2c mov %esi,0x2c(%edx) the_watchdog->id = id; 118877: 8b 45 08 mov 0x8(%ebp),%eax 11887a: 89 42 30 mov %eax,0x30(%edx) the_watchdog->user_data = user_data; 11887d: 8b 45 14 mov 0x14(%ebp),%eax 118880: 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(); 118883: 2b 3d 0c f8 13 00 sub 0x13f80c,%edi 118889: 89 7a 1c mov %edi,0x1c(%edx) (*timer_server->schedule_operation)( timer_server, the_timer ); 11888c: 58 pop %eax 11888d: 59 pop %ecx 11888e: 52 push %edx 11888f: 53 push %ebx 118890: ff 53 04 call *0x4(%ebx) _Thread_Enable_dispatch(); 118893: e8 7c 2b 00 00 call 11b414 <_Thread_Enable_dispatch> 118898: 31 c0 xor %eax,%eax return RTEMS_SUCCESSFUL; 11889a: 83 c4 10 add $0x10,%esp 11889d: e9 75 ff ff ff jmp 118817 1188a2: 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 ) 1188a4: b8 0b 00 00 00 mov $0xb,%eax <== NOT EXECUTED case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1188a9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 1188ac: 5b pop %ebx <== NOT EXECUTED 1188ad: 5e pop %esi <== NOT EXECUTED 1188ae: 5f pop %edi <== NOT EXECUTED 1188af: c9 leave <== NOT EXECUTED 1188b0: c3 ret <== NOT EXECUTED 1188b1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED return RTEMS_INCORRECT_STATE; if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !routine ) 1188b4: b8 09 00 00 00 mov $0x9,%eax case OBJECTS_ERROR: break; } return RTEMS_INVALID_ID; } 1188b9: 8d 65 f4 lea -0xc(%ebp),%esp 1188bc: 5b pop %ebx 1188bd: 5e pop %esi 1188be: 5f pop %edi 1188bf: c9 leave 1188c0: c3 ret 1188c1: 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 ) 1188c4: b8 0e 00 00 00 mov $0xe,%eax 1188c9: e9 49 ff ff ff jmp 118817 1188ce: 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 ) { 1188d0: b8 04 00 00 00 mov $0x4,%eax 1188d5: e9 3d ff ff ff jmp 118817 0010caac : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 10caac: 55 push %ebp <== NOT EXECUTED 10caad: 89 e5 mov %esp,%ebp <== NOT EXECUTED 10caaf: 57 push %edi <== NOT EXECUTED 10cab0: 56 push %esi <== NOT EXECUTED 10cab1: 53 push %ebx <== NOT EXECUTED 10cab2: 83 ec 1c sub $0x1c,%esp <== NOT EXECUTED 10cab5: 89 c3 mov %eax,%ebx <== NOT EXECUTED 10cab7: 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) 10cab9: 25 00 00 00 20 and $0x20000000,%eax <== NOT EXECUTED 10cabe: 89 45 e0 mov %eax,-0x20(%ebp) <== NOT EXECUTED 10cac1: 74 2b je 10caee <== NOT EXECUTED { if (rtems_panic_in_progress++) 10cac3: 8b 15 60 d3 12 00 mov 0x12d360,%edx <== NOT EXECUTED 10cac9: 8d 42 01 lea 0x1(%edx),%eax <== NOT EXECUTED 10cacc: a3 60 d3 12 00 mov %eax,0x12d360 <== NOT EXECUTED 10cad1: 85 d2 test %edx,%edx <== NOT EXECUTED 10cad3: 74 10 je 10cae5 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 10cad5: a1 f8 d4 12 00 mov 0x12d4f8,%eax <== NOT EXECUTED 10cada: 40 inc %eax <== NOT EXECUTED 10cadb: a3 f8 d4 12 00 mov %eax,0x12d4f8 <== NOT EXECUTED RTEMS_COMPILER_MEMORY_BARRIER(); 10cae0: a1 60 d3 12 00 mov 0x12d360,%eax <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 10cae5: 83 f8 02 cmp $0x2,%eax <== NOT EXECUTED 10cae8: 0f 8f e6 00 00 00 jg 10cbd4 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 10caee: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10caf1: a1 60 b1 12 00 mov 0x12b160,%eax <== NOT EXECUTED 10caf6: ff 70 08 pushl 0x8(%eax) <== NOT EXECUTED 10caf9: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED 10cafc: e8 3f c2 00 00 call 118d40 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 10cb01: 89 d8 mov %ebx,%eax <== NOT EXECUTED 10cb03: 25 ff ff ff 8f and $0x8fffffff,%eax <== NOT EXECUTED 10cb08: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 10cb0b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10cb0e: f7 c3 00 00 00 40 test $0x40000000,%ebx <== NOT EXECUTED 10cb14: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED 10cb17: 0f 85 d7 00 00 00 jne 10cbf4 <== NOT EXECUTED 10cb1d: 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); 10cb1f: 52 push %edx <== NOT EXECUTED 10cb20: 51 push %ecx <== NOT EXECUTED 10cb21: 56 push %esi <== NOT EXECUTED 10cb22: a1 60 b1 12 00 mov 0x12b160,%eax <== NOT EXECUTED 10cb27: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cb2a: e8 1d 1d 01 00 call 11e84c <== NOT EXECUTED 10cb2f: 89 c6 mov %eax,%esi <== NOT EXECUTED if (status) 10cb31: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10cb34: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 10cb37: 85 c0 test %eax,%eax <== NOT EXECUTED 10cb39: 0f 85 c9 00 00 00 jne 10cc08 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) 10cb3f: 83 ff 00 cmp $0x0,%edi <== NOT EXECUTED 10cb42: 74 30 je 10cb74 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 10cb44: 7e 15 jle 10cb5b <== NOT EXECUTED 10cb46: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10cb49: 57 push %edi <== NOT EXECUTED 10cb4a: e8 b5 cc 00 00 call 119804 <== NOT EXECUTED 10cb4f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10cb52: 80 38 00 cmpb $0x0,(%eax) <== NOT EXECUTED 10cb55: 0f 85 d9 00 00 00 jne 10cc34 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 10cb5b: 51 push %ecx <== NOT EXECUTED 10cb5c: 57 push %edi <== NOT EXECUTED 10cb5d: 68 49 6b 12 00 push $0x126b49 <== NOT EXECUTED 10cb62: a1 60 b1 12 00 mov 0x12b160,%eax <== NOT EXECUTED 10cb67: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cb6a: e8 19 c5 00 00 call 119088 <== NOT EXECUTED 10cb6f: 01 c6 add %eax,%esi <== NOT EXECUTED 10cb71: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 10cb74: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10cb77: 68 2b 5e 12 00 push $0x125e2b <== NOT EXECUTED 10cb7c: a1 60 b1 12 00 mov 0x12b160,%eax <== NOT EXECUTED 10cb81: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cb84: e8 ff c4 00 00 call 119088 <== NOT EXECUTED 10cb89: 89 45 e4 mov %eax,-0x1c(%ebp) <== NOT EXECUTED (void) fflush(stderr); 10cb8c: 5a pop %edx <== NOT EXECUTED 10cb8d: a1 60 b1 12 00 mov 0x12b160,%eax <== NOT EXECUTED 10cb92: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cb95: e8 a6 c1 00 00 call 118d40 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 10cb9a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10cb9d: 81 e3 00 00 00 30 and $0x30000000,%ebx <== NOT EXECUTED 10cba3: 74 1f je 10cbc4 <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 10cba5: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10cba8: 85 c0 test %eax,%eax <== NOT EXECUTED 10cbaa: 74 34 je 10cbe0 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 10cbac: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10cbaf: 68 5d 6b 12 00 push $0x126b5d <== NOT EXECUTED 10cbb4: 6a 00 push $0x0 <== NOT EXECUTED 10cbb6: e8 a9 00 00 00 call 10cc64 <== NOT EXECUTED _exit(local_errno); 10cbbb: 89 3c 24 mov %edi,(%esp) <== NOT EXECUTED 10cbbe: e8 d1 0a 00 00 call 10d694 <_exit> <== NOT EXECUTED 10cbc3: 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"); 10cbc4: 8b 45 e4 mov -0x1c(%ebp),%eax <== NOT EXECUTED 10cbc7: 01 f0 add %esi,%eax <== NOT EXECUTED rtems_error(0, "fatal error, aborting"); abort(); } } return chars_written; } 10cbc9: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10cbcc: 5b pop %ebx <== NOT EXECUTED 10cbcd: 5e pop %esi <== NOT EXECUTED 10cbce: 5f pop %edi <== NOT EXECUTED 10cbcf: c9 leave <== NOT EXECUTED 10cbd0: c3 ret <== NOT EXECUTED 10cbd1: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); abort(); 10cbd4: 31 c0 xor %eax,%eax <== NOT EXECUTED } } return chars_written; } 10cbd6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10cbd9: 5b pop %ebx <== NOT EXECUTED 10cbda: 5e pop %esi <== NOT EXECUTED 10cbdb: 5f pop %edi <== NOT EXECUTED 10cbdc: c9 leave <== NOT EXECUTED 10cbdd: c3 ret <== NOT EXECUTED 10cbde: 66 90 xchg %ax,%ax <== NOT EXECUTED rtems_error(0, "fatal error, exiting"); _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); 10cbe0: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 10cbe3: 68 72 6b 12 00 push $0x126b72 <== NOT EXECUTED 10cbe8: 6a 00 push $0x0 <== NOT EXECUTED 10cbea: e8 75 00 00 00 call 10cc64 <== NOT EXECUTED abort(); 10cbef: e8 9c bd 00 00 call 118990 <== 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; 10cbf4: 89 4d dc mov %ecx,-0x24(%ebp) <== NOT EXECUTED 10cbf7: e8 c8 bd 00 00 call 1189c4 <__errno> <== NOT EXECUTED 10cbfc: 8b 38 mov (%eax),%edi <== NOT EXECUTED 10cbfe: 8b 4d dc mov -0x24(%ebp),%ecx <== NOT EXECUTED 10cc01: e9 19 ff ff ff jmp 10cb1f <== NOT EXECUTED 10cc06: 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)); 10cc08: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10cc0b: ff 75 e4 pushl -0x1c(%ebp) <== NOT EXECUTED 10cc0e: e8 81 fe ff ff call 10ca94 <== NOT EXECUTED 10cc13: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 10cc16: 50 push %eax <== NOT EXECUTED 10cc17: 68 2e 6b 12 00 push $0x126b2e <== NOT EXECUTED 10cc1c: a1 60 b1 12 00 mov 0x12b160,%eax <== NOT EXECUTED 10cc21: ff 70 0c pushl 0xc(%eax) <== NOT EXECUTED 10cc24: e8 5f c4 00 00 call 119088 <== NOT EXECUTED 10cc29: 01 c6 add %eax,%esi <== NOT EXECUTED 10cc2b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10cc2e: e9 0c ff ff ff jmp 10cb3f <== NOT EXECUTED 10cc33: 90 nop <== NOT EXECUTED if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 10cc34: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10cc37: 57 push %edi <== NOT EXECUTED 10cc38: e8 c7 cb 00 00 call 119804 <== NOT EXECUTED 10cc3d: 83 c4 0c add $0xc,%esp <== NOT EXECUTED 10cc40: 50 push %eax <== NOT EXECUTED 10cc41: 68 3c 6b 12 00 push $0x126b3c <== NOT EXECUTED 10cc46: e9 17 ff ff ff jmp 10cb62 <== NOT EXECUTED 0012b694 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 12b694: 55 push %ebp 12b695: 89 e5 mov %esp,%ebp 12b697: 57 push %edi 12b698: 56 push %esi 12b699: 53 push %ebx 12b69a: 83 ec 1c sub $0x1c,%esp 12b69d: 89 c6 mov %eax,%esi 12b69f: 89 55 e0 mov %edx,-0x20(%ebp) 12b6a2: 31 ff xor %edi,%edi 12b6a4: c7 45 e4 ff ff ff 7f movl $0x7fffffff,-0x1c(%ebp) 12b6ab: 31 db xor %ebx,%ebx unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 12b6ad: 8b 46 04 mov 0x4(%esi),%eax 12b6b0: 48 dec %eax 12b6b1: 89 46 04 mov %eax,0x4(%esi) 12b6b4: 85 c0 test %eax,%eax 12b6b6: 78 52 js 12b70a 12b6b8: 8b 06 mov (%esi),%eax 12b6ba: 0f b6 08 movzbl (%eax),%ecx 12b6bd: 40 inc %eax 12b6be: 89 06 mov %eax,(%esi) if (c == ':') 12b6c0: 83 f9 3a cmp $0x3a,%ecx 12b6c3: 74 5f je 12b724 break; if (sign == 0) { 12b6c5: 85 ff test %edi,%edi 12b6c7: 75 0e jne 12b6d7 if (c == '-') { 12b6c9: 83 f9 2d cmp $0x2d,%ecx 12b6cc: 0f 84 8a 00 00 00 je 12b75c sign = -1; limit++; continue; 12b6d2: bf 01 00 00 00 mov $0x1,%edi } sign = 1; } if (!isdigit(c)) 12b6d7: a1 48 8b 16 00 mov 0x168b48,%eax 12b6dc: f6 44 08 01 04 testb $0x4,0x1(%eax,%ecx,1) 12b6e1: 74 6d je 12b750 return 0; d = c - '0'; if ((i > (limit / 10)) 12b6e3: b8 cd cc cc cc mov $0xcccccccd,%eax 12b6e8: f7 65 e4 mull -0x1c(%ebp) 12b6eb: c1 ea 03 shr $0x3,%edx 12b6ee: 39 d3 cmp %edx,%ebx 12b6f0: 77 5e ja 12b750 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 12b6f2: 83 e9 30 sub $0x30,%ecx if ((i > (limit / 10)) 12b6f5: 39 d3 cmp %edx,%ebx 12b6f7: 74 47 je 12b740 || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 12b6f9: 8d 04 9b lea (%ebx,%ebx,4),%eax 12b6fc: 8d 1c 41 lea (%ecx,%eax,2),%ebx unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 12b6ff: 8b 46 04 mov 0x4(%esi),%eax 12b702: 48 dec %eax 12b703: 89 46 04 mov %eax,0x4(%esi) 12b706: 85 c0 test %eax,%eax 12b708: 79 ae jns 12b6b8 12b70a: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12b70d: 56 push %esi <== NOT EXECUTED 12b70e: ff 35 60 8b 16 00 pushl 0x168b60 <== NOT EXECUTED 12b714: e8 7f a9 01 00 call 146098 <__srget_r> <== NOT EXECUTED 12b719: 89 c1 mov %eax,%ecx <== NOT EXECUTED 12b71b: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if (c == ':') 12b71e: 83 f9 3a cmp $0x3a,%ecx <== NOT EXECUTED 12b721: 75 a2 jne 12b6c5 <== NOT EXECUTED 12b723: 90 nop <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) 12b724: 85 ff test %edi,%edi 12b726: 74 28 je 12b750 return 0; *val = i * sign; 12b728: 0f af df imul %edi,%ebx 12b72b: 8b 45 e0 mov -0x20(%ebp),%eax 12b72e: 89 18 mov %ebx,(%eax) 12b730: b8 01 00 00 00 mov $0x1,%eax return 1; } 12b735: 8d 65 f4 lea -0xc(%ebp),%esp 12b738: 5b pop %ebx 12b739: 5e pop %esi 12b73a: 5f pop %edi 12b73b: c9 leave 12b73c: c3 ret 12b73d: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 12b740: 8d 04 9b lea (%ebx,%ebx,4),%eax <== NOT EXECUTED 12b743: d1 e0 shl %eax <== NOT EXECUTED 12b745: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED 12b748: 29 c2 sub %eax,%edx <== NOT EXECUTED 12b74a: 39 d1 cmp %edx,%ecx <== NOT EXECUTED 12b74c: 76 ab jbe 12b6f9 <== NOT EXECUTED 12b74e: 66 90 xchg %ax,%ax <== NOT EXECUTED i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; return 1; 12b750: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12b752: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12b755: 5b pop %ebx <== NOT EXECUTED 12b756: 5e pop %esi <== NOT EXECUTED 12b757: 5f pop %edi <== NOT EXECUTED 12b758: c9 leave <== NOT EXECUTED 12b759: c3 ret <== NOT EXECUTED 12b75a: 66 90 xchg %ax,%ax <== NOT EXECUTED if (c == ':') break; if (sign == 0) { if (c == '-') { sign = -1; limit++; 12b75c: ff 45 e4 incl -0x1c(%ebp) <== NOT EXECUTED 12b75f: bf ff ff ff ff mov $0xffffffff,%edi <== NOT EXECUTED continue; 12b764: e9 44 ff ff ff jmp 12b6ad <== NOT EXECUTED 0012b76c : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 12b76c: 55 push %ebp 12b76d: 89 e5 mov %esp,%ebp 12b76f: 57 push %edi 12b770: 56 push %esi 12b771: 53 push %ebx 12b772: 83 ec 0c sub $0xc,%esp 12b775: 89 c3 mov %eax,%ebx 12b777: 89 ce mov %ecx,%esi 12b779: 8b 7d 08 mov 0x8(%ebp),%edi int c; *name = *bufp; 12b77c: 8b 01 mov (%ecx),%eax 12b77e: 89 02 mov %eax,(%edx) 12b780: eb 26 jmp 12b7a8 12b782: 66 90 xchg %ax,%ax <== NOT EXECUTED for (;;) { c = getc(fp); 12b784: 8b 13 mov (%ebx),%edx 12b786: 0f b6 02 movzbl (%edx),%eax 12b789: 42 inc %edx 12b78a: 89 13 mov %edx,(%ebx) if (c == ':') { 12b78c: 83 f8 3a cmp $0x3a,%eax 12b78f: 74 3b je 12b7cc if (nlFlag) return 0; break; } if (c == '\n') { 12b791: 83 f8 0a cmp $0xa,%eax 12b794: 74 56 je 12b7ec if (!nlFlag) return 0; break; } if (c == EOF) 12b796: 83 f8 ff cmp $0xffffffff,%eax 12b799: 74 59 je 12b7f4 return 0; if (*nleft < 2) 12b79b: 83 3f 01 cmpl $0x1,(%edi) 12b79e: 76 54 jbe 12b7f4 return 0; **bufp = c; 12b7a0: 8b 16 mov (%esi),%edx 12b7a2: 88 02 mov %al,(%edx) ++(*bufp); 12b7a4: ff 06 incl (%esi) --(*nleft); 12b7a6: ff 0f decl (%edi) { int c; *name = *bufp; for (;;) { c = getc(fp); 12b7a8: 8b 43 04 mov 0x4(%ebx),%eax 12b7ab: 48 dec %eax 12b7ac: 89 43 04 mov %eax,0x4(%ebx) 12b7af: 85 c0 test %eax,%eax 12b7b1: 79 d1 jns 12b784 12b7b3: 83 ec 08 sub $0x8,%esp 12b7b6: 53 push %ebx 12b7b7: ff 35 60 8b 16 00 pushl 0x168b60 12b7bd: e8 d6 a8 01 00 call 146098 <__srget_r> 12b7c2: 83 c4 10 add $0x10,%esp if (c == ':') { 12b7c5: 83 f8 3a cmp $0x3a,%eax 12b7c8: 75 c7 jne 12b791 12b7ca: 66 90 xchg %ax,%ax <== NOT EXECUTED if (nlFlag) 12b7cc: 8b 55 0c mov 0xc(%ebp),%edx 12b7cf: 85 d2 test %edx,%edx 12b7d1: 75 21 jne 12b7f4 return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 12b7d3: 8b 06 mov (%esi),%eax 12b7d5: c6 00 00 movb $0x0,(%eax) ++(*bufp); 12b7d8: ff 06 incl (%esi) --(*nleft); 12b7da: ff 0f decl (%edi) 12b7dc: b8 01 00 00 00 mov $0x1,%eax return 1; } 12b7e1: 8d 65 f4 lea -0xc(%ebp),%esp 12b7e4: 5b pop %ebx 12b7e5: 5e pop %esi 12b7e6: 5f pop %edi 12b7e7: c9 leave 12b7e8: c3 ret 12b7e9: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) 12b7ec: 8b 45 0c mov 0xc(%ebp),%eax 12b7ef: 85 c0 test %eax,%eax 12b7f1: 75 e0 jne 12b7d3 12b7f3: 90 nop <== NOT EXECUTED --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 12b7f4: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12b7f6: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12b7f9: 5b pop %ebx <== NOT EXECUTED 12b7fa: 5e pop %esi <== NOT EXECUTED 12b7fb: 5f pop %edi <== NOT EXECUTED 12b7fc: c9 leave <== NOT EXECUTED 12b7fd: c3 ret <== NOT EXECUTED 0012b800 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 12b800: 55 push %ebp 12b801: 89 e5 mov %esp,%ebp 12b803: 57 push %edi 12b804: 56 push %esi 12b805: 53 push %ebx 12b806: 83 ec 34 sub $0x34,%esp 12b809: 89 c6 mov %eax,%esi 12b80b: 89 d3 mov %edx,%ebx 12b80d: 89 4d d4 mov %ecx,-0x2c(%ebp) int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 12b810: 8d 7d d4 lea -0x2c(%ebp),%edi 12b813: 6a 00 push $0x0 12b815: 8d 45 08 lea 0x8(%ebp),%eax 12b818: 50 push %eax 12b819: 89 f9 mov %edi,%ecx 12b81b: 89 f0 mov %esi,%eax 12b81d: e8 4a ff ff ff call 12b76c 12b822: 83 c4 10 add $0x10,%esp 12b825: 85 c0 test %eax,%eax 12b827: 75 0b jne 12b834 *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; 12b829: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12b82b: 8d 65 f4 lea -0xc(%ebp),%esp 12b82e: 5b pop %ebx 12b82f: 5e pop %esi 12b830: 5f pop %edi 12b831: c9 leave 12b832: c3 ret 12b833: 90 nop <== NOT EXECUTED int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) 12b834: 83 ec 08 sub $0x8,%esp 12b837: 8d 53 04 lea 0x4(%ebx),%edx 12b83a: 6a 00 push $0x0 12b83c: 8d 45 08 lea 0x8(%ebp),%eax 12b83f: 50 push %eax 12b840: 89 f9 mov %edi,%ecx 12b842: 89 f0 mov %esi,%eax 12b844: e8 23 ff ff ff call 12b76c { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 12b849: 83 c4 10 add $0x10,%esp 12b84c: 85 c0 test %eax,%eax 12b84e: 74 d9 je 12b829 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 12b850: 8d 55 e4 lea -0x1c(%ebp),%edx 12b853: 89 f0 mov %esi,%eax 12b855: e8 3a fe ff ff call 12b694 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 12b85a: 85 c0 test %eax,%eax 12b85c: 74 cb je 12b829 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 12b85e: 83 ec 08 sub $0x8,%esp 12b861: 8d 55 e0 lea -0x20(%ebp),%edx 12b864: 6a 01 push $0x1 12b866: 8d 45 08 lea 0x8(%ebp),%eax 12b869: 50 push %eax 12b86a: 89 f9 mov %edi,%ecx 12b86c: 89 f0 mov %esi,%eax 12b86e: e8 f9 fe ff ff call 12b76c { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 12b873: 83 c4 10 add $0x10,%esp 12b876: 85 c0 test %eax,%eax 12b878: 74 af je 12b829 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; 12b87a: 8b 45 e4 mov -0x1c(%ebp),%eax 12b87d: 66 89 43 08 mov %ax,0x8(%ebx) /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12b881: 8b 75 e0 mov -0x20(%ebp),%esi 12b884: 8a 06 mov (%esi),%al 12b886: 84 c0 test %al,%al 12b888: 74 7d je 12b907 12b88a: 89 f2 mov %esi,%edx 12b88c: b9 01 00 00 00 mov $0x1,%ecx 12b891: eb 08 jmp 12b89b 12b893: 90 nop <== NOT EXECUTED 12b894: 42 inc %edx 12b895: 8a 02 mov (%edx),%al 12b897: 84 c0 test %al,%al 12b899: 74 09 je 12b8a4 if(*cp == ',') 12b89b: 3c 2c cmp $0x2c,%al 12b89d: 75 f5 jne 12b894 memcount++; 12b89f: 41 inc %ecx <== NOT EXECUTED 12b8a0: eb f2 jmp 12b894 <== NOT EXECUTED 12b8a2: 66 90 xchg %ax,%ax <== NOT EXECUTED grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12b8a4: 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)) 12b8ab: 39 45 08 cmp %eax,0x8(%ebp) 12b8ae: 0f 82 75 ff ff ff jb 12b829 return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 12b8b4: 8b 45 d4 mov -0x2c(%ebp),%eax 12b8b7: 83 c0 0f add $0xf,%eax 12b8ba: 83 e0 f0 and $0xfffffff0,%eax 12b8bd: 89 43 0c mov %eax,0xc(%ebx) /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 12b8c0: 89 30 mov %esi,(%eax) for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12b8c2: 8b 45 e0 mov -0x20(%ebp),%eax 12b8c5: 8a 10 mov (%eax),%dl 12b8c7: 84 d2 test %dl,%dl 12b8c9: 74 43 je 12b90e 12b8cb: 40 inc %eax 12b8cc: b9 01 00 00 00 mov $0x1,%ecx 12b8d1: eb 08 jmp 12b8db 12b8d3: 90 nop <== NOT EXECUTED 12b8d4: 8a 10 mov (%eax),%dl 12b8d6: 40 inc %eax 12b8d7: 84 d2 test %dl,%dl 12b8d9: 74 15 je 12b8f0 if(*cp == ',') { 12b8db: 80 fa 2c cmp $0x2c,%dl 12b8de: 75 f4 jne 12b8d4 *cp = '\0'; 12b8e0: c6 40 ff 00 movb $0x0,-0x1(%eax) <== NOT EXECUTED grp->gr_mem[memcount++] = cp + 1; 12b8e4: 8b 53 0c mov 0xc(%ebx),%edx <== NOT EXECUTED 12b8e7: 89 04 8a mov %eax,(%edx,%ecx,4) <== NOT EXECUTED 12b8ea: 41 inc %ecx <== NOT EXECUTED 12b8eb: eb e7 jmp 12b8d4 <== NOT EXECUTED 12b8ed: 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++) { 12b8f0: c1 e1 02 shl $0x2,%ecx if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 12b8f3: 8b 43 0c mov 0xc(%ebx),%eax 12b8f6: c7 04 08 00 00 00 00 movl $0x0,(%eax,%ecx,1) 12b8fd: b8 01 00 00 00 mov $0x1,%eax return 1; 12b902: e9 24 ff ff ff jmp 12b82b grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12b907: b8 17 00 00 00 mov $0x17,%eax <== NOT EXECUTED 12b90c: eb 9d jmp 12b8ab <== NOT EXECUTED /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 12b90e: b9 04 00 00 00 mov $0x4,%ecx <== NOT EXECUTED 12b913: eb de jmp 12b8f3 <== NOT EXECUTED 0012b954 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 12b954: 55 push %ebp 12b955: 89 e5 mov %esp,%ebp 12b957: 57 push %edi 12b958: 56 push %esi 12b959: 53 push %ebx 12b95a: 83 ec 34 sub $0x34,%esp 12b95d: 89 c6 mov %eax,%esi 12b95f: 89 d3 mov %edx,%ebx 12b961: 89 4d d4 mov %ecx,-0x2c(%ebp) int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12b964: 8d 7d d4 lea -0x2c(%ebp),%edi 12b967: 6a 00 push $0x0 12b969: 8d 45 08 lea 0x8(%ebp),%eax 12b96c: 50 push %eax 12b96d: 89 f9 mov %edi,%ecx 12b96f: 89 f0 mov %esi,%eax 12b971: e8 f6 fd ff ff call 12b76c 12b976: 83 c4 10 add $0x10,%esp 12b979: 85 c0 test %eax,%eax 12b97b: 75 0b jne 12b988 || !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; 12b97d: 31 c0 xor %eax,%eax <== NOT EXECUTED } 12b97f: 8d 65 f4 lea -0xc(%ebp),%esp 12b982: 5b pop %ebx 12b983: 5e pop %esi 12b984: 5f pop %edi 12b985: c9 leave 12b986: c3 ret 12b987: 90 nop <== NOT EXECUTED ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 12b988: 83 ec 08 sub $0x8,%esp 12b98b: 8d 53 04 lea 0x4(%ebx),%edx 12b98e: 6a 00 push $0x0 12b990: 8d 45 08 lea 0x8(%ebp),%eax 12b993: 50 push %eax 12b994: 89 f9 mov %edi,%ecx 12b996: 89 f0 mov %esi,%eax 12b998: e8 cf fd ff ff call 12b76c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12b99d: 83 c4 10 add $0x10,%esp 12b9a0: 85 c0 test %eax,%eax 12b9a2: 74 d9 je 12b97d || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 12b9a4: 8d 55 e4 lea -0x1c(%ebp),%edx 12b9a7: 89 f0 mov %esi,%eax 12b9a9: e8 e6 fc ff ff call 12b694 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12b9ae: 85 c0 test %eax,%eax 12b9b0: 74 cb je 12b97d || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 12b9b2: 8d 55 e0 lea -0x20(%ebp),%edx 12b9b5: 89 f0 mov %esi,%eax 12b9b7: e8 d8 fc ff ff call 12b694 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12b9bc: 85 c0 test %eax,%eax 12b9be: 74 bd je 12b97d || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) 12b9c0: 83 ec 08 sub $0x8,%esp 12b9c3: 8d 53 0c lea 0xc(%ebx),%edx 12b9c6: 6a 00 push $0x0 12b9c8: 8d 45 08 lea 0x8(%ebp),%eax 12b9cb: 50 push %eax 12b9cc: 89 f9 mov %edi,%ecx 12b9ce: 89 f0 mov %esi,%eax 12b9d0: e8 97 fd ff ff call 12b76c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12b9d5: 83 c4 10 add $0x10,%esp 12b9d8: 85 c0 test %eax,%eax 12b9da: 74 a1 je 12b97d || !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) 12b9dc: 83 ec 08 sub $0x8,%esp 12b9df: 8d 53 10 lea 0x10(%ebx),%edx 12b9e2: 6a 00 push $0x0 12b9e4: 8d 45 08 lea 0x8(%ebp),%eax 12b9e7: 50 push %eax 12b9e8: 89 f9 mov %edi,%ecx 12b9ea: 89 f0 mov %esi,%eax 12b9ec: e8 7b fd ff ff call 12b76c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12b9f1: 83 c4 10 add $0x10,%esp 12b9f4: 85 c0 test %eax,%eax 12b9f6: 74 85 je 12b97d || !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) 12b9f8: 83 ec 08 sub $0x8,%esp 12b9fb: 8d 53 14 lea 0x14(%ebx),%edx 12b9fe: 6a 00 push $0x0 12ba00: 8d 45 08 lea 0x8(%ebp),%eax 12ba03: 50 push %eax 12ba04: 89 f9 mov %edi,%ecx 12ba06: 89 f0 mov %esi,%eax 12ba08: e8 5f fd ff ff call 12b76c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12ba0d: 83 c4 10 add $0x10,%esp 12ba10: 85 c0 test %eax,%eax 12ba12: 0f 84 65 ff ff ff je 12b97d || !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)) 12ba18: 83 ec 08 sub $0x8,%esp 12ba1b: 8d 53 18 lea 0x18(%ebx),%edx 12ba1e: 6a 01 push $0x1 12ba20: 8d 45 08 lea 0x8(%ebp),%eax 12ba23: 50 push %eax 12ba24: 89 f9 mov %edi,%ecx 12ba26: 89 f0 mov %esi,%eax 12ba28: e8 3f fd ff ff call 12b76c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 12ba2d: 83 c4 10 add $0x10,%esp 12ba30: 85 c0 test %eax,%eax 12ba32: 0f 84 45 ff ff ff je 12b97d || !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; 12ba38: 8b 45 e4 mov -0x1c(%ebp),%eax 12ba3b: 66 89 43 08 mov %ax,0x8(%ebx) pwd->pw_gid = pwgid; 12ba3f: 8b 45 e0 mov -0x20(%ebp),%eax 12ba42: 66 89 43 0a mov %ax,0xa(%ebx) 12ba46: b8 01 00 00 00 mov $0x1,%eax return 1; 12ba4b: e9 2f ff ff ff jmp 12b97f 0012b640 : */ int setgid( gid_t gid ) { 12b640: 55 push %ebp <== NOT EXECUTED 12b641: 89 e5 mov %esp,%ebp <== NOT EXECUTED _POSIX_types_Gid = gid; 12b643: a1 24 83 16 00 mov 0x168324,%eax <== NOT EXECUTED 12b648: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 12b64b: 66 89 50 34 mov %dx,0x34(%eax) <== NOT EXECUTED return 0; } 12b64f: 31 c0 xor %eax,%eax <== NOT EXECUTED 12b651: c9 leave <== NOT EXECUTED 12b652: c3 ret <== NOT EXECUTED 0012bb8c : return NULL; return &grent; } void setgrent(void) { 12bb8c: 55 push %ebp <== NOT EXECUTED 12bb8d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bb8f: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED init_etc_passwd_group(); 12bb92: e8 f5 fe ff ff call 12ba8c <== NOT EXECUTED if (group_fp != NULL) 12bb97: a1 44 d9 16 00 mov 0x16d944,%eax <== NOT EXECUTED 12bb9c: 85 c0 test %eax,%eax <== NOT EXECUTED 12bb9e: 74 0c je 12bbac <== NOT EXECUTED fclose(group_fp); 12bba0: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bba3: 50 push %eax <== NOT EXECUTED 12bba4: e8 df 59 01 00 call 141588 <== NOT EXECUTED 12bba9: 83 c4 10 add $0x10,%esp <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 12bbac: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12bbaf: 68 cd ad 15 00 push $0x15adcd <== NOT EXECUTED 12bbb4: 68 b7 7a 15 00 push $0x157ab7 <== NOT EXECUTED 12bbb9: e8 e2 61 01 00 call 141da0 <== NOT EXECUTED 12bbbe: a3 44 d9 16 00 mov %eax,0x16d944 <== NOT EXECUTED 12bbc3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 12bbc6: c9 leave <== NOT EXECUTED 12bbc7: c3 ret <== NOT EXECUTED 0012bd58 : return NULL; return &pwent; } void setpwent(void) { 12bd58: 55 push %ebp <== NOT EXECUTED 12bd59: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12bd5b: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED init_etc_passwd_group(); 12bd5e: e8 29 fd ff ff call 12ba8c <== NOT EXECUTED if (passwd_fp != NULL) 12bd63: a1 44 d8 16 00 mov 0x16d844,%eax <== NOT EXECUTED 12bd68: 85 c0 test %eax,%eax <== NOT EXECUTED 12bd6a: 74 0c je 12bd78 <== NOT EXECUTED fclose(passwd_fp); 12bd6c: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12bd6f: 50 push %eax <== NOT EXECUTED 12bd70: e8 13 58 01 00 call 141588 <== NOT EXECUTED 12bd75: 83 c4 10 add $0x10,%esp <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 12bd78: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12bd7b: 68 cd ad 15 00 push $0x15adcd <== NOT EXECUTED 12bd80: 68 ab 7a 15 00 push $0x157aab <== NOT EXECUTED 12bd85: e8 16 60 01 00 call 141da0 <== NOT EXECUTED 12bd8a: a3 44 d8 16 00 mov %eax,0x16d844 <== NOT EXECUTED 12bd8f: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } 12bd92: c9 leave <== NOT EXECUTED 12bd93: c3 ret <== NOT EXECUTED 0010cf74 : */ int setuid( uid_t uid ) { 10cf74: 55 push %ebp <== NOT EXECUTED 10cf75: 89 e5 mov %esp,%ebp <== NOT EXECUTED _POSIX_types_Uid = uid; 10cf77: a1 24 83 16 00 mov 0x168324,%eax <== NOT EXECUTED 10cf7c: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 10cf7f: 66 89 50 32 mov %dx,0x32(%eax) <== NOT EXECUTED return 0; } 10cf83: 31 c0 xor %eax,%eax <== NOT EXECUTED 10cf85: c9 leave <== NOT EXECUTED 10cf86: c3 ret <== NOT EXECUTED 00109aac : /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 109aac: 55 push %ebp <== NOT EXECUTED 109aad: 89 e5 mov %esp,%ebp <== NOT EXECUTED 109aaf: 56 push %esi <== NOT EXECUTED 109ab0: 53 push %ebx <== NOT EXECUTED 109ab1: 89 d3 mov %edx,%ebx <== NOT EXECUTED 109ab3: 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)) { 109ab5: f7 42 3c 78 0e 00 00 testl $0xe78,0x3c(%edx) <== NOT EXECUTED 109abc: 75 12 jne 109ad0 <== 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); 109abe: 0f b6 c0 movzbl %al,%eax <== NOT EXECUTED 109ac1: 89 da mov %ebx,%edx <== NOT EXECUTED } return i; } 109ac3: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 109ac6: 5b pop %ebx <== NOT EXECUTED 109ac7: 5e pop %esi <== NOT EXECUTED 109ac8: 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); 109ac9: e9 a2 fe ff ff jmp 109970 <== NOT EXECUTED 109ace: 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); 109ad0: 52 push %edx <== NOT EXECUTED 109ad1: 6a 00 push $0x0 <== NOT EXECUTED 109ad3: 6a 00 push $0x0 <== NOT EXECUTED 109ad5: ff 73 18 pushl 0x18(%ebx) <== NOT EXECUTED 109ad8: e8 c3 1a 00 00 call 10b5a0 <== NOT EXECUTED i = iproc (c, tty); 109add: 89 f2 mov %esi,%edx <== NOT EXECUTED 109adf: 0f b6 c2 movzbl %dl,%eax <== NOT EXECUTED 109ae2: 89 da mov %ebx,%edx <== NOT EXECUTED 109ae4: e8 87 fe ff ff call 109970 <== NOT EXECUTED 109ae9: 89 c6 mov %eax,%esi <== NOT EXECUTED rtems_semaphore_release (tty->osem); 109aeb: 58 pop %eax <== NOT EXECUTED 109aec: ff 73 18 pushl 0x18(%ebx) <== NOT EXECUTED 109aef: e8 a8 1b 00 00 call 10b69c <== NOT EXECUTED 109af4: 83 c4 10 add $0x10,%esp <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 109af7: 89 f0 mov %esi,%eax <== NOT EXECUTED 109af9: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 109afc: 5b pop %ebx <== NOT EXECUTED 109afd: 5e pop %esi <== NOT EXECUTED 109afe: c9 leave <== NOT EXECUTED 109aff: c3 ret <== NOT EXECUTED 0010e34c : int _STAT_NAME( const char *path, struct stat *buf ) { 10e34c: 55 push %ebp 10e34d: 89 e5 mov %esp,%ebp 10e34f: 57 push %edi 10e350: 56 push %esi 10e351: 53 push %ebx 10e352: 83 ec 2c sub $0x2c,%esp 10e355: 8b 55 08 mov 0x8(%ebp),%edx 10e358: 8b 75 0c mov 0xc(%ebp),%esi /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 10e35b: 85 f6 test %esi,%esi 10e35d: 0f 84 9d 00 00 00 je 10e400 rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 10e363: b9 ff ff ff ff mov $0xffffffff,%ecx 10e368: 89 d7 mov %edx,%edi 10e36a: 31 c0 xor %eax,%eax 10e36c: f2 ae repnz scas %es:(%edi),%al 10e36e: f7 d1 not %ecx 10e370: 49 dec %ecx 10e371: 83 ec 0c sub $0xc,%esp 10e374: 6a 01 push $0x1 10e376: 8d 5d d4 lea -0x2c(%ebp),%ebx 10e379: 53 push %ebx 10e37a: 6a 00 push $0x0 10e37c: 51 push %ecx 10e37d: 52 push %edx 10e37e: e8 29 ea ff ff call 10cdac 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 10e383: 83 c4 20 add $0x20,%esp 10e386: 85 c0 test %eax,%eax 10e388: 75 66 jne 10e3f0 return -1; if ( !loc.handlers->fstat_h ){ 10e38a: 8b 55 dc mov -0x24(%ebp),%edx 10e38d: 8b 42 18 mov 0x18(%edx),%eax 10e390: 85 c0 test %eax,%eax 10e392: 74 39 je 10e3cd /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 10e394: b9 48 00 00 00 mov $0x48,%ecx 10e399: 89 f7 mov %esi,%edi 10e39b: 31 c0 xor %eax,%eax 10e39d: f3 aa rep stos %al,%es:(%edi) status = (*loc.handlers->fstat_h)( &loc, buf ); 10e39f: 83 ec 08 sub $0x8,%esp 10e3a2: 56 push %esi 10e3a3: 53 push %ebx 10e3a4: ff 52 18 call *0x18(%edx) 10e3a7: 89 c6 mov %eax,%esi rtems_filesystem_freenode( &loc ); 10e3a9: 8b 45 e0 mov -0x20(%ebp),%eax 10e3ac: 83 c4 10 add $0x10,%esp 10e3af: 85 c0 test %eax,%eax 10e3b1: 74 10 je 10e3c3 10e3b3: 8b 40 1c mov 0x1c(%eax),%eax 10e3b6: 85 c0 test %eax,%eax 10e3b8: 74 09 je 10e3c3 10e3ba: 83 ec 0c sub $0xc,%esp 10e3bd: 53 push %ebx 10e3be: ff d0 call *%eax 10e3c0: 83 c4 10 add $0x10,%esp return status; } 10e3c3: 89 f0 mov %esi,%eax 10e3c5: 8d 65 f4 lea -0xc(%ebp),%esp 10e3c8: 5b pop %ebx 10e3c9: 5e pop %esi 10e3ca: 5f pop %edi 10e3cb: c9 leave 10e3cc: c3 ret 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 10e3cd: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 10e3d0: 85 c0 test %eax,%eax <== NOT EXECUTED 10e3d2: 74 10 je 10e3e4 <== NOT EXECUTED 10e3d4: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 10e3d7: 85 c0 test %eax,%eax <== NOT EXECUTED 10e3d9: 74 09 je 10e3e4 <== NOT EXECUTED 10e3db: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 10e3de: 53 push %ebx <== NOT EXECUTED 10e3df: ff d0 call *%eax <== NOT EXECUTED 10e3e1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 10e3e4: e8 53 30 03 00 call 14143c <__errno> <== NOT EXECUTED 10e3e9: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10e3ef: 90 nop <== NOT EXECUTED 10e3f0: be ff ff ff ff mov $0xffffffff,%esi status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 10e3f5: 89 f0 mov %esi,%eax 10e3f7: 8d 65 f4 lea -0xc(%ebp),%esp 10e3fa: 5b pop %ebx 10e3fb: 5e pop %esi 10e3fc: 5f pop %edi 10e3fd: c9 leave 10e3fe: c3 ret 10e3ff: 90 nop <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 10e400: e8 37 30 03 00 call 14143c <__errno> 10e405: c7 00 0e 00 00 00 movl $0xe,(%eax) 10e40b: be ff ff ff ff mov $0xffffffff,%esi status = (*loc.handlers->fstat_h)( &loc, buf ); rtems_filesystem_freenode( &loc ); return status; } 10e410: 89 f0 mov %esi,%eax 10e412: 8d 65 f4 lea -0xc(%ebp),%esp 10e415: 5b pop %ebx 10e416: 5e pop %esi 10e417: 5f pop %edi 10e418: c9 leave 10e419: c3 ret 0012c91c : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 12c91c: 55 push %ebp <== NOT EXECUTED 12c91d: 89 e5 mov %esp,%ebp <== NOT EXECUTED 12c91f: 57 push %edi <== NOT EXECUTED 12c920: 56 push %esi <== NOT EXECUTED 12c921: 53 push %ebx <== NOT EXECUTED 12c922: 83 ec 38 sub $0x38,%esp <== NOT EXECUTED 12c925: 8b 55 08 mov 0x8(%ebp),%edx <== NOT EXECUTED 12c928: 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 ) ) 12c92b: b9 ff ff ff ff mov $0xffffffff,%ecx <== NOT EXECUTED 12c930: 89 d7 mov %edx,%edi <== NOT EXECUTED 12c932: 31 c0 xor %eax,%eax <== NOT EXECUTED 12c934: f2 ae repnz scas %es:(%edi),%al <== NOT EXECUTED 12c936: f7 d1 not %ecx <== NOT EXECUTED 12c938: 49 dec %ecx <== NOT EXECUTED 12c939: 6a 01 push $0x1 <== NOT EXECUTED 12c93b: 8d 5d d4 lea -0x2c(%ebp),%ebx <== NOT EXECUTED 12c93e: 53 push %ebx <== NOT EXECUTED 12c93f: 6a 00 push $0x0 <== NOT EXECUTED 12c941: 51 push %ecx <== NOT EXECUTED 12c942: 52 push %edx <== NOT EXECUTED 12c943: e8 64 04 fe ff call 10cdac <== NOT EXECUTED 12c948: 83 c4 20 add $0x20,%esp <== NOT EXECUTED 12c94b: 85 c0 test %eax,%eax <== NOT EXECUTED 12c94d: 75 59 jne 12c9a8 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 12c94f: 8b 55 e4 mov -0x1c(%ebp),%edx <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; 12c952: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED 12c955: 8b 40 44 mov 0x44(%eax),%eax <== NOT EXECUTED 12c958: 85 c0 test %eax,%eax <== NOT EXECUTED 12c95a: 74 3f je 12c99b <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); memset (sb, 0, sizeof (struct statvfs)); 12c95c: b9 38 00 00 00 mov $0x38,%ecx <== NOT EXECUTED 12c961: 89 f7 mov %esi,%edi <== NOT EXECUTED 12c963: 31 c0 xor %eax,%eax <== NOT EXECUTED 12c965: f3 aa rep stos %al,%es:(%edi) <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 12c967: 83 ec 08 sub $0x8,%esp <== NOT EXECUTED 12c96a: 8b 42 28 mov 0x28(%edx),%eax <== NOT EXECUTED 12c96d: 56 push %esi <== NOT EXECUTED 12c96e: 83 c2 1c add $0x1c,%edx <== NOT EXECUTED 12c971: 52 push %edx <== NOT EXECUTED 12c972: ff 50 44 call *0x44(%eax) <== NOT EXECUTED 12c975: 89 c6 mov %eax,%esi <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 12c977: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 12c97a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12c97d: 85 c0 test %eax,%eax <== NOT EXECUTED 12c97f: 74 10 je 12c991 <== NOT EXECUTED 12c981: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 12c984: 85 c0 test %eax,%eax <== NOT EXECUTED 12c986: 74 09 je 12c991 <== NOT EXECUTED 12c988: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12c98b: 53 push %ebx <== NOT EXECUTED 12c98c: ff d0 call *%eax <== NOT EXECUTED 12c98e: 83 c4 10 add $0x10,%esp <== NOT EXECUTED return result; } 12c991: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c993: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c996: 5b pop %ebx <== NOT EXECUTED 12c997: 5e pop %esi <== NOT EXECUTED 12c998: 5f pop %edi <== NOT EXECUTED 12c999: c9 leave <== NOT EXECUTED 12c99a: 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 ); 12c99b: e8 9c 4a 01 00 call 14143c <__errno> <== NOT EXECUTED 12c9a0: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12c9a6: 66 90 xchg %ax,%ax <== NOT EXECUTED 12c9a8: 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; } 12c9ad: 89 f0 mov %esi,%eax <== NOT EXECUTED 12c9af: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 12c9b2: 5b pop %ebx <== NOT EXECUTED 12c9b3: 5e pop %esi <== NOT EXECUTED 12c9b4: 5f pop %edi <== NOT EXECUTED 12c9b5: c9 leave <== NOT EXECUTED 12c9b6: c3 ret <== NOT EXECUTED 0012c9b8 : int symlink( const char *actualpath, const char *sympath ) { 12c9b8: 55 push %ebp 12c9b9: 89 e5 mov %esp,%ebp 12c9bb: 57 push %edi 12c9bc: 56 push %esi 12c9bd: 53 push %ebx 12c9be: 83 ec 2c sub $0x2c,%esp 12c9c1: 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 ); 12c9c4: 8a 10 mov (%eax),%dl 12c9c6: 80 fa 2f cmp $0x2f,%dl 12c9c9: 74 09 je 12c9d4 12c9cb: 80 fa 5c cmp $0x5c,%dl 12c9ce: 74 04 je 12c9d4 12c9d0: 84 d2 test %dl,%dl 12c9d2: 75 70 jne 12ca44 12c9d4: 8d 5d d0 lea -0x30(%ebp),%ebx 12c9d7: 8b 35 24 83 16 00 mov 0x168324,%esi 12c9dd: 83 c6 18 add $0x18,%esi 12c9e0: b9 05 00 00 00 mov $0x5,%ecx 12c9e5: 89 df mov %ebx,%edi 12c9e7: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 12c9e9: b1 01 mov $0x1,%cl if ( !loc.ops->evalformake_h ) { 12c9eb: 8b 55 dc mov -0x24(%ebp),%edx 12c9ee: 8b 52 04 mov 0x4(%edx),%edx 12c9f1: 85 d2 test %edx,%edx 12c9f3: 74 6e je 12ca63 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 12c9f5: 56 push %esi 12c9f6: 8d 75 e4 lea -0x1c(%ebp),%esi 12c9f9: 56 push %esi 12c9fa: 53 push %ebx 12c9fb: 01 c8 add %ecx,%eax 12c9fd: 50 push %eax 12c9fe: ff d2 call *%edx if ( result != 0 ) 12ca00: 83 c4 10 add $0x10,%esp 12ca03: 85 c0 test %eax,%eax 12ca05: 75 67 jne 12ca6e return -1; if ( !loc.ops->symlink_h ) { 12ca07: 8b 55 dc mov -0x24(%ebp),%edx 12ca0a: 8b 42 38 mov 0x38(%edx),%eax 12ca0d: 85 c0 test %eax,%eax 12ca0f: 74 6c je 12ca7d rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 12ca11: 52 push %edx 12ca12: ff 75 e4 pushl -0x1c(%ebp) 12ca15: ff 75 08 pushl 0x8(%ebp) 12ca18: 53 push %ebx 12ca19: ff d0 call *%eax 12ca1b: 89 c6 mov %eax,%esi rtems_filesystem_freenode( &loc ); 12ca1d: 8b 45 dc mov -0x24(%ebp),%eax 12ca20: 83 c4 10 add $0x10,%esp 12ca23: 85 c0 test %eax,%eax 12ca25: 74 10 je 12ca37 12ca27: 8b 40 1c mov 0x1c(%eax),%eax 12ca2a: 85 c0 test %eax,%eax 12ca2c: 74 09 je 12ca37 12ca2e: 83 ec 0c sub $0xc,%esp 12ca31: 53 push %ebx 12ca32: ff d0 call *%eax 12ca34: 83 c4 10 add $0x10,%esp return result; } 12ca37: 89 f0 mov %esi,%eax 12ca39: 8d 65 f4 lea -0xc(%ebp),%esp 12ca3c: 5b pop %ebx 12ca3d: 5e pop %esi 12ca3e: 5f pop %edi 12ca3f: c9 leave 12ca40: c3 ret 12ca41: 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 ); 12ca44: 8d 5d d0 lea -0x30(%ebp),%ebx 12ca47: 8b 35 24 83 16 00 mov 0x168324,%esi 12ca4d: 83 c6 04 add $0x4,%esi 12ca50: b9 05 00 00 00 mov $0x5,%ecx 12ca55: 89 df mov %ebx,%edi 12ca57: f3 a5 rep movsl %ds:(%esi),%es:(%edi) if ( !loc.ops->evalformake_h ) { 12ca59: 8b 55 dc mov -0x24(%ebp),%edx 12ca5c: 8b 52 04 mov 0x4(%edx),%edx 12ca5f: 85 d2 test %edx,%edx 12ca61: 75 92 jne 12c9f5 if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); 12ca63: e8 d4 49 01 00 call 14143c <__errno> <== NOT EXECUTED 12ca68: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12ca6e: be ff ff ff ff mov $0xffffffff,%esi result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); rtems_filesystem_freenode( &loc ); return result; } 12ca73: 89 f0 mov %esi,%eax 12ca75: 8d 65 f4 lea -0xc(%ebp),%esp 12ca78: 5b pop %ebx 12ca79: 5e pop %esi 12ca7a: 5f pop %edi 12ca7b: c9 leave 12ca7c: 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 ); 12ca7d: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12ca80: 85 c0 test %eax,%eax <== NOT EXECUTED 12ca82: 74 df je 12ca63 <== NOT EXECUTED 12ca84: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12ca87: 53 push %ebx <== NOT EXECUTED 12ca88: ff d0 call *%eax <== NOT EXECUTED 12ca8a: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 12ca8d: eb d4 jmp 12ca63 <== NOT EXECUTED 0011708c : int tcsetattr( int fd, int opt, struct termios *tp ) { 11708c: 55 push %ebp 11708d: 89 e5 mov %esp,%ebp 11708f: 56 push %esi 117090: 53 push %ebx 117091: 8b 5d 08 mov 0x8(%ebp),%ebx 117094: 8b 45 0c mov 0xc(%ebp),%eax 117097: 8b 75 10 mov 0x10(%ebp),%esi switch (opt) { 11709a: 85 c0 test %eax,%eax 11709c: 74 2c je 1170ca 11709e: 48 dec %eax <== NOT EXECUTED 11709f: 74 17 je 1170b8 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 1170a1: e8 fa 38 00 00 call 11a9a0 <__errno> <== NOT EXECUTED 1170a6: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } 1170ac: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 1170b1: 8d 65 f8 lea -0x8(%ebp),%esp <== NOT EXECUTED 1170b4: 5b pop %ebx <== NOT EXECUTED 1170b5: 5e pop %esi <== NOT EXECUTED 1170b6: c9 leave <== NOT EXECUTED 1170b7: 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) 1170b8: 50 push %eax <== NOT EXECUTED 1170b9: 6a 00 push $0x0 <== NOT EXECUTED 1170bb: 6a 03 push $0x3 <== NOT EXECUTED 1170bd: 53 push %ebx <== NOT EXECUTED 1170be: e8 8d 2c 00 00 call 119d50 <== NOT EXECUTED 1170c3: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1170c6: 85 c0 test %eax,%eax <== NOT EXECUTED 1170c8: 78 e2 js 1170ac <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 1170ca: 89 75 10 mov %esi,0x10(%ebp) 1170cd: c7 45 0c 02 00 00 00 movl $0x2,0xc(%ebp) 1170d4: 89 5d 08 mov %ebx,0x8(%ebp) } } 1170d7: 8d 65 f8 lea -0x8(%ebp),%esp 1170da: 5b pop %ebx 1170db: 5e pop %esi 1170dc: c9 leave return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 1170dd: e9 6e 2c 00 00 jmp 119d50 0010d3a8 : int truncate( const char *path, off_t length ) { 10d3a8: 55 push %ebp 10d3a9: 89 e5 mov %esp,%ebp 10d3ab: 57 push %edi 10d3ac: 56 push %esi 10d3ad: 53 push %ebx 10d3ae: 83 ec 14 sub $0x14,%esp 10d3b1: 8b 75 0c mov 0xc(%ebp),%esi 10d3b4: 8b 7d 10 mov 0x10(%ebp),%edi int status; int fd; fd = open( path, O_WRONLY ); 10d3b7: 6a 01 push $0x1 10d3b9: ff 75 08 pushl 0x8(%ebp) 10d3bc: e8 df db ff ff call 10afa0 10d3c1: 89 c3 mov %eax,%ebx if ( fd == -1 ) 10d3c3: 83 c4 10 add $0x10,%esp 10d3c6: 83 f8 ff cmp $0xffffffff,%eax 10d3c9: 74 21 je 10d3ec return -1; status = ftruncate( fd, length ); 10d3cb: 50 push %eax 10d3cc: 57 push %edi 10d3cd: 56 push %esi 10d3ce: 53 push %ebx 10d3cf: e8 2c 5d 00 00 call 113100 10d3d4: 89 c6 mov %eax,%esi (void) close( fd ); 10d3d6: 89 1c 24 mov %ebx,(%esp) 10d3d9: e8 56 ca ff ff call 109e34 return status; 10d3de: 83 c4 10 add $0x10,%esp } 10d3e1: 89 f0 mov %esi,%eax 10d3e3: 8d 65 f4 lea -0xc(%ebp),%esp 10d3e6: 5b pop %ebx 10d3e7: 5e pop %esi 10d3e8: 5f pop %edi 10d3e9: c9 leave 10d3ea: c3 ret 10d3eb: 90 nop <== NOT EXECUTED { int status; int fd; fd = open( path, O_WRONLY ); if ( fd == -1 ) 10d3ec: be ff ff ff ff mov $0xffffffff,%esi status = ftruncate( fd, length ); (void) close( fd ); return status; } 10d3f1: 89 f0 mov %esi,%eax 10d3f3: 8d 65 f4 lea -0xc(%ebp),%esp 10d3f6: 5b pop %ebx 10d3f7: 5e pop %esi 10d3f8: 5f pop %edi 10d3f9: c9 leave 10d3fa: c3 ret 00112124 : #include int unlink( const char *path ) { 112124: 55 push %ebp 112125: 89 e5 mov %esp,%ebp 112127: 57 push %edi 112128: 56 push %esi 112129: 53 push %ebx 11212a: 83 ec 58 sub $0x58,%esp 11212d: 8b 55 08 mov 0x8(%ebp),%edx /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 112130: 52 push %edx 112131: 89 55 ac mov %edx,-0x54(%ebp) 112134: e8 0b 5d ff ff call 107e44 112139: 89 c3 mov %eax,%ebx if ( parentpathlen == 0 ) 11213b: 83 c4 10 add $0x10,%esp 11213e: 85 c0 test %eax,%eax 112140: 8b 55 ac mov -0x54(%ebp),%edx 112143: 0f 85 7b 01 00 00 jne 1122c4 rtems_filesystem_get_start_loc( path, &i, &parentloc ); 112149: 8a 02 mov (%edx),%al 11214b: 3c 2f cmp $0x2f,%al 11214d: 74 0c je 11215b 11214f: 3c 5c cmp $0x5c,%al <== NOT EXECUTED 112151: 74 08 je 11215b <== NOT EXECUTED 112153: 84 c0 test %al,%al <== NOT EXECUTED 112155: 0f 85 ed 00 00 00 jne 112248 <== NOT EXECUTED 11215b: 8d 45 d4 lea -0x2c(%ebp),%eax 11215e: 89 45 b4 mov %eax,-0x4c(%ebp) 112161: 8b 35 18 30 12 00 mov 0x123018,%esi 112167: 83 c6 18 add $0x18,%esi 11216a: b9 05 00 00 00 mov $0x5,%ecx 11216f: 89 c7 mov %eax,%edi 112171: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 112173: c6 45 b3 00 movb $0x0,-0x4d(%ebp) /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 112177: 8d 7d c0 lea -0x40(%ebp),%edi 11217a: b9 05 00 00 00 mov $0x5,%ecx 11217f: 8b 75 b4 mov -0x4c(%ebp),%esi 112182: f3 a5 rep movsl %ds:(%esi),%es:(%edi) name = path + parentpathlen; 112184: 8d 1c 1a lea (%edx,%ebx,1),%ebx name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 112187: be ff ff ff ff mov $0xffffffff,%esi 11218c: 89 f1 mov %esi,%ecx 11218e: 89 df mov %ebx,%edi 112190: 31 c0 xor %eax,%eax 112192: f2 ae repnz scas %es:(%edi),%al 112194: f7 d1 not %ecx 112196: 49 dec %ecx 112197: 83 ec 08 sub $0x8,%esp 11219a: 51 push %ecx 11219b: 53 push %ebx 11219c: e8 67 5c ff ff call 107e08 1121a1: 01 c3 add %eax,%ebx result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 1121a3: 89 f1 mov %esi,%ecx 1121a5: 89 df mov %ebx,%edi 1121a7: 31 c0 xor %eax,%eax 1121a9: f2 ae repnz scas %es:(%edi),%al 1121ab: f7 d1 not %ecx 1121ad: 49 dec %ecx 1121ae: c7 04 24 00 00 00 00 movl $0x0,(%esp) 1121b5: 8d 75 c0 lea -0x40(%ebp),%esi 1121b8: 56 push %esi 1121b9: 6a 00 push $0x0 1121bb: 51 push %ecx 1121bc: 53 push %ebx 1121bd: e8 d2 5c ff ff call 107e94 0, &loc, false ); if ( result != 0 ) { 1121c2: 83 c4 20 add $0x20,%esp 1121c5: 85 c0 test %eax,%eax 1121c7: 0f 85 9f 00 00 00 jne 11226c if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return -1; } if ( !loc.ops->node_type_h ) { 1121cd: 8b 55 cc mov -0x34(%ebp),%edx 1121d0: 8b 42 10 mov 0x10(%edx),%eax 1121d3: 85 c0 test %eax,%eax 1121d5: 0f 84 a5 00 00 00 je 112280 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 ) { 1121db: 83 ec 0c sub $0xc,%esp 1121de: 56 push %esi 1121df: ff d0 call *%eax 1121e1: 83 c4 10 add $0x10,%esp 1121e4: 48 dec %eax 1121e5: 0f 84 05 01 00 00 je 1122f0 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { 1121eb: 8b 55 cc mov -0x34(%ebp),%edx 1121ee: 8b 42 0c mov 0xc(%edx),%eax 1121f1: 85 c0 test %eax,%eax 1121f3: 0f 84 87 00 00 00 je 112280 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 1121f9: 83 ec 08 sub $0x8,%esp 1121fc: 56 push %esi 1121fd: ff 75 b4 pushl -0x4c(%ebp) 112200: ff d0 call *%eax 112202: 89 c3 mov %eax,%ebx rtems_filesystem_freenode( &loc ); 112204: 8b 45 cc mov -0x34(%ebp),%eax 112207: 83 c4 10 add $0x10,%esp 11220a: 85 c0 test %eax,%eax 11220c: 74 10 je 11221e 11220e: 8b 40 1c mov 0x1c(%eax),%eax 112211: 85 c0 test %eax,%eax 112213: 74 09 je 11221e 112215: 83 ec 0c sub $0xc,%esp 112218: 56 push %esi 112219: ff d0 call *%eax 11221b: 83 c4 10 add $0x10,%esp if ( free_parentloc ) 11221e: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 112222: 74 19 je 11223d rtems_filesystem_freenode( &parentloc ); 112224: 8b 45 e0 mov -0x20(%ebp),%eax 112227: 85 c0 test %eax,%eax 112229: 74 12 je 11223d 11222b: 8b 40 1c mov 0x1c(%eax),%eax 11222e: 85 c0 test %eax,%eax 112230: 74 0b je 11223d 112232: 83 ec 0c sub $0xc,%esp 112235: ff 75 b4 pushl -0x4c(%ebp) 112238: ff d0 call *%eax 11223a: 83 c4 10 add $0x10,%esp return result; } 11223d: 89 d8 mov %ebx,%eax 11223f: 8d 65 f4 lea -0xc(%ebp),%esp 112242: 5b pop %ebx 112243: 5e pop %esi 112244: 5f pop %edi 112245: c9 leave 112246: c3 ret 112247: 90 nop <== NOT EXECUTED */ parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); 112248: 8d 45 d4 lea -0x2c(%ebp),%eax <== NOT EXECUTED 11224b: 89 45 b4 mov %eax,-0x4c(%ebp) <== NOT EXECUTED 11224e: 8b 35 18 30 12 00 mov 0x123018,%esi <== NOT EXECUTED 112254: 83 c6 04 add $0x4,%esi <== NOT EXECUTED 112257: b9 05 00 00 00 mov $0x5,%ecx <== NOT EXECUTED 11225c: 89 c7 mov %eax,%edi <== NOT EXECUTED 11225e: f3 a5 rep movsl %ds:(%esi),%es:(%edi) <== NOT EXECUTED 112260: c6 45 b3 00 movb $0x0,-0x4d(%ebp) <== NOT EXECUTED 112264: e9 0e ff ff ff jmp 112177 <== NOT EXECUTED 112269: 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 ) 11226c: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 112270: 0f 85 c5 00 00 00 jne 11233b result = (*loc.ops->unlink_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 112276: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 11227b: eb c0 jmp 11223d <== NOT EXECUTED 11227d: 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 ); 112280: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 112283: 85 c0 test %eax,%eax <== NOT EXECUTED 112285: 74 09 je 112290 <== NOT EXECUTED 112287: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11228a: 56 push %esi <== NOT EXECUTED 11228b: ff d0 call *%eax <== NOT EXECUTED 11228d: 83 c4 10 add $0x10,%esp <== NOT EXECUTED if ( free_parentloc ) 112290: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) <== NOT EXECUTED 112294: 74 19 je 1122af <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 112296: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 112299: 85 c0 test %eax,%eax <== NOT EXECUTED 11229b: 74 12 je 1122af <== NOT EXECUTED 11229d: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 1122a0: 85 c0 test %eax,%eax <== NOT EXECUTED 1122a2: 74 0b je 1122af <== NOT EXECUTED 1122a4: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1122a7: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED 1122aa: ff d0 call *%eax <== NOT EXECUTED 1122ac: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 1122af: e8 44 01 00 00 call 1123f8 <__errno> <== NOT EXECUTED 1122b4: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 1122ba: bb ff ff ff ff mov $0xffffffff,%ebx <== NOT EXECUTED 1122bf: e9 79 ff ff ff jmp 11223d <== 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, 1122c4: 83 ec 0c sub $0xc,%esp 1122c7: 6a 00 push $0x0 1122c9: 8d 45 d4 lea -0x2c(%ebp),%eax 1122cc: 89 45 b4 mov %eax,-0x4c(%ebp) 1122cf: 50 push %eax 1122d0: 6a 02 push $0x2 1122d2: 53 push %ebx 1122d3: 52 push %edx 1122d4: 89 55 ac mov %edx,-0x54(%ebp) 1122d7: e8 8c 5c ff ff call 107f68 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 1122dc: 83 c4 20 add $0x20,%esp 1122df: 85 c0 test %eax,%eax 1122e1: 8b 55 ac mov -0x54(%ebp),%edx 1122e4: 75 90 jne 112276 1122e6: c6 45 b3 01 movb $0x1,-0x4d(%ebp) 1122ea: e9 88 fe ff ff jmp 112177 1122ef: 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 ); 1122f0: 8b 45 cc mov -0x34(%ebp),%eax 1122f3: 85 c0 test %eax,%eax 1122f5: 74 10 je 112307 1122f7: 8b 40 1c mov 0x1c(%eax),%eax 1122fa: 85 c0 test %eax,%eax 1122fc: 74 09 je 112307 1122fe: 83 ec 0c sub $0xc,%esp 112301: 56 push %esi 112302: ff d0 call *%eax 112304: 83 c4 10 add $0x10,%esp if ( free_parentloc ) 112307: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 11230b: 74 19 je 112326 rtems_filesystem_freenode( &parentloc ); 11230d: 8b 45 e0 mov -0x20(%ebp),%eax <== NOT EXECUTED 112310: 85 c0 test %eax,%eax <== NOT EXECUTED 112312: 74 12 je 112326 <== NOT EXECUTED 112314: 8b 40 1c mov 0x1c(%eax),%eax <== NOT EXECUTED 112317: 85 c0 test %eax,%eax <== NOT EXECUTED 112319: 74 0b je 112326 <== NOT EXECUTED 11231b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 11231e: ff 75 b4 pushl -0x4c(%ebp) <== NOT EXECUTED 112321: ff d0 call *%eax <== NOT EXECUTED 112323: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 112326: e8 cd 00 00 00 call 1123f8 <__errno> 11232b: c7 00 15 00 00 00 movl $0x15,(%eax) 112331: bb ff ff ff ff mov $0xffffffff,%ebx 112336: e9 02 ff ff ff jmp 11223d result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 11233b: 8b 45 e0 mov -0x20(%ebp),%eax 11233e: 85 c0 test %eax,%eax 112340: 0f 84 30 ff ff ff je 112276 112346: 8b 40 1c mov 0x1c(%eax),%eax 112349: 85 c0 test %eax,%eax 11234b: 0f 84 25 ff ff ff je 112276 112351: 83 ec 0c sub $0xc,%esp 112354: ff 75 b4 pushl -0x4c(%ebp) 112357: ff d0 call *%eax 112359: 83 cb ff or $0xffffffff,%ebx 11235c: 83 c4 10 add $0x10,%esp 11235f: e9 d9 fe ff ff jmp 11223d 00110458 : */ int unmount( const char *path ) { 110458: 55 push %ebp 110459: 89 e5 mov %esp,%ebp 11045b: 57 push %edi 11045c: 56 push %esi 11045d: 53 push %ebx 11045e: 83 ec 38 sub $0x38,%esp 110461: 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 ) ) 110464: 31 c0 xor %eax,%eax 110466: b9 ff ff ff ff mov $0xffffffff,%ecx 11046b: 89 d7 mov %edx,%edi 11046d: f2 ae repnz scas %es:(%edi),%al 11046f: f7 d1 not %ecx 110471: 49 dec %ecx 110472: 6a 01 push $0x1 110474: 8d 75 d4 lea -0x2c(%ebp),%esi 110477: 56 push %esi 110478: 6a 00 push $0x0 11047a: 51 push %ecx 11047b: 52 push %edx 11047c: e8 2b c9 ff ff call 10cdac 110481: 83 c4 20 add $0x20,%esp 110484: 85 c0 test %eax,%eax 110486: 0f 85 92 00 00 00 jne 11051e return -1; mt_entry = loc.mt_entry; 11048c: 8b 5d e4 mov -0x1c(%ebp),%ebx fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; 11048f: 8b 43 1c mov 0x1c(%ebx),%eax 110492: 3b 45 d4 cmp -0x2c(%ebp),%eax 110495: 0f 85 a9 00 00 00 jne 110544 /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 11049b: 8b 45 e0 mov -0x20(%ebp),%eax 11049e: 85 c0 test %eax,%eax 1104a0: 74 10 je 1104b2 1104a2: 8b 40 1c mov 0x1c(%eax),%eax 1104a5: 85 c0 test %eax,%eax 1104a7: 74 09 je 1104b2 1104a9: 83 ec 0c sub $0xc,%esp 1104ac: 56 push %esi 1104ad: ff d0 call *%eax 1104af: 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; 1104b2: 8b 43 14 mov 0x14(%ebx),%eax 1104b5: 8b 50 28 mov 0x28(%eax),%edx 1104b8: 85 d2 test %edx,%edx 1104ba: 0f 84 20 01 00 00 je 1105e0 fs_root_loc = &mt_entry->mt_fs_root; 1104c0: 8b 43 28 mov 0x28(%ebx),%eax 1104c3: 8b 40 2c mov 0x2c(%eax),%eax 1104c6: 85 c0 test %eax,%eax 1104c8: 0f 84 12 01 00 00 je 1105e0 * 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 ) 1104ce: a1 24 83 16 00 mov 0x168324,%eax 1104d3: 39 58 14 cmp %ebx,0x14(%eax) 1104d6: 74 54 je 11052c /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 1104d8: a1 ac dd 16 00 mov 0x16ddac,%eax 1104dd: 3d b0 dd 16 00 cmp $0x16ddb0,%eax 1104e2: 74 1a je 1104fe !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 ) { 1104e4: 8b 53 2c mov 0x2c(%ebx),%edx 1104e7: 39 50 18 cmp %edx,0x18(%eax) 1104ea: 75 09 jne 1104f5 1104ec: eb 3e jmp 11052c <== NOT EXECUTED 1104ee: 66 90 xchg %ax,%ax <== NOT EXECUTED 1104f0: 3b 50 18 cmp 0x18(%eax),%edx 1104f3: 74 37 je 11052c * 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 ) { 1104f5: 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; 1104f7: 3d b0 dd 16 00 cmp $0x16ddb0,%eax 1104fc: 75 f2 jne 1104f0 * 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 ) 1104fe: 83 ec 0c sub $0xc,%esp 110501: 53 push %ebx 110502: e8 c9 cb ff ff call 10d0d0 110507: 83 c4 10 add $0x10,%esp 11050a: 48 dec %eax 11050b: 74 1f je 11052c * 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 ) 11050d: 83 ec 0c sub $0xc,%esp 110510: 8b 43 14 mov 0x14(%ebx),%eax 110513: 53 push %ebx 110514: ff 50 28 call *0x28(%eax) 110517: 83 c4 10 add $0x10,%esp 11051a: 85 c0 test %eax,%eax 11051c: 74 56 je 110574 */ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; 11051e: b8 ff ff ff ff mov $0xffffffff,%eax } 110523: 8d 65 f4 lea -0xc(%ebp),%esp 110526: 5b pop %ebx 110527: 5e pop %esi 110528: 5f pop %edi 110529: c9 leave 11052a: c3 ret 11052b: 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 ); 11052c: e8 0b 0f 03 00 call 14143c <__errno> 110531: c7 00 10 00 00 00 movl $0x10,(%eax) 110537: b8 ff ff ff ff mov $0xffffffff,%eax rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 11053c: 8d 65 f4 lea -0xc(%ebp),%esp 11053f: 5b pop %ebx 110540: 5e pop %esi 110541: 5f pop %edi 110542: c9 leave 110543: 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 ); 110544: 8b 45 e0 mov -0x20(%ebp),%eax 110547: 85 c0 test %eax,%eax 110549: 74 10 je 11055b 11054b: 8b 40 1c mov 0x1c(%eax),%eax 11054e: 85 c0 test %eax,%eax 110550: 74 09 je 11055b 110552: 83 ec 0c sub $0xc,%esp 110555: 56 push %esi 110556: ff d0 call *%eax 110558: 83 c4 10 add $0x10,%esp rtems_set_errno_and_return_minus_one( EACCES ); 11055b: e8 dc 0e 03 00 call 14143c <__errno> 110560: c7 00 0d 00 00 00 movl $0xd,(%eax) 110566: b8 ff ff ff ff mov $0xffffffff,%eax rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; } 11056b: 8d 65 f4 lea -0xc(%ebp),%esp 11056e: 5b pop %ebx 11056f: 5e pop %esi 110570: 5f pop %edi 110571: c9 leave 110572: c3 ret 110573: 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){ 110574: 83 ec 0c sub $0xc,%esp 110577: 8b 43 28 mov 0x28(%ebx),%eax 11057a: 53 push %ebx 11057b: ff 50 2c call *0x2c(%eax) 11057e: 83 c4 10 add $0x10,%esp 110581: 85 c0 test %eax,%eax 110583: 75 3c jne 1105c1 */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 110585: 83 ec 0c sub $0xc,%esp 110588: 53 push %ebx 110589: e8 4a 18 00 00 call 111dd8 <_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 ); 11058e: 8b 43 14 mov 0x14(%ebx),%eax 110591: 83 c4 10 add $0x10,%esp 110594: 85 c0 test %eax,%eax 110596: 74 13 je 1105ab 110598: 8b 40 1c mov 0x1c(%eax),%eax 11059b: 85 c0 test %eax,%eax 11059d: 74 0c je 1105ab 11059f: 83 ec 0c sub $0xc,%esp 1105a2: 8d 53 08 lea 0x8(%ebx),%edx 1105a5: 52 push %edx 1105a6: ff d0 call *%eax 1105a8: 83 c4 10 add $0x10,%esp free( mt_entry ); 1105ab: 83 ec 0c sub $0xc,%esp 1105ae: 53 push %ebx 1105af: e8 ac c8 ff ff call 10ce60 1105b4: 31 c0 xor %eax,%eax return 0; 1105b6: 83 c4 10 add $0x10,%esp } 1105b9: 8d 65 f4 lea -0xc(%ebp),%esp 1105bc: 5b pop %ebx 1105bd: 5e pop %esi 1105be: 5f pop %edi 1105bf: c9 leave 1105c0: 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 ) 1105c1: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1105c4: 8b 43 14 mov 0x14(%ebx),%eax <== NOT EXECUTED 1105c7: 53 push %ebx <== NOT EXECUTED 1105c8: ff 50 20 call *0x20(%eax) <== NOT EXECUTED 1105cb: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 1105ce: 85 c0 test %eax,%eax <== NOT EXECUTED 1105d0: 0f 84 48 ff ff ff je 11051e <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 1105d6: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 1105d9: 6a 00 push $0x0 <== NOT EXECUTED 1105db: e8 40 15 00 00 call 111b20 <== 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 ); 1105e0: e8 57 0e 03 00 call 14143c <__errno> <== NOT EXECUTED 1105e5: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 1105eb: 83 c8 ff or $0xffffffff,%eax <== NOT EXECUTED 1105ee: e9 30 ff ff ff jmp 110523 <== NOT EXECUTED 0012cb28 : int utime( const char *path, const struct utimbuf *times ) { 12cb28: 55 push %ebp 12cb29: 89 e5 mov %esp,%ebp 12cb2b: 57 push %edi 12cb2c: 56 push %esi 12cb2d: 53 push %ebx 12cb2e: 83 ec 38 sub $0x38,%esp 12cb31: 8b 55 08 mov 0x8(%ebp),%edx 12cb34: 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 ) ) 12cb37: 31 c0 xor %eax,%eax 12cb39: b9 ff ff ff ff mov $0xffffffff,%ecx 12cb3e: 89 d7 mov %edx,%edi 12cb40: f2 ae repnz scas %es:(%edi),%al 12cb42: f7 d1 not %ecx 12cb44: 49 dec %ecx 12cb45: 6a 01 push $0x1 12cb47: 8d 75 d4 lea -0x2c(%ebp),%esi 12cb4a: 56 push %esi 12cb4b: 6a 00 push $0x0 12cb4d: 51 push %ecx 12cb4e: 52 push %edx 12cb4f: e8 58 02 fe ff call 10cdac 12cb54: 83 c4 20 add $0x20,%esp 12cb57: 85 c0 test %eax,%eax 12cb59: 75 55 jne 12cbb0 return -1; if ( !temp_loc.ops->utime_h ){ 12cb5b: 8b 55 e0 mov -0x20(%ebp),%edx 12cb5e: 8b 42 30 mov 0x30(%edx),%eax 12cb61: 85 c0 test %eax,%eax 12cb63: 74 2f je 12cb94 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 ); 12cb65: 52 push %edx 12cb66: ff 73 04 pushl 0x4(%ebx) 12cb69: ff 33 pushl (%ebx) 12cb6b: 56 push %esi 12cb6c: ff d0 call *%eax 12cb6e: 89 c3 mov %eax,%ebx rtems_filesystem_freenode( &temp_loc ); 12cb70: 8b 45 e0 mov -0x20(%ebp),%eax 12cb73: 83 c4 10 add $0x10,%esp 12cb76: 85 c0 test %eax,%eax 12cb78: 74 10 je 12cb8a 12cb7a: 8b 40 1c mov 0x1c(%eax),%eax 12cb7d: 85 c0 test %eax,%eax 12cb7f: 74 09 je 12cb8a 12cb81: 83 ec 0c sub $0xc,%esp 12cb84: 56 push %esi 12cb85: ff d0 call *%eax 12cb87: 83 c4 10 add $0x10,%esp return result; } 12cb8a: 89 d8 mov %ebx,%eax 12cb8c: 8d 65 f4 lea -0xc(%ebp),%esp 12cb8f: 5b pop %ebx 12cb90: 5e pop %esi 12cb91: 5f pop %edi 12cb92: c9 leave 12cb93: 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 ); 12cb94: 8b 42 1c mov 0x1c(%edx),%eax <== NOT EXECUTED 12cb97: 85 c0 test %eax,%eax <== NOT EXECUTED 12cb99: 74 09 je 12cba4 <== NOT EXECUTED 12cb9b: 83 ec 0c sub $0xc,%esp <== NOT EXECUTED 12cb9e: 56 push %esi <== NOT EXECUTED 12cb9f: ff d0 call *%eax <== NOT EXECUTED 12cba1: 83 c4 10 add $0x10,%esp <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 12cba4: e8 93 48 01 00 call 14143c <__errno> <== NOT EXECUTED 12cba9: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 12cbaf: 90 nop <== NOT EXECUTED 12cbb0: 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; } 12cbb5: 89 d8 mov %ebx,%eax 12cbb7: 8d 65 f4 lea -0xc(%ebp),%esp 12cbba: 5b pop %ebx 12cbbb: 5e pop %esi 12cbbc: 5f pop %edi 12cbbd: c9 leave 12cbbe: c3 ret 0010aae4 : */ void vprintk( const char *fmt, va_list ap ) { 10aae4: 55 push %ebp 10aae5: 89 e5 mov %esp,%ebp 10aae7: 57 push %edi 10aae8: 56 push %esi 10aae9: 53 push %ebx 10aaea: 83 ec 4c sub $0x4c,%esp 10aaed: 8b 75 08 mov 0x8(%ebp),%esi 10aaf0: 8b 7d 0c mov 0xc(%ebp),%edi for (; *fmt != '\0'; fmt++) { 10aaf3: 8a 06 mov (%esi),%al 10aaf5: 84 c0 test %al,%al 10aaf7: 75 28 jne 10ab21 10aaf9: e9 d1 01 00 00 jmp 10accf <== NOT EXECUTED 10aafe: 66 90 xchg %ax,%ax <== NOT EXECUTED bool sign = false; char lead = ' '; char c; if (*fmt != '%') { BSP_output_char(*fmt); 10ab00: 83 ec 0c sub $0xc,%esp 10ab03: 0f be c0 movsbl %al,%eax 10ab06: 50 push %eax 10ab07: ff 15 84 12 12 00 call *0x121284 10ab0d: 89 7d bc mov %edi,-0x44(%ebp) continue; 10ab10: 83 c4 10 add $0x10,%esp void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 10ab13: 46 inc %esi 10ab14: 8a 06 mov (%esi),%al 10ab16: 84 c0 test %al,%al 10ab18: 0f 84 b1 01 00 00 je 10accf 10ab1e: 8b 7d bc mov -0x44(%ebp),%edi bool minus = false; bool sign = false; char lead = ' '; char c; if (*fmt != '%') { 10ab21: 3c 25 cmp $0x25,%al 10ab23: 75 db jne 10ab00 BSP_output_char(*fmt); continue; } fmt++; 10ab25: 46 inc %esi if (*fmt == '0' ) { 10ab26: 8a 0e mov (%esi),%cl 10ab28: 80 f9 30 cmp $0x30,%cl 10ab2b: 0f 84 b7 01 00 00 je 10ace8 10ab31: b2 20 mov $0x20,%dl lead = '0'; fmt++; } if (*fmt == '-' ) { 10ab33: 80 f9 2d cmp $0x2d,%cl 10ab36: 0f 84 ba 01 00 00 je 10acf6 10ab3c: c6 45 c4 00 movb $0x0,-0x3c(%ebp) minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 10ab40: 8d 41 d0 lea -0x30(%ecx),%eax 10ab43: 3c 09 cmp $0x9,%al 10ab45: 0f 87 bd 01 00 00 ja 10ad08 10ab4b: 31 db xor %ebx,%ebx 10ab4d: 8d 76 00 lea 0x0(%esi),%esi width *= 10; width += ((unsigned) *fmt - '0'); 10ab50: 8d 04 9b lea (%ebx,%ebx,4),%eax 10ab53: 0f be c9 movsbl %cl,%ecx 10ab56: 8d 5c 41 d0 lea -0x30(%ecx,%eax,2),%ebx fmt++; 10ab5a: 46 inc %esi } if (*fmt == '-' ) { minus = true; fmt++; } while (*fmt >= '0' && *fmt <= '9' ) { 10ab5b: 8a 0e mov (%esi),%cl 10ab5d: 8d 41 d0 lea -0x30(%ecx),%eax 10ab60: 3c 09 cmp $0x9,%al 10ab62: 76 ec jbe 10ab50 width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 10ab64: 80 f9 6c cmp $0x6c,%cl 10ab67: 0f 84 a7 01 00 00 je 10ad14 lflag = true; c = *++fmt; } if ( c == 'c' ) { 10ab6d: 80 f9 63 cmp $0x63,%cl 10ab70: 0f 84 aa 01 00 00 je 10ad20 /* 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' ) { 10ab76: 80 f9 73 cmp $0x73,%cl 10ab79: 0f 84 bd 01 00 00 je 10ad3c continue; } /* must be a numeric format or something unsupported */ if ( c == 'o' || c == 'O' ) { 10ab7f: 80 f9 6f cmp $0x6f,%cl 10ab82: 0f 84 50 01 00 00 je 10acd8 10ab88: 80 f9 4f cmp $0x4f,%cl 10ab8b: 0f 84 47 01 00 00 je 10acd8 base = 8; sign = false; } else if ( c == 'i' || c == 'I' || 10ab91: 80 f9 69 cmp $0x69,%cl 10ab94: 74 56 je 10abec 10ab96: 80 f9 49 cmp $0x49,%cl 10ab99: 74 51 je 10abec 10ab9b: 80 f9 64 cmp $0x64,%cl 10ab9e: 74 4c je 10abec 10aba0: 80 f9 44 cmp $0x44,%cl 10aba3: 74 47 je 10abec c == 'd' || c == 'D' ) { base = 10; sign = true; } else if ( c == 'u' || c == 'U' ) { 10aba5: 80 f9 75 cmp $0x75,%cl 10aba8: 0f 84 62 02 00 00 je 10ae10 10abae: 80 f9 55 cmp $0x55,%cl 10abb1: 0f 84 59 02 00 00 je 10ae10 base = 10; sign = false; } else if ( c == 'x' || c == 'X' ) { 10abb7: 80 f9 78 cmp $0x78,%cl 10abba: 0f 84 97 02 00 00 je 10ae57 10abc0: 80 f9 58 cmp $0x58,%cl 10abc3: 0f 84 8e 02 00 00 je 10ae57 base = 16; sign = false; } else if ( c == 'p' ) { 10abc9: 80 f9 70 cmp $0x70,%cl 10abcc: 0f 84 a8 02 00 00 je 10ae7a base = 16; sign = false; lflag = true; } else { BSP_output_char(c); 10abd2: 83 ec 0c sub $0xc,%esp 10abd5: 0f be c9 movsbl %cl,%ecx 10abd8: 51 push %ecx 10abd9: ff 15 84 12 12 00 call *0x121284 10abdf: 89 7d bc mov %edi,-0x44(%ebp) continue; 10abe2: 83 c4 10 add $0x10,%esp 10abe5: e9 29 ff ff ff jmp 10ab13 10abea: 66 90 xchg %ax,%ax <== NOT EXECUTED 10abec: b1 01 mov $0x1,%cl 10abee: c7 45 b8 0a 00 00 00 movl $0xa,-0x48(%ebp) } printNum( 10abf5: 0f be d2 movsbl %dl,%edx 10abf8: 89 55 b4 mov %edx,-0x4c(%ebp) lflag ? va_arg(ap, long) : (long) va_arg(ap, int), 10abfb: 8d 47 04 lea 0x4(%edi),%eax 10abfe: 89 45 bc mov %eax,-0x44(%ebp) } else { BSP_output_char(c); continue; } printNum( 10ac01: 8b 3f mov (%edi),%edi unsigned long unsigned_num; unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { 10ac03: 84 c9 test %cl,%cl 10ac05: 74 08 je 10ac0f 10ac07: 85 ff test %edi,%edi 10ac09: 0f 88 0f 02 00 00 js 10ae1e BSP_output_char('-'); unsigned_num = (unsigned long) -num; if (maxwidth) maxwidth--; } else { unsigned_num = (unsigned long) num; 10ac0f: 89 7d c0 mov %edi,-0x40(%ebp) } count = 0; while ((n = unsigned_num / base) > 0) { 10ac12: 8b 45 c0 mov -0x40(%ebp),%eax 10ac15: 31 d2 xor %edx,%edx 10ac17: f7 75 b8 divl -0x48(%ebp) 10ac1a: 89 c1 mov %eax,%ecx 10ac1c: 85 c0 test %eax,%eax 10ac1e: 0f 84 25 02 00 00 je 10ae49 10ac24: 8a 45 b8 mov -0x48(%ebp),%al 10ac27: 88 45 c4 mov %al,-0x3c(%ebp) 10ac2a: 31 ff xor %edi,%edi 10ac2c: 89 5d b0 mov %ebx,-0x50(%ebp) 10ac2f: 8b 55 c0 mov -0x40(%ebp),%edx 10ac32: 8b 5d b8 mov -0x48(%ebp),%ebx 10ac35: eb 05 jmp 10ac3c 10ac37: 90 nop <== NOT EXECUTED 10ac38: 89 ca mov %ecx,%edx 10ac3a: 89 c1 mov %eax,%ecx toPrint[count++] = (char) (unsigned_num - (n * base)); 10ac3c: 8a 45 c4 mov -0x3c(%ebp),%al 10ac3f: f6 e1 mul %cl 10ac41: 28 c2 sub %al,%dl 10ac43: 88 54 3d d4 mov %dl,-0x2c(%ebp,%edi,1) 10ac47: 47 inc %edi } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 10ac48: 89 c8 mov %ecx,%eax 10ac4a: 31 d2 xor %edx,%edx 10ac4c: f7 f3 div %ebx 10ac4e: 85 c0 test %eax,%eax 10ac50: 75 e6 jne 10ac38 10ac52: 8b 5d b0 mov -0x50(%ebp),%ebx 10ac55: 8d 47 01 lea 0x1(%edi),%eax 10ac58: 89 45 c4 mov %eax,-0x3c(%ebp) 10ac5b: 89 4d c0 mov %ecx,-0x40(%ebp) toPrint[count++] = (char) (unsigned_num - (n * base)); unsigned_num = n; } toPrint[count++] = (char) unsigned_num; 10ac5e: 8a 45 c0 mov -0x40(%ebp),%al 10ac61: 88 44 3d d4 mov %al,-0x2c(%ebp,%edi,1) for (n=maxwidth ; n > count; n-- ) 10ac65: 3b 5d c4 cmp -0x3c(%ebp),%ebx 10ac68: 76 1f jbe 10ac89 10ac6a: 8b 7d c4 mov -0x3c(%ebp),%edi 10ac6d: 89 75 c0 mov %esi,-0x40(%ebp) 10ac70: 8b 75 b4 mov -0x4c(%ebp),%esi 10ac73: 90 nop BSP_output_char(lead); 10ac74: 83 ec 0c sub $0xc,%esp 10ac77: 56 push %esi 10ac78: 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-- ) 10ac7e: 4b dec %ebx 10ac7f: 83 c4 10 add $0x10,%esp 10ac82: 39 fb cmp %edi,%ebx 10ac84: 77 ee ja 10ac74 10ac86: 8b 75 c0 mov -0x40(%ebp),%esi BSP_output_char(lead); for (n = 0; n < count; n++) { 10ac89: 8b 45 c4 mov -0x3c(%ebp),%eax 10ac8c: 85 c0 test %eax,%eax 10ac8e: 0f 84 7f fe ff ff je 10ab13 10ac94: 8b 45 c4 mov -0x3c(%ebp),%eax 10ac97: 8d 7c 05 d3 lea -0x2d(%ebp,%eax,1),%edi 10ac9b: 31 db xor %ebx,%ebx 10ac9d: 89 75 c0 mov %esi,-0x40(%ebp) 10aca0: 89 c6 mov %eax,%esi 10aca2: 66 90 xchg %ax,%ax BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 10aca4: 83 ec 0c sub $0xc,%esp 10aca7: 0f be 07 movsbl (%edi),%eax 10acaa: 0f be 80 7a f9 11 00 movsbl 0x11f97a(%eax),%eax 10acb1: 50 push %eax 10acb2: 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++) { 10acb8: 43 inc %ebx 10acb9: 4f dec %edi 10acba: 83 c4 10 add $0x10,%esp 10acbd: 39 f3 cmp %esi,%ebx 10acbf: 72 e3 jb 10aca4 10acc1: 8b 75 c0 mov -0x40(%ebp),%esi void vprintk( const char *fmt, va_list ap ) { for (; *fmt != '\0'; fmt++) { 10acc4: 46 inc %esi 10acc5: 8a 06 mov (%esi),%al 10acc7: 84 c0 test %al,%al 10acc9: 0f 85 4f fe ff ff jne 10ab1e sign, width, lead ); } } 10accf: 8d 65 f4 lea -0xc(%ebp),%esp 10acd2: 5b pop %ebx 10acd3: 5e pop %esi 10acd4: 5f pop %edi 10acd5: c9 leave 10acd6: c3 ret 10acd7: 90 nop <== NOT EXECUTED base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 10acd8: 31 c9 xor %ecx,%ecx 10acda: c7 45 b8 08 00 00 00 movl $0x8,-0x48(%ebp) 10ace1: e9 0f ff ff ff jmp 10abf5 10ace6: 66 90 xchg %ax,%ax <== NOT EXECUTED continue; } fmt++; if (*fmt == '0' ) { lead = '0'; fmt++; 10ace8: 46 inc %esi 10ace9: 8a 0e mov (%esi),%cl 10aceb: b2 30 mov $0x30,%dl } if (*fmt == '-' ) { 10aced: 80 f9 2d cmp $0x2d,%cl 10acf0: 0f 85 46 fe ff ff jne 10ab3c minus = true; fmt++; 10acf6: 46 inc %esi 10acf7: 8a 0e mov (%esi),%cl 10acf9: c6 45 c4 01 movb $0x1,-0x3c(%ebp) } while (*fmt >= '0' && *fmt <= '9' ) { 10acfd: 8d 41 d0 lea -0x30(%ecx),%eax 10ad00: 3c 09 cmp $0x9,%al 10ad02: 0f 86 43 fe ff ff jbe 10ab4b 10ad08: 31 db xor %ebx,%ebx width *= 10; width += ((unsigned) *fmt - '0'); fmt++; } if ((c = *fmt) == 'l') { 10ad0a: 80 f9 6c cmp $0x6c,%cl 10ad0d: 0f 85 5a fe ff ff jne 10ab6d 10ad13: 90 nop lflag = true; c = *++fmt; 10ad14: 46 inc %esi 10ad15: 8a 0e mov (%esi),%cl } if ( c == 'c' ) { 10ad17: 80 f9 63 cmp $0x63,%cl 10ad1a: 0f 85 56 fe ff ff jne 10ab76 /* need a cast here since va_arg() only takes fully promoted types */ char chr = (char) va_arg(ap, int); 10ad20: 8d 47 04 lea 0x4(%edi),%eax 10ad23: 89 45 bc mov %eax,-0x44(%ebp) BSP_output_char(chr); 10ad26: 83 ec 0c sub $0xc,%esp 10ad29: 0f be 07 movsbl (%edi),%eax 10ad2c: 50 push %eax 10ad2d: ff 15 84 12 12 00 call *0x121284 continue; 10ad33: 83 c4 10 add $0x10,%esp 10ad36: e9 d8 fd ff ff jmp 10ab13 10ad3b: 90 nop <== NOT EXECUTED } if ( c == 's' ) { unsigned i, len; char *s, *str; str = va_arg(ap, char *); 10ad3c: 8d 47 04 lea 0x4(%edi),%eax 10ad3f: 89 45 bc mov %eax,-0x44(%ebp) 10ad42: 8b 07 mov (%edi),%eax if ( str == NULL ) { 10ad44: 85 c0 test %eax,%eax 10ad46: 0f 84 19 01 00 00 je 10ae65 str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 10ad4c: 80 38 00 cmpb $0x0,(%eax) 10ad4f: 0f 84 1e 01 00 00 je 10ae73 10ad55: 31 ff xor %edi,%edi 10ad57: 90 nop 10ad58: 47 inc %edi 10ad59: 80 3c 38 00 cmpb $0x0,(%eax,%edi,1) 10ad5d: 75 f9 jne 10ad58 ; /* leading spaces */ if ( !minus ) 10ad5f: 80 7d c4 00 cmpb $0x0,-0x3c(%ebp) 10ad63: 75 30 jne 10ad95 for ( i=len ; i 10ad69: 89 fa mov %edi,%edx 10ad6b: 89 7d c0 mov %edi,-0x40(%ebp) 10ad6e: 89 c7 mov %eax,%edi 10ad70: 89 75 b8 mov %esi,-0x48(%ebp) 10ad73: 89 de mov %ebx,%esi 10ad75: 89 d3 mov %edx,%ebx 10ad77: 90 nop BSP_output_char(' '); 10ad78: 83 ec 0c sub $0xc,%esp 10ad7b: 6a 20 push $0x20 10ad7d: ff 15 84 12 12 00 call *0x121284 for ( len=0, s=str ; *s ; len++, s++ ) ; /* leading spaces */ if ( !minus ) for ( i=len ; i 10ad8b: 89 f3 mov %esi,%ebx 10ad8d: 89 f8 mov %edi,%eax 10ad8f: 8b 7d c0 mov -0x40(%ebp),%edi 10ad92: 8b 75 b8 mov -0x48(%ebp),%esi BSP_output_char(' '); /* no width option */ if (width == 0) { 10ad95: 85 db test %ebx,%ebx 10ad97: 75 06 jne 10ad9f width = len; } /* output the string */ for ( i=0 ; i 10ad9d: 89 fb mov %edi,%ebx 10ad9f: 8a 10 mov (%eax),%dl 10ada1: 84 d2 test %dl,%dl 10ada3: 74 3f je 10ade4 BSP_output_char(*str); 10ada5: 83 ec 0c sub $0xc,%esp 10ada8: 0f be d2 movsbl %dl,%edx 10adab: 52 push %edx 10adac: 89 45 ac mov %eax,-0x54(%ebp) 10adaf: ff 15 84 12 12 00 call *0x121284 if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i 10adc5: 8d 76 00 lea 0x0(%esi),%esi <== NOT EXECUTED BSP_output_char(*str); 10adc8: 83 ec 0c sub $0xc,%esp 10adcb: 0f be d2 movsbl %dl,%edx 10adce: 52 push %edx 10adcf: ff 15 84 12 12 00 call *0x121284 if (width == 0) { width = len; } /* output the string */ for ( i=0 ; i 10addf: 89 f3 mov %esi,%ebx 10ade1: 8b 75 c0 mov -0x40(%ebp),%esi BSP_output_char(*str); /* trailing spaces */ if ( minus ) 10ade4: 80 7d c4 00 cmpb $0x0,-0x3c(%ebp) 10ade8: 0f 84 25 fd ff ff je 10ab13 for ( i=len ; i 10adf6: 66 90 xchg %ax,%ax BSP_output_char(' '); 10adf8: 83 ec 0c sub $0xc,%esp 10adfb: 6a 20 push $0x20 10adfd: ff 15 84 12 12 00 call *0x121284 for ( i=0 ; i 10ae0b: e9 03 fd ff ff jmp 10ab13 base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 10ae10: 31 c9 xor %ecx,%ecx 10ae12: c7 45 b8 0a 00 00 00 movl $0xa,-0x48(%ebp) 10ae19: e9 d7 fd ff ff jmp 10abf5 unsigned long n; unsigned count; char toPrint[20]; if ( sign && (num < 0) ) { BSP_output_char('-'); 10ae1e: 83 ec 0c sub $0xc,%esp 10ae21: 6a 2d push $0x2d 10ae23: ff 15 84 12 12 00 call *0x121284 unsigned_num = (unsigned long) -num; 10ae29: f7 df neg %edi 10ae2b: 89 7d c0 mov %edi,-0x40(%ebp) if (maxwidth) maxwidth--; 10ae2e: 83 c4 10 add $0x10,%esp 10ae31: 83 fb 01 cmp $0x1,%ebx 10ae34: 83 d3 ff adc $0xffffffff,%ebx } else { unsigned_num = (unsigned long) num; } count = 0; while ((n = unsigned_num / base) > 0) { 10ae37: 8b 45 c0 mov -0x40(%ebp),%eax 10ae3a: 31 d2 xor %edx,%edx 10ae3c: f7 75 b8 divl -0x48(%ebp) 10ae3f: 89 c1 mov %eax,%ecx 10ae41: 85 c0 test %eax,%eax 10ae43: 0f 85 db fd ff ff jne 10ac24 10ae49: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) 10ae50: 31 ff xor %edi,%edi 10ae52: e9 07 fe ff ff jmp 10ac5e base = 16; sign = false; } else if ( c == 'p' ) { base = 16; sign = false; lflag = true; } else { BSP_output_char(c); continue; 10ae57: 31 c9 xor %ecx,%ecx 10ae59: c7 45 b8 10 00 00 00 movl $0x10,-0x48(%ebp) 10ae60: e9 90 fd ff ff jmp 10abf5 unsigned i, len; char *s, *str; str = va_arg(ap, char *); if ( str == NULL ) { 10ae65: b8 79 f9 11 00 mov $0x11f979,%eax str = ""; } /* calculate length of string */ for ( len=0, s=str ; *s ; len++, s++ ) 10ae6a: 80 38 00 cmpb $0x0,(%eax) 10ae6d: 0f 85 e2 fe ff ff jne 10ad55 10ae73: 31 ff xor %edi,%edi 10ae75: e9 e5 fe ff ff jmp 10ad5f } else { BSP_output_char(c); continue; } printNum( 10ae7a: 0f be d2 movsbl %dl,%edx 10ae7d: 89 55 b4 mov %edx,-0x4c(%ebp) 10ae80: 31 c9 xor %ecx,%ecx 10ae82: c7 45 b8 10 00 00 00 movl $0x10,-0x48(%ebp) 10ae89: e9 6d fd ff ff jmp 10abfb 0011dad0 : ssize_t write( int fd, const void *buffer, size_t count ) { 11dad0: 55 push %ebp 11dad1: 89 e5 mov %esp,%ebp 11dad3: 53 push %ebx 11dad4: 83 ec 04 sub $0x4,%esp 11dad7: 8b 5d 08 mov 0x8(%ebp),%ebx 11dada: 8b 45 0c mov 0xc(%ebp),%eax 11dadd: 8b 55 10 mov 0x10(%ebp),%edx ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 11dae0: 3b 1d 4c 11 12 00 cmp 0x12114c,%ebx 11dae6: 73 50 jae 11db38 iop = rtems_libio_iop( fd ); 11dae8: c1 e3 06 shl $0x6,%ebx 11daeb: 03 1d c0 51 12 00 add 0x1251c0,%ebx rtems_libio_check_is_open( iop ); 11daf1: 8b 4b 14 mov 0x14(%ebx),%ecx 11daf4: f6 c5 01 test $0x1,%ch 11daf7: 74 3f je 11db38 rtems_libio_check_buffer( buffer ); 11daf9: 85 c0 test %eax,%eax 11dafb: 74 4f je 11db4c rtems_libio_check_count( count ); 11dafd: 85 d2 test %edx,%edx 11daff: 74 2f je 11db30 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 11db01: 83 e1 04 and $0x4,%ecx 11db04: 74 46 je 11db4c /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 11db06: 8b 4b 3c mov 0x3c(%ebx),%ecx 11db09: 8b 49 0c mov 0xc(%ecx),%ecx 11db0c: 85 c9 test %ecx,%ecx 11db0e: 74 4e je 11db5e rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); 11db10: 83 ec 04 sub $0x4,%esp 11db13: 52 push %edx 11db14: 50 push %eax 11db15: 53 push %ebx 11db16: ff d1 call *%ecx if ( rc > 0 ) 11db18: 83 c4 10 add $0x10,%esp 11db1b: 85 c0 test %eax,%eax 11db1d: 7e 0b jle 11db2a iop->offset += rc; 11db1f: 89 c1 mov %eax,%ecx 11db21: c1 f9 1f sar $0x1f,%ecx 11db24: 01 43 0c add %eax,0xc(%ebx) 11db27: 11 4b 10 adc %ecx,0x10(%ebx) return rc; } 11db2a: 8b 5d fc mov -0x4(%ebp),%ebx 11db2d: c9 leave 11db2e: c3 ret 11db2f: 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 ); 11db30: 31 c0 xor %eax,%eax if ( rc > 0 ) iop->offset += rc; return rc; } 11db32: 8b 5d fc mov -0x4(%ebp),%ebx 11db35: c9 leave 11db36: c3 ret 11db37: 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 ); 11db38: e8 bb 48 ff ff call 1123f8 <__errno> <== NOT EXECUTED 11db3d: c7 00 09 00 00 00 movl $0x9,(%eax) <== NOT EXECUTED 11db43: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11db48: eb e0 jmp 11db2a <== NOT EXECUTED 11db4a: 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 ); 11db4c: e8 a7 48 ff ff call 1123f8 <__errno> <== NOT EXECUTED 11db51: c7 00 16 00 00 00 movl $0x16,(%eax) <== NOT EXECUTED 11db57: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11db5c: eb cc jmp 11db2a <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 11db5e: e8 95 48 ff ff call 1123f8 <__errno> <== NOT EXECUTED 11db63: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 11db69: b8 ff ff ff ff mov $0xffffffff,%eax <== NOT EXECUTED 11db6e: eb ba jmp 11db2a <== NOT EXECUTED 0010c28c : ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 10c28c: 55 push %ebp 10c28d: 89 e5 mov %esp,%ebp 10c28f: 57 push %edi 10c290: 56 push %esi 10c291: 53 push %ebx 10c292: 83 ec 3c sub $0x3c,%esp 10c295: 8b 45 08 mov 0x8(%ebp),%eax 10c298: 8b 5d 0c mov 0xc(%ebp),%ebx 10c29b: 8b 7d 10 mov 0x10(%ebp),%edi int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); 10c29e: 3b 05 cc 5c 12 00 cmp 0x125ccc,%eax 10c2a4: 0f 83 f2 00 00 00 jae 10c39c iop = rtems_libio_iop( fd ); 10c2aa: c1 e0 06 shl $0x6,%eax 10c2ad: 8b 15 40 a5 12 00 mov 0x12a540,%edx 10c2b3: 01 d0 add %edx,%eax 10c2b5: 89 45 e4 mov %eax,-0x1c(%ebp) rtems_libio_check_is_open( iop ); 10c2b8: 8b 40 14 mov 0x14(%eax),%eax 10c2bb: f6 c4 01 test $0x1,%ah 10c2be: 0f 84 d8 00 00 00 je 10c39c rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 10c2c4: a8 04 test $0x4,%al 10c2c6: 74 7c je 10c344 /* * Argument validation on IO vector */ if ( !iov ) 10c2c8: 85 db test %ebx,%ebx 10c2ca: 74 78 je 10c344 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 10c2cc: 85 ff test %edi,%edi 10c2ce: 7e 74 jle 10c344 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 10c2d0: 81 ff 00 04 00 00 cmp $0x400,%edi 10c2d6: 7f 6c jg 10c344 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) 10c2d8: 8b 55 e4 mov -0x1c(%ebp),%edx 10c2db: 8b 42 3c mov 0x3c(%edx),%eax 10c2de: 8b 48 0c mov 0xc(%eax),%ecx 10c2e1: 85 c9 test %ecx,%ecx 10c2e3: 0f 84 c5 00 00 00 je 10c3ae rtems_set_errno_and_return_minus_one( ENOTSUP ); 10c2e9: 31 c9 xor %ecx,%ecx 10c2eb: be 01 00 00 00 mov $0x1,%esi 10c2f0: 31 c0 xor %eax,%eax 10c2f2: eb 02 jmp 10c2f6 * 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++ ) { 10c2f4: 89 d1 mov %edx,%ecx if ( !iov[v].iov_base ) 10c2f6: 8b 14 c3 mov (%ebx,%eax,8),%edx 10c2f9: 85 d2 test %edx,%edx 10c2fb: 74 47 je 10c344 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 ) 10c2fd: 8b 54 c3 04 mov 0x4(%ebx,%eax,8),%edx 10c301: 85 d2 test %edx,%edx 10c303: 74 02 je 10c307 10c305: 31 f6 xor %esi,%esi all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; 10c307: 8d 14 11 lea (%ecx,%edx,1),%edx if ( total < old || total > SSIZE_MAX ) 10c30a: 39 d1 cmp %edx,%ecx 10c30c: 7f 36 jg 10c344 10c30e: 81 fa ff 7f 00 00 cmp $0x7fff,%edx 10c314: 7f 2e jg 10c344 * 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++ ) { 10c316: 40 inc %eax 10c317: 39 c7 cmp %eax,%edi 10c319: 7f d9 jg 10c2f4 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 10c31b: 89 f1 mov %esi,%ecx <== NOT EXECUTED 10c31d: 84 c9 test %cl,%cl <== NOT EXECUTED 10c31f: 75 3d jne 10c35e <== NOT EXECUTED 10c321: 31 d2 xor %edx,%edx <== NOT EXECUTED 10c323: 31 f6 xor %esi,%esi <== NOT EXECUTED 10c325: 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 ) 10c328: 8b 44 f3 04 mov 0x4(%ebx,%esi,8),%eax <== NOT EXECUTED 10c32c: 85 c0 test %eax,%eax <== NOT EXECUTED 10c32e: 75 32 jne 10c362 <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 10c330: 46 inc %esi <== NOT EXECUTED 10c331: 39 f7 cmp %esi,%edi <== NOT EXECUTED 10c333: 7f f3 jg 10c328 <== NOT EXECUTED 10c335: 8b 55 c0 mov -0x40(%ebp),%edx <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 10c338: 89 d0 mov %edx,%eax <== NOT EXECUTED 10c33a: 8d 65 f4 lea -0xc(%ebp),%esp <== NOT EXECUTED 10c33d: 5b pop %ebx <== NOT EXECUTED 10c33e: 5e pop %esi <== NOT EXECUTED 10c33f: 5f pop %edi <== NOT EXECUTED 10c340: c9 leave <== NOT EXECUTED 10c341: c3 ret <== NOT EXECUTED 10c342: 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 ); 10c344: e8 af 83 00 00 call 1146f8 <__errno> 10c349: c7 00 16 00 00 00 movl $0x16,(%eax) 10c34f: ba ff ff ff ff mov $0xffffffff,%edx if (bytes != iov[ v ].iov_len) break; } return total; } 10c354: 89 d0 mov %edx,%eax 10c356: 8d 65 f4 lea -0xc(%ebp),%esp 10c359: 5b pop %ebx 10c35a: 5e pop %esi 10c35b: 5f pop %edi 10c35c: c9 leave 10c35d: c3 ret } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 10c35e: 31 d2 xor %edx,%edx <== NOT EXECUTED 10c360: eb f2 jmp 10c354 <== 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 ); 10c362: 52 push %edx <== NOT EXECUTED 10c363: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10c366: 8b 51 3c mov 0x3c(%ecx),%edx <== NOT EXECUTED 10c369: 50 push %eax <== NOT EXECUTED 10c36a: ff 34 f3 pushl (%ebx,%esi,8) <== NOT EXECUTED 10c36d: 51 push %ecx <== NOT EXECUTED 10c36e: ff 52 0c call *0xc(%edx) <== NOT EXECUTED 10c371: 89 45 c4 mov %eax,-0x3c(%ebp) <== NOT EXECUTED if ( bytes < 0 ) 10c374: 83 c4 10 add $0x10,%esp <== NOT EXECUTED 10c377: 83 f8 00 cmp $0x0,%eax <== NOT EXECUTED 10c37a: 7c 42 jl 10c3be <== NOT EXECUTED return -1; if ( bytes > 0 ) { 10c37c: 74 13 je 10c391 <== NOT EXECUTED iop->offset += bytes; 10c37e: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED 10c381: 99 cltd <== NOT EXECUTED 10c382: 8b 4d e4 mov -0x1c(%ebp),%ecx <== NOT EXECUTED 10c385: 01 41 0c add %eax,0xc(%ecx) <== NOT EXECUTED 10c388: 11 51 10 adc %edx,0x10(%ecx) <== NOT EXECUTED total += bytes; 10c38b: 8b 45 c4 mov -0x3c(%ebp),%eax <== NOT EXECUTED 10c38e: 01 45 c0 add %eax,-0x40(%ebp) <== NOT EXECUTED } if (bytes != iov[ v ].iov_len) 10c391: 8b 55 c4 mov -0x3c(%ebp),%edx <== NOT EXECUTED 10c394: 3b 54 f3 04 cmp 0x4(%ebx,%esi,8),%edx <== NOT EXECUTED 10c398: 74 96 je 10c330 <== NOT EXECUTED 10c39a: eb 99 jmp 10c335 <== NOT EXECUTED ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 10c39c: e8 57 83 00 00 call 1146f8 <__errno> 10c3a1: c7 00 09 00 00 00 movl $0x9,(%eax) 10c3a7: ba ff ff ff ff mov $0xffffffff,%edx 10c3ac: eb a6 jmp 10c354 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 ); 10c3ae: e8 45 83 00 00 call 1146f8 <__errno> <== NOT EXECUTED 10c3b3: c7 00 86 00 00 00 movl $0x86,(%eax) <== NOT EXECUTED 10c3b9: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED 10c3bc: eb 96 jmp 10c354 <== 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 ) 10c3be: 83 ca ff or $0xffffffff,%edx <== NOT EXECUTED 10c3c1: eb 91 jmp 10c354 <== NOT EXECUTED